@plasius/schema 1.4.2 → 1.4.4

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/index.d.cts CHANGED
@@ -1413,6 +1413,7 @@ declare const FeedbackMaterializationManifestSchema: Schema<{
1413
1413
  generatedAt: FieldBuilder<string, string>;
1414
1414
  sourcePacketCount: FieldBuilder<number, number>;
1415
1415
  lateArrivalCount: FieldBuilder<number, number>;
1416
+ correctionReason: FieldBuilder<"late-arrival" | "metrics-source", "late-arrival" | "metrics-source">;
1416
1417
  outputReportId: FieldBuilder<string, string>;
1417
1418
  status: FieldBuilder<"published" | "corrected" | "no-op", "published" | "corrected" | "no-op">;
1418
1419
  }>;
package/dist/index.d.ts CHANGED
@@ -1413,6 +1413,7 @@ declare const FeedbackMaterializationManifestSchema: Schema<{
1413
1413
  generatedAt: FieldBuilder<string, string>;
1414
1414
  sourcePacketCount: FieldBuilder<number, number>;
1415
1415
  lateArrivalCount: FieldBuilder<number, number>;
1416
+ correctionReason: FieldBuilder<"late-arrival" | "metrics-source", "late-arrival" | "metrics-source">;
1416
1417
  outputReportId: FieldBuilder<string, string>;
1417
1418
  status: FieldBuilder<"published" | "corrected" | "no-op", "published" | "corrected" | "no-op">;
1418
1419
  }>;
package/dist/index.js CHANGED
@@ -1809,6 +1809,7 @@ var FeedbackMaterializationManifestSchema = createSchema(
1809
1809
  generatedAt: field.dateTimeISO(),
1810
1810
  sourcePacketCount: countField(),
1811
1811
  lateArrivalCount: countField(),
1812
+ correctionReason: field.string().enum(["late-arrival", "metrics-source"]).optional(),
1812
1813
  outputReportId: uuidField().optional(),
1813
1814
  status: field.string().enum(["published", "corrected", "no-op"])
1814
1815
  },
@@ -1820,9 +1821,9 @@ var FeedbackMaterializationManifestSchema = createSchema(
1820
1821
  return false;
1821
1822
  }
1822
1823
  if (value.processor === "commit-reconciliation") {
1823
- return value.status === "no-op" && value.revision >= 1 && value.outputReportId === void 0 && value.lateArrivalCount === 0;
1824
+ return value.status === "no-op" && value.revision >= 1 && value.outputReportId === void 0 && value.correctionReason === void 0 && value.lateArrivalCount === 0;
1824
1825
  }
1825
- return value.status === "published" && value.revision === 1 && value.lateArrivalCount === 0 && value.outputReportId !== void 0 || value.status === "corrected" && value.revision >= 2 && value.lateArrivalCount > 0 && value.outputReportId !== void 0;
1826
+ return value.status === "published" && value.revision === 1 && value.lateArrivalCount === 0 && value.correctionReason === void 0 && value.outputReportId !== void 0 || value.status === "corrected" && value.revision >= 2 && (value.correctionReason === "metrics-source" && value.lateArrivalCount === 0 || (value.correctionReason === void 0 || value.correctionReason === "late-arrival") && value.lateArrivalCount > 0) && value.outputReportId !== void 0;
1826
1827
  }
1827
1828
  }
1828
1829
  );