@moonbase.sh/storefront-api 0.2.125 → 0.2.127

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.js CHANGED
@@ -562,6 +562,7 @@ import { z as z11 } from "zod";
562
562
  var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
563
563
  OrderStatus2["Open"] = "Open";
564
564
  OrderStatus2["PaymentProcessing"] = "PaymentProcessing";
565
+ OrderStatus2["Paid"] = "Paid";
565
566
  OrderStatus2["Completed"] = "Completed";
566
567
  OrderStatus2["Failed"] = "Failed";
567
568
  return OrderStatus2;
@@ -617,7 +618,6 @@ var openOrderLineItem = z11.discriminatedUnion("type", [
617
618
  ]);
618
619
  var openOrderSchema = z11.object({
619
620
  id: z11.string(),
620
- status: z11.literal("Open" /* Open */),
621
621
  currency: z11.string(),
622
622
  items: openOrderLineItem.array(),
623
623
  couponsApplied: couponSchema.array(),
@@ -652,7 +652,18 @@ var completedOrderSchema = z11.object({
652
652
  couponsApplied: couponSchema.array()
653
653
  });
654
654
  var orderSchema = z11.discriminatedUnion("status", [
655
- openOrderSchema,
655
+ openOrderSchema.extend({
656
+ status: z11.literal("Open" /* Open */)
657
+ }),
658
+ openOrderSchema.extend({
659
+ status: z11.literal("PaymentProcessing" /* PaymentProcessing */)
660
+ }),
661
+ openOrderSchema.extend({
662
+ status: z11.literal("Paid" /* Paid */)
663
+ }),
664
+ openOrderSchema.extend({
665
+ status: z11.literal("Failed" /* Failed */)
666
+ }),
656
667
  completedOrderSchema
657
668
  ]);
658
669
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/storefront-api",
3
3
  "type": "module",
4
- "version": "0.2.125",
4
+ "version": "0.2.127",
5
5
  "description": "Package to let you build storefronts with Moonbase.sh as payment and delivery provider",
6
6
  "author": "Tobias Lønnerød Madsen <m@dsen.tv>",
7
7
  "license": "MIT",