You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -586,9 +586,9 @@ export interface SlotGroup {
|
||||
*/
|
||||
Slots: Slot[]; // List of slots belonging to the group.
|
||||
/**
|
||||
* @generated from protobuf field: uint32 Availability = 2
|
||||
* @generated from protobuf field: int32 Availability = 2
|
||||
*/
|
||||
Availability: number; // Availability of the slot group according to site configuration and current bookings (0: no longer available, 100: fully available).
|
||||
Availability: number; // Availability of the slot group according to site configuration and current bookings -1 to 100 (-1: closed, 0: no longer available, 100: fully available).
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.AppointmentType
|
||||
@@ -2461,7 +2461,7 @@ class SlotGroup$Type extends MessageType<SlotGroup> {
|
||||
constructor() {
|
||||
super("api.SlotGroup", [
|
||||
{ no: 1, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot },
|
||||
{ no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 13 /*ScalarType.UINT32*/ }
|
||||
{ no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 100, gte: -1 } } } }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<SlotGroup>): SlotGroup {
|
||||
@@ -2480,8 +2480,8 @@ class SlotGroup$Type extends MessageType<SlotGroup> {
|
||||
case /* repeated api.Slot Slots */ 1:
|
||||
message.Slots.push(Slot.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* uint32 Availability */ 2:
|
||||
message.Availability = reader.uint32();
|
||||
case /* int32 Availability */ 2:
|
||||
message.Availability = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
@@ -2498,9 +2498,9 @@ class SlotGroup$Type extends MessageType<SlotGroup> {
|
||||
/* repeated api.Slot Slots = 1; */
|
||||
for (let i = 0; i < message.Slots.length; i++)
|
||||
Slot.internalBinaryWrite(message.Slots[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* uint32 Availability = 2; */
|
||||
/* int32 Availability = 2; */
|
||||
if (message.Availability !== 0)
|
||||
writer.tag(2, WireType.Varint).uint32(message.Availability);
|
||||
writer.tag(2, WireType.Varint).int32(message.Availability);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user