Latest generation

This commit is contained in:
ci core model
2025-12-15 13:26:54 +00:00
parent 15d7434dd1
commit f5733ff7bc
7 changed files with 307 additions and 28 deletions

View File

@@ -155,6 +155,12 @@ export interface AppointmentPayload {
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 23
*/
TotalQuantities: QuantityByUnit[];
/**
* time zone of the site on which the appointment is booked
*
* @generated from protobuf field: string TimeZone = 24
*/
TimeZone: string;
}
/**
* @generated from protobuf message api.AppointmentTriplet
@@ -254,7 +260,8 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
{ no: 20, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "api.aggSkip": "Created,Canceled,SlotUpdated,CommissionsUpdated,CarrierInformationUpdated,CarrierExpected,CarrierArrived,LoadingStarted,LoadingCompleted,UnloadingStarted,UnloadingCompleted,CarrierDeparted,MetaDataUpdated,AttachmentAdded,AttachmentRemoved,EmailsAdded,EmailsRemoved,Sanitised,CustomFieldsUpdated" } },
{ no: 21, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 22, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ },
{ no: 23, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
{ no: 23, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
{ no: 24, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["AppointmentType", "Segmentations"] } } });
}
create(value?: PartialMessage<AppointmentPayload>): AppointmentPayload {
@@ -274,6 +281,7 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
message.ActorID = "";
message.SiteName = "";
message.TotalQuantities = [];
message.TimeZone = "";
if (value !== undefined)
reflectionMergePartial<AppointmentPayload>(this, message, value);
return message;
@@ -337,6 +345,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
case /* repeated api.QuantityByUnit TotalQuantities */ 23:
message.TotalQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string TimeZone */ 24:
message.TimeZone = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -403,6 +414,9 @@ class AppointmentPayload$Type extends MessageType<AppointmentPayload> {
/* repeated api.QuantityByUnit TotalQuantities = 23; */
for (let i = 0; i < message.TotalQuantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.TotalQuantities[i], writer.tag(23, WireType.LengthDelimited).fork(), options).join();
/* string TimeZone = 24; */
if (message.TimeZone !== "")
writer.tag(24, WireType.LengthDelimited).string(message.TimeZone);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -89,6 +89,10 @@ export interface AppointmentNotifyPayload {
* @generated from protobuf field: bool InstructionAck = 18
*/
InstructionAck: boolean;
/**
* @generated from protobuf field: string TimeZone = 20
*/
TimeZone: string;
}
/**
* @generated from protobuf message api.AppointmentNotify
@@ -234,7 +238,8 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
{ no: 13, name: "Attachments", kind: "message", localName: "Attachments", jsonName: "Attachments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AttachmentSummary },
{ no: 14, name: "AttachmentNumber", kind: "scalar", localName: "AttachmentNumber", jsonName: "AttachmentNumber", T: 5 /*ScalarType.INT32*/ },
{ no: 17, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 18, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ }
{ no: 18, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
{ no: 20, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
], { "api.messageType": "Command", "api.payload": true, "api.action": "Notify" });
}
create(value?: PartialMessage<AppointmentNotifyPayload>): AppointmentNotifyPayload {
@@ -251,6 +256,7 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
message.AttachmentNumber = 0;
message.Reason = "";
message.InstructionAck = false;
message.TimeZone = "";
if (value !== undefined)
reflectionMergePartial<AppointmentNotifyPayload>(this, message, value);
return message;
@@ -302,6 +308,9 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
case /* bool InstructionAck */ 18:
message.InstructionAck = reader.bool();
break;
case /* string TimeZone */ 20:
message.TimeZone = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -356,6 +365,9 @@ class AppointmentNotifyPayload$Type extends MessageType<AppointmentNotifyPayload
/* repeated api.MetadataElement CarrierInformation = 19; */
for (let i = 0; i < message.CarrierInformation.length; i++)
MetadataElement.internalBinaryWrite(message.CarrierInformation[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
/* string TimeZone = 20; */
if (message.TimeZone !== "")
writer.tag(20, WireType.LengthDelimited).string(message.TimeZone);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -112,6 +112,12 @@ export interface AppointmentCreatedPayload {
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 19
*/
TotalQuantities: QuantityByUnit[];
/**
* time zone of the site on which the appointment is booked
*
* @generated from protobuf field: string TimeZone = 20
*/
TimeZone: string;
}
/**
* Event message
@@ -1395,7 +1401,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
{ no: 16, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 17, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 18, name: "SiteName", kind: "scalar", localName: "SiteName", jsonName: "SiteName", T: 9 /*ScalarType.STRING*/ },
{ no: 19, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
{ no: 19, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
{ no: 20, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
}
create(value?: PartialMessage<AppointmentCreatedPayload>): AppointmentCreatedPayload {
@@ -1411,6 +1418,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
message.ActorID = "";
message.SiteName = "";
message.TotalQuantities = [];
message.TimeZone = "";
if (value !== undefined)
reflectionMergePartial<AppointmentCreatedPayload>(this, message, value);
return message;
@@ -1459,6 +1467,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
case /* repeated api.QuantityByUnit TotalQuantities */ 19:
message.TotalQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string TimeZone */ 20:
message.TimeZone = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -1510,6 +1521,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
/* repeated api.QuantityByUnit TotalQuantities = 19; */
for (let i = 0; i < message.TotalQuantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.TotalQuantities[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
/* string TimeZone = 20; */
if (message.TimeZone !== "")
writer.tag(20, WireType.LengthDelimited).string(message.TimeZone);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.12.0-SNAPSHOT-251212142948",
"version": "1.12.0-SNAPSHOT-251215132628",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

View File

@@ -39,6 +39,7 @@ import type { CreateSettingsRequest } from "./site";
import type { DeleteSettingsResult } from "./site";
import type { DeleteSettingsRequest } from "./site";
import type { RescheduleAppointmentRequest } from "./site";
import type { WMSUpdateAppointmentRequest } from "./site";
import type { UpdateAppointmentRequest } from "./site";
import type { CancelAppointmentResponse } from "./site";
import type { CancelAppointmentRequest } from "./site";
@@ -138,6 +139,10 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: ForceUpdateAppointment
*/
forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse>;
/**
* @generated from protobuf rpc: WMSUpdateAppointment
*/
wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateAppointmentRequest, BookAppointmentResponse>;
/**
* @generated from protobuf rpc: RescheduleAppointment
*/
@@ -343,137 +348,144 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: WMSUpdateAppointment
*/
wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<WMSUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RescheduleAppointment
*/
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
const method = this.methods[18], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceRescheduleAppointment
*/
forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
const method = this.methods[19], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteSettings
*/
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult> {
const method = this.methods[19], opt = this._transport.mergeOptions(options);
const method = this.methods[20], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSettingsRequest, DeleteSettingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateSettings
*/
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
const method = this.methods[20], opt = this._transport.mergeOptions(options);
const method = this.methods[21], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetUnits
*/
getUnits(input: GetUnitsRequest, options?: RpcOptions): UnaryCall<GetUnitsRequest, GetUnitsResponse> {
const method = this.methods[21], opt = this._transport.mergeOptions(options);
const method = this.methods[22], opt = this._transport.mergeOptions(options);
return stackIntercept<GetUnitsRequest, GetUnitsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBasicSettings
*/
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse> {
const method = this.methods[22], opt = this._transport.mergeOptions(options);
const method = this.methods[23], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBasicSettingsRequest, GetBasicSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
*/
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse> {
const method = this.methods[23], opt = this._transport.mergeOptions(options);
const method = this.methods[24], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBookingSegmentations
*/
getBookingSegmentations(input: GetBookingSegmentationsRequest, options?: RpcOptions): UnaryCall<GetBookingSegmentationsRequest, GetBookingSegmentationsResponse> {
const method = this.methods[24], opt = this._transport.mergeOptions(options);
const method = this.methods[25], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingSegmentationsRequest, GetBookingSegmentationsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ResolveSite
*/
resolveSite(input: ResolveSiteRequest, options?: RpcOptions): UnaryCall<ResolveSiteRequest, ResolveSiteResponse> {
const method = this.methods[25], opt = this._transport.mergeOptions(options);
const method = this.methods[26], opt = this._transport.mergeOptions(options);
return stackIntercept<ResolveSiteRequest, ResolveSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteFromAlias
*/
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse> {
const method = this.methods[26], opt = this._transport.mergeOptions(options);
const method = this.methods[27], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteFromAliasRequest, GetSiteFromAliasResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetAliasesOfSite
*/
getAliasesOfSite(input: GetAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse> {
const method = this.methods[27], opt = this._transport.mergeOptions(options);
const method = this.methods[28], opt = this._transport.mergeOptions(options);
return stackIntercept<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetSiteAlias
*/
setSiteAlias(input: SetSiteAliasRequest, options?: RpcOptions): UnaryCall<SetSiteAliasRequest, SetSiteAliasResponse> {
const method = this.methods[28], opt = this._transport.mergeOptions(options);
const method = this.methods[29], opt = this._transport.mergeOptions(options);
return stackIntercept<SetSiteAliasRequest, SetSiteAliasResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearSiteAlias
*/
clearSiteAlias(input: ClearSiteAliasRequest, options?: RpcOptions): UnaryCall<ClearSiteAliasRequest, ClearSiteAliasResponse> {
const method = this.methods[29], opt = this._transport.mergeOptions(options);
const method = this.methods[30], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearAliasesOfSite
*/
clearAliasesOfSite(input: ClearAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfSiteRequest, ClearAliasesOfSiteResponse> {
const method = this.methods[30], opt = this._transport.mergeOptions(options);
const method = this.methods[31], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearAliasesOfSiteRequest, ClearAliasesOfSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearAliasesOfProject
*/
clearAliasesOfProject(input: ClearAliasesOfProjectRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse> {
const method = this.methods[31], opt = this._transport.mergeOptions(options);
const method = this.methods[32], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: InitBookerProfile
*/
initBookerProfile(input: InitBookerProfileRequest, options?: RpcOptions): UnaryCall<InitBookerProfileRequest, InitBookerProfileResponse> {
const method = this.methods[32], opt = this._transport.mergeOptions(options);
const method = this.methods[33], opt = this._transport.mergeOptions(options);
return stackIntercept<InitBookerProfileRequest, InitBookerProfileResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBookingContext
*/
getBookingContext(input: GetBookingContextRequest, options?: RpcOptions): UnaryCall<GetBookingContextRequest, GetBookingContextResponse> {
const method = this.methods[33], opt = this._transport.mergeOptions(options);
const method = this.methods[34], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingContextRequest, GetBookingContextResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetMyBookingContext
*/
getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall<GetMyBookingContextRequest, GetMyBookingContextResponse> {
const method = this.methods[34], opt = this._transport.mergeOptions(options);
const method = this.methods[35], opt = this._transport.mergeOptions(options);
return stackIntercept<GetMyBookingContextRequest, GetMyBookingContextResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListSettings
*/
listSettings(input: ListSettingsRequest, options?: RpcOptions): UnaryCall<ListSettingsRequest, ListSettingsResponse> {
const method = this.methods[35], opt = this._transport.mergeOptions(options);
const method = this.methods[36], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSettingsRequest, ListSettingsResponse>("unary", this._transport, method, opt, input);
}
}

135
site.ts
View File

@@ -12,6 +12,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { Period } from "./shared";
import { WMSCommission } from "./slotbooking";
import { SegmentationFilter } from "./slotbooking";
import { PrjMetadata } from "./metadatadef";
import { CommandIdentifierEntry } from "./slotbooking";
@@ -914,6 +915,45 @@ export interface UpdateAppointmentRequest {
*/
CustomFields: CustomField[];
}
/**
* @generated from protobuf message api.WMSUpdateAppointmentRequest
*/
export interface WMSUpdateAppointmentRequest {
/**
* @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[];
/**
* The new Commissions for the appointment
*
* @generated from protobuf field: repeated api.WMSCommission Commissions = 4
*/
Commissions: WMSCommission[];
/**
* @generated from protobuf field: string ActorID = 5
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
/**
* time zone, useful only if a WMS send a message
*
* @generated from protobuf field: string TimeZone = 8
*/
TimeZone: string;
/**
* @generated from protobuf field: repeated api.CustomField CustomFields = 9
*/
CustomFields: CustomField[];
}
/**
* ListUserSites
*
@@ -3881,6 +3921,100 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
*/
export const UpdateAppointmentRequest = new UpdateAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WMSUpdateAppointmentRequest$Type extends MessageType<WMSUpdateAppointmentRequest> {
constructor() {
super("api.WMSUpdateAppointmentRequest", [
{ 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", maxLen: "192" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Your identifier", example: "\"Your_Appointment_ID\"" } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Appointment slots", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => WMSCommission, options: { "validate.rules": { repeated: { minItems: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Content of the appointment by project", example: "[\"John.doe@reflex.com\", \"will.smith@reflex.com\"]" } } },
{ no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "TimeZone is required only when a WMS calls the API" } } },
{ no: 9, name: "CustomFields", kind: "message", localName: "CustomFields", jsonName: "CustomFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CustomField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "A free-form key/value map provided by the client. The API stores and returns these fields as-is. Intended solely for client use; the API does not interpret or validate the content." } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "Commissions", "ActorID"] } } });
}
create(value?: PartialMessage<WMSUpdateAppointmentRequest>): WMSUpdateAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.Commissions = [];
message.ActorID = "";
message.TimeZone = "";
message.CustomFields = [];
if (value !== undefined)
reflectionMergePartial<WMSUpdateAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSUpdateAppointmentRequest): WMSUpdateAppointmentRequest {
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 /* 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.WMSCommission Commissions */ 4:
message.Commissions.push(WMSCommission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ActorID */ 5:
message.ActorID = reader.string();
break;
case /* string TimeZone */ 8:
message.TimeZone = reader.string();
break;
case /* repeated api.CustomField CustomFields */ 9:
message.CustomFields.push(CustomField.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: WMSUpdateAppointmentRequest, 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(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.WMSCommission Commissions = 4; */
for (let i = 0; i < message.Commissions.length; i++)
WMSCommission.internalBinaryWrite(message.Commissions[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* string ActorID = 5; */
if (message.ActorID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ActorID);
/* string TimeZone = 8; */
if (message.TimeZone !== "")
writer.tag(8, WireType.LengthDelimited).string(message.TimeZone);
/* repeated api.CustomField CustomFields = 9; */
for (let i = 0; i < message.CustomFields.length; i++)
CustomField.internalBinaryWrite(message.CustomFields[i], writer.tag(9, 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.WMSUpdateAppointmentRequest
*/
export const WMSUpdateAppointmentRequest = new WMSUpdateAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserSitesRequest$Type extends MessageType<ListUserSitesRequest> {
constructor() {
super("api.ListUserSitesRequest", [
@@ -5932,6 +6066,7 @@ export const SiteService = new ServiceType("api.SiteService", [
{ name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails), if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "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 an appointment (slots, commissions and emails) without order references, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment (slots, commissions and emails) even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "WMSUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update an appointment from a wms even if the slots are not available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: WMSUpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "RescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, O: BookAppointmentResponse },
{ name: "ForceRescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Force Update slot on an appointment." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, 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-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSettingsRequest, O: DeleteSettingsResult },

View File

@@ -570,6 +570,27 @@ export interface AppointmentCommission {
* @generated from protobuf message api.Commission
*/
export interface Commission {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string; // Identifier for the project associated with the order.
/**
* @generated from protobuf field: string OrderID = 2
*/
OrderID: string; // ID of the order, might be null for standalone.
/**
* @generated from protobuf field: string ExecutionflowID = 3
*/
ExecutionflowID: string; // ID of the executionflow, might be null for standalone.
/**
* @generated from protobuf field: string ActorID = 4
*/
ActorID: string; // Identifier for the project associated with the order.
}
/**
* @generated from protobuf message api.WMSCommission
*/
export interface WMSCommission {
/**
* @generated from protobuf field: string ProjectID = 1
*/
@@ -2271,7 +2292,7 @@ class Commission$Type extends MessageType<Commission> {
super("api.Commission", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 3, name: "ExecutionflowID", kind: "scalar", localName: "ExecutionflowID", jsonName: "ExecutionflowID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
@@ -2279,13 +2300,84 @@ class Commission$Type extends MessageType<Commission> {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.OrderID = "";
message.Quantities = [];
message.ExecutionflowID = "";
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<Commission>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Commission): Commission {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* string OrderID */ 2:
message.OrderID = reader.string();
break;
case /* string ExecutionflowID */ 3:
message.ExecutionflowID = reader.string();
break;
case /* string ActorID */ 4:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
}
}
return message;
}
internalBinaryWrite(message: Commission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string OrderID = 2; */
if (message.OrderID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.OrderID);
/* string ExecutionflowID = 3; */
if (message.ExecutionflowID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.ExecutionflowID);
/* string ActorID = 4; */
if (message.ActorID !== "")
writer.tag(4, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.Commission
*/
export const Commission = new Commission$Type();
// @generated message type with reflection information, may provide speed optimized methods
class WMSCommission$Type extends MessageType<WMSCommission> {
constructor() {
super("api.WMSCommission", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "OrderID", kind: "scalar", localName: "OrderID", jsonName: "OrderID", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
{ no: 4, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
]);
}
create(value?: PartialMessage<WMSCommission>): WMSCommission {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.OrderID = "";
message.Quantities = [];
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<WMSCommission>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WMSCommission): WMSCommission {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
@@ -2313,7 +2405,7 @@ class Commission$Type extends MessageType<Commission> {
}
return message;
}
internalBinaryWrite(message: Commission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
internalBinaryWrite(message: WMSCommission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
@@ -2333,9 +2425,9 @@ class Commission$Type extends MessageType<Commission> {
}
}
/**
* @generated MessageType for protobuf message api.Commission
* @generated MessageType for protobuf message api.WMSCommission
*/
export const Commission = new Commission$Type();
export const WMSCommission = new WMSCommission$Type();
// @generated message type with reflection information, may provide speed optimized methods
class Booking$Type extends MessageType<Booking> {
constructor() {