Latest generation

This commit is contained in:
ci core model
2025-10-09 11:51:53 +00:00
parent 4d7ff052c5
commit eca9dc4a22
3 changed files with 112 additions and 16 deletions

View File

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

112
site.ts
View File

@@ -518,6 +518,10 @@ export interface GetAvailableSlotsRequest {
* @generated from protobuf field: repeated string SkippedAppointmentIDs = 7
*/
SkippedAppointmentIDs: string[];
/**
* @generated from protobuf field: string ActorID = 8
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* @generated from protobuf message api.GetAvailableSlotsResponse
@@ -629,6 +633,10 @@ export interface BookAppointmentRequest {
* @generated from protobuf field: bool InstructionAck = 12
*/
InstructionAck: boolean;
/**
* @generated from protobuf field: string ActorID = 13
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* BookAppointmentNoReference
@@ -713,6 +721,10 @@ export interface BookAppointmentNoReferenceRequest {
* @generated from protobuf field: bool InstructionAck = 13
*/
InstructionAck: boolean;
/**
* @generated from protobuf field: string ActorID = 14
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* ForceBookAppointment
@@ -809,6 +821,10 @@ export interface ForceBookAppointmentRequest {
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 16
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
/**
* @generated from protobuf field: string ActorID = 17
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* @generated from protobuf message api.BookAppointmentResponse
@@ -867,6 +883,10 @@ export interface UpdateAppointmentRequest {
* @generated from protobuf field: repeated api.Commission Commissions = 4
*/
Commissions: Commission[];
/**
* @generated from protobuf field: string ActorID = 5
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* @generated from protobuf message api.UpdateAppointmentNoReferenceRequest
@@ -904,6 +924,10 @@ export interface UpdateAppointmentNoReferenceRequest {
* @generated from protobuf field: string Reason = 6
*/
Reason: string;
/**
* @generated from protobuf field: string ActorID = 7
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* @generated from protobuf message api.ForceUpdateAppointmentRequest
@@ -953,6 +977,10 @@ export interface ForceUpdateAppointmentRequest {
* @generated from protobuf field: string Reason = 8
*/
Reason: string;
/**
* @generated from protobuf field: string ActorID = 9
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* ListUserSites
@@ -2206,8 +2234,9 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
{ no: 4, name: "SegmentationSelections", kind: "message", localName: "SegmentationSelections", jsonName: "SegmentationSelections", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SegmentationSelection },
{ no: 5, name: "StartDate", kind: "scalar", localName: "StartDate", jsonName: "StartDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 6, name: "EndDate", kind: "scalar", localName: "EndDate", jsonName: "EndDate", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { pattern: "^20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" } } } },
{ no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
{ no: 7, name: "SkippedAppointmentIDs", kind: "scalar", localName: "SkippedAppointmentIDs", jsonName: "SkippedAppointmentIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "SegmentationSelection", "ActorID"] } } });
}
create(value?: PartialMessage<GetAvailableSlotsRequest>): GetAvailableSlotsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -2217,6 +2246,7 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
message.StartDate = "";
message.EndDate = "";
message.SkippedAppointmentIDs = [];
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<GetAvailableSlotsRequest>(this, message, value);
return message;
@@ -2247,6 +2277,9 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
case /* repeated string SkippedAppointmentIDs */ 7:
message.SkippedAppointmentIDs.push(reader.string());
break;
case /* string ActorID */ 8:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2280,6 +2313,9 @@ class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest
/* repeated string SkippedAppointmentIDs = 7; */
for (let i = 0; i < message.SkippedAppointmentIDs.length; i++)
writer.tag(7, WireType.LengthDelimited).string(message.SkippedAppointmentIDs[i]);
/* string ActorID = 8; */
if (message.ActorID !== "")
writer.tag(8, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2468,8 +2504,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
{ 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: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9-]+$" } } },
{ no: 12, 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"] } } });
{ no: 12, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
{ no: 13, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Commissions", "Segmentations", "CarrierInformation", "ActorID"] } } });
}
create(value?: PartialMessage<BookAppointmentRequest>): BookAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -2483,6 +2520,7 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
message.CarrierName = "";
message.AppointmentID = "";
message.InstructionAck = false;
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<BookAppointmentRequest>(this, message, value);
return message;
@@ -2525,6 +2563,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
case /* bool InstructionAck */ 12:
message.InstructionAck = reader.bool();
break;
case /* string ActorID */ 13:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2570,6 +2611,9 @@ class BookAppointmentRequest$Type extends MessageType<BookAppointmentRequest> {
/* bool InstructionAck = 12; */
if (message.InstructionAck !== false)
writer.tag(12, WireType.Varint).bool(message.InstructionAck);
/* string ActorID = 13; */
if (message.ActorID !== "")
writer.tag(13, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2596,8 +2640,9 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
{ no: 10, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", 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", "ProjectID", "Quantities", "Segmentations", "CarrierInformation"] } } });
{ no: 13, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
{ no: 14, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "ProjectID", "Quantities", "Segmentations", "CarrierInformation", "ActorID"] } } });
}
create(value?: PartialMessage<BookAppointmentNoReferenceRequest>): BookAppointmentNoReferenceRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -2613,6 +2658,7 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
message.AppointmentID = "";
message.Reason = "";
message.InstructionAck = false;
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<BookAppointmentNoReferenceRequest>(this, message, value);
return message;
@@ -2661,6 +2707,9 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
case /* bool InstructionAck */ 13:
message.InstructionAck = reader.bool();
break;
case /* string ActorID */ 14:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2712,6 +2761,9 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
/* bool InstructionAck = 13; */
if (message.InstructionAck !== false)
writer.tag(13, WireType.Varint).bool(message.InstructionAck);
/* string ActorID = 14; */
if (message.ActorID !== "")
writer.tag(14, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2740,8 +2792,9 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
{ 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"] } } });
{ no: 16, name: "Quantities", kind: "message", localName: "Quantities", jsonName: "Quantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit },
{ no: 17, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType", "Segmentations", "ActorID"] } } });
}
create(value?: PartialMessage<ForceBookAppointmentRequest>): ForceBookAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -2759,6 +2812,7 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
message.ProjectID = "";
message.Reason = "";
message.Quantities = [];
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<ForceBookAppointmentRequest>(this, message, value);
return message;
@@ -2813,6 +2867,9 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
case /* repeated api.QuantityByUnit Quantities */ 16:
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ActorID */ 17:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2870,6 +2927,9 @@ class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentR
/* 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();
/* string ActorID = 17; */
if (message.ActorID !== "")
writer.tag(17, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3035,14 +3095,16 @@ class UpdateAppointmentRequest$Type extends MessageType<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: "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"] } } });
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
{ no: 5, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "ActorID"] } } });
}
create(value?: PartialMessage<UpdateAppointmentRequest>): UpdateAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
message.Commissions = [];
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<UpdateAppointmentRequest>(this, message, value);
return message;
@@ -3064,6 +3126,9 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
case /* repeated api.Commission Commissions */ 4:
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ActorID */ 5:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -3088,6 +3153,9 @@ class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest
/* 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();
/* string ActorID = 5; */
if (message.ActorID !== "")
writer.tag(5, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3107,8 +3175,9 @@ class UpdateAppointmentNoReferenceRequest$Type extends MessageType<UpdateAppoint
{ 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"] } } });
{ no: 6, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "ActorID"] } } });
}
create(value?: PartialMessage<UpdateAppointmentNoReferenceRequest>): UpdateAppointmentNoReferenceRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -3117,6 +3186,7 @@ class UpdateAppointmentNoReferenceRequest$Type extends MessageType<UpdateAppoint
message.ProjectID = "";
message.Quantities = [];
message.Reason = "";
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<UpdateAppointmentNoReferenceRequest>(this, message, value);
return message;
@@ -3144,6 +3214,9 @@ class UpdateAppointmentNoReferenceRequest$Type extends MessageType<UpdateAppoint
case /* string Reason */ 6:
message.Reason = reader.string();
break;
case /* string ActorID */ 7:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -3174,6 +3247,9 @@ class UpdateAppointmentNoReferenceRequest$Type extends MessageType<UpdateAppoint
/* string Reason = 6; */
if (message.Reason !== "")
writer.tag(6, WireType.LengthDelimited).string(message.Reason);
/* string ActorID = 7; */
if (message.ActorID !== "")
writer.tag(7, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3195,8 +3271,9 @@ class ForceUpdateAppointmentRequest$Type extends MessageType<ForceUpdateAppointm
{ 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"] } } });
{ no: 8, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 9, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots", "ActorID"] } } });
}
create(value?: PartialMessage<ForceUpdateAppointmentRequest>): ForceUpdateAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
@@ -3207,6 +3284,7 @@ class ForceUpdateAppointmentRequest$Type extends MessageType<ForceUpdateAppointm
message.ProjectID = "";
message.Quantities = [];
message.Reason = "";
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<ForceUpdateAppointmentRequest>(this, message, value);
return message;
@@ -3240,6 +3318,9 @@ class ForceUpdateAppointmentRequest$Type extends MessageType<ForceUpdateAppointm
case /* string Reason */ 8:
message.Reason = reader.string();
break;
case /* string ActorID */ 9:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -3276,6 +3357,9 @@ class ForceUpdateAppointmentRequest$Type extends MessageType<ForceUpdateAppointm
/* string Reason = 8; */
if (message.Reason !== "")
writer.tag(8, WireType.LengthDelimited).string(message.Reason);
/* string ActorID = 9; */
if (message.ActorID !== "")
writer.tag(9, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -592,6 +592,10 @@ export interface Commission {
* @generated from protobuf field: repeated api.QuantityByUnit Quantities = 3
*/
Quantities: QuantityByUnit[]; // Volumetry inside the truck, should have at least one item listed.
/**
* @generated from protobuf field: string ActorID = 4
*/
ActorID: string; // Identifier for the project associated with the order.
}
/**
* @generated from protobuf message api.Booking
@@ -2425,7 +2429,8 @@ 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: "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<Commission>): Commission {
@@ -2433,6 +2438,7 @@ class Commission$Type extends MessageType<Commission> {
message.ProjectID = "";
message.OrderID = "";
message.Quantities = [];
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<Commission>(this, message, value);
return message;
@@ -2451,6 +2457,9 @@ class Commission$Type extends MessageType<Commission> {
case /* repeated api.QuantityByUnit Quantities */ 3:
message.Quantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string ActorID */ 4:
message.ActorID = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2472,6 +2481,9 @@ class Commission$Type extends MessageType<Commission> {
/* repeated api.QuantityByUnit Quantities = 3; */
for (let i = 0; i < message.Quantities.length; i++)
QuantityByUnit.internalBinaryWrite(message.Quantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* 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);