Latest generation

This commit is contained in:
ci core model
2025-10-03 14:29:18 +00:00
parent 49115fd1f1
commit 97566d4520
35 changed files with 1176 additions and 7397 deletions

View File

@@ -15,7 +15,6 @@ import { TimeFormat } from "./shared";
import { ExtractColumnFormat } from "./shared";
import { TranslationMap } from "./shared";
import { BlockFilter } from "./shared";
import { QuerySiteHeader } from "./shared";
import { QueryProjectHeader } from "./shared";
import { StringDateObject } from "./shared";
/**
@@ -209,51 +208,6 @@ export interface GetKPIDataQuery {
*/
KpiGroupName: string;
}
/**
* @generated from protobuf message api.GetKPIDataSiteQuery
*/
export interface GetKPIDataSiteQuery {
/**
* @generated from protobuf field: api.QuerySiteHeader Header = 1
*/
Header?: QuerySiteHeader;
/**
* @generated from protobuf field: api.CHChartType ChartType = 2
*/
ChartType: CHChartType;
/**
* @generated from protobuf field: api.CHQueryType QueryType = 3
*/
QueryType: CHQueryType;
/**
* @generated from protobuf field: string QueryBlock = 4
*/
QueryBlock: string;
/**
* @generated from protobuf field: repeated api.CHDimension Dimensions = 5
*/
Dimensions: CHDimension[];
/**
* @generated from protobuf field: repeated api.CHMetric Metrics = 6
*/
Metrics: CHMetric[];
/**
* @generated from protobuf field: api.CHFilter Filter = 7
*/
Filter?: CHFilter;
/**
* @generated from protobuf field: string TargetTimeZone = 8
*/
TargetTimeZone: string;
/**
* @generated from protobuf field: api.KpiDataResultFormat ResultFormat = 9
*/
ResultFormat: KpiDataResultFormat;
/**
* @generated from protobuf field: string KpiGroupName = 10
*/
KpiGroupName: string;
}
/**
* @generated from protobuf message api.GetKPIDataForUserQuery
*/
@@ -1120,123 +1074,6 @@ class GetKPIDataQuery$Type extends MessageType<GetKPIDataQuery> {
*/
export const GetKPIDataQuery = new GetKPIDataQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetKPIDataSiteQuery$Type extends MessageType<GetKPIDataSiteQuery> {
constructor() {
super("api.GetKPIDataSiteQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QuerySiteHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "ChartType", kind: "enum", localName: "ChartType", jsonName: "ChartType", T: () => ["api.CHChartType", CHChartType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 3, name: "QueryType", kind: "enum", localName: "QueryType", jsonName: "QueryType", T: () => ["api.CHQueryType", CHQueryType], options: { "validate.rules": { enum: { definedOnly: true } } } },
{ no: 4, name: "QueryBlock", kind: "scalar", localName: "QueryBlock", jsonName: "QueryBlock", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } } } },
{ no: 5, name: "Dimensions", kind: "message", localName: "Dimensions", jsonName: "Dimensions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHDimension },
{ no: 6, name: "Metrics", kind: "message", localName: "Metrics", jsonName: "Metrics", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CHMetric },
{ no: 7, name: "Filter", kind: "message", localName: "Filter", jsonName: "Filter", T: () => CHFilter },
{ no: 8, name: "TargetTimeZone", kind: "scalar", localName: "TargetTimeZone", jsonName: "TargetTimeZone", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", tzData: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Target user time zone <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", example: "\"Europe/Paris\"" } } },
{ no: 9, name: "ResultFormat", kind: "enum", localName: "ResultFormat", jsonName: "ResultFormat", T: () => ["api.KpiDataResultFormat", KpiDataResultFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Result format selection", example: "\"KPIDATA_RESULT_FORMAT_SERIES\"" } } },
{ no: 10, name: "KpiGroupName", kind: "scalar", localName: "KpiGroupName", jsonName: "KpiGroupName", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { in: ["executionflow", "stock", "movement", "handlingunit", "actor", "item", "stock_extended", "claim"] } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the analysis criterion to get the kpi data from", example: "\"executionflow\"" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ChartType", "QueryType", "QueryBlock", "Metrics", "KpiGroupName"] } } });
}
create(value?: PartialMessage<GetKPIDataSiteQuery>): GetKPIDataSiteQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.ChartType = 0;
message.QueryType = 0;
message.QueryBlock = "";
message.Dimensions = [];
message.Metrics = [];
message.TargetTimeZone = "";
message.ResultFormat = 0;
message.KpiGroupName = "";
if (value !== undefined)
reflectionMergePartial<GetKPIDataSiteQuery>(this, message, value);
return message;
}
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetKPIDataSiteQuery): GetKPIDataSiteQuery {
let message = target ?? this.create(), end = reader.pos + length;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* api.QuerySiteHeader Header */ 1:
message.Header = QuerySiteHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
break;
case /* api.CHChartType ChartType */ 2:
message.ChartType = reader.int32();
break;
case /* api.CHQueryType QueryType */ 3:
message.QueryType = reader.int32();
break;
case /* string QueryBlock */ 4:
message.QueryBlock = reader.string();
break;
case /* repeated api.CHDimension Dimensions */ 5:
message.Dimensions.push(CHDimension.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* repeated api.CHMetric Metrics */ 6:
message.Metrics.push(CHMetric.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.CHFilter Filter */ 7:
message.Filter = CHFilter.internalBinaryRead(reader, reader.uint32(), options, message.Filter);
break;
case /* string TargetTimeZone */ 8:
message.TargetTimeZone = reader.string();
break;
case /* api.KpiDataResultFormat ResultFormat */ 9:
message.ResultFormat = reader.int32();
break;
case /* string KpiGroupName */ 10:
message.KpiGroupName = 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: GetKPIDataSiteQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* api.QuerySiteHeader Header = 1; */
if (message.Header)
QuerySiteHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* api.CHChartType ChartType = 2; */
if (message.ChartType !== 0)
writer.tag(2, WireType.Varint).int32(message.ChartType);
/* api.CHQueryType QueryType = 3; */
if (message.QueryType !== 0)
writer.tag(3, WireType.Varint).int32(message.QueryType);
/* string QueryBlock = 4; */
if (message.QueryBlock !== "")
writer.tag(4, WireType.LengthDelimited).string(message.QueryBlock);
/* repeated api.CHDimension Dimensions = 5; */
for (let i = 0; i < message.Dimensions.length; i++)
CHDimension.internalBinaryWrite(message.Dimensions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated api.CHMetric Metrics = 6; */
for (let i = 0; i < message.Metrics.length; i++)
CHMetric.internalBinaryWrite(message.Metrics[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* api.CHFilter Filter = 7; */
if (message.Filter)
CHFilter.internalBinaryWrite(message.Filter, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
/* string TargetTimeZone = 8; */
if (message.TargetTimeZone !== "")
writer.tag(8, WireType.LengthDelimited).string(message.TargetTimeZone);
/* api.KpiDataResultFormat ResultFormat = 9; */
if (message.ResultFormat !== 0)
writer.tag(9, WireType.Varint).int32(message.ResultFormat);
/* string KpiGroupName = 10; */
if (message.KpiGroupName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.KpiGroupName);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
return writer;
}
}
/**
* @generated MessageType for protobuf message api.GetKPIDataSiteQuery
*/
export const GetKPIDataSiteQuery = new GetKPIDataSiteQuery$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetKPIDataForUserQuery$Type extends MessageType<GetKPIDataForUserQuery> {
constructor() {
super("api.GetKPIDataForUserQuery", [