@ehrenkind/shopify-lib 0.6.0 → 0.7.0

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
@@ -2078,6 +2078,7 @@ var queryAllProductVariants = gql`#graphql
2078
2078
  description
2079
2079
  handle
2080
2080
  onlineStoreUrl
2081
+ combinedListingRole
2081
2082
  featuredImage {
2082
2083
  url
2083
2084
  }
@@ -2103,7 +2104,8 @@ var ProductVariantSchema = import_zod11.default.object({
2103
2104
  handle: import_zod11.default.string(),
2104
2105
  description: import_zod11.default.string(),
2105
2106
  imageUrl: import_zod11.default.string().nullable(),
2106
- inventoryQuantity: import_zod11.default.number()
2107
+ inventoryQuantity: import_zod11.default.number(),
2108
+ combinedListingRole: import_zod11.default.enum(["PARENT", "CHILD"]).nullable()
2107
2109
  });
2108
2110
  var GetAllProductVariantsReturn = import_zod11.default.array(ProductVariantSchema);
2109
2111
  async function getAllProductVariants() {
@@ -2141,7 +2143,8 @@ async function getAllProductVariants() {
2141
2143
  handle: v.product.handle,
2142
2144
  description: v.product.description,
2143
2145
  imageUrl: v.product.featuredImage?.url ?? null,
2144
- inventoryQuantity: v.inventoryQuantity ?? 0
2146
+ inventoryQuantity: v.inventoryQuantity ?? 0,
2147
+ combinedListingRole: v.product.combinedListingRole ?? null
2145
2148
  };
2146
2149
  });
2147
2150
  return await returnOutputParsed(allVariants, GetAllProductVariantsReturn);