@shopify/hydrogen-react 2024.1.1 → 2024.4.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.
Files changed (216) 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 +4 -0
  4. package/dist/browser-dev/CartProvider.mjs.map +1 -1
  5. package/dist/browser-dev/ExternalVideo.mjs.map +1 -1
  6. package/dist/browser-dev/Image.mjs.map +1 -1
  7. package/dist/browser-dev/ModelViewer.mjs +15 -15
  8. package/dist/browser-dev/ModelViewer.mjs.map +1 -1
  9. package/dist/browser-dev/Money.mjs.map +1 -1
  10. package/dist/browser-dev/Video.mjs.map +1 -1
  11. package/dist/browser-dev/analytics-constants.mjs +5 -1
  12. package/dist/browser-dev/analytics-constants.mjs.map +1 -1
  13. package/dist/browser-dev/analytics-schema-custom-storefront-customer-tracking.mjs +84 -6
  14. package/dist/browser-dev/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  15. package/dist/browser-dev/analytics-schema-trekkie-storefront-page-view.mjs +1 -1
  16. package/dist/browser-dev/analytics-schema-trekkie-storefront-page-view.mjs.map +1 -1
  17. package/dist/browser-dev/analytics.mjs +13 -2
  18. package/dist/browser-dev/analytics.mjs.map +1 -1
  19. package/dist/browser-dev/cart-queries.mjs +1 -1
  20. package/dist/browser-dev/cart-queries.mjs.map +1 -1
  21. package/dist/browser-dev/codegen.helpers.mjs.map +1 -1
  22. package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  23. package/dist/browser-dev/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  24. package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +1 -1
  25. package/dist/browser-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  26. package/dist/browser-dev/storefront-api-constants.mjs +1 -1
  27. package/dist/browser-dev/storefront-api-constants.mjs.map +1 -1
  28. package/dist/browser-dev/storefront-client.mjs +18 -16
  29. package/dist/browser-dev/storefront-client.mjs.map +1 -1
  30. package/dist/browser-dev/useCartAPIStateMachine.mjs.map +1 -1
  31. package/dist/browser-dev/useCartActions.mjs.map +1 -1
  32. package/dist/browser-dev/useShopifyCookies.mjs +1 -1
  33. package/dist/browser-dev/useShopifyCookies.mjs.map +1 -1
  34. package/dist/browser-prod/CartLineProvider.mjs.map +1 -1
  35. package/dist/browser-prod/CartProvider.mjs +4 -0
  36. package/dist/browser-prod/CartProvider.mjs.map +1 -1
  37. package/dist/browser-prod/ExternalVideo.mjs.map +1 -1
  38. package/dist/browser-prod/Image.mjs.map +1 -1
  39. package/dist/browser-prod/ModelViewer.mjs +15 -15
  40. package/dist/browser-prod/ModelViewer.mjs.map +1 -1
  41. package/dist/browser-prod/Money.mjs.map +1 -1
  42. package/dist/browser-prod/Video.mjs.map +1 -1
  43. package/dist/browser-prod/analytics-constants.mjs +5 -1
  44. package/dist/browser-prod/analytics-constants.mjs.map +1 -1
  45. package/dist/browser-prod/analytics-schema-custom-storefront-customer-tracking.mjs +84 -6
  46. package/dist/browser-prod/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  47. package/dist/browser-prod/analytics-schema-trekkie-storefront-page-view.mjs +1 -1
  48. package/dist/browser-prod/analytics-schema-trekkie-storefront-page-view.mjs.map +1 -1
  49. package/dist/browser-prod/analytics.mjs +13 -2
  50. package/dist/browser-prod/analytics.mjs.map +1 -1
  51. package/dist/browser-prod/cart-queries.mjs +1 -1
  52. package/dist/browser-prod/cart-queries.mjs.map +1 -1
  53. package/dist/browser-prod/codegen.helpers.mjs.map +1 -1
  54. package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  55. package/dist/browser-prod/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  56. package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +1 -1
  57. package/dist/browser-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  58. package/dist/browser-prod/storefront-api-constants.mjs +1 -1
  59. package/dist/browser-prod/storefront-api-constants.mjs.map +1 -1
  60. package/dist/browser-prod/storefront-client.mjs +16 -16
  61. package/dist/browser-prod/storefront-client.mjs.map +1 -1
  62. package/dist/browser-prod/useCartAPIStateMachine.mjs.map +1 -1
  63. package/dist/browser-prod/useCartActions.mjs.map +1 -1
  64. package/dist/browser-prod/useShopifyCookies.mjs +1 -1
  65. package/dist/browser-prod/useShopifyCookies.mjs.map +1 -1
  66. package/dist/node-dev/CartLineProvider.js.map +1 -1
  67. package/dist/node-dev/CartLineProvider.mjs.map +1 -1
  68. package/dist/node-dev/CartProvider.js +4 -0
  69. package/dist/node-dev/CartProvider.js.map +1 -1
  70. package/dist/node-dev/CartProvider.mjs +4 -0
  71. package/dist/node-dev/CartProvider.mjs.map +1 -1
  72. package/dist/node-dev/ExternalVideo.js.map +1 -1
  73. package/dist/node-dev/ExternalVideo.mjs.map +1 -1
  74. package/dist/node-dev/Image.js.map +1 -1
  75. package/dist/node-dev/Image.mjs.map +1 -1
  76. package/dist/node-dev/ModelViewer.js +15 -15
  77. package/dist/node-dev/ModelViewer.js.map +1 -1
  78. package/dist/node-dev/ModelViewer.mjs +15 -15
  79. package/dist/node-dev/ModelViewer.mjs.map +1 -1
  80. package/dist/node-dev/Money.js.map +1 -1
  81. package/dist/node-dev/Money.mjs.map +1 -1
  82. package/dist/node-dev/Video.js.map +1 -1
  83. package/dist/node-dev/Video.mjs.map +1 -1
  84. package/dist/node-dev/analytics-constants.js +5 -1
  85. package/dist/node-dev/analytics-constants.js.map +1 -1
  86. package/dist/node-dev/analytics-constants.mjs +5 -1
  87. package/dist/node-dev/analytics-constants.mjs.map +1 -1
  88. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.js +83 -5
  89. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.js.map +1 -1
  90. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.mjs +84 -6
  91. package/dist/node-dev/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  92. package/dist/node-dev/analytics-schema-trekkie-storefront-page-view.js +1 -1
  93. package/dist/node-dev/analytics-schema-trekkie-storefront-page-view.js.map +1 -1
  94. package/dist/node-dev/analytics-schema-trekkie-storefront-page-view.mjs +1 -1
  95. package/dist/node-dev/analytics-schema-trekkie-storefront-page-view.mjs.map +1 -1
  96. package/dist/node-dev/analytics.js +12 -1
  97. package/dist/node-dev/analytics.js.map +1 -1
  98. package/dist/node-dev/analytics.mjs +13 -2
  99. package/dist/node-dev/analytics.mjs.map +1 -1
  100. package/dist/node-dev/cart-queries.js +1 -1
  101. package/dist/node-dev/cart-queries.js.map +1 -1
  102. package/dist/node-dev/cart-queries.mjs +1 -1
  103. package/dist/node-dev/cart-queries.mjs.map +1 -1
  104. package/dist/node-dev/codegen.helpers.js.map +1 -1
  105. package/dist/node-dev/codegen.helpers.mjs.map +1 -1
  106. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js +1 -1
  107. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.js.map +1 -1
  108. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  109. package/dist/node-dev/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  110. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js +1 -1
  111. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -1
  112. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs +1 -1
  113. package/dist/node-dev/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  114. package/dist/node-dev/storefront-api-constants.js +1 -1
  115. package/dist/node-dev/storefront-api-constants.js.map +1 -1
  116. package/dist/node-dev/storefront-api-constants.mjs +1 -1
  117. package/dist/node-dev/storefront-api-constants.mjs.map +1 -1
  118. package/dist/node-dev/storefront-client.js +18 -16
  119. package/dist/node-dev/storefront-client.js.map +1 -1
  120. package/dist/node-dev/storefront-client.mjs +18 -16
  121. package/dist/node-dev/storefront-client.mjs.map +1 -1
  122. package/dist/node-dev/useCartAPIStateMachine.js.map +1 -1
  123. package/dist/node-dev/useCartAPIStateMachine.mjs.map +1 -1
  124. package/dist/node-dev/useCartActions.js.map +1 -1
  125. package/dist/node-dev/useCartActions.mjs.map +1 -1
  126. package/dist/node-dev/useShopifyCookies.js +1 -1
  127. package/dist/node-dev/useShopifyCookies.js.map +1 -1
  128. package/dist/node-dev/useShopifyCookies.mjs +1 -1
  129. package/dist/node-dev/useShopifyCookies.mjs.map +1 -1
  130. package/dist/node-prod/CartLineProvider.js.map +1 -1
  131. package/dist/node-prod/CartLineProvider.mjs.map +1 -1
  132. package/dist/node-prod/CartProvider.js +4 -0
  133. package/dist/node-prod/CartProvider.js.map +1 -1
  134. package/dist/node-prod/CartProvider.mjs +4 -0
  135. package/dist/node-prod/CartProvider.mjs.map +1 -1
  136. package/dist/node-prod/ExternalVideo.js.map +1 -1
  137. package/dist/node-prod/ExternalVideo.mjs.map +1 -1
  138. package/dist/node-prod/Image.js.map +1 -1
  139. package/dist/node-prod/Image.mjs.map +1 -1
  140. package/dist/node-prod/ModelViewer.js +15 -15
  141. package/dist/node-prod/ModelViewer.js.map +1 -1
  142. package/dist/node-prod/ModelViewer.mjs +15 -15
  143. package/dist/node-prod/ModelViewer.mjs.map +1 -1
  144. package/dist/node-prod/Money.js.map +1 -1
  145. package/dist/node-prod/Money.mjs.map +1 -1
  146. package/dist/node-prod/Video.js.map +1 -1
  147. package/dist/node-prod/Video.mjs.map +1 -1
  148. package/dist/node-prod/analytics-constants.js +5 -1
  149. package/dist/node-prod/analytics-constants.js.map +1 -1
  150. package/dist/node-prod/analytics-constants.mjs +5 -1
  151. package/dist/node-prod/analytics-constants.mjs.map +1 -1
  152. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.js +83 -5
  153. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.js.map +1 -1
  154. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.mjs +84 -6
  155. package/dist/node-prod/analytics-schema-custom-storefront-customer-tracking.mjs.map +1 -1
  156. package/dist/node-prod/analytics-schema-trekkie-storefront-page-view.js +1 -1
  157. package/dist/node-prod/analytics-schema-trekkie-storefront-page-view.js.map +1 -1
  158. package/dist/node-prod/analytics-schema-trekkie-storefront-page-view.mjs +1 -1
  159. package/dist/node-prod/analytics-schema-trekkie-storefront-page-view.mjs.map +1 -1
  160. package/dist/node-prod/analytics.js +12 -1
  161. package/dist/node-prod/analytics.js.map +1 -1
  162. package/dist/node-prod/analytics.mjs +13 -2
  163. package/dist/node-prod/analytics.mjs.map +1 -1
  164. package/dist/node-prod/cart-queries.js +1 -1
  165. package/dist/node-prod/cart-queries.js.map +1 -1
  166. package/dist/node-prod/cart-queries.mjs +1 -1
  167. package/dist/node-prod/cart-queries.mjs.map +1 -1
  168. package/dist/node-prod/codegen.helpers.js.map +1 -1
  169. package/dist/node-prod/codegen.helpers.mjs.map +1 -1
  170. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js +1 -1
  171. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.js.map +1 -1
  172. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  173. package/dist/node-prod/node_modules/use-sync-external-store/shim/index.mjs.map +1 -1
  174. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js +1 -1
  175. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -1
  176. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs +1 -1
  177. package/dist/node-prod/node_modules/use-sync-external-store/shim/with-selector.mjs.map +1 -1
  178. package/dist/node-prod/storefront-api-constants.js +1 -1
  179. package/dist/node-prod/storefront-api-constants.js.map +1 -1
  180. package/dist/node-prod/storefront-api-constants.mjs +1 -1
  181. package/dist/node-prod/storefront-api-constants.mjs.map +1 -1
  182. package/dist/node-prod/storefront-client.js +16 -16
  183. package/dist/node-prod/storefront-client.js.map +1 -1
  184. package/dist/node-prod/storefront-client.mjs +16 -16
  185. package/dist/node-prod/storefront-client.mjs.map +1 -1
  186. package/dist/node-prod/useCartAPIStateMachine.js.map +1 -1
  187. package/dist/node-prod/useCartAPIStateMachine.mjs.map +1 -1
  188. package/dist/node-prod/useCartActions.js.map +1 -1
  189. package/dist/node-prod/useCartActions.mjs.map +1 -1
  190. package/dist/node-prod/useShopifyCookies.js +1 -1
  191. package/dist/node-prod/useShopifyCookies.js.map +1 -1
  192. package/dist/node-prod/useShopifyCookies.mjs +1 -1
  193. package/dist/node-prod/useShopifyCookies.mjs.map +1 -1
  194. package/dist/types/CartLineProvider.d.ts +1 -1
  195. package/dist/types/CartProvider.d.ts +2 -2
  196. package/dist/types/ExternalVideo.d.ts +1 -1
  197. package/dist/types/Image.d.ts +1 -1
  198. package/dist/types/ModelViewer.d.ts +1 -1
  199. package/dist/types/Money.d.ts +1 -1
  200. package/dist/types/Video.d.ts +1 -1
  201. package/dist/types/analytics-constants.d.ts +11 -5
  202. package/dist/types/analytics-schema-custom-storefront-customer-tracking.d.ts +4 -0
  203. package/dist/types/analytics-types.d.ts +4 -0
  204. package/dist/types/cart-types.d.ts +2 -0
  205. package/dist/types/codegen.helpers.d.ts +2 -2
  206. package/dist/types/storefront-api-constants.d.ts +1 -1
  207. package/dist/types/storefront-api-types.d.ts +395 -25
  208. package/dist/types/storefront-client.d.ts +2 -2
  209. package/dist/types/useCartAPIStateMachine.d.ts +2 -2
  210. package/dist/types/useCartActions.d.ts +2 -2
  211. package/dist/umd/hydrogen-react.dev.js +137 -42
  212. package/dist/umd/hydrogen-react.dev.js.map +1 -1
  213. package/dist/umd/hydrogen-react.prod.js +18 -19
  214. package/dist/umd/hydrogen-react.prod.js.map +1 -1
  215. package/package.json +3 -3
  216. 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-01
3
+ * Based on Storefront API 2024-04
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
  */
@@ -505,6 +505,17 @@ export type BrandColors = {
505
505
  secondary: Array<BrandColorGroup>;
506
506
  };
507
507
 
508
+ /**
509
+ * The input fields for obtaining the buyer's identity.
510
+ *
511
+ */
512
+ export type BuyerInput = {
513
+ /** The identifier of the company location. */
514
+ companyLocationId?: InputMaybe<Scalars['ID']['input']>;
515
+ /** The storefront customer access token retrieved from the [Customer Accounts API](https://shopify.dev/docs/api/customer/reference/mutations/storefrontCustomerAccessTokenCreate). */
516
+ customerAccessToken: Scalars['String']['input'];
517
+ };
518
+
508
519
  /** Card brand, such as Visa or Mastercard, which can be used for payments. */
509
520
  export type CardBrand =
510
521
  /** American Express. */
@@ -677,6 +688,8 @@ export type CartBuyerIdentity = {
677
688
  email?: Maybe<Scalars['String']['output']>;
678
689
  /** The phone number of the buyer that's interacting with the cart. */
679
690
  phone?: Maybe<Scalars['String']['output']>;
691
+ /** The purchasing company associated with the cart. */
692
+ purchasingCompany?: Maybe<PurchasingCompany>;
680
693
  /**
681
694
  * A set of wallet preferences tied to the buyer that is interacting with the cart.
682
695
  * Preferences can be used to populate relevant payment fields in the checkout flow.
@@ -693,6 +706,8 @@ export type CartBuyerIdentity = {
693
706
  *
694
707
  */
695
708
  export type CartBuyerIdentityInput = {
709
+ /** The company location of the buyer that is interacting with the cart. */
710
+ companyLocationId?: InputMaybe<Scalars['ID']['input']>;
696
711
  /** The country where the buyer is located. */
697
712
  countryCode?: InputMaybe<CountryCode>;
698
713
  /** The access token used to identify the customer associated with the cart. */
@@ -854,6 +869,8 @@ export type CartDeliveryGroup = {
854
869
  deliveryAddress: MailingAddress;
855
870
  /** The delivery options available for the delivery group. */
856
871
  deliveryOptions: Array<CartDeliveryOption>;
872
+ /** The type of merchandise in the delivery group. */
873
+ groupType: CartDeliveryGroupType;
857
874
  /** The ID for the delivery group. */
858
875
  id: Scalars['ID']['output'];
859
876
  /** The selected delivery option for the delivery group. */
@@ -895,6 +912,20 @@ export type CartDeliveryGroupEdge = {
895
912
  node: CartDeliveryGroup;
896
913
  };
897
914
 
915
+ /**
916
+ * Defines what type of merchandise is in the delivery group.
917
+ *
918
+ */
919
+ export type CartDeliveryGroupType =
920
+ /**
921
+ * The delivery group only contains merchandise that is either a one time purchase or a first delivery of
922
+ * subscription merchandise.
923
+ *
924
+ */
925
+ | 'ONE_TIME_PURCHASE'
926
+ /** The delivery group only contains subscription merchandise. */
927
+ | 'SUBSCRIPTION';
928
+
898
929
  /** Information about a delivery option. */
899
930
  export type CartDeliveryOption = {
900
931
  __typename?: 'CartDeliveryOption';
@@ -951,12 +982,28 @@ export type CartDiscountCodesUpdatePayload = {
951
982
 
952
983
  /** Possible error codes that can be returned by `CartUserError`. */
953
984
  export type CartErrorCode =
985
+ /** The specified address field contains emojis. */
986
+ | 'ADDRESS_FIELD_CONTAINS_EMOJIS'
987
+ /** The specified address field contains HTML tags. */
988
+ | 'ADDRESS_FIELD_CONTAINS_HTML_TAGS'
989
+ /** The specified address field contains a URL. */
990
+ | 'ADDRESS_FIELD_CONTAINS_URL'
991
+ /** The specified address field does not match the expected pattern. */
992
+ | 'ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN'
993
+ /** The specified address field is required. */
994
+ | 'ADDRESS_FIELD_IS_REQUIRED'
995
+ /** The specified address field is too long. */
996
+ | 'ADDRESS_FIELD_IS_TOO_LONG'
954
997
  /** The input value is invalid. */
955
998
  | 'INVALID'
999
+ /** Company location not found or not allowed. */
1000
+ | 'INVALID_COMPANY_LOCATION'
956
1001
  /** Delivery group was not found in cart. */
957
1002
  | 'INVALID_DELIVERY_GROUP'
958
1003
  /** Delivery option was not valid. */
959
1004
  | 'INVALID_DELIVERY_OPTION'
1005
+ /** The quantity must be a multiple of the specified increment. */
1006
+ | 'INVALID_INCREMENT'
960
1007
  /** Merchandise line was not found in cart. */
961
1008
  | 'INVALID_MERCHANDISE_LINE'
962
1009
  /** The metafields were not valid. */
@@ -965,16 +1012,32 @@ export type CartErrorCode =
965
1012
  | 'INVALID_PAYMENT'
966
1013
  /** Cannot update payment on an empty cart */
967
1014
  | 'INVALID_PAYMENT_EMPTY_CART'
1015
+ /** The given zip code is invalid for the provided country. */
1016
+ | 'INVALID_ZIP_CODE_FOR_COUNTRY'
1017
+ /** The given zip code is invalid for the provided province. */
1018
+ | 'INVALID_ZIP_CODE_FOR_PROVINCE'
968
1019
  /** The input value should be less than the maximum value allowed. */
969
1020
  | 'LESS_THAN'
1021
+ /** The quantity must be below the specified maximum for the item. */
1022
+ | 'MAXIMUM_EXCEEDED'
1023
+ /** The quantity must be above the specified minimum for the item. */
1024
+ | 'MINIMUM_NOT_MET'
1025
+ /** The customer access token is required when setting a company location. */
1026
+ | 'MISSING_CUSTOMER_ACCESS_TOKEN'
970
1027
  /** Missing discount code. */
971
1028
  | 'MISSING_DISCOUNT_CODE'
972
1029
  /** Missing note. */
973
1030
  | 'MISSING_NOTE'
974
1031
  /** The payment method is not supported. */
975
1032
  | 'PAYMENT_METHOD_NOT_SUPPORTED'
1033
+ /** The given province cannot be found. */
1034
+ | 'PROVINCE_NOT_FOUND'
1035
+ /** A general error occurred during address validation. */
1036
+ | 'UNSPECIFIED_ADDRESS_ERROR'
976
1037
  /** Validation failed. */
977
- | 'VALIDATION_CUSTOM';
1038
+ | 'VALIDATION_CUSTOM'
1039
+ /** The given zip code is unsupported. */
1040
+ | 'ZIP_CODE_NOT_SUPPORTED';
978
1041
 
979
1042
  /** The estimated costs that the buyer will pay at checkout. The estimated cost uses [`CartBuyerIdentity`](https://shopify.dev/api/storefront/reference/cart/cartbuyeridentity) to determine [international pricing](https://shopify.dev/custom-storefronts/internationalization/international-pricing). */
980
1043
  export type CartEstimatedCost = {
@@ -1339,7 +1402,12 @@ export type CartWalletPaymentMethodInput = {
1339
1402
  shopPayWalletContent?: InputMaybe<ShopPayWalletContentInput>;
1340
1403
  };
1341
1404
 
1342
- /** A container for all the information required to checkout items and pay. */
1405
+ /**
1406
+ * A container for all the information required to checkout items and pay.
1407
+ *
1408
+ * The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
1409
+ *
1410
+ */
1343
1411
  export type Checkout = Node & {
1344
1412
  __typename?: 'Checkout';
1345
1413
  /** The gift cards used on the checkout. */
@@ -1436,7 +1504,12 @@ export type Checkout = Node & {
1436
1504
  webUrl: Scalars['URL']['output'];
1437
1505
  };
1438
1506
 
1439
- /** A container for all the information required to checkout items and pay. */
1507
+ /**
1508
+ * A container for all the information required to checkout items and pay.
1509
+ *
1510
+ * The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
1511
+ *
1512
+ */
1440
1513
  export type CheckoutDiscountApplicationsArgs = {
1441
1514
  after?: InputMaybe<Scalars['String']['input']>;
1442
1515
  before?: InputMaybe<Scalars['String']['input']>;
@@ -1445,7 +1518,12 @@ export type CheckoutDiscountApplicationsArgs = {
1445
1518
  reverse?: InputMaybe<Scalars['Boolean']['input']>;
1446
1519
  };
1447
1520
 
1448
- /** A container for all the information required to checkout items and pay. */
1521
+ /**
1522
+ * A container for all the information required to checkout items and pay.
1523
+ *
1524
+ * The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
1525
+ *
1526
+ */
1449
1527
  export type CheckoutLineItemsArgs = {
1450
1528
  after?: InputMaybe<Scalars['String']['input']>;
1451
1529
  before?: InputMaybe<Scalars['String']['input']>;
@@ -2140,6 +2218,85 @@ export type CommentEdge = {
2140
2218
  node: Comment;
2141
2219
  };
2142
2220
 
2221
+ /** Represents information about a company which is also a customer of the shop. */
2222
+ export type Company = HasMetafields &
2223
+ Node & {
2224
+ __typename?: 'Company';
2225
+ /** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company was created in Shopify. */
2226
+ createdAt: Scalars['DateTime']['output'];
2227
+ /** A unique externally-supplied ID for the company. */
2228
+ externalId?: Maybe<Scalars['String']['output']>;
2229
+ /** A globally-unique ID. */
2230
+ id: Scalars['ID']['output'];
2231
+ /** Returns a metafield found by namespace and key. */
2232
+ metafield?: Maybe<Metafield>;
2233
+ /** The metafields associated with the resource matching the supplied list of namespaces and keys. */
2234
+ metafields: Array<Maybe<Metafield>>;
2235
+ /** The name of the company. */
2236
+ name: Scalars['String']['output'];
2237
+ /** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company was last modified. */
2238
+ updatedAt: Scalars['DateTime']['output'];
2239
+ };
2240
+
2241
+ /** Represents information about a company which is also a customer of the shop. */
2242
+ export type CompanyMetafieldArgs = {
2243
+ key: Scalars['String']['input'];
2244
+ namespace?: InputMaybe<Scalars['String']['input']>;
2245
+ };
2246
+
2247
+ /** Represents information about a company which is also a customer of the shop. */
2248
+ export type CompanyMetafieldsArgs = {
2249
+ identifiers: Array<HasMetafieldsIdentifier>;
2250
+ };
2251
+
2252
+ /** A company's main point of contact. */
2253
+ export type CompanyContact = Node & {
2254
+ __typename?: 'CompanyContact';
2255
+ /** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company contact was created in Shopify. */
2256
+ createdAt: Scalars['DateTime']['output'];
2257
+ /** A globally-unique ID. */
2258
+ id: Scalars['ID']['output'];
2259
+ /** The company contact's locale (language). */
2260
+ locale?: Maybe<Scalars['String']['output']>;
2261
+ /** The company contact's job title. */
2262
+ title?: Maybe<Scalars['String']['output']>;
2263
+ /** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company contact was last modified. */
2264
+ updatedAt: Scalars['DateTime']['output'];
2265
+ };
2266
+
2267
+ /** A company's location. */
2268
+ export type CompanyLocation = HasMetafields &
2269
+ Node & {
2270
+ __typename?: 'CompanyLocation';
2271
+ /** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company location was created in Shopify. */
2272
+ createdAt: Scalars['DateTime']['output'];
2273
+ /** A unique externally-supplied ID for the company. */
2274
+ externalId?: Maybe<Scalars['String']['output']>;
2275
+ /** A globally-unique ID. */
2276
+ id: Scalars['ID']['output'];
2277
+ /** The preferred locale of the company location. */
2278
+ locale?: Maybe<Scalars['String']['output']>;
2279
+ /** Returns a metafield found by namespace and key. */
2280
+ metafield?: Maybe<Metafield>;
2281
+ /** The metafields associated with the resource matching the supplied list of namespaces and keys. */
2282
+ metafields: Array<Maybe<Metafield>>;
2283
+ /** The name of the company location. */
2284
+ name: Scalars['String']['output'];
2285
+ /** The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601)) at which the company location was last modified. */
2286
+ updatedAt: Scalars['DateTime']['output'];
2287
+ };
2288
+
2289
+ /** A company's location. */
2290
+ export type CompanyLocationMetafieldArgs = {
2291
+ key: Scalars['String']['input'];
2292
+ namespace?: InputMaybe<Scalars['String']['input']>;
2293
+ };
2294
+
2295
+ /** A company's location. */
2296
+ export type CompanyLocationMetafieldsArgs = {
2297
+ identifiers: Array<HasMetafieldsIdentifier>;
2298
+ };
2299
+
2143
2300
  /** The action for the 3DS payment redirect. */
2144
2301
  export type CompletePaymentChallenge = {
2145
2302
  __typename?: 'CompletePaymentChallenge';
@@ -3138,7 +3295,10 @@ export type Customer = HasMetafields & {
3138
3295
  firstName?: Maybe<Scalars['String']['output']>;
3139
3296
  /** A unique ID for the customer. */
3140
3297
  id: Scalars['ID']['output'];
3141
- /** The customer's most recently updated, incomplete checkout. */
3298
+ /**
3299
+ * The customer's most recently updated, incomplete checkout.
3300
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
3301
+ */
3142
3302
  lastIncompleteCheckout?: Maybe<Checkout>;
3143
3303
  /** The customer’s last name. */
3144
3304
  lastName?: Maybe<Scalars['String']['output']>;
@@ -3531,8 +3691,24 @@ export type DeliveryAddressInput = {
3531
3691
  customerAddressId?: InputMaybe<Scalars['ID']['input']>;
3532
3692
  /** A delivery address preference of a buyer that is interacting with the cart. */
3533
3693
  deliveryAddress?: InputMaybe<MailingAddressInput>;
3694
+ /** Defines what kind of address validation is requested. */
3695
+ deliveryAddressValidationStrategy?: InputMaybe<DeliveryAddressValidationStrategy>;
3534
3696
  };
3535
3697
 
3698
+ /**
3699
+ * Defines the types of available validation strategies for delivery addresses.
3700
+ *
3701
+ */
3702
+ export type DeliveryAddressValidationStrategy =
3703
+ /** Only the country code is validated. */
3704
+ | 'COUNTRY_CODE_ONLY'
3705
+ /**
3706
+ * Strict validation is performed, i.e. all fields in the address are validated
3707
+ * according to Shopify's checkout rules. If the address fails validation, the cart will not be updated.
3708
+ *
3709
+ */
3710
+ | 'STRICT';
3711
+
3536
3712
  /** List of different delivery method types. */
3537
3713
  export type DeliveryMethodType =
3538
3714
  /** Local Delivery. */
@@ -3734,12 +3910,30 @@ export type Filter = {
3734
3910
  id: Scalars['String']['output'];
3735
3911
  /** A human-friendly string for this filter. */
3736
3912
  label: Scalars['String']['output'];
3913
+ /**
3914
+ * Describes how to present the filter values.
3915
+ * Returns a value only for filters of type `LIST`. Returns null for other types.
3916
+ *
3917
+ */
3918
+ presentation?: Maybe<FilterPresentation>;
3737
3919
  /** An enumeration that denotes the type of data this filter represents. */
3738
3920
  type: FilterType;
3739
3921
  /** The list of values for this filter. */
3740
3922
  values: Array<FilterValue>;
3741
3923
  };
3742
3924
 
3925
+ /**
3926
+ * Defines how to present the filter values, specifies the presentation of the filter.
3927
+ *
3928
+ */
3929
+ export type FilterPresentation =
3930
+ /** Image presentation, filter values display an image. */
3931
+ | 'IMAGE'
3932
+ /** Swatch presentation, filter values display color or image patterns. */
3933
+ | 'SWATCH'
3934
+ /** Text presentation, no additional visual display for filter values. */
3935
+ | 'TEXT';
3936
+
3743
3937
  /**
3744
3938
  * The type of data that the filter group represents.
3745
3939
  *
@@ -3762,6 +3956,8 @@ export type FilterValue = {
3762
3956
  count: Scalars['Int']['output'];
3763
3957
  /** A unique identifier. */
3764
3958
  id: Scalars['String']['output'];
3959
+ /** The visual representation when the filter's presentation is `IMAGE`. */
3960
+ image?: Maybe<MediaImage>;
3765
3961
  /**
3766
3962
  * An input object that can be used to filter by this value on the parent field.
3767
3963
  *
@@ -3773,6 +3969,8 @@ export type FilterValue = {
3773
3969
  input: Scalars['JSON']['output'];
3774
3970
  /** A human-friendly string for this filter value. */
3775
3971
  label: Scalars['String']['output'];
3972
+ /** The visual representation when the filter's presentation is `SWATCH`. */
3973
+ swatch?: Maybe<Swatch>;
3776
3974
  };
3777
3975
 
3778
3976
  /** Represents a single fulfillment in an order. */
@@ -4925,6 +5123,8 @@ export type MetafieldParentResource =
4925
5123
  | Blog
4926
5124
  | Cart
4927
5125
  | Collection
5126
+ | Company
5127
+ | CompanyLocation
4928
5128
  | Customer
4929
5129
  | Location
4930
5130
  | Market
@@ -4943,6 +5143,7 @@ export type MetafieldReference =
4943
5143
  | GenericFile
4944
5144
  | MediaImage
4945
5145
  | Metaobject
5146
+ | Model3d
4946
5147
  | Page
4947
5148
  | Product
4948
5149
  | ProductVariant
@@ -5204,41 +5405,95 @@ export type Mutation = {
5204
5405
  cartSelectedDeliveryOptionsUpdate?: Maybe<CartSelectedDeliveryOptionsUpdatePayload>;
5205
5406
  /** Submit the cart for checkout completion. */
5206
5407
  cartSubmitForCompletion?: Maybe<CartSubmitForCompletionPayload>;
5207
- /** Updates the attributes of a checkout if `allowPartialAddresses` is `true`. */
5408
+ /**
5409
+ * Updates the attributes of a checkout if `allowPartialAddresses` is `true`.
5410
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5411
+ */
5208
5412
  checkoutAttributesUpdateV2?: Maybe<CheckoutAttributesUpdateV2Payload>;
5209
- /** Completes a checkout without providing payment information. You can use this mutation for free items or items whose purchase price is covered by a gift card. */
5413
+ /**
5414
+ * Completes a checkout without providing payment information. You can use this mutation for free items or items whose purchase price is covered by a gift card.
5415
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5416
+ */
5210
5417
  checkoutCompleteFree?: Maybe<CheckoutCompleteFreePayload>;
5211
- /** Completes a checkout using a credit card token from Shopify's card vault. Before you can complete checkouts using CheckoutCompleteWithCreditCardV2, you need to [_request payment processing_](https://shopify.dev/apps/channels/getting-started#request-payment-processing). */
5418
+ /**
5419
+ * Completes a checkout using a credit card token from Shopify's card vault. Before you can complete checkouts using CheckoutCompleteWithCreditCardV2, you need to [_request payment processing_](https://shopify.dev/apps/channels/getting-started#request-payment-processing).
5420
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5421
+ */
5212
5422
  checkoutCompleteWithCreditCardV2?: Maybe<CheckoutCompleteWithCreditCardV2Payload>;
5213
- /** Completes a checkout with a tokenized payment. */
5423
+ /**
5424
+ * Completes a checkout with a tokenized payment.
5425
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5426
+ */
5214
5427
  checkoutCompleteWithTokenizedPaymentV3?: Maybe<CheckoutCompleteWithTokenizedPaymentV3Payload>;
5215
- /** Creates a new checkout. */
5428
+ /**
5429
+ * Creates a new checkout.
5430
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5431
+ */
5216
5432
  checkoutCreate?: Maybe<CheckoutCreatePayload>;
5217
- /** Associates a customer to the checkout. */
5433
+ /**
5434
+ * Associates a customer to the checkout.
5435
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5436
+ */
5218
5437
  checkoutCustomerAssociateV2?: Maybe<CheckoutCustomerAssociateV2Payload>;
5219
- /** Disassociates the current checkout customer from the checkout. */
5438
+ /**
5439
+ * Disassociates the current checkout customer from the checkout.
5440
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5441
+ */
5220
5442
  checkoutCustomerDisassociateV2?: Maybe<CheckoutCustomerDisassociateV2Payload>;
5221
- /** Applies a discount to an existing checkout using a discount code. */
5443
+ /**
5444
+ * Applies a discount to an existing checkout using a discount code.
5445
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5446
+ */
5222
5447
  checkoutDiscountCodeApplyV2?: Maybe<CheckoutDiscountCodeApplyV2Payload>;
5223
- /** Removes the applied discounts from an existing checkout. */
5448
+ /**
5449
+ * Removes the applied discounts from an existing checkout.
5450
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5451
+ */
5224
5452
  checkoutDiscountCodeRemove?: Maybe<CheckoutDiscountCodeRemovePayload>;
5225
- /** Updates the email on an existing checkout. */
5453
+ /**
5454
+ * Updates the email on an existing checkout.
5455
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5456
+ */
5226
5457
  checkoutEmailUpdateV2?: Maybe<CheckoutEmailUpdateV2Payload>;
5227
- /** Removes an applied gift card from the checkout. */
5458
+ /**
5459
+ * Removes an applied gift card from the checkout.
5460
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5461
+ */
5228
5462
  checkoutGiftCardRemoveV2?: Maybe<CheckoutGiftCardRemoveV2Payload>;
5229
- /** Appends gift cards to an existing checkout. */
5463
+ /**
5464
+ * Appends gift cards to an existing checkout.
5465
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5466
+ */
5230
5467
  checkoutGiftCardsAppend?: Maybe<CheckoutGiftCardsAppendPayload>;
5231
- /** Adds a list of line items to a checkout. */
5468
+ /**
5469
+ * Adds a list of line items to a checkout.
5470
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5471
+ */
5232
5472
  checkoutLineItemsAdd?: Maybe<CheckoutLineItemsAddPayload>;
5233
- /** Removes line items from an existing checkout. */
5473
+ /**
5474
+ * Removes line items from an existing checkout.
5475
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5476
+ */
5234
5477
  checkoutLineItemsRemove?: Maybe<CheckoutLineItemsRemovePayload>;
5235
- /** Sets a list of line items to a checkout. */
5478
+ /**
5479
+ * Sets a list of line items to a checkout.
5480
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5481
+ */
5236
5482
  checkoutLineItemsReplace?: Maybe<CheckoutLineItemsReplacePayload>;
5237
- /** Updates line items on a checkout. */
5483
+ /**
5484
+ * Updates line items on a checkout.
5485
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5486
+ */
5238
5487
  checkoutLineItemsUpdate?: Maybe<CheckoutLineItemsUpdatePayload>;
5239
- /** Updates the shipping address of an existing checkout. */
5488
+ /**
5489
+ * Updates the shipping address of an existing checkout.
5490
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5491
+ */
5240
5492
  checkoutShippingAddressUpdateV2?: Maybe<CheckoutShippingAddressUpdateV2Payload>;
5241
- /** Updates the shipping lines on an existing checkout. */
5493
+ /**
5494
+ * Updates the shipping lines on an existing checkout.
5495
+ * @deprecated The Storefront GraphQL Checkout API is deprecated and will be removed in a future version. Please see https://shopify.dev/changelog/deprecation-of-checkout-apis for more information.
5496
+ */
5242
5497
  checkoutShippingLineUpdate?: Maybe<CheckoutShippingLineUpdatePayload>;
5243
5498
  /**
5244
5499
  * Creates a customer access token.
@@ -5362,7 +5617,7 @@ export type MutationCartMetafieldsSetArgs = {
5362
5617
  /** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
5363
5618
  export type MutationCartNoteUpdateArgs = {
5364
5619
  cartId: Scalars['ID']['input'];
5365
- note?: InputMaybe<Scalars['String']['input']>;
5620
+ note: Scalars['String']['input'];
5366
5621
  };
5367
5622
 
5368
5623
  /** The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start. */
@@ -6554,6 +6809,10 @@ export type ProductVariant = HasMetafields &
6554
6809
  product: Product;
6555
6810
  /** The total sellable quantity of the variant for online sales channels. */
6556
6811
  quantityAvailable?: Maybe<Scalars['Int']['output']>;
6812
+ /** A list of quantity breaks for the product variant. */
6813
+ quantityPriceBreaks: QuantityPriceBreakConnection;
6814
+ /** The quantity rule for the product variant in a given context. */
6815
+ quantityRule: QuantityRule;
6557
6816
  /** Whether a customer needs to provide a shipping address when placing an order for the product variant. */
6558
6817
  requiresShipping: Scalars['Boolean']['output'];
6559
6818
  /** List of product options applied to the variant. */
@@ -6595,6 +6854,17 @@ export type ProductVariantMetafieldsArgs = {
6595
6854
  identifiers: Array<HasMetafieldsIdentifier>;
6596
6855
  };
6597
6856
 
6857
+ /**
6858
+ * A product variant represents a different version of a product, such as differing sizes or differing colors.
6859
+ *
6860
+ */
6861
+ export type ProductVariantQuantityPriceBreaksArgs = {
6862
+ after?: InputMaybe<Scalars['String']['input']>;
6863
+ before?: InputMaybe<Scalars['String']['input']>;
6864
+ first?: InputMaybe<Scalars['Int']['input']>;
6865
+ last?: InputMaybe<Scalars['Int']['input']>;
6866
+ };
6867
+
6598
6868
  /**
6599
6869
  * A product variant represents a different version of a product, such as differing sizes or differing colors.
6600
6870
  *
@@ -6663,6 +6933,91 @@ export type ProductVariantSortKeys =
6663
6933
  /** Sort by the `title` value. */
6664
6934
  | 'TITLE';
6665
6935
 
6936
+ /** Represents information about the buyer that is interacting with the cart. */
6937
+ export type PurchasingCompany = {
6938
+ __typename?: 'PurchasingCompany';
6939
+ /** The company associated to the order or draft order. */
6940
+ company: Company;
6941
+ /** The company contact associated to the order or draft order. */
6942
+ contact?: Maybe<CompanyContact>;
6943
+ /** The company location associated to the order or draft order. */
6944
+ location: CompanyLocation;
6945
+ };
6946
+
6947
+ /**
6948
+ * Quantity price breaks lets you offer different rates that are based on the
6949
+ * amount of a specific variant being ordered.
6950
+ *
6951
+ */
6952
+ export type QuantityPriceBreak = {
6953
+ __typename?: 'QuantityPriceBreak';
6954
+ /**
6955
+ * Minimum quantity required to reach new quantity break price.
6956
+ *
6957
+ */
6958
+ minimumQuantity: Scalars['Int']['output'];
6959
+ /**
6960
+ * The price of variant after reaching the minimum quanity.
6961
+ *
6962
+ */
6963
+ price: MoneyV2;
6964
+ };
6965
+
6966
+ /**
6967
+ * An auto-generated type for paginating through multiple QuantityPriceBreaks.
6968
+ *
6969
+ */
6970
+ export type QuantityPriceBreakConnection = {
6971
+ __typename?: 'QuantityPriceBreakConnection';
6972
+ /** A list of edges. */
6973
+ edges: Array<QuantityPriceBreakEdge>;
6974
+ /** A list of the nodes contained in QuantityPriceBreakEdge. */
6975
+ nodes: Array<QuantityPriceBreak>;
6976
+ /** Information to aid in pagination. */
6977
+ pageInfo: PageInfo;
6978
+ };
6979
+
6980
+ /**
6981
+ * An auto-generated type which holds one QuantityPriceBreak and a cursor during pagination.
6982
+ *
6983
+ */
6984
+ export type QuantityPriceBreakEdge = {
6985
+ __typename?: 'QuantityPriceBreakEdge';
6986
+ /** A cursor for use in pagination. */
6987
+ cursor: Scalars['String']['output'];
6988
+ /** The item at the end of QuantityPriceBreakEdge. */
6989
+ node: QuantityPriceBreak;
6990
+ };
6991
+
6992
+ /**
6993
+ * The quantity rule for the product variant in a given context.
6994
+ *
6995
+ */
6996
+ export type QuantityRule = {
6997
+ __typename?: 'QuantityRule';
6998
+ /**
6999
+ * The value that specifies the quantity increment between minimum and maximum of the rule.
7000
+ * Only quantities divisible by this value will be considered valid.
7001
+ *
7002
+ * The increment must be lower than or equal to the minimum and the maximum, and both minimum and maximum
7003
+ * must be divisible by this value.
7004
+ *
7005
+ */
7006
+ increment: Scalars['Int']['output'];
7007
+ /**
7008
+ * An optional value that defines the highest allowed quantity purchased by the customer.
7009
+ * If defined, maximum must be lower than or equal to the minimum and must be a multiple of the increment.
7010
+ *
7011
+ */
7012
+ maximum?: Maybe<Scalars['Int']['output']>;
7013
+ /**
7014
+ * The value that defines the lowest allowed quantity purchased by the customer.
7015
+ * The minimum must be a multiple of the quantity rule's increment.
7016
+ *
7017
+ */
7018
+ minimum: Scalars['Int']['output'];
7019
+ };
7020
+
6666
7021
  /** The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start. */
6667
7022
  export type QueryRoot = {
6668
7023
  __typename?: 'QueryRoot';
@@ -6732,6 +7087,9 @@ export type QueryRoot = {
6732
7087
  | CheckoutLineItem
6733
7088
  | Collection
6734
7089
  | Comment
7090
+ | Company
7091
+ | CompanyContact
7092
+ | CompanyLocation
6735
7093
  | ComponentizableCartLine
6736
7094
  | ExternalVideo
6737
7095
  | GenericFile
@@ -6768,6 +7126,9 @@ export type QueryRoot = {
6768
7126
  | CheckoutLineItem
6769
7127
  | Collection
6770
7128
  | Comment
7129
+ | Company
7130
+ | CompanyContact
7131
+ | CompanyLocation
6771
7132
  | ComponentizableCartLine
6772
7133
  | ExternalVideo
6773
7134
  | GenericFile
@@ -7747,6 +8108,15 @@ export type SubmitThrottled = {
7747
8108
  pollAfter: Scalars['DateTime']['output'];
7748
8109
  };
7749
8110
 
8111
+ /** Color and image for visual representation. */
8112
+ export type Swatch = {
8113
+ __typename?: 'Swatch';
8114
+ /** The swatch color. */
8115
+ color?: Maybe<Scalars['Color']['output']>;
8116
+ /** The swatch image. */
8117
+ image?: Maybe<MediaImage>;
8118
+ };
8119
+
7750
8120
  /**
7751
8121
  * Specifies the fields required to complete a checkout with
7752
8122
  * a tokenized payment.
@@ -1,6 +1,6 @@
1
1
  export type StorefrontClientProps = {
2
2
  /** The host name of the domain (eg: `{shop}.myshopify.com`). */
3
- storeDomain: string;
3
+ storeDomain?: string;
4
4
  /** The Storefront API delegate access token. Refer to the [authentication](https://shopify.dev/api/storefront#authentication) and [delegate access token](https://shopify.dev/apps/auth/oauth/delegate-access-tokens) documentation for more details. */
5
5
  privateStorefrontToken?: string;
6
6
  /** The Storefront API access token. Refer to the [authentication](https://shopify.dev/api/storefront#authentication) documentation for more details. */
@@ -19,7 +19,7 @@ export type StorefrontClientProps = {
19
19
  *
20
20
  * When used on the server, it is recommended to use the `privateStorefrontToken` prop. When used on the client, it is recommended to use the `publicStorefrontToken` prop.
21
21
  */
22
- export declare function createStorefrontClient(props: StorefrontClientProps): StorefrontClientReturn;
22
+ export declare function createStorefrontClient({ storeDomain, privateStorefrontToken, publicStorefrontToken, storefrontApiVersion, contentType, }: StorefrontClientProps): StorefrontClientReturn;
23
23
  export declare function getPublicTokenHeadersRaw(contentType: 'graphql' | 'json', storefrontApiVersion: string, accessToken: string): {
24
24
  'content-type': string;
25
25
  'X-SDK-Variant': string;
@@ -11,11 +11,11 @@ export declare function useCartAPIStateMachine({ numCartLines, onCartActionEntry
11
11
  onCartActionOptimisticUI?: (context: CartMachineContext, event: CartMachineEvent) => Partial<CartMachineContext>;
12
12
  /** A callback that is invoked after a Cart API completes. */
13
13
  onCartActionComplete?: (context: CartMachineContext, event: CartMachineFetchResultEvent) => void;
14
- /** An object with fields that correspond to the Storefront API's [Cart object](https://shopify.dev/api/storefront/2024-01/objects/cart). */
14
+ /** An object with fields that correspond to the Storefront API's [Cart object](https://shopify.dev/api/storefront/2024-04/objects/cart). */
15
15
  data?: PartialDeep<CartType, {
16
16
  recurseIntoArrays: true;
17
17
  }>;
18
- /** A fragment used to query the Storefront API's [Cart object](https://shopify.dev/api/storefront/2024-01/objects/cart) for all queries and mutations. A default value is used if no argument is provided. */
18
+ /** A fragment used to query the Storefront API's [Cart object](https://shopify.dev/api/storefront/2024-04/objects/cart) for all queries and mutations. A default value is used if no argument is provided. */
19
19
  cartFragment: string;
20
20
  /** The ISO country code for i18n. */
21
21
  countryCode?: CountryCode;