You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { MetadataInputAPI } from "./metadataInput";
|
||||
import type { MetadataDeletedOnSiteResponse } from "./metadataInput";
|
||||
import type { MetadataDeletedOnSiteRequest } from "./metadataInput";
|
||||
import type { MetadataCreatedOnSiteResponse } from "./metadataInput";
|
||||
import type { MetadataCreatedOnSiteRequest } from "./metadataInput";
|
||||
import type { MetadataDeletedResponse } from "./metadataInput";
|
||||
import type { MetadataDeletedRequest } from "./metadataInput";
|
||||
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
||||
@@ -26,6 +30,14 @@ export interface IMetadataInputAPIClient {
|
||||
* @generated from protobuf rpc: Deleted
|
||||
*/
|
||||
deleted(input: MetadataDeletedRequest, options?: RpcOptions): UnaryCall<MetadataDeletedRequest, MetadataDeletedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CreatedOnSite
|
||||
*/
|
||||
createdOnSite(input: MetadataCreatedOnSiteRequest, options?: RpcOptions): UnaryCall<MetadataCreatedOnSiteRequest, MetadataCreatedOnSiteResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeletedOnSite
|
||||
*/
|
||||
deletedOnSite(input: MetadataDeletedOnSiteRequest, options?: RpcOptions): UnaryCall<MetadataDeletedOnSiteRequest, MetadataDeletedOnSiteResponse>;
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -53,4 +65,18 @@ export class MetadataInputAPIClient implements IMetadataInputAPIClient, ServiceI
|
||||
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MetadataDeletedRequest, MetadataDeletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CreatedOnSite
|
||||
*/
|
||||
createdOnSite(input: MetadataCreatedOnSiteRequest, options?: RpcOptions): UnaryCall<MetadataCreatedOnSiteRequest, MetadataCreatedOnSiteResponse> {
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MetadataCreatedOnSiteRequest, MetadataCreatedOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeletedOnSite
|
||||
*/
|
||||
deletedOnSite(input: MetadataDeletedOnSiteRequest, options?: RpcOptions): UnaryCall<MetadataDeletedOnSiteRequest, MetadataDeletedOnSiteResponse> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<MetadataDeletedOnSiteRequest, MetadataDeletedOnSiteResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
608
metadataInput.ts
608
metadataInput.ts
@@ -11,6 +11,8 @@ 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 { ResponseSiteHeader } from "./shared";
|
||||
import { RequestSiteHeader } from "./shared";
|
||||
import { ResponseHeader } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
@@ -168,6 +170,157 @@ export interface MetadataDeletedResponse {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
/**
|
||||
* Event Payload
|
||||
*
|
||||
* @generated from protobuf message api.MetadataCreatedOnSitePayload
|
||||
*/
|
||||
export interface MetadataCreatedOnSitePayload {
|
||||
/**
|
||||
* The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements
|
||||
*
|
||||
* @generated from protobuf field: bool IsSegmentationKey = 2
|
||||
*/
|
||||
IsSegmentationKey: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: string Domain = 3
|
||||
*/
|
||||
Domain: string;
|
||||
/**
|
||||
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
|
||||
*
|
||||
* @generated from protobuf field: string Entity = 4
|
||||
*/
|
||||
Entity: string;
|
||||
/**
|
||||
* Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"
|
||||
*
|
||||
* @generated from protobuf field: string Parent = 5
|
||||
*/
|
||||
Parent: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 6
|
||||
*/
|
||||
Name: string;
|
||||
/**
|
||||
* Type attached to the metadata, can be anything such as Item, Actor, Order...
|
||||
*
|
||||
* @generated from protobuf field: string Type = 7
|
||||
*/
|
||||
Type: string;
|
||||
/**
|
||||
* @generated from protobuf field: bool IsMandatory = 8
|
||||
*/
|
||||
IsMandatory: boolean;
|
||||
/**
|
||||
* @generated from protobuf field: string RegularExpression = 10
|
||||
*/
|
||||
RegularExpression: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataType Typology = 11
|
||||
*/
|
||||
Typology: MetadataType;
|
||||
/**
|
||||
* Customizable enumeration
|
||||
*
|
||||
* @generated from protobuf field: repeated string Enumeration = 12
|
||||
*/
|
||||
Enumeration: string[];
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataDisplayType ShowOnCreation = 13
|
||||
*/
|
||||
ShowOnCreation: MetadataDisplayType;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.MetadataDeletedOnSitePayload
|
||||
*/
|
||||
export interface MetadataDeletedOnSitePayload {
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
*
|
||||
* @generated from protobuf message api.MetadataCreatedOnSiteEvent
|
||||
*/
|
||||
export interface MetadataCreatedOnSiteEvent {
|
||||
/**
|
||||
* @generated from protobuf field: api.EventHeader Header = 1
|
||||
*/
|
||||
Header?: EventHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataCreatedOnSitePayload Payload = 3
|
||||
*/
|
||||
Payload?: MetadataCreatedOnSitePayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
*
|
||||
* @generated from protobuf message api.MetadataCreatedOnSiteRequest
|
||||
*/
|
||||
export interface MetadataCreatedOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataCreatedOnSitePayload Payload = 3
|
||||
*/
|
||||
Payload?: MetadataCreatedOnSitePayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
*
|
||||
* @generated from protobuf message api.MetadataDeletedOnSiteRequest
|
||||
*/
|
||||
export interface MetadataDeletedOnSiteRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataDeletedOnSitePayload Payload = 3
|
||||
*/
|
||||
Payload?: MetadataDeletedOnSitePayload;
|
||||
}
|
||||
/**
|
||||
* API Response
|
||||
*
|
||||
* @generated from protobuf message api.MetadataCreatedOnSiteResponse
|
||||
*/
|
||||
export interface MetadataCreatedOnSiteResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.MetadataDeletedOnSiteResponse
|
||||
*/
|
||||
export interface MetadataDeletedOnSiteResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataCreatedPayload$Type extends MessageType<MetadataCreatedPayload> {
|
||||
constructor() {
|
||||
@@ -619,10 +772,463 @@ class MetadataDeletedResponse$Type extends MessageType<MetadataDeletedResponse>
|
||||
* @generated MessageType for protobuf message api.MetadataDeletedResponse
|
||||
*/
|
||||
export const MetadataDeletedResponse = new MetadataDeletedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataCreatedOnSitePayload$Type extends MessageType<MetadataCreatedOnSitePayload> {
|
||||
constructor() {
|
||||
super("api.MetadataCreatedOnSitePayload", [
|
||||
{ no: 2, name: "IsSegmentationKey", kind: "scalar", localName: "IsSegmentationKey", jsonName: "IsSegmentationKey", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The segmentation keys are used to complete the segmentation criteria of the project stock. They also apply to order lines and stock movements" } } },
|
||||
{ no: 3, name: "Domain", kind: "scalar", localName: "Domain", jsonName: "Domain", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { default: "trade" } } },
|
||||
{ no: 4, 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: 5, name: "Parent", kind: "scalar", localName: "Parent", jsonName: "Parent", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Where the metadata is located, either \"Payload.Metadata\" or \"Payload.Goods.SegmentationKeys\"" } } },
|
||||
{ no: 6, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z]{1}[a-zA-Z0-9]*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z]{1}[a-zA-Z0-9]*$" } } },
|
||||
{ no: 7, name: "Type", kind: "scalar", localName: "Type", jsonName: "Type", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type attached to the metadata, can be anything such as Item, Actor, Order..." } } },
|
||||
{ no: 8, name: "IsMandatory", kind: "scalar", localName: "IsMandatory", jsonName: "IsMandatory", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 10, name: "RegularExpression", kind: "scalar", localName: "RegularExpression", jsonName: "RegularExpression", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "Typology", kind: "enum", localName: "Typology", jsonName: "Typology", T: () => ["api.MetadataType", MetadataType] },
|
||||
{ no: 12, name: "Enumeration", kind: "scalar", localName: "Enumeration", jsonName: "Enumeration", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Customizable enumeration" } } },
|
||||
{ no: 13, name: "ShowOnCreation", kind: "enum", localName: "ShowOnCreation", jsonName: "ShowOnCreation", T: () => ["api.MetadataDisplayType", MetadataDisplayType] }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Domain", "Entity", "Parent", "Name", "Type"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CreatedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataCreatedOnSitePayload>): MetadataCreatedOnSitePayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.IsSegmentationKey = false;
|
||||
message.Domain = "";
|
||||
message.Entity = "";
|
||||
message.Parent = "";
|
||||
message.Name = "";
|
||||
message.Type = "";
|
||||
message.IsMandatory = false;
|
||||
message.RegularExpression = "";
|
||||
message.Typology = 0;
|
||||
message.Enumeration = [];
|
||||
message.ShowOnCreation = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataCreatedOnSitePayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataCreatedOnSitePayload): MetadataCreatedOnSitePayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* bool IsSegmentationKey */ 2:
|
||||
message.IsSegmentationKey = reader.bool();
|
||||
break;
|
||||
case /* string Domain */ 3:
|
||||
message.Domain = reader.string();
|
||||
break;
|
||||
case /* string Entity */ 4:
|
||||
message.Entity = reader.string();
|
||||
break;
|
||||
case /* string Parent */ 5:
|
||||
message.Parent = reader.string();
|
||||
break;
|
||||
case /* string Name */ 6:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* string Type */ 7:
|
||||
message.Type = reader.string();
|
||||
break;
|
||||
case /* bool IsMandatory */ 8:
|
||||
message.IsMandatory = reader.bool();
|
||||
break;
|
||||
case /* string RegularExpression */ 10:
|
||||
message.RegularExpression = reader.string();
|
||||
break;
|
||||
case /* api.MetadataType Typology */ 11:
|
||||
message.Typology = reader.int32();
|
||||
break;
|
||||
case /* repeated string Enumeration */ 12:
|
||||
message.Enumeration.push(reader.string());
|
||||
break;
|
||||
case /* api.MetadataDisplayType ShowOnCreation */ 13:
|
||||
message.ShowOnCreation = reader.int32();
|
||||
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: MetadataCreatedOnSitePayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* bool IsSegmentationKey = 2; */
|
||||
if (message.IsSegmentationKey !== false)
|
||||
writer.tag(2, WireType.Varint).bool(message.IsSegmentationKey);
|
||||
/* string Domain = 3; */
|
||||
if (message.Domain !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.Domain);
|
||||
/* string Entity = 4; */
|
||||
if (message.Entity !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.Entity);
|
||||
/* string Parent = 5; */
|
||||
if (message.Parent !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.Parent);
|
||||
/* string Name = 6; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Name);
|
||||
/* string Type = 7; */
|
||||
if (message.Type !== "")
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.Type);
|
||||
/* bool IsMandatory = 8; */
|
||||
if (message.IsMandatory !== false)
|
||||
writer.tag(8, WireType.Varint).bool(message.IsMandatory);
|
||||
/* string RegularExpression = 10; */
|
||||
if (message.RegularExpression !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.RegularExpression);
|
||||
/* api.MetadataType Typology = 11; */
|
||||
if (message.Typology !== 0)
|
||||
writer.tag(11, WireType.Varint).int32(message.Typology);
|
||||
/* repeated string Enumeration = 12; */
|
||||
for (let i = 0; i < message.Enumeration.length; i++)
|
||||
writer.tag(12, WireType.LengthDelimited).string(message.Enumeration[i]);
|
||||
/* api.MetadataDisplayType ShowOnCreation = 13; */
|
||||
if (message.ShowOnCreation !== 0)
|
||||
writer.tag(13, WireType.Varint).int32(message.ShowOnCreation);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.MetadataCreatedOnSitePayload
|
||||
*/
|
||||
export const MetadataCreatedOnSitePayload = new MetadataCreatedOnSitePayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataDeletedOnSitePayload$Type extends MessageType<MetadataDeletedOnSitePayload> {
|
||||
constructor() {
|
||||
super("api.MetadataDeletedOnSitePayload", [], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "DeletedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataDeletedOnSitePayload>): MetadataDeletedOnSitePayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataDeletedOnSitePayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataDeletedOnSitePayload): MetadataDeletedOnSitePayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
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: MetadataDeletedOnSitePayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.MetadataDeletedOnSitePayload
|
||||
*/
|
||||
export const MetadataDeletedOnSitePayload = new MetadataDeletedOnSitePayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataCreatedOnSiteEvent$Type extends MessageType<MetadataCreatedOnSiteEvent> {
|
||||
constructor() {
|
||||
super("api.MetadataCreatedOnSiteEvent", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => EventHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MetadataCreatedOnSitePayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Event", "api.inputEvent": "CreatedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataCreatedOnSiteEvent>): MetadataCreatedOnSiteEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataCreatedOnSiteEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataCreatedOnSiteEvent): MetadataCreatedOnSiteEvent {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.EventHeader Header */ 1:
|
||||
message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.MetadataCreatedOnSitePayload Payload */ 3:
|
||||
message.Payload = MetadataCreatedOnSitePayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
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: MetadataCreatedOnSiteEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.EventHeader Header = 1; */
|
||||
if (message.Header)
|
||||
EventHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.MetadataCreatedOnSitePayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
MetadataCreatedOnSitePayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.MetadataCreatedOnSiteEvent
|
||||
*/
|
||||
export const MetadataCreatedOnSiteEvent = new MetadataCreatedOnSiteEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataCreatedOnSiteRequest$Type extends MessageType<MetadataCreatedOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.MetadataCreatedOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MetadataCreatedOnSitePayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CreatedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataCreatedOnSiteRequest>): MetadataCreatedOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataCreatedOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataCreatedOnSiteRequest): MetadataCreatedOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
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);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.MetadataCreatedOnSitePayload Payload */ 3:
|
||||
message.Payload = MetadataCreatedOnSitePayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
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: MetadataCreatedOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.MetadataCreatedOnSitePayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
MetadataCreatedOnSitePayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.MetadataCreatedOnSiteRequest
|
||||
*/
|
||||
export const MetadataCreatedOnSiteRequest = new MetadataCreatedOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataDeletedOnSiteRequest$Type extends MessageType<MetadataDeletedOnSiteRequest> {
|
||||
constructor() {
|
||||
super("api.MetadataDeletedOnSiteRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MetadataDeletedOnSitePayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "DeletedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataDeletedOnSiteRequest>): MetadataDeletedOnSiteRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataDeletedOnSiteRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataDeletedOnSiteRequest): MetadataDeletedOnSiteRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
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);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.MetadataDeletedOnSitePayload Payload */ 3:
|
||||
message.Payload = MetadataDeletedOnSitePayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
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: MetadataDeletedOnSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.MetadataDeletedOnSitePayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
MetadataDeletedOnSitePayload.internalBinaryWrite(message.Payload, writer.tag(3, 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.MetadataDeletedOnSiteRequest
|
||||
*/
|
||||
export const MetadataDeletedOnSiteRequest = new MetadataDeletedOnSiteRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataCreatedOnSiteResponse$Type extends MessageType<MetadataCreatedOnSiteResponse> {
|
||||
constructor() {
|
||||
super("api.MetadataCreatedOnSiteResponse", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
|
||||
], { "api.messageType": "Response", "api.inputEvent": "CreatedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataCreatedOnSiteResponse>): MetadataCreatedOnSiteResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataCreatedOnSiteResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataCreatedOnSiteResponse): MetadataCreatedOnSiteResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseSiteHeader Header */ 1:
|
||||
message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
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: MetadataCreatedOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, 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.MetadataCreatedOnSiteResponse
|
||||
*/
|
||||
export const MetadataCreatedOnSiteResponse = new MetadataCreatedOnSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataDeletedOnSiteResponse$Type extends MessageType<MetadataDeletedOnSiteResponse> {
|
||||
constructor() {
|
||||
super("api.MetadataDeletedOnSiteResponse", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
|
||||
], { "api.messageType": "Response", "api.inputEvent": "DeletedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataDeletedOnSiteResponse>): MetadataDeletedOnSiteResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<MetadataDeletedOnSiteResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataDeletedOnSiteResponse): MetadataDeletedOnSiteResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseSiteHeader Header */ 1:
|
||||
message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
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: MetadataDeletedOnSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, 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.MetadataDeletedOnSiteResponse
|
||||
*/
|
||||
export const MetadataDeletedOnSiteResponse = new MetadataDeletedOnSiteResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.MetadataInputAPI
|
||||
*/
|
||||
export const MetadataInputAPI = new ServiceType("api.MetadataInputAPI", [
|
||||
{ name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata Inputs"], description: "A metadataDef has been created." }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "api.platformReserved": true, "google.api.method_visibility": { restriction: "SDK" } }, I: MetadataCreatedRequest, O: MetadataCreatedResponse },
|
||||
{ name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata Inputs"], description: "A metadataDef has been deleted." }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "api.platformReserved": true, "google.api.method_visibility": { restriction: "SDK" } }, I: MetadataDeletedRequest, O: MetadataDeletedResponse }
|
||||
{ name: "Deleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata Inputs"], description: "A metadataDef has been deleted." }, "api.rscType": "Project", "api.roles": "Platform.Project-Metadata", "api.platformReserved": true, "google.api.method_visibility": { restriction: "SDK" } }, I: MetadataDeletedRequest, O: MetadataDeletedResponse },
|
||||
{ name: "CreatedOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata Inputs"], description: "A metadataDef has been created on a site." }, "api.rscType": "Site", "api.roles": "Platform.Project-Metadata", "api.platformReserved": true, "google.api.method_visibility": { restriction: "SDK" } }, I: MetadataCreatedOnSiteRequest, O: MetadataCreatedOnSiteResponse },
|
||||
{ name: "DeletedOnSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Metadata Inputs"], description: "A metadataDef has been deleted on a site." }, "api.rscType": "Site", "api.roles": "Platform.Project-Metadata", "api.platformReserved": true, "google.api.method_visibility": { restriction: "SDK" } }, I: MetadataDeletedOnSiteRequest, O: MetadataDeletedOnSiteResponse }
|
||||
], { "api.serviceType": "Api", "api.k8sService": "api-server,collab-api-server" });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250603121817",
|
||||
"version": "1.11.0-SNAPSHOT-250603124143",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user