You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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 { FindByCommissionResult } from "./appointmentQuery";
|
||||
import type { FindByCommissionQuery } from "./appointmentQuery";
|
||||
import type { FindMineByMatchQuery } from "./appointmentQuery";
|
||||
import type { FindMineResult } from "./appointmentQuery";
|
||||
import type { FindMineQuery } from "./appointmentQuery";
|
||||
@@ -64,6 +66,10 @@ export interface IAppointmentQueryClient {
|
||||
* @generated from protobuf rpc: FindMineMatchingFieldValues
|
||||
*/
|
||||
findMineMatchingFieldValues(input: FindMineByMatchQuery, options?: RpcOptions): UnaryCall<FindMineByMatchQuery, AppointmentByMatchResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: FindByCommission
|
||||
*/
|
||||
findByCommission(input: FindByCommissionQuery, options?: RpcOptions): UnaryCall<FindByCommissionQuery, FindByCommissionResult>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.AppointmentQuery
|
||||
@@ -137,4 +143,11 @@ export class AppointmentQueryClient implements IAppointmentQueryClient, ServiceI
|
||||
const method = this.methods[8], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<FindMineByMatchQuery, AppointmentByMatchResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: FindByCommission
|
||||
*/
|
||||
findByCommission(input: FindByCommissionQuery, options?: RpcOptions): UnaryCall<FindByCommissionQuery, FindByCommissionResult> {
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<FindByCommissionQuery, FindByCommissionResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -225,6 +225,52 @@ export interface FindMineByMatchQuery {
|
||||
*/
|
||||
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 message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
|
||||
constructor() {
|
||||
@@ -861,6 +907,145 @@ class FindMineByMatchQuery$Type extends MessageType<FindMineByMatchQuery> {
|
||||
* @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<FindByCommissionQuery> {
|
||||
constructor() {
|
||||
super("api.FindByCommissionQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {}, "validate.rules": { message: { required: true } } } },
|
||||
{ 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>): FindByCommissionQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.limitFilter = "";
|
||||
message.queryContext = "";
|
||||
message.BlockFilters = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<FindByCommissionQuery>(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<FindByCommissionResult> {
|
||||
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>): FindByCommissionResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Objects = [];
|
||||
message.queryContext = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<FindByCommissionResult>(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 ServiceType for protobuf service api.AppointmentQuery
|
||||
*/
|
||||
@@ -873,5 +1058,6 @@ export const AppointmentQuery = new ServiceType("api.AppointmentQuery", [
|
||||
{ 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", "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", "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": "", "api.moduleID": "appointment-scheduling", "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": "", "api.moduleID": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindMineByMatchQuery, O: AppointmentByMatchResult }
|
||||
{ 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": "", "api.moduleID": "appointment-scheduling", "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": "appointment-scheduling", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: FindByCommissionQuery, O: FindByCommissionResult }
|
||||
], { "api.serviceType": "Query", "api.k8sService": "collab-query-server" });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.12.0-SNAPSHOT-251127101102",
|
||||
"version": "1.12.0-SNAPSHOT-251127140532",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -107,7 +107,7 @@ export interface TrackingDispatchedPayload {
|
||||
*/
|
||||
TrackingURL: string;
|
||||
// repeated TrackingEvent Events = 3; // Initial Event when dispatched
|
||||
// repeated base.MetadataElement MetaData = 4
|
||||
// repeated base.MetadataElement MetaData = 4
|
||||
// [
|
||||
// (base.metadata) = true, (base.aggKey) = "Key"
|
||||
// ];
|
||||
|
||||
Reference in New Issue
Block a user