Latest generation

This commit is contained in:
ci core model
2025-12-29 09:27:06 +00:00
parent 0ba9a47cfd
commit 7addecd17a
3 changed files with 29 additions and 159 deletions

View File

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

View File

@@ -47,8 +47,6 @@ import type { BookAppointmentResponse } from "./site";
import type { BookAppointmentRequest } from "./site";
import type { CheckAppointmentCommissionResponse } from "./site";
import type { CheckAppointmentCommissionRequest } from "./site";
import type { ListUserSitesResponse } from "./site";
import type { ListUserSitesRequest } from "./site";
import type { GetAllSlotsResponse } from "./site";
import type { GetAvailableSlotsResponse } from "./site";
import type { GetAvailableSlotsRequest } from "./site";
@@ -103,10 +101,6 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: GetAllSlots
*/
getAllSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAllSlotsResponse>;
/**
* @generated from protobuf rpc: ListUserSites
*/
listUserSites(input: ListUserSitesRequest, options?: RpcOptions): UnaryCall<ListUserSitesRequest, ListUserSitesResponse>;
/**
* @generated from protobuf rpc: CheckAppointmentCommission
*/
@@ -285,207 +279,200 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
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[8], opt = this._transport.mergeOptions(options);
return stackIntercept<ListUserSitesRequest, ListUserSitesResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CheckAppointmentCommission
*/
checkAppointmentCommission(input: CheckAppointmentCommissionRequest, options?: RpcOptions): UnaryCall<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<CheckAppointmentCommissionRequest, CheckAppointmentCommissionResponse>("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: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceBookAppointment
*/
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<BookAppointmentRequest, 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: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ForceUpdateAppointment
*/
forceUpdateAppointment(input: UpdateAppointmentRequest, options?: RpcOptions): UnaryCall<UpdateAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: WMSUpdateAppointment
*/
wMSUpdateAppointment(input: WMSUpdateAppointmentRequest, options?: RpcOptions): UnaryCall<WMSUpdateAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[17], opt = this._transport.mergeOptions(options);
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<WMSUpdateAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: RescheduleAppointment
*/
rescheduleAppointment(input: RescheduleAppointmentRequest, options?: RpcOptions): UnaryCall<RescheduleAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[18], opt = this._transport.mergeOptions(options);
const method = this.methods[17], 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[19], opt = this._transport.mergeOptions(options);
const method = this.methods[18], 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[20], opt = this._transport.mergeOptions(options);
const method = this.methods[19], 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[21], 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[22], 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[23], 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[24], 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: GetBookingSegmentations
*/
getBookingSegmentations(input: GetBookingSegmentationsRequest, options?: RpcOptions): UnaryCall<GetBookingSegmentationsRequest, GetBookingSegmentationsResponse> {
const method = this.methods[25], opt = this._transport.mergeOptions(options);
const method = this.methods[24], opt = this._transport.mergeOptions(options);
return stackIntercept<GetBookingSegmentationsRequest, GetBookingSegmentationsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ResolveSite
*/
resolveSite(input: ResolveSiteRequest, options?: RpcOptions): UnaryCall<ResolveSiteRequest, ResolveSiteResponse> {
const method = this.methods[26], opt = this._transport.mergeOptions(options);
const method = this.methods[25], opt = this._transport.mergeOptions(options);
return stackIntercept<ResolveSiteRequest, ResolveSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetSiteFromAlias
*/
getSiteFromAlias(input: GetSiteFromAliasRequest, options?: RpcOptions): UnaryCall<GetSiteFromAliasRequest, GetSiteFromAliasResponse> {
const method = this.methods[27], opt = this._transport.mergeOptions(options);
const method = this.methods[26], 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[28], opt = this._transport.mergeOptions(options);
const method = this.methods[27], 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[29], opt = this._transport.mergeOptions(options);
const method = this.methods[28], 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[30], opt = this._transport.mergeOptions(options);
const method = this.methods[29], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearSiteAliasRequest, ClearSiteAliasResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearAliasesOfSite
*/
clearAliasesOfSite(input: ClearAliasesOfSiteRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfSiteRequest, ClearAliasesOfSiteResponse> {
const method = this.methods[31], opt = this._transport.mergeOptions(options);
const method = this.methods[30], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearAliasesOfSiteRequest, ClearAliasesOfSiteResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ClearAliasesOfProject
*/
clearAliasesOfProject(input: ClearAliasesOfProjectRequest, options?: RpcOptions): UnaryCall<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse> {
const method = this.methods[32], opt = this._transport.mergeOptions(options);
const method = this.methods[31], opt = this._transport.mergeOptions(options);
return stackIntercept<ClearAliasesOfProjectRequest, ClearAliasesOfProjectResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: InitBookerProfile
*/
initBookerProfile(input: InitBookerProfileRequest, options?: RpcOptions): UnaryCall<InitBookerProfileRequest, InitBookerProfileResponse> {
const method = this.methods[33], opt = this._transport.mergeOptions(options);
const method = this.methods[32], opt = this._transport.mergeOptions(options);
return stackIntercept<InitBookerProfileRequest, InitBookerProfileResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetBookingContext
*/
getBookingContext(input: GetBookingContextRequest, options?: RpcOptions): UnaryCall<GetBookingContextRequest, GetBookingContextResponse> {
const method = this.methods[34], opt = this._transport.mergeOptions(options);
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[35], opt = this._transport.mergeOptions(options);
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[36], 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);
}
}

117
site.ts
View File

@@ -964,28 +964,6 @@ export interface WMSUpdateAppointmentRequest {
*/
CustomFields: CustomField[];
}
/**
* ListUserSites
*
* @generated from protobuf message api.ListUserSitesRequest
*/
export interface ListUserSitesRequest {
/**
* TODO optional filter
*
* @generated from protobuf field: repeated string ProjectID = 1
*/
ProjectID: string[];
}
/**
* @generated from protobuf message api.ListUserSitesResponse
*/
export interface ListUserSitesResponse {
/**
* @generated from protobuf field: repeated api.Site Sites = 1
*/
Sites: Site[];
}
/**
* @generated from protobuf message api.DeleteSettingsRequest
*/
@@ -4045,100 +4023,6 @@ class WMSUpdateAppointmentRequest$Type extends MessageType<WMSUpdateAppointmentR
*/
export const WMSUpdateAppointmentRequest = new WMSUpdateAppointmentRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserSitesRequest$Type extends MessageType<ListUserSitesRequest> {
constructor() {
super("api.ListUserSitesRequest", [
{ no: 1, name: "ProjectID", kind: "scalar", localName: "ProjectID", jsonName: "ProjectID", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { repeated: { minItems: "1", items: { string: { minLen: "1" } } } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": {} });
}
create(value?: PartialMessage<ListUserSitesRequest>): ListUserSitesRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.ProjectID = [];
if (value !== undefined)
reflectionMergePartial<ListUserSitesRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUserSitesRequest): ListUserSitesRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string ProjectID */ 1:
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: ListUserSitesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string ProjectID = 1; */
for (let i = 0; i < message.ProjectID.length; i++)
writer.tag(1, 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.ListUserSitesRequest
*/
export const ListUserSitesRequest = new ListUserSitesRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListUserSitesResponse$Type extends MessageType<ListUserSitesResponse> {
constructor() {
super("api.ListUserSitesResponse", [
{ no: 1, name: "Sites", kind: "message", localName: "Sites", jsonName: "Sites", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Site }
]);
}
create(value?: PartialMessage<ListUserSitesResponse>): ListUserSitesResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.Sites = [];
if (value !== undefined)
reflectionMergePartial<ListUserSitesResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListUserSitesResponse): ListUserSitesResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Site Sites */ 1:
message.Sites.push(Site.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: ListUserSitesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Site Sites = 1; */
for (let i = 0; i < message.Sites.length; i++)
Site.internalBinaryWrite(message.Sites[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.ListUserSitesResponse
*/
export const ListUserSitesResponse = new ListUserSitesResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteSettingsRequest$Type extends MessageType<DeleteSettingsRequest> {
constructor() {
super("api.DeleteSettingsRequest", [
@@ -6095,7 +5979,6 @@ export const SiteService = new ServiceType("api.SiteService", [
{ name: "DeleteInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete an instruction document on a site for a specific language. If no languages are specified, all the documents per language are removed" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteInstructionDocumentRequest, O: DeleteInstructionDocumentResponse },
{ name: "GetAvailableSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get available slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAvailableSlotsResponse },
{ name: "GetAllSlots", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get all slots to book an appointment on the site." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAllSlotsResponse },
{ name: "ListUserSites", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List sites authorized for a user according to its permissions." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserSitesRequest, O: ListUserSitesResponse },
{ name: "CheckAppointmentCommission", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Check an appointment commision" }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckAppointmentCommissionRequest, O: CheckAppointmentCommissionResponse },
{ name: "BookAppointment", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
{ name: "BookAppointmentNoReference", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment without order references, if the requested slots are available." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },