@514labs/moose-lib 0.6.259-ci-9-gf56269b8 → 0.6.260-ci-3-g63948580

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-DKJsM6sO.d.ts → browserCompatible-B_aEflr_.d.ts} +1 -1
  2. package/dist/{browserCompatible-G5C0qk2P.d.mts → browserCompatible-DnYA4Zgi.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-DzjegH9H.d.mts → index-rECDLgTX.d.mts} +6 -25
  24. package/dist/{index-DzjegH9H.d.ts → index-rECDLgTX.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
@@ -407,12 +407,6 @@ var TypedBase = class {
407
407
  validators;
408
408
  /** Optional metadata for the resource, always present as an object. */
409
409
  metadata;
410
- /**
411
- * Whether this resource allows extra fields beyond the defined columns.
412
- * When true, extra fields in payloads are passed through to streaming functions.
413
- * Injected by the compiler plugin when the type has an index signature.
414
- */
415
- allowExtraFields;
416
410
  /**
417
411
  * @internal Constructor intended for internal use by subclasses and the compiler plugin.
418
412
  * It expects the schema and columns to be provided, typically injected by the compiler.
@@ -421,9 +415,8 @@ var TypedBase = class {
421
415
  * @param config The configuration object for the resource.
422
416
  * @param schema The JSON schema for the resource's data type T (injected).
423
417
  * @param columns The array of Column definitions for T (injected).
424
- * @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
425
418
  */
426
- constructor(name, config, schema, columns, validators, allowExtraFields) {
419
+ constructor(name, config, schema, columns, validators) {
427
420
  if (schema === void 0 || columns === void 0) {
428
421
  throw new Error(
429
422
  "Supply the type param T so that the schema is inserted by the compiler plugin."
@@ -439,7 +432,6 @@ var TypedBase = class {
439
432
  this.name = name;
440
433
  this.config = config;
441
434
  this.validators = validators;
442
- this.allowExtraFields = allowExtraFields ?? false;
443
435
  this.metadata = config?.metadata ? { ...config.metadata } : {};
444
436
  const stack = new Error().stack;
445
437
  if (stack) {
@@ -1506,8 +1498,8 @@ var Stream = class extends TypedBase {
1506
1498
  _memoizedProducer;
1507
1499
  /** @internal Hash of the configuration used to create the memoized Kafka producer */
1508
1500
  _kafkaConfigHash;
1509
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1510
- super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
1501
+ constructor(name, config, schema, columns) {
1502
+ super(name, config ?? {}, schema, columns);
1511
1503
  const streams = getMooseInternal().streams;
1512
1504
  if (streams.has(name)) {
1513
1505
  throw new Error(`Stream with name ${name} already exists`);
@@ -1763,7 +1755,7 @@ var DeadLetterQueue = class extends Stream {
1763
1755
  "Supply the type param T so that the schema is inserted by the compiler plugin."
1764
1756
  );
1765
1757
  }
1766
- super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
1758
+ super(name, config ?? {}, dlqSchema, dlqColumns);
1767
1759
  this.typeGuard = typeGuard;
1768
1760
  getMooseInternal().streams.set(name, this);
1769
1761
  }
@@ -1929,8 +1921,8 @@ var Workflow = class {
1929
1921
 
1930
1922
  // src/dmv2/sdk/ingestApi.ts
1931
1923
  var IngestApi = class extends TypedBase {
1932
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1933
- super(name, config, schema, columns, void 0, allowExtraFields);
1924
+ constructor(name, config, schema, columns) {
1925
+ super(name, config, schema, columns);
1934
1926
  const ingestApis = getMooseInternal().ingestApis;
1935
1927
  if (ingestApis.has(name)) {
1936
1928
  throw new Error(`Ingest API with name ${name} already exists`);
@@ -2069,8 +2061,8 @@ var IngestPipeline = class extends TypedBase {
2069
2061
  ingestApi;
2070
2062
  /** The dead letter queue of the pipeline, if configured. */
2071
2063
  deadLetterQueue;
2072
- constructor(name, config, schema, columns, validators, allowExtraFields) {
2073
- super(name, config, schema, columns, validators, allowExtraFields);
2064
+ constructor(name, config, schema, columns, validators) {
2065
+ super(name, config, schema, columns, validators);
2074
2066
  if (config.ingest !== void 0) {
2075
2067
  console.warn(
2076
2068
  "\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
@@ -2119,9 +2111,7 @@ var IngestPipeline = class extends TypedBase {
2119
2111
  name,
2120
2112
  streamConfig,
2121
2113
  this.schema,
2122
- this.columnArray,
2123
- void 0,
2124
- this.allowExtraFields
2114
+ this.columnArray
2125
2115
  );
2126
2116
  this.stream.pipelineParent = this;
2127
2117
  }
@@ -2141,9 +2131,7 @@ var IngestPipeline = class extends TypedBase {
2141
2131
  name,
2142
2132
  ingestConfig,
2143
2133
  this.schema,
2144
- this.columnArray,
2145
- void 0,
2146
- this.allowExtraFields
2134
+ this.columnArray
2147
2135
  );
2148
2136
  this.ingestApi.pipelineParent = this;
2149
2137
  }