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