@514labs/moose-lib 0.6.238-ci-1-gbf624664 → 0.6.238-ci-1-g5655fc64

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-BG2HP0xG.mjs';
1
+ import './index-CYFF3a0J.js';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -147,6 +147,31 @@ type ClickHouseDefault<SqlExpression extends string> = {
147
147
  type ClickHouseTTL<SqlExpression extends string> = {
148
148
  _clickhouse_ttl?: SqlExpression;
149
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: Date;
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: number & ClickHouseInt<"uint64"> & ClickHouseMaterialized<"cityHash64(user_id)">;
164
+ * }
165
+ *
166
+ * @remarks
167
+ * - Expression uses ClickHouse column names (snake_case), not TypeScript field names
168
+ * - MATERIALIZED and DEFAULT are mutually exclusive
169
+ * - Can be combined with ClickHouseCodec for compression
170
+ * - Changing the expression modifies the column in-place (existing values preserved)
171
+ */
172
+ type ClickHouseMaterialized<SqlExpression extends string> = {
173
+ _clickhouse_materialized?: SqlExpression;
174
+ };
150
175
  /**
151
176
  * See also {@link ClickHouseDefault}
152
177
  *
@@ -157,4 +182,4 @@ type WithDefault<T, _SqlExpression extends string> = T;
157
182
  type Key<T extends string | number | Date> = T;
158
183
  type JWT<T extends object> = T;
159
184
 
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 };
185
+ 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,4 +1,4 @@
1
- import './index-BG2HP0xG.js';
1
+ import './index-CYFF3a0J.mjs';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -147,6 +147,31 @@ type ClickHouseDefault<SqlExpression extends string> = {
147
147
  type ClickHouseTTL<SqlExpression extends string> = {
148
148
  _clickhouse_ttl?: SqlExpression;
149
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: Date;
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: number & ClickHouseInt<"uint64"> & ClickHouseMaterialized<"cityHash64(user_id)">;
164
+ * }
165
+ *
166
+ * @remarks
167
+ * - Expression uses ClickHouse column names (snake_case), not TypeScript field names
168
+ * - MATERIALIZED and DEFAULT are mutually exclusive
169
+ * - Can be combined with ClickHouseCodec for compression
170
+ * - Changing the expression modifies the column in-place (existing values preserved)
171
+ */
172
+ type ClickHouseMaterialized<SqlExpression extends string> = {
173
+ _clickhouse_materialized?: SqlExpression;
174
+ };
150
175
  /**
151
176
  * See also {@link ClickHouseDefault}
152
177
  *
@@ -157,4 +182,4 @@ type WithDefault<T, _SqlExpression extends string> = T;
157
182
  type Key<T extends string | number | Date> = T;
158
183
  type JWT<T extends object> = T;
159
184
 
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 };
185
+ 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,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-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';
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-CYFF3a0J.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-DZ-WDkNP.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-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';
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-CYFF3a0J.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-D-uI2A0t.js';
3
3
  import 'typia';
4
4
  import 'typia/src/schemas/json/IJsonSchemaCollection';
5
5
  import 'node:stream';
@@ -774,7 +774,8 @@ var dlqColumns = [
774
774
  default: null,
775
775
  annotations: [],
776
776
  ttl: null,
777
- codec: null
777
+ codec: null,
778
+ materialized: null
778
779
  },
779
780
  {
780
781
  name: "errorMessage",
@@ -785,7 +786,8 @@ var dlqColumns = [
785
786
  default: null,
786
787
  annotations: [],
787
788
  ttl: null,
788
- codec: null
789
+ codec: null,
790
+ materialized: null
789
791
  },
790
792
  {
791
793
  name: "errorType",
@@ -796,7 +798,8 @@ var dlqColumns = [
796
798
  default: null,
797
799
  annotations: [],
798
800
  ttl: null,
799
- codec: null
801
+ codec: null,
802
+ materialized: null
800
803
  },
801
804
  {
802
805
  name: "failedAt",
@@ -807,7 +810,8 @@ var dlqColumns = [
807
810
  default: null,
808
811
  annotations: [],
809
812
  ttl: null,
810
- codec: null
813
+ codec: null,
814
+ materialized: null
811
815
  },
812
816
  {
813
817
  name: "source",
@@ -818,7 +822,8 @@ var dlqColumns = [
818
822
  default: null,
819
823
  annotations: [],
820
824
  ttl: null,
821
- codec: null
825
+ codec: null,
826
+ materialized: null
822
827
  }
823
828
  ];
824
829