You've already forked npm-core-sdk
Latest generation
This commit is contained in:
194
view.ts
194
view.ts
@@ -94,7 +94,6 @@ export interface FieldView {
|
||||
EntityPathKey: string;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.GetViewFieldsRequest
|
||||
*/
|
||||
export interface GetViewFieldsRequest {
|
||||
@@ -132,7 +131,6 @@ export interface GetViewFieldsRequest {
|
||||
KpiGroupFilter: string;
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated from protobuf message api.GetViewFieldsResult
|
||||
*/
|
||||
export interface GetViewFieldsResult {
|
||||
@@ -141,52 +139,6 @@ export interface GetViewFieldsResult {
|
||||
*/
|
||||
Fields: FieldView[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetProjectViewFieldsRequest
|
||||
*/
|
||||
export interface GetProjectViewFieldsRequest {
|
||||
/**
|
||||
* @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.GetProjectViewFieldsResult
|
||||
*/
|
||||
export interface GetProjectViewFieldsResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.FieldView Fields = 1
|
||||
*/
|
||||
Fields: FieldView[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetSiteViewFieldsRequest
|
||||
*/
|
||||
@@ -507,7 +459,6 @@ class GetViewFieldsRequest$Type extends MessageType<GetViewFieldsRequest> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.GetViewFieldsRequest
|
||||
*/
|
||||
export const GetViewFieldsRequest = new GetViewFieldsRequest$Type();
|
||||
@@ -555,152 +506,10 @@ class GetViewFieldsResult$Type extends MessageType<GetViewFieldsResult> {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @generated MessageType for protobuf message api.GetViewFieldsResult
|
||||
*/
|
||||
export const GetViewFieldsResult = new GetViewFieldsResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetProjectViewFieldsRequest$Type extends MessageType<GetProjectViewFieldsRequest> {
|
||||
constructor() {
|
||||
super("api.GetProjectViewFieldsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" }, "validate.rules": { string: { in: ["trade", "collab", "core"] } } } },
|
||||
{ no: 3, name: "Entity", kind: "scalar", localName: "Entity", jsonName: "Entity", T: 9 /*ScalarType.STRING*/, options: { "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\"" }, "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ 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<GetProjectViewFieldsRequest>): GetProjectViewFieldsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Domain = "";
|
||||
message.Entity = "";
|
||||
message.OmmittedList = [];
|
||||
message.StartingPath = "";
|
||||
message.OnlySegmentationKeys = false;
|
||||
message.KpiGroupFilter = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetProjectViewFieldsRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectViewFieldsRequest): GetProjectViewFieldsRequest {
|
||||
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: GetProjectViewFieldsRequest, 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.GetProjectViewFieldsRequest
|
||||
*/
|
||||
export const GetProjectViewFieldsRequest = new GetProjectViewFieldsRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetProjectViewFieldsResult$Type extends MessageType<GetProjectViewFieldsResult> {
|
||||
constructor() {
|
||||
super("api.GetProjectViewFieldsResult", [
|
||||
{ no: 1, name: "Fields", kind: "message", localName: "Fields", jsonName: "Fields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldView }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetProjectViewFieldsResult>): GetProjectViewFieldsResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Fields = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetProjectViewFieldsResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetProjectViewFieldsResult): GetProjectViewFieldsResult {
|
||||
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: GetProjectViewFieldsResult, 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.GetProjectViewFieldsResult
|
||||
*/
|
||||
export const GetProjectViewFieldsResult = new GetProjectViewFieldsResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetSiteViewFieldsRequest$Type extends MessageType<GetSiteViewFieldsRequest> {
|
||||
constructor() {
|
||||
super("api.GetSiteViewFieldsRequest", [
|
||||
@@ -845,6 +654,5 @@ export const GetSiteViewFieldsResult = new GetSiteViewFieldsResult$Type();
|
||||
* @generated ServiceType for protobuf service api.ViewService
|
||||
*/
|
||||
export const ViewService = new ServiceType("api.ViewService", [
|
||||
{ name: "GetViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "DEPRECATED : replaced by GetProjectViewFields. Get view fields" }, "api.rscType": "Project", "api.roles": "Platform.Project-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetViewFieldsRequest, O: GetViewFieldsResult },
|
||||
{ name: "GetProjectViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "Get project view fields" }, "api.rscType": "Project", "api.roles": "Platform.Project-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetProjectViewFieldsRequest, O: GetProjectViewFieldsResult }
|
||||
{ name: "GetViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "Get view fields" }, "api.rscType": "Project", "api.roles": "Platform.Project-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetViewFieldsRequest, O: GetViewFieldsResult }
|
||||
], { "api.k8sService": "project-model-server" });
|
||||
|
||||
Reference in New Issue
Block a user