You've already forked npm-core-sdk
Latest generation
This commit is contained in:
18
view.ts
18
view.ts
@@ -11,7 +11,6 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { RequestSiteHeader } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
/**
|
||||
* @generated from protobuf message api.FieldView
|
||||
@@ -193,9 +192,9 @@ export interface GetProjectViewFieldsResult {
|
||||
*/
|
||||
export interface GetSiteViewFieldsRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Domain = 2
|
||||
*/
|
||||
@@ -705,7 +704,7 @@ export const GetProjectViewFieldsResult = new GetProjectViewFieldsResult$Type();
|
||||
class GetSiteViewFieldsRequest$Type extends MessageType<GetSiteViewFieldsRequest> {
|
||||
constructor() {
|
||||
super("api.GetSiteViewFieldsRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ 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: { "validate.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: { "validate.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" } } },
|
||||
@@ -731,8 +730,8 @@ class GetSiteViewFieldsRequest$Type extends MessageType<GetSiteViewFieldsRequest
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Domain */ 2:
|
||||
message.Domain = reader.string();
|
||||
@@ -764,9 +763,9 @@ class GetSiteViewFieldsRequest$Type extends MessageType<GetSiteViewFieldsRequest
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetSiteViewFieldsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
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);
|
||||
@@ -847,6 +846,5 @@ export const GetSiteViewFieldsResult = new GetSiteViewFieldsResult$Type();
|
||||
*/
|
||||
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: "GetSiteViewFields", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["View"], description: "Get site view fields" }, "api.rscType": "Site", "api.roles": "Platform.Site-View", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSiteViewFieldsRequest, O: GetSiteViewFieldsResult }
|
||||
{ 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 }
|
||||
], { "api.k8sService": "project-model-server" });
|
||||
|
||||
Reference in New Issue
Block a user