You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@reflex-platform/npm-core-sdk",
|
"name": "@reflex-platform/npm-core-sdk",
|
||||||
"version": "1.15.0-SNAPSHOT-260910112442",
|
"version": "1.15.0-SNAPSHOT-260910151749",
|
||||||
"description": "npm libs from core model proto files",
|
"description": "npm libs from core model proto files",
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
210
view.ts
210
view.ts
@@ -114,7 +114,8 @@ export interface GetViewFieldsRequest {
|
|||||||
/**
|
/**
|
||||||
* Fields that are not used in this entity
|
* Fields that are not used in this entity
|
||||||
*
|
*
|
||||||
* @generated from protobuf field: repeated string OmmittedList = 4
|
* @deprecated
|
||||||
|
* @generated from protobuf field: repeated string OmmittedList = 4 [deprecated = true]
|
||||||
*/
|
*/
|
||||||
OmmittedList: string[];
|
OmmittedList: string[];
|
||||||
/**
|
/**
|
||||||
@@ -129,6 +130,12 @@ export interface GetViewFieldsRequest {
|
|||||||
* @generated from protobuf field: string KpiGroupFilter = 7
|
* @generated from protobuf field: string KpiGroupFilter = 7
|
||||||
*/
|
*/
|
||||||
KpiGroupFilter: string;
|
KpiGroupFilter: string;
|
||||||
|
/**
|
||||||
|
* Fields that are used in this entity
|
||||||
|
*
|
||||||
|
* @generated from protobuf field: repeated string WhiteList = 8
|
||||||
|
*/
|
||||||
|
WhiteList: string[];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @generated from protobuf message api.GetViewFieldsResult
|
* @generated from protobuf message api.GetViewFieldsResult
|
||||||
@@ -139,52 +146,6 @@ export interface GetViewFieldsResult {
|
|||||||
*/
|
*/
|
||||||
Fields: FieldView[];
|
Fields: FieldView[];
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetSiteViewFieldsRequest
|
|
||||||
*/
|
|
||||||
export interface GetSiteViewFieldsRequest {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
|
||||||
*/
|
|
||||||
Header?: RequestProjectHeader;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string Domain = 2
|
|
||||||
*/
|
|
||||||
Domain: string;
|
|
||||||
/**
|
|
||||||
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: string Entity = 3
|
|
||||||
*/
|
|
||||||
Entity: string;
|
|
||||||
/**
|
|
||||||
* Fields that are not used in this entity
|
|
||||||
*
|
|
||||||
* @generated from protobuf field: repeated string OmmittedList = 4
|
|
||||||
*/
|
|
||||||
OmmittedList: string[];
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string StartingPath = 5
|
|
||||||
*/
|
|
||||||
StartingPath: string;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: bool OnlySegmentationKeys = 6
|
|
||||||
*/
|
|
||||||
OnlySegmentationKeys: boolean;
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: string KpiGroupFilter = 7
|
|
||||||
*/
|
|
||||||
KpiGroupFilter: string;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated from protobuf message api.GetSiteViewFieldsResult
|
|
||||||
*/
|
|
||||||
export interface GetSiteViewFieldsResult {
|
|
||||||
/**
|
|
||||||
* @generated from protobuf field: repeated api.FieldView Fields = 1
|
|
||||||
*/
|
|
||||||
Fields: FieldView[];
|
|
||||||
}
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
// @generated message type with reflection information, may provide speed optimized methods
|
||||||
class FieldView$Type extends MessageType<FieldView> {
|
class FieldView$Type extends MessageType<FieldView> {
|
||||||
constructor() {
|
constructor() {
|
||||||
@@ -378,7 +339,8 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
|||||||
{ no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } },
|
{ no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } },
|
||||||
{ no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ },
|
{ no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ },
|
||||||
{ no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ },
|
{ no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ },
|
||||||
{ no: 7, name: "KpiGroupFilter", kind: "scalar", localName: "KpiGroupFilter", jsonName: "KpiGroupFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Only fields matching this kpi group name" } } }
|
{ no: 7, name: "KpiGroupFilter", kind: "scalar", localName: "KpiGroupFilter", jsonName: "KpiGroupFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Only fields matching this kpi group name" } } },
|
||||||
|
{ no: 8, name: "WhiteList", kind: "scalar", localName: "WhiteList", jsonName: "WhiteList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are used in this entity" } } }
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity"] } } });
|
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity"] } } });
|
||||||
}
|
}
|
||||||
create(value?: PartialMessage<GetViewFieldsRequest>): GetViewFieldsRequest {
|
create(value?: PartialMessage<GetViewFieldsRequest>): GetViewFieldsRequest {
|
||||||
@@ -389,6 +351,7 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
|||||||
message.StartingPath = "";
|
message.StartingPath = "";
|
||||||
message.OnlySegmentationKeys = false;
|
message.OnlySegmentationKeys = false;
|
||||||
message.KpiGroupFilter = "";
|
message.KpiGroupFilter = "";
|
||||||
|
message.WhiteList = [];
|
||||||
if (value !== undefined)
|
if (value !== undefined)
|
||||||
reflectionMergePartial<GetViewFieldsRequest>(this, message, value);
|
reflectionMergePartial<GetViewFieldsRequest>(this, message, value);
|
||||||
return message;
|
return message;
|
||||||
@@ -407,7 +370,7 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
|||||||
case /* string Entity */ 3:
|
case /* string Entity */ 3:
|
||||||
message.Entity = reader.string();
|
message.Entity = reader.string();
|
||||||
break;
|
break;
|
||||||
case /* repeated string OmmittedList */ 4:
|
case /* repeated string OmmittedList = 4 [deprecated = true] */ 4:
|
||||||
message.OmmittedList.push(reader.string());
|
message.OmmittedList.push(reader.string());
|
||||||
break;
|
break;
|
||||||
case /* string StartingPath */ 5:
|
case /* string StartingPath */ 5:
|
||||||
@@ -419,6 +382,9 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
|||||||
case /* string KpiGroupFilter */ 7:
|
case /* string KpiGroupFilter */ 7:
|
||||||
message.KpiGroupFilter = reader.string();
|
message.KpiGroupFilter = reader.string();
|
||||||
break;
|
break;
|
||||||
|
case /* repeated string WhiteList */ 8:
|
||||||
|
message.WhiteList.push(reader.string());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
let u = options.readUnknownField;
|
let u = options.readUnknownField;
|
||||||
if (u === "throw")
|
if (u === "throw")
|
||||||
@@ -440,7 +406,7 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
|||||||
/* string Entity = 3; */
|
/* string Entity = 3; */
|
||||||
if (message.Entity !== "")
|
if (message.Entity !== "")
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.Entity);
|
writer.tag(3, WireType.LengthDelimited).string(message.Entity);
|
||||||
/* repeated string OmmittedList = 4; */
|
/* repeated string OmmittedList = 4 [deprecated = true]; */
|
||||||
for (let i = 0; i < message.OmmittedList.length; i++)
|
for (let i = 0; i < message.OmmittedList.length; i++)
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.OmmittedList[i]);
|
writer.tag(4, WireType.LengthDelimited).string(message.OmmittedList[i]);
|
||||||
/* string StartingPath = 5; */
|
/* string StartingPath = 5; */
|
||||||
@@ -452,6 +418,9 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
|||||||
/* string KpiGroupFilter = 7; */
|
/* string KpiGroupFilter = 7; */
|
||||||
if (message.KpiGroupFilter !== "")
|
if (message.KpiGroupFilter !== "")
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.KpiGroupFilter);
|
writer.tag(7, WireType.LengthDelimited).string(message.KpiGroupFilter);
|
||||||
|
/* repeated string WhiteList = 8; */
|
||||||
|
for (let i = 0; i < message.WhiteList.length; i++)
|
||||||
|
writer.tag(8, WireType.LengthDelimited).string(message.WhiteList[i]);
|
||||||
let u = options.writeUnknownFields;
|
let u = options.writeUnknownFields;
|
||||||
if (u !== false)
|
if (u !== false)
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||||
@@ -509,147 +478,6 @@ class GetViewFieldsResult$Type extends MessageType<GetViewFieldsResult> {
|
|||||||
* @generated MessageType for protobuf message api.GetViewFieldsResult
|
* @generated MessageType for protobuf message api.GetViewFieldsResult
|
||||||
*/
|
*/
|
||||||
export const GetViewFieldsResult = new GetViewFieldsResult$Type();
|
export const GetViewFieldsResult = new GetViewFieldsResult$Type();
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetSiteViewFieldsRequest$Type extends MessageType<GetSiteViewFieldsRequest> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetSiteViewFieldsRequest", [
|
|
||||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "n1validate.rules": { message: { required: true } } } },
|
|
||||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { in: ["trade", "collab", "core"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
|
||||||
{ no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"", example: "\"order\"" } } },
|
|
||||||
{ no: 4, name: "OmmittedList", kind: "scalar", localName: "OmmittedList", jsonName: "OmmittedList", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Fields that are not used in this entity" } } },
|
|
||||||
{ no: 5, name: "StartingPath", kind: "scalar", localName: "StartingPath", jsonName: "StartingPath", T: 9 /*ScalarType.STRING*/ },
|
|
||||||
{ no: 6, name: "OnlySegmentationKeys", kind: "scalar", localName: "OnlySegmentationKeys", jsonName: "OnlySegmentationKeys", T: 8 /*ScalarType.BOOL*/ },
|
|
||||||
{ no: 7, name: "KpiGroupFilter", kind: "scalar", localName: "KpiGroupFilter", jsonName: "KpiGroupFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Only fields matching this kpi group name" } } }
|
|
||||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Entity"] } } });
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetSiteViewFieldsRequest>): GetSiteViewFieldsRequest {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Domain = "";
|
|
||||||
message.Entity = "";
|
|
||||||
message.OmmittedList = [];
|
|
||||||
message.StartingPath = "";
|
|
||||||
message.OnlySegmentationKeys = false;
|
|
||||||
message.KpiGroupFilter = "";
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetSiteViewFieldsRequest>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteViewFieldsRequest): GetSiteViewFieldsRequest {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* api.RequestProjectHeader Header */ 1:
|
|
||||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
|
||||||
break;
|
|
||||||
case /* string Domain */ 2:
|
|
||||||
message.Domain = reader.string();
|
|
||||||
break;
|
|
||||||
case /* string Entity */ 3:
|
|
||||||
message.Entity = reader.string();
|
|
||||||
break;
|
|
||||||
case /* repeated string OmmittedList */ 4:
|
|
||||||
message.OmmittedList.push(reader.string());
|
|
||||||
break;
|
|
||||||
case /* string StartingPath */ 5:
|
|
||||||
message.StartingPath = reader.string();
|
|
||||||
break;
|
|
||||||
case /* bool OnlySegmentationKeys */ 6:
|
|
||||||
message.OnlySegmentationKeys = reader.bool();
|
|
||||||
break;
|
|
||||||
case /* string KpiGroupFilter */ 7:
|
|
||||||
message.KpiGroupFilter = reader.string();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
let u = options.readUnknownField;
|
|
||||||
if (u === "throw")
|
|
||||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
||||||
let d = reader.skip(wireType);
|
|
||||||
if (u !== false)
|
|
||||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryWrite(message: GetSiteViewFieldsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* api.RequestProjectHeader Header = 1; */
|
|
||||||
if (message.Header)
|
|
||||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
/* string Domain = 2; */
|
|
||||||
if (message.Domain !== "")
|
|
||||||
writer.tag(2, WireType.LengthDelimited).string(message.Domain);
|
|
||||||
/* string Entity = 3; */
|
|
||||||
if (message.Entity !== "")
|
|
||||||
writer.tag(3, WireType.LengthDelimited).string(message.Entity);
|
|
||||||
/* repeated string OmmittedList = 4; */
|
|
||||||
for (let i = 0; i < message.OmmittedList.length; i++)
|
|
||||||
writer.tag(4, WireType.LengthDelimited).string(message.OmmittedList[i]);
|
|
||||||
/* string StartingPath = 5; */
|
|
||||||
if (message.StartingPath !== "")
|
|
||||||
writer.tag(5, WireType.LengthDelimited).string(message.StartingPath);
|
|
||||||
/* bool OnlySegmentationKeys = 6; */
|
|
||||||
if (message.OnlySegmentationKeys !== false)
|
|
||||||
writer.tag(6, WireType.Varint).bool(message.OnlySegmentationKeys);
|
|
||||||
/* string KpiGroupFilter = 7; */
|
|
||||||
if (message.KpiGroupFilter !== "")
|
|
||||||
writer.tag(7, WireType.LengthDelimited).string(message.KpiGroupFilter);
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetSiteViewFieldsRequest
|
|
||||||
*/
|
|
||||||
export const GetSiteViewFieldsRequest = new GetSiteViewFieldsRequest$Type();
|
|
||||||
// @generated message type with reflection information, may provide speed optimized methods
|
|
||||||
class GetSiteViewFieldsResult$Type extends MessageType<GetSiteViewFieldsResult> {
|
|
||||||
constructor() {
|
|
||||||
super("api.GetSiteViewFieldsResult", [
|
|
||||||
{ no: 1, name: "Fields", kind: "message", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldView }
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
create(value?: PartialMessage<GetSiteViewFieldsResult>): GetSiteViewFieldsResult {
|
|
||||||
const message = globalThis.Object.create((this.messagePrototype!));
|
|
||||||
message.Fields = [];
|
|
||||||
if (value !== undefined)
|
|
||||||
reflectionMergePartial<GetSiteViewFieldsResult>(this, message, value);
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteViewFieldsResult): GetSiteViewFieldsResult {
|
|
||||||
let message = target ?? this.create(), end = reader.pos + length;
|
|
||||||
while (reader.pos < end) {
|
|
||||||
let [fieldNo, wireType] = reader.tag();
|
|
||||||
switch (fieldNo) {
|
|
||||||
case /* repeated api.FieldView Fields */ 1:
|
|
||||||
message.Fields.push(FieldView.internalBinaryRead(reader, reader.uint32(), options));
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
let u = options.readUnknownField;
|
|
||||||
if (u === "throw")
|
|
||||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
||||||
let d = reader.skip(wireType);
|
|
||||||
if (u !== false)
|
|
||||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return message;
|
|
||||||
}
|
|
||||||
internalBinaryWrite(message: GetSiteViewFieldsResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
||||||
/* repeated api.FieldView Fields = 1; */
|
|
||||||
for (let i = 0; i < message.Fields.length; i++)
|
|
||||||
FieldView.internalBinaryWrite(message.Fields[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
||||||
let u = options.writeUnknownFields;
|
|
||||||
if (u !== false)
|
|
||||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
||||||
return writer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* @generated MessageType for protobuf message api.GetSiteViewFieldsResult
|
|
||||||
*/
|
|
||||||
export const GetSiteViewFieldsResult = new GetSiteViewFieldsResult$Type();
|
|
||||||
/**
|
/**
|
||||||
* @generated ServiceType for protobuf service api.ViewService
|
* @generated ServiceType for protobuf service api.ViewService
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user