@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 +10 -4
- package/dist/index.d.cts +1773 -2
- package/dist/index.d.ts +1773 -2
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,13 +35,19 @@ var discountSchema = z.discriminatedUnion("type", [
|
|
|
35
35
|
percentageOffDiscountSchema,
|
|
36
36
|
flatAmountOffDiscountSchema
|
|
37
37
|
]);
|
|
38
|
+
var pricingTierSchema = z.object({
|
|
39
|
+
minQuantity: z.number(),
|
|
40
|
+
originalPrice: priceCollectionSchema,
|
|
41
|
+
price: priceCollectionSchema
|
|
42
|
+
});
|
|
38
43
|
var pricingVariationSchema = z.object({
|
|
39
44
|
id: z.string(),
|
|
40
45
|
name: z.string(),
|
|
41
46
|
originalPrice: priceCollectionSchema,
|
|
42
47
|
price: priceCollectionSchema,
|
|
43
48
|
hasDiscount: z.boolean(),
|
|
44
|
-
discount: discountSchema.optional()
|
|
49
|
+
discount: discountSchema.optional(),
|
|
50
|
+
pricingTiers: z.array(pricingTierSchema).nullish()
|
|
45
51
|
});
|
|
46
52
|
function paged(itemSchema) {
|
|
47
53
|
return z.object({
|
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.
|
|
4
|
+
"version": "0.2.135",
|
|
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",
|