@ehrenkind/shopify-lib 0.6.1 → 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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20175,7 +20175,7 @@ type AllProductVariantsQuery = {
|
|
|
20175
20175
|
productVariants: {
|
|
20176
20176
|
edges: Array<{
|
|
20177
20177
|
node: (Pick<ProductVariant$1, 'id' | 'legacyResourceId' | 'sku' | 'barcode' | 'inventoryQuantity' | 'price' | 'title'> & {
|
|
20178
|
-
product: (Pick<Product, 'status' | 'title' | 'description' | 'handle' | 'onlineStoreUrl'> & {
|
|
20178
|
+
product: (Pick<Product, 'status' | 'title' | 'description' | 'handle' | 'onlineStoreUrl' | 'combinedListingRole'> & {
|
|
20179
20179
|
featuredImage?: Maybe<Pick<Image, 'url'>>;
|
|
20180
20180
|
});
|
|
20181
20181
|
});
|
|
@@ -20701,6 +20701,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
20701
20701
|
description: z.ZodString;
|
|
20702
20702
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
20703
20703
|
inventoryQuantity: z.ZodNumber;
|
|
20704
|
+
combinedListingRole: z.ZodNullable<z.ZodEnum<["PARENT", "CHILD"]>>;
|
|
20704
20705
|
}, "strip", z.ZodTypeAny, {
|
|
20705
20706
|
status: "ACTIVE" | "ARCHIVED" | "DRAFT";
|
|
20706
20707
|
url: string | null;
|
|
@@ -20711,6 +20712,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
20711
20712
|
inventoryQuantity: number;
|
|
20712
20713
|
price: string;
|
|
20713
20714
|
title: string;
|
|
20715
|
+
combinedListingRole: "CHILD" | "PARENT" | null;
|
|
20714
20716
|
imageUrl: string | null;
|
|
20715
20717
|
}, {
|
|
20716
20718
|
status: "ACTIVE" | "ARCHIVED" | "DRAFT";
|
|
@@ -20722,6 +20724,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
20722
20724
|
inventoryQuantity: number;
|
|
20723
20725
|
price: string;
|
|
20724
20726
|
title: string;
|
|
20727
|
+
combinedListingRole: "CHILD" | "PARENT" | null;
|
|
20725
20728
|
imageUrl: string | null;
|
|
20726
20729
|
}>;
|
|
20727
20730
|
type ProductVariant = z.infer<typeof ProductVariantSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -20175,7 +20175,7 @@ type AllProductVariantsQuery = {
|
|
|
20175
20175
|
productVariants: {
|
|
20176
20176
|
edges: Array<{
|
|
20177
20177
|
node: (Pick<ProductVariant$1, 'id' | 'legacyResourceId' | 'sku' | 'barcode' | 'inventoryQuantity' | 'price' | 'title'> & {
|
|
20178
|
-
product: (Pick<Product, 'status' | 'title' | 'description' | 'handle' | 'onlineStoreUrl'> & {
|
|
20178
|
+
product: (Pick<Product, 'status' | 'title' | 'description' | 'handle' | 'onlineStoreUrl' | 'combinedListingRole'> & {
|
|
20179
20179
|
featuredImage?: Maybe<Pick<Image, 'url'>>;
|
|
20180
20180
|
});
|
|
20181
20181
|
});
|
|
@@ -20701,6 +20701,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
20701
20701
|
description: z.ZodString;
|
|
20702
20702
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
20703
20703
|
inventoryQuantity: z.ZodNumber;
|
|
20704
|
+
combinedListingRole: z.ZodNullable<z.ZodEnum<["PARENT", "CHILD"]>>;
|
|
20704
20705
|
}, "strip", z.ZodTypeAny, {
|
|
20705
20706
|
status: "ACTIVE" | "ARCHIVED" | "DRAFT";
|
|
20706
20707
|
url: string | null;
|
|
@@ -20711,6 +20712,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
20711
20712
|
inventoryQuantity: number;
|
|
20712
20713
|
price: string;
|
|
20713
20714
|
title: string;
|
|
20715
|
+
combinedListingRole: "CHILD" | "PARENT" | null;
|
|
20714
20716
|
imageUrl: string | null;
|
|
20715
20717
|
}, {
|
|
20716
20718
|
status: "ACTIVE" | "ARCHIVED" | "DRAFT";
|
|
@@ -20722,6 +20724,7 @@ declare const ProductVariantSchema: z.ZodObject<{
|
|
|
20722
20724
|
inventoryQuantity: number;
|
|
20723
20725
|
price: string;
|
|
20724
20726
|
title: string;
|
|
20727
|
+
combinedListingRole: "CHILD" | "PARENT" | null;
|
|
20725
20728
|
imageUrl: string | null;
|
|
20726
20729
|
}>;
|
|
20727
20730
|
type ProductVariant = z.infer<typeof ProductVariantSchema>;
|
package/dist/index.mjs
CHANGED
|
@@ -2020,6 +2020,7 @@ var queryAllProductVariants = gql`#graphql
|
|
|
2020
2020
|
description
|
|
2021
2021
|
handle
|
|
2022
2022
|
onlineStoreUrl
|
|
2023
|
+
combinedListingRole
|
|
2023
2024
|
featuredImage {
|
|
2024
2025
|
url
|
|
2025
2026
|
}
|
|
@@ -2045,7 +2046,8 @@ var ProductVariantSchema = z7.object({
|
|
|
2045
2046
|
handle: z7.string(),
|
|
2046
2047
|
description: z7.string(),
|
|
2047
2048
|
imageUrl: z7.string().nullable(),
|
|
2048
|
-
inventoryQuantity: z7.number()
|
|
2049
|
+
inventoryQuantity: z7.number(),
|
|
2050
|
+
combinedListingRole: z7.enum(["PARENT", "CHILD"]).nullable()
|
|
2049
2051
|
});
|
|
2050
2052
|
var GetAllProductVariantsReturn = z7.array(ProductVariantSchema);
|
|
2051
2053
|
async function getAllProductVariants() {
|
|
@@ -2083,7 +2085,8 @@ async function getAllProductVariants() {
|
|
|
2083
2085
|
handle: v.product.handle,
|
|
2084
2086
|
description: v.product.description,
|
|
2085
2087
|
imageUrl: v.product.featuredImage?.url ?? null,
|
|
2086
|
-
inventoryQuantity: v.inventoryQuantity ?? 0
|
|
2088
|
+
inventoryQuantity: v.inventoryQuantity ?? 0,
|
|
2089
|
+
combinedListingRole: v.product.combinedListingRole ?? null
|
|
2087
2090
|
};
|
|
2088
2091
|
});
|
|
2089
2092
|
return await returnOutputParsed(allVariants, GetAllProductVariantsReturn);
|