You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -10,6 +10,7 @@ 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 { MetadataElement } from "./shared";
|
||||
import { AppointmentStatusStruct } from "./collabShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
@@ -102,6 +103,10 @@ export interface AppointmentPayload {
|
||||
* @generated from protobuf field: string CreationDate = 9
|
||||
*/
|
||||
CreationDate: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MetadataElement MetaData = 10
|
||||
*/
|
||||
MetaData: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentTriplet
|
||||
@@ -192,7 +197,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
|
||||
{ no: 8, name: "Status", kind: "message", localName: "Status", jsonName: "Status", T: () => AppointmentStatusStruct, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Status of the appointment" }, "api.aggSkip": "StatusUpdated" } },
|
||||
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } }
|
||||
{ no: 9, name: "CreationDate", kind: "scalar", localName: "CreationDate", jsonName: "CreationDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "api.viewType": { Types: [{ Context: "*", Type: "date" }] } } },
|
||||
{ no: 10, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
|
||||
@@ -204,6 +210,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.CreationDate = "";
|
||||
message.MetaData = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -240,6 +247,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
case /* string CreationDate */ 9:
|
||||
message.CreationDate = reader.string();
|
||||
break;
|
||||
case /* repeated api.MetadataElement MetaData */ 10:
|
||||
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -279,6 +289,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
|
||||
/* string CreationDate = 9; */
|
||||
if (message.CreationDate !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.CreationDate);
|
||||
/* repeated api.MetadataElement MetaData = 10; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { AppointmentInputAPI } from "./appointmentInput";
|
||||
import type { AppointmentMetaDataUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentMetaDataUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCarrierDepartedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCarrierDepartedRequest } from "./appointmentInput";
|
||||
import type { AppointmentReceptionUnloadedResponse } from "./appointmentInput";
|
||||
@@ -74,6 +76,10 @@ export interface IAppointmentInputAPIClient {
|
||||
* @generated from protobuf rpc: CarrierDeparted
|
||||
*/
|
||||
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: MetaDataUpdated
|
||||
*/
|
||||
metaDataUpdated(input: AppointmentMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse>;
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -157,4 +163,11 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: MetaDataUpdated
|
||||
*/
|
||||
metaDataUpdated(input: AppointmentMetaDataUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,10 +11,13 @@ 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 { ResponseHeader } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
import { ResponseSiteHeader } from "./shared";
|
||||
import { RequestSiteHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { EventHeader } from "./shared";
|
||||
import { MetadataElement } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
@@ -74,6 +77,10 @@ export interface AppointmentCreatedPayload {
|
||||
* @generated from protobuf field: repeated string Emails = 7
|
||||
*/
|
||||
Emails: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MetadataElement MetaData = 8
|
||||
*/
|
||||
MetaData: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -701,6 +708,70 @@ export interface AppointmentCarrierDepartedResponse {
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// MetaDataUpdated
|
||||
// - Inform the Appointment about a metadata update.
|
||||
//
|
||||
// Comments updated 2022/10/19
|
||||
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentMetaDataUpdatedPayload
|
||||
*/
|
||||
export interface AppointmentMetaDataUpdatedPayload {
|
||||
/**
|
||||
* Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MetadataElement MetaData = 1
|
||||
*/
|
||||
MetaData: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentMetaDataUpdatedEvent
|
||||
*/
|
||||
export interface AppointmentMetaDataUpdatedEvent {
|
||||
/**
|
||||
* @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.AppointmentMetaDataUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentMetaDataUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentMetaDataUpdatedRequest
|
||||
*/
|
||||
export interface AppointmentMetaDataUpdatedRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentMetaDataUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentMetaDataUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.AppointmentMetaDataUpdatedResponse
|
||||
*/
|
||||
export interface AppointmentMetaDataUpdatedResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPayload> {
|
||||
constructor() {
|
||||
@@ -711,7 +782,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
{ no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } }
|
||||
{ no: 7, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { email: true, ignoreEmpty: true } } } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Must be a valid email address", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
|
||||
{ no: 8, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCreatedPayload>): AppointmentCreatedPayload {
|
||||
@@ -722,6 +794,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
message.Segmentations = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.MetaData = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCreatedPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -752,6 +825,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* repeated string Emails */ 7:
|
||||
message.Emails.push(reader.string());
|
||||
break;
|
||||
case /* repeated api.MetadataElement MetaData */ 8:
|
||||
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -785,6 +861,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* repeated string Emails = 7; */
|
||||
for (let i = 0; i < message.Emails.length; i++)
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.Emails[i]);
|
||||
/* repeated api.MetadataElement MetaData = 8; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2876,6 +2955,226 @@ class AppointmentCarrierDepartedResponse$Type extends MessageType<AppointmentCar
|
||||
* @generated MessageType for protobuf message api.AppointmentCarrierDepartedResponse
|
||||
*/
|
||||
export const AppointmentCarrierDepartedResponse = new AppointmentCarrierDepartedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentMetaDataUpdatedPayload$Type extends MessageType<AppointmentMetaDataUpdatedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentMetaDataUpdatedPayload", [
|
||||
{ no: 1, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "MetaDataUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentMetaDataUpdatedPayload>): AppointmentMetaDataUpdatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.MetaData = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentMetaDataUpdatedPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedPayload): AppointmentMetaDataUpdatedPayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.MetadataElement MetaData */ 1:
|
||||
message.MetaData.push(MetadataElement.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: AppointmentMetaDataUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.MetadataElement MetaData = 1; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[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.AppointmentMetaDataUpdatedPayload
|
||||
*/
|
||||
export const AppointmentMetaDataUpdatedPayload = new AppointmentMetaDataUpdatedPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentMetaDataUpdatedEvent$Type extends MessageType<AppointmentMetaDataUpdatedEvent> {
|
||||
constructor() {
|
||||
super("api.AppointmentMetaDataUpdatedEvent", [
|
||||
{ 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: () => AppointmentMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "api.messageType": "Event", "api.inputEvent": "MetaDataUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentMetaDataUpdatedEvent>): AppointmentMetaDataUpdatedEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentMetaDataUpdatedEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedEvent): AppointmentMetaDataUpdatedEvent {
|
||||
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.AppointmentMetaDataUpdatedPayload Payload */ 3:
|
||||
message.Payload = AppointmentMetaDataUpdatedPayload.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: AppointmentMetaDataUpdatedEvent, 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.AppointmentMetaDataUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentMetaDataUpdatedPayload.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.AppointmentMetaDataUpdatedEvent
|
||||
*/
|
||||
export const AppointmentMetaDataUpdatedEvent = new AppointmentMetaDataUpdatedEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentMetaDataUpdatedRequest$Type extends MessageType<AppointmentMetaDataUpdatedRequest> {
|
||||
constructor() {
|
||||
super("api.AppointmentMetaDataUpdatedRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: () => AppointmentMetaDataUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "MetaDataUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentMetaDataUpdatedRequest>): AppointmentMetaDataUpdatedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentMetaDataUpdatedRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedRequest): AppointmentMetaDataUpdatedRequest {
|
||||
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 /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.AppointmentMetaDataUpdatedPayload Payload */ 3:
|
||||
message.Payload = AppointmentMetaDataUpdatedPayload.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: AppointmentMetaDataUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.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.AppointmentMetaDataUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentMetaDataUpdatedPayload.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.AppointmentMetaDataUpdatedRequest
|
||||
*/
|
||||
export const AppointmentMetaDataUpdatedRequest = new AppointmentMetaDataUpdatedRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentMetaDataUpdatedResponse$Type extends MessageType<AppointmentMetaDataUpdatedResponse> {
|
||||
constructor() {
|
||||
super("api.AppointmentMetaDataUpdatedResponse", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseHeader },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
|
||||
], { "api.messageType": "Response", "api.inputEvent": "MetaDataUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentMetaDataUpdatedResponse>): AppointmentMetaDataUpdatedResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentMetaDataUpdatedResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentMetaDataUpdatedResponse): AppointmentMetaDataUpdatedResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseHeader Header */ 1:
|
||||
message.Header = ResponseHeader.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: AppointmentMetaDataUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseHeader.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.AppointmentMetaDataUpdatedResponse
|
||||
*/
|
||||
export const AppointmentMetaDataUpdatedResponse = new AppointmentMetaDataUpdatedResponse$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.AppointmentInputAPI
|
||||
*/
|
||||
@@ -2889,5 +3188,6 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
|
||||
{ name: "ExpeditionLoaded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment expedition is loaded." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentExpeditionLoadedRequest, O: AppointmentExpeditionLoadedResponse },
|
||||
{ name: "ReceptionStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment reception is started." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentReceptionStartedRequest, O: AppointmentReceptionStartedResponse },
|
||||
{ name: "ReceptionUnloaded", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment reception is unloaded." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentReceptionUnloadedRequest, O: AppointmentReceptionUnloadedResponse },
|
||||
{ name: "CarrierDeparted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is departed for the appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierDepartedRequest, O: AppointmentCarrierDepartedResponse }
|
||||
{ name: "CarrierDeparted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is departed for the appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "slotbooking", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierDepartedRequest, O: AppointmentCarrierDepartedResponse },
|
||||
{ name: "MetaDataUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "Some metadata have been updated on an appointment. This is typically called from ERP or WMS." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentMetaDataUpdatedRequest, O: AppointmentMetaDataUpdatedResponse }
|
||||
], { "api.serviceType": "Api", "api.k8sService": "collab-api-server" });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250603085342",
|
||||
"version": "1.11.0-SNAPSHOT-250603120712",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user