You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -16,7 +16,7 @@ import { RequestSiteHeader } from "./shared";
|
||||
import { EntityID } from "./shared";
|
||||
import { EventHeader } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformation } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Commission } from "./collabShared";
|
||||
@@ -58,9 +58,9 @@ export interface AppointmentCreatedPayload {
|
||||
/**
|
||||
* Required carrierInformation, some can be obligatory
|
||||
*
|
||||
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"];
|
||||
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 5 [json_name = "CarrierInformation"];
|
||||
*/
|
||||
CarrierInformation: CarrierInformation[];
|
||||
CarrierInformation: CarrierInformationWithValue[];
|
||||
/**
|
||||
* The slot booked for the appointment
|
||||
*
|
||||
@@ -203,9 +203,9 @@ export interface AppointmentCarrierInformationUpdatedPayload {
|
||||
/**
|
||||
* Required carrierInformation, some can be obligatory
|
||||
*
|
||||
* @generated from protobuf field: repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];
|
||||
* @generated from protobuf field: repeated api.CarrierInformationWithValue CarrierInformation = 1 [json_name = "CarrierInformation"];
|
||||
*/
|
||||
CarrierInformation: CarrierInformation[];
|
||||
CarrierInformation: CarrierInformationWithValue[];
|
||||
}
|
||||
/**
|
||||
* Event message
|
||||
@@ -709,7 +709,7 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
{ no: 2, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 3, name: "QuantitiesByUnits", kind: "message", localName: "QuantitiesByUnits", jsonName: "QuantitiesByUnits", repeat: 2 /*RepeatType.UNPACKED*/, T: () => QuantityByUnit, options: { "validate.rules": { repeated: { minItems: "1" } } } },
|
||||
{ no: 4, name: "Segmentations", kind: "message", localName: "Segmentations", jsonName: "Segmentations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 5, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
|
||||
{ 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\"]" } } }
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "Created", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload", required: ["AppointmentType"] } } });
|
||||
@@ -743,8 +743,8 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* repeated api.Segmentation Segmentations = 4 [json_name = "Segmentations"];*/ 4:
|
||||
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"];*/ 5:
|
||||
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.CarrierInformationWithValue CarrierInformation = 5 [json_name = "CarrierInformation"];*/ 5:
|
||||
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.Slot Slot = 6 [json_name = "Slot"];*/ 6:
|
||||
message.Slot = Slot.internalBinaryRead(reader, reader.uint32(), options, message.Slot);
|
||||
@@ -776,9 +776,9 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* repeated api.Segmentation Segmentations = 4 [json_name = "Segmentations"]; */
|
||||
for (let i = 0; i < message.Segmentations.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformation CarrierInformation = 5 [json_name = "CarrierInformation"]; */
|
||||
/* repeated api.CarrierInformationWithValue CarrierInformation = 5 [json_name = "CarrierInformation"]; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.Slot Slot = 6 [json_name = "Slot"]; */
|
||||
if (message.Slot)
|
||||
Slot.internalBinaryWrite(message.Slot, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1183,7 +1183,7 @@ export const AppointmentCanceledResponse = new AppointmentCanceledResponse$Type(
|
||||
class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType<AppointmentCarrierInformationUpdatedPayload> {
|
||||
constructor() {
|
||||
super("api.AppointmentCarrierInformationUpdatedPayload", [
|
||||
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation }
|
||||
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformationWithValue }
|
||||
], { "api.messageType": "Event", "api.payload": true, "api.inputEvent": "CarrierInformationUpdated", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { description: "Event Payload" } } });
|
||||
}
|
||||
create(value?: PartialMessage<AppointmentCarrierInformationUpdatedPayload>): AppointmentCarrierInformationUpdatedPayload {
|
||||
@@ -1198,8 +1198,8 @@ class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType<Appoi
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1:
|
||||
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
case /* repeated api.CarrierInformationWithValue CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1:
|
||||
message.CarrierInformation.push(CarrierInformationWithValue.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -1213,9 +1213,9 @@ class AppointmentCarrierInformationUpdatedPayload$Type extends MessageType<Appoi
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: AppointmentCarrierInformationUpdatedPayload, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"]; */
|
||||
/* repeated api.CarrierInformationWithValue CarrierInformation = 1 [json_name = "CarrierInformation"]; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
CarrierInformationWithValue.internalBinaryWrite(message.CarrierInformation[i], writer.tag(1, 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