You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251209111956",
|
||||
"version": "1.12.0-SNAPSHOT-251210093944",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
109
slotbooking.ts
109
slotbooking.ts
@@ -629,6 +629,23 @@ export interface SlotGroup {
|
||||
*/
|
||||
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 message api.UserAttributeBookingAuthorization
|
||||
*/
|
||||
export interface UserAttributeBookingAuthorization {
|
||||
/**
|
||||
* @generated from protobuf field: string ActorID = 1
|
||||
*/
|
||||
ActorID: string;
|
||||
/**
|
||||
* @generated from protobuf field: api.BookingPermission LoadPermission = 2
|
||||
*/
|
||||
LoadPermission: BookingPermission;
|
||||
/**
|
||||
* @generated from protobuf field: api.BookingPermission UnloadPermission = 3
|
||||
*/
|
||||
UnloadPermission: BookingPermission;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf enum api.AppointmentType
|
||||
*/
|
||||
@@ -703,6 +720,35 @@ export enum SegmentationConstraintType {
|
||||
*/
|
||||
SEGMENTATION_CONSTRAINT_TYPE_ORDER_ATTRIBUTE = 2
|
||||
}
|
||||
// User Attribute Booking Authorization
|
||||
|
||||
/**
|
||||
* @generated from protobuf enum api.BookingPermission
|
||||
*/
|
||||
export enum BookingPermission {
|
||||
/**
|
||||
* @generated from protobuf enum value: BOOKING_PERMISSION_UNKNOWN = 0;
|
||||
*/
|
||||
BOOKING_PERMISSION_UNKNOWN = 0,
|
||||
/**
|
||||
* Allowed to book appointments (and update those he is related to)
|
||||
*
|
||||
* @generated from protobuf enum value: BOOKING_PERMISSION_BOOK = 1;
|
||||
*/
|
||||
BOOKING_PERMISSION_BOOK = 1,
|
||||
/**
|
||||
* Allowed to only update appointments he is related to
|
||||
*
|
||||
* @generated from protobuf enum value: BOOKING_PERMISSION_UPDATE = 2;
|
||||
*/
|
||||
BOOKING_PERMISSION_UPDATE = 2,
|
||||
/**
|
||||
* Forbidden to book or update appointments
|
||||
*
|
||||
* @generated from protobuf enum value: BOOKING_PERMISSION_FORBIDDEN = 3;
|
||||
*/
|
||||
BOOKING_PERMISSION_FORBIDDEN = 3
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Unit$Type extends MessageType<Unit> {
|
||||
constructor() {
|
||||
@@ -2474,3 +2520,66 @@ class SlotGroup$Type extends MessageType<SlotGroup> {
|
||||
* @generated MessageType for protobuf message api.SlotGroup
|
||||
*/
|
||||
export const SlotGroup = new SlotGroup$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UserAttributeBookingAuthorization$Type extends MessageType<UserAttributeBookingAuthorization> {
|
||||
constructor() {
|
||||
super("api.UserAttributeBookingAuthorization", [
|
||||
{ no: 1, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 2, name: "LoadPermission", kind: "enum", localName: "LoadPermission", jsonName: "LoadPermission", T: () => ["api.BookingPermission", BookingPermission] },
|
||||
{ no: 3, name: "UnloadPermission", kind: "enum", localName: "UnloadPermission", jsonName: "UnloadPermission", T: () => ["api.BookingPermission", BookingPermission] }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<UserAttributeBookingAuthorization>): UserAttributeBookingAuthorization {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.ActorID = "";
|
||||
message.LoadPermission = 0;
|
||||
message.UnloadPermission = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UserAttributeBookingAuthorization>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserAttributeBookingAuthorization): UserAttributeBookingAuthorization {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string ActorID */ 1:
|
||||
message.ActorID = reader.string();
|
||||
break;
|
||||
case /* api.BookingPermission LoadPermission */ 2:
|
||||
message.LoadPermission = reader.int32();
|
||||
break;
|
||||
case /* api.BookingPermission UnloadPermission */ 3:
|
||||
message.UnloadPermission = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: UserAttributeBookingAuthorization, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string ActorID = 1; */
|
||||
if (message.ActorID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
|
||||
/* api.BookingPermission LoadPermission = 2; */
|
||||
if (message.LoadPermission !== 0)
|
||||
writer.tag(2, WireType.Varint).int32(message.LoadPermission);
|
||||
/* api.BookingPermission UnloadPermission = 3; */
|
||||
if (message.UnloadPermission !== 0)
|
||||
writer.tag(3, WireType.Varint).int32(message.UnloadPermission);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.UserAttributeBookingAuthorization
|
||||
*/
|
||||
export const UserAttributeBookingAuthorization = new UserAttributeBookingAuthorization$Type();
|
||||
|
||||
Reference in New Issue
Block a user