You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -480,8 +480,8 @@ export const AppointmentByMatchResult = new AppointmentByMatchResult$Type();
|
||||
* @generated ServiceType for protobuf service api.AppointmentQuery
|
||||
*/
|
||||
export const AppointmentQuery = new ServiceType("api.AppointmentQuery", [
|
||||
{ name: "GetByIds", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointments from Ids" }, "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "slobooking", "api.tableName": "appointmentById", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByIdQuery, O: AppointmentByIdResult },
|
||||
{ name: "Find", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find Appointments using search criterias" }, "api.customQuery": true, "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "slobooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByFilterQuery, O: AppointmentByFilterResult },
|
||||
{ name: "GetByIds", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointments from Ids" }, "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "slotbooking", "api.tableName": "appointmentById", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByIdQuery, O: AppointmentByIdResult },
|
||||
{ name: "Find", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find Appointments using search criterias" }, "api.customQuery": true, "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByFilterQuery, O: AppointmentByFilterResult },
|
||||
{ name: "FindMatchingFieldValues", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Using search criteria & a main field word, find the list of fields containing the searched word (used for auto completion purposes ...) " }, "api.customQuery": true, "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByMatchQuery, O: AppointmentByMatchResult },
|
||||
{ name: "FindMatchingFieldElements", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "using search criteria & a main field word, find the list of field elements containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ElementByMatchSiteQuery, O: ElementByMatchResult },
|
||||
{ name: "Extract", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Schedule a data extraction" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractSiteQuery, O: ExtractResult },
|
||||
|
||||
264
metadataInput.ts
264
metadataInput.ts
@@ -173,68 +173,21 @@ export interface MetadataDeletedResponse {
|
||||
/**
|
||||
* Event Payload
|
||||
*
|
||||
* @generated from protobuf message api.MetadataCreatedOnSitePayload
|
||||
* @generated from protobuf message api.MetadataDeletedOnSiteEvent
|
||||
*/
|
||||
export interface MetadataCreatedOnSitePayload {
|
||||
export interface MetadataDeletedOnSiteEvent {
|
||||
/**
|
||||
* 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
|
||||
* @generated from protobuf field: api.EventHeader Header = 1
|
||||
*/
|
||||
IsSegmentationKey: boolean;
|
||||
Header?: EventHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Domain = 3
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
Domain: string;
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* Entity where the metadata will be created. It can be \"executionflow\", \"handlingunit\", \"item\", \"order\", \"stock\"
|
||||
*
|
||||
* @generated from protobuf field: string Entity = 4
|
||||
* @generated from protobuf field: api.MetadataDeletedPayload Payload = 3
|
||||
*/
|
||||
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 {
|
||||
Payload?: MetadataDeletedPayload;
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -251,9 +204,9 @@ export interface MetadataCreatedOnSiteEvent {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataCreatedOnSitePayload Payload = 3
|
||||
* @generated from protobuf field: api.MetadataCreatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: MetadataCreatedOnSitePayload;
|
||||
Payload?: MetadataCreatedPayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
@@ -270,9 +223,9 @@ export interface MetadataCreatedOnSiteRequest {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataCreatedOnSitePayload Payload = 3
|
||||
* @generated from protobuf field: api.MetadataCreatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: MetadataCreatedOnSitePayload;
|
||||
Payload?: MetadataCreatedPayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
@@ -289,9 +242,9 @@ export interface MetadataDeletedOnSiteRequest {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.MetadataDeletedOnSitePayload Payload = 3
|
||||
* @generated from protobuf field: api.MetadataDeletedPayload Payload = 3
|
||||
*/
|
||||
Payload?: MetadataDeletedOnSitePayload;
|
||||
Payload?: MetadataDeletedPayload;
|
||||
}
|
||||
/**
|
||||
* API Response
|
||||
@@ -773,76 +726,33 @@ class MetadataDeletedResponse$Type extends MessageType<MetadataDeletedResponse>
|
||||
*/
|
||||
export const MetadataDeletedResponse = new MetadataDeletedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class MetadataCreatedOnSitePayload$Type extends MessageType<MetadataCreatedOnSitePayload> {
|
||||
class MetadataDeletedOnSiteEvent$Type extends MessageType<MetadataDeletedOnSiteEvent> {
|
||||
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" });
|
||||
super("api.MetadataDeletedOnSiteEvent", [
|
||||
{ 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: () => MetadataDeletedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Event", "api.inputEvent": "DeletedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataCreatedOnSitePayload>): MetadataCreatedOnSitePayload {
|
||||
create(value?: PartialMessage<MetadataDeletedOnSiteEvent>): MetadataDeletedOnSiteEvent {
|
||||
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);
|
||||
reflectionMergePartial<MetadataDeletedOnSiteEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataCreatedOnSitePayload): MetadataCreatedOnSitePayload {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MetadataDeletedOnSiteEvent): MetadataDeletedOnSiteEvent {
|
||||
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();
|
||||
case /* api.EventHeader Header */ 1:
|
||||
message.Header = EventHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Domain */ 3:
|
||||
message.Domain = reader.string();
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
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();
|
||||
case /* api.MetadataDeletedPayload Payload */ 3:
|
||||
message.Payload = MetadataDeletedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -855,40 +765,16 @@ class MetadataCreatedOnSitePayload$Type extends MessageType<MetadataCreatedOnSit
|
||||
}
|
||||
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);
|
||||
internalBinaryWrite(message: MetadataDeletedOnSiteEvent, 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.MetadataDeletedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
MetadataDeletedPayload.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);
|
||||
@@ -896,54 +782,16 @@ class MetadataCreatedOnSitePayload$Type extends MessageType<MetadataCreatedOnSit
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.MetadataCreatedOnSitePayload
|
||||
* @generated MessageType for protobuf message api.MetadataDeletedOnSiteEvent
|
||||
*/
|
||||
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();
|
||||
export const MetadataDeletedOnSiteEvent = new MetadataDeletedOnSiteEvent$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 } } } }
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MetadataCreatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Event", "api.inputEvent": "CreatedOnSite" });
|
||||
}
|
||||
create(value?: PartialMessage<MetadataCreatedOnSiteEvent>): MetadataCreatedOnSiteEvent {
|
||||
@@ -963,8 +811,8 @@ class MetadataCreatedOnSiteEvent$Type extends MessageType<MetadataCreatedOnSiteE
|
||||
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);
|
||||
case /* api.MetadataCreatedPayload Payload */ 3:
|
||||
message.Payload = MetadataCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -984,9 +832,9 @@ class MetadataCreatedOnSiteEvent$Type extends MessageType<MetadataCreatedOnSiteE
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.MetadataCreatedOnSitePayload Payload = 3; */
|
||||
/* api.MetadataCreatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
MetadataCreatedOnSitePayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
MetadataCreatedPayload.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);
|
||||
@@ -1003,7 +851,7 @@ class MetadataCreatedOnSiteRequest$Type extends MessageType<MetadataCreatedOnSit
|
||||
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 } } } }
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MetadataCreatedPayload, 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 {
|
||||
@@ -1023,8 +871,8 @@ class MetadataCreatedOnSiteRequest$Type extends MessageType<MetadataCreatedOnSit
|
||||
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);
|
||||
case /* api.MetadataCreatedPayload Payload */ 3:
|
||||
message.Payload = MetadataCreatedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1044,9 +892,9 @@ class MetadataCreatedOnSiteRequest$Type extends MessageType<MetadataCreatedOnSit
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.MetadataCreatedOnSitePayload Payload = 3; */
|
||||
/* api.MetadataCreatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
MetadataCreatedOnSitePayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
MetadataCreatedPayload.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);
|
||||
@@ -1063,7 +911,7 @@ class MetadataDeletedOnSiteRequest$Type extends MessageType<MetadataDeletedOnSit
|
||||
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 } } } }
|
||||
{ no: 3, name: "Payload", kind: "message", localName: "Payload", jsonName: "Payload", T: () => MetadataDeletedPayload, 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 {
|
||||
@@ -1083,8 +931,8 @@ class MetadataDeletedOnSiteRequest$Type extends MessageType<MetadataDeletedOnSit
|
||||
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);
|
||||
case /* api.MetadataDeletedPayload Payload */ 3:
|
||||
message.Payload = MetadataDeletedPayload.internalBinaryRead(reader, reader.uint32(), options, message.Payload);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1104,9 +952,9 @@ class MetadataDeletedOnSiteRequest$Type extends MessageType<MetadataDeletedOnSit
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.MetadataDeletedOnSitePayload Payload = 3; */
|
||||
/* api.MetadataDeletedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
MetadataDeletedOnSitePayload.internalBinaryWrite(message.Payload, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
MetadataDeletedPayload.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);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250609142607",
|
||||
"version": "1.11.0-SNAPSHOT-250610065316",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
12
shared.ts
12
shared.ts
@@ -378,6 +378,10 @@ export interface CommandHeader {
|
||||
* @generated from protobuf field: string Project = 3
|
||||
*/
|
||||
Project: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Site = 9
|
||||
*/
|
||||
Site: string;
|
||||
/**
|
||||
* @generated from protobuf field: string FromDomain = 4
|
||||
*/
|
||||
@@ -3626,6 +3630,7 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
||||
{ no: 1, name: "ActionCommand", kind: "scalar", localName: "ActionCommand", jsonName: "ActionCommand", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "CommandTS", kind: "message", localName: "CommandTS", jsonName: "CommandTS", T: () => DateTime },
|
||||
{ no: 3, name: "Project", kind: "scalar", localName: "Project", jsonName: "Project", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 9, name: "Site", kind: "scalar", localName: "Site", jsonName: "Site", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "FromDomain", kind: "scalar", localName: "FromDomain", jsonName: "FromDomain", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "FromObject", kind: "scalar", localName: "FromObject", jsonName: "FromObject", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "FromRule", kind: "scalar", localName: "FromRule", jsonName: "FromRule", T: 9 /*ScalarType.STRING*/ },
|
||||
@@ -3637,6 +3642,7 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ActionCommand = "";
|
||||
message.Project = "";
|
||||
message.Site = "";
|
||||
message.FromDomain = "";
|
||||
message.FromObject = "";
|
||||
message.FromRule = "";
|
||||
@@ -3660,6 +3666,9 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
||||
case /* string Project */ 3:
|
||||
message.Project = reader.string();
|
||||
break;
|
||||
case /* string Site */ 9:
|
||||
message.Site = reader.string();
|
||||
break;
|
||||
case /* string FromDomain */ 4:
|
||||
message.FromDomain = reader.string();
|
||||
break;
|
||||
@@ -3711,6 +3720,9 @@ class CommandHeader$Type extends MessageType<CommandHeader> {
|
||||
/* string FromAuthor = 8; */
|
||||
if (message.FromAuthor !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.FromAuthor);
|
||||
/* string Site = 9; */
|
||||
if (message.Site !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.Site);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user