@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as Aggregated, h as Api, i as ApiConfig, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a6 as createClickhouseParameter, x as getApi, w as getApis,
|
|
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-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a6 as createClickhouseParameter, 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, a5 as getValueFromParameter, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a7 as mapToClickHouseType, X as quoteIdentifier, a0 as sql, a3 as toQuery, a4 as toQueryPreview, a2 as toStaticQuery } from './index-CI9e2hZ2.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-Dfx6yRB5.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, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a6 as createClickhouseParameter, x as getApi, w as getApis,
|
|
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-
|
|
1
|
+
export { A as Aggregated, h as Api, i as ApiConfig, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, e as DeadLetter, D as DeadLetterModel, f as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, Y as IdentifierBrandedString, I as IngestApi, g as IngestConfig, j as IngestPipeline, L as LifeCycle, M as MaterializedView, Z as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, $ as RawValue, b as S3QueueTableSettings, S as SimpleAggregated, a1 as Sql, k as SqlResource, c as Stream, d as StreamConfig, T as Task, _ as Value, V as View, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, a6 as createClickhouseParameter, 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, a5 as getValueFromParameter, K as getView, N as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a7 as mapToClickHouseType, X as quoteIdentifier, a0 as sql, a3 as toQuery, a4 as toQueryPreview, a2 as toStaticQuery } from './index-CI9e2hZ2.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-Cs3UY_5a.js';
|
|
3
3
|
import 'typia';
|
|
4
4
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
5
5
|
import 'node:stream';
|
|
@@ -676,7 +676,7 @@ var init_internal = __esm({
|
|
|
676
676
|
workflows: /* @__PURE__ */ new Map(),
|
|
677
677
|
webApps: /* @__PURE__ */ new Map(),
|
|
678
678
|
materializedViews: /* @__PURE__ */ new Map(),
|
|
679
|
-
|
|
679
|
+
views: /* @__PURE__ */ new Map()
|
|
680
680
|
};
|
|
681
681
|
defaultRetentionPeriod = 60 * 60 * 24 * 7;
|
|
682
682
|
getMooseInternal = () => globalThis.moose_internal;
|
|
@@ -2558,6 +2558,13 @@ var init_etlPipeline = __esm({
|
|
|
2558
2558
|
});
|
|
2559
2559
|
|
|
2560
2560
|
// src/dmv2/sdk/materializedView.ts
|
|
2561
|
+
function formatTableReference(table) {
|
|
2562
|
+
const database = table instanceof OlapTable ? table.config.database : void 0;
|
|
2563
|
+
if (database) {
|
|
2564
|
+
return `\`${database}\`.\`${table.name}\``;
|
|
2565
|
+
}
|
|
2566
|
+
return `\`${table.name}\``;
|
|
2567
|
+
}
|
|
2561
2568
|
var requireTargetTableName, MaterializedView;
|
|
2562
2569
|
var init_materializedView = __esm({
|
|
2563
2570
|
"src/dmv2/sdk/materializedView.ts"() {
|
|
@@ -2616,7 +2623,9 @@ var init_materializedView = __esm({
|
|
|
2616
2623
|
this.name = options.materializedViewName;
|
|
2617
2624
|
this.targetTable = targetTable;
|
|
2618
2625
|
this.selectSql = selectStatement;
|
|
2619
|
-
this.sourceTables = options.selectTables.map(
|
|
2626
|
+
this.sourceTables = options.selectTables.map(
|
|
2627
|
+
(t) => formatTableReference(t)
|
|
2628
|
+
);
|
|
2620
2629
|
this.metadata = options.metadata ? { ...options.metadata } : {};
|
|
2621
2630
|
if (!this.metadata.source) {
|
|
2622
2631
|
const stack = new Error().stack;
|
|
@@ -2699,16 +2708,24 @@ var init_sqlResource = __esm({
|
|
|
2699
2708
|
});
|
|
2700
2709
|
|
|
2701
2710
|
// src/dmv2/sdk/view.ts
|
|
2711
|
+
function formatTableReference2(table) {
|
|
2712
|
+
const database = table instanceof OlapTable ? table.config.database : void 0;
|
|
2713
|
+
if (database) {
|
|
2714
|
+
return `\`${database}\`.\`${table.name}\``;
|
|
2715
|
+
}
|
|
2716
|
+
return `\`${table.name}\``;
|
|
2717
|
+
}
|
|
2702
2718
|
var View;
|
|
2703
2719
|
var init_view = __esm({
|
|
2704
2720
|
"src/dmv2/sdk/view.ts"() {
|
|
2705
2721
|
"use strict";
|
|
2706
2722
|
init_sqlHelpers();
|
|
2723
|
+
init_olapTable();
|
|
2707
2724
|
init_internal();
|
|
2708
2725
|
init_stackTrace();
|
|
2709
2726
|
View = class {
|
|
2710
2727
|
/** @internal */
|
|
2711
|
-
kind = "
|
|
2728
|
+
kind = "View";
|
|
2712
2729
|
/** The name of the view */
|
|
2713
2730
|
name;
|
|
2714
2731
|
/** The SELECT SQL statement that defines the view */
|
|
@@ -2730,7 +2747,7 @@ var init_view = __esm({
|
|
|
2730
2747
|
}
|
|
2731
2748
|
this.name = name;
|
|
2732
2749
|
this.selectSql = selectStatement;
|
|
2733
|
-
this.sourceTables = baseTables.map((t) => t
|
|
2750
|
+
this.sourceTables = baseTables.map((t) => formatTableReference2(t));
|
|
2734
2751
|
this.metadata = metadata ? { ...metadata } : {};
|
|
2735
2752
|
if (!this.metadata.source) {
|
|
2736
2753
|
const stack = new Error().stack;
|
|
@@ -2739,11 +2756,11 @@ var init_view = __esm({
|
|
|
2739
2756
|
this.metadata.source = { file: sourceInfo };
|
|
2740
2757
|
}
|
|
2741
2758
|
}
|
|
2742
|
-
const
|
|
2743
|
-
if (!isClientOnlyMode() &&
|
|
2759
|
+
const views = getMooseInternal().views;
|
|
2760
|
+
if (!isClientOnlyMode() && views.has(this.name)) {
|
|
2744
2761
|
throw new Error(`View with name ${this.name} already exists`);
|
|
2745
2762
|
}
|
|
2746
|
-
|
|
2763
|
+
views.set(this.name, this);
|
|
2747
2764
|
}
|
|
2748
2765
|
};
|
|
2749
2766
|
}
|
|
@@ -2953,11 +2970,11 @@ function getMaterializedViews() {
|
|
|
2953
2970
|
function getMaterializedView(name) {
|
|
2954
2971
|
return getMooseInternal().materializedViews.get(name);
|
|
2955
2972
|
}
|
|
2956
|
-
function
|
|
2957
|
-
return getMooseInternal().
|
|
2973
|
+
function getViews() {
|
|
2974
|
+
return getMooseInternal().views;
|
|
2958
2975
|
}
|
|
2959
|
-
function
|
|
2960
|
-
return getMooseInternal().
|
|
2976
|
+
function getView(name) {
|
|
2977
|
+
return getMooseInternal().views.get(name);
|
|
2961
2978
|
}
|
|
2962
2979
|
var init_registry = __esm({
|
|
2963
2980
|
"src/dmv2/registry.ts"() {
|
|
@@ -3008,8 +3025,6 @@ __export(browserCompatible_exports, {
|
|
|
3008
3025
|
createClickhouseParameter: () => createClickhouseParameter,
|
|
3009
3026
|
getApi: () => getApi,
|
|
3010
3027
|
getApis: () => getApis2,
|
|
3011
|
-
getCustomView: () => getCustomView,
|
|
3012
|
-
getCustomViews: () => getCustomViews,
|
|
3013
3028
|
getIngestApi: () => getIngestApi,
|
|
3014
3029
|
getIngestApis: () => getIngestApis,
|
|
3015
3030
|
getMaterializedView: () => getMaterializedView,
|
|
@@ -3021,6 +3036,8 @@ __export(browserCompatible_exports, {
|
|
|
3021
3036
|
getTable: () => getTable,
|
|
3022
3037
|
getTables: () => getTables,
|
|
3023
3038
|
getValueFromParameter: () => getValueFromParameter,
|
|
3039
|
+
getView: () => getView,
|
|
3040
|
+
getViews: () => getViews,
|
|
3024
3041
|
getWebApp: () => getWebApp,
|
|
3025
3042
|
getWebApps: () => getWebApps2,
|
|
3026
3043
|
getWorkflow: () => getWorkflow,
|
|
@@ -3062,8 +3079,6 @@ init_browserCompatible();
|
|
|
3062
3079
|
createClickhouseParameter,
|
|
3063
3080
|
getApi,
|
|
3064
3081
|
getApis,
|
|
3065
|
-
getCustomView,
|
|
3066
|
-
getCustomViews,
|
|
3067
3082
|
getIngestApi,
|
|
3068
3083
|
getIngestApis,
|
|
3069
3084
|
getMaterializedView,
|
|
@@ -3075,6 +3090,8 @@ init_browserCompatible();
|
|
|
3075
3090
|
getTable,
|
|
3076
3091
|
getTables,
|
|
3077
3092
|
getValueFromParameter,
|
|
3093
|
+
getView,
|
|
3094
|
+
getViews,
|
|
3078
3095
|
getWebApp,
|
|
3079
3096
|
getWebApps,
|
|
3080
3097
|
getWorkflow,
|