Latest generation

This commit is contained in:
ci core model
2025-07-11 11:59:36 +00:00
parent 8226ace79e
commit 728184bc91
3 changed files with 151 additions and 57 deletions

View File

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

View File

@@ -23,6 +23,8 @@ import type { DeleteInstructionDocumentResponse } from "./site";
import type { DeleteInstructionDocumentRequest } from "./site";
import type { UploadInstructionDocumentResponse } from "./site";
import type { UploadInstructionDocumentRequest } from "./site";
import type { UploadPhotoResponse } from "./site";
import type { UploadPhotoRequest } from "./site";
import type { DeleteSiteResponse } from "./site";
import type { DeleteSiteRequest } from "./site";
import type { UpdateSiteResponse } from "./site";
@@ -60,17 +62,10 @@ export interface ISiteServiceClient {
* @generated from protobuf rpc: Delete
*/
delete(input: DeleteSiteRequest, options?: RpcOptions): UnaryCall<DeleteSiteRequest, DeleteSiteResponse>;
// rpc UploadPhoto (UploadPhotoRequest) returns (UploadPhotoResponse) {
// option (rscType) = "Site";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// 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"
// summary: ""
// tags: "Site"
// };
// option (google.api.method_visibility).restriction = "SDK";
// }
/**
* @generated from protobuf rpc: UploadPhoto
*/
uploadPhoto(input: UploadPhotoRequest, options?: RpcOptions): UnaryCall<UploadPhotoRequest, UploadPhotoResponse>;
/**
* @generated from protobuf rpc: UploadInstructionDocument
*/
@@ -164,99 +159,95 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo {
const method = this.methods[4], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSiteRequest, DeleteSiteResponse>("unary", this._transport, method, opt, input);
}
// rpc UploadPhoto (UploadPhotoRequest) returns (UploadPhotoResponse) {
// option (rscType) = "Site";
// option (roles) = "";
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
// 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"
// summary: ""
// tags: "Site"
// };
// option (google.api.method_visibility).restriction = "SDK";
// }
/**
* @generated from protobuf rpc: UploadPhoto
*/
uploadPhoto(input: UploadPhotoRequest, options?: RpcOptions): UnaryCall<UploadPhotoRequest, UploadPhotoResponse> {
const method = this.methods[5], opt = this._transport.mergeOptions(options);
return stackIntercept<UploadPhotoRequest, UploadPhotoResponse>("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[6], 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[7], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: SuggestID
*/
suggestID(input: SuggestSiteIDRequest, options?: RpcOptions): UnaryCall<SuggestSiteIDRequest, SuggestSiteIDResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<SuggestSiteIDRequest, SuggestSiteIDResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: GetAvailableSlots
*/
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[9], 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, GetAvailableSlotsResponse> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<GetAvailableSlotsRequest, GetAvailableSlotsResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: ListUserSites
*/
listUserSites(input: ListUserSitesRequest, options?: RpcOptions): UnaryCall<ListUserSitesRequest, ListUserSitesResponse> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[11], 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[11], opt = this._transport.mergeOptions(options);
const method = this.methods[12], 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[13], opt = this._transport.mergeOptions(options);
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: WMSForceBookAppointment
*/
wMSForceBookAppointment(input: WMSBookAppointmentRequest, options?: RpcOptions): UnaryCall<WMSBookAppointmentRequest, BookAppointmentResponse> {
const method = this.methods[13], opt = this._transport.mergeOptions(options);
const method = this.methods[14], opt = this._transport.mergeOptions(options);
return stackIntercept<WMSBookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CancelAppointment
*/
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse> {
const method = this.methods[14], opt = this._transport.mergeOptions(options);
const method = this.methods[15], opt = this._transport.mergeOptions(options);
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: UpdateStatus
*/
updateStatus(input: UpdateSiteStatusRequest, options?: RpcOptions): UnaryCall<UpdateSiteStatusRequest, UpdateSiteStatusResult> {
const method = this.methods[15], opt = this._transport.mergeOptions(options);
const method = this.methods[16], opt = this._transport.mergeOptions(options);
return stackIntercept<UpdateSiteStatusRequest, UpdateSiteStatusResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: DeleteSiteInDB
*/
deleteSiteInDB(input: DeleteSiteInDBRequest, options?: RpcOptions): UnaryCall<DeleteSiteInDBRequest, DeleteSiteInDBResult> {
const method = this.methods[16], opt = this._transport.mergeOptions(options);
const method = this.methods[17], opt = this._transport.mergeOptions(options);
return stackIntercept<DeleteSiteInDBRequest, DeleteSiteInDBResult>("unary", this._transport, method, opt, input);
}
}

147
site.ts
View File

@@ -401,28 +401,30 @@ export interface DeleteSiteResponse {
*/
WorkflowExecution?: WorkflowExecutionResult;
}
// Upload photo
// message UploadPhotoRequest {
// option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
// json_schema: {
// required: ["Header", "File"]
// }
// };
// RequestSiteHeader Header = 1
// [
// (validate.rules).message.required = true
// ];
// FileDataRequest File = 2
// [
// (validate.rules).message.required = true
// ];
// }
// message UploadPhotoResponse {
// string URI = 1;
// }
/**
* Upload photo
*
* @generated from protobuf message api.UploadPhotoRequest
*/
export interface UploadPhotoRequest {
/**
* @generated from protobuf field: api.RequestSiteHeader Header = 1
*/
Header?: RequestSiteHeader;
/**
* @generated from protobuf field: api.FileDataRequest File = 2
*/
File?: FileDataRequest;
}
/**
* @generated from protobuf message api.UploadPhotoResponse
*/
export interface UploadPhotoResponse {
/**
* @generated from protobuf field: string URI = 1
*/
URI: string;
}
/**
* Upload document
*
@@ -1742,6 +1744,106 @@ class DeleteSiteResponse$Type extends MessageType<DeleteSiteResponse> {
*/
export const DeleteSiteResponse = new DeleteSiteResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UploadPhotoRequest$Type extends MessageType<UploadPhotoRequest> {
constructor() {
super("api.UploadPhotoRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "File", kind: "message", localName: "File", jsonName: "File", T: () => FileDataRequest, options: { "validate.rules": { message: { required: true } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File"] } } });
}
create(value?: PartialMessage<UploadPhotoRequest>): UploadPhotoRequest {
const message = globalThis.Object.create((this.messagePrototype!));
if (value !== undefined)
reflectionMergePartial<UploadPhotoRequest>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadPhotoRequest): UploadPhotoRequest {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.RequestSiteHeader Header */ 1:
message.Header = RequestSiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.FileDataRequest File */ 2:
message.File = FileDataRequest.internalBinaryRead(reader, reader.uint32(), options, message.File);
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: UploadPhotoRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.RequestSiteHeader Header = 1; */
if (message.Header)
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.FileDataRequest File = 2; */
if (message.File)
FileDataRequest.internalBinaryWrite(message.File, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UploadPhotoRequest
*/
export const UploadPhotoRequest = new UploadPhotoRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UploadPhotoResponse$Type extends MessageType<UploadPhotoResponse> {
constructor() {
super("api.UploadPhotoResponse", [
{ no: 1, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<UploadPhotoResponse>): UploadPhotoResponse {
const message = globalThis.Object.create((this.messagePrototype!));
message.URI = "";
if (value !== undefined)
reflectionMergePartial<UploadPhotoResponse>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadPhotoResponse): UploadPhotoResponse {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string URI */ 1:
message.URI = 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: UploadPhotoResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string URI = 1; */
if (message.URI !== "")
writer.tag(1, WireType.LengthDelimited).string(message.URI);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.UploadPhotoResponse
*/
export const UploadPhotoResponse = new UploadPhotoResponse$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UploadInstructionDocumentRequest$Type extends MessageType<UploadInstructionDocumentRequest> {
constructor() {
super("api.UploadInstructionDocumentRequest", [
@@ -2881,6 +2983,7 @@ export const SiteService = new ServiceType("api.SiteService", [
{ name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List site of an organisation" }, "api.rscType": "Organisation", "api.roles": "Platform.Site", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "SDK" } }, I: ListSiteRequest, O: ListSiteResponse },
{ name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update a site" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSiteRequest, O: UpdateSiteResponse },
{ name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete a site" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteSiteRequest, O: DeleteSiteResponse },
{ 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": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadPhotoRequest, O: UploadPhotoResponse },
{ name: "UploadInstructionDocument", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Upload or replace an instruction document on a site for a specific language. <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/UploadInstructionDocument -H \"Authorization: Bearer ...\" -F File=\"@path/to/my/file/to/upload\" -F SiteID=mySiteID -F DocID=myDocID -F LanguageCodeISO6391=en -F Name=myName -F AckRequired=False" }, "api.rscType": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: UploadInstructionDocumentRequest, O: UploadInstructionDocumentResponse },
{ 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": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteInstructionDocumentRequest, O: DeleteInstructionDocumentResponse },
{ name: "SuggestID", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Suggest a site ID" }, "api.rscType": "Organisation", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: SuggestSiteIDRequest, O: SuggestSiteIDResult },