You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -26,6 +26,8 @@ import type { AppointmentCarrierExpectedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCarrierExpectedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCarrierInformationUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCarrierInformationUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCommissionsUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentCommissionsUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentDateUpdatedResponse } from "./appointmentInput";
|
||||
import type { AppointmentDateUpdatedRequest } from "./appointmentInput";
|
||||
import type { AppointmentCanceledResponse } from "./appointmentInput";
|
||||
@@ -220,6 +222,10 @@ export interface IAppointmentInputAPIClient {
|
||||
* @generated from protobuf rpc: DateUpdated
|
||||
*/
|
||||
dateUpdated(input: AppointmentDateUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentDateUpdatedRequest, AppointmentDateUpdatedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CommissionsUpdated
|
||||
*/
|
||||
commissionsUpdated(input: AppointmentCommissionsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierInformationUpdated
|
||||
*/
|
||||
@@ -464,81 +470,88 @@ export class AppointmentInputAPIClient implements IAppointmentInputAPIClient, Se
|
||||
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentDateUpdatedRequest, AppointmentDateUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CommissionsUpdated
|
||||
*/
|
||||
commissionsUpdated(input: AppointmentCommissionsUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCommissionsUpdatedRequest, AppointmentCommissionsUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierInformationUpdated
|
||||
*/
|
||||
carrierInformationUpdated(input: AppointmentCarrierInformationUpdatedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse> {
|
||||
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierInformationUpdatedRequest, AppointmentCarrierInformationUpdatedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierExpected
|
||||
*/
|
||||
carrierExpected(input: AppointmentCarrierExpectedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse> {
|
||||
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierExpectedRequest, AppointmentCarrierExpectedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierArrived
|
||||
*/
|
||||
carrierArrived(input: AppointmentCarrierArrivedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentCarrierArrivedRequest, AppointmentCarrierArrivedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ExpeditionStarted
|
||||
*/
|
||||
expeditionStarted(input: AppointmentExpeditionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionStartedRequest, AppointmentExpeditionStartedResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentExpeditionStartedRequest, AppointmentExpeditionStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ExpeditionLoaded
|
||||
*/
|
||||
expeditionLoaded(input: AppointmentExpeditionLoadedRequest, options?: RpcOptions): UnaryCall<AppointmentExpeditionLoadedRequest, AppointmentExpeditionLoadedResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentExpeditionLoadedRequest, AppointmentExpeditionLoadedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ReceptionStarted
|
||||
*/
|
||||
receptionStarted(input: AppointmentReceptionStartedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionStartedRequest, AppointmentReceptionStartedResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentReceptionStartedRequest, AppointmentReceptionStartedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ReceptionUnloaded
|
||||
*/
|
||||
receptionUnloaded(input: AppointmentReceptionUnloadedRequest, options?: RpcOptions): UnaryCall<AppointmentReceptionUnloadedRequest, AppointmentReceptionUnloadedResponse> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentReceptionUnloadedRequest, AppointmentReceptionUnloadedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CarrierDeparted
|
||||
*/
|
||||
carrierDeparted(input: AppointmentCarrierDepartedRequest, options?: RpcOptions): UnaryCall<AppointmentCarrierDepartedRequest, AppointmentCarrierDepartedResponse> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[11], 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[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[12], 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[12], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], 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[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<AppointmentAttachmentRemovedRequest, AppointmentAttachmentRemovedResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,6 +268,77 @@ export interface AppointmentDateUpdatedResponse {
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// CommissionsUpdated : this message tells that appointment date has been modified
|
||||
|
||||
/**
|
||||
* Event Payload
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentCommissionsUpdatedPayload
|
||||
*/
|
||||
export interface AppointmentCommissionsUpdatedPayload {
|
||||
/**
|
||||
* @generated from protobuf field: api.Slot Slot = 1
|
||||
*/
|
||||
Slot?: Slot;
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 2
|
||||
*/
|
||||
Commissions: Commission[];
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentCommissionsUpdatedEvent
|
||||
*/
|
||||
export interface AppointmentCommissionsUpdatedEvent {
|
||||
/**
|
||||
* @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.AppointmentCommissionsUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentCommissionsUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* API Request
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentCommissionsUpdatedRequest
|
||||
*/
|
||||
export interface AppointmentCommissionsUpdatedRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
/**
|
||||
* @generated from protobuf field: api.AppointmentCommissionsUpdatedPayload Payload = 3
|
||||
*/
|
||||
Payload?: AppointmentCommissionsUpdatedPayload;
|
||||
}
|
||||
/**
|
||||
* API Response
|
||||
*
|
||||
* @generated from protobuf message api.AppointmentCommissionsUpdatedResponse
|
||||
*/
|
||||
export interface AppointmentCommissionsUpdatedResponse {
|
||||
/**
|
||||
* @generated from protobuf field: api.ResponseSiteHeader Header = 1
|
||||
*/
|
||||
Header?: ResponseSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityID ID = 2
|
||||
*/
|
||||
ID?: EntityID;
|
||||
}
|
||||
//
|
||||
// AttachmentAdded : this message tells that an attachment is added for the appointment
|
||||
|
||||
/**
|
||||
@@ -1673,6 +1744,233 @@ class AppointmentDateUpdatedResponse$Type extends MessageType<AppointmentDateUpd
|
||||
*/
|
||||
export const AppointmentDateUpdatedResponse = new AppointmentDateUpdatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentCommissionsUpdatedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentCommissionsUpdatedPayload", [
|
||||
{ no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CommissionsUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCommissionsUpdatedPayload>): AppointmentCommissionsUpdatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Commissions = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCommissionsUpdatedPayload>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedPayload): AppointmentCommissionsUpdatedPayload {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.Slot Slot */ 1:
|
||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||
break;
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.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: AppointmentCommissionsUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.Slot Slot = 1; */
|
||||
if (message.Slot)
|
||||
Slot.internalBinaryWrite(message.Slot, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], 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.AppointmentCommissionsUpdatedPayload
|
||||
*/
|
||||
export const AppointmentCommissionsUpdatedPayload = new AppointmentCommissionsUpdatedPayload$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentCommissionsUpdatedEvent$Type extends MessageType<AppointmentCommissionsUpdatedEvent> {
|
||||
constructor() {
|
||||
super("api.AppointmentCommissionsUpdatedEvent", [
|
||||
{ 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: () => AppointmentCommissionsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Event", "api.inputEvent": "CommissionsUpdated", "api.preAggMethods": "commissionsUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCommissionsUpdatedEvent>): AppointmentCommissionsUpdatedEvent {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCommissionsUpdatedEvent>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedEvent): AppointmentCommissionsUpdatedEvent {
|
||||
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.AppointmentCommissionsUpdatedPayload Payload */ 3:
|
||||
message.Payload = AppointmentCommissionsUpdatedPayload.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: AppointmentCommissionsUpdatedEvent, 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.AppointmentCommissionsUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentCommissionsUpdatedPayload.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.AppointmentCommissionsUpdatedEvent
|
||||
*/
|
||||
export const AppointmentCommissionsUpdatedEvent = new AppointmentCommissionsUpdatedEvent$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentCommissionsUpdatedRequest$Type extends MessageType<AppointmentCommissionsUpdatedRequest> {
|
||||
constructor() {
|
||||
super("api.AppointmentCommissionsUpdatedRequest", [
|
||||
{ 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: () => AppointmentCommissionsUpdatedPayload, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ID", "Payload"] } }, "api.messageType": "Request", "api.inputEvent": "CommissionsUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCommissionsUpdatedRequest>): AppointmentCommissionsUpdatedRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCommissionsUpdatedRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedRequest): AppointmentCommissionsUpdatedRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
case /* api.AppointmentCommissionsUpdatedPayload Payload */ 3:
|
||||
message.Payload = AppointmentCommissionsUpdatedPayload.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: AppointmentCommissionsUpdatedRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.AppointmentCommissionsUpdatedPayload Payload = 3; */
|
||||
if (message.Payload)
|
||||
AppointmentCommissionsUpdatedPayload.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.AppointmentCommissionsUpdatedRequest
|
||||
*/
|
||||
export const AppointmentCommissionsUpdatedRequest = new AppointmentCommissionsUpdatedRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentCommissionsUpdatedResponse$Type extends MessageType<AppointmentCommissionsUpdatedResponse> {
|
||||
constructor() {
|
||||
super("api.AppointmentCommissionsUpdatedResponse", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResponseSiteHeader },
|
||||
{ no: 2, name: "ID", kind: "message", localName: "ID", jsonName: "ID", T: () => EntityID }
|
||||
], { "api.messageType": "Response", "api.inputEvent": "CommissionsUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCommissionsUpdatedResponse>): AppointmentCommissionsUpdatedResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCommissionsUpdatedResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AppointmentCommissionsUpdatedResponse): AppointmentCommissionsUpdatedResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.ResponseSiteHeader Header */ 1:
|
||||
message.Header = ResponseSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* api.EntityID ID */ 2:
|
||||
message.ID = EntityID.internalBinaryRead(reader, reader.uint32(), options, message.ID);
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentCommissionsUpdatedResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.ResponseSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
ResponseSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityID ID = 2; */
|
||||
if (message.ID)
|
||||
EntityID.internalBinaryWrite(message.ID, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.AppointmentCommissionsUpdatedResponse
|
||||
*/
|
||||
export const AppointmentCommissionsUpdatedResponse = new AppointmentCommissionsUpdatedResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentAttachmentAddedPayload$Type extends MessageType<AppointmentAttachmentAddedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentAttachmentAddedPayload", [
|
||||
@@ -4036,6 +4334,7 @@ export const AppointmentInputAPI = new ServiceType("api.AppointmentInputAPI", [
|
||||
{ name: "Created", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been created." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCreatedRequest, O: AppointmentCreatedResponse },
|
||||
{ name: "Canceled", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment has been canceled." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCanceledRequest, O: AppointmentCanceledResponse },
|
||||
{ name: "DateUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentDateUpdatedRequest, O: AppointmentDateUpdatedResponse },
|
||||
{ name: "CommissionsUpdated", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "An appointment date has been modified." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, 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": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "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": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierExpectedRequest, O: AppointmentCarrierExpectedResponse },
|
||||
{ name: "CarrierArrived", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Inputs"], description: "The carrier is arrived for the appointment." }, "api.rscType": "Site", "api.roles": "Platform.Site-Input", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentCarrierArrivedRequest, O: AppointmentCarrierArrivedResponse },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250729084441",
|
||||
"version": "1.11.0-SNAPSHOT-250729114314",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -8,8 +8,10 @@ import type { DeleteSiteInDBResult } from "./site";
|
||||
import type { DeleteSiteInDBRequest } from "./site";
|
||||
import type { UpdateSiteStatusResult } from "./site";
|
||||
import type { UpdateSiteStatusRequest } from "./site";
|
||||
import type { ModifyAppointmentDateResponse } from "./site";
|
||||
import type { ModifyAppointmentDateRequest } from "./site";
|
||||
import type { UpdateCommissionsAppointmentResponse } from "./site";
|
||||
import type { UpdateCommissionsAppointmentRequest } from "./site";
|
||||
import type { UpdateSlotAppointmentResponse } from "./site";
|
||||
import type { UpdateSlotAppointmentRequest } from "./site";
|
||||
import type { CancelAppointmentResponse } from "./site";
|
||||
import type { CancelAppointmentRequest } from "./site";
|
||||
import type { WMSBookAppointmentNoReferenceRequest } from "./site";
|
||||
@@ -130,9 +132,13 @@ export interface ISiteServiceClient {
|
||||
*/
|
||||
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ModifyAppointmentDate
|
||||
* @generated from protobuf rpc: UpdateSlotAppointment
|
||||
*/
|
||||
modifyAppointmentDate(input: ModifyAppointmentDateRequest, options?: RpcOptions): UnaryCall<ModifyAppointmentDateRequest, ModifyAppointmentDateResponse>;
|
||||
updateSlotAppointment(input: UpdateSlotAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateSlotAppointmentRequest, UpdateSlotAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateCommissionsAppointment
|
||||
*/
|
||||
updateCommissionsAppointment(input: UpdateCommissionsAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateCommissionsAppointmentRequest, UpdateCommissionsAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateStatus
|
||||
*/
|
||||
@@ -292,24 +298,31 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
||||
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ModifyAppointmentDate
|
||||
* @generated from protobuf rpc: UpdateSlotAppointment
|
||||
*/
|
||||
modifyAppointmentDate(input: ModifyAppointmentDateRequest, options?: RpcOptions): UnaryCall<ModifyAppointmentDateRequest, ModifyAppointmentDateResponse> {
|
||||
updateSlotAppointment(input: UpdateSlotAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateSlotAppointmentRequest, UpdateSlotAppointmentResponse> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ModifyAppointmentDateRequest, ModifyAppointmentDateResponse>("unary", this._transport, method, opt, input);
|
||||
return stackIntercept<UpdateSlotAppointmentRequest, UpdateSlotAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateCommissionsAppointment
|
||||
*/
|
||||
updateCommissionsAppointment(input: UpdateCommissionsAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateCommissionsAppointmentRequest, UpdateCommissionsAppointmentResponse> {
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateCommissionsAppointmentRequest, UpdateCommissionsAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateStatus
|
||||
*/
|
||||
updateStatus(input: UpdateSiteStatusRequest, options?: RpcOptions): UnaryCall<UpdateSiteStatusRequest, UpdateSiteStatusResult> {
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateSiteStatusRequest, UpdateSiteStatusResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSiteInDB
|
||||
*/
|
||||
deleteSiteInDB(input: DeleteSiteInDBRequest, options?: RpcOptions): UnaryCall<DeleteSiteInDBRequest, DeleteSiteInDBResult> {
|
||||
const method = this.methods[22], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[23], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteSiteInDBRequest, DeleteSiteInDBResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
192
site.ts
192
site.ts
@@ -908,9 +908,9 @@ export interface CancelAppointmentResponse {
|
||||
AppointmentID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ModifyAppointmentDateRequest
|
||||
* @generated from protobuf message api.UpdateSlotAppointmentRequest
|
||||
*/
|
||||
export interface ModifyAppointmentDateRequest {
|
||||
export interface UpdateSlotAppointmentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
@@ -927,9 +927,41 @@ export interface ModifyAppointmentDateRequest {
|
||||
Slots: Slot[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.ModifyAppointmentDateResponse
|
||||
* @generated from protobuf message api.UpdateSlotAppointmentResponse
|
||||
*/
|
||||
export interface ModifyAppointmentDateResponse {
|
||||
export interface UpdateSlotAppointmentResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 1
|
||||
*/
|
||||
AppointmentID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateCommissionsAppointmentRequest
|
||||
*/
|
||||
export interface UpdateCommissionsAppointmentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 2
|
||||
*/
|
||||
AppointmentID: string;
|
||||
/**
|
||||
* The slot to book for the appointment
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Slot Slots = 3
|
||||
*/
|
||||
Slots: Slot[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 4
|
||||
*/
|
||||
Commissions: Commission[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateCommissionsAppointmentResponse
|
||||
*/
|
||||
export interface UpdateCommissionsAppointmentResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 1
|
||||
*/
|
||||
@@ -3352,23 +3384,23 @@ class CancelAppointmentResponse$Type extends MessageType<CancelAppointmentRespon
|
||||
*/
|
||||
export const CancelAppointmentResponse = new CancelAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ModifyAppointmentDateRequest$Type extends MessageType<ModifyAppointmentDateRequest> {
|
||||
class UpdateSlotAppointmentRequest$Type extends MessageType<UpdateSlotAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.ModifyAppointmentDateRequest", [
|
||||
super("api.UpdateSlotAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<ModifyAppointmentDateRequest>): ModifyAppointmentDateRequest {
|
||||
create(value?: PartialMessage<UpdateSlotAppointmentRequest>): UpdateSlotAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
message.Slots = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ModifyAppointmentDateRequest>(this, message, value);
|
||||
reflectionMergePartial<UpdateSlotAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModifyAppointmentDateRequest): ModifyAppointmentDateRequest {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSlotAppointmentRequest): UpdateSlotAppointmentRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
@@ -3393,7 +3425,7 @@ class ModifyAppointmentDateRequest$Type extends MessageType<ModifyAppointmentDat
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ModifyAppointmentDateRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
internalBinaryWrite(message: UpdateSlotAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -3410,24 +3442,24 @@ class ModifyAppointmentDateRequest$Type extends MessageType<ModifyAppointmentDat
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ModifyAppointmentDateRequest
|
||||
* @generated MessageType for protobuf message api.UpdateSlotAppointmentRequest
|
||||
*/
|
||||
export const ModifyAppointmentDateRequest = new ModifyAppointmentDateRequest$Type();
|
||||
export const UpdateSlotAppointmentRequest = new UpdateSlotAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ModifyAppointmentDateResponse$Type extends MessageType<ModifyAppointmentDateResponse> {
|
||||
class UpdateSlotAppointmentResponse$Type extends MessageType<UpdateSlotAppointmentResponse> {
|
||||
constructor() {
|
||||
super("api.ModifyAppointmentDateResponse", [
|
||||
super("api.UpdateSlotAppointmentResponse", [
|
||||
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<ModifyAppointmentDateResponse>): ModifyAppointmentDateResponse {
|
||||
create(value?: PartialMessage<UpdateSlotAppointmentResponse>): UpdateSlotAppointmentResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<ModifyAppointmentDateResponse>(this, message, value);
|
||||
reflectionMergePartial<UpdateSlotAppointmentResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModifyAppointmentDateResponse): ModifyAppointmentDateResponse {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSlotAppointmentResponse): UpdateSlotAppointmentResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
@@ -3446,7 +3478,7 @@ class ModifyAppointmentDateResponse$Type extends MessageType<ModifyAppointmentDa
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: ModifyAppointmentDateResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
internalBinaryWrite(message: UpdateSlotAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string AppointmentID = 1; */
|
||||
if (message.AppointmentID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
|
||||
@@ -3457,9 +3489,126 @@ class ModifyAppointmentDateResponse$Type extends MessageType<ModifyAppointmentDa
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.ModifyAppointmentDateResponse
|
||||
* @generated MessageType for protobuf message api.UpdateSlotAppointmentResponse
|
||||
*/
|
||||
export const ModifyAppointmentDateResponse = new ModifyAppointmentDateResponse$Type();
|
||||
export const UpdateSlotAppointmentResponse = new UpdateSlotAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UpdateCommissionsAppointmentRequest$Type extends MessageType<UpdateCommissionsAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.UpdateCommissionsAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
|
||||
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateCommissionsAppointmentRequest>): UpdateCommissionsAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
message.Slots = [];
|
||||
message.Commissions = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateCommissionsAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCommissionsAppointmentRequest): UpdateCommissionsAppointmentRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestSiteHeader Header */ 1:
|
||||
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string AppointmentID */ 2:
|
||||
message.AppointmentID = reader.string();
|
||||
break;
|
||||
case /* repeated api.Slot Slots */ 3:
|
||||
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Commission Commissions */ 4:
|
||||
message.Commissions.push(Commission.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: UpdateCommissionsAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string AppointmentID = 2; */
|
||||
if (message.AppointmentID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID);
|
||||
/* repeated api.Slot Slots = 3; */
|
||||
for (let i = 0; i < message.Slots.length; i++)
|
||||
Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Commission Commissions = 4; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(4, 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.UpdateCommissionsAppointmentRequest
|
||||
*/
|
||||
export const UpdateCommissionsAppointmentRequest = new UpdateCommissionsAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UpdateCommissionsAppointmentResponse$Type extends MessageType<UpdateCommissionsAppointmentResponse> {
|
||||
constructor() {
|
||||
super("api.UpdateCommissionsAppointmentResponse", [
|
||||
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<UpdateCommissionsAppointmentResponse>): UpdateCommissionsAppointmentResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateCommissionsAppointmentResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCommissionsAppointmentResponse): UpdateCommissionsAppointmentResponse {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string AppointmentID */ 1:
|
||||
message.AppointmentID = 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: UpdateCommissionsAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string AppointmentID = 1; */
|
||||
if (message.AppointmentID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.AppointmentID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.UpdateCommissionsAppointmentResponse
|
||||
*/
|
||||
export const UpdateCommissionsAppointmentResponse = new UpdateCommissionsAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListUserSitesRequest$Type extends MessageType<ListUserSitesRequest> {
|
||||
constructor() {
|
||||
@@ -3765,7 +3914,8 @@ export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ name: "ForceBookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site without checking if the slots are available." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
|
||||
{ name: "WMSForceBookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site without checking if the slots are available, should not be called by human user." }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSBookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
|
||||
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Cancel an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelAppointmentRequest, O: CancelAppointmentResponse },
|
||||
{ name: "ModifyAppointmentDate", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Modify an appointment date on the site." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ModifyAppointmentDateRequest, O: ModifyAppointmentDateResponse },
|
||||
{ name: "UpdateSlotAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot on an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSlotAppointmentRequest, O: UpdateSlotAppointmentResponse },
|
||||
{ name: "UpdateCommissionsAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot and commissions on an appointment on the site." }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateCommissionsAppointmentRequest, O: UpdateCommissionsAppointmentResponse },
|
||||
{ name: "UpdateStatus", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update site status" }, "api.rscType": "Site", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSiteStatusRequest, O: UpdateSiteStatusResult },
|
||||
{ name: "DeleteSiteInDB", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Deletion", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSiteInDBRequest, O: DeleteSiteInDBResult }
|
||||
], { "api.k8sService": "core-site" });
|
||||
|
||||
Reference in New Issue
Block a user