Latest generation

This commit is contained in:
ci core model
2026-03-16 10:24:26 +00:00
parent e12e521b05
commit ea93a97316
3 changed files with 6 additions and 196 deletions

View File

@@ -12,8 +12,6 @@ import type { CrossFindQuery } from "./shared";
import type { FindByCommissionResult } from "./appointmentQuery";
import type { FindByCommissionQuery } from "./appointmentQuery";
import type { FindMineByMatchQuery } from "./appointmentQuery";
import type { FindMineResult } from "./appointmentQuery";
import type { FindMineQuery } from "./appointmentQuery";
import type { CountLinesResult } from "./shared";
import type { CountLinesQuery } from "./shared";
import type { GetKPIDataResult } from "./clickhouse";
@@ -63,11 +61,6 @@ export interface IAppointmentQueryClient {
* @generated from protobuf rpc: CountLines
*/
countLines(input: CountLinesQuery, options?: RpcOptions): UnaryCall<CountLinesQuery, CountLinesResult>;
/**
* @deprecated
* @generated from protobuf rpc: FindMine
*/
findMine(input: FindMineQuery, options?: RpcOptions): UnaryCall<FindMineQuery, FindMineResult>;
/**
* @deprecated
* @generated from protobuf rpc: FindMineMatchingFieldValues
@@ -149,20 +142,12 @@ export class AppointmentQueryClient implements IAppointmentQueryClient, ServiceI
const method = this.methods[6], opt = this._transport.mergeOptions(options);
return stackIntercept<CountLinesQuery, CountLinesResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: FindMine
*/
findMine(input: FindMineQuery, options?: RpcOptions): UnaryCall<FindMineQuery, FindMineResult> {
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<FindMineQuery, FindMineResult>("unary", this._transport, method, opt, input);
}
/**
* @deprecated
* @generated from protobuf rpc: FindMineMatchingFieldValues
*/
findMineMatchingFieldValues(input: FindMineByMatchQuery, options?: RpcOptions): UnaryCall<FindMineByMatchQuery, AppointmentByMatchResult> {
const method = this.methods[8], opt = this._transport.mergeOptions(options);
const method = this.methods[7], opt = this._transport.mergeOptions(options);
return stackIntercept<FindMineByMatchQuery, AppointmentByMatchResult>("unary", this._transport, method, opt, input);
}
/**
@@ -170,28 +155,28 @@ export class AppointmentQueryClient implements IAppointmentQueryClient, ServiceI
* @generated from protobuf rpc: FindByCommission
*/
findByCommission(input: FindByCommissionQuery, options?: RpcOptions): UnaryCall<FindByCommissionQuery, FindByCommissionResult> {
const method = this.methods[9], opt = this._transport.mergeOptions(options);
const method = this.methods[8], opt = this._transport.mergeOptions(options);
return stackIntercept<FindByCommissionQuery, FindByCommissionResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CrossFind
*/
crossFind(input: CrossFindQuery, options?: RpcOptions): UnaryCall<CrossFindQuery, CrossFindAppointmentResult> {
const method = this.methods[10], opt = this._transport.mergeOptions(options);
const method = this.methods[9], opt = this._transport.mergeOptions(options);
return stackIntercept<CrossFindQuery, CrossFindAppointmentResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CrossFindMatchingFieldValues
*/
crossFindMatchingFieldValues(input: CrossFindByMatchQuery, options?: RpcOptions): UnaryCall<CrossFindByMatchQuery, CrossFindByMatchResult> {
const method = this.methods[11], opt = this._transport.mergeOptions(options);
const method = this.methods[10], opt = this._transport.mergeOptions(options);
return stackIntercept<CrossFindByMatchQuery, CrossFindByMatchResult>("unary", this._transport, method, opt, input);
}
/**
* @generated from protobuf rpc: CrossFindMatchingFieldElements
*/
crossFindMatchingFieldElements(input: CrossFindElementByMatchQuery, options?: RpcOptions): UnaryCall<CrossFindElementByMatchQuery, ElementByMatchResult> {
const method = this.methods[12], opt = this._transport.mergeOptions(options);
const method = this.methods[11], opt = this._transport.mergeOptions(options);
return stackIntercept<CrossFindElementByMatchQuery, ElementByMatchResult>("unary", this._transport, method, opt, input);
}
}

View File

@@ -166,48 +166,6 @@ export interface AppointmentByMatchResult {
*/
MatchResults: MatchFieldResult[];
}
/**
* @generated from protobuf message api.FindMineResult
*/
export interface FindMineResult {
/**
* @generated from protobuf field: repeated api.Appointment Objects = 1
*/
Objects: Appointment[];
/**
* @generated from protobuf field: api.ResultHeader Header = 2
*/
Header?: ResultHeader;
/**
* @generated from protobuf field: string QueryContext = 3
*/
QueryContext: string;
}
/**
* @generated from protobuf message api.FindMineQuery
*/
export interface FindMineQuery {
/**
* @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 = 2
*/
BlockFilters: BlockFilter[];
/**
* Number of maximum result
*
* @generated from protobuf field: string LimitFilter = 3
*/
LimitFilter: string;
/**
* @generated from protobuf field: string QueryContext = 5
*/
QueryContext: string;
}
/**
* @generated from protobuf message api.FindMineByMatchQuery
*/
@@ -735,138 +693,6 @@ class AppointmentByMatchResult$Type extends MessageType<AppointmentByMatchResult
*/
export const AppointmentByMatchResult = new AppointmentByMatchResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FindMineResult$Type extends MessageType<FindMineResult> {
constructor() {
super("api.FindMineResult", [
{ no: 1, name: "Objects", kind: "message", localName: "Objects", jsonName: "Objects", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Appointment },
{ no: 2, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => ResultHeader },
{ no: 3, name: "QueryContext", kind: "scalar", localName: "QueryContext", jsonName: "QueryContext", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<FindMineResult>): FindMineResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Objects = [];
message.QueryContext = "";
if (value !== undefined)
reflectionMergePartial<FindMineResult>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FindMineResult): FindMineResult {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated api.Appointment Objects */ 1:
message.Objects.push(Appointment.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.ResultHeader Header */ 2:
message.Header = ResultHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
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: FindMineResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated api.Appointment Objects = 1; */
for (let i = 0; i < message.Objects.length; i++)
Appointment.internalBinaryWrite(message.Objects[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.ResultHeader Header = 2; */
if (message.Header)
ResultHeader.internalBinaryWrite(message.Header, 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.FindMineResult
*/
export const FindMineResult = new FindMineResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FindMineQuery$Type extends MessageType<FindMineQuery> {
constructor() {
super("api.FindMineQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 3, name: "LimitFilter", kind: "scalar", localName: "LimitFilter", jsonName: "LimitFilter", 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", localName: "QueryContext", jsonName: "QueryContext", T: 9 /*ScalarType.STRING*/ }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<FindMineQuery>): FindMineQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.BlockFilters = [];
message.LimitFilter = "";
message.QueryContext = "";
if (value !== undefined)
reflectionMergePartial<FindMineQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FindMineQuery): FindMineQuery {
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 */ 2:
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string LimitFilter */ 3:
message.LimitFilter = reader.string();
break;
case /* string QueryContext */ 5:
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: FindMineQuery, 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 = 2; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
/* string LimitFilter = 3; */
if (message.LimitFilter !== "")
writer.tag(3, WireType.LengthDelimited).string(message.LimitFilter);
/* string QueryContext = 5; */
if (message.QueryContext !== "")
writer.tag(5, 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.FindMineQuery
*/
export const FindMineQuery = new FindMineQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class FindMineByMatchQuery$Type extends MessageType<FindMineByMatchQuery> {
constructor() {
super("api.FindMineByMatchQuery", [
@@ -1140,7 +966,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: "FindMine", 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.customQuery": true, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineQuery, O: FindMineResult },
{ 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 },

View File

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