Latest generation

This commit is contained in:
ci core model
2025-10-02 13:59:13 +00:00
parent 0e666ec761
commit 9598e82401
3 changed files with 115 additions and 2 deletions

View File

@@ -4,6 +4,8 @@
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
import { AppointmentQuery } 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";
@@ -53,6 +55,10 @@ export interface IAppointmentQueryClient {
* @generated from protobuf rpc: CountLines
*/
countLines(input: CountLinesQuery, options?: RpcOptions): UnaryCall<CountLinesQuery, CountLinesResult>;
/**
* @generated from protobuf rpc: FindMine
*/
findMine(input: FindMineQuery, options?: RpcOptions): UnaryCall<FindMineQuery, FindMineResult>;
}
/**
* @generated from protobuf service api.AppointmentQuery
@@ -112,4 +118,11 @@ 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);
}
/**
* @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);
}
}

View File

@@ -157,6 +157,20 @@ 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 message api.FindMineQuery
*/
export interface FindMineQuery {
}
// @generated message type with reflection information, may provide speed optimized methods
class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
constructor() {
@@ -590,6 +604,91 @@ class AppointmentByMatchResult$Type extends MessageType<AppointmentByMatchResult
* @generated MessageType for protobuf message api.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 }
]);
}
create(value?: PartialMessage<FindMineResult>): FindMineResult {
const message = globalThis.Object.create((this.messagePrototype!));
message.Objects = [];
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;
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();
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", []);
}
create(value?: PartialMessage<FindMineQuery>): FindMineQuery {
const message = globalThis.Object.create((this.messagePrototype!));
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) {
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 {
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 ServiceType for protobuf service api.AppointmentQuery
*/
@@ -600,5 +699,6 @@ export const AppointmentQuery = new ServiceType("api.AppointmentQuery", [
{ name: "FindMatchingFieldElements", 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": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ElementByMatchSiteQuery, O: ElementByMatchResult },
{ name: "Extract", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Schedule a data extraction" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractSiteQuery, O: ExtractResult },
{ name: "GetKPIData", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointment KPI data" }, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetKPIDataSiteQuery, 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.Site-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CountLinesQuery, O: CountLinesResult }
{ 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.Site-Query", "api.moduleID": "appointment-scheduling", "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.rscType": "Platform", "api.roles": "Platform.Site-Query", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineQuery, O: FindMineResult }
], { "api.serviceType": "Query", "api.k8sService": "collab-query-server" });

View File

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