@moonbase.sh/storefront-api 0.2.28 → 0.2.30

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
@@ -393,6 +393,12 @@ var couponSchema = z8.object({
393
393
  name: z8.string(),
394
394
  description: z8.string()
395
395
  });
396
+ var lineItemProductSchema = z8.object({
397
+ id: z8.string(),
398
+ name: z8.string(),
399
+ tagline: z8.string(),
400
+ iconUrl: z8.string().nullable()
401
+ });
396
402
  var openProductLineItem = z8.object({
397
403
  id: z8.string(),
398
404
  type: z8.literal("Product"),
@@ -401,9 +407,19 @@ var openProductLineItem = z8.object({
401
407
  variationId: z8.string(),
402
408
  price: priceCollectionSchema.optional(),
403
409
  variation: pricingVariationSchema.optional(),
404
- product: storefrontProductSchema.optional(),
410
+ product: lineItemProductSchema.optional(),
405
411
  appliedDiscount: discountSchema.optional()
406
412
  });
413
+ var lineItemBundleSchema = z8.object({
414
+ id: z8.string(),
415
+ name: z8.string(),
416
+ tagline: z8.string(),
417
+ iconUrl: z8.string().nullable(),
418
+ partial: z8.boolean(),
419
+ products: lineItemProductSchema.and(z8.object({
420
+ included: z8.boolean().optional()
421
+ })).array()
422
+ });
407
423
  var openBundleLineItem = z8.object({
408
424
  id: z8.string(),
409
425
  type: z8.literal("Bundle"),
@@ -412,7 +428,7 @@ var openBundleLineItem = z8.object({
412
428
  variationId: z8.string(),
413
429
  price: priceCollectionSchema.optional(),
414
430
  variation: pricingVariationSchema.optional(),
415
- bundle: storefrontBundleSchema.optional(),
431
+ bundle: lineItemBundleSchema.optional(),
416
432
  appliedDiscount: discountSchema.optional()
417
433
  });
418
434
  var openOrderLineItem = z8.discriminatedUnion("type", [
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.28",
4
+ "version": "0.2.30",
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",
@@ -17,7 +17,7 @@
17
17
  "zod": "^3.23.8"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/node": "^22.5.2",
20
+ "@types/node": "^22.5.4",
21
21
  "rimraf": "^6.0.1",
22
22
  "tsup": "^8.2.4",
23
23
  "typescript": "~5.5.4"