You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251006084211",
|
||||
"version": "1.12.0-SNAPSHOT-251006085449",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -6,15 +6,13 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { SiteService } from "./site";
|
||||
import type { DeleteSettingsResult } from "./site";
|
||||
import type { DeleteSettingsRequest } from "./site";
|
||||
import type { UpdateCommissionsAppointmentResponse } from "./site";
|
||||
import type { UpdateCommissionsAppointmentRequest } from "./site";
|
||||
import type { UpdateSlotAppointmentResponse } from "./site";
|
||||
import type { UpdateSlotAppointmentRequest } from "./site";
|
||||
import type { ForceUpdateAppointmentRequest } from "./site";
|
||||
import type { UpdateAppointmentNoReferenceRequest } from "./site";
|
||||
import type { UpdateAppointmentRequest } from "./site";
|
||||
import type { CancelAppointmentResponse } from "./site";
|
||||
import type { CancelAppointmentRequest } from "./site";
|
||||
import type { WMSBookAppointmentNoReferenceRequest } from "./site";
|
||||
import type { ForceBookAppointmentRequest } from "./site";
|
||||
import type { BookAppointmentNoReferenceRequest } from "./site";
|
||||
import type { WMSBookAppointmentRequest } from "./site";
|
||||
import type { BookAppointmentResponse } from "./site";
|
||||
import type { BookAppointmentRequest } from "./site";
|
||||
import type { ListUserSitesResponse } from "./site";
|
||||
@@ -99,38 +97,30 @@ export interface ISiteServiceClient {
|
||||
* @generated from protobuf rpc: BookAppointment
|
||||
*/
|
||||
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceBookAppointment
|
||||
*/
|
||||
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: WMSForceBookAppointment
|
||||
*/
|
||||
wMSForceBookAppointment(input: WMSBookAppointmentRequest, options?: RpcOptions): UnaryCall<WMSBookAppointmentRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: BookAppointmentNoReference
|
||||
*/
|
||||
bookAppointmentNoReference(input: BookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<BookAppointmentNoReferenceRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceBookAppointmentNoReference
|
||||
* @generated from protobuf rpc: ForceBookAppointment
|
||||
*/
|
||||
forceBookAppointmentNoReference(input: BookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<BookAppointmentNoReferenceRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: WMSForceBookAppointmentNoReference
|
||||
*/
|
||||
wMSForceBookAppointmentNoReference(input: WMSBookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<WMSBookAppointmentNoReferenceRequest, BookAppointmentResponse>;
|
||||
forceBookAppointment(input: ForceBookAppointmentRequest, options?: RpcOptions): UnaryCall<ForceBookAppointmentRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CancelAppointment
|
||||
*/
|
||||
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSlotAppointment
|
||||
* @generated from protobuf rpc: UpdateAppointment
|
||||
*/
|
||||
updateSlotAppointment(input: UpdateSlotAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateSlotAppointmentRequest, UpdateSlotAppointmentResponse>;
|
||||
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateCommissionsAppointment
|
||||
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
||||
*/
|
||||
updateCommissionsAppointment(input: UpdateCommissionsAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateCommissionsAppointmentRequest, UpdateCommissionsAppointmentResponse>;
|
||||
updateAppointmentNoReference(input: UpdateAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceUpdateAppointment
|
||||
*/
|
||||
forceUpdateAppointment(input: ForceUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<ForceUpdateAppointmentRequest, BookAppointmentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSettings
|
||||
*/
|
||||
@@ -236,67 +226,53 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
|
||||
const method = this.methods[12], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceBookAppointment
|
||||
*/
|
||||
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: WMSForceBookAppointment
|
||||
*/
|
||||
wMSForceBookAppointment(input: WMSBookAppointmentRequest, options?: RpcOptions): UnaryCall<WMSBookAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<WMSBookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: BookAppointmentNoReference
|
||||
*/
|
||||
bookAppointmentNoReference(input: BookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<BookAppointmentNoReferenceRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<BookAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceBookAppointmentNoReference
|
||||
* @generated from protobuf rpc: ForceBookAppointment
|
||||
*/
|
||||
forceBookAppointmentNoReference(input: BookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<BookAppointmentNoReferenceRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<BookAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: WMSForceBookAppointmentNoReference
|
||||
*/
|
||||
wMSForceBookAppointmentNoReference(input: WMSBookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<WMSBookAppointmentNoReferenceRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<WMSBookAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
forceBookAppointment(input: ForceBookAppointmentRequest, options?: RpcOptions): UnaryCall<ForceBookAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[14], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ForceBookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CancelAppointment
|
||||
*/
|
||||
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateSlotAppointment
|
||||
* @generated from protobuf rpc: UpdateAppointment
|
||||
*/
|
||||
updateSlotAppointment(input: UpdateSlotAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateSlotAppointmentRequest, UpdateSlotAppointmentResponse> {
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateSlotAppointmentRequest, UpdateSlotAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: UpdateCommissionsAppointment
|
||||
* @generated from protobuf rpc: UpdateAppointmentNoReference
|
||||
*/
|
||||
updateCommissionsAppointment(input: UpdateCommissionsAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateCommissionsAppointmentRequest, UpdateCommissionsAppointmentResponse> {
|
||||
const method = this.methods[20], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateCommissionsAppointmentRequest, UpdateCommissionsAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
updateAppointmentNoReference(input: UpdateAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[17], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ForceUpdateAppointment
|
||||
*/
|
||||
forceUpdateAppointment(input: ForceUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<ForceUpdateAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[18], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ForceUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteSettings
|
||||
*/
|
||||
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult> {
|
||||
const method = this.methods[21], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[19], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteSettingsRequest, DeleteSettingsResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
551
site.ts
551
site.ts
@@ -669,7 +669,7 @@ export interface BookAppointmentRequest {
|
||||
InstructionAck: boolean;
|
||||
}
|
||||
/**
|
||||
* BookAppointment
|
||||
* BookAppointmentNoReference
|
||||
*
|
||||
* @generated from protobuf message api.BookAppointmentNoReferenceRequest
|
||||
*/
|
||||
@@ -753,11 +753,11 @@ export interface BookAppointmentNoReferenceRequest {
|
||||
InstructionAck: boolean;
|
||||
}
|
||||
/**
|
||||
* BookAppointment
|
||||
* ForceBookAppointment
|
||||
*
|
||||
* @generated from protobuf message api.WMSBookAppointmentRequest
|
||||
* @generated from protobuf message api.ForceBookAppointmentRequest
|
||||
*/
|
||||
export interface WMSBookAppointmentRequest {
|
||||
export interface ForceBookAppointmentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
@@ -829,96 +829,24 @@ export interface WMSBookAppointmentRequest {
|
||||
* @generated from protobuf field: bool InstructionAck = 13
|
||||
*/
|
||||
InstructionAck: boolean;
|
||||
}
|
||||
/**
|
||||
* BookAppointment
|
||||
*
|
||||
* @generated from protobuf message api.WMSBookAppointmentNoReferenceRequest
|
||||
*/
|
||||
export interface WMSBookAppointmentNoReferenceRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* Type of appointment : Expedition / Reception / Both
|
||||
* In case of no reference, Project for which the appointment is made, with the quantities
|
||||
*
|
||||
* @generated from protobuf field: api.AppointmentType AppointmentType = 2
|
||||
*/
|
||||
AppointmentType: AppointmentType;
|
||||
/**
|
||||
* Project for which the appointment is made, with the quantities
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 3
|
||||
* @generated from protobuf field: string ProjectID = 14
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* quantities
|
||||
* In case of no reference, The Reason for which the appointment has no reference
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 4
|
||||
*/
|
||||
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
* @generated from protobuf field: repeated api.SegmentationSelection SegmentationSelections = 5
|
||||
*/
|
||||
SegmentationSelections: SegmentationSelection[];
|
||||
/**
|
||||
* Required carrierInformation, some can be obligatory
|
||||
*
|
||||
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 6
|
||||
*/
|
||||
CarrierInformation: CarrierInformationWithValue[];
|
||||
/**
|
||||
* The slot to book for the appointment
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Slot Slots = 7
|
||||
*/
|
||||
Slots: Slot[];
|
||||
/**
|
||||
* TODO Need to add a structure to store platform user identifiers which can act on this appointment ?
|
||||
* User mails being notified on this appointment
|
||||
*
|
||||
* @generated from protobuf field: repeated string Emails = 8
|
||||
*/
|
||||
Emails: string[];
|
||||
/**
|
||||
* The carrier identifier who requests to book the appointment
|
||||
*
|
||||
* @generated from protobuf field: string CarrierID = 9
|
||||
*/
|
||||
CarrierID: string;
|
||||
/**
|
||||
* The carrier name who requests to book the appointment
|
||||
*
|
||||
* @generated from protobuf field: string CarrierName = 10
|
||||
*/
|
||||
CarrierName: string;
|
||||
/**
|
||||
* time zone, useful only if a WMS send a message
|
||||
*
|
||||
* @generated from protobuf field: string TimeZone = 11
|
||||
*/
|
||||
TimeZone: string;
|
||||
/**
|
||||
* The appointment ID, usually generated using siteCounterServices
|
||||
*
|
||||
* @generated from protobuf field: string AppointmentID = 12
|
||||
*/
|
||||
AppointmentID: string;
|
||||
/**
|
||||
* The Reason for which the appointment has no commissions
|
||||
*
|
||||
* @generated from protobuf field: string Reason = 13
|
||||
* @generated from protobuf field: string Reason = 15
|
||||
*/
|
||||
Reason: string;
|
||||
/**
|
||||
* Acknowledgment of the site instructions
|
||||
* In case of no reference, quantities loaded or to load in the truck
|
||||
*
|
||||
* @generated from protobuf field: bool InstructionAck = 14
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 16
|
||||
*/
|
||||
InstructionAck: boolean;
|
||||
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.BookAppointmentResponse
|
||||
@@ -954,9 +882,9 @@ export interface CancelAppointmentResponse {
|
||||
AppointmentID: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateSlotAppointmentRequest
|
||||
* @generated from protobuf message api.UpdateAppointmentRequest
|
||||
*/
|
||||
export interface UpdateSlotAppointmentRequest {
|
||||
export interface UpdateAppointmentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
@@ -972,25 +900,53 @@ export interface UpdateSlotAppointmentRequest {
|
||||
*/
|
||||
Slots: Slot[];
|
||||
/**
|
||||
* time zone, useful only if a WMS use this API
|
||||
* The modified Commissions for the appointment
|
||||
*
|
||||
* @generated from protobuf field: string TimeZone = 4
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 4
|
||||
*/
|
||||
TimeZone: string;
|
||||
Commissions: Commission[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateSlotAppointmentResponse
|
||||
* @generated from protobuf message api.UpdateAppointmentNoReferenceRequest
|
||||
*/
|
||||
export interface UpdateSlotAppointmentResponse {
|
||||
export interface UpdateAppointmentNoReferenceRequest {
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 1
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
Header?: RequestProjectHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 2
|
||||
*/
|
||||
AppointmentID: string;
|
||||
/**
|
||||
* The slots to book for the appointment
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Slot Slots = 3
|
||||
*/
|
||||
Slots: Slot[];
|
||||
/**
|
||||
* Project for which the appointment is made, with the quantities
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 4
|
||||
*/
|
||||
ProjectID: string;
|
||||
/**
|
||||
* In case of no reference, quantities
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 5
|
||||
*/
|
||||
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
|
||||
/**
|
||||
* In case of no reference, The Reason for which the appointment has no commissions
|
||||
*
|
||||
* @generated from protobuf field: string Reason = 6
|
||||
*/
|
||||
Reason: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateCommissionsAppointmentRequest
|
||||
* @generated from protobuf message api.ForceUpdateAppointmentRequest
|
||||
*/
|
||||
export interface UpdateCommissionsAppointmentRequest {
|
||||
export interface ForceUpdateAppointmentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestProjectHeader Header = 1
|
||||
*/
|
||||
@@ -1017,15 +973,24 @@ export interface UpdateCommissionsAppointmentRequest {
|
||||
* @generated from protobuf field: string TimeZone = 5
|
||||
*/
|
||||
TimeZone: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UpdateCommissionsAppointmentResponse
|
||||
*/
|
||||
export interface UpdateCommissionsAppointmentResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string AppointmentID = 1
|
||||
* Project for which the appointment is made, with the quantities
|
||||
*
|
||||
* @generated from protobuf field: string ProjectID = 6
|
||||
*/
|
||||
AppointmentID: string;
|
||||
ProjectID: string;
|
||||
/**
|
||||
* In case of no reference, quantities
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 7
|
||||
*/
|
||||
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
|
||||
/**
|
||||
* In case of no reference, The Reason for which the appointment has no commissions
|
||||
*
|
||||
* @generated from protobuf field: string Reason = 8
|
||||
*/
|
||||
Reason: string;
|
||||
}
|
||||
/**
|
||||
* ListUserSites
|
||||
@@ -2949,9 +2914,9 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
|
||||
*/
|
||||
export const BookAppointmentNoReferenceRequest = new BookAppointmentNoReferenceRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class WMSBookAppointmentRequest$Type extends MessageType<WMSBookAppointmentRequest> {
|
||||
class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.WMSBookAppointmentRequest", [
|
||||
super("api.ForceBookAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
@@ -2963,10 +2928,13 @@ class WMSBookAppointmentRequest$Type extends MessageType<WMSBookAppointmentReque
|
||||
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 12, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 13, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "Segmentations", "CarrierInformation", "TimeZone"] } } });
|
||||
{ no: 13, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 14, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 15, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 16, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Segmentations"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<WMSBookAppointmentRequest>): WMSBookAppointmentRequest {
|
||||
create(value?: PartialMessage<ForceBookAppointmentRequest>): ForceBookAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
@@ -2979,11 +2947,14 @@ class WMSBookAppointmentRequest$Type extends MessageType<WMSBookAppointmentReque
|
||||
message.TimeZone = "";
|
||||
message.AppointmentID = "";
|
||||
message.InstructionAck = false;
|
||||
message.ProjectID = "";
|
||||
message.Reason = "";
|
||||
message.Quantities = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<WMSBookAppointmentRequest>(this, message, value);
|
||||
reflectionMergePartial<ForceBookAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSBookAppointmentRequest): WMSBookAppointmentRequest {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForceBookAppointmentRequest): ForceBookAppointmentRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
@@ -3024,6 +2995,15 @@ class WMSBookAppointmentRequest$Type extends MessageType<WMSBookAppointmentReque
|
||||
case /* bool InstructionAck */ 13:
|
||||
message.InstructionAck = reader.bool();
|
||||
break;
|
||||
case /* string ProjectID */ 14:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* string Reason */ 15:
|
||||
message.Reason = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities */ 16:
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -3035,7 +3015,7 @@ class WMSBookAppointmentRequest$Type extends MessageType<WMSBookAppointmentReque
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: WMSBookAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
internalBinaryWrite(message: ForceBookAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -3072,156 +3052,15 @@ class WMSBookAppointmentRequest$Type extends MessageType<WMSBookAppointmentReque
|
||||
/* bool InstructionAck = 13; */
|
||||
if (message.InstructionAck !== false)
|
||||
writer.tag(13, WireType.Varint).bool(message.InstructionAck);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.WMSBookAppointmentRequest
|
||||
*/
|
||||
export const WMSBookAppointmentRequest = new WMSBookAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class WMSBookAppointmentNoReferenceRequest$Type extends MessageType<WMSBookAppointmentNoReferenceRequest> {
|
||||
constructor() {
|
||||
super("api.WMSBookAppointmentNoReferenceRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ no: 3, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 4, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 5, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
|
||||
{ no: 6, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 7, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
|
||||
{ no: 8, 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: 9, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 12, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 13, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 14, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "ProjectID", "Quantities", "Segmentations", "CarrierInformation", "TimeZone"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<WMSBookAppointmentNoReferenceRequest>): WMSBookAppointmentNoReferenceRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.ProjectID = "";
|
||||
message.Quantities = [];
|
||||
message.SegmentationSelections = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Slots = [];
|
||||
message.Emails = [];
|
||||
message.CarrierID = "";
|
||||
message.CarrierName = "";
|
||||
message.TimeZone = "";
|
||||
message.AppointmentID = "";
|
||||
message.Reason = "";
|
||||
message.InstructionAck = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<WMSBookAppointmentNoReferenceRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSBookAppointmentNoReferenceRequest): WMSBookAppointmentNoReferenceRequest {
|
||||
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.AppointmentType AppointmentType */ 2:
|
||||
message.AppointmentType = reader.int32();
|
||||
break;
|
||||
case /* string ProjectID */ 3:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities */ 4:
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.SegmentationSelection SegmentationSelections */ 5:
|
||||
message.SegmentationSelections.push(SegmentationSelection.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformationWithValue CarrierInformation */ 6:
|
||||
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Slot Slots */ 7:
|
||||
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated string Emails */ 8:
|
||||
message.Emails.push(reader.string());
|
||||
break;
|
||||
case /* string CarrierID */ 9:
|
||||
message.CarrierID = reader.string();
|
||||
break;
|
||||
case /* string CarrierName */ 10:
|
||||
message.CarrierName = reader.string();
|
||||
break;
|
||||
case /* string TimeZone */ 11:
|
||||
message.TimeZone = reader.string();
|
||||
break;
|
||||
case /* string AppointmentID */ 12:
|
||||
message.AppointmentID = reader.string();
|
||||
break;
|
||||
case /* string Reason */ 13:
|
||||
message.Reason = reader.string();
|
||||
break;
|
||||
case /* bool InstructionAck */ 14:
|
||||
message.InstructionAck = reader.bool();
|
||||
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: WMSBookAppointmentNoReferenceRequest, 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.AppointmentType AppointmentType = 2; */
|
||||
if (message.AppointmentType !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.AppointmentType);
|
||||
/* string ProjectID = 3; */
|
||||
/* string ProjectID = 14; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* repeated api.QuantityByUnit Quantities = 4; */
|
||||
for (let i = 0; i < message.Quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.SegmentationSelection SegmentationSelections = 5; */
|
||||
for (let i = 0; i < message.SegmentationSelections.length; i++)
|
||||
SegmentationSelection.internalBinaryWrite(message.SegmentationSelections[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformationWithValue CarrierInformation = 6; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Slot Slots = 7; */
|
||||
for (let i = 0; i < message.Slots.length; i++)
|
||||
Slot.internalBinaryWrite(message.Slots[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated string Emails = 8; */
|
||||
for (let i = 0; i < message.Emails.length; i++)
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Emails[i]);
|
||||
/* string CarrierID = 9; */
|
||||
if (message.CarrierID !== "")
|
||||
writer.tag(9, WireType.LengthDelimited).string(message.CarrierID);
|
||||
/* string CarrierName = 10; */
|
||||
if (message.CarrierName !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.CarrierName);
|
||||
/* string TimeZone = 11; */
|
||||
if (message.TimeZone !== "")
|
||||
writer.tag(11, WireType.LengthDelimited).string(message.TimeZone);
|
||||
/* string AppointmentID = 12; */
|
||||
if (message.AppointmentID !== "")
|
||||
writer.tag(12, WireType.LengthDelimited).string(message.AppointmentID);
|
||||
/* string Reason = 13; */
|
||||
writer.tag(14, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* string Reason = 15; */
|
||||
if (message.Reason !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.Reason);
|
||||
/* bool InstructionAck = 14; */
|
||||
if (message.InstructionAck !== false)
|
||||
writer.tag(14, WireType.Varint).bool(message.InstructionAck);
|
||||
writer.tag(15, WireType.LengthDelimited).string(message.Reason);
|
||||
/* repeated api.QuantityByUnit Quantities = 16; */
|
||||
for (let i = 0; i < message.Quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -3229,9 +3068,9 @@ class WMSBookAppointmentNoReferenceRequest$Type extends MessageType<WMSBookAppoi
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.WMSBookAppointmentNoReferenceRequest
|
||||
* @generated MessageType for protobuf message api.ForceBookAppointmentRequest
|
||||
*/
|
||||
export const WMSBookAppointmentNoReferenceRequest = new WMSBookAppointmentNoReferenceRequest$Type();
|
||||
export const ForceBookAppointmentRequest = new ForceBookAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class BookAppointmentResponse$Type extends MessageType<BookAppointmentResponse> {
|
||||
constructor() {
|
||||
@@ -3381,25 +3220,25 @@ class CancelAppointmentResponse$Type extends MessageType<CancelAppointmentRespon
|
||||
*/
|
||||
export const CancelAppointmentResponse = new CancelAppointmentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UpdateSlotAppointmentRequest$Type extends MessageType<UpdateSlotAppointmentRequest> {
|
||||
class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.UpdateSlotAppointmentRequest", [
|
||||
super("api.UpdateAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
|
||||
{ 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<UpdateSlotAppointmentRequest>): UpdateSlotAppointmentRequest {
|
||||
create(value?: PartialMessage<UpdateAppointmentRequest>): UpdateAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
message.Slots = [];
|
||||
message.TimeZone = "";
|
||||
message.Commissions = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateSlotAppointmentRequest>(this, message, value);
|
||||
reflectionMergePartial<UpdateAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSlotAppointmentRequest): UpdateSlotAppointmentRequest {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentRequest): UpdateAppointmentRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
@@ -3413,8 +3252,8 @@ class UpdateSlotAppointmentRequest$Type extends MessageType<UpdateSlotAppointmen
|
||||
case /* repeated api.Slot Slots */ 3:
|
||||
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string TimeZone */ 4:
|
||||
message.TimeZone = reader.string();
|
||||
case /* repeated api.Commission Commissions */ 4:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -3427,7 +3266,7 @@ class UpdateSlotAppointmentRequest$Type extends MessageType<UpdateSlotAppointmen
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateSlotAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
internalBinaryWrite(message: UpdateAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -3437,9 +3276,9 @@ class UpdateSlotAppointmentRequest$Type extends MessageType<UpdateSlotAppointmen
|
||||
/* 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();
|
||||
/* string TimeZone = 4; */
|
||||
if (message.TimeZone !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.TimeZone);
|
||||
/* 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);
|
||||
@@ -3447,31 +3286,55 @@ class UpdateSlotAppointmentRequest$Type extends MessageType<UpdateSlotAppointmen
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.UpdateSlotAppointmentRequest
|
||||
* @generated MessageType for protobuf message api.UpdateAppointmentRequest
|
||||
*/
|
||||
export const UpdateSlotAppointmentRequest = new UpdateSlotAppointmentRequest$Type();
|
||||
export const UpdateAppointmentRequest = new UpdateAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UpdateSlotAppointmentResponse$Type extends MessageType<UpdateSlotAppointmentResponse> {
|
||||
class UpdateAppointmentNoReferenceRequest$Type extends MessageType<UpdateAppointmentNoReferenceRequest> {
|
||||
constructor() {
|
||||
super("api.UpdateSlotAppointmentResponse", [
|
||||
{ no: 1, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
super("api.UpdateAppointmentNoReferenceRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
|
||||
{ no: 6, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateSlotAppointmentResponse>): UpdateSlotAppointmentResponse {
|
||||
create(value?: PartialMessage<UpdateAppointmentNoReferenceRequest>): UpdateAppointmentNoReferenceRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
message.Slots = [];
|
||||
message.ProjectID = "";
|
||||
message.Quantities = [];
|
||||
message.Reason = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateSlotAppointmentResponse>(this, message, value);
|
||||
reflectionMergePartial<UpdateAppointmentNoReferenceRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateSlotAppointmentResponse): UpdateSlotAppointmentResponse {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAppointmentNoReferenceRequest): UpdateAppointmentNoReferenceRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string AppointmentID */ 1:
|
||||
case /* api.RequestProjectHeader Header */ 1:
|
||||
message.Header = RequestProjectHeader.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 /* string ProjectID */ 4:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities */ 5:
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string Reason */ 6:
|
||||
message.Reason = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -3483,10 +3346,25 @@ class UpdateSlotAppointmentResponse$Type extends MessageType<UpdateSlotAppointme
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateSlotAppointmentResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string AppointmentID = 1; */
|
||||
internalBinaryWrite(message: UpdateAppointmentNoReferenceRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string AppointmentID = 2; */
|
||||
if (message.AppointmentID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(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();
|
||||
/* string ProjectID = 4; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* repeated api.QuantityByUnit Quantities = 5; */
|
||||
for (let i = 0; i < message.Quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Reason = 6; */
|
||||
if (message.Reason !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.Reason);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -3494,31 +3372,37 @@ class UpdateSlotAppointmentResponse$Type extends MessageType<UpdateSlotAppointme
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.UpdateSlotAppointmentResponse
|
||||
* @generated MessageType for protobuf message api.UpdateAppointmentNoReferenceRequest
|
||||
*/
|
||||
export const UpdateSlotAppointmentResponse = new UpdateSlotAppointmentResponse$Type();
|
||||
export const UpdateAppointmentNoReferenceRequest = new UpdateAppointmentNoReferenceRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UpdateCommissionsAppointmentRequest$Type extends MessageType<UpdateCommissionsAppointmentRequest> {
|
||||
class ForceUpdateAppointmentRequest$Type extends MessageType<ForceUpdateAppointmentRequest> {
|
||||
constructor() {
|
||||
super("api.UpdateCommissionsAppointmentRequest", [
|
||||
super("api.ForceUpdateAppointmentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, 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 },
|
||||
{ no: 5, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions"] } } });
|
||||
{ no: 5, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 7, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
|
||||
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UpdateCommissionsAppointmentRequest>): UpdateCommissionsAppointmentRequest {
|
||||
create(value?: PartialMessage<ForceUpdateAppointmentRequest>): ForceUpdateAppointmentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentID = "";
|
||||
message.Slots = [];
|
||||
message.Commissions = [];
|
||||
message.TimeZone = "";
|
||||
message.ProjectID = "";
|
||||
message.Quantities = [];
|
||||
message.Reason = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UpdateCommissionsAppointmentRequest>(this, message, value);
|
||||
reflectionMergePartial<ForceUpdateAppointmentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCommissionsAppointmentRequest): UpdateCommissionsAppointmentRequest {
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ForceUpdateAppointmentRequest): ForceUpdateAppointmentRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
@@ -3538,6 +3422,15 @@ class UpdateCommissionsAppointmentRequest$Type extends MessageType<UpdateCommiss
|
||||
case /* string TimeZone */ 5:
|
||||
message.TimeZone = reader.string();
|
||||
break;
|
||||
case /* string ProjectID */ 6:
|
||||
message.ProjectID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit Quantities */ 7:
|
||||
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string Reason */ 8:
|
||||
message.Reason = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -3549,7 +3442,7 @@ class UpdateCommissionsAppointmentRequest$Type extends MessageType<UpdateCommiss
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UpdateCommissionsAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
internalBinaryWrite(message: ForceUpdateAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -3565,6 +3458,15 @@ class UpdateCommissionsAppointmentRequest$Type extends MessageType<UpdateCommiss
|
||||
/* string TimeZone = 5; */
|
||||
if (message.TimeZone !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.TimeZone);
|
||||
/* string ProjectID = 6; */
|
||||
if (message.ProjectID !== "")
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.ProjectID);
|
||||
/* repeated api.QuantityByUnit Quantities = 7; */
|
||||
for (let i = 0; i < message.Quantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string Reason = 8; */
|
||||
if (message.Reason !== "")
|
||||
writer.tag(8, WireType.LengthDelimited).string(message.Reason);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -3572,56 +3474,9 @@ class UpdateCommissionsAppointmentRequest$Type extends MessageType<UpdateCommiss
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.UpdateCommissionsAppointmentRequest
|
||||
* @generated MessageType for protobuf message api.ForceUpdateAppointmentRequest
|
||||
*/
|
||||
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();
|
||||
export const ForceUpdateAppointmentRequest = new ForceUpdateAppointmentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class ListUserSitesRequest$Type extends MessageType<ListUserSitesRequest> {
|
||||
constructor() {
|
||||
@@ -3818,13 +3673,11 @@ export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ name: "GetAllSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get all slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAllSlotsResponse },
|
||||
{ name: "ListUserSites", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List sites authorized for a user according to its permissions." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserSitesRequest, O: ListUserSitesResponse },
|
||||
{ name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
|
||||
{ name: "ForceBookAppointment", 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": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
|
||||
{ name: "WMSForceBookAppointment", 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": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSBookAppointmentRequest, O: BookAppointmentResponse },
|
||||
{ name: "BookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
|
||||
{ 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": "Project", "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": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSBookAppointmentNoReferenceRequest, O: BookAppointmentResponse },
|
||||
{ name: "ForceBookAppointment", 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": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceBookAppointmentRequest, O: BookAppointmentResponse },
|
||||
{ name: "CancelAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Cancel an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: CancelAppointmentRequest, O: CancelAppointmentResponse },
|
||||
{ name: "UpdateSlotAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot on an appointment on the site." }, "api.rscType": "Project", "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": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateCommissionsAppointmentRequest, O: UpdateCommissionsAppointmentResponse },
|
||||
{ name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse },
|
||||
{ name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentNoReferenceRequest, O: BookAppointmentResponse },
|
||||
{ name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Force Update slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceUpdateAppointmentRequest, O: BookAppointmentResponse },
|
||||
{ name: "DeleteSettings", 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: DeleteSettingsRequest, O: DeleteSettingsResult }
|
||||
], { "api.k8sService": "core-site" });
|
||||
|
||||
Reference in New Issue
Block a user