@@ -331,11 +331,9 @@ export type RecommendedProductFragment = Pick<
331
331
priceRange : {
332
332
minVariantPrice : Pick < StorefrontAPI . MoneyV2 , 'amount' | 'currencyCode' > ;
333
333
} ;
334
- images : {
335
- nodes : Array <
336
- Pick < StorefrontAPI . Image , 'id' | 'url' | 'altText' | 'width' | 'height' >
337
- > ;
338
- } ;
334
+ featuredImage ?: StorefrontAPI . Maybe <
335
+ Pick < StorefrontAPI . Image , 'id' | 'url' | 'altText' | 'width' | 'height' >
336
+ > ;
339
337
} ;
340
338
341
339
export type RecommendedProductsQueryVariables = StorefrontAPI . Exact < {
@@ -353,14 +351,12 @@ export type RecommendedProductsQuery = {
353
351
'amount' | 'currencyCode'
354
352
> ;
355
353
} ;
356
- images : {
357
- nodes : Array <
358
- Pick <
359
- StorefrontAPI . Image ,
360
- 'id' | 'url' | 'altText' | 'width' | 'height'
361
- >
362
- > ;
363
- } ;
354
+ featuredImage ?: StorefrontAPI . Maybe <
355
+ Pick <
356
+ StorefrontAPI . Image ,
357
+ 'id' | 'url' | 'altText' | 'width' | 'height'
358
+ >
359
+ > ;
364
360
}
365
361
> ;
366
362
} ;
@@ -594,6 +590,24 @@ export type StoreCollectionsQuery = {
594
590
} ;
595
591
} ;
596
592
593
+ export type MoneyCollectionItemFragment = Pick <
594
+ StorefrontAPI . MoneyV2 ,
595
+ 'amount' | 'currencyCode'
596
+ > ;
597
+
598
+ export type CollectionItemFragment = Pick <
599
+ StorefrontAPI . Product ,
600
+ 'id' | 'handle' | 'title'
601
+ > & {
602
+ featuredImage ?: StorefrontAPI . Maybe <
603
+ Pick < StorefrontAPI . Image , 'id' | 'altText' | 'url' | 'width' | 'height' >
604
+ > ;
605
+ priceRange : {
606
+ minVariantPrice : Pick < StorefrontAPI . MoneyV2 , 'amount' | 'currencyCode' > ;
607
+ maxVariantPrice : Pick < StorefrontAPI . MoneyV2 , 'amount' | 'currencyCode' > ;
608
+ } ;
609
+ } ;
610
+
597
611
export type CatalogQueryVariables = StorefrontAPI . Exact < {
598
612
country ?: StorefrontAPI . InputMaybe < StorefrontAPI . CountryCode > ;
599
613
language ?: StorefrontAPI . InputMaybe < StorefrontAPI . LanguageCode > ;
@@ -1188,7 +1202,7 @@ interface GeneratedQueryTypes {
1188
1202
return : FeaturedCollectionQuery ;
1189
1203
variables : FeaturedCollectionQueryVariables ;
1190
1204
} ;
1191
- '#graphql\n fragment RecommendedProduct on Product {\n id\n title\n handle\n priceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n images(first: 1) {\n nodes {\n id\n url\n altText\n width\n height\n } \n }\n }\n query RecommendedProducts ($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n products(first: 4, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...RecommendedProduct\n }\n }\n }\n' : {
1205
+ '#graphql\n fragment RecommendedProduct on Product {\n id\n title\n handle\n priceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n featuredImage {\n id\n url\n altText\n width\n height\n }\n }\n query RecommendedProducts ($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n products(first: 4, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...RecommendedProduct\n }\n }\n }\n' : {
1192
1206
return : RecommendedProductsQuery ;
1193
1207
variables : RecommendedProductsQueryVariables ;
1194
1208
} ;
@@ -1212,7 +1226,7 @@ interface GeneratedQueryTypes {
1212
1226
return : StoreCollectionsQuery ;
1213
1227
variables : StoreCollectionsQueryVariables ;
1214
1228
} ;
1215
- '#graphql\n query Catalog(\n $country: CountryCode\n $language: LanguageCode\n $first: Int\n $last: Int\n $startCursor: String\n $endCursor: String\n ) @inContext(country: $country, language: $language) {\n products(first: $first, last: $last, before: $startCursor, after: $endCursor) {\n nodes {\n ...ProductItem \n }\n pageInfo {\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n }\n }\n }\n #graphql\n fragment MoneyProductItem on MoneyV2 {\n amount\n currencyCode\n }\n fragment ProductItem on Product {\n id\n handle\n title\n featuredImage {\n id\n altText\n url\n width\n height\n }\n priceRange {\n minVariantPrice {\n ...MoneyProductItem \n }\n maxVariantPrice {\n ...MoneyProductItem \n }\n }\n }\n\n' : {
1229
+ '#graphql\n query Catalog(\n $country: CountryCode\n $language: LanguageCode\n $first: Int\n $last: Int\n $startCursor: String\n $endCursor: String\n ) @inContext(country: $country, language: $language) {\n products(first: $first, last: $last, before: $startCursor, after: $endCursor) {\n nodes {\n ...CollectionItem \n }\n pageInfo {\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n }\n }\n }\n #graphql\n fragment MoneyCollectionItem on MoneyV2 {\n amount\n currencyCode\n }\n fragment CollectionItem on Product {\n id\n handle\n title\n featuredImage {\n id\n altText\n url\n width\n height\n }\n priceRange {\n minVariantPrice {\n ...MoneyCollectionItem \n }\n maxVariantPrice {\n ...MoneyCollectionItem \n }\n }\n }\n\n' : {
1216
1230
return : CatalogQuery ;
1217
1231
variables : CatalogQueryVariables ;
1218
1232
} ;
0 commit comments