@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
|
@@ -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 {
|
|
@@ -1099,8 +1106,13 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1099
1106
|
* @param config Optional configuration for the stream.
|
|
1100
1107
|
*/
|
|
1101
1108
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1102
|
-
/**
|
|
1103
|
-
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for Stream).
|
|
1112
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1113
|
+
* allowExtraFields as the 6th param. Stream doesn't use validators.
|
|
1114
|
+
*/
|
|
1115
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1104
1116
|
/**
|
|
1105
1117
|
* Internal map storing transformation configurations.
|
|
1106
1118
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1470,8 +1482,13 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1470
1482
|
* @param config Optional configuration for the ingest API.
|
|
1471
1483
|
*/
|
|
1472
1484
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1473
|
-
/**
|
|
1474
|
-
|
|
1485
|
+
/**
|
|
1486
|
+
* @internal
|
|
1487
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for IngestApi).
|
|
1488
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1489
|
+
* allowExtraFields as the 6th param. IngestApi doesn't use validators.
|
|
1490
|
+
*/
|
|
1491
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1475
1492
|
}
|
|
1476
1493
|
|
|
1477
1494
|
interface ApiUtil {
|
|
@@ -1765,8 +1782,10 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1765
1782
|
* @param config Configuration specifying which components to create and their settings.
|
|
1766
1783
|
* @param schema JSON schema collection for type validation.
|
|
1767
1784
|
* @param columns Column definitions for the data model.
|
|
1785
|
+
* @param validators Typia validation functions.
|
|
1786
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
1768
1787
|
*/
|
|
1769
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1788
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>, allowExtraFields: boolean);
|
|
1770
1789
|
}
|
|
1771
1790
|
|
|
1772
1791
|
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 {
|
|
@@ -1099,8 +1106,13 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1099
1106
|
* @param config Optional configuration for the stream.
|
|
1100
1107
|
*/
|
|
1101
1108
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1102
|
-
/**
|
|
1103
|
-
|
|
1109
|
+
/**
|
|
1110
|
+
* @internal
|
|
1111
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for Stream).
|
|
1112
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1113
|
+
* allowExtraFields as the 6th param. Stream doesn't use validators.
|
|
1114
|
+
*/
|
|
1115
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1104
1116
|
/**
|
|
1105
1117
|
* Internal map storing transformation configurations.
|
|
1106
1118
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1470,8 +1482,13 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1470
1482
|
* @param config Optional configuration for the ingest API.
|
|
1471
1483
|
*/
|
|
1472
1484
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1473
|
-
/**
|
|
1474
|
-
|
|
1485
|
+
/**
|
|
1486
|
+
* @internal
|
|
1487
|
+
* Note: `validators` parameter is a positional placeholder (always undefined for IngestApi).
|
|
1488
|
+
* It exists because TypedBase has validators as the 5th param, and we need to pass
|
|
1489
|
+
* allowExtraFields as the 6th param. IngestApi doesn't use validators.
|
|
1490
|
+
*/
|
|
1491
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: undefined, allowExtraFields: boolean);
|
|
1475
1492
|
}
|
|
1476
1493
|
|
|
1477
1494
|
interface ApiUtil {
|
|
@@ -1765,8 +1782,10 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1765
1782
|
* @param config Configuration specifying which components to create and their settings.
|
|
1766
1783
|
* @param schema JSON schema collection for type validation.
|
|
1767
1784
|
* @param columns Column definitions for the data model.
|
|
1785
|
+
* @param validators Typia validation functions.
|
|
1786
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
1768
1787
|
*/
|
|
1769
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1788
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>, allowExtraFields: boolean);
|
|
1770
1789
|
}
|
|
1771
1790
|
|
|
1772
1791
|
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-G5C0qk2P.mjs';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-DzjegH9H.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-DzjegH9H.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-DKJsM6sO.js';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-DzjegH9H.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-DzjegH9H.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
|
@@ -517,6 +517,12 @@ var TypedBase = class {
|
|
|
517
517
|
validators;
|
|
518
518
|
/** Optional metadata for the resource, always present as an object. */
|
|
519
519
|
metadata;
|
|
520
|
+
/**
|
|
521
|
+
* Whether this resource allows extra fields beyond the defined columns.
|
|
522
|
+
* When true, extra fields in payloads are passed through to streaming functions.
|
|
523
|
+
* Injected by the compiler plugin when the type has an index signature.
|
|
524
|
+
*/
|
|
525
|
+
allowExtraFields;
|
|
520
526
|
/**
|
|
521
527
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
522
528
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -525,8 +531,9 @@ var TypedBase = class {
|
|
|
525
531
|
* @param config The configuration object for the resource.
|
|
526
532
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
527
533
|
* @param columns The array of Column definitions for T (injected).
|
|
534
|
+
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
528
535
|
*/
|
|
529
|
-
constructor(name, config, schema, columns, validators) {
|
|
536
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
530
537
|
if (schema === void 0 || columns === void 0) {
|
|
531
538
|
throw new Error(
|
|
532
539
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
@@ -542,6 +549,7 @@ var TypedBase = class {
|
|
|
542
549
|
this.name = name;
|
|
543
550
|
this.config = config;
|
|
544
551
|
this.validators = validators;
|
|
552
|
+
this.allowExtraFields = allowExtraFields ?? false;
|
|
545
553
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
546
554
|
const stack = new Error().stack;
|
|
547
555
|
if (stack) {
|
|
@@ -1625,8 +1633,8 @@ var Stream = class extends TypedBase {
|
|
|
1625
1633
|
_memoizedProducer;
|
|
1626
1634
|
/** @internal Hash of the configuration used to create the memoized Kafka producer */
|
|
1627
1635
|
_kafkaConfigHash;
|
|
1628
|
-
constructor(name, config, schema, columns) {
|
|
1629
|
-
super(name, config ?? {}, schema, columns);
|
|
1636
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
1637
|
+
super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
|
|
1630
1638
|
const streams = getMooseInternal().streams;
|
|
1631
1639
|
if (streams.has(name)) {
|
|
1632
1640
|
throw new Error(`Stream with name ${name} already exists`);
|
|
@@ -1882,7 +1890,7 @@ var DeadLetterQueue = class extends Stream {
|
|
|
1882
1890
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
1883
1891
|
);
|
|
1884
1892
|
}
|
|
1885
|
-
super(name, config ?? {}, dlqSchema, dlqColumns);
|
|
1893
|
+
super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
|
|
1886
1894
|
this.typeGuard = typeGuard;
|
|
1887
1895
|
getMooseInternal().streams.set(name, this);
|
|
1888
1896
|
}
|
|
@@ -2048,8 +2056,8 @@ var Workflow = class {
|
|
|
2048
2056
|
|
|
2049
2057
|
// src/dmv2/sdk/ingestApi.ts
|
|
2050
2058
|
var IngestApi = class extends TypedBase {
|
|
2051
|
-
constructor(name, config, schema, columns) {
|
|
2052
|
-
super(name, config, schema, columns);
|
|
2059
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
2060
|
+
super(name, config, schema, columns, void 0, allowExtraFields);
|
|
2053
2061
|
const ingestApis = getMooseInternal().ingestApis;
|
|
2054
2062
|
if (ingestApis.has(name)) {
|
|
2055
2063
|
throw new Error(`Ingest API with name ${name} already exists`);
|
|
@@ -2188,8 +2196,8 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2188
2196
|
ingestApi;
|
|
2189
2197
|
/** The dead letter queue of the pipeline, if configured. */
|
|
2190
2198
|
deadLetterQueue;
|
|
2191
|
-
constructor(name, config, schema, columns, validators) {
|
|
2192
|
-
super(name, config, schema, columns, validators);
|
|
2199
|
+
constructor(name, config, schema, columns, validators, allowExtraFields) {
|
|
2200
|
+
super(name, config, schema, columns, validators, allowExtraFields);
|
|
2193
2201
|
if (config.ingest !== void 0) {
|
|
2194
2202
|
console.warn(
|
|
2195
2203
|
"\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
|
|
@@ -2238,7 +2246,9 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2238
2246
|
name,
|
|
2239
2247
|
streamConfig,
|
|
2240
2248
|
this.schema,
|
|
2241
|
-
this.columnArray
|
|
2249
|
+
this.columnArray,
|
|
2250
|
+
void 0,
|
|
2251
|
+
this.allowExtraFields
|
|
2242
2252
|
);
|
|
2243
2253
|
this.stream.pipelineParent = this;
|
|
2244
2254
|
}
|
|
@@ -2258,7 +2268,9 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2258
2268
|
name,
|
|
2259
2269
|
ingestConfig,
|
|
2260
2270
|
this.schema,
|
|
2261
|
-
this.columnArray
|
|
2271
|
+
this.columnArray,
|
|
2272
|
+
void 0,
|
|
2273
|
+
this.allowExtraFields
|
|
2262
2274
|
);
|
|
2263
2275
|
this.ingestApi.pipelineParent = this;
|
|
2264
2276
|
}
|