@jsdev_ninja/core 0.15.1 → 0.15.2

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/core.es.js CHANGED
@@ -3466,6 +3466,10 @@ const Cn = s.object({
3466
3466
  }), Hn = rt.omit({ id: !0 }), jn = s.object({
3467
3467
  type: s.literal("SupplierInvoice"),
3468
3468
  id: s.string(),
3469
+ // "draft" = work-in-progress, NOT yet finalized. Product prices are only
3470
+ // updated once the invoice is finalized ("completed"). Legacy invoices have
3471
+ // no status and are treated as finalized.
3472
+ status: s.enum(["draft", "completed"]).optional(),
3469
3473
  supplier: rt,
3470
3474
  invoiceNumber: s.string(),
3471
3475
  date: s.number(),