You've already forked npm-core-sdk
Latest generation
This commit is contained in:
39
workflow.ts
39
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<StartWorkfl
|
||||
{ no: 8, name: "ColumnNames", kind: "scalar", jsonName: "ColumnNames", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 10, name: "ColumnTranslationMaps", kind: "map", jsonName: "ColumnTranslationMaps", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => 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 <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", 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 <a href='https://en.wikipedia.org/wiki/List_of_tz_database_time_zones'>format</a>", 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 <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", 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 <a href='https://en.wikipedia.org/wiki/ISO_639'>format</a>", 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>): StartWorkflowExtractDataFromDBRequest {
|
||||
@@ -1660,6 +1676,9 @@ class StartWorkflowExtractDataFromDBRequest$Type extends MessageType<StartWorkfl
|
||||
message.columnTranslationMaps = {};
|
||||
message.columnFormats = {};
|
||||
message.targetTimeZone = "";
|
||||
message.dateFormat = "";
|
||||
message.numberFormat = "";
|
||||
message.timeFormat = 0;
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<StartWorkflowExtractDataFromDBRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -1705,6 +1724,15 @@ class StartWorkflowExtractDataFromDBRequest$Type extends MessageType<StartWorkfl
|
||||
case /* string TargetTimeZone = 12 [json_name = "TargetTimeZone"];*/ 12:
|
||||
message.targetTimeZone = reader.string();
|
||||
break;
|
||||
case /* string DateFormat = 13 [json_name = "DateFormat"];*/ 13:
|
||||
message.dateFormat = reader.string();
|
||||
break;
|
||||
case /* string NumberFormat = 14 [json_name = "NumberFormat"];*/ 14:
|
||||
message.numberFormat = reader.string();
|
||||
break;
|
||||
case /* api.TimeFormat TimeFormat = 15 [json_name = "TimeFormat"];*/ 15:
|
||||
message.timeFormat = reader.int32();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -1793,6 +1821,15 @@ class StartWorkflowExtractDataFromDBRequest$Type extends MessageType<StartWorkfl
|
||||
/* string TargetTimeZone = 12 [json_name = "TargetTimeZone"]; */
|
||||
if (message.targetTimeZone !== "")
|
||||
writer.tag(12, WireType.LengthDelimited).string(message.targetTimeZone);
|
||||
/* string DateFormat = 13 [json_name = "DateFormat"]; */
|
||||
if (message.dateFormat !== "")
|
||||
writer.tag(13, WireType.LengthDelimited).string(message.dateFormat);
|
||||
/* string NumberFormat = 14 [json_name = "NumberFormat"]; */
|
||||
if (message.numberFormat !== "")
|
||||
writer.tag(14, WireType.LengthDelimited).string(message.numberFormat);
|
||||
/* api.TimeFormat TimeFormat = 15 [json_name = "TimeFormat"]; */
|
||||
if (message.timeFormat !== 0)
|
||||
writer.tag(15, WireType.Varint).int32(message.timeFormat);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user