Latest generation

This commit is contained in:
ci core model
2026-02-26 17:55:22 +00:00
parent 055702919d
commit 0d38e2e8ac
2 changed files with 64 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@reflex-platform/npm-core-sdk",
"version": "1.13.0-SNAPSHOT-260226162604",
"version": "1.13.0-SNAPSHOT-260226175435",
"description": "npm libs from core model proto files",
"homepage": "",
"main": "index.ts",

View File

@@ -733,7 +733,15 @@ export interface BookableSlot {
/**
* @generated from protobuf field: string Reason = 3
*/
Reason: string;
Reason: string; // TODO delete at a later stage, to keep for the moment for backward compatibility with the front end which is using it, but we want to move to the use of reason code only
/**
* @generated from protobuf field: api.SlotAvailabilityReasonCode ReasonCode = 4
*/
ReasonCode: SlotAvailabilityReasonCode; // Reason code for the availability status of the slot.
/**
* @generated from protobuf field: repeated api.CapacityDefinition ReachedLimitations = 5
*/
ReachedLimitations: CapacityDefinition[]; // Capacity definition of the slot, to explain the reason code when the availability is not 100.
}
/**
* @generated from protobuf enum api.AppointmentType
@@ -809,6 +817,43 @@ export enum SegmentationConstraintType {
*/
SEGMENTATION_CONSTRAINT_TYPE_ORDER_ATTRIBUTE = 2
}
/**
* @generated from protobuf enum api.SlotAvailabilityReasonCode
*/
export enum SlotAvailabilityReasonCode {
/**
* @generated from protobuf enum value: SLOT_REASON_0000_UNKNOWN = 0;
*/
SLOT_REASON_0000_UNKNOWN = 0,
/**
* @generated from protobuf enum value: SLOT_REASON_1000_AVAILABLE = 1000;
*/
SLOT_REASON_1000_AVAILABLE = 1000,
/**
* @generated from protobuf enum value: SLOT_REASON_1100_AVAILABLE_BEFORE_MINIMUM_NOTICE_TIME = 1100;
*/
SLOT_REASON_1100_AVAILABLE_BEFORE_MINIMUM_NOTICE_TIME = 1100,
/**
* @generated from protobuf enum value: SLOT_REASON_1200_AVAILABLE_AFTER_MAXIMUM_NOTICE_TIME = 1200;
*/
SLOT_REASON_1200_AVAILABLE_AFTER_MAXIMUM_NOTICE_TIME = 1200,
/**
* @generated from protobuf enum value: SLOT_REASON_2000_OVERBOOKED = 2000;
*/
SLOT_REASON_2000_OVERBOOKED = 2000,
/**
* @generated from protobuf enum value: SLOT_REASON_2100_OVERBOOKED_BEFORE_MINIMUM_NOTICE_TIME = 2100;
*/
SLOT_REASON_2100_OVERBOOKED_BEFORE_MINIMUM_NOTICE_TIME = 2100,
/**
* @generated from protobuf enum value: SLOT_REASON_2200_OVERBOOKED_AFTER_MAXIMUM_NOTICE_TIME = 2200;
*/
SLOT_REASON_2200_OVERBOOKED_AFTER_MAXIMUM_NOTICE_TIME = 2200,
/**
* @generated from protobuf enum value: SLOT_REASON_4000_CLOSED = 4000;
*/
SLOT_REASON_4000_CLOSED = 4000
}
// @generated message type with reflection information, may provide speed optimized methods
class Unit$Type extends MessageType<Unit> {
constructor() {
@@ -2875,13 +2920,17 @@ class BookableSlot$Type extends MessageType<BookableSlot> {
super("api.BookableSlot", [
{ no: 1, name: "Slot", kind: "message", localName: "Slot", jsonName: "Slot", T: () => Slot },
{ no: 2, name: "Availability", kind: "scalar", localName: "Availability", jsonName: "Availability", T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { lte: 100, gte: -1 } } } },
{ no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ }
{ no: 3, name: "Reason", kind: "scalar", localName: "Reason", jsonName: "Reason", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "ReasonCode", kind: "enum", localName: "ReasonCode", jsonName: "ReasonCode", T: () => ["api.SlotAvailabilityReasonCode", SlotAvailabilityReasonCode] },
{ no: 5, name: "ReachedLimitations", kind: "message", localName: "ReachedLimitations", jsonName: "ReachedLimitations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityDefinition }
]);
}
create(value?: PartialMessage<BookableSlot>): BookableSlot {
const message = globalThis.Object.create((this.messagePrototype!));
message.Availability = 0;
message.Reason = "";
message.ReasonCode = 0;
message.ReachedLimitations = [];
if (value !== undefined)
reflectionMergePartial<BookableSlot>(this, message, value);
return message;
@@ -2900,6 +2949,12 @@ class BookableSlot$Type extends MessageType<BookableSlot> {
case /* string Reason */ 3:
message.Reason = reader.string();
break;
case /* api.SlotAvailabilityReasonCode ReasonCode */ 4:
message.ReasonCode = reader.int32();
break;
case /* repeated api.CapacityDefinition ReachedLimitations */ 5:
message.ReachedLimitations.push(CapacityDefinition.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -2921,6 +2976,12 @@ class BookableSlot$Type extends MessageType<BookableSlot> {
/* string Reason = 3; */
if (message.Reason !== "")
writer.tag(3, WireType.LengthDelimited).string(message.Reason);
/* api.SlotAvailabilityReasonCode ReasonCode = 4; */
if (message.ReasonCode !== 0)
writer.tag(4, WireType.Varint).int32(message.ReasonCode);
/* repeated api.CapacityDefinition ReachedLimitations = 5; */
for (let i = 0; i < message.ReachedLimitations.length; i++)
CapacityDefinition.internalBinaryWrite(message.ReachedLimitations[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);