diff --git a/package.json b/package.json index b42a894e..48b49fe4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@reflex-platform/npm-core-sdk", - "version": "1.10.0-SNAPSHOT-250401095446", + "version": "1.10.0-SNAPSHOT-250403073253", "description": "npm libs from core model proto files", "homepage": "", "main": "index.ts", diff --git a/shared.ts b/shared.ts index e248386f..2dff8c8e 100644 --- a/shared.ts +++ b/shared.ts @@ -1485,6 +1485,10 @@ export interface ExtractColumnFormat { * @generated from protobuf field: string Format = 2 [json_name = "Format"]; */ format: string; + /** + * @generated from protobuf field: bool Time = 3 [json_name = "Time"]; + */ + time: boolean; } /** * @generated from protobuf enum api.ExtractColumnFormat.type @@ -1501,7 +1505,11 @@ export enum ExtractColumnFormat_type { /** * @generated from protobuf enum value: SUFFIX = 2; */ - SUFFIX = 2 + SUFFIX = 2, + /** + * @generated from protobuf enum value: NUMBER = 3; + */ + NUMBER = 3 } /** * @generated from protobuf message api.ExtractQuery @@ -1551,6 +1559,18 @@ export interface ExtractQuery { * @generated from protobuf field: string TargetTimeZone = 10 [json_name = "TargetTimeZone"]; */ targetTimeZone: string; + /** + * @generated from protobuf field: string DateFormat = 11 [json_name = "DateFormat"]; + */ + dateFormat: string; + /** + * @generated from protobuf field: string NumberFormat = 12 [json_name = "NumberFormat"]; + */ + numberFormat: string; + /** + * @generated from protobuf field: api.TimeFormat TimeFormat = 13 [json_name = "TimeFormat"]; + */ + timeFormat: TimeFormat; } /** * @generated from protobuf message api.ExtractResult @@ -2244,6 +2264,23 @@ export enum ClaimCriticality { */ BLOCKING = 40 } +/** + * @generated from protobuf enum api.TimeFormat + */ +export enum TimeFormat { + /** + * @generated from protobuf enum value: H12 = 0; + */ + H12 = 0, + /** + * @generated from protobuf enum value: H23 = 1; + */ + H23 = 1, + /** + * @generated from protobuf enum value: H24 = 2; + */ + H24 = 2 +} /** * @generated from protobuf enum api.EntityAdminPlatform */ @@ -6419,13 +6456,15 @@ class ExtractColumnFormat$Type extends MessageType { constructor() { 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*/, options: { "validate.rules": { string: { minLen: "1" } } } } + { no: 2, name: "Format", kind: "scalar", jsonName: "Format", T: 9 /*ScalarType.STRING*/ }, + { no: 3, name: "Time", kind: "scalar", jsonName: "Time", T: 8 /*ScalarType.BOOL*/ } ]); } create(value?: PartialMessage): ExtractColumnFormat { const message = globalThis.Object.create((this.messagePrototype!)); message.type = 0; message.format = ""; + message.time = false; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -6441,6 +6480,9 @@ 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(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -6459,6 +6501,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); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -6482,7 +6527,10 @@ class ExtractQuery$Type extends MessageType { { no: 7, name: "ColumnNames", kind: "scalar", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "ColumnTranslationMaps", kind: "map", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => TranslationMap } }, { no: 9, name: "ColumnFormats", kind: "map", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 10, name: "TargetTimeZone", kind: "scalar", 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 format", example: "\"Europe/Paris\"" } } } + { no: 10, name: "TargetTimeZone", kind: "scalar", 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 format", example: "\"Europe/Paris\"" } } }, + { no: 11, 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: 12, 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: 13, 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"] } } }); } create(value?: PartialMessage): ExtractQuery { @@ -6496,6 +6544,9 @@ class ExtractQuery$Type extends MessageType { message.columnTranslationMaps = {}; message.columnFormats = {}; message.targetTimeZone = ""; + message.dateFormat = ""; + message.numberFormat = ""; + message.timeFormat = 0; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -6535,6 +6586,15 @@ class ExtractQuery$Type extends MessageType { case /* string TargetTimeZone = 10 [json_name = "TargetTimeZone"];*/ 10: message.targetTimeZone = reader.string(); break; + case /* string DateFormat = 11 [json_name = "DateFormat"];*/ 11: + message.dateFormat = reader.string(); + break; + case /* string NumberFormat = 12 [json_name = "NumberFormat"];*/ 12: + message.numberFormat = reader.string(); + break; + case /* api.TimeFormat TimeFormat = 13 [json_name = "TimeFormat"];*/ 13: + message.timeFormat = reader.int32(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -6617,6 +6677,15 @@ class ExtractQuery$Type extends MessageType { /* string TargetTimeZone = 10 [json_name = "TargetTimeZone"]; */ if (message.targetTimeZone !== "") writer.tag(10, WireType.LengthDelimited).string(message.targetTimeZone); + /* string DateFormat = 11 [json_name = "DateFormat"]; */ + if (message.dateFormat !== "") + writer.tag(11, WireType.LengthDelimited).string(message.dateFormat); + /* string NumberFormat = 12 [json_name = "NumberFormat"]; */ + if (message.numberFormat !== "") + writer.tag(12, WireType.LengthDelimited).string(message.numberFormat); + /* api.TimeFormat TimeFormat = 13 [json_name = "TimeFormat"]; */ + if (message.timeFormat !== 0) + writer.tag(13, WireType.Varint).int32(message.timeFormat); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/workflow.ts b/workflow.ts index e478c107..295ba30c 100644 --- a/workflow.ts +++ b/workflow.ts @@ -23,6 +23,7 @@ import { CHDimension } from "./clickhouse"; import { CHFilter } from "./clickhouse"; import { EntityBlockFilter } from "./clickhouse"; import { CHQueryType } from "./clickhouse"; +import { TimeFormat } from "./shared"; import { ExtractColumnFormat } from "./shared"; import { TranslationMap } from "./shared"; import { BlockFilter } from "./shared"; @@ -280,6 +281,18 @@ export interface StartWorkflowExtractDataFromDBRequest { * @generated from protobuf field: string TargetTimeZone = 12 [json_name = "TargetTimeZone"]; */ targetTimeZone: string; + /** + * @generated from protobuf field: string DateFormat = 13 [json_name = "DateFormat"]; + */ + dateFormat: string; + /** + * @generated from protobuf field: string NumberFormat = 14 [json_name = "NumberFormat"]; + */ + numberFormat: string; + /** + * @generated from protobuf field: api.TimeFormat TimeFormat = 15 [json_name = "TimeFormat"]; + */ + timeFormat: TimeFormat; } /** * @generated from protobuf message api.StartWorkflowExtractDataFromDBResult @@ -1643,7 +1656,10 @@ class StartWorkflowExtractDataFromDBRequest$Type extends MessageType TranslationMap } }, { no: 11, name: "ColumnFormats", kind: "map", jsonName: "ColumnFormats", K: 5 /*ScalarType.INT32*/, V: { kind: "message", T: () => ExtractColumnFormat } }, - { no: 12, name: "TargetTimeZone", kind: "scalar", 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 format", example: "\"Europe/Paris\"" } } } + { no: 12, name: "TargetTimeZone", kind: "scalar", 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 format", example: "\"Europe/Paris\"" } } }, + { no: 13, 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: 14, 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: 15, 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: ["UserId", "ProjectId", "TargetDomain", "TargetType", "Fields", "ListSeparator", "DecimalSeparator"] } } }); } create(value?: PartialMessage): StartWorkflowExtractDataFromDBRequest { @@ -1660,6 +1676,9 @@ class StartWorkflowExtractDataFromDBRequest$Type extends MessageType(this, message, value); return message; @@ -1705,6 +1724,15 @@ class StartWorkflowExtractDataFromDBRequest$Type extends MessageType