@moonbase.sh/storefront-api 0.2.132 → 0.2.135

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
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  ActivationMethod: () => ActivationMethod,
34
34
  ActivationRequestFulfillmentType: () => ActivationRequestFulfillmentType,
35
35
  ActivationRequestStatus: () => ActivationRequestStatus,
@@ -45,7 +45,7 @@ __export(src_exports, {
45
45
  schemas: () => schemas_exports2,
46
46
  utmToObject: () => utmToObject
47
47
  });
48
- module.exports = __toCommonJS(src_exports);
48
+ module.exports = __toCommonJS(index_exports);
49
49
 
50
50
  // src/activationRequests/endpoints.ts
51
51
  var import_zod5 = require("zod");
@@ -78,13 +78,19 @@ var discountSchema = import_zod.z.discriminatedUnion("type", [
78
78
  percentageOffDiscountSchema,
79
79
  flatAmountOffDiscountSchema
80
80
  ]);
81
+ var pricingTierSchema = import_zod.z.object({
82
+ minQuantity: import_zod.z.number(),
83
+ originalPrice: priceCollectionSchema,
84
+ price: priceCollectionSchema
85
+ });
81
86
  var pricingVariationSchema = import_zod.z.object({
82
87
  id: import_zod.z.string(),
83
88
  name: import_zod.z.string(),
84
89
  originalPrice: priceCollectionSchema,
85
90
  price: priceCollectionSchema,
86
91
  hasDiscount: import_zod.z.boolean(),
87
- discount: discountSchema.optional()
92
+ discount: discountSchema.optional(),
93
+ pricingTiers: import_zod.z.array(pricingTierSchema).nullish()
88
94
  });
89
95
  function paged(itemSchema) {
90
96
  return import_zod.z.object({