@514labs/moose-lib 0.6.238-ci-6-g1a6f273f → 0.6.239-ci-14-g85f6cfc1

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.
Files changed (35) hide show
  1. package/dist/{browserCompatible-CKgEUuZc.d.ts → browserCompatible-bG7qUssc.d.mts} +2 -26
  2. package/dist/{browserCompatible-DCc9Zd_X.d.mts → browserCompatible-mRmtV1to.d.ts} +2 -26
  3. package/dist/browserCompatible.d.mts +2 -2
  4. package/dist/browserCompatible.d.ts +2 -2
  5. package/dist/browserCompatible.js +43 -25
  6. package/dist/browserCompatible.js.map +1 -1
  7. package/dist/browserCompatible.mjs +43 -25
  8. package/dist/browserCompatible.mjs.map +1 -1
  9. package/dist/compilerPlugin.js +1 -25
  10. package/dist/compilerPlugin.js.map +1 -1
  11. package/dist/compilerPlugin.mjs +1 -25
  12. package/dist/compilerPlugin.mjs.map +1 -1
  13. package/dist/dataModels/toDataModels.js +1 -25
  14. package/dist/dataModels/toDataModels.js.map +1 -1
  15. package/dist/dataModels/toDataModels.mjs +1 -25
  16. package/dist/dataModels/toDataModels.mjs.map +1 -1
  17. package/dist/dmv2/index.d.mts +1 -1
  18. package/dist/dmv2/index.d.ts +1 -1
  19. package/dist/dmv2/index.js +43 -25
  20. package/dist/dmv2/index.js.map +1 -1
  21. package/dist/dmv2/index.mjs +43 -25
  22. package/dist/dmv2/index.mjs.map +1 -1
  23. package/dist/{index-CYFF3a0J.d.mts → index-DtHRzX8Z.d.mts} +12 -1
  24. package/dist/{index-CYFF3a0J.d.ts → index-DtHRzX8Z.d.ts} +12 -1
  25. package/dist/index.d.mts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +43 -25
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +43 -25
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/moose-runner.js +5 -2
  32. package/dist/moose-runner.js.map +1 -1
  33. package/dist/moose-runner.mjs +5 -2
  34. package/dist/moose-runner.mjs.map +1 -1
  35. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import './index-CYFF3a0J.js';
1
+ import './index-DtHRzX8Z.mjs';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -147,30 +147,6 @@ 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: 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
150
  /**
175
151
  * See also {@link ClickHouseDefault}
176
152
  *
@@ -181,4 +157,4 @@ type WithDefault<T, _SqlExpression extends string> = T;
181
157
  type Key<T extends string | number | Date> = T;
182
158
  type JWT<T extends object> = T;
183
159
 
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 };
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-CYFF3a0J.mjs';
1
+ import './index-DtHRzX8Z.js';
2
2
  import { Pattern, TagBase } from 'typia/lib/tags';
3
3
  import { tags } from 'typia';
4
4
 
@@ -147,30 +147,6 @@ 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: 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
150
  /**
175
151
  * See also {@link ClickHouseDefault}
176
152
  *
@@ -181,4 +157,4 @@ type WithDefault<T, _SqlExpression extends string> = T;
181
157
  type Key<T extends string | number | Date> = T;
182
158
  type JWT<T extends object> = T;
183
159
 
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 };
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-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-DCc9Zd_X.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-DtHRzX8Z.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-bG7qUssc.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-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-CKgEUuZc.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-DtHRzX8Z.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-mRmtV1to.js';
3
3
  import 'typia';
4
4
  import 'typia/src/schemas/json/IJsonSchemaCollection';
5
5
  import 'node:stream';
@@ -417,24 +417,39 @@ __export(browserCompatible_exports, {
417
417
  });
418
418
  module.exports = __toCommonJS(browserCompatible_exports);
419
419
 
420
- // src/dmv2/typedBase.ts
421
- function getInstantiationFileInfo(stack) {
420
+ // src/dmv2/utils/stackTrace.ts
421
+ function shouldSkipStackLine(line) {
422
+ return line.includes("node_modules") || // Skip npm installed packages (prod)
423
+ line.includes("internal/modules") || // Skip Node.js internals
424
+ line.includes("ts-node") || // Skip TypeScript execution
425
+ line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
426
+ line.includes("\\ts-moose-lib\\");
427
+ }
428
+ function parseStackLine(line) {
429
+ const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
430
+ if (match && match[1]) {
431
+ return {
432
+ file: match[1],
433
+ line: match[2]
434
+ };
435
+ }
436
+ return void 0;
437
+ }
438
+ function getSourceFileInfo(stack) {
422
439
  if (!stack) return {};
423
440
  const lines = stack.split("\n");
424
441
  for (const line of lines) {
425
- if (line.includes("node_modules") || line.includes("internal/modules") || line.includes("ts-node"))
426
- continue;
427
- const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
428
- if (match && match[1]) {
429
- return {
430
- file: match[1],
431
- line: match[2]
432
- // Only the line number
433
- };
434
- }
442
+ if (shouldSkipStackLine(line)) continue;
443
+ const info = parseStackLine(line);
444
+ if (info) return info;
435
445
  }
436
446
  return {};
437
447
  }
448
+ function getSourceFileFromStack(stack) {
449
+ return getSourceFileInfo(stack).file;
450
+ }
451
+
452
+ // src/dmv2/typedBase.ts
438
453
  var TypedBase = class {
439
454
  /** The JSON schema representation of type T. Injected by the compiler plugin. */
440
455
  schema;
@@ -478,7 +493,7 @@ var TypedBase = class {
478
493
  this.metadata = config?.metadata ? { ...config.metadata } : {};
479
494
  const stack = new Error().stack;
480
495
  if (stack) {
481
- const info = getInstantiationFileInfo(stack);
496
+ const info = getSourceFileInfo(stack);
482
497
  this.metadata.source = { file: info.file, line: info.line };
483
498
  } else {
484
499
  this.metadata.source = void 0;
@@ -774,8 +789,7 @@ var dlqColumns = [
774
789
  default: null,
775
790
  annotations: [],
776
791
  ttl: null,
777
- codec: null,
778
- materialized: null
792
+ codec: null
779
793
  },
780
794
  {
781
795
  name: "errorMessage",
@@ -786,8 +800,7 @@ var dlqColumns = [
786
800
  default: null,
787
801
  annotations: [],
788
802
  ttl: null,
789
- codec: null,
790
- materialized: null
803
+ codec: null
791
804
  },
792
805
  {
793
806
  name: "errorType",
@@ -798,8 +811,7 @@ var dlqColumns = [
798
811
  default: null,
799
812
  annotations: [],
800
813
  ttl: null,
801
- codec: null,
802
- materialized: null
814
+ codec: null
803
815
  },
804
816
  {
805
817
  name: "failedAt",
@@ -810,8 +822,7 @@ var dlqColumns = [
810
822
  default: null,
811
823
  annotations: [],
812
824
  ttl: null,
813
- codec: null,
814
- materialized: null
825
+ codec: null
815
826
  },
816
827
  {
817
828
  name: "source",
@@ -822,8 +833,7 @@ var dlqColumns = [
822
833
  default: null,
823
834
  annotations: [],
824
835
  ttl: null,
825
- codec: null,
826
- materialized: null
836
+ codec: null
827
837
  }
828
838
  ];
829
839
 
@@ -1710,8 +1720,10 @@ var Stream = class extends TypedBase {
1710
1720
  * @param config Optional configuration for this specific transformation step, like a version.
1711
1721
  */
1712
1722
  addTransform(destination, transformation, config) {
1723
+ const sourceFile = getSourceFileFromStack(new Error().stack);
1713
1724
  const transformConfig = {
1714
- ...config ?? {}
1725
+ ...config ?? {},
1726
+ sourceFile
1715
1727
  };
1716
1728
  if (transformConfig.deadLetterQueue === void 0) {
1717
1729
  transformConfig.deadLetterQueue = this.defaultDeadLetterQueue;
@@ -1738,8 +1750,10 @@ var Stream = class extends TypedBase {
1738
1750
  * @param config Optional configuration for this specific consumer, like a version.
1739
1751
  */
1740
1752
  addConsumer(consumer, config) {
1753
+ const sourceFile = getSourceFileFromStack(new Error().stack);
1741
1754
  const consumerConfig = {
1742
- ...config ?? {}
1755
+ ...config ?? {},
1756
+ sourceFile
1743
1757
  };
1744
1758
  if (consumerConfig.deadLetterQueue === void 0) {
1745
1759
  consumerConfig.deadLetterQueue = this.defaultDeadLetterQueue;
@@ -2326,6 +2340,8 @@ var SqlResource = class {
2326
2340
  pullsDataFrom;
2327
2341
  /** List of OlapTables or Views that this resource writes data to. */
2328
2342
  pushesDataTo;
2343
+ /** @internal Source file path where this resource was defined */
2344
+ sourceFile;
2329
2345
  /**
2330
2346
  * Creates a new SqlResource instance.
2331
2347
  * @param name The name of the resource.
@@ -2350,6 +2366,8 @@ var SqlResource = class {
2350
2366
  );
2351
2367
  this.pullsDataFrom = options?.pullsDataFrom ?? [];
2352
2368
  this.pushesDataTo = options?.pushesDataTo ?? [];
2369
+ const stack = new Error().stack;
2370
+ this.sourceFile = getSourceFileFromStack(stack);
2353
2371
  }
2354
2372
  };
2355
2373