diff --git a/clickhouse.ts b/clickhouse.ts index a452952e..736c5da9 100644 --- a/clickhouse.ts +++ b/clickhouse.ts @@ -11,6 +11,7 @@ import type { PartialMessage } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { WorkflowExecutionResult } from "./shared"; +import { TimeFormat } from "./shared"; import { ExtractColumnFormat } from "./shared"; import { TranslationMap } from "./shared"; import { BlockFilter } from "./shared"; @@ -434,6 +435,18 @@ export interface ExtractKPIQuery { columnFormats: { [key: number]: ExtractColumnFormat; }; + /** + * @generated from protobuf field: string DateFormat = 20 [json_name = "DateFormat"]; + */ + dateFormat: string; + /** + * @generated from protobuf field: string NumberFormat = 21 [json_name = "NumberFormat"]; + */ + numberFormat: string; + /** + * @generated from protobuf field: api.TimeFormat TimeFormat = 22 [json_name = "TimeFormat"]; + */ + timeFormat: TimeFormat; } /** * @generated from protobuf message api.ExtractKPIResult @@ -1490,7 +1503,10 @@ class ExtractKPIQuery$Type extends MessageType { { no: 16, name: "ColumnNames", kind: "scalar", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 17, name: "ColumnTranslationMaps", kind: "map", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 18, name: "FieldIdxLVDetailedQuantity", kind: "scalar", jsonName: "FieldIdxLVDetailedQuantity", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, - { no: 19, name: "ColumnFormats", kind: "map", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } } + { no: 19, name: "ColumnFormats", kind: "map", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, + { no: 20, name: "DateFormat", kind: "scalar", jsonName: "DateFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format dates format", example: "\"en-US\"" } } }, + { no: 21, name: "NumberFormat", kind: "scalar", jsonName: "NumberFormat", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Language code to format numbers format", example: "\"en-US\"" } } }, + { no: 22, name: "TimeFormat", kind: "enum", jsonName: "TimeFormat", T: () => ["api.TimeFormat", TimeFormat], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Hour clock time format" } } } ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "UserId", "Fields", "ListSeparator", "DecimalSeparator", "ColumnName", "TargetDomain", "TargetType"] } } }); } create(value?: PartialMessage): ExtractKPIQuery { @@ -1512,6 +1528,9 @@ class ExtractKPIQuery$Type extends MessageType { message.columnTranslationMaps = {}; message.fieldIdxLVDetailedQuantity = []; message.columnFormats = {}; + message.dateFormat = ""; + message.numberFormat = ""; + message.timeFormat = 0; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -1582,6 +1601,15 @@ class ExtractKPIQuery$Type extends MessageType { case /* map ColumnFormats = 19 [json_name = "ColumnFormats"];*/ 19: this.binaryReadMap19(message.columnFormats, reader, options); break; + case /* string DateFormat = 20 [json_name = "DateFormat"];*/ 20: + message.dateFormat = reader.string(); + break; + case /* string NumberFormat = 21 [json_name = "NumberFormat"];*/ 21: + message.numberFormat = reader.string(); + break; + case /* api.TimeFormat TimeFormat = 22 [json_name = "TimeFormat"];*/ 22: + message.timeFormat = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -1695,6 +1723,15 @@ class ExtractKPIQuery$Type extends MessageType { ExtractColumnFormat.internalBinaryWrite(message.columnFormats[k as any], writer, options); writer.join().join(); } + /* string DateFormat = 20 [json_name = "DateFormat"]; */ + if (message.dateFormat !== "") + writer.tag(20, WireType.LengthDelimited).string(message.dateFormat); + /* string NumberFormat = 21 [json_name = "NumberFormat"]; */ + if (message.numberFormat !== "") + writer.tag(21, WireType.LengthDelimited).string(message.numberFormat); + /* api.TimeFormat TimeFormat = 22 [json_name = "TimeFormat"]; */ + if (message.timeFormat !== 0) + writer.tag(22, WireType.Varint).int32(message.timeFormat); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/package.json b/package.json index 48b49fe4..3b375947 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.10.0-SNAPSHOT-250403073253", + "version": "1.10.0-SNAPSHOT-250403131345", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/shared.ts b/shared.ts index 2dff8c8e..5c2ea251 100644 --- a/shared.ts +++ b/shared.ts @@ -1486,9 +1486,9 @@ export interface ExtractColumnFormat { */ format: string; /** - * @generated from protobuf field: bool Time = 3 [json_name = "Time"]; + * @generated from protobuf field: api.DisplayDate DisplayDate = 3 [json_name = "DisplayDate"]; */ - time: boolean; + displayDate: DisplayDate; } /** * @generated from protobuf enum api.ExtractColumnFormat.type @@ -2281,6 +2281,23 @@ export enum TimeFormat { */ H24 = 2 } +/** + * @generated from protobuf enum api.DisplayDate + */ +export enum DisplayDate { + /** + * @generated from protobuf enum value: DATE = 0; + */ + DATE = 0, + /** + * @generated from protobuf enum value: DATE_TIME = 1; + */ + DATE_TIME = 1, + /** + * @generated from protobuf enum value: TIME = 2; + */ + TIME = 2 +} /** * @generated from protobuf enum api.EntityAdminPlatform */ @@ -6457,14 +6474,14 @@ class ExtractColumnFormat$Type extends MessageType { super("api.ExtractColumnFormat", [ { no: 1, name: "Type", kind: "enum", jsonName: "Type", T: () => ["api.ExtractColumnFormat.type", ExtractColumnFormat_type] }, { no: 2, name: "Format", kind: "scalar", jsonName: "Format", T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "Time", kind: "scalar", jsonName: "Time", T: 8 /*ScalarType.BOOL*/ } + { no: 3, name: "DisplayDate", kind: "enum", jsonName: "DisplayDate", T: () => ["api.DisplayDate", DisplayDate] } ]); } create(value?: PartialMessage): ExtractColumnFormat { const message = globalThis.Object.create((this.messagePrototype!)); message.type = 0; message.format = ""; - message.time = false; + message.displayDate = 0; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -6480,8 +6497,8 @@ class ExtractColumnFormat$Type extends MessageType { case /* string Format = 2 [json_name = "Format"];*/ 2: message.format = reader.string(); break; - case /* bool Time = 3 [json_name = "Time"];*/ 3: - message.time = reader.bool(); + case /* api.DisplayDate DisplayDate = 3 [json_name = "DisplayDate"];*/ 3: + message.displayDate = reader.int32(); break; default: let u = options.readUnknownField; @@ -6501,9 +6518,9 @@ class ExtractColumnFormat$Type extends MessageType { /* string Format = 2 [json_name = "Format"]; */ if (message.format !== "") writer.tag(2, WireType.LengthDelimited).string(message.format); - /* bool Time = 3 [json_name = "Time"]; */ - if (message.time !== false) - writer.tag(3, WireType.Varint).bool(message.time); + /* api.DisplayDate DisplayDate = 3 [json_name = "DisplayDate"]; */ + if (message.displayDate !== 0) + writer.tag(3, WireType.Varint).int32(message.displayDate); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);