@514labs/moose-lib 0.6.263-ci-10-gc7213e03 → 0.6.263
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-CpjUXotI.d.ts → browserCompatible-Bqhjy4pn.d.ts} +1 -1
- package/dist/{browserCompatible-fk6xPzoB.d.mts → browserCompatible-DTtKuO-Y.d.mts} +1 -1
- package/dist/browserCompatible.d.mts +2 -2
- package/dist/browserCompatible.d.ts +2 -2
- package/dist/browserCompatible.js +10 -22
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +10 -22
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/compilerPlugin.js +3 -35
- package/dist/compilerPlugin.js.map +1 -1
- package/dist/compilerPlugin.mjs +3 -35
- 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 +10 -22
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +10 -22
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/{index-Dd3ZmpTq.d.mts → index-CQB6bk1i.d.mts} +6 -25
- package/dist/{index-Dd3ZmpTq.d.ts → index-CQB6bk1i.d.ts} +6 -25
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -22
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +1 -2
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +1 -2
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -152,12 +152,6 @@ 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;
|
|
161
155
|
/**
|
|
162
156
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
163
157
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -166,9 +160,8 @@ declare class TypedBase<T, C> {
|
|
|
166
160
|
* @param config The configuration object for the resource.
|
|
167
161
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
168
162
|
* @param columns The array of Column definitions for T (injected).
|
|
169
|
-
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
170
163
|
*/
|
|
171
|
-
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T
|
|
164
|
+
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T>);
|
|
172
165
|
}
|
|
173
166
|
|
|
174
167
|
interface MaterializedViewCreateOptions {
|
|
@@ -1139,13 +1132,8 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1139
1132
|
* @param config Optional configuration for the stream.
|
|
1140
1133
|
*/
|
|
1141
1134
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1142
|
-
/**
|
|
1143
|
-
|
|
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);
|
|
1135
|
+
/** @internal **/
|
|
1136
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1149
1137
|
/**
|
|
1150
1138
|
* Internal map storing transformation configurations.
|
|
1151
1139
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1515,13 +1503,8 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1515
1503
|
* @param config Optional configuration for the ingest API.
|
|
1516
1504
|
*/
|
|
1517
1505
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1518
|
-
/**
|
|
1519
|
-
|
|
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);
|
|
1506
|
+
/** @internal **/
|
|
1507
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1525
1508
|
}
|
|
1526
1509
|
|
|
1527
1510
|
interface ApiUtil {
|
|
@@ -1815,10 +1798,8 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1815
1798
|
* @param config Configuration specifying which components to create and their settings.
|
|
1816
1799
|
* @param schema JSON schema collection for type validation.
|
|
1817
1800
|
* @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).
|
|
1820
1801
|
*/
|
|
1821
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1802
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>);
|
|
1822
1803
|
}
|
|
1823
1804
|
|
|
1824
1805
|
interface ETLPipelineConfig<T, U> {
|
|
@@ -152,12 +152,6 @@ 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;
|
|
161
155
|
/**
|
|
162
156
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
163
157
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -166,9 +160,8 @@ declare class TypedBase<T, C> {
|
|
|
166
160
|
* @param config The configuration object for the resource.
|
|
167
161
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
168
162
|
* @param columns The array of Column definitions for T (injected).
|
|
169
|
-
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
170
163
|
*/
|
|
171
|
-
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T
|
|
164
|
+
constructor(name: string, config: C, schema?: IJsonSchemaCollection.IV3_1, columns?: Column[], validators?: TypiaValidators<T>);
|
|
172
165
|
}
|
|
173
166
|
|
|
174
167
|
interface MaterializedViewCreateOptions {
|
|
@@ -1139,13 +1132,8 @@ declare class Stream<T> extends TypedBase<T, StreamConfig<T>> {
|
|
|
1139
1132
|
* @param config Optional configuration for the stream.
|
|
1140
1133
|
*/
|
|
1141
1134
|
constructor(name: string, config?: StreamConfig<T>);
|
|
1142
|
-
/**
|
|
1143
|
-
|
|
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);
|
|
1135
|
+
/** @internal **/
|
|
1136
|
+
constructor(name: string, config: StreamConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1149
1137
|
/**
|
|
1150
1138
|
* Internal map storing transformation configurations.
|
|
1151
1139
|
* Maps destination stream names to arrays of transformation functions and their configs.
|
|
@@ -1515,13 +1503,8 @@ declare class IngestApi<T> extends TypedBase<T, IngestConfig<T>> {
|
|
|
1515
1503
|
* @param config Optional configuration for the ingest API.
|
|
1516
1504
|
*/
|
|
1517
1505
|
constructor(name: string, config?: IngestConfig<T>);
|
|
1518
|
-
/**
|
|
1519
|
-
|
|
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);
|
|
1506
|
+
/** @internal **/
|
|
1507
|
+
constructor(name: string, config: IngestConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[]);
|
|
1525
1508
|
}
|
|
1526
1509
|
|
|
1527
1510
|
interface ApiUtil {
|
|
@@ -1815,10 +1798,8 @@ declare class IngestPipeline<T> extends TypedBase<T, IngestPipelineConfig<T>> {
|
|
|
1815
1798
|
* @param config Configuration specifying which components to create and their settings.
|
|
1816
1799
|
* @param schema JSON schema collection for type validation.
|
|
1817
1800
|
* @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).
|
|
1820
1801
|
*/
|
|
1821
|
-
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T
|
|
1802
|
+
constructor(name: string, config: IngestPipelineConfig<T>, schema: IJsonSchemaCollection$1.IV3_1, columns: Column[], validators: TypiaValidators<T>);
|
|
1822
1803
|
}
|
|
1823
1804
|
|
|
1824
1805
|
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-DTtKuO-Y.mjs';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-CQB6bk1i.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-CQB6bk1i.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-Bqhjy4pn.js';
|
|
2
|
+
import { K as ApiUtil, a4 as MooseClient } from './index-CQB6bk1i.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-CQB6bk1i.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,12 +544,6 @@ 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;
|
|
553
547
|
/**
|
|
554
548
|
* @internal Constructor intended for internal use by subclasses and the compiler plugin.
|
|
555
549
|
* It expects the schema and columns to be provided, typically injected by the compiler.
|
|
@@ -558,9 +552,8 @@ var TypedBase = class {
|
|
|
558
552
|
* @param config The configuration object for the resource.
|
|
559
553
|
* @param schema The JSON schema for the resource's data type T (injected).
|
|
560
554
|
* @param columns The array of Column definitions for T (injected).
|
|
561
|
-
* @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
|
|
562
555
|
*/
|
|
563
|
-
constructor(name, config, schema, columns, validators
|
|
556
|
+
constructor(name, config, schema, columns, validators) {
|
|
564
557
|
if (schema === void 0 || columns === void 0) {
|
|
565
558
|
throw new Error(
|
|
566
559
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
@@ -576,7 +569,6 @@ var TypedBase = class {
|
|
|
576
569
|
this.name = name;
|
|
577
570
|
this.config = config;
|
|
578
571
|
this.validators = validators;
|
|
579
|
-
this.allowExtraFields = allowExtraFields ?? false;
|
|
580
572
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
581
573
|
const stack = new Error().stack;
|
|
582
574
|
if (stack) {
|
|
@@ -1661,8 +1653,8 @@ var Stream = class extends TypedBase {
|
|
|
1661
1653
|
_memoizedProducer;
|
|
1662
1654
|
/** @internal Hash of the configuration used to create the memoized Kafka producer */
|
|
1663
1655
|
_kafkaConfigHash;
|
|
1664
|
-
constructor(name, config, schema, columns
|
|
1665
|
-
super(name, config ?? {}, schema, columns
|
|
1656
|
+
constructor(name, config, schema, columns) {
|
|
1657
|
+
super(name, config ?? {}, schema, columns);
|
|
1666
1658
|
const streams = getMooseInternal().streams;
|
|
1667
1659
|
if (streams.has(name)) {
|
|
1668
1660
|
throw new Error(`Stream with name ${name} already exists`);
|
|
@@ -1918,7 +1910,7 @@ var DeadLetterQueue = class extends Stream {
|
|
|
1918
1910
|
"Supply the type param T so that the schema is inserted by the compiler plugin."
|
|
1919
1911
|
);
|
|
1920
1912
|
}
|
|
1921
|
-
super(name, config ?? {}, dlqSchema, dlqColumns
|
|
1913
|
+
super(name, config ?? {}, dlqSchema, dlqColumns);
|
|
1922
1914
|
this.typeGuard = typeGuard;
|
|
1923
1915
|
getMooseInternal().streams.set(name, this);
|
|
1924
1916
|
}
|
|
@@ -2084,8 +2076,8 @@ var Workflow = class {
|
|
|
2084
2076
|
|
|
2085
2077
|
// src/dmv2/sdk/ingestApi.ts
|
|
2086
2078
|
var IngestApi = class extends TypedBase {
|
|
2087
|
-
constructor(name, config, schema, columns
|
|
2088
|
-
super(name, config, schema, columns
|
|
2079
|
+
constructor(name, config, schema, columns) {
|
|
2080
|
+
super(name, config, schema, columns);
|
|
2089
2081
|
const ingestApis = getMooseInternal().ingestApis;
|
|
2090
2082
|
if (ingestApis.has(name)) {
|
|
2091
2083
|
throw new Error(`Ingest API with name ${name} already exists`);
|
|
@@ -2224,8 +2216,8 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2224
2216
|
ingestApi;
|
|
2225
2217
|
/** The dead letter queue of the pipeline, if configured. */
|
|
2226
2218
|
deadLetterQueue;
|
|
2227
|
-
constructor(name, config, schema, columns, validators
|
|
2228
|
-
super(name, config, schema, columns, validators
|
|
2219
|
+
constructor(name, config, schema, columns, validators) {
|
|
2220
|
+
super(name, config, schema, columns, validators);
|
|
2229
2221
|
if (config.ingest !== void 0) {
|
|
2230
2222
|
console.warn(
|
|
2231
2223
|
"\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
|
|
@@ -2274,9 +2266,7 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2274
2266
|
name,
|
|
2275
2267
|
streamConfig,
|
|
2276
2268
|
this.schema,
|
|
2277
|
-
this.columnArray
|
|
2278
|
-
void 0,
|
|
2279
|
-
this.allowExtraFields
|
|
2269
|
+
this.columnArray
|
|
2280
2270
|
);
|
|
2281
2271
|
this.stream.pipelineParent = this;
|
|
2282
2272
|
}
|
|
@@ -2296,9 +2286,7 @@ var IngestPipeline = class extends TypedBase {
|
|
|
2296
2286
|
name,
|
|
2297
2287
|
ingestConfig,
|
|
2298
2288
|
this.schema,
|
|
2299
|
-
this.columnArray
|
|
2300
|
-
void 0,
|
|
2301
|
-
this.allowExtraFields
|
|
2289
|
+
this.columnArray
|
|
2302
2290
|
);
|
|
2303
2291
|
this.ingestApi.pipelineParent = this;
|
|
2304
2292
|
}
|