You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user