@514labs/moose-lib 0.6.290-ci-8-g57f77993 → 0.6.290-ci-10-gaf565d22
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-DPtRRKkt.d.mts → browserCompatible-Ddm1MeOX.d.mts} +1 -1
- package/dist/{browserCompatible-BkdnWcKd.d.ts → browserCompatible-N0vNe6CP.d.ts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js.map +1 -1
- 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.map +1 -1
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-BpS8KBOP.d.mts → index-C6Y6fn_9.d.mts} +1 -0
- package/dist/{index-BpS8KBOP.d.ts → index-C6Y6fn_9.d.ts} +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +31 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -18
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +31 -18
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +31 -18
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
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, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, 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-
|
|
2
|
-
import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-
|
|
3
|
-
export { A as Aggregated, h as Api, i as ApiConfig, ae as ApiHelpers, a6 as Blocks, a7 as ClickHouseEngines, C as ConsumptionApi, af as ConsumptionHelpers, 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, ab as QueryClient, 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, ac as WorkflowClient, a2 as createClickhouseParameter, a9 as createMaterializedView, a8 as dropView, 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, ad as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ag as joinQueries, a3 as mapToClickHouseType, aa as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
1
|
+
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, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, 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-Ddm1MeOX.mjs';
|
|
2
|
+
import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-C6Y6fn_9.mjs';
|
|
3
|
+
export { A as Aggregated, h as Api, i as ApiConfig, ae as ApiHelpers, a6 as Blocks, a7 as ClickHouseEngines, C as ConsumptionApi, af as ConsumptionHelpers, 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, ab as QueryClient, 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, ac as WorkflowClient, a2 as createClickhouseParameter, a9 as createMaterializedView, a8 as dropView, 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, ad as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ag as joinQueries, a3 as mapToClickHouseType, aa as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-C6Y6fn_9.mjs';
|
|
4
4
|
import * as _clickhouse_client from '@clickhouse/client';
|
|
5
5
|
import { KafkaJS } from '@514labs/kafka-javascript';
|
|
6
6
|
import { IsTuple } from 'typia/lib/typings/IsTuple';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
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, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, 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-
|
|
2
|
-
import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-
|
|
3
|
-
export { A as Aggregated, h as Api, i as ApiConfig, ae as ApiHelpers, a6 as Blocks, a7 as ClickHouseEngines, C as ConsumptionApi, af as ConsumptionHelpers, 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, ab as QueryClient, 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, ac as WorkflowClient, a2 as createClickhouseParameter, a9 as createMaterializedView, a8 as dropView, 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, ad as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ag as joinQueries, a3 as mapToClickHouseType, aa as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
1
|
+
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, e as ClickHouseLineString, p as ClickHouseMaterialized, f as ClickHouseMultiLineString, h as ClickHouseMultiPolygon, b as ClickHouseNamedTuple, c as ClickHousePoint, g as ClickHousePolygon, i as ClickHousePrecision, d as ClickHouseRing, 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-N0vNe6CP.js';
|
|
2
|
+
import { a4 as MooseUtils, K as ApiUtil, a5 as MooseClient } from './index-C6Y6fn_9.js';
|
|
3
|
+
export { A as Aggregated, h as Api, i as ApiConfig, ae as ApiHelpers, a6 as Blocks, a7 as ClickHouseEngines, C as ConsumptionApi, af as ConsumptionHelpers, 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, ab as QueryClient, 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, ac as WorkflowClient, a2 as createClickhouseParameter, a9 as createMaterializedView, a8 as dropView, 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, ad as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, ag as joinQueries, a3 as mapToClickHouseType, aa as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-C6Y6fn_9.js';
|
|
4
4
|
import * as _clickhouse_client from '@clickhouse/client';
|
|
5
5
|
import { KafkaJS } from '@514labs/kafka-javascript';
|
|
6
6
|
import { IsTuple } from 'typia/lib/typings/IsTuple';
|
package/dist/index.js
CHANGED
|
@@ -3488,30 +3488,42 @@ async function getMooseUtils(req) {
|
|
|
3488
3488
|
if (runtimeContext) {
|
|
3489
3489
|
return {
|
|
3490
3490
|
client: runtimeContext.client,
|
|
3491
|
-
sql
|
|
3491
|
+
sql,
|
|
3492
|
+
jwt: runtimeContext.jwt
|
|
3492
3493
|
};
|
|
3493
3494
|
}
|
|
3494
3495
|
if (standaloneUtils) {
|
|
3495
3496
|
return standaloneUtils;
|
|
3496
3497
|
}
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3498
|
+
if (initPromise2) {
|
|
3499
|
+
return initPromise2;
|
|
3500
|
+
}
|
|
3501
|
+
initPromise2 = (async () => {
|
|
3502
|
+
await Promise.resolve().then(() => (init_runtime(), runtime_exports));
|
|
3503
|
+
const configRegistry = globalThis._mooseConfigRegistry;
|
|
3504
|
+
if (!configRegistry) {
|
|
3505
|
+
throw new Error(
|
|
3506
|
+
"Moose not initialized. Ensure you're running within a Moose app or have proper configuration set up."
|
|
3507
|
+
);
|
|
3508
|
+
}
|
|
3509
|
+
const clickhouseConfig = await configRegistry.getStandaloneClickhouseConfig();
|
|
3510
|
+
const clickhouseClient = getClickhouseClient(
|
|
3511
|
+
toClientConfig(clickhouseConfig)
|
|
3502
3512
|
);
|
|
3513
|
+
const queryClient = new QueryClient(clickhouseClient, "standalone");
|
|
3514
|
+
const mooseClient = new MooseClient(queryClient);
|
|
3515
|
+
standaloneUtils = {
|
|
3516
|
+
client: mooseClient,
|
|
3517
|
+
sql,
|
|
3518
|
+
jwt: void 0
|
|
3519
|
+
};
|
|
3520
|
+
return standaloneUtils;
|
|
3521
|
+
})();
|
|
3522
|
+
try {
|
|
3523
|
+
return await initPromise2;
|
|
3524
|
+
} finally {
|
|
3525
|
+
initPromise2 = null;
|
|
3503
3526
|
}
|
|
3504
|
-
const clickhouseConfig = await configRegistry.getStandaloneClickhouseConfig();
|
|
3505
|
-
const clickhouseClient = getClickhouseClient(
|
|
3506
|
-
toClientConfig(clickhouseConfig)
|
|
3507
|
-
);
|
|
3508
|
-
const queryClient = new QueryClient(clickhouseClient, "standalone");
|
|
3509
|
-
const mooseClient = new MooseClient(queryClient);
|
|
3510
|
-
standaloneUtils = {
|
|
3511
|
-
client: mooseClient,
|
|
3512
|
-
sql
|
|
3513
|
-
};
|
|
3514
|
-
return standaloneUtils;
|
|
3515
3527
|
}
|
|
3516
3528
|
async function getMooseClients(config) {
|
|
3517
3529
|
console.warn(
|
|
@@ -3536,7 +3548,7 @@ async function getMooseClients(config) {
|
|
|
3536
3548
|
const utils = await getMooseUtils();
|
|
3537
3549
|
return { client: utils.client };
|
|
3538
3550
|
}
|
|
3539
|
-
var standaloneUtils, toClientConfig;
|
|
3551
|
+
var standaloneUtils, initPromise2, toClientConfig;
|
|
3540
3552
|
var init_standalone = __esm({
|
|
3541
3553
|
"src/consumption-apis/standalone.ts"() {
|
|
3542
3554
|
"use strict";
|
|
@@ -3544,6 +3556,7 @@ var init_standalone = __esm({
|
|
|
3544
3556
|
init_commons();
|
|
3545
3557
|
init_sqlHelpers();
|
|
3546
3558
|
standaloneUtils = null;
|
|
3559
|
+
initPromise2 = null;
|
|
3547
3560
|
toClientConfig = (config) => ({
|
|
3548
3561
|
...config,
|
|
3549
3562
|
useSSL: config.useSSL ? "true" : "false"
|