@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.
Files changed (35) hide show
  1. package/dist/{browserCompatible-CpjUXotI.d.ts → browserCompatible-Bqhjy4pn.d.ts} +1 -1
  2. package/dist/{browserCompatible-fk6xPzoB.d.mts → browserCompatible-DTtKuO-Y.d.mts} +1 -1
  3. package/dist/browserCompatible.d.mts +2 -2
  4. package/dist/browserCompatible.d.ts +2 -2
  5. package/dist/browserCompatible.js +10 -22
  6. package/dist/browserCompatible.js.map +1 -1
  7. package/dist/browserCompatible.mjs +10 -22
  8. package/dist/browserCompatible.mjs.map +1 -1
  9. package/dist/compilerPlugin.js +3 -35
  10. package/dist/compilerPlugin.js.map +1 -1
  11. package/dist/compilerPlugin.mjs +3 -35
  12. package/dist/compilerPlugin.mjs.map +1 -1
  13. package/dist/dataModels/toDataModels.js +2 -2
  14. package/dist/dataModels/toDataModels.js.map +1 -1
  15. package/dist/dataModels/toDataModels.mjs +2 -2
  16. package/dist/dataModels/toDataModels.mjs.map +1 -1
  17. package/dist/dmv2/index.d.mts +1 -1
  18. package/dist/dmv2/index.d.ts +1 -1
  19. package/dist/dmv2/index.js +10 -22
  20. package/dist/dmv2/index.js.map +1 -1
  21. package/dist/dmv2/index.mjs +10 -22
  22. package/dist/dmv2/index.mjs.map +1 -1
  23. package/dist/{index-Dd3ZmpTq.d.mts → index-CQB6bk1i.d.mts} +6 -25
  24. package/dist/{index-Dd3ZmpTq.d.ts → index-CQB6bk1i.d.ts} +6 -25
  25. package/dist/index.d.mts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +10 -22
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +10 -22
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/moose-runner.js +1 -2
  32. package/dist/moose-runner.js.map +1 -1
  33. package/dist/moose-runner.mjs +1 -2
  34. package/dist/moose-runner.mjs.map +1 -1
  35. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -440,12 +440,6 @@ var TypedBase = class {
440
440
  validators;
441
441
  /** Optional metadata for the resource, always present as an object. */
442
442
  metadata;
443
- /**
444
- * Whether this resource allows extra fields beyond the defined columns.
445
- * When true, extra fields in payloads are passed through to streaming functions.
446
- * Injected by the compiler plugin when the type has an index signature.
447
- */
448
- allowExtraFields;
449
443
  /**
450
444
  * @internal Constructor intended for internal use by subclasses and the compiler plugin.
451
445
  * It expects the schema and columns to be provided, typically injected by the compiler.
@@ -454,9 +448,8 @@ var TypedBase = class {
454
448
  * @param config The configuration object for the resource.
455
449
  * @param schema The JSON schema for the resource's data type T (injected).
456
450
  * @param columns The array of Column definitions for T (injected).
457
- * @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
458
451
  */
459
- constructor(name, config, schema, columns, validators, allowExtraFields) {
452
+ constructor(name, config, schema, columns, validators) {
460
453
  if (schema === void 0 || columns === void 0) {
461
454
  throw new Error(
462
455
  "Supply the type param T so that the schema is inserted by the compiler plugin."
@@ -472,7 +465,6 @@ var TypedBase = class {
472
465
  this.name = name;
473
466
  this.config = config;
474
467
  this.validators = validators;
475
- this.allowExtraFields = allowExtraFields ?? false;
476
468
  this.metadata = config?.metadata ? { ...config.metadata } : {};
477
469
  const stack = new Error().stack;
478
470
  if (stack) {
@@ -1557,8 +1549,8 @@ var Stream = class extends TypedBase {
1557
1549
  _memoizedProducer;
1558
1550
  /** @internal Hash of the configuration used to create the memoized Kafka producer */
1559
1551
  _kafkaConfigHash;
1560
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1561
- super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
1552
+ constructor(name, config, schema, columns) {
1553
+ super(name, config ?? {}, schema, columns);
1562
1554
  const streams = getMooseInternal().streams;
1563
1555
  if (streams.has(name)) {
1564
1556
  throw new Error(`Stream with name ${name} already exists`);
@@ -1814,7 +1806,7 @@ var DeadLetterQueue = class extends Stream {
1814
1806
  "Supply the type param T so that the schema is inserted by the compiler plugin."
1815
1807
  );
1816
1808
  }
1817
- super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
1809
+ super(name, config ?? {}, dlqSchema, dlqColumns);
1818
1810
  this.typeGuard = typeGuard;
1819
1811
  getMooseInternal().streams.set(name, this);
1820
1812
  }
@@ -1980,8 +1972,8 @@ var Workflow = class {
1980
1972
 
1981
1973
  // src/dmv2/sdk/ingestApi.ts
1982
1974
  var IngestApi = class extends TypedBase {
1983
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1984
- super(name, config, schema, columns, void 0, allowExtraFields);
1975
+ constructor(name, config, schema, columns) {
1976
+ super(name, config, schema, columns);
1985
1977
  const ingestApis = getMooseInternal().ingestApis;
1986
1978
  if (ingestApis.has(name)) {
1987
1979
  throw new Error(`Ingest API with name ${name} already exists`);
@@ -2120,8 +2112,8 @@ var IngestPipeline = class extends TypedBase {
2120
2112
  ingestApi;
2121
2113
  /** The dead letter queue of the pipeline, if configured. */
2122
2114
  deadLetterQueue;
2123
- constructor(name, config, schema, columns, validators, allowExtraFields) {
2124
- super(name, config, schema, columns, validators, allowExtraFields);
2115
+ constructor(name, config, schema, columns, validators) {
2116
+ super(name, config, schema, columns, validators);
2125
2117
  if (config.ingest !== void 0) {
2126
2118
  console.warn(
2127
2119
  "\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
@@ -2170,9 +2162,7 @@ var IngestPipeline = class extends TypedBase {
2170
2162
  name,
2171
2163
  streamConfig,
2172
2164
  this.schema,
2173
- this.columnArray,
2174
- void 0,
2175
- this.allowExtraFields
2165
+ this.columnArray
2176
2166
  );
2177
2167
  this.stream.pipelineParent = this;
2178
2168
  }
@@ -2192,9 +2182,7 @@ var IngestPipeline = class extends TypedBase {
2192
2182
  name,
2193
2183
  ingestConfig,
2194
2184
  this.schema,
2195
- this.columnArray,
2196
- void 0,
2197
- this.allowExtraFields
2185
+ this.columnArray
2198
2186
  );
2199
2187
  this.ingestApi.pipelineParent = this;
2200
2188
  }