@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
@@ -434,12 +434,6 @@ var TypedBase = class {
434
434
  validators;
435
435
  /** Optional metadata for the resource, always present as an object. */
436
436
  metadata;
437
- /**
438
- * Whether this resource allows extra fields beyond the defined columns.
439
- * When true, extra fields in payloads are passed through to streaming functions.
440
- * Injected by the compiler plugin when the type has an index signature.
441
- */
442
- allowExtraFields;
443
437
  /**
444
438
  * @internal Constructor intended for internal use by subclasses and the compiler plugin.
445
439
  * It expects the schema and columns to be provided, typically injected by the compiler.
@@ -448,9 +442,8 @@ var TypedBase = class {
448
442
  * @param config The configuration object for the resource.
449
443
  * @param schema The JSON schema for the resource's data type T (injected).
450
444
  * @param columns The array of Column definitions for T (injected).
451
- * @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
452
445
  */
453
- constructor(name, config, schema, columns, validators, allowExtraFields) {
446
+ constructor(name, config, schema, columns, validators) {
454
447
  if (schema === void 0 || columns === void 0) {
455
448
  throw new Error(
456
449
  "Supply the type param T so that the schema is inserted by the compiler plugin."
@@ -466,7 +459,6 @@ var TypedBase = class {
466
459
  this.name = name;
467
460
  this.config = config;
468
461
  this.validators = validators;
469
- this.allowExtraFields = allowExtraFields ?? false;
470
462
  this.metadata = config?.metadata ? { ...config.metadata } : {};
471
463
  const stack = new Error().stack;
472
464
  if (stack) {
@@ -1438,8 +1430,8 @@ var Stream = class extends TypedBase {
1438
1430
  _memoizedProducer;
1439
1431
  /** @internal Hash of the configuration used to create the memoized Kafka producer */
1440
1432
  _kafkaConfigHash;
1441
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1442
- super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
1433
+ constructor(name, config, schema, columns) {
1434
+ super(name, config ?? {}, schema, columns);
1443
1435
  const streams = getMooseInternal().streams;
1444
1436
  if (streams.has(name)) {
1445
1437
  throw new Error(`Stream with name ${name} already exists`);
@@ -1695,7 +1687,7 @@ var DeadLetterQueue = class extends Stream {
1695
1687
  "Supply the type param T so that the schema is inserted by the compiler plugin."
1696
1688
  );
1697
1689
  }
1698
- super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
1690
+ super(name, config ?? {}, dlqSchema, dlqColumns);
1699
1691
  this.typeGuard = typeGuard;
1700
1692
  getMooseInternal().streams.set(name, this);
1701
1693
  }
@@ -1861,8 +1853,8 @@ var Workflow = class {
1861
1853
 
1862
1854
  // src/dmv2/sdk/ingestApi.ts
1863
1855
  var IngestApi = class extends TypedBase {
1864
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1865
- super(name, config, schema, columns, void 0, allowExtraFields);
1856
+ constructor(name, config, schema, columns) {
1857
+ super(name, config, schema, columns);
1866
1858
  const ingestApis = getMooseInternal().ingestApis;
1867
1859
  if (ingestApis.has(name)) {
1868
1860
  throw new Error(`Ingest API with name ${name} already exists`);
@@ -2001,8 +1993,8 @@ var IngestPipeline = class extends TypedBase {
2001
1993
  ingestApi;
2002
1994
  /** The dead letter queue of the pipeline, if configured. */
2003
1995
  deadLetterQueue;
2004
- constructor(name, config, schema, columns, validators, allowExtraFields) {
2005
- super(name, config, schema, columns, validators, allowExtraFields);
1996
+ constructor(name, config, schema, columns, validators) {
1997
+ super(name, config, schema, columns, validators);
2006
1998
  if (config.ingest !== void 0) {
2007
1999
  console.warn(
2008
2000
  "\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
@@ -2051,9 +2043,7 @@ var IngestPipeline = class extends TypedBase {
2051
2043
  name,
2052
2044
  streamConfig,
2053
2045
  this.schema,
2054
- this.columnArray,
2055
- void 0,
2056
- this.allowExtraFields
2046
+ this.columnArray
2057
2047
  );
2058
2048
  this.stream.pipelineParent = this;
2059
2049
  }
@@ -2073,9 +2063,7 @@ var IngestPipeline = class extends TypedBase {
2073
2063
  name,
2074
2064
  ingestConfig,
2075
2065
  this.schema,
2076
- this.columnArray,
2077
- void 0,
2078
- this.allowExtraFields
2066
+ this.columnArray
2079
2067
  );
2080
2068
  this.ingestApi.pipelineParent = this;
2081
2069
  }