@514labs/moose-lib 0.6.297-ci-22-g1be0de24 → 0.6.297-ci-23-g751e4221
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-CkQfVyoI.d.mts → browserCompatible-CkJwv4dC.d.mts} +1 -1
- package/dist/{browserCompatible-CprLtYmW.d.ts → browserCompatible-Dqfdy6x5.d.ts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +22 -9
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +22 -9
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +1 -1
- package/dist/dmv2/index.d.ts +1 -1
- package/dist/dmv2/index.js +22 -9
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +22 -9
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-9XL-mk89.d.mts → index-CdKEq7FH.d.mts} +16 -5
- package/dist/{index-9XL-mk89.d.ts → index-CdKEq7FH.d.ts} +16 -5
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -9
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +2 -2
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +2 -2
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/dmv2/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, al as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ap as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, aq as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, ao as TaskConfig, an as TaskContext, am as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, K as getCustomView, N as getCustomViews, 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, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, al as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ap as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, aq as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, ao as TaskConfig, an as TaskContext, am as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, K as getCustomView, N as getCustomViews, 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, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-CdKEq7FH.mjs';
|
|
2
2
|
import 'typia';
|
|
3
3
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
4
4
|
import 'node:stream';
|
package/dist/dmv2/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, al as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ap as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, aq as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, ao as TaskConfig, an as TaskContext, am as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, K as getCustomView, N as getCustomViews, 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, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, al as ConsumerConfig, C as ConsumptionApi, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, g as IngestConfig, j as IngestPipeline, ap as IngestPipelineConfig, L as LifeCycle, M as MaterializedView, aq as MaterializedViewConfig, a as OlapConfig, O as OlapTable, b as S3QueueTableSettings, S as SimpleAggregated, k as SqlResource, c as Stream, d as StreamConfig, T as Task, ao as TaskConfig, an as TaskContext, am as TransformConfig, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, K as getCustomView, N as getCustomViews, 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, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-CdKEq7FH.js';
|
|
2
2
|
import 'typia';
|
|
3
3
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
4
4
|
import 'node:stream';
|
package/dist/dmv2/index.js
CHANGED
|
@@ -2500,8 +2500,8 @@ var init_materializedView = __esm({
|
|
|
2500
2500
|
selectSql;
|
|
2501
2501
|
/** Names of source tables that the SELECT reads from */
|
|
2502
2502
|
sourceTables;
|
|
2503
|
-
/**
|
|
2504
|
-
|
|
2503
|
+
/** Optional metadata for the materialized view */
|
|
2504
|
+
metadata;
|
|
2505
2505
|
constructor(options, targetSchema, targetColumns) {
|
|
2506
2506
|
let selectStatement = options.selectStatement;
|
|
2507
2507
|
if (typeof selectStatement !== "string") {
|
|
@@ -2532,8 +2532,14 @@ var init_materializedView = __esm({
|
|
|
2532
2532
|
this.targetTable = targetTable;
|
|
2533
2533
|
this.selectSql = selectStatement;
|
|
2534
2534
|
this.sourceTables = options.selectTables.map((t) => t.name);
|
|
2535
|
-
|
|
2536
|
-
this.
|
|
2535
|
+
this.metadata = options.metadata ? { ...options.metadata } : {};
|
|
2536
|
+
if (!this.metadata.source) {
|
|
2537
|
+
const stack = new Error().stack;
|
|
2538
|
+
const sourceInfo = getSourceFileFromStack(stack);
|
|
2539
|
+
if (sourceInfo) {
|
|
2540
|
+
this.metadata.source = { file: sourceInfo };
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2537
2543
|
const materializedViews = getMooseInternal().materializedViews;
|
|
2538
2544
|
if (!isClientOnlyMode() && materializedViews.has(this.name)) {
|
|
2539
2545
|
throw new Error(`MaterializedView with name ${this.name} already exists`);
|
|
@@ -2624,23 +2630,30 @@ var init_view = __esm({
|
|
|
2624
2630
|
selectSql;
|
|
2625
2631
|
/** Names of source tables/views that the SELECT reads from */
|
|
2626
2632
|
sourceTables;
|
|
2627
|
-
/**
|
|
2628
|
-
|
|
2633
|
+
/** Optional metadata for the view */
|
|
2634
|
+
metadata;
|
|
2629
2635
|
/**
|
|
2630
2636
|
* Creates a new View instance.
|
|
2631
2637
|
* @param name The name of the view to be created.
|
|
2632
2638
|
* @param selectStatement The SQL SELECT statement that defines the view's logic.
|
|
2633
2639
|
* @param baseTables An array of OlapTable or View objects that the `selectStatement` reads from. Used for dependency tracking.
|
|
2640
|
+
* @param metadata Optional metadata for the view (e.g., description, source file).
|
|
2634
2641
|
*/
|
|
2635
|
-
constructor(name, selectStatement, baseTables) {
|
|
2642
|
+
constructor(name, selectStatement, baseTables, metadata) {
|
|
2636
2643
|
if (typeof selectStatement !== "string") {
|
|
2637
2644
|
selectStatement = toStaticQuery(selectStatement);
|
|
2638
2645
|
}
|
|
2639
2646
|
this.name = name;
|
|
2640
2647
|
this.selectSql = selectStatement;
|
|
2641
2648
|
this.sourceTables = baseTables.map((t) => t.name);
|
|
2642
|
-
|
|
2643
|
-
this.
|
|
2649
|
+
this.metadata = metadata ? { ...metadata } : {};
|
|
2650
|
+
if (!this.metadata.source) {
|
|
2651
|
+
const stack = new Error().stack;
|
|
2652
|
+
const sourceInfo = getSourceFileFromStack(stack);
|
|
2653
|
+
if (sourceInfo) {
|
|
2654
|
+
this.metadata.source = { file: sourceInfo };
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2644
2657
|
const customViews = getMooseInternal().customViews;
|
|
2645
2658
|
if (!isClientOnlyMode() && customViews.has(this.name)) {
|
|
2646
2659
|
throw new Error(`View with name ${this.name} already exists`);
|