Latest generation

This commit is contained in:
ci core model
2025-11-27 09:38:20 +00:00
parent 8b6edb84f2
commit deb3dec4e4
3 changed files with 332 additions and 3 deletions

View File

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

View File

@@ -6,6 +6,8 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { SiteService } from "./site";
import type { ListSettingsResponse } from "./site";
import type { ListSettingsRequest } from "./site";
import type { GetMyBookingContextResponse } from "./site";
import type { GetMyBookingContextRequest } from "./site";
import type { GetBookingContextResponse } from "./site";
import type { GetBookingContextRequest } from "./site";
import type { InitBookerProfileResponse } from "./site";
@@ -204,6 +206,10 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: GetBookingContext
*/
getBookingContext(input: GetBookingContextRequest, options?: RpcOptions): UnaryCall<GetBookingContextRequest, GetBookingContextResponse>;
/**
* @generated from protobuf rpc: GetMyBookingContext
*/
getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall<GetMyBookingContextRequest, GetMyBookingContextResponse>;
/**
* @generated from protobuf rpc: ListSettings
*/
@@ -456,11 +462,18 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
const method = this.methods[33], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingContextRequest, GetBookingContextResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetMyBookingContext
*/
getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall<GetMyBookingContextRequest, GetMyBookingContextResponse> {
const method = this.methods[34], opt = this._transport.mergeOptions(options);
return stackIntercept<GetMyBookingContextRequest, GetMyBookingContextResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListSettings
*/
listSettings(input: ListSettingsRequest, options?: RpcOptions): UnaryCall<ListSettingsRequest, ListSettingsResponse> {
const method = this.methods[34], opt = this._transport.mergeOptions(options);
const method = this.methods[35], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSettingsRequest, ListSettingsResponse>("unary", this._transport, method, opt, input);
}
}

318
site.ts
View File

@@ -702,6 +702,10 @@ export interface SiteActor {
* @generated from protobuf field: string SiteID = 3
*/
SiteID: string;
/**
* @generated from protobuf field: api.AppointmentType Type = 4
*/
Type: AppointmentType;
}
/**
* @generated from protobuf message api.GetBookingContextRequest
@@ -1244,6 +1248,59 @@ export interface GetBookingSegmentationsResponse {
*/
SegmentationChoices: Segmentation[];
}
/**
* @generated from protobuf message api.GetMyBookingContextRequest
*/
export interface GetMyBookingContextRequest {
}
/**
* @generated from protobuf message api.GetMyBookingContextResponse
*/
export interface GetMyBookingContextResponse {
/**
* @generated from protobuf field: repeated api.SiteBookingContext SiteBookingContexts = 1
*/
SiteBookingContexts: SiteBookingContext[];
}
/**
* @generated from protobuf message api.SiteBookingContext
*/
export interface SiteBookingContext {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
/**
* @generated from protobuf field: repeated api.SiteProjectBookingContext ByProjects = 2
*/
ByProjects: SiteProjectBookingContext[];
}
/**
* @generated from protobuf message api.SiteProjectBookingContext
*/
export interface SiteProjectBookingContext {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: repeated api.SiteProjectAptTypeBookingContext ByAppointmentTypes = 2
*/
ByAppointmentTypes: SiteProjectAptTypeBookingContext[];
}
/**
* @generated from protobuf message api.SiteProjectAptTypeBookingContext
*/
export interface SiteProjectAptTypeBookingContext {
/**
* @generated from protobuf field: api.AppointmentType AppointmentType = 1
*/
AppointmentType: AppointmentType;
/**
* @generated from protobuf field: repeated string ActorIDs = 2
*/
ActorIDs: string[];
}
/**
* @generated from protobuf message api.InitBookerProfileRequest
*/
@@ -3027,7 +3084,8 @@ class SiteActor$Type extends MessageType<SiteActor> {
super("api.SiteActor", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 2, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
{ no: 3, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 4, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.AppointmentType", AppointmentType], options: { "validate.rules": { enum: { definedOnly: true } } } }
]);
}
create(value?: PartialMessage<SiteActor>): SiteActor {
@@ -3035,6 +3093,7 @@ class SiteActor$Type extends MessageType<SiteActor> {
message.ProjectID = "";
message.ActorID = "";
message.SiteID = "";
message.Type = 0;
if (value !== undefined)
reflectionMergePartial<SiteActor>(this, message, value);
return message;
@@ -3053,6 +3112,9 @@ class SiteActor$Type extends MessageType<SiteActor> {
case /* string SiteID */ 3:
message.SiteID = reader.string();
break;
case /* api.AppointmentType Type */ 4:
message.Type = reader.int32();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -3074,6 +3136,9 @@ class SiteActor$Type extends MessageType<SiteActor> {
/* string SiteID = 3; */
if (message.SiteID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.SiteID);
/* api.AppointmentType Type = 4; */
if (message.Type !== 0)
writer.tag(4, WireType.Varint).int32(message.Type);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5120,6 +5185,256 @@ class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegment
*/
export const GetBookingSegmentationsResponse = new GetBookingSegmentationsResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetMyBookingContextRequest$Type extends MessageType<GetMyBookingContextRequest> {
constructor() {
super("api.GetMyBookingContextRequest", []);
}
create(value?: PartialMessage<GetMyBookingContextRequest>): GetMyBookingContextRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetMyBookingContextRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetMyBookingContextRequest): GetMyBookingContextRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
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: GetMyBookingContextRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetMyBookingContextRequest
*/
export const GetMyBookingContextRequest = new GetMyBookingContextRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetMyBookingContextResponse$Type extends MessageType<GetMyBookingContextResponse> {
constructor() {
super("api.GetMyBookingContextResponse", [
{ no: 1, name: "SiteBookingContexts", kind: "message", localName: "SiteBookingContexts", jsonName: "SiteBookingContexts", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteBookingContext }
]);
}
create(value?: PartialMessage<GetMyBookingContextResponse>): GetMyBookingContextResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteBookingContexts = [];
if (value !== undefined)
reflectionMergePartial<GetMyBookingContextResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetMyBookingContextResponse): GetMyBookingContextResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SiteBookingContext SiteBookingContexts */ 1:
message.SiteBookingContexts.push(SiteBookingContext.internalBinaryRead(reader, reader.uint32(), options));
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: GetMyBookingContextResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SiteBookingContext SiteBookingContexts = 1; */
for (let i = 0; i < message.SiteBookingContexts.length; i++)
SiteBookingContext.internalBinaryWrite(message.SiteBookingContexts[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetMyBookingContextResponse
*/
export const GetMyBookingContextResponse = new GetMyBookingContextResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteBookingContext$Type extends MessageType<SiteBookingContext> {
constructor() {
super("api.SiteBookingContext", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ByProjects", kind: "message", localName: "ByProjects", jsonName: "ByProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteProjectBookingContext }
]);
}
create(value?: PartialMessage<SiteBookingContext>): SiteBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
message.ByProjects = [];
if (value !== undefined)
reflectionMergePartial<SiteBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteBookingContext): SiteBookingContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string SiteID */ 1:
message.SiteID = reader.string();
break;
case /* repeated api.SiteProjectBookingContext ByProjects */ 2:
message.ByProjects.push(SiteProjectBookingContext.internalBinaryRead(reader, reader.uint32(), options));
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: SiteBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
/* repeated api.SiteProjectBookingContext ByProjects = 2; */
for (let i = 0; i < message.ByProjects.length; i++)
SiteProjectBookingContext.internalBinaryWrite(message.ByProjects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteBookingContext
*/
export const SiteBookingContext = new SiteBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteProjectBookingContext$Type extends MessageType<SiteProjectBookingContext> {
constructor() {
super("api.SiteProjectBookingContext", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ByAppointmentTypes", kind: "message", localName: "ByAppointmentTypes", jsonName: "ByAppointmentTypes", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteProjectAptTypeBookingContext }
]);
}
create(value?: PartialMessage<SiteProjectBookingContext>): SiteProjectBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.ByAppointmentTypes = [];
if (value !== undefined)
reflectionMergePartial<SiteProjectBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteProjectBookingContext): SiteProjectBookingContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string ProjectID */ 1:
message.ProjectID = reader.string();
break;
case /* repeated api.SiteProjectAptTypeBookingContext ByAppointmentTypes */ 2:
message.ByAppointmentTypes.push(SiteProjectAptTypeBookingContext.internalBinaryRead(reader, reader.uint32(), options));
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: SiteProjectBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* repeated api.SiteProjectAptTypeBookingContext ByAppointmentTypes = 2; */
for (let i = 0; i < message.ByAppointmentTypes.length; i++)
SiteProjectAptTypeBookingContext.internalBinaryWrite(message.ByAppointmentTypes[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteProjectBookingContext
*/
export const SiteProjectBookingContext = new SiteProjectBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteProjectAptTypeBookingContext$Type extends MessageType<SiteProjectAptTypeBookingContext> {
constructor() {
super("api.SiteProjectAptTypeBookingContext", [
{ no: 1, name: "AppointmentType", kind: "enum", localName: "AppointmentType", jsonName: "AppointmentType", T: () => ["api.AppointmentType", AppointmentType] },
{ no: 2, name: "ActorIDs", kind: "scalar", localName: "ActorIDs", jsonName: "ActorIDs", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SiteProjectAptTypeBookingContext>): SiteProjectAptTypeBookingContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentType = 0;
message.ActorIDs = [];
if (value !== undefined)
reflectionMergePartial<SiteProjectAptTypeBookingContext>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteProjectAptTypeBookingContext): SiteProjectAptTypeBookingContext {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.AppointmentType AppointmentType */ 1:
message.AppointmentType = reader.int32();
break;
case /* repeated string ActorIDs */ 2:
message.ActorIDs.push(reader.string());
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: SiteProjectAptTypeBookingContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.AppointmentType AppointmentType = 1; */
if (message.AppointmentType !== 0)
writer.tag(1, WireType.Varint).int32(message.AppointmentType);
/* repeated string ActorIDs = 2; */
for (let i = 0; i < message.ActorIDs.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.ActorIDs[i]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteProjectAptTypeBookingContext
*/
export const SiteProjectAptTypeBookingContext = new SiteProjectAptTypeBookingContext$Type();
// @generated message type with reflection information, may provide speed optimized methods
class InitBookerProfileRequest$Type extends MessageType<InitBookerProfileRequest> {
constructor() {
super("api.InitBookerProfileRequest", [
@@ -5267,5 +5582,6 @@ export const SiteService = new ServiceType("api.SiteService", [
{ name: "ClearAliasesOfProject", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Clear all site alias for a project." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearAliasesOfProjectRequest, O: ClearAliasesOfProjectResponse },
{ name: "InitBookerProfile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Init the booker profile for a site. The user will gain access to the site and be able to book appointments." }, "api.rscType": "Platform", "api.roles": "" }, I: InitBookerProfileRequest, O: InitBookerProfileResponse },
{ name: "GetBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the booking context for a given Project and Actor" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingContextRequest, O: GetBookingContextResponse },
{ name: "GetMyBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get your appointment available booking context according to your permissions." }, "api.rscType": "Platform", "api.roles": "" }, I: GetMyBookingContextRequest, O: GetMyBookingContextResponse },
{ name: "ListSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List all settings in the platform." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListSettingsRequest, O: ListSettingsResponse }
], { "api.k8sService": "core-site" });