You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -12,7 +12,6 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { ResponseHeader } from "./shared";
|
||||
import { AckDocument } from "./slotbooking";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { EntityID } from "./shared";
|
||||
import { BookableSlot } from "./slotbooking";
|
||||
@@ -190,10 +189,6 @@ export interface BookAppointmentPayload {
|
||||
* @generated from protobuf field: repeated string Emails = 13
|
||||
*/
|
||||
Emails: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.AckDocument AckDocuments = 15
|
||||
*/
|
||||
AckDocuments: AckDocument[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.BookBookingAppointmentResponse
|
||||
@@ -719,8 +714,7 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
{ no: 9, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||
{ no: 11, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent },
|
||||
{ no: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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: 15, name: "AckDocuments", kind: "message", localName: "AckDocuments", jsonName: "AckDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => AckDocument }
|
||||
{ no: 13, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "n1validate.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\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType", "Slot", "CarrierInformation", "Attendees"] } }, "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created" });
|
||||
}
|
||||
create(value?: PartialMessage<BookAppointmentPayload>): BookAppointmentPayload {
|
||||
@@ -734,7 +728,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
message.InstructionAck = false;
|
||||
message.TimeZone = "";
|
||||
message.Emails = [];
|
||||
message.AckDocuments = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<BookAppointmentPayload>(this, message, value);
|
||||
return message;
|
||||
@@ -780,9 +773,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
case /* repeated string Emails */ 13:
|
||||
message.Emails.push(reader.string());
|
||||
break;
|
||||
case /* repeated api.AckDocument AckDocuments */ 15:
|
||||
message.AckDocuments.push(AckDocument.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -831,9 +821,6 @@ class BookAppointmentPayload$Type extends MessageType<BookAppointmentPayload> {
|
||||
/* repeated api.MetadataElement SegmentationKeys = 14; */
|
||||
for (let i = 0; i < message.SegmentationKeys.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.AckDocument AckDocuments = 15; */
|
||||
for (let i = 0; i < message.AckDocuments.length; i++)
|
||||
AckDocument.internalBinaryWrite(message.AckDocuments[i], writer.tag(15, 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