You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -19,7 +19,6 @@ import { MetadataElement } from "./shared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
//
|
||||
@@ -44,12 +43,6 @@ export interface AppointmentCreatedPayload {
|
||||
* @generated from protobuf field: repeated api.Commission Commissions = 2
|
||||
*/
|
||||
Commissions: Commission[];
|
||||
/**
|
||||
* Cumulative quantity for all the commissions
|
||||
*
|
||||
* @generated from protobuf field: repeated api.QuantityByUnit QuantitiesByUnits = 3
|
||||
*/
|
||||
QuantitiesByUnits: QuantityByUnit[];
|
||||
/**
|
||||
* Set of segmentation constraining the slot booking
|
||||
*
|
||||
@@ -784,7 +777,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
super("api.AppointmentCreatedPayload", [
|
||||
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } },
|
||||
{ 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: () => CarrierInformationWithValue },
|
||||
{ no: 6, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
|
||||
@@ -798,7 +790,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.AppointmentType = 0;
|
||||
message.Commissions = [];
|
||||
message.QuantitiesByUnits = [];
|
||||
message.Segmentations = [];
|
||||
message.CarrierInformation = [];
|
||||
message.Emails = [];
|
||||
@@ -820,9 +811,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
case /* repeated api.Commission Commissions */ 2:
|
||||
message.Commissions.push(Commission.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.QuantityByUnit QuantitiesByUnits */ 3:
|
||||
message.QuantitiesByUnits.push(QuantityByUnit.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.Segmentation Segmentations */ 4:
|
||||
message.Segmentations.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
@@ -862,9 +850,6 @@ class AppointmentCreatedPayload$Type extends MessageType<AppointmentCreatedPaylo
|
||||
/* repeated api.Commission Commissions = 2; */
|
||||
for (let i = 0; i < message.Commissions.length; i++)
|
||||
Commission.internalBinaryWrite(message.Commissions[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.QuantityByUnit QuantitiesByUnits = 3; */
|
||||
for (let i = 0; i < message.QuantitiesByUnits.length; i++)
|
||||
QuantityByUnit.internalBinaryWrite(message.QuantitiesByUnits[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Segmentation Segmentations = 4; */
|
||||
for (let i = 0; i < message.Segmentations.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.Segmentations[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
||||
|
||||
Reference in New Issue
Block a user