diff --git a/appointmentQuery.client.ts b/appointmentQuery.client.ts index f18dfa8..98746b4 100644 --- a/appointmentQuery.client.ts +++ b/appointmentQuery.client.ts @@ -9,9 +9,6 @@ import type { CrossFindByMatchResult } from "./shared"; import type { CrossFindByMatchQuery } from "./shared"; import type { CrossFindAppointmentResult } from "./appointmentQuery"; import type { CrossFindQuery } from "./shared"; -import type { FindByCommissionResult } from "./appointmentQuery"; -import type { FindByCommissionQuery } from "./appointmentQuery"; -import type { FindMineByMatchQuery } from "./appointmentQuery"; import type { CountLinesResult } from "./shared"; import type { CountLinesQuery } from "./shared"; import type { GetKPIDataResult } from "./clickhouse"; @@ -61,16 +58,6 @@ export interface IAppointmentQueryClient { * @generated from protobuf rpc: CountLines */ countLines(input: CountLinesQuery, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: FindMineMatchingFieldValues - */ - findMineMatchingFieldValues(input: FindMineByMatchQuery, options?: RpcOptions): UnaryCall; - /** - * @deprecated - * @generated from protobuf rpc: FindByCommission - */ - findByCommission(input: FindByCommissionQuery, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CrossFind */ @@ -142,41 +129,25 @@ export class AppointmentQueryClient implements IAppointmentQueryClient, ServiceI const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } - /** - * @deprecated - * @generated from protobuf rpc: FindMineMatchingFieldValues - */ - findMineMatchingFieldValues(input: FindMineByMatchQuery, options?: RpcOptions): UnaryCall { - const method = this.methods[7], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } - /** - * @deprecated - * @generated from protobuf rpc: FindByCommission - */ - findByCommission(input: FindByCommissionQuery, options?: RpcOptions): UnaryCall { - const method = this.methods[8], opt = this._transport.mergeOptions(options); - return stackIntercept("unary", this._transport, method, opt, input); - } /** * @generated from protobuf rpc: CrossFind */ crossFind(input: CrossFindQuery, options?: RpcOptions): UnaryCall { - const method = this.methods[9], opt = this._transport.mergeOptions(options); + const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CrossFindMatchingFieldValues */ crossFindMatchingFieldValues(input: CrossFindByMatchQuery, options?: RpcOptions): UnaryCall { - const method = this.methods[10], opt = this._transport.mergeOptions(options); + const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CrossFindMatchingFieldElements */ crossFindMatchingFieldElements(input: CrossFindElementByMatchQuery, options?: RpcOptions): UnaryCall { - const method = this.methods[11], opt = this._transport.mergeOptions(options); + const method = this.methods[9], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } } diff --git a/appointmentQuery.ts b/appointmentQuery.ts index f993ecc..ded6f45 100644 --- a/appointmentQuery.ts +++ b/appointmentQuery.ts @@ -23,7 +23,6 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; -import { QueryBasicHeader } from "./shared"; import { MatchFieldResult } from "./shared"; import { MatchField } from "./shared"; import { EntityType } from "./shared"; @@ -166,73 +165,6 @@ export interface AppointmentByMatchResult { */ MatchResults: MatchFieldResult[]; } -/** - * @generated from protobuf message api.FindMineByMatchQuery - */ -export interface FindMineByMatchQuery { - /** - * @generated from protobuf field: api.QueryBasicHeader Header = 1 - */ - Header?: QueryBasicHeader; - /** - * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query - * - * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 5 - */ - BlockFilters: BlockFilter[]; - /** - * MatchField list structure, for FindMatching query - * - * @generated from protobuf field: repeated api.MatchField MatchFields = 6 - */ - MatchFields: MatchField[]; -} -/** - * @generated from protobuf message api.FindByCommissionQuery - */ -export interface FindByCommissionQuery { - /** - * @generated from protobuf field: api.QueryProjectHeader Header = 1 - */ - Header?: QueryProjectHeader; - /** - * Number of maximum result - * - * @generated from protobuf field: string limitFilter = 4 - */ - limitFilter: string; - /** - * @generated from protobuf field: string queryContext = 5 - */ - queryContext: string; - /** - * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query - * - * @generated from protobuf field: repeated api.BlockFilter BlockFilters = 6 - */ - BlockFilters: BlockFilter[]; - /** - * @generated from protobuf field: api.AppointmentQueryOptions Options = 7 - */ - Options?: AppointmentQueryOptions; -} -/** - * @generated from protobuf message api.FindByCommissionResult - */ -export interface FindByCommissionResult { - /** - * @generated from protobuf field: api.ResultHeader Header = 1 - */ - Header?: ResultHeader; - /** - * @generated from protobuf field: repeated api.Appointment Objects = 2 - */ - Objects: Appointment[]; - /** - * @generated from protobuf field: string queryContext = 3 - */ - queryContext: string; -} /** * @generated from protobuf message api.CrossFindAppointmentResult */ @@ -693,207 +625,6 @@ class AppointmentByMatchResult$Type extends MessageType { - constructor() { - super("api.FindMineByMatchQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } }, - { no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, - { no: 6, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); - } - create(value?: PartialMessage): FindMineByMatchQuery { - const message = globalThis.Object.create((this.messagePrototype!)); - message.BlockFilters = []; - message.MatchFields = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FindMineByMatchQuery): FindMineByMatchQuery { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* api.QueryBasicHeader Header */ 1: - message.Header = QueryBasicHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); - break; - case /* repeated api.BlockFilter BlockFilters */ 5: - message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* repeated api.MatchField MatchFields */ 6: - message.MatchFields.push(MatchField.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: FindMineByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.QueryBasicHeader Header = 1; */ - if (message.Header) - QueryBasicHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.BlockFilter BlockFilters = 5; */ - for (let i = 0; i < message.BlockFilters.length; i++) - BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.MatchField MatchFields = 6; */ - for (let i = 0; i < message.MatchFields.length; i++) - MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, 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.FindMineByMatchQuery - */ -export const FindMineByMatchQuery = new FindMineByMatchQuery$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FindByCommissionQuery$Type extends MessageType { - constructor() { - super("api.FindByCommissionQuery", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } }, - { no: 4, name: "limitFilter", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } }, - { no: 5, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, - { no: 6, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter }, - { no: 7, name: "Options", kind: "message", localName: "Options", jsonName: "Options", T: () => AppointmentQueryOptions } - ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } }); - } - create(value?: PartialMessage): FindByCommissionQuery { - const message = globalThis.Object.create((this.messagePrototype!)); - message.limitFilter = ""; - message.queryContext = ""; - message.BlockFilters = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FindByCommissionQuery): FindByCommissionQuery { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* api.QueryProjectHeader Header */ 1: - message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); - break; - case /* string limitFilter */ 4: - message.limitFilter = reader.string(); - break; - case /* string queryContext */ 5: - message.queryContext = reader.string(); - break; - case /* repeated api.BlockFilter BlockFilters */ 6: - message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* api.AppointmentQueryOptions Options */ 7: - message.Options = AppointmentQueryOptions.internalBinaryRead(reader, reader.uint32(), options, message.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: FindByCommissionQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.QueryProjectHeader Header = 1; */ - if (message.Header) - QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* string limitFilter = 4; */ - if (message.limitFilter !== "") - writer.tag(4, WireType.LengthDelimited).string(message.limitFilter); - /* string queryContext = 5; */ - if (message.queryContext !== "") - writer.tag(5, WireType.LengthDelimited).string(message.queryContext); - /* repeated api.BlockFilter BlockFilters = 6; */ - for (let i = 0; i < message.BlockFilters.length; i++) - BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join(); - /* api.AppointmentQueryOptions Options = 7; */ - if (message.Options) - AppointmentQueryOptions.internalBinaryWrite(message.Options, writer.tag(7, 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.FindByCommissionQuery - */ -export const FindByCommissionQuery = new FindByCommissionQuery$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FindByCommissionResult$Type extends MessageType { - constructor() { - super("api.FindByCommissionResult", [ - { no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResultHeader }, - { no: 2, name: "Objects", kind: "message", localName: "Objects", jsonName: "Objects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Appointment }, - { no: 3, name: "queryContext", kind: "scalar", T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value?: PartialMessage): FindByCommissionResult { - const message = globalThis.Object.create((this.messagePrototype!)); - message.Objects = []; - message.queryContext = ""; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FindByCommissionResult): FindByCommissionResult { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* api.ResultHeader Header */ 1: - message.Header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header); - break; - case /* repeated api.Appointment Objects */ 2: - message.Objects.push(Appointment.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* string queryContext */ 3: - message.queryContext = 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: FindByCommissionResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { - /* api.ResultHeader Header = 1; */ - if (message.Header) - ResultHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* repeated api.Appointment Objects = 2; */ - for (let i = 0; i < message.Objects.length; i++) - Appointment.internalBinaryWrite(message.Objects[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* string queryContext = 3; */ - if (message.queryContext !== "") - writer.tag(3, WireType.LengthDelimited).string(message.queryContext); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message api.FindByCommissionResult - */ -export const FindByCommissionResult = new FindByCommissionResult$Type(); -// @generated message type with reflection information, may provide speed optimized methods class CrossFindAppointmentResult$Type extends MessageType { constructor() { super("api.CrossFindAppointmentResult", [ @@ -966,8 +697,6 @@ export const AppointmentQuery = new ServiceType("api.AppointmentQuery", [ { name: "Extract", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Schedule a data extraction" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractQuery, O: ExtractResult }, { name: "GetKPIData", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointment KPI data" }, "api.rscType": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetKPIDataQuery, O: GetKPIDataResult }, { name: "CountLines", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Count lines in database for project" }, "api.rscType": "Platform", "api.roles": "Platform.Project-Query", "api.moduleID": "appointment-scheduling", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CountLinesQuery, O: CountLinesResult }, - { name: "FindMineMatchingFieldValues", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Using search criteria & a main field word, find the list of fields containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineByMatchQuery, O: AppointmentByMatchResult }, - { name: "FindByCommission", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find Appointments using search criterias" }, "api.customQuery": true, "api.rscType": "Project", "api.roles": "Platform.Project-Query", "api.moduleID": "", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindByCommissionQuery, O: FindByCommissionResult }, { name: "CrossFind", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find user's all Appointments across all sites in all organisations" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CrossFindQuery, O: CrossFindAppointmentResult }, { name: "CrossFindMatchingFieldValues", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Using search criteria & a main field word, find the list of fields containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CrossFindByMatchQuery, O: CrossFindByMatchResult }, { name: "CrossFindMatchingFieldElements", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "using search criteria & a main field word, find the list of field elements containing the searched word (used for auto completion purposes ...) " }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CrossFindElementByMatchQuery, O: ElementByMatchResult } diff --git a/package.json b/package.json index 13796f9..c7d5af0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.13.0-SNAPSHOT-260316102342", + "version": "1.13.0-SNAPSHOT-260316103643", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts",