@514labs/moose-lib 0.6.259-ci-1-g418c03bd → 0.6.259-ci-8-g7b4b6f96
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-B_aEflr_.d.ts → browserCompatible-DKJsM6sO.d.ts} +1 -1
- package/dist/{browserCompatible-DnYA4Zgi.d.mts → browserCompatible-G5C0qk2P.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +22 -10
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +22 -10
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/compilerPlugin.js +35 -3
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs +35 -3
- package/dist/compilerPlugin.mjs.map +1 -1
- package/dist/dataModels/toDataModels.js +2 -2
- package/dist/dataModels/toDataModels.js.map +1 -1
- package/dist/dataModels/toDataModels.mjs +2 -2
- package/dist/dataModels/toDataModels.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 -10
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +22 -10
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-rECDLgTX.d.mts → index-DzjegH9H.d.mts} +25 -6
- package/dist/{index-rECDLgTX.d.ts → index-DzjegH9H.d.ts} +25 -6
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +22 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -10
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +2 -1
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +2 -1
- 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, K as ApiUtil, C as ConsumptionApi, 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, 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, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
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, K as ApiUtil, C as ConsumptionApi, 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, 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, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DzjegH9H.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-G5C0qk2P.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, K as ApiUtil, C as ConsumptionApi, 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, 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, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
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, K as ApiUtil, C as ConsumptionApi, 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, 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, a2 as createClickhouseParameter, 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, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, a3 as mapToClickHouseType, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DzjegH9H.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-DKJsM6sO.js';
|
|
3
3
|
import 'typia';
|
|
4
4
|
import 'typia/src/schemas/json/IJsonSchemaCollection';
|
|
5
5
|
import 'node:stream';
|
|
@@ -473,6 +473,12 @@ var TypedBase = class {
|
|
|
473
473
|
validators;
|
|
474
474
|
/** Optional metadata for the resource, always present as an object. */
|
|
475
475
|
metadata;
|
|
476
|
+
/**
|
|
477
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
478
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
479
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
480
|
+
*/
|
|
481
|
+
allowExtraFields;
|
|
476
482
|
/**
|
|
477
483
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
478
484
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -481,8 +487,9 @@ var TypedBase = class {
|
|
|
481
487
|
* @param config The configuration object for the resource.
|
|
482
488
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
483
489
|
* @param columns The array of Column definitions for T (injected).
|
|
490
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
484
491
|
*/
|
|
485
|
-
constructor(name, config, schema, columns, validators) {
|
|
492
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
486
493
|
if (schema === void 0 || columns === void 0) {
|
|
487
494
|
throw new Error(
|
|
488
495
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
@@ -498,6 +505,7 @@ var TypedBase = class {
|
|
|
498
505
|
this.name = name;
|
|
499
506
|
this.config = config;
|
|
500
507
|
this.validators = validators;
|
|
508
|
+
this.allowExtraFields = allowExtraFields ?? false;
|
|
501
509
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
502
510
|
const stack = new Error().stack;
|
|
503
511
|
if (stack) {
|
|
@@ -1561,8 +1569,8 @@ var Stream = class extends TypedBase {
|
|
|
1561
1569
|
_memoizedProducer;
|
|
1562
1570
|
/** @internal Hash of the configuration used to create the memoized Kafka producer */
|
|
1563
1571
|
_kafkaConfigHash;
|
|
1564
|
-
constructor(name, config, schema, columns) {
|
|
1565
|
-
super(name, config ?? {}, schema, columns);
|
|
1572
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
1573
|
+
super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
|
|
1566
1574
|
const streams = getMooseInternal().streams;
|
|
1567
1575
|
if (streams.has(name)) {
|
|
1568
1576
|
throw new Error(`Stream with name ${name} already exists`);
|
|
@@ -1818,7 +1826,7 @@ var DeadLetterQueue = class extends Stream {
|
|
|
1818
1826
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
1819
1827
|
);
|
|
1820
1828
|
}
|
|
1821
|
-
super(name, config ?? {}, dlqSchema, dlqColumns);
|
|
1829
|
+
super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
|
|
1822
1830
|
this.typeGuard = typeGuard;
|
|
1823
1831
|
getMooseInternal().streams.set(name, this);
|
|
1824
1832
|
}
|
|
@@ -1984,8 +1992,8 @@ var Workflow = class {
|
|
|
1984
1992
|
|
|
1985
1993
|
// src/dmv2/sdk/ingestApi.ts
|
|
1986
1994
|
var IngestApi = class extends TypedBase {
|
|
1987
|
-
constructor(name, config, schema, columns) {
|
|
1988
|
-
super(name, config, schema, columns);
|
|
1995
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
1996
|
+
super(name, config, schema, columns, void 0, allowExtraFields);
|
|
1989
1997
|
const ingestApis = getMooseInternal().ingestApis;
|
|
1990
1998
|
if (ingestApis.has(name)) {
|
|
1991
1999
|
throw new Error(`Ingest API with name ${name} already exists`);
|
|
@@ -2124,8 +2132,8 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2124
2132
|
ingestApi;
|
|
2125
2133
|
/** The dead letter queue of the pipeline, if configured. */
|
|
2126
2134
|
deadLetterQueue;
|
|
2127
|
-
constructor(name, config, schema, columns, validators) {
|
|
2128
|
-
super(name, config, schema, columns, validators);
|
|
2135
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
2136
|
+
super(name, config, schema, columns, validators, allowExtraFields);
|
|
2129
2137
|
if (config.ingest !== void 0) {
|
|
2130
2138
|
console.warn(
|
|
2131
2139
|
"\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
|
|
@@ -2174,7 +2182,9 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2174
2182
|
name,
|
|
2175
2183
|
streamConfig,
|
|
2176
2184
|
this.schema,
|
|
2177
|
-
this.columnArray
|
|
2185
|
+
this.columnArray,
|
|
2186
|
+
void 0,
|
|
2187
|
+
this.allowExtraFields
|
|
2178
2188
|
);
|
|
2179
2189
|
this.stream.pipelineParent = this;
|
|
2180
2190
|
}
|
|
@@ -2194,7 +2204,9 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2194
2204
|
name,
|
|
2195
2205
|
ingestConfig,
|
|
2196
2206
|
this.schema,
|
|
2197
|
-
this.columnArray
|
|
2207
|
+
this.columnArray,
|
|
2208
|
+
void 0,
|
|
2209
|
+
this.allowExtraFields
|
|
2198
2210
|
);
|
|
2199
2211
|
this.ingestApi.pipelineParent = this;
|
|
2200
2212
|
}
|