@514labs/moose-lib 0.6.297-ci-25-g92aec239 → 0.6.297-ci-32-g6119ebc8
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-Dqfdy6x5.d.ts → browserCompatible-Cs3UY_5a.d.ts} +1 -1
- package/dist/{browserCompatible-CkJwv4dC.d.mts → browserCompatible-Dfx6yRB5.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +32 -15
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +30 -13
- 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 +32 -15
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +30 -13
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-CdKEq7FH.d.mts → index-CI9e2hZ2.d.mts} +7 -7
- package/dist/{index-CdKEq7FH.d.ts → index-CI9e2hZ2.d.ts} +7 -7
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +33 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -14
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +7 -6
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +7 -6
- 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,
|
|
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, 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, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-CI9e2hZ2.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,
|
|
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, 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, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from '../index-CI9e2hZ2.js';
|
|
2
2
|
import 'typia';
|
|
3
3
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
4
4
|
import 'node:stream';
|
package/dist/dmv2/index.js
CHANGED
|
@@ -591,7 +591,7 @@ var init_internal = __esm({
|
|
|
591
591
|
workflows: /* @__PURE__ */ new Map(),
|
|
592
592
|
webApps: /* @__PURE__ */ new Map(),
|
|
593
593
|
materializedViews: /* @__PURE__ */ new Map(),
|
|
594
|
-
|
|
594
|
+
views: /* @__PURE__ */ new Map()
|
|
595
595
|
};
|
|
596
596
|
defaultRetentionPeriod = 60 * 60 * 24 * 7;
|
|
597
597
|
getMooseInternal = () => globalThis.moose_internal;
|
|
@@ -2473,6 +2473,13 @@ var init_etlPipeline = __esm({
|
|
|
2473
2473
|
});
|
|
2474
2474
|
|
|
2475
2475
|
// src/dmv2/sdk/materializedView.ts
|
|
2476
|
+
function formatTableReference(table) {
|
|
2477
|
+
const database = table instanceof OlapTable ? table.config.database : void 0;
|
|
2478
|
+
if (database) {
|
|
2479
|
+
return `\`${database}\`.\`${table.name}\``;
|
|
2480
|
+
}
|
|
2481
|
+
return `\`${table.name}\``;
|
|
2482
|
+
}
|
|
2476
2483
|
var requireTargetTableName, MaterializedView;
|
|
2477
2484
|
var init_materializedView = __esm({
|
|
2478
2485
|
"src/dmv2/sdk/materializedView.ts"() {
|
|
@@ -2531,7 +2538,9 @@ var init_materializedView = __esm({
|
|
|
2531
2538
|
this.name = options.materializedViewName;
|
|
2532
2539
|
this.targetTable = targetTable;
|
|
2533
2540
|
this.selectSql = selectStatement;
|
|
2534
|
-
this.sourceTables = options.selectTables.map(
|
|
2541
|
+
this.sourceTables = options.selectTables.map(
|
|
2542
|
+
(t) => formatTableReference(t)
|
|
2543
|
+
);
|
|
2535
2544
|
this.metadata = options.metadata ? { ...options.metadata } : {};
|
|
2536
2545
|
if (!this.metadata.source) {
|
|
2537
2546
|
const stack = new Error().stack;
|
|
@@ -2614,16 +2623,24 @@ var init_sqlResource = __esm({
|
|
|
2614
2623
|
});
|
|
2615
2624
|
|
|
2616
2625
|
// src/dmv2/sdk/view.ts
|
|
2626
|
+
function formatTableReference2(table) {
|
|
2627
|
+
const database = table instanceof OlapTable ? table.config.database : void 0;
|
|
2628
|
+
if (database) {
|
|
2629
|
+
return `\`${database}\`.\`${table.name}\``;
|
|
2630
|
+
}
|
|
2631
|
+
return `\`${table.name}\``;
|
|
2632
|
+
}
|
|
2617
2633
|
var View;
|
|
2618
2634
|
var init_view = __esm({
|
|
2619
2635
|
"src/dmv2/sdk/view.ts"() {
|
|
2620
2636
|
"use strict";
|
|
2621
2637
|
init_sqlHelpers();
|
|
2638
|
+
init_olapTable();
|
|
2622
2639
|
init_internal();
|
|
2623
2640
|
init_stackTrace();
|
|
2624
2641
|
View = class {
|
|
2625
2642
|
/** @internal */
|
|
2626
|
-
kind = "
|
|
2643
|
+
kind = "View";
|
|
2627
2644
|
/** The name of the view */
|
|
2628
2645
|
name;
|
|
2629
2646
|
/** The SELECT SQL statement that defines the view */
|
|
@@ -2645,7 +2662,7 @@ var init_view = __esm({
|
|
|
2645
2662
|
}
|
|
2646
2663
|
this.name = name;
|
|
2647
2664
|
this.selectSql = selectStatement;
|
|
2648
|
-
this.sourceTables = baseTables.map((t) => t
|
|
2665
|
+
this.sourceTables = baseTables.map((t) => formatTableReference2(t));
|
|
2649
2666
|
this.metadata = metadata ? { ...metadata } : {};
|
|
2650
2667
|
if (!this.metadata.source) {
|
|
2651
2668
|
const stack = new Error().stack;
|
|
@@ -2654,11 +2671,11 @@ var init_view = __esm({
|
|
|
2654
2671
|
this.metadata.source = { file: sourceInfo };
|
|
2655
2672
|
}
|
|
2656
2673
|
}
|
|
2657
|
-
const
|
|
2658
|
-
if (!isClientOnlyMode() &&
|
|
2674
|
+
const views = getMooseInternal().views;
|
|
2675
|
+
if (!isClientOnlyMode() && views.has(this.name)) {
|
|
2659
2676
|
throw new Error(`View with name ${this.name} already exists`);
|
|
2660
2677
|
}
|
|
2661
|
-
|
|
2678
|
+
views.set(this.name, this);
|
|
2662
2679
|
}
|
|
2663
2680
|
};
|
|
2664
2681
|
}
|
|
@@ -2868,11 +2885,11 @@ function getMaterializedViews() {
|
|
|
2868
2885
|
function getMaterializedView(name) {
|
|
2869
2886
|
return getMooseInternal().materializedViews.get(name);
|
|
2870
2887
|
}
|
|
2871
|
-
function
|
|
2872
|
-
return getMooseInternal().
|
|
2888
|
+
function getViews() {
|
|
2889
|
+
return getMooseInternal().views;
|
|
2873
2890
|
}
|
|
2874
|
-
function
|
|
2875
|
-
return getMooseInternal().
|
|
2891
|
+
function getView(name) {
|
|
2892
|
+
return getMooseInternal().views.get(name);
|
|
2876
2893
|
}
|
|
2877
2894
|
var init_registry = __esm({
|
|
2878
2895
|
"src/dmv2/registry.ts"() {
|
|
@@ -2901,8 +2918,6 @@ __export(dmv2_exports, {
|
|
|
2901
2918
|
Workflow: () => Workflow,
|
|
2902
2919
|
getApi: () => getApi,
|
|
2903
2920
|
getApis: () => getApis,
|
|
2904
|
-
getCustomView: () => getCustomView,
|
|
2905
|
-
getCustomViews: () => getCustomViews,
|
|
2906
2921
|
getIngestApi: () => getIngestApi,
|
|
2907
2922
|
getIngestApis: () => getIngestApis,
|
|
2908
2923
|
getMaterializedView: () => getMaterializedView,
|
|
@@ -2913,6 +2928,8 @@ __export(dmv2_exports, {
|
|
|
2913
2928
|
getStreams: () => getStreams,
|
|
2914
2929
|
getTable: () => getTable,
|
|
2915
2930
|
getTables: () => getTables,
|
|
2931
|
+
getView: () => getView,
|
|
2932
|
+
getViews: () => getViews,
|
|
2916
2933
|
getWebApp: () => getWebApp,
|
|
2917
2934
|
getWebApps: () => getWebApps,
|
|
2918
2935
|
getWorkflow: () => getWorkflow,
|
|
@@ -2956,8 +2973,6 @@ init_dmv2();
|
|
|
2956
2973
|
Workflow,
|
|
2957
2974
|
getApi,
|
|
2958
2975
|
getApis,
|
|
2959
|
-
getCustomView,
|
|
2960
|
-
getCustomViews,
|
|
2961
2976
|
getIngestApi,
|
|
2962
2977
|
getIngestApis,
|
|
2963
2978
|
getMaterializedView,
|
|
@@ -2968,6 +2983,8 @@ init_dmv2();
|
|
|
2968
2983
|
getStreams,
|
|
2969
2984
|
getTable,
|
|
2970
2985
|
getTables,
|
|
2986
|
+
getView,
|
|
2987
|
+
getViews,
|
|
2971
2988
|
getWebApp,
|
|
2972
2989
|
getWebApps,
|
|
2973
2990
|
getWorkflow,
|