You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -16,6 +16,7 @@ import { ResponseHeader } from "./shared";
|
||||
import { RequestProjectHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { EventHeader } from "./shared";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Address } from "./repositoryShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { MetadataElement } from "./shared";
|
||||
@@ -105,6 +106,12 @@ export interface AppointmentCreatedPayload {
|
||||
* @generated from protobuf field: string SiteName = 18
|
||||
*/
|
||||
SiteName: string;
|
||||
/**
|
||||
* Total volumetry in all commissions inside the truck.
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 19
|
||||
*/
|
||||
TotalQuantities: QuantityByUnit[];
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -314,6 +321,12 @@ export interface AppointmentCommissionsUpdatedPayload {
|
||||
* @generated from protobuf field: string ActorID = 1
|
||||
*/
|
||||
ActorID: string;
|
||||
/**
|
||||
* Total volumetry in all commissions inside the truck.
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit TotalQuantities = 3
|
||||
*/
|
||||
TotalQuantities: QuantityByUnit[];
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -1377,7 +1390,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
{ no: 14, name: "InstructionAck", kind: "scalar", localName: "InstructionAck", jsonName: "InstructionAck", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ 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: 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 }
|
||||
], { "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 {
|
||||
@@ -1392,6 +1406,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
message.InstructionAck = false;
|
||||
message.ActorID = "";
|
||||
message.SiteName = "";
|
||||
message.TotalQuantities = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCreatedPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -1437,6 +1452,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* string SiteName */ 18:
|
||||
message.SiteName = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit TotalQuantities */ 19:
|
||||
message.TotalQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -1485,6 +1503,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* string SiteName = 18; */
|
||||
if (message.SiteName !== "")
|
||||
writer.tag(18, WireType.LengthDelimited).string(message.SiteName);
|
||||
/* 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();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
@@ -2120,13 +2141,15 @@ class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentC
|
||||
constructor() {
|
||||
super("api.AppointmentCommissionsUpdatedPayload", [
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AppointmentCommission },
|
||||
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ }
|
||||
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 3, name: "TotalQuantities", kind: "message", localName: "TotalQuantities", jsonName: "TotalQuantities", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CommissionsUpdated" });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCommissionsUpdatedPayload>): AppointmentCommissionsUpdatedPayload {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Commissions = [];
|
||||
message.ActorID = "";
|
||||
message.TotalQuantities = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCommissionsUpdatedPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -2142,6 +2165,9 @@ class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentC
|
||||
case /* string ActorID */ 1:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit TotalQuantities */ 3:
|
||||
message.TotalQuantities.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -2160,6 +2186,9 @@ class AppointmentCommissionsUpdatedPayload$Type extends MessageType<AppointmentC
|
||||
/* repeated api.AppointmentCommission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
AppointmentCommission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByUnit TotalQuantities = 3; */
|
||||
for (let i = 0; i < message.TotalQuantities.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.TotalQuantities[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user