@shopify/hydrogen-react 2024.7.5 → 2024.10.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.
Files changed (135) hide show
  1. package/customer-account.schema.json +1 -1
  2. package/dist/browser-dev/CartLineProvider.mjs.map +1 -1
  3. package/dist/browser-dev/CartProvider.mjs.map +1 -1
  4. package/dist/browser-dev/Image.mjs +3 -2
  5. package/dist/browser-dev/Image.mjs.map +1 -1
  6. package/dist/browser-dev/ModelViewer.mjs.map +1 -1
  7. package/dist/browser-dev/Money.mjs.map +1 -1
  8. package/dist/browser-dev/ProductPrice.mjs +7 -19
  9. package/dist/browser-dev/ProductPrice.mjs.map +1 -1
  10. package/dist/browser-dev/Video.mjs.map +1 -1
  11. package/dist/browser-dev/codegen.helpers.mjs.map +1 -1
  12. package/dist/browser-dev/index.mjs +3 -0
  13. package/dist/browser-dev/index.mjs.map +1 -1
  14. package/dist/browser-dev/optionValueDecoder.mjs +91 -0
  15. package/dist/browser-dev/optionValueDecoder.mjs.map +1 -0
  16. package/dist/browser-dev/packages/hydrogen-react/package.json.mjs +1 -1
  17. package/dist/browser-dev/storefront-api-constants.mjs +1 -1
  18. package/dist/browser-dev/storefront-api-constants.mjs.map +1 -1
  19. package/dist/browser-dev/useCartAPIStateMachine.mjs.map +1 -1
  20. package/dist/browser-dev/useCartActions.mjs.map +1 -1
  21. package/dist/browser-prod/CartLineProvider.mjs.map +1 -1
  22. package/dist/browser-prod/CartProvider.mjs.map +1 -1
  23. package/dist/browser-prod/Image.mjs +3 -2
  24. package/dist/browser-prod/Image.mjs.map +1 -1
  25. package/dist/browser-prod/ModelViewer.mjs.map +1 -1
  26. package/dist/browser-prod/Money.mjs.map +1 -1
  27. package/dist/browser-prod/ProductPrice.mjs +7 -19
  28. package/dist/browser-prod/ProductPrice.mjs.map +1 -1
  29. package/dist/browser-prod/Video.mjs.map +1 -1
  30. package/dist/browser-prod/codegen.helpers.mjs.map +1 -1
  31. package/dist/browser-prod/index.mjs +3 -0
  32. package/dist/browser-prod/index.mjs.map +1 -1
  33. package/dist/browser-prod/optionValueDecoder.mjs +91 -0
  34. package/dist/browser-prod/optionValueDecoder.mjs.map +1 -0
  35. package/dist/browser-prod/packages/hydrogen-react/package.json.mjs +1 -1
  36. package/dist/browser-prod/storefront-api-constants.mjs +1 -1
  37. package/dist/browser-prod/storefront-api-constants.mjs.map +1 -1
  38. package/dist/browser-prod/useCartAPIStateMachine.mjs.map +1 -1
  39. package/dist/browser-prod/useCartActions.mjs.map +1 -1
  40. package/dist/node-dev/CartLineProvider.js.map +1 -1
  41. package/dist/node-dev/CartLineProvider.mjs.map +1 -1
  42. package/dist/node-dev/CartProvider.js.map +1 -1
  43. package/dist/node-dev/CartProvider.mjs.map +1 -1
  44. package/dist/node-dev/Image.js +3 -2
  45. package/dist/node-dev/Image.js.map +1 -1
  46. package/dist/node-dev/Image.mjs +3 -2
  47. package/dist/node-dev/Image.mjs.map +1 -1
  48. package/dist/node-dev/ModelViewer.js.map +1 -1
  49. package/dist/node-dev/ModelViewer.mjs.map +1 -1
  50. package/dist/node-dev/Money.js.map +1 -1
  51. package/dist/node-dev/Money.mjs.map +1 -1
  52. package/dist/node-dev/ProductPrice.js +7 -19
  53. package/dist/node-dev/ProductPrice.js.map +1 -1
  54. package/dist/node-dev/ProductPrice.mjs +7 -19
  55. package/dist/node-dev/ProductPrice.mjs.map +1 -1
  56. package/dist/node-dev/Video.js.map +1 -1
  57. package/dist/node-dev/Video.mjs.map +1 -1
  58. package/dist/node-dev/codegen.helpers.js.map +1 -1
  59. package/dist/node-dev/codegen.helpers.mjs.map +1 -1
  60. package/dist/node-dev/index.js +3 -0
  61. package/dist/node-dev/index.js.map +1 -1
  62. package/dist/node-dev/index.mjs +3 -0
  63. package/dist/node-dev/index.mjs.map +1 -1
  64. package/dist/node-dev/optionValueDecoder.js +91 -0
  65. package/dist/node-dev/optionValueDecoder.js.map +1 -0
  66. package/dist/node-dev/optionValueDecoder.mjs +91 -0
  67. package/dist/node-dev/optionValueDecoder.mjs.map +1 -0
  68. package/dist/node-dev/packages/hydrogen-react/package.json.js +1 -1
  69. package/dist/node-dev/packages/hydrogen-react/package.json.mjs +1 -1
  70. package/dist/node-dev/storefront-api-constants.js +1 -1
  71. package/dist/node-dev/storefront-api-constants.js.map +1 -1
  72. package/dist/node-dev/storefront-api-constants.mjs +1 -1
  73. package/dist/node-dev/storefront-api-constants.mjs.map +1 -1
  74. package/dist/node-dev/useCartAPIStateMachine.js.map +1 -1
  75. package/dist/node-dev/useCartAPIStateMachine.mjs.map +1 -1
  76. package/dist/node-dev/useCartActions.js.map +1 -1
  77. package/dist/node-dev/useCartActions.mjs.map +1 -1
  78. package/dist/node-prod/CartLineProvider.js.map +1 -1
  79. package/dist/node-prod/CartLineProvider.mjs.map +1 -1
  80. package/dist/node-prod/CartProvider.js.map +1 -1
  81. package/dist/node-prod/CartProvider.mjs.map +1 -1
  82. package/dist/node-prod/Image.js +3 -2
  83. package/dist/node-prod/Image.js.map +1 -1
  84. package/dist/node-prod/Image.mjs +3 -2
  85. package/dist/node-prod/Image.mjs.map +1 -1
  86. package/dist/node-prod/ModelViewer.js.map +1 -1
  87. package/dist/node-prod/ModelViewer.mjs.map +1 -1
  88. package/dist/node-prod/Money.js.map +1 -1
  89. package/dist/node-prod/Money.mjs.map +1 -1
  90. package/dist/node-prod/ProductPrice.js +7 -19
  91. package/dist/node-prod/ProductPrice.js.map +1 -1
  92. package/dist/node-prod/ProductPrice.mjs +7 -19
  93. package/dist/node-prod/ProductPrice.mjs.map +1 -1
  94. package/dist/node-prod/Video.js.map +1 -1
  95. package/dist/node-prod/Video.mjs.map +1 -1
  96. package/dist/node-prod/codegen.helpers.js.map +1 -1
  97. package/dist/node-prod/codegen.helpers.mjs.map +1 -1
  98. package/dist/node-prod/index.js +3 -0
  99. package/dist/node-prod/index.js.map +1 -1
  100. package/dist/node-prod/index.mjs +3 -0
  101. package/dist/node-prod/index.mjs.map +1 -1
  102. package/dist/node-prod/optionValueDecoder.js +91 -0
  103. package/dist/node-prod/optionValueDecoder.js.map +1 -0
  104. package/dist/node-prod/optionValueDecoder.mjs +91 -0
  105. package/dist/node-prod/optionValueDecoder.mjs.map +1 -0
  106. package/dist/node-prod/packages/hydrogen-react/package.json.js +1 -1
  107. package/dist/node-prod/packages/hydrogen-react/package.json.mjs +1 -1
  108. package/dist/node-prod/storefront-api-constants.js +1 -1
  109. package/dist/node-prod/storefront-api-constants.js.map +1 -1
  110. package/dist/node-prod/storefront-api-constants.mjs +1 -1
  111. package/dist/node-prod/storefront-api-constants.mjs.map +1 -1
  112. package/dist/node-prod/useCartAPIStateMachine.js.map +1 -1
  113. package/dist/node-prod/useCartAPIStateMachine.mjs.map +1 -1
  114. package/dist/node-prod/useCartActions.js.map +1 -1
  115. package/dist/node-prod/useCartActions.mjs.map +1 -1
  116. package/dist/types/CartLineProvider.d.ts +1 -1
  117. package/dist/types/CartProvider.d.ts +2 -2
  118. package/dist/types/Image.d.ts +1 -22
  119. package/dist/types/ModelViewer.d.ts +1 -1
  120. package/dist/types/Money.d.ts +1 -1
  121. package/dist/types/Video.d.ts +1 -1
  122. package/dist/types/codegen.helpers.d.ts +2 -2
  123. package/dist/types/index.d.cts +1 -0
  124. package/dist/types/index.d.ts +1 -0
  125. package/dist/types/optionValueDecoder.d.ts +29 -0
  126. package/dist/types/storefront-api-constants.d.ts +1 -1
  127. package/dist/types/storefront-api-types.d.ts +419 -26
  128. package/dist/types/useCartAPIStateMachine.d.ts +2 -2
  129. package/dist/types/useCartActions.d.ts +2 -2
  130. package/dist/umd/hydrogen-react.dev.js +100 -23
  131. package/dist/umd/hydrogen-react.dev.js.map +1 -1
  132. package/dist/umd/hydrogen-react.prod.js +18 -18
  133. package/dist/umd/hydrogen-react.prod.js.map +1 -1
  134. package/package.json +2 -2
  135. package/storefront.schema.json +1 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE IS AUTO-GENERATED, DO NOT EDIT
3
- * Based on Storefront API 2024-07
3
+ * Based on Storefront API 2024-10
4
4
  * If changes need to happen to the types defined in this file, then generally the Storefront API needs to update. After it's updated, you can run `npm run graphql-types`.
5
5
  * Except custom Scalars, which are defined in the `codegen.ts` file
6
6
  */
@@ -159,7 +159,7 @@ export type Article = HasMetafields &
159
159
  tags: Array<Scalars['String']['output']>;
160
160
  /** The article’s name. */
161
161
  title: Scalars['String']['output'];
162
- /** A URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. */
162
+ /** URL parameters to be added to a page URL to track the origin of on-site search traffic for [analytics reporting](https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports). Returns a result when accessed through the [search](https://shopify.dev/docs/api/storefront/current/queries/search) or [predictiveSearch](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries, otherwise returns null. */
163
163
  trackingParameters?: Maybe<Scalars['String']['output']>;
164
164
  };
165
165
 
@@ -255,12 +255,18 @@ export type ArticleSortKeys =
255
255
  /** Sort by the `updated_at` value. */
256
256
  | 'UPDATED_AT';
257
257
 
258
- /** Represents a generic custom attribute. */
258
+ /** Represents a generic custom attribute, such as whether an order is a customer's first. */
259
259
  export type Attribute = {
260
260
  __typename?: 'Attribute';
261
- /** Key or name of the attribute. */
261
+ /**
262
+ * The key or name of the attribute. For example, `"customersFirstOrder"`.
263
+ *
264
+ */
262
265
  key: Scalars['String']['output'];
263
- /** Value of the attribute. */
266
+ /**
267
+ * The value of the attribute. For example, `"true"`.
268
+ *
269
+ */
264
270
  value?: Maybe<Scalars['String']['output']>;
265
271
  };
266
272
 
@@ -649,6 +655,8 @@ export type CartAttributesUpdatePayload = {
649
655
  cart?: Maybe<Cart>;
650
656
  /** The list of errors that occurred from executing the mutation. */
651
657
  userErrors: Array<CartUserError>;
658
+ /** A list of warnings that occurred during the mutation. */
659
+ warnings: Array<CartWarning>;
652
660
  };
653
661
 
654
662
  /** The discounts automatically applied to the cart line based on prerequisites that have been met. */
@@ -669,6 +677,8 @@ export type CartBillingAddressUpdatePayload = {
669
677
  cart?: Maybe<Cart>;
670
678
  /** The list of errors that occurred from executing the mutation. */
671
679
  userErrors: Array<CartUserError>;
680
+ /** A list of warnings that occurred during the mutation. */
681
+ warnings: Array<CartWarning>;
672
682
  };
673
683
 
674
684
  /** Represents information about the buyer that is interacting with the cart. */
@@ -740,6 +750,8 @@ export type CartBuyerIdentityUpdatePayload = {
740
750
  cart?: Maybe<Cart>;
741
751
  /** The list of errors that occurred from executing the mutation. */
742
752
  userErrors: Array<CartUserError>;
753
+ /** A list of warnings that occurred during the mutation. */
754
+ warnings: Array<CartWarning>;
743
755
  };
744
756
 
745
757
  /**
@@ -850,6 +862,8 @@ export type CartCreatePayload = {
850
862
  cart?: Maybe<Cart>;
851
863
  /** The list of errors that occurred from executing the mutation. */
852
864
  userErrors: Array<CartUserError>;
865
+ /** A list of warnings that occurred during the mutation. */
866
+ warnings: Array<CartWarning>;
853
867
  };
854
868
 
855
869
  /** The discounts automatically applied to the cart line based on prerequisites that have been met. */
@@ -998,12 +1012,8 @@ export type CartDeliveryPreference = {
998
1012
 
999
1013
  /** Delivery preferences can be used to prefill the delivery section at checkout. */
1000
1014
  export type CartDeliveryPreferenceInput = {
1001
- /**
1002
- * The coordinates of a delivery location in order of preference.
1003
- *
1004
- * The input must not contain more than `250` values.
1005
- */
1006
- coordinates?: InputMaybe<Array<CartDeliveryCoordinatesPreferenceInput>>;
1015
+ /** The coordinates of a delivery location in order of preference. */
1016
+ coordinates?: InputMaybe<CartDeliveryCoordinatesPreferenceInput>;
1007
1017
  /**
1008
1018
  * The preferred delivery methods such as shipping, local pickup or through pickup points.
1009
1019
  *
@@ -1056,6 +1066,8 @@ export type CartDiscountCodesUpdatePayload = {
1056
1066
  cart?: Maybe<Cart>;
1057
1067
  /** The list of errors that occurred from executing the mutation. */
1058
1068
  userErrors: Array<CartUserError>;
1069
+ /** A list of warnings that occurred during the mutation. */
1070
+ warnings: Array<CartWarning>;
1059
1071
  };
1060
1072
 
1061
1073
  /** Possible error codes that can be returned by `CartUserError`. */
@@ -1150,6 +1162,8 @@ export type CartGiftCardCodesUpdatePayload = {
1150
1162
  cart?: Maybe<Cart>;
1151
1163
  /** The list of errors that occurred from executing the mutation. */
1152
1164
  userErrors: Array<CartUserError>;
1165
+ /** A list of warnings that occurred during the mutation. */
1166
+ warnings: Array<CartWarning>;
1153
1167
  };
1154
1168
 
1155
1169
  /** The input fields to create a cart. */
@@ -1321,6 +1335,8 @@ export type CartLinesAddPayload = {
1321
1335
  cart?: Maybe<Cart>;
1322
1336
  /** The list of errors that occurred from executing the mutation. */
1323
1337
  userErrors: Array<CartUserError>;
1338
+ /** A list of warnings that occurred during the mutation. */
1339
+ warnings: Array<CartWarning>;
1324
1340
  };
1325
1341
 
1326
1342
  /** Return type for `cartLinesRemove` mutation. */
@@ -1330,6 +1346,8 @@ export type CartLinesRemovePayload = {
1330
1346
  cart?: Maybe<Cart>;
1331
1347
  /** The list of errors that occurred from executing the mutation. */
1332
1348
  userErrors: Array<CartUserError>;
1349
+ /** A list of warnings that occurred during the mutation. */
1350
+ warnings: Array<CartWarning>;
1333
1351
  };
1334
1352
 
1335
1353
  /** Return type for `cartLinesUpdate` mutation. */
@@ -1339,6 +1357,8 @@ export type CartLinesUpdatePayload = {
1339
1357
  cart?: Maybe<Cart>;
1340
1358
  /** The list of errors that occurred from executing the mutation. */
1341
1359
  userErrors: Array<CartUserError>;
1360
+ /** A list of warnings that occurred during the mutation. */
1361
+ warnings: Array<CartWarning>;
1342
1362
  };
1343
1363
 
1344
1364
  /** The input fields to delete a cart metafield. */
@@ -1397,6 +1417,8 @@ export type CartNoteUpdatePayload = {
1397
1417
  cart?: Maybe<Cart>;
1398
1418
  /** The list of errors that occurred from executing the mutation. */
1399
1419
  userErrors: Array<CartUserError>;
1420
+ /** A list of warnings that occurred during the mutation. */
1421
+ warnings: Array<CartWarning>;
1400
1422
  };
1401
1423
 
1402
1424
  /**
@@ -1437,6 +1459,8 @@ export type CartPaymentUpdatePayload = {
1437
1459
  cart?: Maybe<Cart>;
1438
1460
  /** The list of errors that occurred from executing the mutation. */
1439
1461
  userErrors: Array<CartUserError>;
1462
+ /** A list of warnings that occurred during the mutation. */
1463
+ warnings: Array<CartWarning>;
1440
1464
  };
1441
1465
 
1442
1466
  /**
@@ -1458,12 +1482,8 @@ export type CartPreferences = {
1458
1482
 
1459
1483
  /** The input fields represent preferences for the buyer that is interacting with the cart. */
1460
1484
  export type CartPreferencesInput = {
1461
- /**
1462
- * Delivery preferences can be used to prefill the delivery section in at checkout.
1463
- *
1464
- * The input must not contain more than `250` values.
1465
- */
1466
- delivery?: InputMaybe<Array<CartDeliveryPreferenceInput>>;
1485
+ /** Delivery preferences can be used to prefill the delivery section in at checkout. */
1486
+ delivery?: InputMaybe<CartDeliveryPreferenceInput>;
1467
1487
  /**
1468
1488
  * Wallet preferences are used to populate relevant payment fields in the checkout flow.
1469
1489
  * Accepted value: `["shop_pay"]`.
@@ -1491,6 +1511,8 @@ export type CartSelectedDeliveryOptionsUpdatePayload = {
1491
1511
  cart?: Maybe<Cart>;
1492
1512
  /** The list of errors that occurred from executing the mutation. */
1493
1513
  userErrors: Array<CartUserError>;
1514
+ /** A list of warnings that occurred during the mutation. */
1515
+ warnings: Array<CartWarning>;
1494
1516
  };
1495
1517
 
1496
1518
  /** Return type for `cartSubmitForCompletion` mutation. */
@@ -1531,6 +1553,26 @@ export type CartWalletPaymentMethodInput = {
1531
1553
  shopPayWalletContent?: InputMaybe<ShopPayWalletContentInput>;
1532
1554
  };
1533
1555
 
1556
+ /** A warning that occurred during a cart mutation. */
1557
+ export type CartWarning = {
1558
+ __typename?: 'CartWarning';
1559
+ /** The code of the warning. */
1560
+ code: CartWarningCode;
1561
+ /** The message text of the warning. */
1562
+ message: Scalars['String']['output'];
1563
+ /** The target of the warning. */
1564
+ target: Scalars['ID']['output'];
1565
+ };
1566
+
1567
+ /** The code for the cart warning. */
1568
+ export type CartWarningCode =
1569
+ /** The merchandise does not have enough stock. */
1570
+ | 'MERCHANDISE_NOT_ENOUGH_STOCK'
1571
+ /** The merchandise is out of stock. */
1572
+ | 'MERCHANDISE_OUT_OF_STOCK'
1573
+ /** Gift cards are not available as a payment method. */
1574
+ | 'PAYMENTS_GIFT_CARDS_UNAVAILABLE';
1575
+
1534
1576
  /**
1535
1577
  * A collection represents a grouping of products that a shop owner can create to
1536
1578
  * organize them or make their shops easier to browse.
@@ -1567,7 +1609,7 @@ export type Collection = HasMetafields &
1567
1609
  seo: Seo;
1568
1610
  /** The collection’s name. Limit of 255 characters. */
1569
1611
  title: Scalars['String']['output'];
1570
- /** A URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. */
1612
+ /** URL parameters to be added to a page URL to track the origin of on-site search traffic for [analytics reporting](https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports). Returns a result when accessed through the [search](https://shopify.dev/docs/api/storefront/current/queries/search) or [predictiveSearch](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries, otherwise returns null. */
1571
1613
  trackingParameters?: Maybe<Scalars['String']['output']>;
1572
1614
  /** The date and time when the collection was last modified. */
1573
1615
  updatedAt: Scalars['DateTime']['output'];
@@ -1861,6 +1903,22 @@ export type ComponentizableCartLineAttributeArgs = {
1861
1903
  key: Scalars['String']['input'];
1862
1904
  };
1863
1905
 
1906
+ /** Details for count of elements. */
1907
+ export type Count = {
1908
+ __typename?: 'Count';
1909
+ /** Count of elements. */
1910
+ count: Scalars['Int']['output'];
1911
+ /** Precision of count, how exact is the value. */
1912
+ precision: CountPrecision;
1913
+ };
1914
+
1915
+ /** The precision of the value returned by a count field. */
1916
+ export type CountPrecision =
1917
+ /** The count is at least the value. A limit was reached. */
1918
+ | 'AT_LEAST'
1919
+ /** The count is exactly the value. */
1920
+ | 'EXACT';
1921
+
1864
1922
  /** A country. */
1865
1923
  export type Country = {
1866
1924
  __typename?: 'Country';
@@ -3716,7 +3774,7 @@ export type Language = {
3716
3774
  name: Scalars['String']['output'];
3717
3775
  };
3718
3776
 
3719
- /** ISO 639-1 language codes supported by Shopify. */
3777
+ /** Language codes supported by Shopify. */
3720
3778
  export type LanguageCode =
3721
3779
  /** Afrikaans. */
3722
3780
  | 'AF'
@@ -4471,6 +4529,8 @@ export type MenuItemType =
4471
4529
  | 'COLLECTION'
4472
4530
  /** A collection link. */
4473
4531
  | 'COLLECTIONS'
4532
+ /** A customer account page link. */
4533
+ | 'CUSTOMER_ACCOUNT_PAGE'
4474
4534
  /** A frontpage link. */
4475
4535
  | 'FRONTPAGE'
4476
4536
  /** An http link. */
@@ -5164,7 +5224,7 @@ export type Order = HasMetafields &
5164
5224
  currentTotalShippingPrice: MoneyV2;
5165
5225
  /** The total of all taxes applied to the order, excluding taxes for returned line items. */
5166
5226
  currentTotalTax: MoneyV2;
5167
- /** A list of the custom attributes added to the order. */
5227
+ /** A list of the custom attributes added to the order. For example, whether an order is a customer's first. */
5168
5228
  customAttributes: Array<Attribute>;
5169
5229
  /** The locale code in which this specific order happened. */
5170
5230
  customerLocale?: Maybe<Scalars['String']['output']>;
@@ -5460,7 +5520,7 @@ export type Page = HasMetafields &
5460
5520
  seo?: Maybe<Seo>;
5461
5521
  /** The title of the page. */
5462
5522
  title: Scalars['String']['output'];
5463
- /** A URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. */
5523
+ /** URL parameters to be added to a page URL to track the origin of on-site search traffic for [analytics reporting](https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports). Returns a result when accessed through the [search](https://shopify.dev/docs/api/storefront/current/queries/search) or [predictiveSearch](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries, otherwise returns null. */
5464
5524
  trackingParameters?: Maybe<Scalars['String']['output']>;
5465
5525
  /** The timestamp of the latest page update. */
5466
5526
  updatedAt: Scalars['DateTime']['output'];
@@ -5536,6 +5596,19 @@ export type PageSortKeys =
5536
5596
  /** Sort by the `updated_at` value. */
5537
5597
  | 'UPDATED_AT';
5538
5598
 
5599
+ /** Type for paginating through multiple sitemap's resources. */
5600
+ export type PaginatedSitemapResources = {
5601
+ __typename?: 'PaginatedSitemapResources';
5602
+ /** Whether there are more pages to fetch following the current page. */
5603
+ hasNextPage: Scalars['Boolean']['output'];
5604
+ /**
5605
+ * List of sitemap resources for the current page.
5606
+ * Note: The number of items varies between 0 and 250 per page.
5607
+ *
5608
+ */
5609
+ items: Array<SitemapResource | SitemapResourceMetaobject>;
5610
+ };
5611
+
5539
5612
  /** Settings related to payments. */
5540
5613
  export type PaymentSettings = {
5541
5614
  __typename?: 'PaymentSettings';
@@ -5640,8 +5713,23 @@ export type Product = HasMetafields &
5640
5713
  OnlineStorePublishable &
5641
5714
  Trackable & {
5642
5715
  __typename?: 'Product';
5716
+ /**
5717
+ * A list of variants whose selected options differ with the provided selected options by one, ordered by variant id.
5718
+ * If selected options are not provided, adjacent variants to the first available variant is returned.
5719
+ *
5720
+ * Note that this field returns an array of variants. In most cases, the number of variants in this array will be low.
5721
+ * However, with a low number of options and a high number of values per option, the number of variants returned
5722
+ * here can be high. In such cases, it recommended to avoid using this field.
5723
+ *
5724
+ * This list of variants can be used in combination with the `options` field to build a rich variant picker that
5725
+ * includes variant availability or other variant information.
5726
+ *
5727
+ */
5728
+ adjacentVariants: Array<ProductVariant>;
5643
5729
  /** Indicates if at least one product variant is available for sale. */
5644
5730
  availableForSale: Scalars['Boolean']['output'];
5731
+ /** The taxonomy category for the product. */
5732
+ category?: Maybe<TaxonomyCategory>;
5645
5733
  /** List of collections a product belongs to. */
5646
5734
  collections: CollectionConnection;
5647
5735
  /** The compare at price of the product across all variants. */
@@ -5652,6 +5740,67 @@ export type Product = HasMetafields &
5652
5740
  description: Scalars['String']['output'];
5653
5741
  /** The description of the product, complete with HTML formatting. */
5654
5742
  descriptionHtml: Scalars['HTML']['output'];
5743
+ /**
5744
+ * An encoded string containing all option value combinations
5745
+ * with a corresponding variant that is currently available for sale.
5746
+ *
5747
+ * Integers represent option and values:
5748
+ * [0,1] represents option_value at array index 0 for the option at array index 0
5749
+ *
5750
+ * `:`, `,`, ` ` and `-` are control characters.
5751
+ * `:` indicates a new option. ex: 0:1 indicates value 0 for the option in position 1, value 1 for the option in position 2.
5752
+ * `,` indicates the end of a repeated prefix, mulitple consecutive commas indicate the end of multiple repeated prefixes.
5753
+ * ` ` indicates a gap in the sequence of option values. ex: 0 4 indicates option values in position 0 and 4 are present.
5754
+ * `-` indicates a continuous range of option values. ex: 0 1-3 4
5755
+ *
5756
+ * Decoding process:
5757
+ *
5758
+ * Example options: [Size, Color, Material]
5759
+ * Example values: [[Small, Medium, Large], [Red, Blue], [Cotton, Wool]]
5760
+ * Example encoded string: "0:0:0,1:0-1,,1:0:0-1,1:1,,2:0:1,1:0,,"
5761
+ *
5762
+ * Step 1: Expand ranges into the numbers they represent: "0:0:0,1:0 1,,1:0:0 1,1:1,,2:0:1,1:0,,"
5763
+ * Step 2: Expand repeated prefixes: "0:0:0,0:1:0 1,1:0:0 1,1:1:1,2:0:1,2:1:0,"
5764
+ * Step 3: Expand shared prefixes so data is encoded as a string: "0:0:0,0:1:0,0:1:1,1:0:0,1:0:1,1:1:1,2:0:1,2:1:0,"
5765
+ * Step 4: Map to options + option values to determine existing variants:
5766
+ *
5767
+ * [Small, Red, Cotton] (0:0:0), [Small, Blue, Cotton] (0:1:0), [Small, Blue, Wool] (0:1:1),
5768
+ * [Medium, Red, Cotton] (1:0:0), [Medium, Red, Wool] (1:0:1), [Medium, Blue, Wool] (1:1:1),
5769
+ * [Large, Red, Wool] (2:0:1), [Large, Blue, Cotton] (2:1:0).
5770
+ *
5771
+ *
5772
+ */
5773
+ encodedVariantAvailability?: Maybe<Scalars['String']['output']>;
5774
+ /**
5775
+ * An encoded string containing all option value combinations with a corresponding variant.
5776
+ *
5777
+ * Integers represent option and values:
5778
+ * [0,1] represents option_value at array index 0 for the option at array index 0
5779
+ *
5780
+ * `:`, `,`, ` ` and `-` are control characters.
5781
+ * `:` indicates a new option. ex: 0:1 indicates value 0 for the option in position 1, value 1 for the option in position 2.
5782
+ * `,` indicates the end of a repeated prefix, mulitple consecutive commas indicate the end of multiple repeated prefixes.
5783
+ * ` ` indicates a gap in the sequence of option values. ex: 0 4 indicates option values in position 0 and 4 are present.
5784
+ * `-` indicates a continuous range of option values. ex: 0 1-3 4
5785
+ *
5786
+ * Decoding process:
5787
+ *
5788
+ * Example options: [Size, Color, Material]
5789
+ * Example values: [[Small, Medium, Large], [Red, Blue], [Cotton, Wool]]
5790
+ * Example encoded string: "0:0:0,1:0-1,,1:0:0-1,1:1,,2:0:1,1:0,,"
5791
+ *
5792
+ * Step 1: Expand ranges into the numbers they represent: "0:0:0,1:0 1,,1:0:0 1,1:1,,2:0:1,1:0,,"
5793
+ * Step 2: Expand repeated prefixes: "0:0:0,0:1:0 1,1:0:0 1,1:1:1,2:0:1,2:1:0,"
5794
+ * Step 3: Expand shared prefixes so data is encoded as a string: "0:0:0,0:1:0,0:1:1,1:0:0,1:0:1,1:1:1,2:0:1,2:1:0,"
5795
+ * Step 4: Map to options + option values to determine existing variants:
5796
+ *
5797
+ * [Small, Red, Cotton] (0:0:0), [Small, Blue, Cotton] (0:1:0), [Small, Blue, Wool] (0:1:1),
5798
+ * [Medium, Red, Cotton] (1:0:0), [Medium, Red, Wool] (1:0:1), [Medium, Blue, Wool] (1:1:1),
5799
+ * [Large, Red, Wool] (2:0:1), [Large, Blue, Cotton] (2:1:0).
5800
+ *
5801
+ *
5802
+ */
5803
+ encodedVariantExistence?: Maybe<Scalars['String']['output']>;
5655
5804
  /**
5656
5805
  * The featured image for the product.
5657
5806
  *
@@ -5677,7 +5826,11 @@ export type Product = HasMetafields &
5677
5826
  metafield?: Maybe<Metafield>;
5678
5827
  /** The metafields associated with the resource matching the supplied list of namespaces and keys. */
5679
5828
  metafields: Array<Maybe<Metafield>>;
5680
- /** The URL used for viewing the resource on the shop's Online Store. Returns `null` if the resource is currently not published to the Online Store sales channel. */
5829
+ /**
5830
+ * The URL used for viewing the resource on the shop's Online Store. Returns
5831
+ * `null` if the resource is currently not published to the Online Store sales channel.
5832
+ *
5833
+ */
5681
5834
  onlineStoreUrl?: Maybe<Scalars['URL']['output']>;
5682
5835
  /** List of product options. */
5683
5836
  options: Array<ProductOption>;
@@ -5689,6 +5842,14 @@ export type Product = HasMetafields &
5689
5842
  publishedAt: Scalars['DateTime']['output'];
5690
5843
  /** Whether the product can only be purchased with a selling plan. */
5691
5844
  requiresSellingPlan: Scalars['Boolean']['output'];
5845
+ /**
5846
+ * Find an active product variant based on selected options, availability or the first variant.
5847
+ *
5848
+ * All arguments are optional. If no selected options are provided, the first available variant is returned.
5849
+ * If no variants are available, the first variant is returned.
5850
+ *
5851
+ */
5852
+ selectedOrFirstAvailableVariant?: Maybe<ProductVariant>;
5692
5853
  /** A list of a product's available selling plan groups. A selling plan group represents a selling method. For example, 'Subscribe and save' is a selling method where customers pay for goods or services per delivery. A selling plan group contains individual selling plans. */
5693
5854
  sellingPlanGroups: SellingPlanGroupConnection;
5694
5855
  /** The product's SEO information. */
@@ -5703,7 +5864,7 @@ export type Product = HasMetafields &
5703
5864
  title: Scalars['String']['output'];
5704
5865
  /** The total quantity of inventory in stock for this Product. */
5705
5866
  totalInventory?: Maybe<Scalars['Int']['output']>;
5706
- /** A URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. */
5867
+ /** URL parameters to be added to a page URL to track the origin of on-site search traffic for [analytics reporting](https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports). Returns a result when accessed through the [search](https://shopify.dev/docs/api/storefront/current/queries/search) or [predictiveSearch](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries, otherwise returns null. */
5707
5868
  trackingParameters?: Maybe<Scalars['String']['output']>;
5708
5869
  /**
5709
5870
  * The date and time when the product was last modified.
@@ -5722,10 +5883,25 @@ export type Product = HasMetafields &
5722
5883
  variantBySelectedOptions?: Maybe<ProductVariant>;
5723
5884
  /** List of the product’s variants. */
5724
5885
  variants: ProductVariantConnection;
5886
+ /** The total count of variants for this product. */
5887
+ variantsCount?: Maybe<Count>;
5725
5888
  /** The product’s vendor name. */
5726
5889
  vendor: Scalars['String']['output'];
5727
5890
  };
5728
5891
 
5892
+ /**
5893
+ * A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be.
5894
+ * For example, a digital download (such as a movie, music or ebook file) also
5895
+ * qualifies as a product, as do services (such as equipment rental, work for hire,
5896
+ * customization of another product or an extended warranty).
5897
+ *
5898
+ */
5899
+ export type ProductAdjacentVariantsArgs = {
5900
+ caseInsensitiveMatch?: InputMaybe<Scalars['Boolean']['input']>;
5901
+ ignoreUnknownOptions?: InputMaybe<Scalars['Boolean']['input']>;
5902
+ selectedOptions?: InputMaybe<Array<SelectedOptionInput>>;
5903
+ };
5904
+
5729
5905
  /**
5730
5906
  * A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be.
5731
5907
  * For example, a digital download (such as a movie, music or ebook file) also
@@ -5818,6 +5994,19 @@ export type ProductOptionsArgs = {
5818
5994
  first?: InputMaybe<Scalars['Int']['input']>;
5819
5995
  };
5820
5996
 
5997
+ /**
5998
+ * A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be.
5999
+ * For example, a digital download (such as a movie, music or ebook file) also
6000
+ * qualifies as a product, as do services (such as equipment rental, work for hire,
6001
+ * customization of another product or an extended warranty).
6002
+ *
6003
+ */
6004
+ export type ProductSelectedOrFirstAvailableVariantArgs = {
6005
+ caseInsensitiveMatch?: InputMaybe<Scalars['Boolean']['input']>;
6006
+ ignoreUnknownOptions?: InputMaybe<Scalars['Boolean']['input']>;
6007
+ selectedOptions?: InputMaybe<Array<SelectedOptionInput>>;
6008
+ };
6009
+
5821
6010
  /**
5822
6011
  * A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be.
5823
6012
  * For example, a digital download (such as a movie, music or ebook file) also
@@ -5993,6 +6182,14 @@ export type ProductOption = Node & {
5993
6182
  */
5994
6183
  export type ProductOptionValue = Node & {
5995
6184
  __typename?: 'ProductOptionValue';
6185
+ /**
6186
+ * The product variant that combines this option value with the
6187
+ * lowest-position option values for all other options.
6188
+ *
6189
+ * This field will always return a variant, provided a variant including this option value exists.
6190
+ *
6191
+ */
6192
+ firstSelectableVariant?: Maybe<ProductVariant>;
5996
6193
  /** A globally-unique ID. */
5997
6194
  id: Scalars['ID']['output'];
5998
6195
  /** The name of the product option value. */
@@ -6123,6 +6320,8 @@ export type ProductVariant = HasMetafields &
6123
6320
  selectedOptions: Array<SelectedOption>;
6124
6321
  /** Represents an association between a variant and a selling plan. Selling plan allocations describe which selling plans are available for each variant, and what their impact is on pricing. */
6125
6322
  sellingPlanAllocations: SellingPlanAllocationConnection;
6323
+ /** The Shop Pay Installments pricing information for the product variant. */
6324
+ shopPayInstallmentsPricing?: Maybe<ShopPayInstallmentsProductVariantPricing>;
6126
6325
  /** The SKU (stock keeping unit) associated with the variant. */
6127
6326
  sku?: Maybe<Scalars['String']['output']>;
6128
6327
  /** The in-store pickup availability of this variant by location. */
@@ -6472,7 +6671,11 @@ export type QueryRoot = {
6472
6671
  | ProductOptionValue
6473
6672
  | ProductVariant
6474
6673
  | Shop
6674
+ | ShopPayInstallmentsFinancingPlan
6675
+ | ShopPayInstallmentsFinancingPlanTerm
6676
+ | ShopPayInstallmentsProductVariantPricing
6475
6677
  | ShopPolicy
6678
+ | TaxonomyCategory
6476
6679
  | UrlRedirect
6477
6680
  | Video
6478
6681
  >;
@@ -6509,7 +6712,11 @@ export type QueryRoot = {
6509
6712
  | ProductOptionValue
6510
6713
  | ProductVariant
6511
6714
  | Shop
6715
+ | ShopPayInstallmentsFinancingPlan
6716
+ | ShopPayInstallmentsFinancingPlanTerm
6717
+ | ShopPayInstallmentsProductVariantPricing
6512
6718
  | ShopPolicy
6719
+ | TaxonomyCategory
6513
6720
  | UrlRedirect
6514
6721
  | Video
6515
6722
  >
@@ -6555,6 +6762,8 @@ export type QueryRoot = {
6555
6762
  search: SearchResultItemConnection;
6556
6763
  /** The shop associated with the storefront access token. */
6557
6764
  shop: Shop;
6765
+ /** Contains all fields required to generate sitemaps. */
6766
+ sitemap: Sitemap;
6558
6767
  /** A list of redirects for a shop. */
6559
6768
  urlRedirects: UrlRedirectConnection;
6560
6769
  };
@@ -6763,6 +6972,11 @@ export type QueryRootSearchArgs = {
6763
6972
  unavailableProducts?: InputMaybe<SearchUnavailableProductsType>;
6764
6973
  };
6765
6974
 
6975
+ /** The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. */
6976
+ export type QueryRootSitemapArgs = {
6977
+ type: SitemapType;
6978
+ };
6979
+
6766
6980
  /** The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. */
6767
6981
  export type QueryRootUrlRedirectsArgs = {
6768
6982
  after?: InputMaybe<Scalars['String']['input']>;
@@ -6815,7 +7029,7 @@ export type SearchQuerySuggestion = Trackable & {
6815
7029
  styledText: Scalars['String']['output'];
6816
7030
  /** The text of the search query suggestion. */
6817
7031
  text: Scalars['String']['output'];
6818
- /** A URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. */
7032
+ /** URL parameters to be added to a page URL to track the origin of on-site search traffic for [analytics reporting](https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports). Returns a result when accessed through the [search](https://shopify.dev/docs/api/storefront/current/queries/search) or [predictiveSearch](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries, otherwise returns null. */
6819
7033
  trackingParameters?: Maybe<Scalars['String']['output']>;
6820
7034
  };
6821
7035
 
@@ -7237,6 +7451,8 @@ export type Shop = HasMetafields &
7237
7451
  shippingPolicy?: Maybe<ShopPolicy>;
7238
7452
  /** Countries that the shop ships to. */
7239
7453
  shipsToCountries: Array<CountryCode>;
7454
+ /** The Shop Pay Installments pricing information for the shop. */
7455
+ shopPayInstallmentsPricing?: Maybe<ShopPayInstallmentsPricing>;
7240
7456
  /** The shop’s subscription policy. */
7241
7457
  subscriptionPolicy?: Maybe<ShopPolicyWithDefault>;
7242
7458
  /** The shop’s terms of service. */
@@ -7254,6 +7470,78 @@ export type ShopMetafieldsArgs = {
7254
7470
  identifiers: Array<HasMetafieldsIdentifier>;
7255
7471
  };
7256
7472
 
7473
+ /** The financing plan in Shop Pay Installments. */
7474
+ export type ShopPayInstallmentsFinancingPlan = Node & {
7475
+ __typename?: 'ShopPayInstallmentsFinancingPlan';
7476
+ /** A globally-unique ID. */
7477
+ id: Scalars['ID']['output'];
7478
+ /** The maximum price to qualify for the financing plan. */
7479
+ maxPrice: MoneyV2;
7480
+ /** The minimum price to qualify for the financing plan. */
7481
+ minPrice: MoneyV2;
7482
+ /** The terms of the financing plan. */
7483
+ terms: Array<ShopPayInstallmentsFinancingPlanTerm>;
7484
+ };
7485
+
7486
+ /** The payment frequency for a Shop Pay Installments Financing Plan. */
7487
+ export type ShopPayInstallmentsFinancingPlanFrequency =
7488
+ /** Monthly payment frequency. */
7489
+ | 'MONTHLY'
7490
+ /** Weekly payment frequency. */
7491
+ | 'WEEKLY';
7492
+
7493
+ /** The terms of the financing plan in Shop Pay Installments. */
7494
+ export type ShopPayInstallmentsFinancingPlanTerm = Node & {
7495
+ __typename?: 'ShopPayInstallmentsFinancingPlanTerm';
7496
+ /** The annual percentage rate (APR) of the financing plan. */
7497
+ apr: Scalars['Int']['output'];
7498
+ /** The payment frequency for the financing plan. */
7499
+ frequency: ShopPayInstallmentsFinancingPlanFrequency;
7500
+ /** A globally-unique ID. */
7501
+ id: Scalars['ID']['output'];
7502
+ /** The number of installments for the financing plan. */
7503
+ installmentsCount?: Maybe<Count>;
7504
+ /** The type of loan for the financing plan. */
7505
+ loanType: ShopPayInstallmentsLoan;
7506
+ };
7507
+
7508
+ /** The loan type for a Shop Pay Installments Financing Plan Term. */
7509
+ export type ShopPayInstallmentsLoan =
7510
+ /** An interest-bearing loan type. */
7511
+ | 'INTEREST'
7512
+ /** A split-pay loan type. */
7513
+ | 'SPLIT_PAY'
7514
+ /** A zero-percent loan type. */
7515
+ | 'ZERO_PERCENT';
7516
+
7517
+ /** The result for a Shop Pay Installments pricing request. */
7518
+ export type ShopPayInstallmentsPricing = {
7519
+ __typename?: 'ShopPayInstallmentsPricing';
7520
+ /** The financing plans available for the given price range. */
7521
+ financingPlans: Array<ShopPayInstallmentsFinancingPlan>;
7522
+ /** The maximum price to qualify for financing. */
7523
+ maxPrice: MoneyV2;
7524
+ /** The minimum price to qualify for financing. */
7525
+ minPrice: MoneyV2;
7526
+ };
7527
+
7528
+ /** The shop pay installments pricing information for a product variant. */
7529
+ export type ShopPayInstallmentsProductVariantPricing = Node & {
7530
+ __typename?: 'ShopPayInstallmentsProductVariantPricing';
7531
+ /** Whether the product variant is available. */
7532
+ available: Scalars['Boolean']['output'];
7533
+ /** Whether the product variant is eligible for Shop Pay Installments. */
7534
+ eligible: Scalars['Boolean']['output'];
7535
+ /** The full price of the product variant. */
7536
+ fullPrice: MoneyV2;
7537
+ /** The ID of the product variant. */
7538
+ id: Scalars['ID']['output'];
7539
+ /** The number of payment terms available for the product variant. */
7540
+ installmentsCount?: Maybe<Count>;
7541
+ /** The price per term for the product variant. */
7542
+ pricePerTerm: MoneyV2;
7543
+ };
7544
+
7257
7545
  /** Represents a Shop Pay payment request. */
7258
7546
  export type ShopPayPaymentRequest = {
7259
7547
  __typename?: 'ShopPayPaymentRequest';
@@ -7635,6 +7923,97 @@ export type ShopPolicyWithDefault = {
7635
7923
  url: Scalars['URL']['output'];
7636
7924
  };
7637
7925
 
7926
+ /** Contains all fields required to generate sitemaps. */
7927
+ export type Sitemap = {
7928
+ __typename?: 'Sitemap';
7929
+ /** The number of sitemap's pages for a given type. */
7930
+ pagesCount?: Maybe<Count>;
7931
+ /**
7932
+ * A list of sitemap's resources for a given type.
7933
+ *
7934
+ * Important Notes:
7935
+ * - The number of items per page varies from 0 to 250.
7936
+ * - Empty pages (0 items) may occur and do not necessarily indicate the end of results.
7937
+ * - Always check `hasNextPage` to determine if more pages are available.
7938
+ *
7939
+ */
7940
+ resources?: Maybe<PaginatedSitemapResources>;
7941
+ };
7942
+
7943
+ /** Contains all fields required to generate sitemaps. */
7944
+ export type SitemapResourcesArgs = {
7945
+ page: Scalars['Int']['input'];
7946
+ };
7947
+
7948
+ /** Represents a sitemap's image. */
7949
+ export type SitemapImage = {
7950
+ __typename?: 'SitemapImage';
7951
+ /** Image's alt text. */
7952
+ alt?: Maybe<Scalars['String']['output']>;
7953
+ /** Path to the image. */
7954
+ filepath?: Maybe<Scalars['String']['output']>;
7955
+ /** The date and time when the image was updated. */
7956
+ updatedAt: Scalars['DateTime']['output'];
7957
+ };
7958
+
7959
+ /** Represents a sitemap resource that is not a metaobject. */
7960
+ export type SitemapResource = SitemapResourceInterface & {
7961
+ __typename?: 'SitemapResource';
7962
+ /** Resource's handle. */
7963
+ handle: Scalars['String']['output'];
7964
+ /** Resource's image. */
7965
+ image?: Maybe<SitemapImage>;
7966
+ /** Resource's title. */
7967
+ title?: Maybe<Scalars['String']['output']>;
7968
+ /** The date and time when the resource was updated. */
7969
+ updatedAt: Scalars['DateTime']['output'];
7970
+ };
7971
+
7972
+ /** Represents the common fields for all sitemap resource types. */
7973
+ export type SitemapResourceInterface = {
7974
+ /** Resource's handle. */
7975
+ handle: Scalars['String']['output'];
7976
+ /** The date and time when the resource was updated. */
7977
+ updatedAt: Scalars['DateTime']['output'];
7978
+ };
7979
+
7980
+ /**
7981
+ * A SitemapResourceMetaobject represents a metaobject with
7982
+ * [the `renderable` capability](https://shopify.dev/docs/apps/build/custom-data/metaobjects/use-metaobject-capabilities#render-metaobjects-as-web-pages).
7983
+ *
7984
+ */
7985
+ export type SitemapResourceMetaobject = SitemapResourceInterface & {
7986
+ __typename?: 'SitemapResourceMetaobject';
7987
+ /** Resource's handle. */
7988
+ handle: Scalars['String']['output'];
7989
+ /** The URL handle for accessing pages of this metaobject type in the Online Store. */
7990
+ onlineStoreUrlHandle?: Maybe<Scalars['String']['output']>;
7991
+ /** The type of the metaobject. Defines the namespace of its associated metafields. */
7992
+ type: Scalars['String']['output'];
7993
+ /** The date and time when the resource was updated. */
7994
+ updatedAt: Scalars['DateTime']['output'];
7995
+ };
7996
+
7997
+ /** The types of resources potentially present in a sitemap. */
7998
+ export type SitemapType =
7999
+ /** Articles present in the sitemap. */
8000
+ | 'ARTICLE'
8001
+ /** Blogs present in the sitemap. */
8002
+ | 'BLOG'
8003
+ /** Collections present in the sitemap. */
8004
+ | 'COLLECTION'
8005
+ /**
8006
+ * Metaobjects present in the sitemap. Only metaobject types with the
8007
+ * [`renderable` capability](https://shopify.dev/docs/apps/build/custom-data/metaobjects/use-metaobject-capabilities#render-metaobjects-as-web-pages)
8008
+ * are included in sitemap.
8009
+ *
8010
+ */
8011
+ | 'METAOBJECT'
8012
+ /** Pages present in the sitemap. */
8013
+ | 'PAGE'
8014
+ /** Products present in the sitemap. */
8015
+ | 'PRODUCT';
8016
+
7638
8017
  /**
7639
8018
  * The availability of a product variant at a particular location.
7640
8019
  * Local pick-up must be enabled in the store's shipping settings, otherwise this will return an empty result.
@@ -7851,9 +8230,23 @@ export type Swatch = {
7851
8230
  image?: Maybe<MediaImage>;
7852
8231
  };
7853
8232
 
8233
+ /**
8234
+ * The taxonomy category for the product.
8235
+ *
8236
+ */
8237
+ export type TaxonomyCategory = Node & {
8238
+ __typename?: 'TaxonomyCategory';
8239
+ /** All parent nodes of the current taxonomy category. */
8240
+ ancestors: Array<TaxonomyCategory>;
8241
+ /** A static identifier for the taxonomy category. */
8242
+ id: Scalars['ID']['output'];
8243
+ /** The localized name of the taxonomy category. */
8244
+ name: Scalars['String']['output'];
8245
+ };
8246
+
7854
8247
  /** Represents a resource that you can track the origin of the search traffic. */
7855
8248
  export type Trackable = {
7856
- /** A URL parameters to be added to a page URL when it is linked from a GraphQL result. This allows for tracking the origin of the traffic. */
8249
+ /** URL parameters to be added to a page URL to track the origin of on-site search traffic for [analytics reporting](https://help.shopify.com/manual/reports-and-analytics/shopify-reports/report-types/default-reports/behaviour-reports). Returns a result when accessed through the [search](https://shopify.dev/docs/api/storefront/current/queries/search) or [predictiveSearch](https://shopify.dev/docs/api/storefront/current/queries/predictiveSearch) queries, otherwise returns null. */
7857
8250
  trackingParameters?: Maybe<Scalars['String']['output']>;
7858
8251
  };
7859
8252
 
@@ -7964,7 +8357,7 @@ export type UserError = DisplayableError & {
7964
8357
  message: Scalars['String']['output'];
7965
8358
  };
7966
8359
 
7967
- /** Represents an error that happens during execution of a customer mutation. */
8360
+ /** Error codes for failed Shop Pay payment request session mutations. */
7968
8361
  export type UserErrorsShopPayPaymentRequestSessionUserErrors =
7969
8362
  DisplayableError & {
7970
8363
  __typename?: 'UserErrorsShopPayPaymentRequestSessionUserErrors';