You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user