Latest generation

This commit is contained in:
ci core model
2025-10-10 11:49:27 +00:00
parent 5147650558
commit 6f089397c4
3 changed files with 620 additions and 42 deletions

View File

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

View File

@@ -4,10 +4,20 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { SiteService } from "./site";
import type { ClearSiteAliasResponse } from "./site";
import type { ClearSiteAliasRequest } from "./site";
import type { SetSiteAliasResponse } from "./site";
import type { SetSiteAliasRequest } from "./site";
import type { GetAliasesOfSiteResponse } from "./site";
import type { GetAliasesOfSiteRequest } from "./site";
import type { GetSiteFromAliasResponse } from "./site";
import type { GetSiteFromAliasRequest } from "./site";
import type { ListSitesAuthorizedForBookingResponse } from "./site";
import type { ListSitesAuthorizedForBookingRequest } from "./site";
import type { GetBasicSettingsResponse } from "./site";
import type { GetBasicSettingsRequest } from "./site";
import type { CreateSettingsResponse } from "./site";
import type { CreateSettingsRequest } from "./site";
import type { DeleteSettingsResult } from "./site";
import type { DeleteSettingsRequest } from "./site";
import type { ForceUpdateAppointmentRequest } from "./site";
@@ -34,21 +44,15 @@ import type { UploadPhotoResponse } from "./site";
import type { UploadPhotoRequest } from "./site";
import type { UpdateSettingsResponse } from "./site";
import type { UpdateSettingsRequest } from "./site";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { GetSettingsResponse } from "./site";
import type { GetSettingsRequest } from "./site";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
import type { CreateSettingsResponse } from "./site";
import type { CreateSettingsRequest } from "./site";
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
/**
* @generated from protobuf service api.SiteService
*/
export interface ISiteServiceClient {
/**
* @generated from protobuf rpc: CreateSettings
*/
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse>;
/**
* @generated from protobuf rpc: GetSettings
*/
@@ -118,9 +122,9 @@ export interface ISiteServiceClient {
*/
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult>;
/**
* @generated from protobuf rpc: CreateSettingsV2
* @generated from protobuf rpc: CreateSettings
*/
createSettingsV2(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse>;
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse>;
/**
* @generated from protobuf rpc: GetBasicSettings
*/
@@ -129,6 +133,22 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: ListSitesAuthorizedForBooking
*/
listSitesAuthorizedForBooking(input: ListSitesAuthorizedForBookingRequest, options?: RpcOptions): UnaryCall<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>;
/**
* @generated from protobuf rpc: GetSiteFromAlias
*/
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse>;
/**
* @generated from protobuf rpc: GetAliasesOfSite
*/
getAliasesOfSite(input: GetAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse>;
/**
* @generated from protobuf rpc: SetSiteAlias
*/
setSiteAlias(input: SetSiteAliasRequest, options?: RpcOptions): UnaryCall<SetSiteAliasRequest, SetSiteAliasResponse>;
/**
* @generated from protobuf rpc: ClearSiteAlias
*/
clearSiteAlias(input: ClearSiteAliasRequest, options?: RpcOptions): UnaryCall<ClearSiteAliasRequest, ClearSiteAliasResponse>;
}
/**
* @generated from protobuf service api.SiteService
@@ -139,151 +159,172 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
options = SiteService.options;
constructor(private readonly _transport: RpcTransport) {
}
/**
* @generated from protobuf rpc: CreateSettings
*/
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSettings
*/
getSettings(input: GetSettingsRequest, options?: RpcOptions): UnaryCall<GetSettingsRequest, GetSettingsResponse> {
const method = this.methods[1], opt = this._transport.mergeOptions(options);
const method = this.methods[0], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSettingsRequest, GetSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateSettings
*/
updateSettings(input: UpdateSettingsRequest, options?: RpcOptions): UnaryCall<UpdateSettingsRequest, UpdateSettingsResponse> {
const method = this.methods[2], opt = this._transport.mergeOptions(options);
const method = this.methods[1], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateSettingsRequest, UpdateSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UploadPhoto
*/
uploadPhoto(input: UploadPhotoRequest, options?: RpcOptions): UnaryCall<UploadPhotoRequest, UploadPhotoResponse> {
const method = this.methods[3], opt = this._transport.mergeOptions(options);
const method = this.methods[2], opt = this._transport.mergeOptions(options);
return stackIntercept<UploadPhotoRequest, UploadPhotoResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeletePhoto
*/
deletePhoto(input: DeletePhotoRequest, options?: RpcOptions): UnaryCall<DeletePhotoRequest, DeletePhotoResponse> {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
const method = this.methods[3], opt = this._transport.mergeOptions(options);
return stackIntercept<DeletePhotoRequest, DeletePhotoResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UploadInstructionDocument
*/
uploadInstructionDocument(input: UploadInstructionDocumentRequest, options?: RpcOptions): UnaryCall<UploadInstructionDocumentRequest, UploadInstructionDocumentResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<UploadInstructionDocumentRequest, UploadInstructionDocumentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteInstructionDocument
*/
deleteInstructionDocument(input: DeleteInstructionDocumentRequest, options?: RpcOptions): UnaryCall<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse> {
const method = this.methods[6], opt = this._transport.mergeOptions(options);
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetAvailableSlots
*/
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<GetAvailableSlotsRequest, GetAvailableSlotsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetAllSlots
*/
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<GetAvailableSlotsRequest, GetAllSlotsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUserSites
*/
listUserSites(input: ListUserSitesRequest, options?: RpcOptions): UnaryCall<ListUserSitesRequest, ListUserSitesResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserSitesRequest, ListUserSitesResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: BookAppointment
*/
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: BookAppointmentNoReference
*/
bookAppointmentNoReference(input: BookAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<BookAppointmentNoReferenceRequest, BookAppointmentResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<BookAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceBookAppointment
*/
forceBookAppointment(input: ForceBookAppointmentRequest, options?: RpcOptions): UnaryCall<ForceBookAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<ForceBookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CancelAppointment
*/
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
const method = this.methods[12], opt = this._transport.mergeOptions(options);
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateAppointment
*/
updateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
const method = this.methods[13], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateAppointmentNoReference
*/
updateAppointmentNoReference(input: UpdateAppointmentNoReferenceRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateAppointmentNoReferenceRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceUpdateAppointment
*/
forceUpdateAppointment(input: ForceUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<ForceUpdateAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<ForceUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteSettings
*/
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSettingsRequest, DeleteSettingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateSettingsV2
* @generated from protobuf rpc: CreateSettings
*/
createSettingsV2(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBasicSettings
*/
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse> {
const method = this.methods[19], opt = this._transport.mergeOptions(options);
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[20], opt = this._transport.mergeOptions(options);
const method = this.methods[19], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteFromAlias
*/
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse> {
const method = this.methods[20], opt = this._transport.mergeOptions(options);
return stackIntercept<GetSiteFromAliasRequest, GetSiteFromAliasResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetAliasesOfSite
*/
getAliasesOfSite(input: GetAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse> {
const method = this.methods[21], opt = this._transport.mergeOptions(options);
return stackIntercept<GetAliasesOfSiteRequest, GetAliasesOfSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SetSiteAlias
*/
setSiteAlias(input: SetSiteAliasRequest, options?: RpcOptions): UnaryCall<SetSiteAliasRequest, SetSiteAliasResponse> {
const method = this.methods[22], opt = this._transport.mergeOptions(options);
return stackIntercept<SetSiteAliasRequest, SetSiteAliasResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearSiteAlias
*/
clearSiteAlias(input: ClearSiteAliasRequest, options?: RpcOptions): UnaryCall<ClearSiteAliasRequest, ClearSiteAliasResponse> {
const method = this.methods[23], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
}
}

543
site.ts
View File

@@ -726,6 +726,25 @@ export interface BookAppointmentNoReferenceRequest {
*/
ActorID: string; // actor with which the siteID/project-depositID will be processed
}
/**
* SiteActor: connection between an actor in a project and a Site
*
* @generated from protobuf message api.SiteActor
*/
export interface SiteActor {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: string ActorID = 2
*/
ActorID: string;
/**
* @generated from protobuf field: string SiteID = 3
*/
SiteID: string;
}
/**
* ForceBookAppointment
*
@@ -1018,6 +1037,61 @@ export interface DeleteSettingsRequest {
*/
export interface DeleteSettingsResult {
}
/**
* GetSiteFromAlias
*
* @generated from protobuf message api.GetSiteFromAliasRequest
*/
export interface GetSiteFromAliasRequest {
/**
* @generated from protobuf field: string ProjectID = 1
*/
ProjectID: string;
/**
* @generated from protobuf field: string ActorID = 2
*/
ActorID: string;
}
/**
* @generated from protobuf message api.GetSiteFromAliasResponse
*/
export interface GetSiteFromAliasResponse {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
}
/**
* GetAliasesOfSite
*
* @generated from protobuf message api.GetAliasesOfSiteRequest
*/
export interface GetAliasesOfSiteRequest {
/**
* @generated from protobuf field: string SiteID = 1
*/
SiteID: string;
}
/**
* @generated from protobuf message api.GetAliasesOfSiteResponse
*/
export interface GetAliasesOfSiteResponse {
/**
* @generated from protobuf field: repeated api.SiteActor SiteActors = 1
*/
SiteActors: SiteActor[];
}
/**
* SetSiteAlias
*
* @generated from protobuf message api.SetSiteAliasRequest
*/
export interface SetSiteAliasRequest {
/**
* @generated from protobuf field: api.SiteActor SiteActor = 1
*/
SiteActor?: SiteActor;
}
/**
* @generated from protobuf message api.ListOfSitesPerOrganisation
*/
@@ -1040,6 +1114,31 @@ export interface ListSitesAuthorizedForBookingRequest {
*/
Header?: RequestProjectHeader;
}
/**
* @generated from protobuf message api.SetSiteAliasResponse
*/
export interface SetSiteAliasResponse {
/**
* @generated from protobuf field: api.SiteActor SiteActor = 1
*/
SiteActor?: SiteActor;
}
/**
* ClearSiteAlias
*
* @generated from protobuf message api.ClearSiteAliasRequest
*/
export interface ClearSiteAliasRequest {
/**
* @generated from protobuf field: api.SiteActor SiteActor = 1
*/
SiteActor?: SiteActor;
}
/**
* @generated from protobuf message api.ClearSiteAliasResponse
*/
export interface ClearSiteAliasResponse {
}
/**
* @generated from protobuf message api.ListSitesAuthorizedForBookingResponse
*/
@@ -2846,6 +2945,69 @@ class BookAppointmentNoReferenceRequest$Type extends MessageType<BookAppointment
*/
export const BookAppointmentNoReferenceRequest = new BookAppointmentNoReferenceRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SiteActor$Type extends MessageType<SiteActor> {
constructor() {
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" } } } }
]);
}
create(value?: PartialMessage<SiteActor>): SiteActor {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.ActorID = "";
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<SiteActor>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SiteActor): SiteActor {
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 /* string ActorID */ 2:
message.ActorID = reader.string();
break;
case /* string SiteID */ 3:
message.SiteID = 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: SiteActor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string ActorID = 2; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
/* string SiteID = 3; */
if (message.SiteID !== "")
writer.tag(3, WireType.LengthDelimited).string(message.SiteID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.SiteActor
*/
export const SiteActor = new SiteActor$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ForceBookAppointmentRequest$Type extends MessageType<ForceBookAppointmentRequest> {
constructor() {
super("api.ForceBookAppointmentRequest", [
@@ -3621,6 +3783,248 @@ class DeleteSettingsResult$Type extends MessageType<DeleteSettingsResult> {
*/
export const DeleteSettingsResult = new DeleteSettingsResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSiteFromAliasRequest$Type extends MessageType<GetSiteFromAliasRequest> {
constructor() {
super("api.GetSiteFromAliasRequest", [
{ 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" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["ProjectID", "ActorID"] } } });
}
create(value?: PartialMessage<GetSiteFromAliasRequest>): GetSiteFromAliasRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = "";
message.ActorID = "";
if (value !== undefined)
reflectionMergePartial<GetSiteFromAliasRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteFromAliasRequest): GetSiteFromAliasRequest {
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 /* string ActorID */ 2:
message.ActorID = 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: GetSiteFromAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string ProjectID = 1; */
if (message.ProjectID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.ProjectID);
/* string ActorID = 2; */
if (message.ActorID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.ActorID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetSiteFromAliasRequest
*/
export const GetSiteFromAliasRequest = new GetSiteFromAliasRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetSiteFromAliasResponse$Type extends MessageType<GetSiteFromAliasResponse> {
constructor() {
super("api.GetSiteFromAliasResponse", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<GetSiteFromAliasResponse>): GetSiteFromAliasResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<GetSiteFromAliasResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetSiteFromAliasResponse): GetSiteFromAliasResponse {
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;
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: GetSiteFromAliasResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetSiteFromAliasResponse
*/
export const GetSiteFromAliasResponse = new GetSiteFromAliasResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAliasesOfSiteRequest$Type extends MessageType<GetAliasesOfSiteRequest> {
constructor() {
super("api.GetAliasesOfSiteRequest", [
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteID"] } } });
}
create(value?: PartialMessage<GetAliasesOfSiteRequest>): GetAliasesOfSiteRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteID = "";
if (value !== undefined)
reflectionMergePartial<GetAliasesOfSiteRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAliasesOfSiteRequest): GetAliasesOfSiteRequest {
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;
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: GetAliasesOfSiteRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string SiteID = 1; */
if (message.SiteID !== "")
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetAliasesOfSiteRequest
*/
export const GetAliasesOfSiteRequest = new GetAliasesOfSiteRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAliasesOfSiteResponse$Type extends MessageType<GetAliasesOfSiteResponse> {
constructor() {
super("api.GetAliasesOfSiteResponse", [
{ no: 1, name: "SiteActors", kind: "message", localName: "SiteActors", jsonName: "SiteActors", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SiteActor }
]);
}
create(value?: PartialMessage<GetAliasesOfSiteResponse>): GetAliasesOfSiteResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.SiteActors = [];
if (value !== undefined)
reflectionMergePartial<GetAliasesOfSiteResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAliasesOfSiteResponse): GetAliasesOfSiteResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.SiteActor SiteActors */ 1:
message.SiteActors.push(SiteActor.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: GetAliasesOfSiteResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.SiteActor SiteActors = 1; */
for (let i = 0; i < message.SiteActors.length; i++)
SiteActor.internalBinaryWrite(message.SiteActors[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.GetAliasesOfSiteResponse
*/
export const GetAliasesOfSiteResponse = new GetAliasesOfSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SetSiteAliasRequest$Type extends MessageType<SetSiteAliasRequest> {
constructor() {
super("api.SetSiteAliasRequest", [
{ no: 1, name: "SiteActor", kind: "message", localName: "SiteActor", jsonName: "SiteActor", T: () => SiteActor }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteActor"] } } });
}
create(value?: PartialMessage<SetSiteAliasRequest>): SetSiteAliasRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<SetSiteAliasRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSiteAliasRequest): SetSiteAliasRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.SiteActor SiteActor */ 1:
message.SiteActor = SiteActor.internalBinaryRead(reader, reader.uint32(), options, message.SiteActor);
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: SetSiteAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.SiteActor SiteActor = 1; */
if (message.SiteActor)
SiteActor.internalBinaryWrite(message.SiteActor, 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.SetSiteAliasRequest
*/
export const SetSiteAliasRequest = new SetSiteAliasRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListOfSitesPerOrganisation$Type extends MessageType<ListOfSitesPerOrganisation> {
constructor() {
super("api.ListOfSitesPerOrganisation", [
@@ -3722,6 +4126,136 @@ class ListSitesAuthorizedForBookingRequest$Type extends MessageType<ListSitesAut
*/
export const ListSitesAuthorizedForBookingRequest = new ListSitesAuthorizedForBookingRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class SetSiteAliasResponse$Type extends MessageType<SetSiteAliasResponse> {
constructor() {
super("api.SetSiteAliasResponse", [
{ no: 1, name: "SiteActor", kind: "message", localName: "SiteActor", jsonName: "SiteActor", T: () => SiteActor }
]);
}
create(value?: PartialMessage<SetSiteAliasResponse>): SetSiteAliasResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<SetSiteAliasResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SetSiteAliasResponse): SetSiteAliasResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.SiteActor SiteActor */ 1:
message.SiteActor = SiteActor.internalBinaryRead(reader, reader.uint32(), options, message.SiteActor);
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: SetSiteAliasResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.SiteActor SiteActor = 1; */
if (message.SiteActor)
SiteActor.internalBinaryWrite(message.SiteActor, 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.SetSiteAliasResponse
*/
export const SetSiteAliasResponse = new SetSiteAliasResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClearSiteAliasRequest$Type extends MessageType<ClearSiteAliasRequest> {
constructor() {
super("api.ClearSiteAliasRequest", [
{ no: 1, name: "SiteActor", kind: "message", localName: "SiteActor", jsonName: "SiteActor", T: () => SiteActor, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["SiteActor"] } } });
}
create(value?: PartialMessage<ClearSiteAliasRequest>): ClearSiteAliasRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ClearSiteAliasRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearSiteAliasRequest): ClearSiteAliasRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.SiteActor SiteActor */ 1:
message.SiteActor = SiteActor.internalBinaryRead(reader, reader.uint32(), options, message.SiteActor);
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: ClearSiteAliasRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.SiteActor SiteActor = 1; */
if (message.SiteActor)
SiteActor.internalBinaryWrite(message.SiteActor, 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.ClearSiteAliasRequest
*/
export const ClearSiteAliasRequest = new ClearSiteAliasRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ClearSiteAliasResponse$Type extends MessageType<ClearSiteAliasResponse> {
constructor() {
super("api.ClearSiteAliasResponse", []);
}
create(value?: PartialMessage<ClearSiteAliasResponse>): ClearSiteAliasResponse {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<ClearSiteAliasResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ClearSiteAliasResponse): ClearSiteAliasResponse {
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: ClearSiteAliasResponse, 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.ClearSiteAliasResponse
*/
export const ClearSiteAliasResponse = new ClearSiteAliasResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListSitesAuthorizedForBookingResponse$Type extends MessageType<ListSitesAuthorizedForBookingResponse> {
constructor() {
super("api.ListSitesAuthorizedForBookingResponse", [
@@ -3904,7 +4438,6 @@ export const GetBasicSettingsResponse = new GetBasicSettingsResponse$Type();
* @generated ServiceType for protobuf service api.SiteService
*/
export const SiteService = new ServiceType("api.SiteService", [
{ name: "CreateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateSettingsRequest, O: CreateSettingsResponse },
{ name: "GetSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get site settings" }, "api.rscType": "Project", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: GetSettingsRequest, O: GetSettingsResponse },
{ name: "UpdateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update site Settings" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSettingsRequest, O: UpdateSettingsResponse },
{ name: "UploadPhoto", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace the photo of the site. <br>Must be called using a multipart form-data content type request. <br> Example of curl request : curl -X POST https://$REFLEXPLATFORM_REST_URL/api.SiteService/UploadPhoto -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadPhotoRequest, O: UploadPhotoResponse },
@@ -3922,7 +4455,11 @@ export const SiteService = new ServiceType("api.SiteService", [
{ 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: "CreateSettingsV2", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateSettingsRequest, O: CreateSettingsResponse },
{ name: "CreateSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Creates the site settings" }, "api.rscType": "Platform", "api.roles": "Platform.Site-Manage", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateSettingsRequest, O: CreateSettingsResponse },
{ 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 }
{ 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 },
{ name: "GetSiteFromAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get Site ID from project actor id." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetSiteFromAliasRequest, O: GetSiteFromAliasResponse },
{ name: "GetAliasesOfSite", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the list of project ID and Actor ID from site ID and optionally Project ID." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetAliasesOfSiteRequest, O: GetAliasesOfSiteResponse },
{ name: "SetSiteAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Set a new site alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: SetSiteAliasRequest, O: SetSiteAliasResponse },
{ name: "ClearSiteAlias", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete a site alias." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ClearSiteAliasRequest, O: ClearSiteAliasResponse }
], { "api.k8sService": "core-site" });