Latest generation

This commit is contained in:
ci core model
2025-12-10 09:48:27 +00:00
parent d6576f315a
commit e4e6b324c4
3 changed files with 125 additions and 112 deletions

View File

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

View File

@@ -629,23 +629,6 @@ 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.BookingAuthorization
*/
export interface BookingAuthorization {
/**
* @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
*/
@@ -720,35 +703,6 @@ 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() {
@@ -2520,66 +2474,3 @@ 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 BookingAuthorization$Type extends MessageType<BookingAuthorization> {
constructor() {
super("api.BookingAuthorization", [
{ 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<BookingAuthorization>): BookingAuthorization {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.LoadPermission = 0;
message.UnloadPermission = 0;
if (value !== undefined)
reflectionMergePartial<BookingAuthorization>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookingAuthorization): BookingAuthorization {
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: BookingAuthorization, 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.BookingAuthorization
*/
export const BookingAuthorization = new BookingAuthorization$Type();

View File

@@ -12,7 +12,6 @@ import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { RequestProjectHeader } from "./shared";
import { BookingAuthorization } from "./slotbooking";
/**
* @generated from protobuf message api.UserAttribute
*/
@@ -39,6 +38,8 @@ export interface UserAttribute {
BookingAuthorizations: BookingAuthorization[];
}
/**
* User Attribute Restriction Actor IDs -- related to data restriction
*
* @generated from protobuf message api.RestrictionActorIDs
*/
export interface RestrictionActorIDs {
@@ -51,6 +52,23 @@ export interface RestrictionActorIDs {
*/
ActorIDs: string[];
}
/**
* @generated from protobuf message api.BookingAuthorization
*/
export interface BookingAuthorization {
/**
* @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 message api.GetUserAttributesRequest
*/
@@ -93,6 +111,10 @@ export interface PutUserAttributesRequest {
* @generated from protobuf field: repeated api.RestrictionActorIDs RestrictionActorIDs = 4
*/
RestrictionActorIDs: RestrictionActorIDs[];
/**
* @generated from protobuf field: repeated api.BookingAuthorization BookingAuthorizations = 5
*/
BookingAuthorizations: BookingAuthorization[];
}
/**
* @generated from protobuf message api.PutUserAttributesResult
@@ -157,6 +179,35 @@ export interface DeleteForProjectUserAttributesRequest {
*/
export interface DeleteForProjectUserAttributesResult {
}
/**
* User Attribute Booking Authorization -- related to slotbooking
*
* @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 UserAttribute$Type extends MessageType<UserAttribute> {
constructor() {
@@ -292,6 +343,69 @@ class RestrictionActorIDs$Type extends MessageType<RestrictionActorIDs> {
*/
export const RestrictionActorIDs = new RestrictionActorIDs$Type();
// @generated message type with reflection information, may provide speed optimized methods
class BookingAuthorization$Type extends MessageType<BookingAuthorization> {
constructor() {
super("api.BookingAuthorization", [
{ 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<BookingAuthorization>): BookingAuthorization {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.LoadPermission = 0;
message.UnloadPermission = 0;
if (value !== undefined)
reflectionMergePartial<BookingAuthorization>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BookingAuthorization): BookingAuthorization {
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: BookingAuthorization, 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.BookingAuthorization
*/
export const BookingAuthorization = new BookingAuthorization$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetUserAttributesRequest$Type extends MessageType<GetUserAttributesRequest> {
constructor() {
super("api.GetUserAttributesRequest", [
@@ -398,7 +512,8 @@ class PutUserAttributesRequest$Type extends MessageType<PutUserAttributesRequest
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "RestrictionActorIDs", kind: "message", localName: "RestrictionActorIDs", jsonName: "RestrictionActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionActorIDs }
{ no: 4, name: "RestrictionActorIDs", kind: "message", localName: "RestrictionActorIDs", jsonName: "RestrictionActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RestrictionActorIDs },
{ no: 5, name: "BookingAuthorizations", kind: "message", localName: "BookingAuthorizations", jsonName: "BookingAuthorizations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BookingAuthorization }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserID", "PartnerID"] } } });
}
create(value?: PartialMessage<PutUserAttributesRequest>): PutUserAttributesRequest {
@@ -406,6 +521,7 @@ class PutUserAttributesRequest$Type extends MessageType<PutUserAttributesRequest
message.UserID = "";
message.PartnerID = "";
message.RestrictionActorIDs = [];
message.BookingAuthorizations = [];
if (value !== undefined)
reflectionMergePartial<PutUserAttributesRequest>(this, message, value);
return message;
@@ -427,6 +543,9 @@ class PutUserAttributesRequest$Type extends MessageType<PutUserAttributesRequest
case /* repeated api.RestrictionActorIDs RestrictionActorIDs */ 4:
message.RestrictionActorIDs.push(RestrictionActorIDs.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.BookingAuthorization BookingAuthorizations */ 5:
message.BookingAuthorizations.push(BookingAuthorization.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -451,6 +570,9 @@ class PutUserAttributesRequest$Type extends MessageType<PutUserAttributesRequest
/* repeated api.RestrictionActorIDs RestrictionActorIDs = 4; */
for (let i = 0; i < message.RestrictionActorIDs.length; i++)
RestrictionActorIDs.internalBinaryWrite(message.RestrictionActorIDs[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BookingAuthorization BookingAuthorizations = 5; */
for (let i = 0; i < message.BookingAuthorizations.length; i++)
BookingAuthorization.internalBinaryWrite(message.BookingAuthorizations[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);