@ehrenkind/shopify-lib 0.6.1 → 0.7.1
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 +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1230,6 +1230,12 @@ var queryOrderByIdFull = gql`#graphql
|
|
|
1230
1230
|
height
|
|
1231
1231
|
altText
|
|
1232
1232
|
}
|
|
1233
|
+
lineItemGroup {
|
|
1234
|
+
id
|
|
1235
|
+
title
|
|
1236
|
+
quantity
|
|
1237
|
+
variantSku
|
|
1238
|
+
}
|
|
1233
1239
|
}
|
|
1234
1240
|
}
|
|
1235
1241
|
}
|
|
@@ -2078,6 +2084,7 @@ var queryAllProductVariants = gql`#graphql
|
|
|
2078
2084
|
description
|
|
2079
2085
|
handle
|
|
2080
2086
|
onlineStoreUrl
|
|
2087
|
+
combinedListingRole
|
|
2081
2088
|
featuredImage {
|
|
2082
2089
|
url
|
|
2083
2090
|
}
|
|
@@ -2103,7 +2110,8 @@ var ProductVariantSchema = import_zod11.default.object({
|
|
|
2103
2110
|
handle: import_zod11.default.string(),
|
|
2104
2111
|
description: import_zod11.default.string(),
|
|
2105
2112
|
imageUrl: import_zod11.default.string().nullable(),
|
|
2106
|
-
inventoryQuantity: import_zod11.default.number()
|
|
2113
|
+
inventoryQuantity: import_zod11.default.number(),
|
|
2114
|
+
combinedListingRole: import_zod11.default.enum(["PARENT", "CHILD"]).nullable()
|
|
2107
2115
|
});
|
|
2108
2116
|
var GetAllProductVariantsReturn = import_zod11.default.array(ProductVariantSchema);
|
|
2109
2117
|
async function getAllProductVariants() {
|
|
@@ -2141,7 +2149,8 @@ async function getAllProductVariants() {
|
|
|
2141
2149
|
handle: v.product.handle,
|
|
2142
2150
|
description: v.product.description,
|
|
2143
2151
|
imageUrl: v.product.featuredImage?.url ?? null,
|
|
2144
|
-
inventoryQuantity: v.inventoryQuantity ?? 0
|
|
2152
|
+
inventoryQuantity: v.inventoryQuantity ?? 0,
|
|
2153
|
+
combinedListingRole: v.product.combinedListingRole ?? null
|
|
2145
2154
|
};
|
|
2146
2155
|
});
|
|
2147
2156
|
return await returnOutputParsed(allVariants, GetAllProductVariantsReturn);
|