You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.11.0-SNAPSHOT-250710072627",
|
||||
"version": "1.11.0-SNAPSHOT-250710134355",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -19,6 +19,10 @@ import type { GetAvailableSlotsResponse } from "./site";
|
||||
import type { GetAvailableSlotsRequest } from "./site";
|
||||
import type { SuggestSiteIDResult } from "./site";
|
||||
import type { SuggestSiteIDRequest } from "./site";
|
||||
import type { DeleteInstructionDocumentResponse } from "./site";
|
||||
import type { DeleteInstructionDocumentRequest } from "./site";
|
||||
import type { UploadInstructionDocumentResponse } from "./site";
|
||||
import type { UploadInstructionDocumentRequest } from "./site";
|
||||
import type { DeleteSiteResponse } from "./site";
|
||||
import type { DeleteSiteRequest } from "./site";
|
||||
import type { UpdateSiteResponse } from "./site";
|
||||
@@ -56,6 +60,25 @@ 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: UploadInstructionDocument
|
||||
*/
|
||||
uploadInstructionDocument(input: UploadInstructionDocumentRequest, options?: RpcOptions): UnaryCall<UploadInstructionDocumentRequest, UploadInstructionDocumentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: DeleteInstructionDocument
|
||||
*/
|
||||
deleteInstructionDocument(input: DeleteInstructionDocumentRequest, options?: RpcOptions): UnaryCall<DeleteInstructionDocumentRequest, DeleteInstructionDocumentResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: SuggestID
|
||||
*/
|
||||
@@ -141,74 +164,99 @@ 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: UploadInstructionDocument
|
||||
*/
|
||||
uploadInstructionDocument(input: UploadInstructionDocumentRequest, options?: RpcOptions): UnaryCall<UploadInstructionDocumentRequest, UploadInstructionDocumentResponse> {
|
||||
const method = this.methods[5], 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);
|
||||
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[5], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], 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[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], 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[7], 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: ListUserSites
|
||||
*/
|
||||
listUserSites(input: ListUserSitesRequest, options?: RpcOptions): UnaryCall<ListUserSitesRequest, ListUserSitesResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[10], 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[9], 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: ForceBookAppointment
|
||||
*/
|
||||
forceBookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[10], 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: WMSForceBookAppointment
|
||||
*/
|
||||
wMSForceBookAppointment(input: WMSBookAppointmentRequest, options?: RpcOptions): UnaryCall<WMSBookAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[11], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[13], 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[12], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[14], 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[13], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[15], 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[14], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[16], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<DeleteSiteInDBRequest, DeleteSiteInDBResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
347
site.ts
347
site.ts
@@ -17,6 +17,7 @@ import { SlotGroup } from "./slotbooking";
|
||||
import { SegmentationSelection } from "./slotbooking";
|
||||
import { Commission } from "./slotbooking";
|
||||
import { AppointmentType } from "./slotbooking";
|
||||
import { FileDataRequest } from "./shared";
|
||||
import { WorkflowExecutionResult } from "./shared";
|
||||
import { RequestSiteHeader } from "./shared";
|
||||
import { RequestOrganisationHeader } from "./shared";
|
||||
@@ -286,10 +287,6 @@ export interface UpdateSiteRequest {
|
||||
* @generated from protobuf field: bool Active = 4
|
||||
*/
|
||||
Active: boolean; // If the Site is active or not
|
||||
/**
|
||||
* @generated from protobuf field: string PhotoURI = 5
|
||||
*/
|
||||
PhotoURI: string; // link to a picture to display
|
||||
/**
|
||||
* @generated from protobuf field: api.Address Address = 6
|
||||
*/
|
||||
@@ -340,12 +337,6 @@ export interface UpdateSiteRequest {
|
||||
* @generated from protobuf field: api.Instruction Instruction = 15
|
||||
*/
|
||||
Instruction?: Instruction;
|
||||
/**
|
||||
* Set of instruction document, listing necessary equipment and such
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Document InstructionDocuments = 16
|
||||
*/
|
||||
InstructionDocuments: Document[];
|
||||
/**
|
||||
* Set of required or optional information to ask when a slot is booked
|
||||
*
|
||||
@@ -410,6 +401,92 @@ 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 document
|
||||
*
|
||||
* @generated from protobuf message api.UploadInstructionDocumentRequest
|
||||
*/
|
||||
export interface UploadInstructionDocumentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: api.FileDataRequest File = 2
|
||||
*/
|
||||
File?: FileDataRequest;
|
||||
/**
|
||||
* @generated from protobuf field: string DocID = 3
|
||||
*/
|
||||
DocID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string LanguageCodeISO6391 = 4
|
||||
*/
|
||||
LanguageCodeISO6391: string;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 5
|
||||
*/
|
||||
Name: string;
|
||||
/**
|
||||
* @generated from protobuf field: bool AckRequired = 6
|
||||
*/
|
||||
AckRequired: boolean;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.UploadInstructionDocumentResponse
|
||||
*/
|
||||
export interface UploadInstructionDocumentResponse {
|
||||
/**
|
||||
* @generated from protobuf field: string URI = 1
|
||||
*/
|
||||
URI: string;
|
||||
}
|
||||
/**
|
||||
* Delete document
|
||||
*
|
||||
* @generated from protobuf message api.DeleteInstructionDocumentRequest
|
||||
*/
|
||||
export interface DeleteInstructionDocumentRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestSiteHeader Header = 1
|
||||
*/
|
||||
Header?: RequestSiteHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string DocID = 2
|
||||
*/
|
||||
DocID: string;
|
||||
/**
|
||||
* @generated from protobuf field: string LanguageCodeISO6391 = 3
|
||||
*/
|
||||
LanguageCodeISO6391: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.DeleteInstructionDocumentResponse
|
||||
*/
|
||||
export interface DeleteInstructionDocumentResponse {
|
||||
}
|
||||
/**
|
||||
* SuggestID
|
||||
*
|
||||
@@ -1345,7 +1422,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 3, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "Active", kind: "scalar", localName: "Active", jsonName: "Active", T: 8 /*ScalarType.BOOL*/ },
|
||||
{ no: 5, name: "PhotoURI", kind: "scalar", localName: "PhotoURI", jsonName: "PhotoURI", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "Address", kind: "message", localName: "Address", jsonName: "Address", T: () => Address },
|
||||
{ no: 7, name: "Phones", kind: "scalar", localName: "Phones", jsonName: "Phones", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\", \"+49 00 0000 0000\"]" } } },
|
||||
{ no: 8, name: "Fax", kind: "scalar", localName: "Fax", jsonName: "Fax", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { example: "[\"06 00 00 00 00\"]" } } },
|
||||
@@ -1356,7 +1432,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
{ no: 13, name: "DurationRules", kind: "message", localName: "DurationRules", jsonName: "DurationRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DurationRule },
|
||||
{ no: 14, name: "CapacityRules", kind: "message", localName: "CapacityRules", jsonName: "CapacityRules", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CapacityRule },
|
||||
{ no: 15, name: "Instruction", kind: "message", localName: "Instruction", jsonName: "Instruction", T: () => Instruction },
|
||||
{ no: 16, name: "InstructionDocuments", kind: "message", localName: "InstructionDocuments", jsonName: "InstructionDocuments", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Document },
|
||||
{ no: 17, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CarrierInformation },
|
||||
{ no: 18, name: "RoundedPeriodInMinutes", kind: "scalar", localName: "RoundedPeriodInMinutes", jsonName: "RoundedPeriodInMinutes", T: 13 /*ScalarType.UINT32*/, options: { "validate.rules": { uint32: { gt: 0 } } } },
|
||||
{ no: 19, name: "TimeZone", kind: "scalar", localName: "TimeZone", jsonName: "TimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Site time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
|
||||
@@ -1368,7 +1443,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Name = "";
|
||||
message.Active = false;
|
||||
message.PhotoURI = "";
|
||||
message.Phones = [];
|
||||
message.Fax = "";
|
||||
message.Segmentations = [];
|
||||
@@ -1377,7 +1451,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
message.OpeningRules = [];
|
||||
message.DurationRules = [];
|
||||
message.CapacityRules = [];
|
||||
message.InstructionDocuments = [];
|
||||
message.CarrierInformation = [];
|
||||
message.RoundedPeriodInMinutes = 0;
|
||||
message.TimeZone = "";
|
||||
@@ -1401,9 +1474,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
case /* bool Active */ 4:
|
||||
message.Active = reader.bool();
|
||||
break;
|
||||
case /* string PhotoURI */ 5:
|
||||
message.PhotoURI = reader.string();
|
||||
break;
|
||||
case /* api.Address Address */ 6:
|
||||
message.Address = Address.internalBinaryRead(reader, reader.uint32(), options, message.Address);
|
||||
break;
|
||||
@@ -1434,9 +1504,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
case /* api.Instruction Instruction */ 15:
|
||||
message.Instruction = Instruction.internalBinaryRead(reader, reader.uint32(), options, message.Instruction);
|
||||
break;
|
||||
case /* repeated api.Document InstructionDocuments */ 16:
|
||||
message.InstructionDocuments.push(Document.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.CarrierInformation CarrierInformation */ 17:
|
||||
message.CarrierInformation.push(CarrierInformation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
@@ -1473,9 +1540,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
/* bool Active = 4; */
|
||||
if (message.Active !== false)
|
||||
writer.tag(4, WireType.Varint).bool(message.Active);
|
||||
/* string PhotoURI = 5; */
|
||||
if (message.PhotoURI !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.PhotoURI);
|
||||
/* api.Address Address = 6; */
|
||||
if (message.Address)
|
||||
Address.internalBinaryWrite(message.Address, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1506,9 +1570,6 @@ class UpdateSiteRequest$Type extends MessageType<UpdateSiteRequest> {
|
||||
/* api.Instruction Instruction = 15; */
|
||||
if (message.Instruction)
|
||||
Instruction.internalBinaryWrite(message.Instruction, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.Document InstructionDocuments = 16; */
|
||||
for (let i = 0; i < message.InstructionDocuments.length; i++)
|
||||
Document.internalBinaryWrite(message.InstructionDocuments[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.CarrierInformation CarrierInformation = 17; */
|
||||
for (let i = 0; i < message.CarrierInformation.length; i++)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformation[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
||||
@@ -1681,6 +1742,238 @@ class DeleteSiteResponse$Type extends MessageType<DeleteSiteResponse> {
|
||||
*/
|
||||
export const DeleteSiteResponse = new DeleteSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UploadInstructionDocumentRequest$Type extends MessageType<UploadInstructionDocumentRequest> {
|
||||
constructor() {
|
||||
super("api.UploadInstructionDocumentRequest", [
|
||||
{ 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 } } } },
|
||||
{ no: 3, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 4, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } },
|
||||
{ no: 5, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 6, name: "AckRequired", kind: "scalar", localName: "AckRequired", jsonName: "AckRequired", T: 8 /*ScalarType.BOOL*/ }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "File", "DocID", "LanguageCodeISO6391"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<UploadInstructionDocumentRequest>): UploadInstructionDocumentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DocID = "";
|
||||
message.LanguageCodeISO6391 = "";
|
||||
message.Name = "";
|
||||
message.AckRequired = false;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UploadInstructionDocumentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadInstructionDocumentRequest): UploadInstructionDocumentRequest {
|
||||
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;
|
||||
case /* string DocID */ 3:
|
||||
message.DocID = reader.string();
|
||||
break;
|
||||
case /* string LanguageCodeISO6391 */ 4:
|
||||
message.LanguageCodeISO6391 = reader.string();
|
||||
break;
|
||||
case /* string Name */ 5:
|
||||
message.Name = reader.string();
|
||||
break;
|
||||
case /* bool AckRequired */ 6:
|
||||
message.AckRequired = reader.bool();
|
||||
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: UploadInstructionDocumentRequest, 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();
|
||||
/* string DocID = 3; */
|
||||
if (message.DocID !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.DocID);
|
||||
/* string LanguageCodeISO6391 = 4; */
|
||||
if (message.LanguageCodeISO6391 !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
|
||||
/* string Name = 5; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.Name);
|
||||
/* bool AckRequired = 6; */
|
||||
if (message.AckRequired !== false)
|
||||
writer.tag(6, WireType.Varint).bool(message.AckRequired);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.UploadInstructionDocumentRequest
|
||||
*/
|
||||
export const UploadInstructionDocumentRequest = new UploadInstructionDocumentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class UploadInstructionDocumentResponse$Type extends MessageType<UploadInstructionDocumentResponse> {
|
||||
constructor() {
|
||||
super("api.UploadInstructionDocumentResponse", [
|
||||
{ no: 1, name: "URI", kind: "scalar", localName: "URI", jsonName: "URI", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<UploadInstructionDocumentResponse>): UploadInstructionDocumentResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.URI = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<UploadInstructionDocumentResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadInstructionDocumentResponse): UploadInstructionDocumentResponse {
|
||||
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: UploadInstructionDocumentResponse, 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.UploadInstructionDocumentResponse
|
||||
*/
|
||||
export const UploadInstructionDocumentResponse = new UploadInstructionDocumentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteInstructionDocumentRequest$Type extends MessageType<DeleteInstructionDocumentRequest> {
|
||||
constructor() {
|
||||
super("api.DeleteInstructionDocumentRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestSiteHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "DocID", kind: "scalar", localName: "DocID", jsonName: "DocID", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 3, name: "LanguageCodeISO6391", kind: "scalar", localName: "LanguageCodeISO6391", jsonName: "LanguageCodeISO6391", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "DocID"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<DeleteInstructionDocumentRequest>): DeleteInstructionDocumentRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DocID = "";
|
||||
message.LanguageCodeISO6391 = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteInstructionDocumentRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteInstructionDocumentRequest): DeleteInstructionDocumentRequest {
|
||||
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 /* string DocID */ 2:
|
||||
message.DocID = reader.string();
|
||||
break;
|
||||
case /* string LanguageCodeISO6391 */ 3:
|
||||
message.LanguageCodeISO6391 = 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: DeleteInstructionDocumentRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.RequestSiteHeader Header = 1; */
|
||||
if (message.Header)
|
||||
RequestSiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string DocID = 2; */
|
||||
if (message.DocID !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.DocID);
|
||||
/* string LanguageCodeISO6391 = 3; */
|
||||
if (message.LanguageCodeISO6391 !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.LanguageCodeISO6391);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.DeleteInstructionDocumentRequest
|
||||
*/
|
||||
export const DeleteInstructionDocumentRequest = new DeleteInstructionDocumentRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class DeleteInstructionDocumentResponse$Type extends MessageType<DeleteInstructionDocumentResponse> {
|
||||
constructor() {
|
||||
super("api.DeleteInstructionDocumentResponse", []);
|
||||
}
|
||||
create(value?: PartialMessage<DeleteInstructionDocumentResponse>): DeleteInstructionDocumentResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<DeleteInstructionDocumentResponse>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteInstructionDocumentResponse): DeleteInstructionDocumentResponse {
|
||||
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: DeleteInstructionDocumentResponse, 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.DeleteInstructionDocumentResponse
|
||||
*/
|
||||
export const DeleteInstructionDocumentResponse = new DeleteInstructionDocumentResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SuggestSiteIDRequest$Type extends MessageType<SuggestSiteIDRequest> {
|
||||
constructor() {
|
||||
super("api.SuggestSiteIDRequest", [
|
||||
@@ -2588,6 +2881,8 @@ 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: "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 },
|
||||
{ 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": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "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": "Site", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAvailableSlotsResponse },
|
||||
|
||||
Reference in New Issue
Block a user