You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -30,6 +30,8 @@ import type { AppointmentLoadingStartedResponse } from "./appointmentInput";
|
||||
import type { AppointmentLoadingStartedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCarrierArrivedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCarrierArrivedRequest } from "./appointmentInput";
|
||||
import type { AppointmentAllocationErrorResponse } from "./appointmentInput";
|
||||
import type { AppointmentAllocationErrorRequest } from "./appointmentInput";
|
||||
import type { AppointmentCarrierExpectedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCarrierExpectedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCarrierInformationUpdatedResponse } from "./appointmentInput";
|
||||
@@ -76,6 +78,10 @@ export interface IAppointmentInputAPIClient {
|
||||
* @generated from protobuf rpc: CarrierExpected
|
||||
*/
|
||||
carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: AllocationError
|
||||
*/
|
||||
allocationError(input: AppointmentAllocationErrorRequest, options?: RpcOptions): UnaryCall<AppointmentAllocationErrorRequest, AppointmentAllocationErrorResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierArrived
|
||||
*/
|
||||
@@ -183,95 +189,102 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AllocationError
|
||||
*/
|
||||
allocationError(input: AppointmentAllocationErrorRequest, options?: RpcOptions): UnaryCall<AppointmentAllocationErrorRequest, AppointmentAllocationErrorResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAllocationErrorRequest, AppointmentAllocationErrorResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierArrived
|
||||
*/
|
||||
carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LoadingStarted
|
||||
*/
|
||||
loadingStarted(input: AppointmentLoadingStartedRequest, options?: RpcOptions): UnaryCall<AppointmentLoadingStartedRequest, AppointmentLoadingStartedResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentLoadingStartedRequest, AppointmentLoadingStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: LoadingCompleted
|
||||
*/
|
||||
loadingCompleted(input: AppointmentLoadingCompletedRequest, options?: RpcOptions): UnaryCall<AppointmentLoadingCompletedRequest, AppointmentLoadingCompletedResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentLoadingCompletedRequest, AppointmentLoadingCompletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UnloadingStarted
|
||||
*/
|
||||
unloadingStarted(input: AppointmentUnloadingStartedRequest, options?: RpcOptions): UnaryCall<AppointmentUnloadingStartedRequest, AppointmentUnloadingStartedResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentUnloadingStartedRequest, AppointmentUnloadingStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UnloadingCompleted
|
||||
*/
|
||||
unloadingCompleted(input: AppointmentUnloadingCompletedRequest, options?: RpcOptions): UnaryCall<AppointmentUnloadingCompletedRequest, AppointmentUnloadingCompletedResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentUnloadingCompletedRequest, AppointmentUnloadingCompletedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierDeparted
|
||||
*/
|
||||
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[12], 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[12], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentMetaDataUpdatedRequest, AppointmentMetaDataUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttachmentAdded
|
||||
*/
|
||||
attachmentAdded(input: AppointmentAttachmentAddedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttachmentAddedRequest, AppointmentAttachmentAddedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: AttachmentRemoved
|
||||
*/
|
||||
attachmentRemoved(input: AppointmentAttachmentRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: EmailsAdded
|
||||
*/
|
||||
emailsAdded(input: AppointmentEmailsAddedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentEmailsAddedRequest, AppointmentEmailsAddedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: EmailsRemoved
|
||||
*/
|
||||
emailsRemoved(input: AppointmentEmailsRemovedRequest, options?: RpcOptions): UnaryCall<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentEmailsRemovedRequest, AppointmentEmailsRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: Sanitised
|
||||
*/
|
||||
sanitised(input: AppointmentSanitisedRequest, options?: RpcOptions): UnaryCall<AppointmentSanitisedRequest, AppointmentSanitisedResponse> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentSanitisedRequest, AppointmentSanitisedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CustomFieldsUpdated
|
||||
*/
|
||||
customFieldsUpdated(input: AppointmentCustomFieldsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCustomFieldsUpdatedRequest, AppointmentCustomFieldsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -658,6 +658,73 @@ export interface AppointmentCarrierExpectedResponse {
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// An error occured on Allocation. This is typically called from an WMS when the something wrong happens on the appointment
|
||||
|
||||
/**
|
||||
* Event Payload
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentAllocationErrorPayload
|
||||
*/
|
||||
export interface AppointmentAllocationErrorPayload {
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 1
|
||||
*/
|
||||
ActorID: string;
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentAllocationErrorEvent
|
||||
*/
|
||||
export interface AppointmentAllocationErrorEvent {
|
||||
/**
|
||||
* @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.AppointmentAllocationErrorPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentAllocationErrorPayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentAllocationErrorRequest
|
||||
*/
|
||||
export interface AppointmentAllocationErrorRequest {
|
||||
/**
|
||||
* @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.AppointmentAllocationErrorPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentAllocationErrorPayload;
|
||||
}
|
||||
/**
|
||||
* API Response
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentAllocationErrorResponse
|
||||
*/
|
||||
export interface AppointmentAllocationErrorResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// CarrierArrived : this message tells that appointment carrier is expected
|
||||
|
||||
/**
|
||||
@@ -3303,6 +3370,226 @@ class AppointmentCarrierExpectedResponse$Type extends MessageType<AppointmentCar
|
||||
*/
|
||||
export const AppointmentCarrierExpectedResponse = new AppointmentCarrierExpectedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentAllocationErrorPayload$Type extends MessageType<AppointmentAllocationErrorPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentAllocationErrorPayload", [
|
||||
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "AllocationError" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentAllocationErrorPayload>): AppointmentAllocationErrorPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ActorID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentAllocationErrorPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorPayload): AppointmentAllocationErrorPayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ActorID */ 1:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentAllocationErrorPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ActorID = 1; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AppointmentAllocationErrorPayload
|
||||
*/
|
||||
export const AppointmentAllocationErrorPayload = new AppointmentAllocationErrorPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentAllocationErrorEvent$Type extends MessageType<AppointmentAllocationErrorEvent> {
|
||||
constructor() {
|
||||
super("api.AppointmentAllocationErrorEvent", [
|
||||
{ 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: () => AppointmentAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "AllocationError" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentAllocationErrorEvent>): AppointmentAllocationErrorEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentAllocationErrorEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorEvent): AppointmentAllocationErrorEvent {
|
||||
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.AppointmentAllocationErrorPayload Payload */ 3:
|
||||
message.Payload = AppointmentAllocationErrorPayload.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: AppointmentAllocationErrorEvent, 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.AppointmentAllocationErrorPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentAllocationErrorPayload.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.AppointmentAllocationErrorEvent
|
||||
*/
|
||||
export const AppointmentAllocationErrorEvent = new AppointmentAllocationErrorEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentAllocationErrorRequest$Type extends MessageType<AppointmentAllocationErrorRequest> {
|
||||
constructor() {
|
||||
super("api.AppointmentAllocationErrorRequest", [
|
||||
{ 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: () => AppointmentAllocationErrorPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "AllocationError" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentAllocationErrorRequest>): AppointmentAllocationErrorRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentAllocationErrorRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorRequest): AppointmentAllocationErrorRequest {
|
||||
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.AppointmentAllocationErrorPayload Payload */ 3:
|
||||
message.Payload = AppointmentAllocationErrorPayload.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: AppointmentAllocationErrorRequest, 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.AppointmentAllocationErrorPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentAllocationErrorPayload.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.AppointmentAllocationErrorRequest
|
||||
*/
|
||||
export const AppointmentAllocationErrorRequest = new AppointmentAllocationErrorRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentAllocationErrorResponse$Type extends MessageType<AppointmentAllocationErrorResponse> {
|
||||
constructor() {
|
||||
super("api.AppointmentAllocationErrorResponse", [
|
||||
{ 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": "AllocationError" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentAllocationErrorResponse>): AppointmentAllocationErrorResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentAllocationErrorResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentAllocationErrorResponse): AppointmentAllocationErrorResponse {
|
||||
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: AppointmentAllocationErrorResponse, 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.AppointmentAllocationErrorResponse
|
||||
*/
|
||||
export const AppointmentAllocationErrorResponse = new AppointmentAllocationErrorResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentCarrierArrivedPayload$Type extends MessageType<AppointmentCarrierArrivedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentCarrierArrivedPayload", [
|
||||
@@ -5755,7 +6042,8 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
|
||||
{ name: "SlotUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentSlotUpdatedRequest, O: AppointmentSlotUpdatedResponse },
|
||||
{ name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment commissions has been modified." }, "api.rscType": "Project", "api.roles": "Platform.Project-Appointment", "api.platformReserved": true, "api.moduleID": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: AppointmentCommissionsUpdatedRequest, O: AppointmentCommissionsUpdatedResponse },
|
||||
{ name: "CarrierInformationUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment carrier information have been updated." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierInformationUpdatedRequest, O: AppointmentCarrierInformationUpdatedResponse },
|
||||
{ name: "CarrierExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is exopected for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse },
|
||||
{ name: "CarrierExpected", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is expected for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse },
|
||||
{ name: "AllocationError", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An allocation error occured on the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentAllocationErrorRequest, O: AppointmentAllocationErrorResponse },
|
||||
{ name: "CarrierArrived", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is arrived for the appointment." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierArrivedRequest, O: AppointmentCarrierArrivedResponse },
|
||||
{ name: "LoadingStarted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment loading is started." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentLoadingStartedRequest, O: AppointmentLoadingStartedResponse },
|
||||
{ name: "LoadingCompleted", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The appointment loading is completed." }, "api.rscType": "Project", "api.roles": "Platform.Project-Input", "api.moduleID": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentLoadingCompletedRequest, O: AppointmentLoadingCompletedResponse },
|
||||
|
||||
@@ -262,6 +262,10 @@ export enum AppointmentStatusCode {
|
||||
* @generated from protobuf enum value: APPOINTMENT_0100_CREATED = 100;
|
||||
*/
|
||||
APPOINTMENT_0100_CREATED = 100,
|
||||
/**
|
||||
* @generated from protobuf enum value: APPOINTMENT_0150_ALLOCATION_ERROR = 104;
|
||||
*/
|
||||
APPOINTMENT_0150_ALLOCATION_ERROR = 104,
|
||||
/**
|
||||
* APPOINTMENT_0200_CARRIER_VALIDATION = 200;
|
||||
*
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-251217170841",
|
||||
"version": "1.13.0-SNAPSHOT-251222085456",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in New Issue
Block a user