@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.
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
package/dist/index.mjs CHANGED
@@ -413,12 +413,6 @@ var TypedBase = class {
413
413
  validators;
414
414
  /** Optional metadata for the resource, always present as an object. */
415
415
  metadata;
416
- /**
417
- * Whether this resource allows extra fields beyond the defined columns.
418
- * When true, extra fields in payloads are passed through to streaming functions.
419
- * Injected by the compiler plugin when the type has an index signature.
420
- */
421
- allowExtraFields;
422
416
  /**
423
417
  * @internal Constructor intended for internal use by subclasses and the compiler plugin.
424
418
  * It expects the schema and columns to be provided, typically injected by the compiler.
@@ -427,9 +421,8 @@ var TypedBase = class {
427
421
  * @param config The configuration object for the resource.
428
422
  * @param schema The JSON schema for the resource's data type T (injected).
429
423
  * @param columns The array of Column definitions for T (injected).
430
- * @param allowExtraFields Whether extra fields are allowed (injected when type has index signature).
431
424
  */
432
- constructor(name, config, schema, columns, validators, allowExtraFields) {
425
+ constructor(name, config, schema, columns, validators) {
433
426
  if (schema === void 0 || columns === void 0) {
434
427
  throw new Error(
435
428
  "Supply the type param T so that the schema is inserted by the compiler plugin."
@@ -445,7 +438,6 @@ var TypedBase = class {
445
438
  this.name = name;
446
439
  this.config = config;
447
440
  this.validators = validators;
448
- this.allowExtraFields = allowExtraFields ?? false;
449
441
  this.metadata = config?.metadata ? { ...config.metadata } : {};
450
442
  const stack = new Error().stack;
451
443
  if (stack) {
@@ -1529,8 +1521,8 @@ var Stream = class extends TypedBase {
1529
1521
  _memoizedProducer;
1530
1522
  /** @internal Hash of the configuration used to create the memoized Kafka producer */
1531
1523
  _kafkaConfigHash;
1532
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1533
- super(name, config ?? {}, schema, columns, void 0, allowExtraFields);
1524
+ constructor(name, config, schema, columns) {
1525
+ super(name, config ?? {}, schema, columns);
1534
1526
  const streams = getMooseInternal().streams;
1535
1527
  if (streams.has(name)) {
1536
1528
  throw new Error(`Stream with name ${name} already exists`);
@@ -1786,7 +1778,7 @@ var DeadLetterQueue = class extends Stream {
1786
1778
  "Supply the type param T so that the schema is inserted by the compiler plugin."
1787
1779
  );
1788
1780
  }
1789
- super(name, config ?? {}, dlqSchema, dlqColumns, void 0, false);
1781
+ super(name, config ?? {}, dlqSchema, dlqColumns);
1790
1782
  this.typeGuard = typeGuard;
1791
1783
  getMooseInternal().streams.set(name, this);
1792
1784
  }
@@ -1952,8 +1944,8 @@ var Workflow = class {
1952
1944
 
1953
1945
  // src/dmv2/sdk/ingestApi.ts
1954
1946
  var IngestApi = class extends TypedBase {
1955
- constructor(name, config, schema, columns, validators, allowExtraFields) {
1956
- super(name, config, schema, columns, void 0, allowExtraFields);
1947
+ constructor(name, config, schema, columns) {
1948
+ super(name, config, schema, columns);
1957
1949
  const ingestApis = getMooseInternal().ingestApis;
1958
1950
  if (ingestApis.has(name)) {
1959
1951
  throw new Error(`Ingest API with name ${name} already exists`);
@@ -2092,8 +2084,8 @@ var IngestPipeline = class extends TypedBase {
2092
2084
  ingestApi;
2093
2085
  /** The dead letter queue of the pipeline, if configured. */
2094
2086
  deadLetterQueue;
2095
- constructor(name, config, schema, columns, validators, allowExtraFields) {
2096
- super(name, config, schema, columns, validators, allowExtraFields);
2087
+ constructor(name, config, schema, columns, validators) {
2088
+ super(name, config, schema, columns, validators);
2097
2089
  if (config.ingest !== void 0) {
2098
2090
  console.warn(
2099
2091
  "\u26A0\uFE0F DEPRECATION WARNING: The 'ingest' parameter is deprecated and will be removed in a future version. Please use 'ingestApi' instead."
@@ -2142,9 +2134,7 @@ var IngestPipeline = class extends TypedBase {
2142
2134
  name,
2143
2135
  streamConfig,
2144
2136
  this.schema,
2145
- this.columnArray,
2146
- void 0,
2147
- this.allowExtraFields
2137
+ this.columnArray
2148
2138
  );
2149
2139
  this.stream.pipelineParent = this;
2150
2140
  }
@@ -2164,9 +2154,7 @@ var IngestPipeline = class extends TypedBase {
2164
2154
  name,
2165
2155
  ingestConfig,
2166
2156
  this.schema,
2167
- this.columnArray,
2168
- void 0,
2169
- this.allowExtraFields
2157
+ this.columnArray
2170
2158
  );
2171
2159
  this.ingestApi.pipelineParent = this;
2172
2160
  }