You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -77,7 +77,7 @@ export interface ActorByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -130,7 +130,7 @@ export interface ActorByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
||||
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
||||
import { AppointmentQuery } from "./appointmentQuery";
|
||||
import type { CrossFindElementByMatchQuery } from "./shared";
|
||||
import type { CrossFindByMatchResult } from "./shared";
|
||||
import type { CrossFindByMatchQuery } from "./shared";
|
||||
import type { CrossFindResult } from "./appointmentQuery";
|
||||
import type { CrossFineQuery } from "./shared";
|
||||
import type { FindByCommissionResult } from "./appointmentQuery";
|
||||
import type { FindByCommissionQuery } from "./appointmentQuery";
|
||||
import type { FindMineByMatchQuery } from "./appointmentQuery";
|
||||
@@ -70,6 +75,18 @@ export interface IAppointmentQueryClient {
|
||||
* @generated from protobuf rpc: FindByCommission
|
||||
*/
|
||||
findByCommission(input: FindByCommissionQuery, options?: RpcOptions): UnaryCall<FindByCommissionQuery, FindByCommissionResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CrossFind
|
||||
*/
|
||||
crossFind(input: CrossFineQuery, options?: RpcOptions): UnaryCall<CrossFineQuery, CrossFindResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CrossFindMatchingFieldValues
|
||||
*/
|
||||
crossFindMatchingFieldValues(input: CrossFindByMatchQuery, options?: RpcOptions): UnaryCall<CrossFindByMatchQuery, CrossFindByMatchResult>;
|
||||
/**
|
||||
* @generated from protobuf rpc: CrossFindMatchingFieldElements
|
||||
*/
|
||||
crossFindMatchingFieldElements(input: CrossFindElementByMatchQuery, options?: RpcOptions): UnaryCall<CrossFindElementByMatchQuery, ElementByMatchResult>;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf service api.AppointmentQuery
|
||||
@@ -150,4 +167,25 @@ export class AppointmentQueryClient implements IAppointmentQueryClient, ServiceI
|
||||
const method = this.methods[9], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<FindByCommissionQuery, FindByCommissionResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf rpc: CrossFind
|
||||
*/
|
||||
crossFind(input: CrossFineQuery, options?: RpcOptions): UnaryCall<CrossFineQuery, CrossFindResult> {
|
||||
const method = this.methods[10], opt = this._transport.mergeOptions(options);
|
||||
return stackIntercept<CrossFineQuery, CrossFindResult>("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);
|
||||
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);
|
||||
return stackIntercept<CrossFindElementByMatchQuery, ElementByMatchResult>("unary", this._transport, method, opt, input);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
||||
// @generated from protobuf file "appointmentQuery.proto" (package "api", syntax proto3)
|
||||
// tslint:disable
|
||||
import { CrossFindElementByMatchQuery } from "./shared";
|
||||
import { CrossFindByMatchResult } from "./shared";
|
||||
import { CrossFindByMatchQuery } from "./shared";
|
||||
import { CrossFineQuery } from "./shared";
|
||||
import { CountLinesResult } from "./shared";
|
||||
import { CountLinesQuery } from "./shared";
|
||||
import { GetKPIDataResult } from "./clickhouse";
|
||||
@@ -80,7 +84,7 @@ export interface AppointmentByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -133,7 +137,7 @@ export interface AppointmentByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -188,7 +192,7 @@ export interface FindMineQuery {
|
||||
*/
|
||||
Header?: QueryBasicHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -213,7 +217,7 @@ export interface FindMineByMatchQuery {
|
||||
*/
|
||||
Header?: QueryBasicHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -271,6 +275,23 @@ export interface FindByCommissionResult {
|
||||
*/
|
||||
queryContext: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFindResult
|
||||
*/
|
||||
export interface CrossFindResult {
|
||||
/**
|
||||
* @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 message type with reflection information, may provide speed optimized methods
|
||||
class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
|
||||
constructor() {
|
||||
@@ -1046,6 +1067,68 @@ class FindByCommissionResult$Type extends MessageType<FindByCommissionResult> {
|
||||
* @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 CrossFindResult$Type extends MessageType<CrossFindResult> {
|
||||
constructor() {
|
||||
super("api.CrossFindResult", [
|
||||
{ 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<CrossFindResult>): CrossFindResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.Objects = [];
|
||||
message.QueryContext = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFindResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindResult): CrossFindResult {
|
||||
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: CrossFindResult, 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.CrossFindResult
|
||||
*/
|
||||
export const CrossFindResult = new CrossFindResult$Type();
|
||||
/**
|
||||
* @generated ServiceType for protobuf service api.AppointmentQuery
|
||||
*/
|
||||
@@ -1059,5 +1142,8 @@ export const AppointmentQuery = new ServiceType("api.AppointmentQuery", [
|
||||
{ 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": "", "api.moduleID": "appointment-scheduling", "api.tags": "PROJECT_SITE", "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", "api.tags": "PROJECT_SITE", "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: "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.customQuery": true, "api.rscType": "Platform", "api.roles": "", "api.moduleID": "appointment-scheduling", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CrossFineQuery, O: CrossFindResult },
|
||||
{ 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": "", "api.moduleID": "appointment-scheduling", "api.tags": "PROJECT_SITE", "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": "Project", "api.roles": "", "api.moduleID": "appointment-scheduling", "api.tags": "PROJECT_SITE", "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CrossFindElementByMatchQuery, O: ElementByMatchResult }
|
||||
], { "api.serviceType": "Query", "api.k8sService": "collab-query-server" });
|
||||
|
||||
@@ -82,7 +82,7 @@ export interface ClaimByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -135,7 +135,7 @@ export interface ClaimByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
@@ -73,7 +73,7 @@ export interface ExecutionflowByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
@@ -77,7 +77,7 @@ export interface HandlingunitByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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 = 7
|
||||
*/
|
||||
@@ -130,7 +130,7 @@ export interface HandlingunitByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
@@ -80,7 +80,7 @@ export interface ItemByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -133,7 +133,7 @@ export interface ItemByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
@@ -182,7 +182,7 @@ export interface PlatformLogFindRequest {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
@@ -79,7 +79,7 @@ export interface MovementByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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 = 7
|
||||
*/
|
||||
@@ -132,7 +132,7 @@ export interface MovementByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
@@ -77,7 +77,7 @@ export interface OrderByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -134,7 +134,7 @@ export interface OrderByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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 = 7
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@reflex-platform/npm-core-sdk",
|
||||
"version": "1.13.0-SNAPSHOT-260223150738",
|
||||
"version": "1.13.0-SNAPSHOT-260223160255",
|
||||
"description": "npm libs from core model proto files",
|
||||
"homepage": "",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -77,7 +77,7 @@ export interface PartnerByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
@@ -130,7 +130,7 @@ export interface PartnerByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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 = 7
|
||||
*/
|
||||
|
||||
412
shared.ts
412
shared.ts
@@ -2001,6 +2001,114 @@ export interface EntityDefinition {
|
||||
*/
|
||||
ModelVersion: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFineQuery
|
||||
*/
|
||||
export interface CrossFineQuery {
|
||||
/**
|
||||
* @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 = 4
|
||||
*/
|
||||
QueryContext: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 5
|
||||
*/
|
||||
SearchTagProjects: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 6
|
||||
*/
|
||||
SearchTagUsers: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFindByMatchQuery
|
||||
*/
|
||||
export interface CrossFindByMatchQuery {
|
||||
/**
|
||||
* @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[];
|
||||
/**
|
||||
* MatchField list structure, for FindMatching query
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 3
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 4
|
||||
*/
|
||||
SearchTagProjects: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 5
|
||||
*/
|
||||
SearchTagUsers: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFindElementByMatchQuery
|
||||
*/
|
||||
export interface CrossFindElementByMatchQuery {
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryProjectHeader Header = 1
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* 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[];
|
||||
/**
|
||||
* MatchElementField structure, containing wanted match string, and the fields to get.
|
||||
*
|
||||
* @generated from protobuf field: api.MatchElementField MatchElementField = 3
|
||||
*/
|
||||
MatchElementField?: MatchElementField;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 4
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 5
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 6
|
||||
*/
|
||||
SearchTagProjects: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 7
|
||||
*/
|
||||
SearchTagUsers: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFindByMatchResult
|
||||
*/
|
||||
export interface CrossFindByMatchResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 1
|
||||
*/
|
||||
MatchResults: MatchFieldResult[];
|
||||
}
|
||||
/**
|
||||
* List all data set in the model
|
||||
*
|
||||
@@ -8514,3 +8622,307 @@ class EntityDefinition$Type extends MessageType<EntityDefinition> {
|
||||
* @generated MessageType for protobuf message api.EntityDefinition
|
||||
*/
|
||||
export const EntityDefinition = new EntityDefinition$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFineQuery$Type extends MessageType<CrossFineQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFineQuery", [
|
||||
{ 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: 4, name: "QueryContext", kind: "scalar", localName: "QueryContext", jsonName: "QueryContext", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 6, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CrossFineQuery>): CrossFineQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.LimitFilter = "";
|
||||
message.QueryContext = "";
|
||||
message.SearchTagProjects = [];
|
||||
message.SearchTagUsers = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFineQuery>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFineQuery): CrossFineQuery {
|
||||
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 */ 4:
|
||||
message.QueryContext = reader.string();
|
||||
break;
|
||||
case /* repeated string SearchTagProjects */ 5:
|
||||
message.SearchTagProjects.push(reader.string());
|
||||
break;
|
||||
case /* repeated string SearchTagUsers */ 6:
|
||||
message.SearchTagUsers.push(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: CrossFineQuery, 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 = 4; */
|
||||
if (message.QueryContext !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.QueryContext);
|
||||
/* repeated string SearchTagProjects = 5; */
|
||||
for (let i = 0; i < message.SearchTagProjects.length; i++)
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 6; */
|
||||
for (let i = 0; i < message.SearchTagUsers.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CrossFineQuery
|
||||
*/
|
||||
export const CrossFineQuery = new CrossFineQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFindByMatchQuery$Type extends MessageType<CrossFindByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFindByMatchQuery", [
|
||||
{ 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: "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" } } },
|
||||
{ no: 4, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 5, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CrossFindByMatchQuery>): CrossFindByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.SearchTagProjects = [];
|
||||
message.SearchTagUsers = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFindByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindByMatchQuery): CrossFindByMatchQuery {
|
||||
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 /* repeated api.MatchField MatchFields */ 3:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated string SearchTagProjects */ 4:
|
||||
message.SearchTagProjects.push(reader.string());
|
||||
break;
|
||||
case /* repeated string SearchTagUsers */ 5:
|
||||
message.SearchTagUsers.push(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: CrossFindByMatchQuery, 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();
|
||||
/* repeated api.MatchField MatchFields = 3; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated string SearchTagProjects = 4; */
|
||||
for (let i = 0; i < message.SearchTagProjects.length; i++)
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 5; */
|
||||
for (let i = 0; i < message.SearchTagUsers.length; i++)
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CrossFindByMatchQuery
|
||||
*/
|
||||
export const CrossFindByMatchQuery = new CrossFindByMatchQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFindElementByMatchQuery$Type extends MessageType<CrossFindElementByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFindElementByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, 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: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 4, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } },
|
||||
{ no: 5, name: "UsageContextPath", kind: "scalar", localName: "UsageContextPath", jsonName: "UsageContextPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Path of restriction rule to apply (UsageContextEntity should be defined)" } } },
|
||||
{ no: 6, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 7, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CrossFindElementByMatchQuery>): CrossFindElementByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
message.SearchTagProjects = [];
|
||||
message.SearchTagUsers = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFindElementByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindElementByMatchQuery): CrossFindElementByMatchQuery {
|
||||
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 /* repeated api.BlockFilter BlockFilters */ 2:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.MatchElementField MatchElementField */ 3:
|
||||
message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField);
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 4:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 5:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
case /* repeated string SearchTagProjects */ 6:
|
||||
message.SearchTagProjects.push(reader.string());
|
||||
break;
|
||||
case /* repeated string SearchTagUsers */ 7:
|
||||
message.SearchTagUsers.push(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: CrossFindElementByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.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();
|
||||
/* api.MatchElementField MatchElementField = 3; */
|
||||
if (message.MatchElementField)
|
||||
MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 4; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 5; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
/* repeated string SearchTagProjects = 6; */
|
||||
for (let i = 0; i < message.SearchTagProjects.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 7; */
|
||||
for (let i = 0; i < message.SearchTagUsers.length; i++)
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CrossFindElementByMatchQuery
|
||||
*/
|
||||
export const CrossFindElementByMatchQuery = new CrossFindElementByMatchQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFindByMatchResult$Type extends MessageType<CrossFindByMatchResult> {
|
||||
constructor() {
|
||||
super("api.CrossFindByMatchResult", [
|
||||
{ no: 1, name: "MatchResults", kind: "message", localName: "MatchResults", jsonName: "MatchResults", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchFieldResult }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CrossFindByMatchResult>): CrossFindByMatchResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.MatchResults = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFindByMatchResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindByMatchResult): CrossFindByMatchResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.MatchFieldResult MatchResults */ 1:
|
||||
message.MatchResults.push(MatchFieldResult.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: CrossFindByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.MatchFieldResult MatchResults = 1; */
|
||||
for (let i = 0; i < message.MatchResults.length; i++)
|
||||
MatchFieldResult.internalBinaryWrite(message.MatchResults[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.CrossFindByMatchResult
|
||||
*/
|
||||
export const CrossFindByMatchResult = new CrossFindByMatchResult$Type();
|
||||
|
||||
@@ -84,7 +84,7 @@ export interface StockByFilterQuery {
|
||||
*/
|
||||
queryContext: string;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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 = 7
|
||||
*/
|
||||
@@ -137,7 +137,7 @@ export interface StockByMatchQuery {
|
||||
*/
|
||||
Header?: QueryProjectHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
|
||||
* 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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user