You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -79,6 +79,14 @@ export interface AppointmentCreatedPayload {
|
||||
* @generated from protobuf field: repeated api.MetadataElement MetaData = 8
|
||||
*/
|
||||
MetaData: MetadataElement[];
|
||||
/**
|
||||
* @generated from protobuf field: string CarrierID = 10
|
||||
*/
|
||||
CarrierID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string CarrierName = 11
|
||||
*/
|
||||
CarrierName: string;
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -781,7 +789,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
{ no: 7, 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: 8, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } }
|
||||
{ no: 8, name: "MetaData", kind: "message", localName: "MetaData", jsonName: "MetaData", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Metadata are characteristics specific to the site. They can be of several data form (string, integer, float, boolean or timestamp)" }, "api.metadata": true, "api.aggKey": "Key" } },
|
||||
{ no: 10, name: "CarrierID", kind: "scalar", localName: "CarrierID", jsonName: "CarrierID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 11, name: "CarrierName", kind: "scalar", localName: "CarrierName", jsonName: "CarrierName", 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 {
|
||||
@@ -793,6 +803,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
message.MetaData = [];
|
||||
message.CarrierID = "";
|
||||
message.CarrierName = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<AppointmentCreatedPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -826,6 +838,12 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* repeated api.MetadataElement MetaData */ 8:
|
||||
message.MetaData.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string CarrierID */ 10:
|
||||
message.CarrierID = reader.string();
|
||||
break;
|
||||
case /* string CarrierName */ 11:
|
||||
message.CarrierName = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -862,6 +880,12 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* repeated api.MetadataElement MetaData = 8; */
|
||||
for (let i = 0; i < message.MetaData.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.MetaData[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string CarrierID = 10; */
|
||||
if (message.CarrierID !== "")
|
||||
writer.tag(10, WireType.LengthDelimited).string(message.CarrierID);
|
||||
/* string CarrierName = 11; */
|
||||
if (message.CarrierName !== "")
|
||||
writer.tag(11, WireType.LengthDelimited).string(message.CarrierName);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user