@514labs/moose-lib 0.6.239-ci-1-g1e5af572 → 0.6.239-ci-4-g4348a9e3
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-CMLITD0_.d.ts → browserCompatible-B3DCF1U4.d.ts} +1 -1
- package/dist/{browserCompatible-BRa8sgXw.d.mts → browserCompatible-BonAvoqJ.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +24 -16
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +24 -16
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/compilerPlugin.js +22 -3
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs +22 -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 +24 -16
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +24 -16
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-BG2HP0xG.d.mts → index-DsCMbhN3.d.mts} +13 -4
- package/dist/{index-BG2HP0xG.d.ts → index-DsCMbhN3.d.ts} +13 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +24 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -13
- 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
|
@@ -151,6 +151,12 @@ declare class TypedBase<T, C> {
|
|
|
151
151
|
metadata: {
|
|
152
152
|
[key: string]: any;
|
|
153
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
156
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
157
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
158
|
+
*/
|
|
159
|
+
allowExtraFields: boolean;
|
|
154
160
|
/**
|
|
155
161
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
156
162
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -159,8 +165,9 @@ declare class TypedBase<T, C> {
|
|
|
159
165
|
* @param config The configuration object for the resource.
|
|
160
166
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
161
167
|
* @param columns The array of Column definitions for T (injected).
|
|
168
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
162
169
|
*/
|
|
163
|
-
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T
|
|
170
|
+
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T>, allowExtraFields?: boolean);
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
interface MaterializedViewCreateOptions {
|
|
@@ -1089,7 +1096,7 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1089
1096
|
*/
|
|
1090
1097
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1091
1098
|
/** @internal **/
|
|
1092
|
-
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1099
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1093
1100
|
/**
|
|
1094
1101
|
* Internal map storing transformation configurations.
|
|
1095
1102
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1460,7 +1467,7 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1460
1467
|
*/
|
|
1461
1468
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1462
1469
|
/** @internal **/
|
|
1463
|
-
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1470
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1464
1471
|
}
|
|
1465
1472
|
|
|
1466
1473
|
interface ApiUtil {
|
|
@@ -1754,8 +1761,10 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1754
1761
|
* @param config Configuration specifying which components to create and their settings.
|
|
1755
1762
|
* @param schema JSON schema collection for type validation.
|
|
1756
1763
|
* @param columns Column definitions for the data model.
|
|
1764
|
+
* @param validators Typia validation functions.
|
|
1765
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
1757
1766
|
*/
|
|
1758
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1767
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>, allowExtraFields: boolean);
|
|
1759
1768
|
}
|
|
1760
1769
|
|
|
1761
1770
|
interface ETLPipelineConfig<T, U> {
|
|
@@ -151,6 +151,12 @@ declare class TypedBase<T, C> {
|
|
|
151
151
|
metadata: {
|
|
152
152
|
[key: string]: any;
|
|
153
153
|
};
|
|
154
|
+
/**
|
|
155
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
156
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
157
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
158
|
+
*/
|
|
159
|
+
allowExtraFields: boolean;
|
|
154
160
|
/**
|
|
155
161
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
156
162
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -159,8 +165,9 @@ declare class TypedBase<T, C> {
|
|
|
159
165
|
* @param config The configuration object for the resource.
|
|
160
166
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
161
167
|
* @param columns The array of Column definitions for T (injected).
|
|
168
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
162
169
|
*/
|
|
163
|
-
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T
|
|
170
|
+
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T>, allowExtraFields?: boolean);
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
interface MaterializedViewCreateOptions {
|
|
@@ -1089,7 +1096,7 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1089
1096
|
*/
|
|
1090
1097
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1091
1098
|
/** @internal **/
|
|
1092
|
-
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1099
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1093
1100
|
/**
|
|
1094
1101
|
* Internal map storing transformation configurations.
|
|
1095
1102
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1460,7 +1467,7 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1460
1467
|
*/
|
|
1461
1468
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1462
1469
|
/** @internal **/
|
|
1463
|
-
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1470
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1464
1471
|
}
|
|
1465
1472
|
|
|
1466
1473
|
interface ApiUtil {
|
|
@@ -1754,8 +1761,10 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1754
1761
|
* @param config Configuration specifying which components to create and their settings.
|
|
1755
1762
|
* @param schema JSON schema collection for type validation.
|
|
1756
1763
|
* @param columns Column definitions for the data model.
|
|
1764
|
+
* @param validators Typia validation functions.
|
|
1765
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
1757
1766
|
*/
|
|
1758
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1767
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>, allowExtraFields: boolean);
|
|
1759
1768
|
}
|
|
1760
1769
|
|
|
1761
1770
|
interface ETLPipelineConfig<T, U> {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-
|
|
2
|
-
import { K as ApiUtil, a4 as MooseClient } from './index-
|
|
3
|
-
export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
1
|
+
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-BonAvoqJ.mjs';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-DsCMbhN3.mjs';
|
|
3
|
+
export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DsCMbhN3.mjs';
|
|
4
4
|
import * as _clickhouse_client from '@clickhouse/client';
|
|
5
5
|
import { KafkaJS } from '@confluentinc/kafka-javascript';
|
|
6
6
|
import http from 'http';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-
|
|
2
|
-
import { K as ApiUtil, a4 as MooseClient } from './index-
|
|
3
|
-
export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-
|
|
1
|
+
export { C as ClickHouseByteSize, p as ClickHouseCodec, j as ClickHouseDecimal, n as ClickHouseDefault, k as ClickHouseFixedStringSize, l as ClickHouseFloat, a as ClickHouseInt, m as ClickHouseJson, e as ClickHouseLineString, 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, q as DateTime64, s as DateTime64String, r as DateTimeString, B as Decimal, F as FixedString, t as Float32, u as Float64, v as Int16, w as Int32, x as Int64, I as Int8, J as JWT, K as Key, L as LowCardinality, y as UInt16, z as UInt32, A as UInt64, U as UInt8, W as WithDefault } from './browserCompatible-B3DCF1U4.js';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-DsCMbhN3.js';
|
|
3
|
+
export { A as Aggregated, h as Api, i as ApiConfig, ad as ApiHelpers, a5 as Blocks, a6 as ClickHouseEngines, C as ConsumptionApi, ae 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, aa 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, ab as WorkflowClient, a2 as createClickhouseParameter, a8 as createMaterializedView, a7 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, ac as getTemporalClient, a1 as getValueFromParameter, J as getWebApp, H as getWebApps, G as getWorkflow, B as getWorkflows, af as joinQueries, a3 as mapToClickHouseType, a9 as populateTable, P as quoteIdentifier, Y as sql, $ as toQuery, a0 as toQueryPreview, _ as toStaticQuery } from './index-DsCMbhN3.js';
|
|
4
4
|
import * as _clickhouse_client from '@clickhouse/client';
|
|
5
5
|
import { KafkaJS } from '@confluentinc/kafka-javascript';
|
|
6
6
|
import http from 'http';
|
package/dist/index.js
CHANGED
|
@@ -493,6 +493,12 @@ var TypedBase = class {
|
|
|
493
493
|
validators;
|
|
494
494
|
/** Optional metadata for the resource, always present as an object. */
|
|
495
495
|
metadata;
|
|
496
|
+
/**
|
|
497
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
498
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
499
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
500
|
+
*/
|
|
501
|
+
allowExtraFields;
|
|
496
502
|
/**
|
|
497
503
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
498
504
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -501,8 +507,9 @@ var TypedBase = class {
|
|
|
501
507
|
* @param config The configuration object for the resource.
|
|
502
508
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
503
509
|
* @param columns The array of Column definitions for T (injected).
|
|
510
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
504
511
|
*/
|
|
505
|
-
constructor(name, config, schema, columns, validators) {
|
|
512
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
506
513
|
if (schema === void 0 || columns === void 0) {
|
|
507
514
|
throw new Error(
|
|
508
515
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
@@ -518,6 +525,7 @@ var TypedBase = class {
|
|
|
518
525
|
this.name = name;
|
|
519
526
|
this.config = config;
|
|
520
527
|
this.validators = validators;
|
|
528
|
+
this.allowExtraFields = allowExtraFields ?? false;
|
|
521
529
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
522
530
|
const stack = new Error().stack;
|
|
523
531
|
if (stack) {
|
|
@@ -726,7 +734,6 @@ init_commons();
|
|
|
726
734
|
function getSourceDir() {
|
|
727
735
|
return import_process.default.env.MOOSE_SOURCE_DIR || "app";
|
|
728
736
|
}
|
|
729
|
-
var isClientOnlyMode = () => import_process.default.env.MOOSE_CLIENT_ONLY === "true";
|
|
730
737
|
var moose_internal = {
|
|
731
738
|
tables: /* @__PURE__ */ new Map(),
|
|
732
739
|
streams: /* @__PURE__ */ new Map(),
|
|
@@ -923,7 +930,7 @@ var OlapTable = class extends TypedBase {
|
|
|
923
930
|
this.name = name;
|
|
924
931
|
const tables = getMooseInternal().tables;
|
|
925
932
|
const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
|
|
926
|
-
if (
|
|
933
|
+
if (tables.has(registryKey)) {
|
|
927
934
|
throw new Error(
|
|
928
935
|
`OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
|
|
929
936
|
);
|
|
@@ -1596,8 +1603,8 @@ var Stream = class extends TypedBase {
|
|
|
1596
1603
|
_memoizedProducer;
|
|
1597
1604
|
/** @internal Hash of the configuration used to create the memoized Kafka producer */
|
|
1598
1605
|
_kafkaConfigHash;
|
|
1599
|
-
constructor(name, config, schema, columns) {
|
|
1600
|
-
super(name, config ?? {}, schema, columns);
|
|
1606
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
1607
|
+
super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
|
|
1601
1608
|
const streams = getMooseInternal().streams;
|
|
1602
1609
|
if (streams.has(name)) {
|
|
1603
1610
|
throw new Error(`Stream with name ${name} already exists`);
|
|
@@ -1849,7 +1856,7 @@ var DeadLetterQueue = class extends Stream {
|
|
|
1849
1856
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
1850
1857
|
);
|
|
1851
1858
|
}
|
|
1852
|
-
super(name, config ?? {}, dlqSchema, dlqColumns);
|
|
1859
|
+
super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
|
|
1853
1860
|
this.typeGuard = typeGuard;
|
|
1854
1861
|
getMooseInternal().streams.set(name, this);
|
|
1855
1862
|
}
|
|
@@ -2015,8 +2022,8 @@ var Workflow = class {
|
|
|
2015
2022
|
|
|
2016
2023
|
// src/dmv2/sdk/ingestApi.ts
|
|
2017
2024
|
var IngestApi = class extends TypedBase {
|
|
2018
|
-
constructor(name, config, schema, columns) {
|
|
2019
|
-
super(name, config, schema, columns);
|
|
2025
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
2026
|
+
super(name, config, schema, columns, void 0, allowExtraFields);
|
|
2020
2027
|
const ingestApis = getMooseInternal().ingestApis;
|
|
2021
2028
|
if (ingestApis.has(name)) {
|
|
2022
2029
|
throw new Error(`Ingest API with name ${name} already exists`);
|
|
@@ -2155,8 +2162,8 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2155
2162
|
ingestApi;
|
|
2156
2163
|
/** The dead letter queue of the pipeline, if configured. */
|
|
2157
2164
|
deadLetterQueue;
|
|
2158
|
-
constructor(name, config, schema, columns, validators) {
|
|
2159
|
-
super(name, config, schema, columns, validators);
|
|
2165
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
2166
|
+
super(name, config, schema, columns, validators, allowExtraFields);
|
|
2160
2167
|
if (config.ingest !== void 0) {
|
|
2161
2168
|
console.warn(
|
|
2162
2169
|
"\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
|
|
@@ -2205,7 +2212,9 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2205
2212
|
name,
|
|
2206
2213
|
streamConfig,
|
|
2207
2214
|
this.schema,
|
|
2208
|
-
this.columnArray
|
|
2215
|
+
this.columnArray,
|
|
2216
|
+
void 0,
|
|
2217
|
+
this.allowExtraFields
|
|
2209
2218
|
);
|
|
2210
2219
|
this.stream.pipelineParent = this;
|
|
2211
2220
|
}
|
|
@@ -2225,7 +2234,9 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2225
2234
|
name,
|
|
2226
2235
|
ingestConfig,
|
|
2227
2236
|
this.schema,
|
|
2228
|
-
this.columnArray
|
|
2237
|
+
this.columnArray,
|
|
2238
|
+
void 0,
|
|
2239
|
+
this.allowExtraFields
|
|
2229
2240
|
);
|
|
2230
2241
|
this.ingestApi.pipelineParent = this;
|
|
2231
2242
|
}
|
|
@@ -2399,7 +2410,7 @@ var SqlResource = class {
|
|
|
2399
2410
|
*/
|
|
2400
2411
|
constructor(name, setup, teardown, options) {
|
|
2401
2412
|
const sqlResources = getMooseInternal().sqlResources;
|
|
2402
|
-
if (
|
|
2413
|
+
if (sqlResources.has(name)) {
|
|
2403
2414
|
throw new Error(`SqlResource with name ${name} already exists`);
|
|
2404
2415
|
}
|
|
2405
2416
|
sqlResources.set(name, this);
|