Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ declare namespace Shopify {
src: string;
updated_at?: string;
width: number;
alt: string | null;
}

interface IBase64Image {
Expand Down Expand Up @@ -1429,10 +1430,10 @@ declare namespace Shopify {
created_at: string;
handle: string;
id: number;
metafield: string;
metafield: IObjectMetafield[];
published_at: string;
shop_id: number;
template_suffic: string | null;
template_suffix: string | null;
title: string;
updated_at: string;
}
Expand Down Expand Up @@ -1491,7 +1492,7 @@ declare namespace Shopify {
created_at: string;
handle: string;
id: number;
image: any | null;
image: IProductImage;
images: IProductImage[];
options: IProductOption[];
product_type: string;
Expand All @@ -1516,6 +1517,7 @@ declare namespace Shopify {
width: number;
height: number;
updated_at: string;
alt: string | null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not documented, https://help.shopify.com/en/api/reference/products/product_image is it available?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is as far as I can see in all responses (shown in documentation) involving images, did some tests and I did get them when available and as null when not set.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thank you.

}

type ProductVariantInventoryPolicy = "deny" | "continue";
Expand Down