@514labs/moose-lib 0.6.264 → 0.6.266
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-Bqhjy4pn.d.ts → browserCompatible-CpjUXotI.d.ts} +1 -1
- package/dist/{browserCompatible-DTtKuO-Y.d.mts → browserCompatible-fk6xPzoB.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +31 -12
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +31 -12
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/compilerPlugin.js +43 -3
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs +43 -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 +31 -12
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +31 -12
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-CQB6bk1i.d.mts → index-Dd3ZmpTq.d.mts} +25 -6
- package/dist/{index-CQB6bk1i.d.ts → index-Dd3ZmpTq.d.ts} +25 -6
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +31 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -12
- 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
|
@@ -152,6 +152,12 @@ declare class TypedBase<T, C> {
|
|
|
152
152
|
metadata: {
|
|
153
153
|
[key: string]: any;
|
|
154
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
157
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
158
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
159
|
+
*/
|
|
160
|
+
allowExtraFields: boolean;
|
|
155
161
|
/**
|
|
156
162
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
157
163
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -160,8 +166,9 @@ declare class TypedBase<T, C> {
|
|
|
160
166
|
* @param config The configuration object for the resource.
|
|
161
167
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
162
168
|
* @param columns The array of Column definitions for T (injected).
|
|
169
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
163
170
|
*/
|
|
164
|
-
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T
|
|
171
|
+
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T>, allowExtraFields?: boolean);
|
|
165
172
|
}
|
|
166
173
|
|
|
167
174
|
interface MaterializedViewCreateOptions {
|
|
@@ -1132,8 +1139,13 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1132
1139
|
* @param config Optional configuration for the stream.
|
|
1133
1140
|
*/
|
|
1134
1141
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1135
|
-
/**
|
|
1136
|
-
|
|
1142
|
+
/**
|
|
1143
|
+
* @internal
|
|
1144
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for Stream).
|
|
1145
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1146
|
+
* allowExtraFields as the 6th param. Stream doesn't use validators.
|
|
1147
|
+
*/
|
|
1148
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1137
1149
|
/**
|
|
1138
1150
|
* Internal map storing transformation configurations.
|
|
1139
1151
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1503,8 +1515,13 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1503
1515
|
* @param config Optional configuration for the ingest API.
|
|
1504
1516
|
*/
|
|
1505
1517
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1506
|
-
/**
|
|
1507
|
-
|
|
1518
|
+
/**
|
|
1519
|
+
* @internal
|
|
1520
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for IngestApi).
|
|
1521
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1522
|
+
* allowExtraFields as the 6th param. IngestApi doesn't use validators.
|
|
1523
|
+
*/
|
|
1524
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1508
1525
|
}
|
|
1509
1526
|
|
|
1510
1527
|
interface ApiUtil {
|
|
@@ -1798,8 +1815,10 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1798
1815
|
* @param config Configuration specifying which components to create and their settings.
|
|
1799
1816
|
* @param schema JSON schema collection for type validation.
|
|
1800
1817
|
* @param columns Column definitions for the data model.
|
|
1818
|
+
* @param validators Typia validation functions.
|
|
1819
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
1801
1820
|
*/
|
|
1802
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1821
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>, allowExtraFields: boolean);
|
|
1803
1822
|
}
|
|
1804
1823
|
|
|
1805
1824
|
interface ETLPipelineConfig<T, U> {
|
|
@@ -152,6 +152,12 @@ declare class TypedBase<T, C> {
|
|
|
152
152
|
metadata: {
|
|
153
153
|
[key: string]: any;
|
|
154
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
157
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
158
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
159
|
+
*/
|
|
160
|
+
allowExtraFields: boolean;
|
|
155
161
|
/**
|
|
156
162
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
157
163
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -160,8 +166,9 @@ declare class TypedBase<T, C> {
|
|
|
160
166
|
* @param config The configuration object for the resource.
|
|
161
167
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
162
168
|
* @param columns The array of Column definitions for T (injected).
|
|
169
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
163
170
|
*/
|
|
164
|
-
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T
|
|
171
|
+
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T>, allowExtraFields?: boolean);
|
|
165
172
|
}
|
|
166
173
|
|
|
167
174
|
interface MaterializedViewCreateOptions {
|
|
@@ -1132,8 +1139,13 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1132
1139
|
* @param config Optional configuration for the stream.
|
|
1133
1140
|
*/
|
|
1134
1141
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1135
|
-
/**
|
|
1136
|
-
|
|
1142
|
+
/**
|
|
1143
|
+
* @internal
|
|
1144
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for Stream).
|
|
1145
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1146
|
+
* allowExtraFields as the 6th param. Stream doesn't use validators.
|
|
1147
|
+
*/
|
|
1148
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1137
1149
|
/**
|
|
1138
1150
|
* Internal map storing transformation configurations.
|
|
1139
1151
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1503,8 +1515,13 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1503
1515
|
* @param config Optional configuration for the ingest API.
|
|
1504
1516
|
*/
|
|
1505
1517
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1506
|
-
/**
|
|
1507
|
-
|
|
1518
|
+
/**
|
|
1519
|
+
* @internal
|
|
1520
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for IngestApi).
|
|
1521
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1522
|
+
* allowExtraFields as the 6th param. IngestApi doesn't use validators.
|
|
1523
|
+
*/
|
|
1524
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1508
1525
|
}
|
|
1509
1526
|
|
|
1510
1527
|
interface ApiUtil {
|
|
@@ -1798,8 +1815,10 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1798
1815
|
* @param config Configuration specifying which components to create and their settings.
|
|
1799
1816
|
* @param schema JSON schema collection for type validation.
|
|
1800
1817
|
* @param columns Column definitions for the data model.
|
|
1818
|
+
* @param validators Typia validation functions.
|
|
1819
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
1801
1820
|
*/
|
|
1802
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1821
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>, allowExtraFields: boolean);
|
|
1803
1822
|
}
|
|
1804
1823
|
|
|
1805
1824
|
interface ETLPipelineConfig<T, U> {
|
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 { 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, 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-fk6xPzoB.mjs';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-Dd3ZmpTq.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-Dd3ZmpTq.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, 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 { 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, 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-CpjUXotI.js';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-Dd3ZmpTq.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-Dd3ZmpTq.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
|
@@ -544,6 +544,12 @@ var TypedBase = class {
|
|
|
544
544
|
validators;
|
|
545
545
|
/** Optional metadata for the resource, always present as an object. */
|
|
546
546
|
metadata;
|
|
547
|
+
/**
|
|
548
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
549
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
550
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
551
|
+
*/
|
|
552
|
+
allowExtraFields;
|
|
547
553
|
/**
|
|
548
554
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
549
555
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -552,8 +558,9 @@ var TypedBase = class {
|
|
|
552
558
|
* @param config The configuration object for the resource.
|
|
553
559
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
554
560
|
* @param columns The array of Column definitions for T (injected).
|
|
561
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
555
562
|
*/
|
|
556
|
-
constructor(name, config, schema, columns, validators) {
|
|
563
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
557
564
|
if (schema === void 0 || columns === void 0) {
|
|
558
565
|
throw new Error(
|
|
559
566
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
@@ -569,6 +576,7 @@ var TypedBase = class {
|
|
|
569
576
|
this.name = name;
|
|
570
577
|
this.config = config;
|
|
571
578
|
this.validators = validators;
|
|
579
|
+
this.allowExtraFields = allowExtraFields ?? false;
|
|
572
580
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
573
581
|
const stack = new Error().stack;
|
|
574
582
|
if (stack) {
|
|
@@ -1653,8 +1661,8 @@ var Stream = class extends TypedBase {
|
|
|
1653
1661
|
_memoizedProducer;
|
|
1654
1662
|
/** @internal Hash of the configuration used to create the memoized Kafka producer */
|
|
1655
1663
|
_kafkaConfigHash;
|
|
1656
|
-
constructor(name, config, schema, columns) {
|
|
1657
|
-
super(name, config ?? {}, schema, columns);
|
|
1664
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
1665
|
+
super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
|
|
1658
1666
|
const streams = getMooseInternal().streams;
|
|
1659
1667
|
if (streams.has(name)) {
|
|
1660
1668
|
throw new Error(`Stream with name ${name} already exists`);
|
|
@@ -1910,7 +1918,7 @@ var DeadLetterQueue = class extends Stream {
|
|
|
1910
1918
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
1911
1919
|
);
|
|
1912
1920
|
}
|
|
1913
|
-
super(name, config ?? {}, dlqSchema, dlqColumns);
|
|
1921
|
+
super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
|
|
1914
1922
|
this.typeGuard = typeGuard;
|
|
1915
1923
|
getMooseInternal().streams.set(name, this);
|
|
1916
1924
|
}
|
|
@@ -2076,8 +2084,8 @@ var Workflow = class {
|
|
|
2076
2084
|
|
|
2077
2085
|
// src/dmv2/sdk/ingestApi.ts
|
|
2078
2086
|
var IngestApi = class extends TypedBase {
|
|
2079
|
-
constructor(name, config, schema, columns) {
|
|
2080
|
-
super(name, config, schema, columns);
|
|
2087
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
2088
|
+
super(name, config, schema, columns, void 0, allowExtraFields);
|
|
2081
2089
|
const ingestApis = getMooseInternal().ingestApis;
|
|
2082
2090
|
if (ingestApis.has(name)) {
|
|
2083
2091
|
throw new Error(`Ingest API with name ${name} already exists`);
|
|
@@ -2216,8 +2224,8 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2216
2224
|
ingestApi;
|
|
2217
2225
|
/** The dead letter queue of the pipeline, if configured. */
|
|
2218
2226
|
deadLetterQueue;
|
|
2219
|
-
constructor(name, config, schema, columns, validators) {
|
|
2220
|
-
super(name, config, schema, columns, validators);
|
|
2227
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
2228
|
+
super(name, config, schema, columns, validators, allowExtraFields);
|
|
2221
2229
|
if (config.ingest !== void 0) {
|
|
2222
2230
|
console.warn(
|
|
2223
2231
|
"\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
|
|
@@ -2229,6 +2237,7 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2229
2237
|
if (config.table) {
|
|
2230
2238
|
const tableConfig = typeof config.table === "object" ? {
|
|
2231
2239
|
...config.table,
|
|
2240
|
+
lifeCycle: config.table.lifeCycle ?? config.lifeCycle,
|
|
2232
2241
|
...config.version && { version: config.version }
|
|
2233
2242
|
} : {
|
|
2234
2243
|
lifeCycle: config.lifeCycle,
|
|
@@ -2246,7 +2255,10 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2246
2255
|
if (config.deadLetterQueue) {
|
|
2247
2256
|
const streamConfig = {
|
|
2248
2257
|
destination: void 0,
|
|
2249
|
-
...typeof config.deadLetterQueue === "object" ?
|
|
2258
|
+
...typeof config.deadLetterQueue === "object" ? {
|
|
2259
|
+
...config.deadLetterQueue,
|
|
2260
|
+
lifeCycle: config.deadLetterQueue.lifeCycle ?? config.lifeCycle
|
|
2261
|
+
} : { lifeCycle: config.lifeCycle },
|
|
2250
2262
|
...config.version && { version: config.version }
|
|
2251
2263
|
};
|
|
2252
2264
|
this.deadLetterQueue = new DeadLetterQueue(
|
|
@@ -2259,14 +2271,19 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2259
2271
|
const streamConfig = {
|
|
2260
2272
|
destination: this.table,
|
|
2261
2273
|
defaultDeadLetterQueue: this.deadLetterQueue,
|
|
2262
|
-
...typeof config.stream === "object" ?
|
|
2274
|
+
...typeof config.stream === "object" ? {
|
|
2275
|
+
...config.stream,
|
|
2276
|
+
lifeCycle: config.stream.lifeCycle ?? config.lifeCycle
|
|
2277
|
+
} : { lifeCycle: config.lifeCycle },
|
|
2263
2278
|
...config.version && { version: config.version }
|
|
2264
2279
|
};
|
|
2265
2280
|
this.stream = new Stream(
|
|
2266
2281
|
name,
|
|
2267
2282
|
streamConfig,
|
|
2268
2283
|
this.schema,
|
|
2269
|
-
this.columnArray
|
|
2284
|
+
this.columnArray,
|
|
2285
|
+
void 0,
|
|
2286
|
+
this.allowExtraFields
|
|
2270
2287
|
);
|
|
2271
2288
|
this.stream.pipelineParent = this;
|
|
2272
2289
|
}
|
|
@@ -2286,7 +2303,9 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2286
2303
|
name,
|
|
2287
2304
|
ingestConfig,
|
|
2288
2305
|
this.schema,
|
|
2289
|
-
this.columnArray
|
|
2306
|
+
this.columnArray,
|
|
2307
|
+
void 0,
|
|
2308
|
+
this.allowExtraFields
|
|
2290
2309
|
);
|
|
2291
2310
|
this.ingestApi.pipelineParent = this;
|
|
2292
2311
|
}
|