@514labs/moose-lib 0.6.237 → 0.6.238

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.
@@ -1,4 +1,4 @@
1
- import './index-Bv4BwBYh.mjs';
1
+ import './index-BG2HP0xG.mjs';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -53,6 +53,33 @@ type UInt16 = number & ClickHouseInt<"uint16">;
53
53
  type UInt32 = number & ClickHouseInt<"uint32">;
54
54
  type UInt64 = number & ClickHouseInt<"uint64">;
55
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
+ };
56
83
  type ClickHouseFloat<Value extends "float32" | "float64"> = tags.Type<Value extends "float32" ? "float" : "double">;
57
84
  type ClickHouseInt<Value extends "int8" | "int16" | "int32" | "int64" | "uint8" | "uint16" | "uint32" | "uint64"> = Value extends "int32" | "int64" | "uint32" | "uint64" ? tags.Type<Value> : TagBase<{
58
85
  target: "number";
@@ -130,4 +157,4 @@ type WithDefault<T, _SqlExpression extends string> = T;
130
157
  type Key<T extends string | number | Date> = T;
131
158
  type JWT<T extends object> = T;
132
159
 
133
- export type { Decimal as A, ClickHouseByteSize as C, DateTime as D, 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, DateTime64 as p, DateTimeString as q, DateTime64String as r, Float32 as s, Float64 as t, Int16 as u, Int32 as v, Int64 as w, UInt16 as x, UInt32 as y, UInt64 as z };
160
+ export type { UInt64 as A, Decimal as B, ClickHouseByteSize as C, DateTime as D, 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, ClickHouseCodec as p, DateTime64 as q, DateTimeString as r, DateTime64String as s, Float32 as t, Float64 as u, Int16 as v, Int32 as w, Int64 as x, UInt16 as y, UInt32 as z };
@@ -1,4 +1,4 @@
1
- import './index-Bv4BwBYh.js';
1
+ import './index-BG2HP0xG.js';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -53,6 +53,33 @@ type UInt16 = number & ClickHouseInt<"uint16">;
53
53
  type UInt32 = number & ClickHouseInt<"uint32">;
54
54
  type UInt64 = number & ClickHouseInt<"uint64">;
55
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
+ };
56
83
  type ClickHouseFloat<Value extends "float32" | "float64"> = tags.Type<Value extends "float32" ? "float" : "double">;
57
84
  type ClickHouseInt<Value extends "int8" | "int16" | "int32" | "int64" | "uint8" | "uint16" | "uint32" | "uint64"> = Value extends "int32" | "int64" | "uint32" | "uint64" ? tags.Type<Value> : TagBase<{
58
85
  target: "number";
@@ -130,4 +157,4 @@ type WithDefault<T, _SqlExpression extends string> = T;
130
157
  type Key<T extends string | number | Date> = T;
131
158
  type JWT<T extends object> = T;
132
159
 
133
- export type { Decimal as A, ClickHouseByteSize as C, DateTime as D, 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, DateTime64 as p, DateTimeString as q, DateTime64String as r, Float32 as s, Float64 as t, Int16 as u, Int32 as v, Int64 as w, UInt16 as x, UInt32 as y, UInt64 as z };
160
+ export type { UInt64 as A, Decimal as B, ClickHouseByteSize as C, DateTime as D, 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, ClickHouseCodec as p, DateTime64 as q, DateTimeString as r, DateTime64String as s, Float32 as t, Float64 as u, Int16 as v, Int32 as w, Int64 as x, UInt16 as y, UInt32 as z };
@@ -1,5 +1,5 @@
1
- export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-Bv4BwBYh.mjs';
2
- export { C as ClickHouseByteSize, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, p as DateTime64, r as DateTime64String, q as DateTimeString, A as Decimal, F as FixedString, s as Float32, t as Float64, u as Int16, v as Int32, w as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, x as UInt16, y as UInt32, z as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BvqhjKUw.mjs';
1
+ export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-BG2HP0xG.mjs';
2
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BRa8sgXw.mjs';
3
3
  import 'typia';
4
4
  import 'typia/src/schemas/json/IJsonSchemaCollection';
5
5
  import 'node:stream';
@@ -1,5 +1,5 @@
1
- export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-Bv4BwBYh.js';
2
- export { C as ClickHouseByteSize, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, p as DateTime64, r as DateTime64String, q as DateTimeString, A as Decimal, F as FixedString, s as Float32, t as Float64, u as Int16, v as Int32, w as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, x as UInt16, y as UInt32, z as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-2depHgCv.js';
1
+ export { A as Aggregated, h as Api, i as ApiConfig, K as ApiUtil, C as ConsumptionApi, N as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Q as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, R as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, X as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, Z as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, U as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a2 as createClickhouseParameter, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-BG2HP0xG.js';
2
+ export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, b as ClickHouseNamedTuple, i as ClickHousePrecision, o as ClickHouseTTL, D as DateTime, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-CMLITD0_.js';
3
3
  import 'typia';
4
4
  import 'typia/src/schemas/json/IJsonSchemaCollection';
5
5
  import 'node:stream';
@@ -773,7 +773,8 @@ var dlqColumns = [
773
773
  unique: false,
774
774
  default: null,
775
775
  annotations: [],
776
- ttl: null
776
+ ttl: null,
777
+ codec: null
777
778
  },
778
779
  {
779
780
  name: "errorMessage",
@@ -783,7 +784,8 @@ var dlqColumns = [
783
784
  unique: false,
784
785
  default: null,
785
786
  annotations: [],
786
- ttl: null
787
+ ttl: null,
788
+ codec: null
787
789
  },
788
790
  {
789
791
  name: "errorType",
@@ -793,7 +795,8 @@ var dlqColumns = [
793
795
  unique: false,
794
796
  default: null,
795
797
  annotations: [],
796
- ttl: null
798
+ ttl: null,
799
+ codec: null
797
800
  },
798
801
  {
799
802
  name: "failedAt",
@@ -803,7 +806,8 @@ var dlqColumns = [
803
806
  unique: false,
804
807
  default: null,
805
808
  annotations: [],
806
- ttl: null
809
+ ttl: null,
810
+ codec: null
807
811
  },
808
812
  {
809
813
  name: "source",
@@ -813,7 +817,8 @@ var dlqColumns = [
813
817
  unique: false,
814
818
  default: null,
815
819
  annotations: [],
816
- ttl: null
820
+ ttl: null,
821
+ codec: null
817
822
  }
818
823
  ];
819
824