@514labs/moose-lib 0.6.459 → 0.6.460
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.d.mts +5 -4
- package/dist/browserCompatible.d.ts +5 -4
- package/dist/browserCompatible.js +8 -5
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +4 -1
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.d.mts +3 -2
- package/dist/dmv2/index.d.ts +3 -2
- package/dist/dmv2/index.js +7 -4
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +4 -1
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index-Cs6mRtl7.d.ts +1305 -0
- package/dist/index-DBs6nRQN.d.mts +1305 -0
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +28 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -23
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +67 -56
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +70 -59
- package/dist/moose-runner.mjs.map +1 -1
- package/dist/testing/index.d.mts +99 -0
- package/dist/testing/index.d.ts +99 -0
- package/dist/testing/index.js +328 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/index.mjs +295 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/view-CNYx8kUh.d.mts +1327 -0
- package/dist/view-CNYx8kUh.d.ts +1327 -0
- package/package.json +7 -2
- package/dist/index-BkvEUvtm.d.mts +0 -2627
- package/dist/index-BkvEUvtm.d.ts +0 -2627
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { A as Aggregated,
|
|
1
|
+
export { A as Aggregated, f as Api, g as ApiConfig, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, c as DeadLetter, D as DeadLetterModel, d as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, e as IngestConfig, h as IngestPipeline, M as MaterializedView, j as SelectRowPolicy, k as SelectRowPolicyConfig, S as SimpleAggregated, i as SqlResource, a as Stream, b as StreamConfig, T as Task, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, N as getMaterializedView, O as getMaterializedViews, P as getSelectRowPolicies, Q as getSelectRowPolicy, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, K as getView, L as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from './index-DBs6nRQN.mjs';
|
|
2
|
+
export { n as ClickHouseAlias, d as ClickHouseByteSize, o as ClickHouseCodec, c as ClickHouseDecimal, k as ClickHouseDefault, C as ClickHouseEngines, e as ClickHouseFixedStringSize, f as ClickHouseFloat, g as ClickHouseInt, h as ClickHouseJson, m as ClickHouseMaterialized, j as ClickHouseNamedTuple, b as ClickHousePrecision, l as ClickHouseTTL, D as DateTime, p as DateTime64, r as DateTime64String, q as DateTimeString, A as Decimal, F as FixedString, s as Float32, t as Float64, G as IdentifierBrandedString, B as Insertable, u as Int16, v as Int32, w as Int64, I as Int8, L as LifeCycle, i as LowCardinality, N as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, R as RawValue, S as S3QueueTableSettings, M as Sql, J as SqlTemplateTag, x as UInt16, y as UInt32, z as UInt64, U as UInt8, H as Value, V as View, W as WithDefault, Y as createClickhouseParameter, X as getValueFromParameter, Z as mapToClickHouseType, E as quoteIdentifier, K as sql, Q as toQuery, T as toQueryPreview, P as toStaticQuery } from './view-CNYx8kUh.mjs';
|
|
2
3
|
import 'typia';
|
|
3
|
-
import 'typia/lib/tags';
|
|
4
|
-
import 'node:stream';
|
|
5
|
-
import '@clickhouse/client';
|
|
6
4
|
import '@temporalio/client';
|
|
7
5
|
import 'jose';
|
|
8
6
|
import 'http';
|
|
7
|
+
import '@clickhouse/client';
|
|
8
|
+
import 'typia/lib/tags';
|
|
9
|
+
import 'node:stream';
|
|
9
10
|
|
|
10
11
|
type Key<T extends string | number | Date> = T;
|
|
11
12
|
type JWT<T extends object> = T;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { A as Aggregated,
|
|
1
|
+
export { A as Aggregated, f as Api, g as ApiConfig, R as ApiUtil, C as ConsumptionApi, U as ConsumptionUtil, c as DeadLetter, D as DeadLetterModel, d as DeadLetterQueue, l as ETLPipeline, m as ETLPipelineConfig, E as EgressConfig, F as FrameworkApp, I as IngestApi, e as IngestConfig, h as IngestPipeline, M as MaterializedView, j as SelectRowPolicy, k as SelectRowPolicyConfig, S as SimpleAggregated, i as SqlResource, a as Stream, b as StreamConfig, T as Task, n as WebApp, o as WebAppConfig, p as WebAppHandler, W as Workflow, x as getApi, w as getApis, v as getIngestApi, u as getIngestApis, N as getMaterializedView, O as getMaterializedViews, P as getSelectRowPolicies, Q as getSelectRowPolicy, z as getSqlResource, y as getSqlResources, t as getStream, s as getStreams, r as getTable, q as getTables, K as getView, L as getViews, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows } from './index-Cs6mRtl7.js';
|
|
2
|
+
export { n as ClickHouseAlias, d as ClickHouseByteSize, o as ClickHouseCodec, c as ClickHouseDecimal, k as ClickHouseDefault, C as ClickHouseEngines, e as ClickHouseFixedStringSize, f as ClickHouseFloat, g as ClickHouseInt, h as ClickHouseJson, m as ClickHouseMaterialized, j as ClickHouseNamedTuple, b as ClickHousePrecision, l as ClickHouseTTL, D as DateTime, p as DateTime64, r as DateTime64String, q as DateTimeString, A as Decimal, F as FixedString, s as Float32, t as Float64, G as IdentifierBrandedString, B as Insertable, u as Int16, v as Int32, w as Int64, I as Int8, L as LifeCycle, i as LowCardinality, N as NonIdentifierBrandedString, a as OlapConfig, O as OlapTable, R as RawValue, S as S3QueueTableSettings, M as Sql, J as SqlTemplateTag, x as UInt16, y as UInt32, z as UInt64, U as UInt8, H as Value, V as View, W as WithDefault, Y as createClickhouseParameter, X as getValueFromParameter, Z as mapToClickHouseType, E as quoteIdentifier, K as sql, Q as toQuery, T as toQueryPreview, P as toStaticQuery } from './view-CNYx8kUh.js';
|
|
2
3
|
import 'typia';
|
|
3
|
-
import 'typia/lib/tags';
|
|
4
|
-
import 'node:stream';
|
|
5
|
-
import '@clickhouse/client';
|
|
6
4
|
import '@temporalio/client';
|
|
7
5
|
import 'jose';
|
|
8
6
|
import 'http';
|
|
7
|
+
import '@clickhouse/client';
|
|
8
|
+
import 'typia/lib/tags';
|
|
9
|
+
import 'node:stream';
|
|
9
10
|
|
|
10
11
|
type Key<T extends string | number | Date> = T;
|
|
11
12
|
type JWT<T extends object> = T;
|
|
@@ -695,7 +695,7 @@ init_commons();
|
|
|
695
695
|
|
|
696
696
|
// src/consumption-apis/helpers.ts
|
|
697
697
|
var import_client2 = require("@temporalio/client");
|
|
698
|
-
var
|
|
698
|
+
var import_node_crypto2 = require("crypto");
|
|
699
699
|
|
|
700
700
|
// src/sqlHelpers.ts
|
|
701
701
|
var quoteIdentifier = (name) => {
|
|
@@ -887,6 +887,9 @@ function emptyIfUndefined(value) {
|
|
|
887
887
|
return value === void 0 ? "" : value;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
+
// src/consumption-apis/query-client.ts
|
|
891
|
+
var import_node_crypto = require("crypto");
|
|
892
|
+
|
|
890
893
|
// src/clients/redisClient.ts
|
|
891
894
|
var import_redis = require("redis");
|
|
892
895
|
|
|
@@ -1357,7 +1360,7 @@ var dlqColumns = [
|
|
|
1357
1360
|
|
|
1358
1361
|
// src/dmv2/sdk/olapTable.ts
|
|
1359
1362
|
var import_node_stream = require("stream");
|
|
1360
|
-
var
|
|
1363
|
+
var import_node_crypto3 = require("crypto");
|
|
1361
1364
|
var OlapTable2 = class extends TypedBase {
|
|
1362
1365
|
name;
|
|
1363
1366
|
/** @internal */
|
|
@@ -1422,7 +1425,7 @@ var OlapTable2 = class extends TypedBase {
|
|
|
1422
1425
|
createConfigHash(clickhouseConfig) {
|
|
1423
1426
|
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
1424
1427
|
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
1425
|
-
return (0,
|
|
1428
|
+
return (0, import_node_crypto3.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
|
|
1426
1429
|
}
|
|
1427
1430
|
/**
|
|
1428
1431
|
* Gets or creates a memoized ClickHouse client.
|
|
@@ -2092,7 +2095,7 @@ var OlapTable2 = class extends TypedBase {
|
|
|
2092
2095
|
};
|
|
2093
2096
|
|
|
2094
2097
|
// src/dmv2/sdk/stream.ts
|
|
2095
|
-
var
|
|
2098
|
+
var import_node_crypto4 = require("crypto");
|
|
2096
2099
|
var RoutedMessage = class {
|
|
2097
2100
|
/** The destination stream for the message */
|
|
2098
2101
|
destination;
|
|
@@ -2166,7 +2169,7 @@ var Stream = class extends TypedBase {
|
|
|
2166
2169
|
kafkaConfig.securityProtocol,
|
|
2167
2170
|
kafkaConfig.namespace
|
|
2168
2171
|
].join(":");
|
|
2169
|
-
return (0,
|
|
2172
|
+
return (0, import_node_crypto4.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
|
|
2170
2173
|
}
|
|
2171
2174
|
/**
|
|
2172
2175
|
* Gets or creates a memoized KafkaJS producer using runtime configuration.
|