Latest generation

This commit is contained in:
ci core model
2025-10-16 13:55:44 +00:00
parent a4c2ac96ca
commit ea9192b567
3 changed files with 118 additions and 12 deletions

View File

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

View File

@@ -24,6 +24,7 @@ import type { CreateSettingsResponse } from "./site";
import type { CreateSettingsRequest } from "./site";
import type { DeleteSettingsResult } from "./site";
import type { DeleteSettingsRequest } from "./site";
import type { RescheduleAppointmentRequest } from "./site";
import type { ForceUpdateAppointmentRequest } from "./site";
import type { UpdateAppointmentNoReferenceRequest } from "./site";
import type { UpdateAppointmentRequest } from "./site";
@@ -121,6 +122,14 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: ForceUpdateAppointment
*/
forceUpdateAppointment(input: ForceUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<ForceUpdateAppointmentRequest, BookAppointmentResponse>;
/**
* @generated from protobuf rpc: RescheduleAppointment
*/
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse>;
/**
* @generated from protobuf rpc: ForceRescheduleAppointment
*/
forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse>;
/**
* @generated from protobuf rpc: DeleteSettings
*/
@@ -287,81 +296,95 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<ForceUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RescheduleAppointment
*/
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceRescheduleAppointment
*/
forceRescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<RescheduleAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteSettings
*/
deleteSettings(input: DeleteSettingsRequest, options?: RpcOptions): UnaryCall<DeleteSettingsRequest, DeleteSettingsResult> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[18], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSettingsRequest, DeleteSettingsResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateSettings
*/
createSettings(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
const method = this.methods[19], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CreateSettingsV2
*/
createSettingsV2(input: CreateSettingsRequest, options?: RpcOptions): UnaryCall<CreateSettingsRequest, CreateSettingsResponse> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
const method = this.methods[20], opt = this._transport.mergeOptions(options);
return stackIntercept<CreateSettingsRequest, CreateSettingsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetUnits
*/
getUnits(input: GetUnitsRequest, options?: RpcOptions): UnaryCall<GetUnitsRequest, GetUnitsResponse> {
const method = this.methods[19], opt = this._transport.mergeOptions(options);
const method = this.methods[21], opt = this._transport.mergeOptions(options);
return stackIntercept<GetUnitsRequest, GetUnitsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBasicSettings
*/
getBasicSettings(input: GetBasicSettingsRequest, options?: RpcOptions): UnaryCall<GetBasicSettingsRequest, GetBasicSettingsResponse> {
const method = this.methods[20], opt = this._transport.mergeOptions(options);
const method = this.methods[22], 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[21], opt = this._transport.mergeOptions(options);
const method = this.methods[23], opt = this._transport.mergeOptions(options);
return stackIntercept<ListSitesAuthorizedForBookingRequest, ListSitesAuthorizedForBookingResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetPossibleSegmentationOnSiteForBooking
*/
getPossibleSegmentationOnSiteForBooking(input: GetPossibleSegmentationOnSiteForBookingRequest, options?: RpcOptions): UnaryCall<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse> {
const method = this.methods[22], opt = this._transport.mergeOptions(options);
const method = this.methods[24], opt = this._transport.mergeOptions(options);
return stackIntercept<GetPossibleSegmentationOnSiteForBookingRequest, GetPossibleSegmentationOnSiteForBookingResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteFromAlias
*/
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse> {
const method = this.methods[23], opt = this._transport.mergeOptions(options);
const method = this.methods[25], 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[24], opt = this._transport.mergeOptions(options);
const method = this.methods[26], 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[25], opt = this._transport.mergeOptions(options);
const method = this.methods[27], 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[26], opt = this._transport.mergeOptions(options);
const method = this.methods[28], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
}
}

83
site.ts
View File

@@ -879,6 +879,25 @@ export interface CancelAppointmentResponse {
*/
AppointmentID: string;
}
/**
* @generated from protobuf message api.RescheduleAppointmentRequest
*/
export interface RescheduleAppointmentRequest {
/**
* @generated from protobuf field: api.RequestProjectHeader Header = 1
*/
Header?: RequestProjectHeader; // using id of the project of type site
/**
* @generated from protobuf field: string AppointmentID = 2
*/
AppointmentID: string;
/**
* The slots to book for the appointment
*
* @generated from protobuf field: repeated api.Slot Slots = 3
*/
Slots: Slot[];
}
/**
* @generated from protobuf message api.UpdateAppointmentRequest
*/
@@ -3446,6 +3465,68 @@ class CancelAppointmentResponse$Type extends MessageType<CancelAppointmentRespon
*/
export const CancelAppointmentResponse = new CancelAppointmentResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class RescheduleAppointmentRequest$Type extends MessageType<RescheduleAppointmentRequest> {
constructor() {
super("api.RescheduleAppointmentRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 3, name: "Slots", kind: "message", localName: "Slots", jsonName: "Slots", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Slot }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID", "Slots"] } } });
}
create(value?: PartialMessage<RescheduleAppointmentRequest>): RescheduleAppointmentRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.AppointmentID = "";
message.Slots = [];
if (value !== undefined)
reflectionMergePartial<RescheduleAppointmentRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RescheduleAppointmentRequest): RescheduleAppointmentRequest {
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;
case /* string AppointmentID */ 2:
message.AppointmentID = reader.string();
break;
case /* repeated api.Slot Slots */ 3:
message.Slots.push(Slot.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: RescheduleAppointmentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestProjectHeader Header = 1; */
if (message.Header)
RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* string AppointmentID = 2; */
if (message.AppointmentID !== "")
writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID);
/* repeated api.Slot Slots = 3; */
for (let i = 0; i < message.Slots.length; i++)
Slot.internalBinaryWrite(message.Slots[i], writer.tag(3, 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.RescheduleAppointmentRequest
*/
export const RescheduleAppointmentRequest = new RescheduleAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateAppointmentRequest$Type extends MessageType<UpdateAppointmentRequest> {
constructor() {
super("api.UpdateAppointmentRequest", [
@@ -4989,6 +5070,8 @@ 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": "", "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": "", "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": "", "google.api.method_visibility": { restriction: "SDK" } }, I: ForceUpdateAppointmentRequest, O: BookAppointmentResponse },
{ name: "RescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update slot on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, O: BookAppointmentResponse },
{ name: "ForceRescheduleAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Force Update slot on an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: RescheduleAppointmentRequest, 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: "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: "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 },