@moonbase.sh/storefront-api 0.2.27 → 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.cjs CHANGED
@@ -440,6 +440,12 @@ var couponSchema = import_zod8.z.object({
440
440
  name: import_zod8.z.string(),
441
441
  description: import_zod8.z.string()
442
442
  });
443
+ var lineItemProductSchema = import_zod8.z.object({
444
+ id: import_zod8.z.string(),
445
+ name: import_zod8.z.string(),
446
+ tagline: import_zod8.z.string(),
447
+ iconUrl: import_zod8.z.string().nullable()
448
+ });
443
449
  var openProductLineItem = import_zod8.z.object({
444
450
  id: import_zod8.z.string(),
445
451
  type: import_zod8.z.literal("Product"),
@@ -448,9 +454,19 @@ var openProductLineItem = import_zod8.z.object({
448
454
  variationId: import_zod8.z.string(),
449
455
  price: priceCollectionSchema.optional(),
450
456
  variation: pricingVariationSchema.optional(),
451
- product: storefrontProductSchema.optional(),
457
+ product: lineItemProductSchema.optional(),
452
458
  appliedDiscount: discountSchema.optional()
453
459
  });
460
+ var lineItemBundleSchema = import_zod8.z.object({
461
+ id: import_zod8.z.string(),
462
+ name: import_zod8.z.string(),
463
+ tagline: import_zod8.z.string(),
464
+ iconUrl: import_zod8.z.string().nullable(),
465
+ partial: import_zod8.z.boolean(),
466
+ products: lineItemProductSchema.and(import_zod8.z.object({
467
+ included: import_zod8.z.boolean().optional()
468
+ })).array()
469
+ });
454
470
  var openBundleLineItem = import_zod8.z.object({
455
471
  id: import_zod8.z.string(),
456
472
  type: import_zod8.z.literal("Bundle"),
@@ -459,7 +475,7 @@ var openBundleLineItem = import_zod8.z.object({
459
475
  variationId: import_zod8.z.string(),
460
476
  price: priceCollectionSchema.optional(),
461
477
  variation: pricingVariationSchema.optional(),
462
- bundle: storefrontBundleSchema.optional(),
478
+ bundle: lineItemBundleSchema.optional(),
463
479
  appliedDiscount: discountSchema.optional()
464
480
  });
465
481
  var openOrderLineItem = import_zod8.z.discriminatedUnion("type", [