@514labs/moose-lib 0.6.321-ci-5-ga23d35fe → 0.6.322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browserCompatible-BVw4gSAN.d.mts +184 -0
- package/dist/browserCompatible-rK8ei0bt.d.ts +184 -0
- package/dist/browserCompatible.d.mts +3 -7
- package/dist/browserCompatible.d.ts +3 -7
- package/dist/browserCompatible.js +180 -197
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +180 -196
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs.map +1 -1
- package/dist/dataModels/toDataModels.js.map +1 -1
- package/dist/dataModels/toDataModels.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +1 -2
- package/dist/dmv2/index.d.ts +1 -2
- package/dist/dmv2/index.js +24 -41
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +24 -40
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-Aq9KzsRd.d.mts → index-C4miZc-A.d.mts} +33 -181
- package/dist/{index-Aq9KzsRd.d.ts → index-C4miZc-A.d.ts} +33 -181
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +202 -176
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +199 -176
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +257 -88
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +258 -89
- package/dist/moose-runner.mjs.map +1 -1
- package/dist/scripts/workflow.js +11 -9
- package/dist/scripts/workflow.js.map +1 -1
- package/dist/scripts/workflow.mjs +11 -9
- package/dist/scripts/workflow.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import './index-C4miZc-A.mjs';
|
|
2
|
+
import { Pattern, TagBase } from 'typia/lib/tags';
|
|
3
|
+
import { tags } from 'typia';
|
|
4
|
+
|
|
5
|
+
type ClickHousePrecision<P extends number> = {
|
|
6
|
+
_clickhouse_precision?: P;
|
|
7
|
+
};
|
|
8
|
+
declare const DecimalRegex: "^-?\\d+(\\.\\d+)?$";
|
|
9
|
+
type ClickHouseDecimal<P extends number, S extends number> = {
|
|
10
|
+
_clickhouse_precision?: P;
|
|
11
|
+
_clickhouse_scale?: S;
|
|
12
|
+
} & Pattern<typeof DecimalRegex>;
|
|
13
|
+
type ClickHouseFixedStringSize<N extends number> = {
|
|
14
|
+
_clickhouse_fixed_string_size?: N;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* FixedString(N) - Fixed-length string of exactly N bytes.
|
|
18
|
+
*
|
|
19
|
+
* ClickHouse stores exactly N bytes, padding shorter values with null bytes.
|
|
20
|
+
* Values exceeding N bytes will throw an exception.
|
|
21
|
+
*
|
|
22
|
+
* Use for binary data: hashes, IP addresses, UUIDs, MAC addresses.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* interface BinaryData {
|
|
26
|
+
* md5_hash: string & FixedString<16>; // 16-byte MD5
|
|
27
|
+
* sha256_hash: string & FixedString<32>; // 32-byte SHA256
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
30
|
+
type FixedString<N extends number> = string & ClickHouseFixedStringSize<N>;
|
|
31
|
+
type ClickHouseByteSize<N extends number> = {
|
|
32
|
+
_clickhouse_byte_size?: N;
|
|
33
|
+
};
|
|
34
|
+
type LowCardinality = {
|
|
35
|
+
_LowCardinality?: true;
|
|
36
|
+
};
|
|
37
|
+
type DateTime = Date;
|
|
38
|
+
type DateTime64<P extends number> = Date & ClickHousePrecision<P>;
|
|
39
|
+
type DateTimeString = string & tags.Format<"date-time">;
|
|
40
|
+
/**
|
|
41
|
+
* JS Date objects cannot hold microsecond precision.
|
|
42
|
+
* Use string as the runtime type to avoid losing information.
|
|
43
|
+
*/
|
|
44
|
+
type DateTime64String<P extends number> = string & tags.Format<"date-time"> & ClickHousePrecision<P>;
|
|
45
|
+
type Float32 = number & ClickHouseFloat<"float32">;
|
|
46
|
+
type Float64 = number & ClickHouseFloat<"float64">;
|
|
47
|
+
type Int8 = number & ClickHouseInt<"int8">;
|
|
48
|
+
type Int16 = number & ClickHouseInt<"int16">;
|
|
49
|
+
type Int32 = number & ClickHouseInt<"int32">;
|
|
50
|
+
type Int64 = number & ClickHouseInt<"int64">;
|
|
51
|
+
type UInt8 = number & ClickHouseInt<"uint8">;
|
|
52
|
+
type UInt16 = number & ClickHouseInt<"uint16">;
|
|
53
|
+
type UInt32 = number & ClickHouseInt<"uint32">;
|
|
54
|
+
type UInt64 = number & ClickHouseInt<"uint64">;
|
|
55
|
+
type Decimal<P extends number, S extends number> = string & ClickHouseDecimal<P, S>;
|
|
56
|
+
/**
|
|
57
|
+
* Attach compression codec to a column type.
|
|
58
|
+
*
|
|
59
|
+
* Any valid ClickHouse codec expression is allowed. ClickHouse validates the codec at runtime.
|
|
60
|
+
*
|
|
61
|
+
* @template T The base data type
|
|
62
|
+
* @template CodecExpr The codec expression (single codec or chain)
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* interface Metrics {
|
|
66
|
+
* // Single codec
|
|
67
|
+
* log_blob: string & ClickHouseCodec<"ZSTD(3)">;
|
|
68
|
+
*
|
|
69
|
+
* // Codec chain (processed left-to-right)
|
|
70
|
+
* timestamp: Date & ClickHouseCodec<"Delta, LZ4">;
|
|
71
|
+
* temperature: number & ClickHouseCodec<"Gorilla, ZSTD">;
|
|
72
|
+
*
|
|
73
|
+
* // Specialized codecs
|
|
74
|
+
* counter: number & ClickHouseCodec<"DoubleDelta">;
|
|
75
|
+
*
|
|
76
|
+
* // Can combine with other annotations
|
|
77
|
+
* count: UInt64 & ClickHouseCodec<"DoubleDelta, LZ4">;
|
|
78
|
+
* }
|
|
79
|
+
*/
|
|
80
|
+
type ClickHouseCodec<CodecExpr extends string> = {
|
|
81
|
+
_clickhouse_codec?: CodecExpr;
|
|
82
|
+
};
|
|
83
|
+
type ClickHouseFloat<Value extends "float32" | "float64"> = tags.Type<Value extends "float32" ? "float" : "double">;
|
|
84
|
+
type ClickHouseInt<Value extends "int8" | "int16" | "int32" | "int64" | "uint8" | "uint16" | "uint32" | "uint64"> = Value extends "int32" | "int64" | "uint32" | "uint64" ? tags.Type<Value> : TagBase<{
|
|
85
|
+
target: "number";
|
|
86
|
+
kind: "type";
|
|
87
|
+
value: Value;
|
|
88
|
+
validate: Value extends "int8" ? "-128 <= $input && $input <= 127" : Value extends "int16" ? "-32768 <= $input && $input <= 32767" : Value extends "uint8" ? "0 <= $input && $input <= 255" : Value extends "uint16" ? "0 <= $input && $input <= 65535" : never;
|
|
89
|
+
exclusive: true;
|
|
90
|
+
schema: {
|
|
91
|
+
type: "integer";
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* By default, nested objects map to the `Nested` type in clickhouse.
|
|
96
|
+
* Write `nestedObject: AnotherInterfaceType & ClickHouseNamedTuple`
|
|
97
|
+
* to map AnotherInterfaceType to the named tuple type.
|
|
98
|
+
*/
|
|
99
|
+
type ClickHouseNamedTuple = {
|
|
100
|
+
_clickhouse_mapped_type?: "namedTuple";
|
|
101
|
+
};
|
|
102
|
+
type ClickHouseJson<maxDynamicPaths extends number | undefined = undefined, maxDynamicTypes extends number | undefined = undefined, skipPaths extends string[] = [], skipRegexes extends string[] = []> = {
|
|
103
|
+
_clickhouse_mapped_type?: "JSON";
|
|
104
|
+
_clickhouse_json_settings?: {
|
|
105
|
+
maxDynamicPaths?: maxDynamicPaths;
|
|
106
|
+
maxDynamicTypes?: maxDynamicTypes;
|
|
107
|
+
skipPaths?: skipPaths;
|
|
108
|
+
skipRegexes?: skipRegexes;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
type ClickHousePoint = [number, number] & {
|
|
112
|
+
_clickhouse_mapped_type?: "Point";
|
|
113
|
+
};
|
|
114
|
+
type ClickHouseRing = ClickHousePoint[] & {
|
|
115
|
+
_clickhouse_mapped_type?: "Ring";
|
|
116
|
+
};
|
|
117
|
+
type ClickHouseLineString = ClickHousePoint[] & {
|
|
118
|
+
_clickhouse_mapped_type?: "LineString";
|
|
119
|
+
};
|
|
120
|
+
type ClickHouseMultiLineString = ClickHouseLineString[] & {
|
|
121
|
+
_clickhouse_mapped_type?: "MultiLineString";
|
|
122
|
+
};
|
|
123
|
+
type ClickHousePolygon = ClickHouseRing[] & {
|
|
124
|
+
_clickhouse_mapped_type?: "Polygon";
|
|
125
|
+
};
|
|
126
|
+
type ClickHouseMultiPolygon = ClickHousePolygon[] & {
|
|
127
|
+
_clickhouse_mapped_type?: "MultiPolygon";
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* typia may have trouble handling this type.
|
|
131
|
+
* In which case, use {@link WithDefault} as a workaround
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* { field: number & ClickHouseDefault<"0"> }
|
|
135
|
+
*/
|
|
136
|
+
type ClickHouseDefault<SqlExpression extends string> = {
|
|
137
|
+
_clickhouse_default?: SqlExpression;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* @example
|
|
141
|
+
* {
|
|
142
|
+
* ...
|
|
143
|
+
* timestamp: Date;
|
|
144
|
+
* debugMessage: string & ClickHouseTTL<"timestamp + INTERVAL 1 WEEK">;
|
|
145
|
+
* }
|
|
146
|
+
*/
|
|
147
|
+
type ClickHouseTTL<SqlExpression extends string> = {
|
|
148
|
+
_clickhouse_ttl?: SqlExpression;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* ClickHouse MATERIALIZED column annotation.
|
|
152
|
+
* The column value is computed at INSERT time and physically stored.
|
|
153
|
+
* Cannot be explicitly inserted by users.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* interface Events {
|
|
157
|
+
* eventTime: DateTime;
|
|
158
|
+
* // Extract date component - computed and stored at insert time
|
|
159
|
+
* eventDate: Date & ClickHouseMaterialized<"toDate(event_time)">;
|
|
160
|
+
*
|
|
161
|
+
* userId: string;
|
|
162
|
+
* // Precompute hash for fast lookups
|
|
163
|
+
* userHash: UInt64 & ClickHouseMaterialized<"cityHash64(userId)">;
|
|
164
|
+
* }
|
|
165
|
+
*
|
|
166
|
+
* @remarks
|
|
167
|
+
* - MATERIALIZED and DEFAULT are mutually exclusive
|
|
168
|
+
* - Can be combined with ClickHouseCodec for compression
|
|
169
|
+
* - Changing the expression modifies the column in-place (existing values preserved)
|
|
170
|
+
*/
|
|
171
|
+
type ClickHouseMaterialized<SqlExpression extends string> = {
|
|
172
|
+
_clickhouse_materialized?: SqlExpression;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* See also {@link ClickHouseDefault}
|
|
176
|
+
*
|
|
177
|
+
* @example{ updated_at: WithDefault<Date, "now()"> }
|
|
178
|
+
*/
|
|
179
|
+
type WithDefault<T, _SqlExpression extends string> = T;
|
|
180
|
+
|
|
181
|
+
type Key<T extends string | number | Date> = T;
|
|
182
|
+
type JWT<T extends object> = T;
|
|
183
|
+
|
|
184
|
+
export type { UInt32 as A, UInt64 as B, ClickHouseByteSize as C, DateTime as D, Decimal as E, FixedString as F, Int8 as I, JWT as J, Key as K, LowCardinality as L, UInt8 as U, WithDefault as W, ClickHouseInt as a, ClickHouseNamedTuple as b, ClickHousePoint as c, ClickHouseRing as d, ClickHouseLineString as e, ClickHouseMultiLineString as f, ClickHousePolygon as g, ClickHouseMultiPolygon as h, ClickHousePrecision as i, ClickHouseDecimal as j, ClickHouseFixedStringSize as k, ClickHouseFloat as l, ClickHouseJson as m, ClickHouseDefault as n, ClickHouseTTL as o, ClickHouseMaterialized as p, ClickHouseCodec as q, DateTime64 as r, DateTimeString as s, DateTime64String as t, Float32 as u, Float64 as v, Int16 as w, Int32 as x, Int64 as y, UInt16 as z };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import './index-C4miZc-A.js';
|
|
2
|
+
import { Pattern, TagBase } from 'typia/lib/tags';
|
|
3
|
+
import { tags } from 'typia';
|
|
4
|
+
|
|
5
|
+
type ClickHousePrecision<P extends number> = {
|
|
6
|
+
_clickhouse_precision?: P;
|
|
7
|
+
};
|
|
8
|
+
declare const DecimalRegex: "^-?\\d+(\\.\\d+)?$";
|
|
9
|
+
type ClickHouseDecimal<P extends number, S extends number> = {
|
|
10
|
+
_clickhouse_precision?: P;
|
|
11
|
+
_clickhouse_scale?: S;
|
|
12
|
+
} & Pattern<typeof DecimalRegex>;
|
|
13
|
+
type ClickHouseFixedStringSize<N extends number> = {
|
|
14
|
+
_clickhouse_fixed_string_size?: N;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* FixedString(N) - Fixed-length string of exactly N bytes.
|
|
18
|
+
*
|
|
19
|
+
* ClickHouse stores exactly N bytes, padding shorter values with null bytes.
|
|
20
|
+
* Values exceeding N bytes will throw an exception.
|
|
21
|
+
*
|
|
22
|
+
* Use for binary data: hashes, IP addresses, UUIDs, MAC addresses.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* interface BinaryData {
|
|
26
|
+
* md5_hash: string & FixedString<16>; // 16-byte MD5
|
|
27
|
+
* sha256_hash: string & FixedString<32>; // 32-byte SHA256
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
30
|
+
type FixedString<N extends number> = string & ClickHouseFixedStringSize<N>;
|
|
31
|
+
type ClickHouseByteSize<N extends number> = {
|
|
32
|
+
_clickhouse_byte_size?: N;
|
|
33
|
+
};
|
|
34
|
+
type LowCardinality = {
|
|
35
|
+
_LowCardinality?: true;
|
|
36
|
+
};
|
|
37
|
+
type DateTime = Date;
|
|
38
|
+
type DateTime64<P extends number> = Date & ClickHousePrecision<P>;
|
|
39
|
+
type DateTimeString = string & tags.Format<"date-time">;
|
|
40
|
+
/**
|
|
41
|
+
* JS Date objects cannot hold microsecond precision.
|
|
42
|
+
* Use string as the runtime type to avoid losing information.
|
|
43
|
+
*/
|
|
44
|
+
type DateTime64String<P extends number> = string & tags.Format<"date-time"> & ClickHousePrecision<P>;
|
|
45
|
+
type Float32 = number & ClickHouseFloat<"float32">;
|
|
46
|
+
type Float64 = number & ClickHouseFloat<"float64">;
|
|
47
|
+
type Int8 = number & ClickHouseInt<"int8">;
|
|
48
|
+
type Int16 = number & ClickHouseInt<"int16">;
|
|
49
|
+
type Int32 = number & ClickHouseInt<"int32">;
|
|
50
|
+
type Int64 = number & ClickHouseInt<"int64">;
|
|
51
|
+
type UInt8 = number & ClickHouseInt<"uint8">;
|
|
52
|
+
type UInt16 = number & ClickHouseInt<"uint16">;
|
|
53
|
+
type UInt32 = number & ClickHouseInt<"uint32">;
|
|
54
|
+
type UInt64 = number & ClickHouseInt<"uint64">;
|
|
55
|
+
type Decimal<P extends number, S extends number> = string & ClickHouseDecimal<P, S>;
|
|
56
|
+
/**
|
|
57
|
+
* Attach compression codec to a column type.
|
|
58
|
+
*
|
|
59
|
+
* Any valid ClickHouse codec expression is allowed. ClickHouse validates the codec at runtime.
|
|
60
|
+
*
|
|
61
|
+
* @template T The base data type
|
|
62
|
+
* @template CodecExpr The codec expression (single codec or chain)
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* interface Metrics {
|
|
66
|
+
* // Single codec
|
|
67
|
+
* log_blob: string & ClickHouseCodec<"ZSTD(3)">;
|
|
68
|
+
*
|
|
69
|
+
* // Codec chain (processed left-to-right)
|
|
70
|
+
* timestamp: Date & ClickHouseCodec<"Delta, LZ4">;
|
|
71
|
+
* temperature: number & ClickHouseCodec<"Gorilla, ZSTD">;
|
|
72
|
+
*
|
|
73
|
+
* // Specialized codecs
|
|
74
|
+
* counter: number & ClickHouseCodec<"DoubleDelta">;
|
|
75
|
+
*
|
|
76
|
+
* // Can combine with other annotations
|
|
77
|
+
* count: UInt64 & ClickHouseCodec<"DoubleDelta, LZ4">;
|
|
78
|
+
* }
|
|
79
|
+
*/
|
|
80
|
+
type ClickHouseCodec<CodecExpr extends string> = {
|
|
81
|
+
_clickhouse_codec?: CodecExpr;
|
|
82
|
+
};
|
|
83
|
+
type ClickHouseFloat<Value extends "float32" | "float64"> = tags.Type<Value extends "float32" ? "float" : "double">;
|
|
84
|
+
type ClickHouseInt<Value extends "int8" | "int16" | "int32" | "int64" | "uint8" | "uint16" | "uint32" | "uint64"> = Value extends "int32" | "int64" | "uint32" | "uint64" ? tags.Type<Value> : TagBase<{
|
|
85
|
+
target: "number";
|
|
86
|
+
kind: "type";
|
|
87
|
+
value: Value;
|
|
88
|
+
validate: Value extends "int8" ? "-128 <= $input && $input <= 127" : Value extends "int16" ? "-32768 <= $input && $input <= 32767" : Value extends "uint8" ? "0 <= $input && $input <= 255" : Value extends "uint16" ? "0 <= $input && $input <= 65535" : never;
|
|
89
|
+
exclusive: true;
|
|
90
|
+
schema: {
|
|
91
|
+
type: "integer";
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* By default, nested objects map to the `Nested` type in clickhouse.
|
|
96
|
+
* Write `nestedObject: AnotherInterfaceType & ClickHouseNamedTuple`
|
|
97
|
+
* to map AnotherInterfaceType to the named tuple type.
|
|
98
|
+
*/
|
|
99
|
+
type ClickHouseNamedTuple = {
|
|
100
|
+
_clickhouse_mapped_type?: "namedTuple";
|
|
101
|
+
};
|
|
102
|
+
type ClickHouseJson<maxDynamicPaths extends number | undefined = undefined, maxDynamicTypes extends number | undefined = undefined, skipPaths extends string[] = [], skipRegexes extends string[] = []> = {
|
|
103
|
+
_clickhouse_mapped_type?: "JSON";
|
|
104
|
+
_clickhouse_json_settings?: {
|
|
105
|
+
maxDynamicPaths?: maxDynamicPaths;
|
|
106
|
+
maxDynamicTypes?: maxDynamicTypes;
|
|
107
|
+
skipPaths?: skipPaths;
|
|
108
|
+
skipRegexes?: skipRegexes;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
type ClickHousePoint = [number, number] & {
|
|
112
|
+
_clickhouse_mapped_type?: "Point";
|
|
113
|
+
};
|
|
114
|
+
type ClickHouseRing = ClickHousePoint[] & {
|
|
115
|
+
_clickhouse_mapped_type?: "Ring";
|
|
116
|
+
};
|
|
117
|
+
type ClickHouseLineString = ClickHousePoint[] & {
|
|
118
|
+
_clickhouse_mapped_type?: "LineString";
|
|
119
|
+
};
|
|
120
|
+
type ClickHouseMultiLineString = ClickHouseLineString[] & {
|
|
121
|
+
_clickhouse_mapped_type?: "MultiLineString";
|
|
122
|
+
};
|
|
123
|
+
type ClickHousePolygon = ClickHouseRing[] & {
|
|
124
|
+
_clickhouse_mapped_type?: "Polygon";
|
|
125
|
+
};
|
|
126
|
+
type ClickHouseMultiPolygon = ClickHousePolygon[] & {
|
|
127
|
+
_clickhouse_mapped_type?: "MultiPolygon";
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* typia may have trouble handling this type.
|
|
131
|
+
* In which case, use {@link WithDefault} as a workaround
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* { field: number & ClickHouseDefault<"0"> }
|
|
135
|
+
*/
|
|
136
|
+
type ClickHouseDefault<SqlExpression extends string> = {
|
|
137
|
+
_clickhouse_default?: SqlExpression;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* @example
|
|
141
|
+
* {
|
|
142
|
+
* ...
|
|
143
|
+
* timestamp: Date;
|
|
144
|
+
* debugMessage: string & ClickHouseTTL<"timestamp + INTERVAL 1 WEEK">;
|
|
145
|
+
* }
|
|
146
|
+
*/
|
|
147
|
+
type ClickHouseTTL<SqlExpression extends string> = {
|
|
148
|
+
_clickhouse_ttl?: SqlExpression;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* ClickHouse MATERIALIZED column annotation.
|
|
152
|
+
* The column value is computed at INSERT time and physically stored.
|
|
153
|
+
* Cannot be explicitly inserted by users.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* interface Events {
|
|
157
|
+
* eventTime: DateTime;
|
|
158
|
+
* // Extract date component - computed and stored at insert time
|
|
159
|
+
* eventDate: Date & ClickHouseMaterialized<"toDate(event_time)">;
|
|
160
|
+
*
|
|
161
|
+
* userId: string;
|
|
162
|
+
* // Precompute hash for fast lookups
|
|
163
|
+
* userHash: UInt64 & ClickHouseMaterialized<"cityHash64(userId)">;
|
|
164
|
+
* }
|
|
165
|
+
*
|
|
166
|
+
* @remarks
|
|
167
|
+
* - MATERIALIZED and DEFAULT are mutually exclusive
|
|
168
|
+
* - Can be combined with ClickHouseCodec for compression
|
|
169
|
+
* - Changing the expression modifies the column in-place (existing values preserved)
|
|
170
|
+
*/
|
|
171
|
+
type ClickHouseMaterialized<SqlExpression extends string> = {
|
|
172
|
+
_clickhouse_materialized?: SqlExpression;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* See also {@link ClickHouseDefault}
|
|
176
|
+
*
|
|
177
|
+
* @example{ updated_at: WithDefault<Date, "now()"> }
|
|
178
|
+
*/
|
|
179
|
+
type WithDefault<T, _SqlExpression extends string> = T;
|
|
180
|
+
|
|
181
|
+
type Key<T extends string | number | Date> = T;
|
|
182
|
+
type JWT<T extends object> = T;
|
|
183
|
+
|
|
184
|
+
export type { UInt32 as A, UInt64 as B, ClickHouseByteSize as C, DateTime as D, Decimal as E, FixedString as F, Int8 as I, JWT as J, Key as K, LowCardinality as L, UInt8 as U, WithDefault as W, ClickHouseInt as a, ClickHouseNamedTuple as b, ClickHousePoint as c, ClickHouseRing as d, ClickHouseLineString as e, ClickHouseMultiLineString as f, ClickHousePolygon as g, ClickHouseMultiPolygon as h, ClickHousePrecision as i, ClickHouseDecimal as j, ClickHouseFixedStringSize as k, ClickHouseFloat as l, ClickHouseJson as m, ClickHouseDefault as n, ClickHouseTTL as o, ClickHouseMaterialized as p, ClickHouseCodec as q, DateTime64 as r, DateTimeString as s, DateTime64String as t, Float32 as u, Float64 as v, Int16 as w, Int32 as x, Int64 as y, UInt16 as z };
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig,
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a6 as createClickhouseParameter, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, P as getMaterializedView, Q as getMaterializedViews, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, a5 as getValueFromParameter, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a7 as mapToClickHouseType, X as quoteIdentifier, a0 as sql, a3 as toQuery, a4 as toQueryPreview, a2 as toStaticQuery } from './index-C4miZc-A.mjs';
|
|
2
|
+
export { C as ClickHouseByteSize, q as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, p as ClickHouseMaterialized, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, r as DateTime64, t as DateTime64String, s as DateTimeString, E as Decimal, F as FixedString, u as Float32, v as Float64, w as Int16, x as Int32, y as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, z as UInt16, A as UInt32, B as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BVw4gSAN.mjs';
|
|
2
3
|
import 'typia';
|
|
3
4
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
4
|
-
import 'typia/lib/tags';
|
|
5
5
|
import 'node:stream';
|
|
6
6
|
import '@clickhouse/client';
|
|
7
7
|
import '@temporalio/client';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'http';
|
|
10
|
-
|
|
11
|
-
type Key<T extends string | number | Date> = T;
|
|
12
|
-
type JWT<T extends object> = T;
|
|
13
|
-
|
|
14
|
-
export type { JWT, Key };
|
|
10
|
+
import 'typia/lib/tags';
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig,
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a6 as createClickhouseParameter, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, P as getMaterializedView, Q as getMaterializedViews, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, a5 as getValueFromParameter, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a7 as mapToClickHouseType, X as quoteIdentifier, a0 as sql, a3 as toQuery, a4 as toQueryPreview, a2 as toStaticQuery } from './index-C4miZc-A.js';
|
|
2
|
+
export { C as ClickHouseByteSize, q as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, p as ClickHouseMaterialized, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, r as DateTime64, t as DateTime64String, s as DateTimeString, E as Decimal, F as FixedString, u as Float32, v as Float64, w as Int16, x as Int32, y as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, z as UInt16, A as UInt32, B as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-rK8ei0bt.js';
|
|
2
3
|
import 'typia';
|
|
3
4
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
4
|
-
import 'typia/lib/tags';
|
|
5
5
|
import 'node:stream';
|
|
6
6
|
import '@clickhouse/client';
|
|
7
7
|
import '@temporalio/client';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'http';
|
|
10
|
-
|
|
11
|
-
type Key<T extends string | number | Date> = T;
|
|
12
|
-
type JWT<T extends object> = T;
|
|
13
|
-
|
|
14
|
-
export type { JWT, Key };
|
|
10
|
+
import 'typia/lib/tags';
|