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-250505091255",
|
||||
"version": "1.11.0-SNAPSHOT-250506083426",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -12,6 +12,8 @@ import type { ListUserSitesResponse } from "./site";
|
||||
import type { ListUserSitesRequest } from "./site";
|
||||
import type { GetAvailableSlotsResponse } from "./site";
|
||||
import type { GetAvailableSlotsRequest } from "./site";
|
||||
import type { SuggestSiteIDResult } from "./site";
|
||||
import type { SuggestSiteIDRequest } from "./site";
|
||||
import type { DeleteSiteResponse } from "./site";
|
||||
import type { DeleteSiteRequest } from "./site";
|
||||
import type { UpdateSiteResponse } from "./site";
|
||||
@@ -49,6 +51,10 @@ export interface ISiteServiceClient {
|
||||
* @generated from protobuf rpc: Delete(api.DeleteSiteRequest) returns (api.DeleteSiteResponse);
|
||||
*/
|
||||
delete(input: DeleteSiteRequest, options?: RpcOptions): UnaryCall<DeleteSiteRequest, DeleteSiteResponse>;
|
||||
/**
|
||||
* @generated from protobuf rpc: SuggestID(api.SuggestSiteIDRequest) returns (api.SuggestSiteIDResult);
|
||||
*/
|
||||
suggestID(input: SuggestSiteIDRequest, options?: RpcOptions): UnaryCall<SuggestSiteIDRequest, SuggestSiteIDResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: GetAvailableSlots(api.GetAvailableSlotsRequest) returns (api.GetAvailableSlotsResponse);
|
||||
*/
|
||||
@@ -110,32 +116,39 @@ 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);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: SuggestID(api.SuggestSiteIDRequest) returns (api.SuggestSiteIDResult);
|
||||
*/
|
||||
suggestID(input: SuggestSiteIDRequest, options?: RpcOptions): UnaryCall<SuggestSiteIDRequest, SuggestSiteIDResult> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<SuggestSiteIDRequest, SuggestSiteIDResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: GetAvailableSlots(api.GetAvailableSlotsRequest) returns (api.GetAvailableSlotsResponse);
|
||||
*/
|
||||
getAvailableSlots(input: GetAvailableSlotsRequest, options?: RpcOptions): UnaryCall<GetAvailableSlotsRequest, GetAvailableSlotsResponse> {
|
||||
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<GetAvailableSlotsRequest, GetAvailableSlotsResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: ListUserSites(api.ListUserSitesRequest) returns (api.ListUserSitesResponse);
|
||||
*/
|
||||
listUserSites(input: ListUserSitesRequest, options?: RpcOptions): UnaryCall<ListUserSitesRequest, ListUserSitesResponse> {
|
||||
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<ListUserSitesRequest, ListUserSitesResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: BookAppointment(api.BookAppointmentRequest) returns (api.BookAppointmentResponse);
|
||||
*/
|
||||
bookAppointment(input: BookAppointmentRequest, options?: RpcOptions): UnaryCall<BookAppointmentRequest, BookAppointmentResponse> {
|
||||
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<BookAppointmentRequest, BookAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CancelAppointment(api.CancelAppointmentRequest) returns (api.CancelAppointmentResponse);
|
||||
*/
|
||||
cancelAppointment(input: CancelAppointmentRequest, options?: RpcOptions): UnaryCall<CancelAppointmentRequest, CancelAppointmentResponse> {
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CancelAppointmentRequest, CancelAppointmentResponse>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
126
site.ts
126
site.ts
@@ -377,6 +377,30 @@ export interface DeleteSiteRequest {
|
||||
*/
|
||||
export interface DeleteSiteResponse {
|
||||
}
|
||||
/**
|
||||
* SuggestID
|
||||
*
|
||||
* @generated from protobuf message api.SuggestSiteIDRequest
|
||||
*/
|
||||
export interface SuggestSiteIDRequest {
|
||||
/**
|
||||
* @generated from protobuf field: api.RequestOrganisationHeader Header = 3 [json_name = "Header"];
|
||||
*/
|
||||
Header?: RequestOrganisationHeader;
|
||||
/**
|
||||
* @generated from protobuf field: string Name = 2 [json_name = "Name"];
|
||||
*/
|
||||
Name: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.SuggestSiteIDResult
|
||||
*/
|
||||
export interface SuggestSiteIDResult {
|
||||
/**
|
||||
* @generated from protobuf field: string SiteID = 1 [json_name = "SiteID"];
|
||||
*/
|
||||
SiteID: string;
|
||||
}
|
||||
/**
|
||||
* GetAvailableSlots
|
||||
*
|
||||
@@ -1389,6 +1413,107 @@ class DeleteSiteResponse$Type extends MessageType<DeleteSiteResponse> {
|
||||
*/
|
||||
export const DeleteSiteResponse = new DeleteSiteResponse$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SuggestSiteIDRequest$Type extends MessageType<SuggestSiteIDRequest> {
|
||||
constructor() {
|
||||
super("api.SuggestSiteIDRequest", [
|
||||
{ no: 3, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<SuggestSiteIDRequest>): SuggestSiteIDRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Name = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SuggestSiteIDRequest>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuggestSiteIDRequest): SuggestSiteIDRequest {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.RequestOrganisationHeader Header = 3 [json_name = "Header"];*/ 3:
|
||||
message.Header = RequestOrganisationHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* string Name = 2 [json_name = "Name"];*/ 2:
|
||||
message.Name = 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: SuggestSiteIDRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string Name = 2 [json_name = "Name"]; */
|
||||
if (message.Name !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.Name);
|
||||
/* api.RequestOrganisationHeader Header = 3 [json_name = "Header"]; */
|
||||
if (message.Header)
|
||||
RequestOrganisationHeader.internalBinaryWrite(message.Header, 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.SuggestSiteIDRequest
|
||||
*/
|
||||
export const SuggestSiteIDRequest = new SuggestSiteIDRequest$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class SuggestSiteIDResult$Type extends MessageType<SuggestSiteIDResult> {
|
||||
constructor() {
|
||||
super("api.SuggestSiteIDResult", [
|
||||
{ no: 1, name: "SiteID", kind: "scalar", localName: "SiteID", jsonName: "SiteID", T: 9 /*ScalarType.STRING*/ }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<SuggestSiteIDResult>): SuggestSiteIDResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SiteID = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<SuggestSiteIDResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuggestSiteIDResult): SuggestSiteIDResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* string SiteID = 1 [json_name = "SiteID"];*/ 1:
|
||||
message.SiteID = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: SuggestSiteIDResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* string SiteID = 1 [json_name = "SiteID"]; */
|
||||
if (message.SiteID !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.SiteID);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.SuggestSiteIDResult
|
||||
*/
|
||||
export const SuggestSiteIDResult = new SuggestSiteIDResult$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class GetAvailableSlotsRequest$Type extends MessageType<GetAvailableSlotsRequest> {
|
||||
constructor() {
|
||||
super("api.GetAvailableSlotsRequest", [
|
||||
@@ -1865,6 +1990,7 @@ export const SiteService = new ServiceType("api.SiteService", [
|
||||
{ name: "List", options: { "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "slotbooking", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List site of an organisation" }, "google.api.method_visibility": { restriction: "SDK" } }, I: ListSiteRequest, O: ListSiteResponse },
|
||||
{ name: "Update", options: { "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Update a site" }, "google.api.method_visibility": { restriction: "SDK" } }, I: UpdateSiteRequest, O: UpdateSiteResponse },
|
||||
{ name: "Delete", options: { "api.rscType": "Organisation", "api.roles": "", "api.moduleID": "slotbooking", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Delete a site" }, "google.api.method_visibility": { restriction: "SDK" } }, I: DeleteSiteRequest, O: DeleteSiteResponse },
|
||||
{ name: "SuggestID", options: { "api.rscType": "Organisation", "api.roles": "", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin Site"], description: "Suggest a site ID" }, "google.api.method_visibility": { restriction: "SDK" } }, I: SuggestSiteIDRequest, O: SuggestSiteIDResult },
|
||||
{ name: "GetAvailableSlots", options: { "api.rscType": "Site", "api.roles": "", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get available slots to book an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" } }, I: GetAvailableSlotsRequest, O: GetAvailableSlotsResponse },
|
||||
{ name: "ListUserSites", options: { "api.rscType": "Platform", "api.roles": "Platform.Site", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List sites authorized for a user according to its permissions." }, "google.api.method_visibility": { restriction: "SDK" } }, I: ListUserSitesRequest, O: ListUserSitesResponse },
|
||||
{ name: "BookAppointment", options: { "api.rscType": "Site", "api.roles": "", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Book an appointment on the site." }, "google.api.method_visibility": { restriction: "SDK" } }, I: BookAppointmentRequest, O: BookAppointmentResponse },
|
||||
|
||||
Reference in New Issue
Block a user