@moonbase.sh/storefront-api 0.2.23 → 0.2.24

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.cjs CHANGED
@@ -62,13 +62,15 @@ var percentageOffDiscountSchema = import_zod.z.object({
62
62
  name: import_zod.z.string(),
63
63
  description: import_zod.z.string().optional(),
64
64
  percentage: import_zod.z.number(),
65
- total: priceCollectionSchema
65
+ total: priceCollectionSchema.optional(),
66
+ isExclusive: import_zod.z.boolean()
66
67
  });
67
68
  var flatAmountOffDiscountSchema = import_zod.z.object({
68
69
  type: import_zod.z.literal("FlatAmountOffDiscount"),
69
70
  name: import_zod.z.string(),
70
71
  description: import_zod.z.string().optional(),
71
- total: priceCollectionSchema
72
+ total: priceCollectionSchema.optional(),
73
+ isExclusive: import_zod.z.boolean()
72
74
  });
73
75
  var discountSchema = import_zod.z.discriminatedUnion("type", [
74
76
  percentageOffDiscountSchema,
@@ -438,25 +440,6 @@ var couponSchema = import_zod8.z.object({
438
440
  name: import_zod8.z.string(),
439
441
  description: import_zod8.z.string()
440
442
  });
441
- var percentageOffDiscountSchema2 = import_zod8.z.object({
442
- type: import_zod8.z.literal("PercentageOffDiscount"),
443
- name: import_zod8.z.string(),
444
- description: import_zod8.z.string().optional(),
445
- percentage: import_zod8.z.number(),
446
- total: priceCollectionSchema.optional(),
447
- isExclusive: import_zod8.z.boolean()
448
- });
449
- var flatAmountOffDiscountSchema2 = import_zod8.z.object({
450
- type: import_zod8.z.literal("FlatAmountOffDiscount"),
451
- name: import_zod8.z.string(),
452
- description: import_zod8.z.string().optional(),
453
- total: priceCollectionSchema.optional(),
454
- isExclusive: import_zod8.z.boolean()
455
- });
456
- var discountSchema2 = import_zod8.z.discriminatedUnion("type", [
457
- percentageOffDiscountSchema2,
458
- flatAmountOffDiscountSchema2
459
- ]);
460
443
  var openProductLineItem = import_zod8.z.object({
461
444
  id: import_zod8.z.string(),
462
445
  type: import_zod8.z.literal("Product"),
@@ -466,7 +449,7 @@ var openProductLineItem = import_zod8.z.object({
466
449
  price: priceCollectionSchema.optional(),
467
450
  variation: pricingVariationSchema.optional(),
468
451
  product: storefrontProductSchema.optional(),
469
- appliedDiscount: discountSchema2.optional()
452
+ appliedDiscount: discountSchema.optional()
470
453
  });
471
454
  var openBundleLineItem = import_zod8.z.object({
472
455
  id: import_zod8.z.string(),
@@ -477,7 +460,7 @@ var openBundleLineItem = import_zod8.z.object({
477
460
  price: priceCollectionSchema.optional(),
478
461
  variation: pricingVariationSchema.optional(),
479
462
  bundle: storefrontBundleSchema.optional(),
480
- appliedDiscount: discountSchema2.optional()
463
+ appliedDiscount: discountSchema.optional()
481
464
  });
482
465
  var openOrderLineItem = import_zod8.z.discriminatedUnion("type", [
483
466
  openProductLineItem,