Latest generation

This commit is contained in:
ci core model
2025-12-10 09:42:29 +00:00
parent 6ef90ba29b
commit d6576f315a
3 changed files with 25 additions and 12 deletions

View File

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

View File

@@ -630,9 +630,9 @@ 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
* @generated from protobuf message api.BookingAuthorization
*/
export interface UserAttributeBookingAuthorization {
export interface BookingAuthorization {
/**
* @generated from protobuf field: string ActorID = 1
*/
@@ -2521,24 +2521,24 @@ class SlotGroup$Type extends MessageType<SlotGroup> {
*/
export const SlotGroup = new SlotGroup$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UserAttributeBookingAuthorization$Type extends MessageType<UserAttributeBookingAuthorization> {
class BookingAuthorization$Type extends MessageType<BookingAuthorization> {
constructor() {
super("api.UserAttributeBookingAuthorization", [
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<UserAttributeBookingAuthorization>): UserAttributeBookingAuthorization {
create(value?: PartialMessage<BookingAuthorization>): BookingAuthorization {
const message = globalThis.Object.create((this.messagePrototype!));
message.ActorID = "";
message.LoadPermission = 0;
message.UnloadPermission = 0;
if (value !== undefined)
reflectionMergePartial<UserAttributeBookingAuthorization>(this, message, value);
reflectionMergePartial<BookingAuthorization>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserAttributeBookingAuthorization): UserAttributeBookingAuthorization {
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();
@@ -2563,7 +2563,7 @@ class UserAttributeBookingAuthorization$Type extends MessageType<UserAttributeBo
}
return message;
}
internalBinaryWrite(message: UserAttributeBookingAuthorization, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
internalBinaryWrite(message: BookingAuthorization, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ActorID = 1; */
if (message.ActorID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ActorID);
@@ -2580,6 +2580,6 @@ class UserAttributeBookingAuthorization$Type extends MessageType<UserAttributeBo
}
}
/**
* @generated MessageType for protobuf message api.UserAttributeBookingAuthorization
* @generated MessageType for protobuf message api.BookingAuthorization
*/
export const UserAttributeBookingAuthorization = new UserAttributeBookingAuthorization$Type();
export const BookingAuthorization = new BookingAuthorization$Type();

View File

@@ -12,6 +12,7 @@ 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
*/
@@ -32,6 +33,10 @@ export interface UserAttribute {
* @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.RestrictionActorIDs
@@ -159,7 +164,8 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "UserID", kind: "scalar", localName: "UserID", jsonName: "UserID", T: 9 /*ScalarType.STRING*/ },
{ 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 }
]);
}
create(value?: PartialMessage<UserAttribute>): UserAttribute {
@@ -168,6 +174,7 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
message.UserID = "";
message.PartnerID = "";
message.RestrictionActorIDs = [];
message.BookingAuthorizations = [];
if (value !== undefined)
reflectionMergePartial<UserAttribute>(this, message, value);
return message;
@@ -189,6 +196,9 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
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")
@@ -213,6 +223,9 @@ class UserAttribute$Type extends MessageType<UserAttribute> {
/* 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);