Latest generation

This commit is contained in:
ci core model
2025-10-10 08:36:59 +00:00
parent eca9dc4a22
commit 03bea79fac
3 changed files with 381 additions and 2 deletions

View File

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

View File

@@ -4,6 +4,10 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { SiteService } from "./site";
import type { ListSitesAuthorizedForBookingResponse } from "./site";
import type { ListSitesAuthorizedForBookingRequest } from "./site";
import type { GetBasicSettingsResponse } from "./site";
import type { GetBasicSettingsRequest } from "./site";
import type { DeleteSettingsResult } from "./site";
import type { DeleteSettingsRequest } from "./site";
import type { ForceUpdateAppointmentRequest } from "./site";
@@ -113,6 +117,14 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: DeleteSettings
*/
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult>;
/**
* @generated from protobuf rpc: GetBasicSettings
*/
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse>;
/**
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
*/
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>;
}
/**
* @generated from protobuf service api.SiteService
@@ -249,4 +261,18 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSettingsRequest, DeleteSettingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBasicSettings
*/
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBasicSettingsRequest, GetBasicSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
*/
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse> {
const method = this.methods[19], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>("unary", this._transport, method, opt, input);
}
}

355
site.ts
View File

@@ -1018,6 +1018,77 @@ export interface DeleteSettingsRequest {
*/
export interface DeleteSettingsResult {
}
/**
* @generated from protobuf message api.ListOfSitesPerOrganisation
*/
export interface ListOfSitesPerOrganisation {
/**
* @generated from protobuf field: string OrganisationID = 1
*/
OrganisationID: string;
/**
* @generated from protobuf field: repeated string ProjectID = 2
*/
ProjectID: string[];
}
/**
* @generated from protobuf message api.ListSitesAuthorizedForBookingRequest
*/
export interface ListSitesAuthorizedForBookingRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.ListSitesAuthorizedForBookingResponse
*/
export interface ListSitesAuthorizedForBookingResponse {
/**
* @generated from protobuf field: repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1
*/
ListOfSitesPerOrganisations: ListOfSitesPerOrganisation[];
}
/**
* @generated from protobuf message api.GetBasicSettingsRequest
*/
export interface GetBasicSettingsRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.GetBasicSettingsResponse
*/
export interface GetBasicSettingsResponse {
/**
* Name of the Site
*
* @generated from protobuf field: string Name = 1
*/
Name: string;
/**
* @generated from protobuf field: bool Active = 2
*/
Active: boolean; // If the Site is active or not
/**
* @generated from protobuf field: api.Address Address = 3
*/
Address?: Address; // address of the Site
/**
* @generated from protobuf field: repeated string Phones = 4
*/
Phones: string[];
/**
* @generated from protobuf field: string Fax = 5
*/
Fax: string;
/**
* @generated from protobuf field: repeated string Emails = 6
*/
Emails: string[];
}
// @generated message type with reflection information, may provide speed optimized methods
class Site$Type extends MessageType<Site> {
constructor() {
@@ -3549,6 +3620,286 @@ class DeleteSettingsResult$Type extends MessageType<DeleteSettingsResult> {
* @generated MessageType for protobuf message api.DeleteSettingsResult
*/
export const DeleteSettingsResult = new DeleteSettingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListOfSitesPerOrganisation$Type extends MessageType<ListOfSitesPerOrganisation> {
constructor() {
super("api.ListOfSitesPerOrganisation", [
{ no: 1, name: "OrganisationID", kind: "scalar", localName: "OrganisationID", jsonName: "OrganisationID", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ListOfSitesPerOrganisation>): ListOfSitesPerOrganisation {
const message = globalThis.Object.create((this.messagePrototype!));
message.OrganisationID = "";
message.ProjectID = [];
if (value !== undefined)
reflectionMergePartial<ListOfSitesPerOrganisation>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListOfSitesPerOrganisation): ListOfSitesPerOrganisation {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string OrganisationID */ 1:
message.OrganisationID = reader.string();
break;
case /* repeated string ProjectID */ 2:
message.ProjectID.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: ListOfSitesPerOrganisation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string OrganisationID = 1; */
if (message.OrganisationID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.OrganisationID);
/* repeated string ProjectID = 2; */
for (let i = 0; i < message.ProjectID.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.ProjectID[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.ListOfSitesPerOrganisation
*/
export const ListOfSitesPerOrganisation = new ListOfSitesPerOrganisation$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSitesAuthorizedForBookingRequest$Type extends MessageType<ListSitesAuthorizedForBookingRequest> {
constructor() {
super("api.ListSitesAuthorizedForBookingRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ListSitesAuthorizedForBookingRequest>): ListSitesAuthorizedForBookingRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ListSitesAuthorizedForBookingRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingRequest): ListSitesAuthorizedForBookingRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
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: ListSitesAuthorizedForBookingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, 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.ListSitesAuthorizedForBookingRequest
*/
export const ListSitesAuthorizedForBookingRequest = new ListSitesAuthorizedForBookingRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSitesAuthorizedForBookingResponse$Type extends MessageType<ListSitesAuthorizedForBookingResponse> {
constructor() {
super("api.ListSitesAuthorizedForBookingResponse", [
{ no: 1, name: "ListOfSitesPerOrganisations", kind: "message", localName: "ListOfSitesPerOrganisations", jsonName: "ListOfSitesPerOrganisations", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ListOfSitesPerOrganisation }
]);
}
create(value?: PartialMessage<ListSitesAuthorizedForBookingResponse>): ListSitesAuthorizedForBookingResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.ListOfSitesPerOrganisations = [];
if (value !== undefined)
reflectionMergePartial<ListSitesAuthorizedForBookingResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSitesAuthorizedForBookingResponse): ListSitesAuthorizedForBookingResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations */ 1:
message.ListOfSitesPerOrganisations.push(ListOfSitesPerOrganisation.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: ListSitesAuthorizedForBookingResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.ListOfSitesPerOrganisation ListOfSitesPerOrganisations = 1; */
for (let i = 0; i < message.ListOfSitesPerOrganisations.length; i++)
ListOfSitesPerOrganisation.internalBinaryWrite(message.ListOfSitesPerOrganisations[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.ListSitesAuthorizedForBookingResponse
*/
export const ListSitesAuthorizedForBookingResponse = new ListSitesAuthorizedForBookingResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBasicSettingsRequest$Type extends MessageType<GetBasicSettingsRequest> {
constructor() {
super("api.GetBasicSettingsRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<GetBasicSettingsRequest>): GetBasicSettingsRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<GetBasicSettingsRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBasicSettingsRequest): GetBasicSettingsRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestProjectHeader Header */ 1:
message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
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: GetBasicSettingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, 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.GetBasicSettingsRequest
*/
export const GetBasicSettingsRequest = new GetBasicSettingsRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetBasicSettingsResponse$Type extends MessageType<GetBasicSettingsResponse> {
constructor() {
super("api.GetBasicSettingsResponse", [
{ no: 1, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
{ no: 3, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
{ no: 4, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "Emails", kind: "scalar", localName: "Emails", jsonName: "Emails", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<GetBasicSettingsResponse>): GetBasicSettingsResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Name = "";
message.Active = false;
message.Phones = [];
message.Fax = "";
message.Emails = [];
if (value !== undefined)
reflectionMergePartial<GetBasicSettingsResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetBasicSettingsResponse): GetBasicSettingsResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string Name */ 1:
message.Name = reader.string();
break;
case /* bool Active */ 2:
message.Active = reader.bool();
break;
case /* api.Address Address */ 3:
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
break;
case /* repeated string Phones */ 4:
message.Phones.push(reader.string());
break;
case /* string Fax */ 5:
message.Fax = reader.string();
break;
case /* repeated string Emails */ 6:
message.Emails.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: GetBasicSettingsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string Name = 1; */
if (message.Name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.Name);
/* bool Active = 2; */
if (message.Active !== false)
writer.tag(2, WireType.Varint).bool(message.Active);
/* api.Address Address = 3; */
if (message.Address)
Address.internalBinaryWrite(message.Address, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* repeated string Phones = 4; */
for (let i = 0; i < message.Phones.length; i++)
writer.tag(4, WireType.LengthDelimited).string(message.Phones[i]);
/* string Fax = 5; */
if (message.Fax !== "")
writer.tag(5, WireType.LengthDelimited).string(message.Fax);
/* repeated string Emails = 6; */
for (let i = 0; i < message.Emails.length; i++)
writer.tag(6, WireType.LengthDelimited).string(message.Emails[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.GetBasicSettingsResponse
*/
export const GetBasicSettingsResponse = new GetBasicSettingsResponse$Type();
/**
* @generated ServiceType for protobuf service api.SiteService
*/
@@ -3570,5 +3921,7 @@ export const SiteService = new ServiceType("api.SiteService", [
{ name: "UpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "UpdateAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateAppointmentNoReferenceRequest, O: BookAppointmentResponse },
{ name: "ForceUpdateAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Force Update slot and/or commissions on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceUpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "DeleteSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSettingsRequest, O: DeleteSettingsResult }
{ name: "DeleteSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete the Site in database" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteSettingsRequest, O: DeleteSettingsResult },
{ name: "GetBasicSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the basic settings of a site to display" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetBasicSettingsRequest, O: GetBasicSettingsResponse },
{ name: "ListSitesAuthorizedForBooking", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List the site allowing booking for a project" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListSitesAuthorizedForBookingRequest, O: ListSitesAuthorizedForBookingResponse }
], { "api.k8sService": "core-site" });