Latest generation

This commit is contained in:
ci core model
2025-05-23 14:37:28 +00:00
parent 44f6c1fa74
commit 4b635df68c
6 changed files with 651 additions and 61 deletions

View File

@@ -4,11 +4,11 @@
import { CountLinesResult } from "./shared";
import { CountLinesQuery } from "./shared";
import { GetKPIDataResult } from "./clickhouse";
import { GetKPIDataQuery } from "./clickhouse";
import { GetKPIDataSiteQuery } from "./clickhouse";
import { ExtractResult } from "./shared";
import { ExtractQuery } from "./shared";
import { ExtractSiteQuery } from "./shared";
import { ElementByMatchResult } from "./shared";
import { ElementByMatchQuery } from "./shared";
import { ElementByMatchSiteQuery } from "./shared";
import { ServiceType } from "@protobuf-ts/runtime-rpc";
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
@@ -25,7 +25,7 @@ import { BlockFilter } from "./shared";
import { Appointment } from "./appointment";
import { ResultHeader } from "./shared";
import { EntityID } from "./shared";
import { QueryProjectHeader } from "./shared";
import { QuerySiteHeader } from "./shared";
//
// Query-server services
@@ -34,9 +34,9 @@ import { QueryProjectHeader } from "./shared";
*/
export interface AppointmentByIdQuery {
/**
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.QuerySiteHeader Header = 1 [json_name = "Header"];
*/
Header?: QueryProjectHeader;
Header?: QuerySiteHeader;
/**
* @generated from protobuf field: repeated api.EntityID IDs = 2 [json_name = "IDs"];
*/
@@ -60,9 +60,9 @@ export interface AppointmentByIdResult {
*/
export interface AppointmentByFilterQuery {
/**
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.QuerySiteHeader Header = 1 [json_name = "Header"];
*/
Header?: QueryProjectHeader;
Header?: QuerySiteHeader;
/**
* Number of maximum result
*
@@ -102,9 +102,9 @@ export interface AppointmentByFilterResult {
*/
export interface AppointmentByMatchQuery {
/**
* @generated from protobuf field: api.QueryProjectHeader Header = 1 [json_name = "Header"];
* @generated from protobuf field: api.QuerySiteHeader Header = 1 [json_name = "Header"];
*/
Header?: QueryProjectHeader;
Header?: QuerySiteHeader;
/**
* 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
*
@@ -131,7 +131,7 @@ export interface AppointmentByMatchResult {
class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
constructor() {
super("api.AppointmentByIdQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "IDs", kind: "message", localName: "IDs", jsonName: "IDs", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EntityID, options: { "validate.rules": { repeated: { minItems: "1" } } } }
], { "api.messageType": "Query", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "IDs"] } } });
}
@@ -147,8 +147,8 @@ class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
case /* api.QuerySiteHeader Header = 1 [json_name = "Header"];*/ 1:
message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.EntityID IDs = 2 [json_name = "IDs"];*/ 2:
message.IDs.push(EntityID.internalBinaryRead(reader, reader.uint32(), options));
@@ -165,9 +165,9 @@ class AppointmentByIdQuery$Type extends MessageType<AppointmentByIdQuery> {
return message;
}
internalBinaryWrite(message: AppointmentByIdQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
/* api.QuerySiteHeader Header = 1 [json_name = "Header"]; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.EntityID IDs = 2 [json_name = "IDs"]; */
for (let i = 0; i < message.IDs.length; i++)
EntityID.internalBinaryWrite(message.IDs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -239,7 +239,7 @@ export const AppointmentByIdResult = new AppointmentByIdResult$Type();
class AppointmentByFilterQuery$Type extends MessageType<AppointmentByFilterQuery> {
constructor() {
super("api.AppointmentByFilterQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } },
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": {} } },
{ 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 }
@@ -259,8 +259,8 @@ class AppointmentByFilterQuery$Type extends MessageType<AppointmentByFilterQuery
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
case /* api.QuerySiteHeader Header = 1 [json_name = "Header"];*/ 1:
message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* string limitFilter */ 4:
message.limitFilter = reader.string();
@@ -283,9 +283,9 @@ class AppointmentByFilterQuery$Type extends MessageType<AppointmentByFilterQuery
return message;
}
internalBinaryWrite(message: AppointmentByFilterQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
/* api.QuerySiteHeader Header = 1 [json_name = "Header"]; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
QuerySiteHeader.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);
@@ -371,7 +371,7 @@ export const AppointmentByFilterResult = new AppointmentByFilterResult$Type();
class AppointmentByMatchQuery$Type extends MessageType<AppointmentByMatchQuery> {
constructor() {
super("api.AppointmentByMatchQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 6, 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" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
@@ -389,8 +389,8 @@ class AppointmentByMatchQuery$Type extends MessageType<AppointmentByMatchQuery>
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QueryProjectHeader Header = 1 [json_name = "Header"];*/ 1:
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
case /* api.QuerySiteHeader Header = 1 [json_name = "Header"];*/ 1:
message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"];*/ 5:
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
@@ -410,9 +410,9 @@ class AppointmentByMatchQuery$Type extends MessageType<AppointmentByMatchQuery>
return message;
}
internalBinaryWrite(message: AppointmentByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QueryProjectHeader Header = 1 [json_name = "Header"]; */
/* api.QuerySiteHeader Header = 1 [json_name = "Header"]; */
if (message.Header)
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* repeated api.BlockFilter BlockFilters = 5 [json_name = "BlockFilters"]; */
for (let i = 0; i < message.BlockFilters.length; i++)
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
@@ -480,11 +480,11 @@ export const AppointmentByMatchResult = new AppointmentByMatchResult$Type();
* @generated ServiceType for protobuf service api.AppointmentQuery
*/
export const AppointmentQuery = new ServiceType("api.AppointmentQuery", [
{ name: "GetByIds", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "appointment", "api.tableName": "appointmentById", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointments from Ids" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByIdQuery, O: AppointmentByIdResult },
{ name: "Find", options: { "api.customQuery": true, "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "appointment", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find Appointments using search criterias" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByFilterQuery, O: AppointmentByFilterResult },
{ name: "FindMatchingFieldValues", options: { "api.customQuery": true, "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment", "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 ...) " }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByMatchQuery, O: AppointmentByMatchResult },
{ name: "FindMatchingFieldElements", options: { "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment", "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 ...) " }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ElementByMatchQuery, O: ElementByMatchResult },
{ name: "Extract", options: { "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Schedule a data extraction" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractQuery, O: ExtractResult },
{ name: "GetKPIData", options: { "api.rscType": "Site", "api.roles": "", "api.moduleID": "appointment", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointment KPI data" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetKPIDataQuery, O: GetKPIDataResult },
{ name: "CountLines", options: { "api.rscType": "Platform", "api.roles": "Platform.Site-Query", "api.moduleID": "appointment", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Count lines in database for project" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CountLinesQuery, O: CountLinesResult }
{ name: "GetByIds", options: { "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "slobooking", "api.tableName": "appointmentById", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointments from Ids" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByIdQuery, O: AppointmentByIdResult },
{ name: "Find", options: { "api.customQuery": true, "api.rscType": "Site", "api.roles": "Platform.Site-Query", "api.moduleID": "slobooking", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Find Appointments using search criterias" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByFilterQuery, O: AppointmentByFilterResult },
{ name: "FindMatchingFieldValues", options: { "api.customQuery": true, "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "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 ...) " }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: AppointmentByMatchQuery, O: AppointmentByMatchResult },
{ name: "FindMatchingFieldElements", options: { "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "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 ...) " }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ElementByMatchSiteQuery, O: ElementByMatchResult },
{ name: "Extract", options: { "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Schedule a data extraction" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: ExtractSiteQuery, O: ExtractResult },
{ name: "GetKPIData", options: { "api.rscType": "Site", "api.roles": "", "api.moduleID": "slotbooking", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Get Appointment KPI data" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: GetKPIDataSiteQuery, O: GetKPIDataResult },
{ name: "CountLines", options: { "api.rscType": "Platform", "api.roles": "Platform.Site-Query", "api.moduleID": "slotbooking", "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Appointment Query"], description: "Count lines in database for project" }, "google.api.method_visibility": { restriction: "PUBLIC" } }, I: CountLinesQuery, O: CountLinesResult }
], { "api.serviceType": "Query", "api.k8sService": "collab-query-server" });