diff --git a/package.json b/package.json index 07b9624a..9eea81a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260416133027", + "version": "1.13.0-SNAPSHOT-260417091316", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/site.client.ts b/site.client.ts index ca840f41..044b3f07 100644 --- a/site.client.ts +++ b/site.client.ts @@ -6,8 +6,6 @@ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { SiteService } from "./site"; import type { ListSettingsResponse } from "./site"; import type { ListSettingsRequest } from "./site"; -import type { CheckAppointmentEditableResponse } from "./site"; -import type { CheckAppointmentEditableRequest } from "./site"; import type { GetMyBookingContextResponse } from "./site"; import type { GetMyBookingContextRequest } from "./site"; import type { GetBookingContextResponse } from "./site"; @@ -200,11 +198,6 @@ export interface ISiteServiceClient { * @generated from protobuf rpc: GetMyBookingContext */ getMyBookingContext(input: GetMyBookingContextRequest, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: CheckAppointmentEditable - */ - checkAppointmentEditable(input: CheckAppointmentEditableRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: ListSettings */ @@ -449,19 +442,11 @@ export class SiteServiceClient implements ISiteServiceClient, ServiceInfo { const method = this.methods[30], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @deprecated - * @generated from protobuf rpc: CheckAppointmentEditable - */ - checkAppointmentEditable(input: CheckAppointmentEditableRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[31], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } /** * @generated from protobuf rpc: ListSettings */ listSettings(input: ListSettingsRequest, options?: RpcOptions): UnaryCall { - const method = this.methods[32], opt = this._transport.mergeOptions(options); + const method = this.methods[31], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/site.ts b/site.ts index 8266f96b..21064eef 100644 --- a/site.ts +++ b/site.ts @@ -1394,45 +1394,6 @@ export interface InitBookerProfileResponse { */ SiteID: string; // Site ID } -/** - * CheckAppointmentEditable - * - * @generated from protobuf message api.CheckAppointmentEditableRequest - */ -export interface CheckAppointmentEditableRequest { - /** - * @generated from protobuf field: api.RequestProjectHeader Header = 1 - */ - Header?: RequestProjectHeader; - /** - * Type of appointment : Loading / Unloading / Both - * - * @generated from protobuf field: string AppointmentID = 2 - */ - AppointmentID: string; - /** - * actor with which the siteID/project-depositID will be processed - * - * @generated from protobuf field: string ActorID = 3 - */ - ActorID: string; -} -/** - * @generated from protobuf message api.CheckAppointmentEditableResponse - */ -export interface CheckAppointmentEditableResponse { - /** - * ResponseHeader Header = 2; - * bool IsModifiable = 1; - * - * @generated from protobuf field: bool IsEditable = 3 - */ - IsEditable: boolean; - /** - * @generated from protobuf field: bool IsForceEditable = 4 - */ - IsForceEditable: boolean; -} // @generated message type with reflection information, may provide speed optimized methods class Site$Type extends MessageType { constructor() { @@ -5553,123 +5514,6 @@ class InitBookerProfileResponse$Type extends MessageType { - constructor() { - super("api.CheckAppointmentEditableRequest", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 2, name: "AppointmentID", kind: "scalar", localName: "AppointmentID", jsonName: "AppointmentID", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "ActorID", kind: "scalar", localName: "ActorID", jsonName: "ActorID", T: 9 /*ScalarType.STRING*/ } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentID"] } } }); - } - create(value?: PartialMessage): CheckAppointmentEditableRequest { - const message = globalThis.Object.create((this.messagePrototype!)); - message.AppointmentID = ""; - message.ActorID = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckAppointmentEditableRequest): CheckAppointmentEditableRequest { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* api.RequestProjectHeader Header */ 1: - message.Header = RequestProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); - break; - case /* string AppointmentID */ 2: - message.AppointmentID = reader.string(); - break; - case /* string ActorID */ 3: - message.ActorID = 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: CheckAppointmentEditableRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.RequestProjectHeader Header = 1; */ - if (message.Header) - RequestProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string AppointmentID = 2; */ - if (message.AppointmentID !== "") - writer.tag(2, WireType.LengthDelimited).string(message.AppointmentID); - /* string ActorID = 3; */ - if (message.ActorID !== "") - writer.tag(3, WireType.LengthDelimited).string(message.ActorID); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.CheckAppointmentEditableRequest - */ -export const CheckAppointmentEditableRequest = new CheckAppointmentEditableRequest$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class CheckAppointmentEditableResponse$Type extends MessageType { - constructor() { - super("api.CheckAppointmentEditableResponse", [ - { no: 3, name: "IsEditable", kind: "scalar", localName: "IsEditable", jsonName: "IsEditable", T: 8 /*ScalarType.BOOL*/ }, - { no: 4, name: "IsForceEditable", kind: "scalar", localName: "IsForceEditable", jsonName: "IsForceEditable", T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value?: PartialMessage): CheckAppointmentEditableResponse { - const message = globalThis.Object.create((this.messagePrototype!)); - message.IsEditable = false; - message.IsForceEditable = false; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CheckAppointmentEditableResponse): CheckAppointmentEditableResponse { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* bool IsEditable */ 3: - message.IsEditable = reader.bool(); - break; - case /* bool IsForceEditable */ 4: - message.IsForceEditable = 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: CheckAppointmentEditableResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* bool IsEditable = 3; */ - if (message.IsEditable !== false) - writer.tag(3, WireType.Varint).bool(message.IsEditable); - /* bool IsForceEditable = 4; */ - if (message.IsForceEditable !== false) - writer.tag(4, WireType.Varint).bool(message.IsForceEditable); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.CheckAppointmentEditableResponse - */ -export const CheckAppointmentEditableResponse = new CheckAppointmentEditableResponse$Type(); /** * @generated ServiceType for protobuf service api.SiteService */ @@ -5705,6 +5549,5 @@ export const SiteService = new ServiceType("api.SiteService", [ { name: "InitBookerProfile", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Init the booker profile for a site. The user will gain access to the site and be able to book appointments." }, "api.rscType": "Platform", "api.roles": "" }, I: InitBookerProfileRequest, O: InitBookerProfileResponse }, { name: "GetBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get the booking context for a given Project and Actor" }, "api.rscType": "Project", "api.roles": "", "api.aliasType": "APPOINTMENT_SCHEDULING", "google.api.method_visibility": { restriction: "SDK" } }, I: GetBookingContextRequest, O: GetBookingContextResponse }, { name: "GetMyBookingContext", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Get your appointment available booking context according to your permissions." }, "api.rscType": "Platform", "api.roles": "" }, I: GetMyBookingContextRequest, O: GetMyBookingContextResponse }, - { name: "CheckAppointmentEditable", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "Check if appointment is in modifiable range." }, "api.rscType": "Project", "api.roles": "", "google.api.method_visibility": { restriction: "SDK" } }, I: CheckAppointmentEditableRequest, O: CheckAppointmentEditableResponse }, { name: "ListSettings", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Site"], description: "List all settings in the platform." }, "api.rscType": "Platform", "api.roles": "Platform.Site", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListSettingsRequest, O: ListSettingsResponse } ], { "api.k8sService": "core-site" });