@lana-commerce/core 11.0.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 (972) hide show
  1. package/CHANGELOG.md +531 -0
  2. package/cjs/actionLock.js +31 -0
  3. package/cjs/addEmptyListItem.js +7 -0
  4. package/cjs/aggregateOptions.js +178 -0
  5. package/cjs/analytics.js +90 -0
  6. package/cjs/analyticsProductData.js +33 -0
  7. package/cjs/arrayToDict.js +12 -0
  8. package/cjs/asyncModuleWrapper.js +52 -0
  9. package/cjs/averageReviewScore.js +45 -0
  10. package/cjs/buildconfig.js +16 -0
  11. package/cjs/cachedLoader.js +36 -0
  12. package/cjs/canonicalVariantURL.js +2 -0
  13. package/cjs/cartOperation.js +132 -0
  14. package/cjs/categorySEO.js +20 -0
  15. package/cjs/commonTypes.js +2 -0
  16. package/cjs/compact.js +8 -0
  17. package/cjs/configLoader.js +69 -0
  18. package/cjs/controlledQueue.js +46 -0
  19. package/cjs/convertImageURL.js +19 -0
  20. package/cjs/dataLoader.js +185 -0
  21. package/cjs/defaultVariant.js +30 -0
  22. package/cjs/effector/clearOnChangeAfterDelay.js +17 -0
  23. package/cjs/effector/combineEvery.js +8 -0
  24. package/cjs/effector/combineSome.js +8 -0
  25. package/cjs/effector/debounced.js +18 -0
  26. package/cjs/effector/form.js +168 -0
  27. package/cjs/effector/hideOnChangeAfterDelay.js +17 -0
  28. package/cjs/effector/requestResponse.js +30 -0
  29. package/cjs/effector/requestResponseMulti.js +51 -0
  30. package/cjs/effector/restoreNamed.js +8 -0
  31. package/cjs/effector/split.js +29 -0
  32. package/cjs/effector/validator.js +33 -0
  33. package/cjs/effector/wrapSignInRequired.js +13 -0
  34. package/cjs/exceptions.js +6 -0
  35. package/cjs/fetchAllItems.js +56 -0
  36. package/cjs/file.js +83 -0
  37. package/cjs/fileWebsocket.js +83 -0
  38. package/cjs/filterFunc.js +48 -0
  39. package/cjs/filterFuncBrand.js +12 -0
  40. package/cjs/filterFuncCategory.js +12 -0
  41. package/cjs/filterFuncContentBlock.js +19 -0
  42. package/cjs/filterFuncCustomer.js +161 -0
  43. package/cjs/filterFuncDataFeed.js +54 -0
  44. package/cjs/filterFuncOrder.js +334 -0
  45. package/cjs/filterFuncPreprocess.js +14 -0
  46. package/cjs/filterFuncProduct.js +70 -0
  47. package/cjs/filterFuncPurchaseOrder.js +126 -0
  48. package/cjs/filterFuncSupplier.js +36 -0
  49. package/cjs/filterFuncTransfer.js +135 -0
  50. package/cjs/formatAbbrevNumber.js +21 -0
  51. package/cjs/formatCurrency.js +47 -0
  52. package/cjs/formatToJSX.js +123 -0
  53. package/cjs/fulfillmentNumber.js +7 -0
  54. package/cjs/generateRandomToken.js +12 -0
  55. package/cjs/generateUUID.js +10 -0
  56. package/cjs/generated/codes.js +47 -0
  57. package/cjs/genericFile.js +73 -0
  58. package/cjs/getSalesChannelID.js +13 -0
  59. package/cjs/getSessionID.js +13 -0
  60. package/cjs/getTimezone.js +12 -0
  61. package/cjs/graphql/fragments/Branding.js +3 -0
  62. package/cjs/graphql/fragments/BrandingField.js +3 -0
  63. package/cjs/graphql/fragments/CartCustomItem.js +3 -0
  64. package/cjs/graphql/fragments/CartOrder.js +3 -0
  65. package/cjs/graphql/fragments/CartVariant.js +3 -0
  66. package/cjs/graphql/fragments/CartVariantFull.js +3 -0
  67. package/cjs/graphql/fragments/Category.js +3 -0
  68. package/cjs/graphql/fragments/CommonCartVariant.js +3 -0
  69. package/cjs/graphql/fragments/Currency.js +3 -0
  70. package/cjs/graphql/fragments/CurrencyPrice.js +3 -0
  71. package/cjs/graphql/fragments/CustomField.js +3 -0
  72. package/cjs/graphql/fragments/CustomFieldObjects.js +3 -0
  73. package/cjs/graphql/fragments/Customer.js +3 -0
  74. package/cjs/graphql/fragments/CustomerBalance.js +3 -0
  75. package/cjs/graphql/fragments/CustomerBalanceHistory.js +3 -0
  76. package/cjs/graphql/fragments/CustomerFavorite.js +3 -0
  77. package/cjs/graphql/fragments/CustomerFavoriteShort.js +3 -0
  78. package/cjs/graphql/fragments/CustomerOAuthProvider.js +3 -0
  79. package/cjs/graphql/fragments/CustomerOrderBrief.js +3 -0
  80. package/cjs/graphql/fragments/CustomerOrderFulfillment.js +3 -0
  81. package/cjs/graphql/fragments/CustomerOrderFull.js +3 -0
  82. package/cjs/graphql/fragments/CustomerPaymentSource.js +3 -0
  83. package/cjs/graphql/fragments/CustomerReturnBrief.js +3 -0
  84. package/cjs/graphql/fragments/CustomerReturnFull.js +3 -0
  85. package/cjs/graphql/fragments/CustomerReturnPolicy.js +3 -0
  86. package/cjs/graphql/fragments/CustomerSubscriptionBrief.js +3 -0
  87. package/cjs/graphql/fragments/CustomerSubscriptionFull.js +3 -0
  88. package/cjs/graphql/fragments/File.js +3 -0
  89. package/cjs/graphql/fragments/FileForUpload.js +3 -0
  90. package/cjs/graphql/fragments/FileNoFallback.js +3 -0
  91. package/cjs/graphql/fragments/FullAddress.js +3 -0
  92. package/cjs/graphql/fragments/Gateway.js +3 -0
  93. package/cjs/graphql/fragments/GatewayManual.js +3 -0
  94. package/cjs/graphql/fragments/GatewayPaypal.js +3 -0
  95. package/cjs/graphql/fragments/GatewayStripe.js +3 -0
  96. package/cjs/graphql/fragments/GatewayTest.js +3 -0
  97. package/cjs/graphql/fragments/IPAndUAInfo.js +3 -0
  98. package/cjs/graphql/fragments/InfoCountry.js +3 -0
  99. package/cjs/graphql/fragments/InfoCountryDedupField.js +3 -0
  100. package/cjs/graphql/fragments/InfoCurrency.js +3 -0
  101. package/cjs/graphql/fragments/InfoProvince.js +3 -0
  102. package/cjs/graphql/fragments/KeyValue.js +3 -0
  103. package/cjs/graphql/fragments/LineItemField.js +3 -0
  104. package/cjs/graphql/fragments/MediaFile.js +3 -0
  105. package/cjs/graphql/fragments/MinCurrencyPrice.js +3 -0
  106. package/cjs/graphql/fragments/ProductField.js +3 -0
  107. package/cjs/graphql/fragments/ProductFieldSet.js +3 -0
  108. package/cjs/graphql/fragments/ProductFlat.js +3 -0
  109. package/cjs/graphql/fragments/ProductQuestion.js +3 -0
  110. package/cjs/graphql/fragments/ProductQuestionAnswer.js +3 -0
  111. package/cjs/graphql/fragments/ProductQuestionPage.js +3 -0
  112. package/cjs/graphql/fragments/ProductReview.js +3 -0
  113. package/cjs/graphql/fragments/ProductReviewAnswer.js +3 -0
  114. package/cjs/graphql/fragments/ProductReviewAverageScore.js +3 -0
  115. package/cjs/graphql/fragments/ProductReviewPage.js +3 -0
  116. package/cjs/graphql/fragments/ProductReviewScore.js +3 -0
  117. package/cjs/graphql/fragments/ProductReviewSurveyAnswer.js +3 -0
  118. package/cjs/graphql/fragments/ProductSearchOptionAgg.js +3 -0
  119. package/cjs/graphql/fragments/ProductSearchResult.js +3 -0
  120. package/cjs/graphql/fragments/ReturnReason.js +3 -0
  121. package/cjs/graphql/fragments/ReviewDimension.js +3 -0
  122. package/cjs/graphql/fragments/ReviewDimensionSet.js +3 -0
  123. package/cjs/graphql/fragments/ReviewImagePage.js +3 -0
  124. package/cjs/graphql/fragments/ReviewQuestionProduct.js +3 -0
  125. package/cjs/graphql/fragments/ReviewSettings.js +3 -0
  126. package/cjs/graphql/fragments/SearchProduct.js +3 -0
  127. package/cjs/graphql/fragments/Shop.js +3 -0
  128. package/cjs/graphql/fragments/SubscriptionPlan.js +3 -0
  129. package/cjs/graphql/fragments/SurveyQuestion.js +3 -0
  130. package/cjs/graphql/fragments/TieredPricing.js +3 -0
  131. package/cjs/graphql/fragments/TieredPricingTier.js +3 -0
  132. package/cjs/graphql/fragments/VariantOption.js +3 -0
  133. package/cjs/graphql/operations/ApplyGiftCardMutation.js +3 -0
  134. package/cjs/graphql/operations/AuthRequestMutation.js +3 -0
  135. package/cjs/graphql/operations/CancelOrderMutation.js +3 -0
  136. package/cjs/graphql/operations/CancelSubscriptionMutation.js +3 -0
  137. package/cjs/graphql/operations/ConnectOAuth2Mutation.js +3 -0
  138. package/cjs/graphql/operations/CreateCartMutation.js +26 -0
  139. package/cjs/graphql/operations/CreateFavoriteMutation.js +22 -0
  140. package/cjs/graphql/operations/CreateFileMutation.js +6 -0
  141. package/cjs/graphql/operations/CreatePaymentSourceMutation.js +6 -0
  142. package/cjs/graphql/operations/CreateProductQuestionAnswerMutation.js +3 -0
  143. package/cjs/graphql/operations/CreateProductQuestionMutation.js +8 -0
  144. package/cjs/graphql/operations/CreateProductReviewMutation.js +18 -0
  145. package/cjs/graphql/operations/CreateReturnMutation.js +22 -0
  146. package/cjs/graphql/operations/DeleteFavoriteMutation.js +3 -0
  147. package/cjs/graphql/operations/DeletePaymentSourceMutation.js +3 -0
  148. package/cjs/graphql/operations/DeleteProductQuestionAnswerMutation.js +3 -0
  149. package/cjs/graphql/operations/DeleteProductQuestionMutation.js +3 -0
  150. package/cjs/graphql/operations/DeleteProductReviewMutation.js +3 -0
  151. package/cjs/graphql/operations/DisconnectOAuth2Mutation.js +3 -0
  152. package/cjs/graphql/operations/EditSubscriptionMutation.js +3 -0
  153. package/cjs/graphql/operations/FileUploadedMutation.js +6 -0
  154. package/cjs/graphql/operations/FlagQuestionAnswerMutation.js +3 -0
  155. package/cjs/graphql/operations/FlagQuestionMutation.js +3 -0
  156. package/cjs/graphql/operations/FlagReviewAnswerMutation.js +3 -0
  157. package/cjs/graphql/operations/FlagReviewMutation.js +3 -0
  158. package/cjs/graphql/operations/GetBrandingQuery.js +10 -0
  159. package/cjs/graphql/operations/GetCartQuery.js +26 -0
  160. package/cjs/graphql/operations/GetCustomerAddressesPageDataQuery.js +16 -0
  161. package/cjs/graphql/operations/GetCustomerBalanceHistoryPageQuery.js +6 -0
  162. package/cjs/graphql/operations/GetCustomerBalanceQuery.js +8 -0
  163. package/cjs/graphql/operations/GetCustomerInfoQuery.js +10 -0
  164. package/cjs/graphql/operations/GetCustomerQuery.js +8 -0
  165. package/cjs/graphql/operations/GetFavoritesQuery.js +22 -0
  166. package/cjs/graphql/operations/GetFileStatusQuery.js +6 -0
  167. package/cjs/graphql/operations/GetGatewaysQuery.js +14 -0
  168. package/cjs/graphql/operations/GetInfoCurrenciesQuery.js +6 -0
  169. package/cjs/graphql/operations/GetLastCartQuery.js +26 -0
  170. package/cjs/graphql/operations/GetOrderQuery.js +30 -0
  171. package/cjs/graphql/operations/GetOrdersPageQuery.js +24 -0
  172. package/cjs/graphql/operations/GetPaymentMethodsPageDataQuery.js +18 -0
  173. package/cjs/graphql/operations/GetProductQuestionsPageQuery.js +10 -0
  174. package/cjs/graphql/operations/GetProductReviewImagesPageQuery.js +8 -0
  175. package/cjs/graphql/operations/GetProductReviewsPageQuery.js +20 -0
  176. package/cjs/graphql/operations/GetProvincesQuery.js +6 -0
  177. package/cjs/graphql/operations/GetQuestionQuery.js +8 -0
  178. package/cjs/graphql/operations/GetReturnCreationInfoQuery.js +36 -0
  179. package/cjs/graphql/operations/GetReturnQuery.js +28 -0
  180. package/cjs/graphql/operations/GetReturnsPageQuery.js +22 -0
  181. package/cjs/graphql/operations/GetReviewDimensionsQuery.js +6 -0
  182. package/cjs/graphql/operations/GetReviewQuery.js +18 -0
  183. package/cjs/graphql/operations/GetReviewSettingsQuery.js +12 -0
  184. package/cjs/graphql/operations/GetShopCurrenciesQuery.js +6 -0
  185. package/cjs/graphql/operations/GetShopQuery.js +8 -0
  186. package/cjs/graphql/operations/GetSubscriptionQuery.js +36 -0
  187. package/cjs/graphql/operations/GetSubscriptionsPageQuery.js +22 -0
  188. package/cjs/graphql/operations/GetVariantPageQuery.js +20 -0
  189. package/cjs/graphql/operations/LoadProductNoCustomerQuery.js +62 -0
  190. package/cjs/graphql/operations/LoadProductQuery.js +66 -0
  191. package/cjs/graphql/operations/ModifyCartMutation.js +26 -0
  192. package/cjs/graphql/operations/ModifyCustomerMutation.js +8 -0
  193. package/cjs/graphql/operations/ModifyFavoriteMutation.js +22 -0
  194. package/cjs/graphql/operations/ModifyProductQuestionAnswerMutation.js +3 -0
  195. package/cjs/graphql/operations/ModifyProductQuestionMutation.js +8 -0
  196. package/cjs/graphql/operations/ModifyProductReviewMutation.js +18 -0
  197. package/cjs/graphql/operations/NewPasswordMutation.js +3 -0
  198. package/cjs/graphql/operations/PauseSubscriptionMutation.js +3 -0
  199. package/cjs/graphql/operations/ResetPasswordMutation.js +3 -0
  200. package/cjs/graphql/operations/ResumeSubscriptionMutation.js +3 -0
  201. package/cjs/graphql/operations/SearchProductsAdvancedQuery.js +24 -0
  202. package/cjs/graphql/operations/SearchProductsQuery.js +20 -0
  203. package/cjs/graphql/operations/SearchQuestionsQuery.js +8 -0
  204. package/cjs/graphql/operations/SearchReviewsQuery.js +18 -0
  205. package/cjs/graphql/operations/SignInMutation.js +3 -0
  206. package/cjs/graphql/operations/SignInViaEmailCompleteMutation.js +3 -0
  207. package/cjs/graphql/operations/SignInViaEmailInitMutation.js +3 -0
  208. package/cjs/graphql/operations/SignUpMutation.js +3 -0
  209. package/cjs/graphql/operations/SkipNextSubscriptionMutation.js +3 -0
  210. package/cjs/graphql/operations/UploadFileMutation.js +3 -0
  211. package/cjs/graphql/operations/VerifyCodeMutation.js +3 -0
  212. package/cjs/graphql/operations/VoteQuestionAnswerMutation.js +3 -0
  213. package/cjs/graphql/operations/VoteQuestionMutation.js +3 -0
  214. package/cjs/graphql/operations/VoteReviewAnswerMutation.js +3 -0
  215. package/cjs/graphql/operations/VoteReviewMutation.js +3 -0
  216. package/cjs/graphql/types.js +2 -0
  217. package/cjs/hierarchicalSearchOption.js +42 -0
  218. package/cjs/idgen.js +8 -0
  219. package/cjs/ignoreQueue.js +50 -0
  220. package/cjs/imageAltProps.js +13 -0
  221. package/cjs/invoiceFormat.js +59 -0
  222. package/cjs/isShippingRequired.js +20 -0
  223. package/cjs/isoStripTrailingZeros.js +7 -0
  224. package/cjs/json/commerce.js +10 -0
  225. package/cjs/json/commerceFileUpload.js +57 -0
  226. package/cjs/json/commerceTypes.js +2 -0
  227. package/cjs/json/common.js +320 -0
  228. package/cjs/json/fetchAllItems.js +61 -0
  229. package/cjs/json/mutator.js +957 -0
  230. package/cjs/json/storefront.js +10 -0
  231. package/cjs/json/storefrontTypes.js +2 -0
  232. package/cjs/lastValue.js +17 -0
  233. package/cjs/lineItemPrice.js +111 -0
  234. package/cjs/loadJWT.js +25 -0
  235. package/cjs/mapInvalidInput.js +33 -0
  236. package/cjs/mapResponseData.js +16 -0
  237. package/cjs/mapResponseMultiData.js +14 -0
  238. package/cjs/meanBy.js +15 -0
  239. package/cjs/media.js +16 -0
  240. package/cjs/modules/advancedSearch.js +127 -0
  241. package/cjs/modules/cart.js +708 -0
  242. package/cjs/modules/config/defaultAdvancedSearchGraphQLConfig.js +8 -0
  243. package/cjs/modules/config/defaultCartGraphQLConfig.js +14 -0
  244. package/cjs/modules/config/defaultProductGraphQLConfig.js +48 -0
  245. package/cjs/modules/config/defaultSearchGraphQLConfig.js +8 -0
  246. package/cjs/modules/customer.js +2174 -0
  247. package/cjs/modules/helpers/cartInitOption.js +22 -0
  248. package/cjs/modules/helpers/cookieConsent.js +33 -0
  249. package/cjs/modules/helpers/customerOauth2.js +64 -0
  250. package/cjs/modules/helpers/getOAuth2Hook.js +52 -0
  251. package/cjs/modules/helpers/hookUpAnalytics.js +49 -0
  252. package/cjs/modules/helpers/loadJWT.js +23 -0
  253. package/cjs/modules/helpers/misc.js +58 -0
  254. package/cjs/modules/imageDialog.js +78 -0
  255. package/cjs/modules/persist.js +55 -0
  256. package/cjs/modules/popupMessage.js +21 -0
  257. package/cjs/modules/product.js +1261 -0
  258. package/cjs/modules/recentlyVisitedProducts.js +72 -0
  259. package/cjs/modules/search.js +102 -0
  260. package/cjs/multiResponseToResponse.js +22 -0
  261. package/cjs/nonNull.js +10 -0
  262. package/cjs/oauthState.js +40 -0
  263. package/cjs/orderShippingAddress.js +7 -0
  264. package/cjs/package.json +3 -0
  265. package/cjs/pender.js +16 -0
  266. package/cjs/percentageOff.js +7 -0
  267. package/cjs/popupConnectQueue.js +62 -0
  268. package/cjs/preact/components/SixDigitInput.js +167 -0
  269. package/cjs/preact/effector.js +74 -0
  270. package/cjs/preact/transition/CSSTransition.js +55 -0
  271. package/cjs/preact/transition/Transition.js +104 -0
  272. package/cjs/preact/translateLocalStatic.js +31 -0
  273. package/cjs/productFiltering.js +173 -0
  274. package/cjs/productSEO.js +51 -0
  275. package/cjs/productSorting.js +93 -0
  276. package/cjs/promiseAll.js +18 -0
  277. package/cjs/promiseLimit.js +38 -0
  278. package/cjs/rdsToInitialScores.js +32 -0
  279. package/cjs/react/components/Portal.js +7 -0
  280. package/cjs/react/components/RootCloseWrapper.js +41 -0
  281. package/cjs/react/components/SixDigitInput.js +167 -0
  282. package/cjs/react/contains.js +14 -0
  283. package/cjs/react/popperBinder.js +70 -0
  284. package/cjs/react/rootClose.js +112 -0
  285. package/cjs/react/translateLocalStatic.js +32 -0
  286. package/cjs/react/useAsyncCachedValue.js +14 -0
  287. package/cjs/refreshTimeout.js +25 -0
  288. package/cjs/remoteAuth.js +59 -0
  289. package/cjs/request.js +348 -0
  290. package/cjs/requestDetails.js +76 -0
  291. package/cjs/rfc3339Normalize.js +10 -0
  292. package/cjs/script.js +172 -0
  293. package/cjs/seo.js +2 -0
  294. package/cjs/shopDomain.js +8 -0
  295. package/cjs/shopLinks.js +63 -0
  296. package/cjs/slate.js +376 -0
  297. package/cjs/sleep.js +10 -0
  298. package/cjs/splitBy.js +21 -0
  299. package/cjs/splitName.js +28 -0
  300. package/cjs/stripZeros.js +13 -0
  301. package/cjs/stripeError.js +65 -0
  302. package/cjs/tailSplit.js +12 -0
  303. package/cjs/tieredPrice.js +32 -0
  304. package/cjs/timeIt.js +15 -0
  305. package/cjs/toMajor.js +8 -0
  306. package/cjs/toMinor.js +8 -0
  307. package/cjs/trace.js +37 -0
  308. package/cjs/translateLocale.js +12 -0
  309. package/cjs/traverse.js +14 -0
  310. package/cjs/truncate.js +21 -0
  311. package/cjs/typedLocalStorage.js +30 -0
  312. package/cjs/variantImage.js +26 -0
  313. package/cjs/variantImageURL.js +13 -0
  314. package/cjs/variantImages.js +19 -0
  315. package/cjs/variantInventory.js +43 -0
  316. package/cjs/variantOptions.js +21 -0
  317. package/cjs/variantPrice.js +96 -0
  318. package/cjs/variantPriceCommerce.js +29 -0
  319. package/cjs/variantTitle.js +9 -0
  320. package/cjs/variantTitleFull.js +11 -0
  321. package/cjs/variantURL.js +9 -0
  322. package/cjs/vendor/popper/index.d.ts +160 -0
  323. package/cjs/vendor/popper/index.js +2657 -0
  324. package/cjs/vendor/popper/index.js.map +1 -0
  325. package/cjs/vendor/popper/package.json +3 -0
  326. package/cjs/websocket.js +179 -0
  327. package/esm/actionLock.js +24 -0
  328. package/esm/addEmptyListItem.js +3 -0
  329. package/esm/aggregateOptions.js +169 -0
  330. package/esm/analytics.js +91 -0
  331. package/esm/analyticsProductData.js +28 -0
  332. package/esm/arrayToDict.js +8 -0
  333. package/esm/asyncModuleWrapper.js +47 -0
  334. package/esm/averageReviewScore.js +40 -0
  335. package/esm/buildconfig.js +13 -0
  336. package/esm/cachedLoader.js +32 -0
  337. package/esm/canonicalVariantURL.js +1 -0
  338. package/esm/cartOperation.js +126 -0
  339. package/esm/categorySEO.js +16 -0
  340. package/esm/commonTypes.js +1 -0
  341. package/esm/compact.js +4 -0
  342. package/esm/configLoader.js +61 -0
  343. package/esm/controlledQueue.js +38 -0
  344. package/esm/convertImageURL.js +15 -0
  345. package/esm/dataLoader.js +192 -0
  346. package/esm/defaultVariant.js +25 -0
  347. package/esm/effector/clearOnChangeAfterDelay.js +13 -0
  348. package/esm/effector/combineEvery.js +4 -0
  349. package/esm/effector/combineSome.js +4 -0
  350. package/esm/effector/debounced.js +14 -0
  351. package/esm/effector/form.js +166 -0
  352. package/esm/effector/hideOnChangeAfterDelay.js +13 -0
  353. package/esm/effector/requestResponse.js +24 -0
  354. package/esm/effector/requestResponseMulti.js +47 -0
  355. package/esm/effector/restoreNamed.js +4 -0
  356. package/esm/effector/split.js +25 -0
  357. package/esm/effector/validator.js +28 -0
  358. package/esm/effector/wrapSignInRequired.js +9 -0
  359. package/esm/exceptions.js +2 -0
  360. package/esm/fetchAllItems.js +44 -0
  361. package/esm/file.js +67 -0
  362. package/esm/fileWebsocket.js +75 -0
  363. package/esm/filterFunc.js +43 -0
  364. package/esm/filterFuncBrand.js +9 -0
  365. package/esm/filterFuncCategory.js +9 -0
  366. package/esm/filterFuncContentBlock.js +16 -0
  367. package/esm/filterFuncCustomer.js +153 -0
  368. package/esm/filterFuncDataFeed.js +50 -0
  369. package/esm/filterFuncOrder.js +325 -0
  370. package/esm/filterFuncPreprocess.js +9 -0
  371. package/esm/filterFuncProduct.js +66 -0
  372. package/esm/filterFuncPurchaseOrder.js +122 -0
  373. package/esm/filterFuncSupplier.js +31 -0
  374. package/esm/filterFuncTransfer.js +130 -0
  375. package/esm/formatAbbrevNumber.js +16 -0
  376. package/esm/formatCurrency.js +42 -0
  377. package/esm/formatToJSX.js +118 -0
  378. package/esm/fulfillmentNumber.js +3 -0
  379. package/esm/generateRandomToken.js +8 -0
  380. package/esm/generateUUID.js +6 -0
  381. package/esm/generated/codes.js +44 -0
  382. package/esm/genericFile.js +65 -0
  383. package/esm/getSalesChannelID.js +9 -0
  384. package/esm/getSessionID.js +9 -0
  385. package/esm/getTimezone.js +8 -0
  386. package/esm/graphql/fragments/Branding.js +1 -0
  387. package/esm/graphql/fragments/BrandingField.js +1 -0
  388. package/esm/graphql/fragments/CartCustomItem.js +1 -0
  389. package/esm/graphql/fragments/CartOrder.js +1 -0
  390. package/esm/graphql/fragments/CartVariant.js +1 -0
  391. package/esm/graphql/fragments/CartVariantFull.js +1 -0
  392. package/esm/graphql/fragments/Category.js +1 -0
  393. package/esm/graphql/fragments/CommonCartVariant.js +1 -0
  394. package/esm/graphql/fragments/Currency.js +1 -0
  395. package/esm/graphql/fragments/CurrencyPrice.js +1 -0
  396. package/esm/graphql/fragments/CustomField.js +1 -0
  397. package/esm/graphql/fragments/CustomFieldObjects.js +1 -0
  398. package/esm/graphql/fragments/Customer.js +1 -0
  399. package/esm/graphql/fragments/CustomerBalance.js +1 -0
  400. package/esm/graphql/fragments/CustomerBalanceHistory.js +1 -0
  401. package/esm/graphql/fragments/CustomerFavorite.js +1 -0
  402. package/esm/graphql/fragments/CustomerFavoriteShort.js +1 -0
  403. package/esm/graphql/fragments/CustomerOAuthProvider.js +1 -0
  404. package/esm/graphql/fragments/CustomerOrderBrief.js +1 -0
  405. package/esm/graphql/fragments/CustomerOrderFulfillment.js +1 -0
  406. package/esm/graphql/fragments/CustomerOrderFull.js +1 -0
  407. package/esm/graphql/fragments/CustomerPaymentSource.js +1 -0
  408. package/esm/graphql/fragments/CustomerReturnBrief.js +1 -0
  409. package/esm/graphql/fragments/CustomerReturnFull.js +1 -0
  410. package/esm/graphql/fragments/CustomerReturnPolicy.js +1 -0
  411. package/esm/graphql/fragments/CustomerSubscriptionBrief.js +1 -0
  412. package/esm/graphql/fragments/CustomerSubscriptionFull.js +1 -0
  413. package/esm/graphql/fragments/File.js +1 -0
  414. package/esm/graphql/fragments/FileForUpload.js +1 -0
  415. package/esm/graphql/fragments/FileNoFallback.js +1 -0
  416. package/esm/graphql/fragments/FullAddress.js +1 -0
  417. package/esm/graphql/fragments/Gateway.js +1 -0
  418. package/esm/graphql/fragments/GatewayManual.js +1 -0
  419. package/esm/graphql/fragments/GatewayPaypal.js +1 -0
  420. package/esm/graphql/fragments/GatewayStripe.js +1 -0
  421. package/esm/graphql/fragments/GatewayTest.js +1 -0
  422. package/esm/graphql/fragments/IPAndUAInfo.js +1 -0
  423. package/esm/graphql/fragments/InfoCountry.js +1 -0
  424. package/esm/graphql/fragments/InfoCountryDedupField.js +1 -0
  425. package/esm/graphql/fragments/InfoCurrency.js +1 -0
  426. package/esm/graphql/fragments/InfoProvince.js +1 -0
  427. package/esm/graphql/fragments/KeyValue.js +1 -0
  428. package/esm/graphql/fragments/LineItemField.js +1 -0
  429. package/esm/graphql/fragments/MediaFile.js +1 -0
  430. package/esm/graphql/fragments/MinCurrencyPrice.js +1 -0
  431. package/esm/graphql/fragments/ProductField.js +1 -0
  432. package/esm/graphql/fragments/ProductFieldSet.js +1 -0
  433. package/esm/graphql/fragments/ProductFlat.js +1 -0
  434. package/esm/graphql/fragments/ProductQuestion.js +1 -0
  435. package/esm/graphql/fragments/ProductQuestionAnswer.js +1 -0
  436. package/esm/graphql/fragments/ProductQuestionPage.js +1 -0
  437. package/esm/graphql/fragments/ProductReview.js +1 -0
  438. package/esm/graphql/fragments/ProductReviewAnswer.js +1 -0
  439. package/esm/graphql/fragments/ProductReviewAverageScore.js +1 -0
  440. package/esm/graphql/fragments/ProductReviewPage.js +1 -0
  441. package/esm/graphql/fragments/ProductReviewScore.js +1 -0
  442. package/esm/graphql/fragments/ProductReviewSurveyAnswer.js +1 -0
  443. package/esm/graphql/fragments/ProductSearchOptionAgg.js +1 -0
  444. package/esm/graphql/fragments/ProductSearchResult.js +1 -0
  445. package/esm/graphql/fragments/ReturnReason.js +1 -0
  446. package/esm/graphql/fragments/ReviewDimension.js +1 -0
  447. package/esm/graphql/fragments/ReviewDimensionSet.js +1 -0
  448. package/esm/graphql/fragments/ReviewImagePage.js +1 -0
  449. package/esm/graphql/fragments/ReviewQuestionProduct.js +1 -0
  450. package/esm/graphql/fragments/ReviewSettings.js +1 -0
  451. package/esm/graphql/fragments/SearchProduct.js +1 -0
  452. package/esm/graphql/fragments/Shop.js +1 -0
  453. package/esm/graphql/fragments/SubscriptionPlan.js +1 -0
  454. package/esm/graphql/fragments/SurveyQuestion.js +1 -0
  455. package/esm/graphql/fragments/TieredPricing.js +1 -0
  456. package/esm/graphql/fragments/TieredPricingTier.js +1 -0
  457. package/esm/graphql/fragments/VariantOption.js +1 -0
  458. package/esm/graphql/operations/ApplyGiftCardMutation.js +1 -0
  459. package/esm/graphql/operations/AuthRequestMutation.js +1 -0
  460. package/esm/graphql/operations/CancelOrderMutation.js +1 -0
  461. package/esm/graphql/operations/CancelSubscriptionMutation.js +1 -0
  462. package/esm/graphql/operations/ConnectOAuth2Mutation.js +1 -0
  463. package/esm/graphql/operations/CreateCartMutation.js +23 -0
  464. package/esm/graphql/operations/CreateFavoriteMutation.js +19 -0
  465. package/esm/graphql/operations/CreateFileMutation.js +3 -0
  466. package/esm/graphql/operations/CreatePaymentSourceMutation.js +3 -0
  467. package/esm/graphql/operations/CreateProductQuestionAnswerMutation.js +1 -0
  468. package/esm/graphql/operations/CreateProductQuestionMutation.js +5 -0
  469. package/esm/graphql/operations/CreateProductReviewMutation.js +15 -0
  470. package/esm/graphql/operations/CreateReturnMutation.js +19 -0
  471. package/esm/graphql/operations/DeleteFavoriteMutation.js +1 -0
  472. package/esm/graphql/operations/DeletePaymentSourceMutation.js +1 -0
  473. package/esm/graphql/operations/DeleteProductQuestionAnswerMutation.js +1 -0
  474. package/esm/graphql/operations/DeleteProductQuestionMutation.js +1 -0
  475. package/esm/graphql/operations/DeleteProductReviewMutation.js +1 -0
  476. package/esm/graphql/operations/DisconnectOAuth2Mutation.js +1 -0
  477. package/esm/graphql/operations/EditSubscriptionMutation.js +1 -0
  478. package/esm/graphql/operations/FileUploadedMutation.js +3 -0
  479. package/esm/graphql/operations/FlagQuestionAnswerMutation.js +1 -0
  480. package/esm/graphql/operations/FlagQuestionMutation.js +1 -0
  481. package/esm/graphql/operations/FlagReviewAnswerMutation.js +1 -0
  482. package/esm/graphql/operations/FlagReviewMutation.js +1 -0
  483. package/esm/graphql/operations/GetBrandingQuery.js +7 -0
  484. package/esm/graphql/operations/GetCartQuery.js +23 -0
  485. package/esm/graphql/operations/GetCustomerAddressesPageDataQuery.js +13 -0
  486. package/esm/graphql/operations/GetCustomerBalanceHistoryPageQuery.js +3 -0
  487. package/esm/graphql/operations/GetCustomerBalanceQuery.js +5 -0
  488. package/esm/graphql/operations/GetCustomerInfoQuery.js +7 -0
  489. package/esm/graphql/operations/GetCustomerQuery.js +5 -0
  490. package/esm/graphql/operations/GetFavoritesQuery.js +19 -0
  491. package/esm/graphql/operations/GetFileStatusQuery.js +3 -0
  492. package/esm/graphql/operations/GetGatewaysQuery.js +11 -0
  493. package/esm/graphql/operations/GetInfoCurrenciesQuery.js +3 -0
  494. package/esm/graphql/operations/GetLastCartQuery.js +23 -0
  495. package/esm/graphql/operations/GetOrderQuery.js +27 -0
  496. package/esm/graphql/operations/GetOrdersPageQuery.js +21 -0
  497. package/esm/graphql/operations/GetPaymentMethodsPageDataQuery.js +15 -0
  498. package/esm/graphql/operations/GetProductQuestionsPageQuery.js +7 -0
  499. package/esm/graphql/operations/GetProductReviewImagesPageQuery.js +5 -0
  500. package/esm/graphql/operations/GetProductReviewsPageQuery.js +17 -0
  501. package/esm/graphql/operations/GetProvincesQuery.js +3 -0
  502. package/esm/graphql/operations/GetQuestionQuery.js +5 -0
  503. package/esm/graphql/operations/GetReturnCreationInfoQuery.js +33 -0
  504. package/esm/graphql/operations/GetReturnQuery.js +25 -0
  505. package/esm/graphql/operations/GetReturnsPageQuery.js +19 -0
  506. package/esm/graphql/operations/GetReviewDimensionsQuery.js +3 -0
  507. package/esm/graphql/operations/GetReviewQuery.js +15 -0
  508. package/esm/graphql/operations/GetReviewSettingsQuery.js +9 -0
  509. package/esm/graphql/operations/GetShopCurrenciesQuery.js +3 -0
  510. package/esm/graphql/operations/GetShopQuery.js +5 -0
  511. package/esm/graphql/operations/GetSubscriptionQuery.js +33 -0
  512. package/esm/graphql/operations/GetSubscriptionsPageQuery.js +19 -0
  513. package/esm/graphql/operations/GetVariantPageQuery.js +17 -0
  514. package/esm/graphql/operations/LoadProductNoCustomerQuery.js +59 -0
  515. package/esm/graphql/operations/LoadProductQuery.js +63 -0
  516. package/esm/graphql/operations/ModifyCartMutation.js +23 -0
  517. package/esm/graphql/operations/ModifyCustomerMutation.js +5 -0
  518. package/esm/graphql/operations/ModifyFavoriteMutation.js +19 -0
  519. package/esm/graphql/operations/ModifyProductQuestionAnswerMutation.js +1 -0
  520. package/esm/graphql/operations/ModifyProductQuestionMutation.js +5 -0
  521. package/esm/graphql/operations/ModifyProductReviewMutation.js +15 -0
  522. package/esm/graphql/operations/NewPasswordMutation.js +1 -0
  523. package/esm/graphql/operations/PauseSubscriptionMutation.js +1 -0
  524. package/esm/graphql/operations/ResetPasswordMutation.js +1 -0
  525. package/esm/graphql/operations/ResumeSubscriptionMutation.js +1 -0
  526. package/esm/graphql/operations/SearchProductsAdvancedQuery.js +21 -0
  527. package/esm/graphql/operations/SearchProductsQuery.js +17 -0
  528. package/esm/graphql/operations/SearchQuestionsQuery.js +5 -0
  529. package/esm/graphql/operations/SearchReviewsQuery.js +15 -0
  530. package/esm/graphql/operations/SignInMutation.js +1 -0
  531. package/esm/graphql/operations/SignInViaEmailCompleteMutation.js +1 -0
  532. package/esm/graphql/operations/SignInViaEmailInitMutation.js +1 -0
  533. package/esm/graphql/operations/SignUpMutation.js +1 -0
  534. package/esm/graphql/operations/SkipNextSubscriptionMutation.js +1 -0
  535. package/esm/graphql/operations/UploadFileMutation.js +1 -0
  536. package/esm/graphql/operations/VerifyCodeMutation.js +1 -0
  537. package/esm/graphql/operations/VoteQuestionAnswerMutation.js +1 -0
  538. package/esm/graphql/operations/VoteQuestionMutation.js +1 -0
  539. package/esm/graphql/operations/VoteReviewAnswerMutation.js +1 -0
  540. package/esm/graphql/operations/VoteReviewMutation.js +1 -0
  541. package/esm/graphql/types.js +1 -0
  542. package/esm/hierarchicalSearchOption.js +43 -0
  543. package/esm/idgen.js +4 -0
  544. package/esm/ignoreQueue.js +45 -0
  545. package/esm/imageAltProps.js +9 -0
  546. package/esm/invoiceFormat.js +54 -0
  547. package/esm/isShippingRequired.js +16 -0
  548. package/esm/isoStripTrailingZeros.js +3 -0
  549. package/esm/json/commerce.js +3 -0
  550. package/esm/json/commerceFileUpload.js +43 -0
  551. package/esm/json/commerceTypes.js +1 -0
  552. package/esm/json/common.js +309 -0
  553. package/esm/json/fetchAllItems.js +51 -0
  554. package/esm/json/mutator.js +952 -0
  555. package/esm/json/storefront.js +3 -0
  556. package/esm/json/storefrontTypes.js +1 -0
  557. package/esm/lastValue.js +12 -0
  558. package/esm/lineItemPrice.js +106 -0
  559. package/esm/loadJWT.js +20 -0
  560. package/esm/mapInvalidInput.js +27 -0
  561. package/esm/mapResponseData.js +11 -0
  562. package/esm/mapResponseMultiData.js +10 -0
  563. package/esm/meanBy.js +11 -0
  564. package/esm/media.js +12 -0
  565. package/esm/modules/advancedSearch.js +132 -0
  566. package/esm/modules/cart.js +699 -0
  567. package/esm/modules/config/defaultAdvancedSearchGraphQLConfig.js +4 -0
  568. package/esm/modules/config/defaultCartGraphQLConfig.js +10 -0
  569. package/esm/modules/config/defaultProductGraphQLConfig.js +44 -0
  570. package/esm/modules/config/defaultSearchGraphQLConfig.js +4 -0
  571. package/esm/modules/customer.js +2198 -0
  572. package/esm/modules/helpers/cartInitOption.js +18 -0
  573. package/esm/modules/helpers/cookieConsent.js +29 -0
  574. package/esm/modules/helpers/customerOauth2.js +53 -0
  575. package/esm/modules/helpers/getOAuth2Hook.js +48 -0
  576. package/esm/modules/helpers/hookUpAnalytics.js +44 -0
  577. package/esm/modules/helpers/loadJWT.js +18 -0
  578. package/esm/modules/helpers/misc.js +49 -0
  579. package/esm/modules/imageDialog.js +71 -0
  580. package/esm/modules/persist.js +49 -0
  581. package/esm/modules/popupMessage.js +17 -0
  582. package/esm/modules/product.js +1278 -0
  583. package/esm/modules/recentlyVisitedProducts.js +70 -0
  584. package/esm/modules/search.js +103 -0
  585. package/esm/multiResponseToResponse.js +18 -0
  586. package/esm/nonNull.js +6 -0
  587. package/esm/oauthState.js +35 -0
  588. package/esm/orderShippingAddress.js +3 -0
  589. package/esm/package.json +3 -0
  590. package/esm/pender.js +11 -0
  591. package/esm/percentageOff.js +3 -0
  592. package/esm/popupConnectQueue.js +55 -0
  593. package/esm/preact/components/SixDigitInput.js +159 -0
  594. package/esm/preact/effector.js +69 -0
  595. package/esm/preact/transition/CSSTransition.js +47 -0
  596. package/esm/preact/transition/Transition.js +100 -0
  597. package/esm/preact/translateLocalStatic.js +26 -0
  598. package/esm/productFiltering.js +164 -0
  599. package/esm/productSEO.js +46 -0
  600. package/esm/productSorting.js +89 -0
  601. package/esm/promiseAll.js +11 -0
  602. package/esm/promiseLimit.js +32 -0
  603. package/esm/rdsToInitialScores.js +27 -0
  604. package/esm/react/components/Portal.js +2 -0
  605. package/esm/react/components/RootCloseWrapper.js +33 -0
  606. package/esm/react/components/SixDigitInput.js +158 -0
  607. package/esm/react/contains.js +10 -0
  608. package/esm/react/popperBinder.js +71 -0
  609. package/esm/react/rootClose.js +106 -0
  610. package/esm/react/translateLocalStatic.js +26 -0
  611. package/esm/react/useAsyncCachedValue.js +10 -0
  612. package/esm/refreshTimeout.js +21 -0
  613. package/esm/remoteAuth.js +52 -0
  614. package/esm/request.js +323 -0
  615. package/esm/requestDetails.js +69 -0
  616. package/esm/rfc3339Normalize.js +6 -0
  617. package/esm/script.js +157 -0
  618. package/esm/seo.js +1 -0
  619. package/esm/shopDomain.js +4 -0
  620. package/esm/shopLinks.js +47 -0
  621. package/esm/slate.js +364 -0
  622. package/esm/sleep.js +3 -0
  623. package/esm/splitBy.js +17 -0
  624. package/esm/splitName.js +22 -0
  625. package/esm/stripZeros.js +9 -0
  626. package/esm/stripeError.js +53 -0
  627. package/esm/tailSplit.js +8 -0
  628. package/esm/tieredPrice.js +28 -0
  629. package/esm/timeIt.js +8 -0
  630. package/esm/toMajor.js +4 -0
  631. package/esm/toMinor.js +4 -0
  632. package/esm/trace.js +37 -0
  633. package/esm/translateLocale.js +7 -0
  634. package/esm/traverse.js +10 -0
  635. package/esm/truncate.js +17 -0
  636. package/esm/typedLocalStorage.js +24 -0
  637. package/esm/variantImage.js +22 -0
  638. package/esm/variantImageURL.js +9 -0
  639. package/esm/variantImages.js +15 -0
  640. package/esm/variantInventory.js +38 -0
  641. package/esm/variantOptions.js +15 -0
  642. package/esm/variantPrice.js +92 -0
  643. package/esm/variantPriceCommerce.js +25 -0
  644. package/esm/variantTitle.js +5 -0
  645. package/esm/variantTitleFull.js +7 -0
  646. package/esm/variantURL.js +5 -0
  647. package/esm/vendor/popper/index.d.ts +160 -0
  648. package/esm/vendor/popper/index.js +2657 -0
  649. package/esm/vendor/popper/index.js.map +1 -0
  650. package/esm/vendor/popper/package.json +3 -0
  651. package/esm/websocket.js +169 -0
  652. package/package.json +92 -0
  653. package/types/actionLock.d.ts +7 -0
  654. package/types/addEmptyListItem.d.ts +2 -0
  655. package/types/aggregateOptions.d.ts +33 -0
  656. package/types/analytics.d.ts +23 -0
  657. package/types/analyticsProductData.d.ts +38 -0
  658. package/types/arrayToDict.d.ts +2 -0
  659. package/types/asyncModuleWrapper.d.ts +13 -0
  660. package/types/averageReviewScore.d.ts +28 -0
  661. package/types/buildconfig.d.ts +13 -0
  662. package/types/cachedLoader.d.ts +10 -0
  663. package/types/canonicalVariantURL.d.ts +12 -0
  664. package/types/cartOperation.d.ts +28 -0
  665. package/types/categorySEO.d.ts +17 -0
  666. package/types/commonTypes.d.ts +10 -0
  667. package/types/compact.d.ts +1 -0
  668. package/types/configLoader.d.ts +53 -0
  669. package/types/controlledQueue.d.ts +17 -0
  670. package/types/convertImageURL.d.ts +9 -0
  671. package/types/dataLoader.d.ts +301 -0
  672. package/types/defaultVariant.d.ts +9 -0
  673. package/types/effector/clearOnChangeAfterDelay.d.ts +2 -0
  674. package/types/effector/combineEvery.d.ts +2 -0
  675. package/types/effector/combineSome.d.ts +2 -0
  676. package/types/effector/debounced.d.ts +2 -0
  677. package/types/effector/form.d.ts +74 -0
  678. package/types/effector/hideOnChangeAfterDelay.d.ts +6 -0
  679. package/types/effector/requestResponse.d.ts +9 -0
  680. package/types/effector/requestResponseMulti.d.ts +7 -0
  681. package/types/effector/restoreNamed.d.ts +2 -0
  682. package/types/effector/split.d.ts +7 -0
  683. package/types/effector/validator.d.ts +14 -0
  684. package/types/effector/wrapSignInRequired.d.ts +2 -0
  685. package/types/exceptions.d.ts +2 -0
  686. package/types/fetchAllItems.d.ts +25 -0
  687. package/types/file.d.ts +4 -0
  688. package/types/fileWebsocket.d.ts +6 -0
  689. package/types/filterFunc.d.ts +8 -0
  690. package/types/filterFuncBrand.d.ts +3 -0
  691. package/types/filterFuncCategory.d.ts +3 -0
  692. package/types/filterFuncContentBlock.d.ts +3 -0
  693. package/types/filterFuncCustomer.d.ts +3 -0
  694. package/types/filterFuncDataFeed.d.ts +8 -0
  695. package/types/filterFuncOrder.d.ts +3 -0
  696. package/types/filterFuncPreprocess.d.ts +2 -0
  697. package/types/filterFuncProduct.d.ts +3 -0
  698. package/types/filterFuncPurchaseOrder.d.ts +3 -0
  699. package/types/filterFuncSupplier.d.ts +3 -0
  700. package/types/filterFuncTransfer.d.ts +3 -0
  701. package/types/formatAbbrevNumber.d.ts +6 -0
  702. package/types/formatCurrency.d.ts +44 -0
  703. package/types/formatToJSX.d.ts +24 -0
  704. package/types/fulfillmentNumber.d.ts +1 -0
  705. package/types/generateRandomToken.d.ts +1 -0
  706. package/types/generateUUID.d.ts +1 -0
  707. package/types/generated/codes.d.ts +234 -0
  708. package/types/genericFile.d.ts +57 -0
  709. package/types/getSalesChannelID.d.ts +1 -0
  710. package/types/getSessionID.d.ts +1 -0
  711. package/types/getTimezone.d.ts +1 -0
  712. package/types/graphql/fragments/Branding.d.ts +2 -0
  713. package/types/graphql/fragments/BrandingField.d.ts +2 -0
  714. package/types/graphql/fragments/CartCustomItem.d.ts +2 -0
  715. package/types/graphql/fragments/CartOrder.d.ts +2 -0
  716. package/types/graphql/fragments/CartVariant.d.ts +2 -0
  717. package/types/graphql/fragments/CartVariantFull.d.ts +2 -0
  718. package/types/graphql/fragments/Category.d.ts +2 -0
  719. package/types/graphql/fragments/CommonCartVariant.d.ts +2 -0
  720. package/types/graphql/fragments/Currency.d.ts +2 -0
  721. package/types/graphql/fragments/CurrencyPrice.d.ts +2 -0
  722. package/types/graphql/fragments/CustomField.d.ts +2 -0
  723. package/types/graphql/fragments/CustomFieldObjects.d.ts +2 -0
  724. package/types/graphql/fragments/Customer.d.ts +2 -0
  725. package/types/graphql/fragments/CustomerBalance.d.ts +2 -0
  726. package/types/graphql/fragments/CustomerBalanceHistory.d.ts +2 -0
  727. package/types/graphql/fragments/CustomerFavorite.d.ts +2 -0
  728. package/types/graphql/fragments/CustomerFavoriteShort.d.ts +2 -0
  729. package/types/graphql/fragments/CustomerOAuthProvider.d.ts +2 -0
  730. package/types/graphql/fragments/CustomerOrderBrief.d.ts +2 -0
  731. package/types/graphql/fragments/CustomerOrderFulfillment.d.ts +2 -0
  732. package/types/graphql/fragments/CustomerOrderFull.d.ts +2 -0
  733. package/types/graphql/fragments/CustomerPaymentSource.d.ts +2 -0
  734. package/types/graphql/fragments/CustomerReturnBrief.d.ts +2 -0
  735. package/types/graphql/fragments/CustomerReturnFull.d.ts +2 -0
  736. package/types/graphql/fragments/CustomerReturnPolicy.d.ts +2 -0
  737. package/types/graphql/fragments/CustomerSubscriptionBrief.d.ts +2 -0
  738. package/types/graphql/fragments/CustomerSubscriptionFull.d.ts +2 -0
  739. package/types/graphql/fragments/File.d.ts +2 -0
  740. package/types/graphql/fragments/FileForUpload.d.ts +2 -0
  741. package/types/graphql/fragments/FileNoFallback.d.ts +2 -0
  742. package/types/graphql/fragments/FullAddress.d.ts +2 -0
  743. package/types/graphql/fragments/Gateway.d.ts +2 -0
  744. package/types/graphql/fragments/GatewayManual.d.ts +2 -0
  745. package/types/graphql/fragments/GatewayPaypal.d.ts +2 -0
  746. package/types/graphql/fragments/GatewayStripe.d.ts +2 -0
  747. package/types/graphql/fragments/GatewayTest.d.ts +2 -0
  748. package/types/graphql/fragments/IPAndUAInfo.d.ts +2 -0
  749. package/types/graphql/fragments/InfoCountry.d.ts +2 -0
  750. package/types/graphql/fragments/InfoCountryDedupField.d.ts +2 -0
  751. package/types/graphql/fragments/InfoCurrency.d.ts +2 -0
  752. package/types/graphql/fragments/InfoProvince.d.ts +2 -0
  753. package/types/graphql/fragments/KeyValue.d.ts +2 -0
  754. package/types/graphql/fragments/LineItemField.d.ts +2 -0
  755. package/types/graphql/fragments/MediaFile.d.ts +2 -0
  756. package/types/graphql/fragments/MinCurrencyPrice.d.ts +2 -0
  757. package/types/graphql/fragments/ProductField.d.ts +2 -0
  758. package/types/graphql/fragments/ProductFieldSet.d.ts +2 -0
  759. package/types/graphql/fragments/ProductFlat.d.ts +2 -0
  760. package/types/graphql/fragments/ProductQuestion.d.ts +2 -0
  761. package/types/graphql/fragments/ProductQuestionAnswer.d.ts +2 -0
  762. package/types/graphql/fragments/ProductQuestionPage.d.ts +2 -0
  763. package/types/graphql/fragments/ProductReview.d.ts +2 -0
  764. package/types/graphql/fragments/ProductReviewAnswer.d.ts +2 -0
  765. package/types/graphql/fragments/ProductReviewAverageScore.d.ts +2 -0
  766. package/types/graphql/fragments/ProductReviewPage.d.ts +2 -0
  767. package/types/graphql/fragments/ProductReviewScore.d.ts +2 -0
  768. package/types/graphql/fragments/ProductReviewSurveyAnswer.d.ts +2 -0
  769. package/types/graphql/fragments/ProductSearchOptionAgg.d.ts +2 -0
  770. package/types/graphql/fragments/ProductSearchResult.d.ts +2 -0
  771. package/types/graphql/fragments/ReturnReason.d.ts +2 -0
  772. package/types/graphql/fragments/ReviewDimension.d.ts +2 -0
  773. package/types/graphql/fragments/ReviewDimensionSet.d.ts +2 -0
  774. package/types/graphql/fragments/ReviewImagePage.d.ts +2 -0
  775. package/types/graphql/fragments/ReviewQuestionProduct.d.ts +2 -0
  776. package/types/graphql/fragments/ReviewSettings.d.ts +2 -0
  777. package/types/graphql/fragments/SearchProduct.d.ts +2 -0
  778. package/types/graphql/fragments/Shop.d.ts +2 -0
  779. package/types/graphql/fragments/SubscriptionPlan.d.ts +2 -0
  780. package/types/graphql/fragments/SurveyQuestion.d.ts +2 -0
  781. package/types/graphql/fragments/TieredPricing.d.ts +2 -0
  782. package/types/graphql/fragments/TieredPricingTier.d.ts +2 -0
  783. package/types/graphql/fragments/VariantOption.d.ts +2 -0
  784. package/types/graphql/operations/ApplyGiftCardMutation.d.ts +3 -0
  785. package/types/graphql/operations/AuthRequestMutation.d.ts +3 -0
  786. package/types/graphql/operations/CancelOrderMutation.d.ts +3 -0
  787. package/types/graphql/operations/CancelSubscriptionMutation.d.ts +3 -0
  788. package/types/graphql/operations/ConnectOAuth2Mutation.d.ts +3 -0
  789. package/types/graphql/operations/CreateCartMutation.d.ts +3 -0
  790. package/types/graphql/operations/CreateFavoriteMutation.d.ts +3 -0
  791. package/types/graphql/operations/CreateFileMutation.d.ts +3 -0
  792. package/types/graphql/operations/CreatePaymentSourceMutation.d.ts +3 -0
  793. package/types/graphql/operations/CreateProductQuestionAnswerMutation.d.ts +3 -0
  794. package/types/graphql/operations/CreateProductQuestionMutation.d.ts +3 -0
  795. package/types/graphql/operations/CreateProductReviewMutation.d.ts +3 -0
  796. package/types/graphql/operations/CreateReturnMutation.d.ts +3 -0
  797. package/types/graphql/operations/DeleteFavoriteMutation.d.ts +3 -0
  798. package/types/graphql/operations/DeletePaymentSourceMutation.d.ts +3 -0
  799. package/types/graphql/operations/DeleteProductQuestionAnswerMutation.d.ts +3 -0
  800. package/types/graphql/operations/DeleteProductQuestionMutation.d.ts +3 -0
  801. package/types/graphql/operations/DeleteProductReviewMutation.d.ts +3 -0
  802. package/types/graphql/operations/DisconnectOAuth2Mutation.d.ts +3 -0
  803. package/types/graphql/operations/EditSubscriptionMutation.d.ts +3 -0
  804. package/types/graphql/operations/FileUploadedMutation.d.ts +3 -0
  805. package/types/graphql/operations/FlagQuestionAnswerMutation.d.ts +3 -0
  806. package/types/graphql/operations/FlagQuestionMutation.d.ts +3 -0
  807. package/types/graphql/operations/FlagReviewAnswerMutation.d.ts +3 -0
  808. package/types/graphql/operations/FlagReviewMutation.d.ts +3 -0
  809. package/types/graphql/operations/GetBrandingQuery.d.ts +3 -0
  810. package/types/graphql/operations/GetCartQuery.d.ts +3 -0
  811. package/types/graphql/operations/GetCustomerAddressesPageDataQuery.d.ts +3 -0
  812. package/types/graphql/operations/GetCustomerBalanceHistoryPageQuery.d.ts +3 -0
  813. package/types/graphql/operations/GetCustomerBalanceQuery.d.ts +3 -0
  814. package/types/graphql/operations/GetCustomerInfoQuery.d.ts +3 -0
  815. package/types/graphql/operations/GetCustomerQuery.d.ts +3 -0
  816. package/types/graphql/operations/GetFavoritesQuery.d.ts +3 -0
  817. package/types/graphql/operations/GetFileStatusQuery.d.ts +3 -0
  818. package/types/graphql/operations/GetGatewaysQuery.d.ts +3 -0
  819. package/types/graphql/operations/GetInfoCurrenciesQuery.d.ts +3 -0
  820. package/types/graphql/operations/GetLastCartQuery.d.ts +3 -0
  821. package/types/graphql/operations/GetOrderQuery.d.ts +3 -0
  822. package/types/graphql/operations/GetOrdersPageQuery.d.ts +3 -0
  823. package/types/graphql/operations/GetPaymentMethodsPageDataQuery.d.ts +3 -0
  824. package/types/graphql/operations/GetProductQuestionsPageQuery.d.ts +3 -0
  825. package/types/graphql/operations/GetProductReviewImagesPageQuery.d.ts +3 -0
  826. package/types/graphql/operations/GetProductReviewsPageQuery.d.ts +3 -0
  827. package/types/graphql/operations/GetProvincesQuery.d.ts +3 -0
  828. package/types/graphql/operations/GetQuestionQuery.d.ts +3 -0
  829. package/types/graphql/operations/GetReturnCreationInfoQuery.d.ts +3 -0
  830. package/types/graphql/operations/GetReturnQuery.d.ts +3 -0
  831. package/types/graphql/operations/GetReturnsPageQuery.d.ts +3 -0
  832. package/types/graphql/operations/GetReviewDimensionsQuery.d.ts +3 -0
  833. package/types/graphql/operations/GetReviewQuery.d.ts +3 -0
  834. package/types/graphql/operations/GetReviewSettingsQuery.d.ts +3 -0
  835. package/types/graphql/operations/GetShopCurrenciesQuery.d.ts +3 -0
  836. package/types/graphql/operations/GetShopQuery.d.ts +3 -0
  837. package/types/graphql/operations/GetSubscriptionQuery.d.ts +3 -0
  838. package/types/graphql/operations/GetSubscriptionsPageQuery.d.ts +3 -0
  839. package/types/graphql/operations/GetVariantPageQuery.d.ts +3 -0
  840. package/types/graphql/operations/LoadProductNoCustomerQuery.d.ts +3 -0
  841. package/types/graphql/operations/LoadProductQuery.d.ts +3 -0
  842. package/types/graphql/operations/ModifyCartMutation.d.ts +3 -0
  843. package/types/graphql/operations/ModifyCustomerMutation.d.ts +3 -0
  844. package/types/graphql/operations/ModifyFavoriteMutation.d.ts +3 -0
  845. package/types/graphql/operations/ModifyProductQuestionAnswerMutation.d.ts +3 -0
  846. package/types/graphql/operations/ModifyProductQuestionMutation.d.ts +3 -0
  847. package/types/graphql/operations/ModifyProductReviewMutation.d.ts +3 -0
  848. package/types/graphql/operations/NewPasswordMutation.d.ts +3 -0
  849. package/types/graphql/operations/PauseSubscriptionMutation.d.ts +3 -0
  850. package/types/graphql/operations/ResetPasswordMutation.d.ts +3 -0
  851. package/types/graphql/operations/ResumeSubscriptionMutation.d.ts +3 -0
  852. package/types/graphql/operations/SearchProductsAdvancedQuery.d.ts +3 -0
  853. package/types/graphql/operations/SearchProductsQuery.d.ts +3 -0
  854. package/types/graphql/operations/SearchQuestionsQuery.d.ts +3 -0
  855. package/types/graphql/operations/SearchReviewsQuery.d.ts +3 -0
  856. package/types/graphql/operations/SignInMutation.d.ts +3 -0
  857. package/types/graphql/operations/SignInViaEmailCompleteMutation.d.ts +3 -0
  858. package/types/graphql/operations/SignInViaEmailInitMutation.d.ts +3 -0
  859. package/types/graphql/operations/SignUpMutation.d.ts +3 -0
  860. package/types/graphql/operations/SkipNextSubscriptionMutation.d.ts +3 -0
  861. package/types/graphql/operations/UploadFileMutation.d.ts +3 -0
  862. package/types/graphql/operations/VerifyCodeMutation.d.ts +3 -0
  863. package/types/graphql/operations/VoteQuestionAnswerMutation.d.ts +3 -0
  864. package/types/graphql/operations/VoteQuestionMutation.d.ts +3 -0
  865. package/types/graphql/operations/VoteReviewAnswerMutation.d.ts +3 -0
  866. package/types/graphql/operations/VoteReviewMutation.d.ts +3 -0
  867. package/types/graphql/types.d.ts +2471 -0
  868. package/types/hierarchicalSearchOption.d.ts +14 -0
  869. package/types/idgen.d.ts +1 -0
  870. package/types/ignoreQueue.d.ts +10 -0
  871. package/types/imageAltProps.d.ts +11 -0
  872. package/types/invoiceFormat.d.ts +32 -0
  873. package/types/isShippingRequired.d.ts +14 -0
  874. package/types/isoStripTrailingZeros.d.ts +1 -0
  875. package/types/json/commerce.d.ts +3 -0
  876. package/types/json/commerceFileUpload.d.ts +20 -0
  877. package/types/json/commerceTypes.d.ts +15422 -0
  878. package/types/json/common.d.ts +81 -0
  879. package/types/json/fetchAllItems.d.ts +15 -0
  880. package/types/json/mutator.d.ts +238 -0
  881. package/types/json/storefront.d.ts +3 -0
  882. package/types/json/storefrontTypes.d.ts +5059 -0
  883. package/types/lastValue.d.ts +10 -0
  884. package/types/lineItemPrice.d.ts +18 -0
  885. package/types/loadJWT.d.ts +1 -0
  886. package/types/mapInvalidInput.d.ts +15 -0
  887. package/types/mapResponseData.d.ts +3 -0
  888. package/types/mapResponseMultiData.d.ts +2 -0
  889. package/types/meanBy.d.ts +1 -0
  890. package/types/media.d.ts +3 -0
  891. package/types/modules/advancedSearch.d.ts +78 -0
  892. package/types/modules/cart.d.ts +263 -0
  893. package/types/modules/config/defaultAdvancedSearchGraphQLConfig.d.ts +3 -0
  894. package/types/modules/config/defaultCartGraphQLConfig.d.ts +6 -0
  895. package/types/modules/config/defaultProductGraphQLConfig.d.ts +23 -0
  896. package/types/modules/config/defaultSearchGraphQLConfig.d.ts +3 -0
  897. package/types/modules/customer.d.ts +624 -0
  898. package/types/modules/helpers/cartInitOption.d.ts +2 -0
  899. package/types/modules/helpers/cookieConsent.d.ts +4 -0
  900. package/types/modules/helpers/customerOauth2.d.ts +19 -0
  901. package/types/modules/helpers/getOAuth2Hook.d.ts +22 -0
  902. package/types/modules/helpers/hookUpAnalytics.d.ts +21 -0
  903. package/types/modules/helpers/loadJWT.d.ts +1 -0
  904. package/types/modules/helpers/misc.d.ts +14 -0
  905. package/types/modules/imageDialog.d.ts +31 -0
  906. package/types/modules/persist.d.ts +13 -0
  907. package/types/modules/popupMessage.d.ts +9 -0
  908. package/types/modules/product.d.ts +320 -0
  909. package/types/modules/recentlyVisitedProducts.d.ts +25 -0
  910. package/types/modules/search.d.ts +54 -0
  911. package/types/multiResponseToResponse.d.ts +2 -0
  912. package/types/nonNull.d.ts +1 -0
  913. package/types/oauthState.d.ts +3 -0
  914. package/types/orderShippingAddress.d.ts +6 -0
  915. package/types/pender.d.ts +5 -0
  916. package/types/percentageOff.d.ts +1 -0
  917. package/types/popupConnectQueue.d.ts +41 -0
  918. package/types/preact/components/SixDigitInput.d.ts +28 -0
  919. package/types/preact/effector.d.ts +8 -0
  920. package/types/preact/transition/CSSTransition.d.ts +8 -0
  921. package/types/preact/transition/Transition.d.ts +30 -0
  922. package/types/preact/translateLocalStatic.d.ts +4 -0
  923. package/types/productFiltering.d.ts +58 -0
  924. package/types/productSEO.d.ts +59 -0
  925. package/types/productSorting.d.ts +35 -0
  926. package/types/promiseAll.d.ts +5 -0
  927. package/types/promiseLimit.d.ts +13 -0
  928. package/types/rdsToInitialScores.d.ts +26 -0
  929. package/types/react/components/Portal.d.ts +2 -0
  930. package/types/react/components/RootCloseWrapper.d.ts +18 -0
  931. package/types/react/components/SixDigitInput.d.ts +27 -0
  932. package/types/react/contains.d.ts +1 -0
  933. package/types/react/popperBinder.d.ts +23 -0
  934. package/types/react/rootClose.d.ts +18 -0
  935. package/types/react/translateLocalStatic.d.ts +4 -0
  936. package/types/react/useAsyncCachedValue.d.ts +2 -0
  937. package/types/refreshTimeout.d.ts +5 -0
  938. package/types/remoteAuth.d.ts +14 -0
  939. package/types/request.d.ts +104 -0
  940. package/types/requestDetails.d.ts +16 -0
  941. package/types/rfc3339Normalize.d.ts +1 -0
  942. package/types/script.d.ts +36 -0
  943. package/types/seo.d.ts +5 -0
  944. package/types/shopDomain.d.ts +7 -0
  945. package/types/shopLinks.d.ts +14 -0
  946. package/types/slate.d.ts +47 -0
  947. package/types/sleep.d.ts +1 -0
  948. package/types/splitBy.d.ts +1 -0
  949. package/types/splitName.d.ts +2 -0
  950. package/types/stripZeros.d.ts +1 -0
  951. package/types/stripeError.d.ts +14 -0
  952. package/types/tailSplit.d.ts +1 -0
  953. package/types/tieredPrice.d.ts +2 -0
  954. package/types/timeIt.d.ts +1 -0
  955. package/types/toMajor.d.ts +8 -0
  956. package/types/toMinor.d.ts +8 -0
  957. package/types/trace.d.ts +17 -0
  958. package/types/translateLocale.d.ts +2 -0
  959. package/types/traverse.d.ts +1 -0
  960. package/types/truncate.d.ts +7 -0
  961. package/types/typedLocalStorage.d.ts +3 -0
  962. package/types/variantImage.d.ts +16 -0
  963. package/types/variantImageURL.d.ts +25 -0
  964. package/types/variantImages.d.ts +11 -0
  965. package/types/variantInventory.d.ts +14 -0
  966. package/types/variantOptions.d.ts +18 -0
  967. package/types/variantPrice.d.ts +37 -0
  968. package/types/variantPriceCommerce.d.ts +26 -0
  969. package/types/variantTitle.d.ts +7 -0
  970. package/types/variantTitleFull.d.ts +11 -0
  971. package/types/variantURL.d.ts +7 -0
  972. package/types/websocket.d.ts +33 -0
@@ -0,0 +1,2471 @@
1
+ export type ArbitraryObjectType = any;
2
+ export interface AddressCreate {
3
+ address1: string;
4
+ address2?: string | null;
5
+ city: string;
6
+ company?: string | null;
7
+ country: string;
8
+ id?: string | null;
9
+ name: string;
10
+ phone?: string | null;
11
+ plus_code?: string | null;
12
+ province: string;
13
+ zip: string;
14
+ }
15
+ export interface AnswerCreate {
16
+ flag_ignore?: boolean | null;
17
+ status?: ApprovalStatus | null;
18
+ text: string;
19
+ }
20
+ export interface AnswerModify {
21
+ flag_ignore?: boolean | null;
22
+ status?: ApprovalStatus | null;
23
+ text?: string | null;
24
+ }
25
+ export interface ApplyGiftCard {
26
+ gift_card_code: string;
27
+ }
28
+ export type ApprovalStatus = "approved" | "disapproved" | "pending";
29
+ export type BrandingFieldType = "boolean" | "color" | "font" | "image_file" | "link" | "radio" | "string" | "text";
30
+ export type CategorySortOrder = "created_at_asc" | "created_at_desc" | "manual" | "min_price_asc" | "min_price_desc" | "num_sold_desc" | "title_asc" | "title_desc";
31
+ export interface CustomItemIndex {
32
+ value: number;
33
+ }
34
+ export type CustomerBalanceSource = "gift_card" | "order" | "other";
35
+ export interface CustomerEmailLogin {
36
+ code: string;
37
+ email: string;
38
+ }
39
+ export interface CustomerLogin {
40
+ email?: string | null;
41
+ language?: string | null;
42
+ oauth_code?: string | null;
43
+ oauth_provider?: CustomerOAuthProviderKind | null;
44
+ oauth_token?: string | null;
45
+ oauth_verifier?: string | null;
46
+ password?: string | null;
47
+ preferred_currency?: string | null;
48
+ timezone?: string | null;
49
+ timezone_hint?: string | null;
50
+ }
51
+ export type CustomerOAuthProviderKind = "apple" | "facebook" | "gitlab" | "google";
52
+ export interface CustomerPasswordReset {
53
+ email: string;
54
+ }
55
+ export interface CustomerPasswordResetComplete {
56
+ code: string;
57
+ email: string;
58
+ password: string;
59
+ }
60
+ export interface CustomerPasswordResetVerify {
61
+ code: string;
62
+ email: string;
63
+ }
64
+ export interface CustomerPaymentSourceCreate {
65
+ payment_method: string;
66
+ }
67
+ export interface FileCreate {
68
+ base64?: string | null;
69
+ content_type?: string | null;
70
+ image_alt?: string | null;
71
+ name?: string | null;
72
+ pinned?: boolean | null;
73
+ size?: string | null;
74
+ storage?: FileStorage | null;
75
+ text?: string | null;
76
+ url?: string | null;
77
+ }
78
+ export type FileStorage = "general" | "private";
79
+ export type FulfillmentService = "manual";
80
+ export type GatewayType = "manual" | "paypal" | "stripe" | "test";
81
+ export type GatewayVisibility = "hide" | "show";
82
+ export type InventoryPolicy = "continue" | "deny";
83
+ export interface LineItemFieldCreate {
84
+ choice_index: number;
85
+ field_index: number;
86
+ label: string;
87
+ type: ProductFieldType;
88
+ value: string;
89
+ }
90
+ export type OrderCancelReason = "customer" | "fraud" | "inventory" | "malformed_shipping_address" | "other" | "price_error" | "risk" | "shipping_price_error" | "tax_error" | "undeliverable_shipping_address" | "unsupported_po_box_address";
91
+ export type OrderFinancialStatus = "authorized" | "paid" | "partially_paid" | "partially_refunded" | "refunded" | "unpaid" | "voided";
92
+ export type OrderFulfillmentStatus = "fulfilled" | "partial" | "unfulfilled";
93
+ export interface OrderLineItemCreate {
94
+ custom_item_index?: CustomItemIndex | null;
95
+ field_set_id?: string | null;
96
+ fields?: Array<LineItemFieldCreate> | null;
97
+ quantity: number;
98
+ subscription_plan_index?: SubscriptionPlanIndex | null;
99
+ variant_id: string;
100
+ }
101
+ export type OrderState = "authorize_payment" | "capture_payment" | "cart" | "imported" | "manual_payment" | "reserved";
102
+ export type ProductBanMode = "allow_all_but" | "deny_all_but";
103
+ export type ProductFieldType = "checkbox" | "choice" | "file" | "number" | "string" | "text";
104
+ export type ProductReturnMode = "allowed" | "not_allowed";
105
+ export interface ProductReviewScoreCreate {
106
+ review_dimension_id: string;
107
+ score: number;
108
+ }
109
+ export interface ProductReviewSurveyAnswerCreate {
110
+ answer: string;
111
+ answer_index: number;
112
+ survey_question_id: string;
113
+ }
114
+ export interface ReturnCreate {
115
+ customer_balance?: boolean | null;
116
+ line_items: Array<ReturnLineItemCreate>;
117
+ order_id: string;
118
+ return_policy_id: string;
119
+ shipping_option_index: number;
120
+ tags?: Array<string> | null;
121
+ }
122
+ export type ReturnHistoryAction = "approved" | "closed" | "created" | "inspected" | "opened" | "received" | "refunded" | "rejected";
123
+ export interface ReturnLineItemCreate {
124
+ fulfillment_id: string;
125
+ line_item_id: string;
126
+ reason: ReturnReasonType;
127
+ return_quantity: number;
128
+ variant_id: string;
129
+ }
130
+ export type ReturnPolicyAddressType = "custom" | "inventory_location" | "origin";
131
+ export type ReturnPolicyRefundOption = "both" | "customer_balance" | "original_payment_method";
132
+ export type ReturnPolicyReturnFee = "cost_of_label" | "fixed_amount" | "free" | "percentage";
133
+ export type ReturnReasonType = "arrived_damaged" | "arrived_too_late" | "custom_reason_1" | "custom_reason_10" | "custom_reason_11" | "custom_reason_12" | "custom_reason_13" | "custom_reason_14" | "custom_reason_15" | "custom_reason_16" | "custom_reason_17" | "custom_reason_18" | "custom_reason_19" | "custom_reason_2" | "custom_reason_20" | "custom_reason_21" | "custom_reason_22" | "custom_reason_23" | "custom_reason_24" | "custom_reason_25" | "custom_reason_26" | "custom_reason_27" | "custom_reason_28" | "custom_reason_29" | "custom_reason_3" | "custom_reason_30" | "custom_reason_4" | "custom_reason_5" | "custom_reason_6" | "custom_reason_7" | "custom_reason_8" | "custom_reason_9" | "different_from_description" | "found_lower_price" | "item_didnt_fit" | "item_was_defective" | "no_longer_needed" | "not_satisfied_with_quality" | "other_reason" | "wrong_item_received";
134
+ export type ReturnState = "approved" | "inspected" | "received" | "refunded" | "rejected" | "request";
135
+ export type ReverseLogistics = "custom" | "generate_label" | "no_label";
136
+ export type SearchOp = "and" | "eq" | "ge" | "gt" | "le" | "lt" | "ne" | "not" | "or";
137
+ export interface SearchOption {
138
+ boolean?: boolean | null;
139
+ context?: string | null;
140
+ name?: string | null;
141
+ nil?: boolean | null;
142
+ now?: boolean | null;
143
+ number?: number | null;
144
+ op: SearchOp;
145
+ parent_index?: number | null;
146
+ text?: string | null;
147
+ zero?: boolean | null;
148
+ }
149
+ export type SearchProductsSortBy = "brand" | "created_at" | "max_inventory_count" | "min_inventory_count" | "min_price" | "published_at" | "rating" | "sales" | "sum_inventory_count" | "title" | "updated_at" | "visits";
150
+ export type SearchQuestionsSortBy = "created_at" | "customer" | "product" | "rating" | "updated_at";
151
+ export type SearchReviewsSortBy = "average_score" | "created_at" | "customer" | "product" | "rating" | "title" | "updated_at";
152
+ export type ShippingProviderType = "auspost" | "canadapost" | "fedex" | "fixed" | "pickup" | "ups" | "usps";
153
+ export interface StorefrontCustomerCreate {
154
+ accepts_marketing?: boolean | null;
155
+ addresses?: Array<AddressCreate> | null;
156
+ default_billing_address_id?: string | null;
157
+ default_shipping_address_id?: string | null;
158
+ display_name?: string | null;
159
+ email: string;
160
+ language?: string | null;
161
+ mobile?: string | null;
162
+ mobile_notifications?: boolean | null;
163
+ name?: string | null;
164
+ password?: string | null;
165
+ preferred_currency?: string | null;
166
+ reminder_messages?: boolean | null;
167
+ timezone?: string | null;
168
+ timezone_hint?: string | null;
169
+ }
170
+ export interface StorefrontCustomerFavoriteCreate {
171
+ inventory_notification?: boolean | null;
172
+ price_notification?: boolean | null;
173
+ variant_id: string;
174
+ }
175
+ export interface StorefrontCustomerFavoriteModify {
176
+ inventory_notification?: boolean | null;
177
+ price_notification?: boolean | null;
178
+ }
179
+ export interface StorefrontCustomerModify {
180
+ accepts_marketing?: boolean | null;
181
+ addresses?: Array<AddressCreate> | null;
182
+ default_billing_address_id?: string | null;
183
+ default_payment_source_id?: string | null;
184
+ default_shipping_address_id?: string | null;
185
+ display_name?: string | null;
186
+ language?: string | null;
187
+ mobile?: string | null;
188
+ mobile_notifications?: boolean | null;
189
+ name?: string | null;
190
+ preferred_currency?: string | null;
191
+ reminder_messages?: boolean | null;
192
+ timezone?: string | null;
193
+ }
194
+ export type StorefrontCustomerVote = "not_voted" | "voted_no" | "voted_yes";
195
+ export interface StorefrontOrderCreate {
196
+ billing_address?: AddressCreate | null;
197
+ billing_address_short_id?: string | null;
198
+ clone_from_id?: string | null;
199
+ currency?: string | null;
200
+ customer_email?: string | null;
201
+ customer_id?: string | null;
202
+ discount_code?: string | null;
203
+ gateway_id?: string | null;
204
+ line_items?: Array<OrderLineItemCreate> | null;
205
+ mobile?: string | null;
206
+ mobile_notifications?: boolean | null;
207
+ send_fulfillment_notifications?: boolean | null;
208
+ send_order_notifications?: boolean | null;
209
+ shipping_address?: AddressCreate | null;
210
+ shipping_address_short_id?: string | null;
211
+ shipping_rate_ids?: Array<string> | null;
212
+ }
213
+ export interface StorefrontOrderModify {
214
+ billing_address?: AddressCreate | null;
215
+ billing_address_short_id?: string | null;
216
+ currency?: string | null;
217
+ customer_email?: string | null;
218
+ customer_id?: string | null;
219
+ discount_code?: string | null;
220
+ gateway_id?: string | null;
221
+ line_items?: Array<OrderLineItemCreate> | null;
222
+ mobile?: string | null;
223
+ mobile_notifications?: boolean | null;
224
+ send_fulfillment_notifications?: boolean | null;
225
+ send_order_notifications?: boolean | null;
226
+ shipping_address?: AddressCreate | null;
227
+ shipping_address_short_id?: string | null;
228
+ shipping_rate_ids?: Array<string> | null;
229
+ }
230
+ export interface StorefrontProductQuestionCreate {
231
+ product_id: string;
232
+ text: string;
233
+ }
234
+ export interface StorefrontProductQuestionModify {
235
+ text?: string | null;
236
+ }
237
+ export interface StorefrontProductReviewCreate {
238
+ image_file_ids?: Array<string> | null;
239
+ product_id: string;
240
+ recommended?: StorefrontCustomerVote | null;
241
+ scores?: Array<ProductReviewScoreCreate> | null;
242
+ survey_answers?: Array<ProductReviewSurveyAnswerCreate> | null;
243
+ text: string;
244
+ title: string;
245
+ }
246
+ export interface StorefrontProductReviewModify {
247
+ image_file_ids?: Array<string> | null;
248
+ recommended?: StorefrontCustomerVote | null;
249
+ scores?: Array<ProductReviewScoreCreate> | null;
250
+ survey_answers?: Array<ProductReviewSurveyAnswerCreate> | null;
251
+ text?: string | null;
252
+ title?: string | null;
253
+ }
254
+ export interface SubscriptionEdit {
255
+ billing_address?: SubscriptionParam | null;
256
+ billing_address_id?: string | null;
257
+ custom_billing_address?: AddressCreate | null;
258
+ custom_shipping_address?: AddressCreate | null;
259
+ payment_source?: SubscriptionParam | null;
260
+ payment_source_id?: string | null;
261
+ shipping_address?: SubscriptionParam | null;
262
+ shipping_address_id?: string | null;
263
+ }
264
+ export type SubscriptionError = "currency_not_allowed" | "gateway_not_supported" | "invalid_product_quantity" | "invalid_shop_destination" | "no_inventory" | "ok" | "out_of_stock" | "product_banned" | "realtime_shipping_rates_failure" | "saved_card_not_found" | "shop_misconfigured" | "transaction_error" | "unrecognized_error";
265
+ export type SubscriptionParam = "custom" | "default" | "origin_order";
266
+ export interface SubscriptionPlanIndex {
267
+ value: number;
268
+ }
269
+ export type SubscriptionPlanInterval = "annually" | "daily" | "monthly" | "weekly";
270
+ export type SubscriptionPlanPriceType = "fixed_off" | "percentage_off" | "price";
271
+ export type SubscriptionState = "active" | "canceled" | "done" | "error" | "failed" | "past_due" | "paused" | "pending" | "pending_payment" | "skip_next";
272
+ export type SurveyQuestionKind = "arbitrary" | "predefined";
273
+ export type TieredPricingMode = "all_variants" | "per_variant";
274
+ export type TieredPricingModel = "graduated" | "volume";
275
+ export type TrackingEventStatus = "attempt_fail" | "available_for_pickup" | "delivered" | "exception" | "in_transit" | "info_received" | "out_for_delivery" | "unknown";
276
+ export type VariantType = "bundle" | "digital_good" | "gift_card" | "physical" | "service";
277
+ export interface BrandingFragment {
278
+ fields: Array<BrandingFieldFragment>;
279
+ }
280
+ export interface BrandingFieldFragment {
281
+ boolean: boolean | null;
282
+ color: string | null;
283
+ font: string | null;
284
+ id: string;
285
+ image_file: FileFragment | null;
286
+ link: string | null;
287
+ radio: string | null;
288
+ string: string | null;
289
+ text: string | null;
290
+ type: BrandingFieldType;
291
+ }
292
+ export interface CartCustomItemFragment {
293
+ grams: number;
294
+ height: number;
295
+ id: string;
296
+ inventory_location: {
297
+ id: string;
298
+ } | null;
299
+ length: number;
300
+ physical: boolean;
301
+ price: number;
302
+ tax_class: string;
303
+ taxable: boolean;
304
+ title: string;
305
+ width: number;
306
+ }
307
+ export interface CartOrderFragment {
308
+ currency: string;
309
+ custom_items: Array<CartCustomItemFragment> | null;
310
+ discount_code: string | null;
311
+ id: string;
312
+ line_items: Array<{
313
+ custom_item_index: number;
314
+ discount_preview: number;
315
+ field_set: {
316
+ id: string;
317
+ } | null;
318
+ fields: Array<LineItemFieldFragment>;
319
+ id: string;
320
+ quantity: number;
321
+ subscription_plan_index: number;
322
+ variant: CartVariantFragment | null;
323
+ variant_id: string | null;
324
+ }>;
325
+ state: OrderState;
326
+ updated_at: string;
327
+ uuid: string;
328
+ }
329
+ export type CartVariantFragment = CommonCartVariantFragment & {
330
+ product: {
331
+ handle: string;
332
+ id: string;
333
+ return_mode: ProductReturnMode;
334
+ subscription_only: boolean;
335
+ subscription_plans: Array<SubscriptionPlanFragment>;
336
+ tiered_pricing_mode: TieredPricingMode;
337
+ title: string;
338
+ } | null;
339
+ };
340
+ export type CartVariantFullFragment = CartVariantFragment & {
341
+ bundle_line_items: Array<{
342
+ quantity: number;
343
+ variant: CartVariantFragment | null;
344
+ }>;
345
+ };
346
+ export interface CategoryFragment {
347
+ content_image_files: Array<FileNoFallbackFragment | null> | null;
348
+ created_at: string;
349
+ featured: boolean;
350
+ handle: string;
351
+ has_children: boolean;
352
+ id: string;
353
+ image_files: Array<FileNoFallbackFragment | null> | null;
354
+ meta_description: string;
355
+ meta_title: string;
356
+ published: boolean;
357
+ published_at: string | null;
358
+ raw_content: string;
359
+ sort_order: CategorySortOrder;
360
+ title: string;
361
+ updated_at: string;
362
+ }
363
+ export interface CommonCartVariantFragment {
364
+ barcode: string;
365
+ country_of_origin: string;
366
+ created_at: string;
367
+ currency_prices: Array<CurrencyPriceFragment>;
368
+ customer_group_price: number;
369
+ discountable: boolean;
370
+ expiration_days: number;
371
+ favorite: {
372
+ created_at: string;
373
+ id: string;
374
+ } | null;
375
+ fulfillment_service: FulfillmentService;
376
+ grams: number;
377
+ height: number;
378
+ hs_code: string;
379
+ id: string;
380
+ inventory: {
381
+ available: number;
382
+ locations: Array<{
383
+ available: number;
384
+ inventory_location: {
385
+ id: string;
386
+ } | null;
387
+ low_stock: boolean;
388
+ }>;
389
+ low_stock: boolean;
390
+ } | null;
391
+ inventory_policy: InventoryPolicy;
392
+ is_default: boolean;
393
+ length: number;
394
+ linked_media_files: Array<MediaFileFragment>;
395
+ map_price: number;
396
+ max_downloads: number;
397
+ media_files: Array<MediaFileFragment>;
398
+ options: Array<VariantOptionFragment>;
399
+ position: number;
400
+ price: number;
401
+ retail_price: number;
402
+ sale_price: number;
403
+ sale_price_eligible: boolean;
404
+ sale_price_from: string | null;
405
+ sale_price_to: string | null;
406
+ sku: string;
407
+ tax_class: string | null;
408
+ taxable: boolean;
409
+ tiered_pricing: TieredPricingFragment | null;
410
+ type: VariantType;
411
+ updated_at: string;
412
+ width: number;
413
+ }
414
+ export interface CurrencyFragment {
415
+ conversion_fee: number | null;
416
+ currency: {
417
+ code: string;
418
+ name: string;
419
+ symbol: string;
420
+ to_minor: number;
421
+ };
422
+ custom_exchange_rate: number | null;
423
+ exchange_rate: number;
424
+ format: {
425
+ decimal_separator: string;
426
+ has_decimals: boolean;
427
+ pattern: string;
428
+ thousands_separator: string;
429
+ };
430
+ }
431
+ export interface CurrencyPriceFragment {
432
+ currency: string;
433
+ map_price: number;
434
+ price: number;
435
+ retail_price: number;
436
+ sale_price: number;
437
+ tiered_pricing: TieredPricingFragment | null;
438
+ }
439
+ export interface CustomFieldFragment {
440
+ name: string;
441
+ value: string;
442
+ }
443
+ export interface CustomFieldObjectsFragment {
444
+ categories: Array<CategoryFragment | null> | null;
445
+ files: Array<FileNoFallbackFragment | null> | null;
446
+ products: Array<ProductFlatFragment | null> | null;
447
+ }
448
+ export interface CustomerFragment {
449
+ accepts_marketing: boolean;
450
+ addresses: Array<FullAddressFragment>;
451
+ default_billing_address_id: string;
452
+ default_payment_source_id: string | null;
453
+ default_shipping_address_id: string;
454
+ display_name: string;
455
+ email: string;
456
+ id: string;
457
+ is_guest: boolean;
458
+ mobile: string;
459
+ mobile_notifications: boolean;
460
+ name: string;
461
+ oauth_provider: CustomerOAuthProviderKind | null;
462
+ password_defined: boolean;
463
+ reminder_messages: boolean;
464
+ }
465
+ export interface CustomerBalanceFragment {
466
+ balance: Array<{
467
+ amount: number;
468
+ currency: string;
469
+ }>;
470
+ order_count: number;
471
+ total_spent: number;
472
+ }
473
+ export interface CustomerBalanceHistoryFragment {
474
+ amount: number;
475
+ balance: number;
476
+ comment: string;
477
+ created_at: string;
478
+ currency: string;
479
+ id: string;
480
+ source: CustomerBalanceSource;
481
+ source_arg1: string;
482
+ source_arg2: string;
483
+ }
484
+ export interface CustomerFavoriteFragment {
485
+ created_at: string;
486
+ id: string;
487
+ inventory_notification: boolean;
488
+ price_notification: boolean;
489
+ variant: CartVariantFragment | null;
490
+ }
491
+ export interface CustomerFavoriteShortFragment {
492
+ id: string;
493
+ inventory_notification: boolean;
494
+ price_notification: boolean;
495
+ variant: {
496
+ id: string;
497
+ } | null;
498
+ }
499
+ export interface CustomerOAuthProviderFragment {
500
+ client_id: string;
501
+ kind: CustomerOAuthProviderKind;
502
+ }
503
+ export interface CustomerOrderBriefFragment {
504
+ canceled_at: string | null;
505
+ currency: string;
506
+ custom_items: Array<CartCustomItemFragment> | null;
507
+ financial_status: OrderFinancialStatus;
508
+ fulfillment_status: OrderFulfillmentStatus;
509
+ id: string;
510
+ line_items: Array<{
511
+ id: string;
512
+ quantity: number;
513
+ variant: CartVariantFragment | null;
514
+ variant_id: string | null;
515
+ }>;
516
+ number: number;
517
+ paid_at: string | null;
518
+ total_price: number;
519
+ }
520
+ export interface CustomerOrderFulfillmentFragment {
521
+ canceled_at: string | null;
522
+ created_at: string;
523
+ digital: boolean;
524
+ disabled_at: string | null;
525
+ email: boolean;
526
+ expected_at_max: string | null;
527
+ expected_at_min: string | null;
528
+ id: string;
529
+ line_items: Array<{
530
+ dest_inventory_location_id: string;
531
+ inventory_location_id: string;
532
+ line_item_id: string;
533
+ quantity: number;
534
+ returned: number;
535
+ variant_id: string;
536
+ }>;
537
+ shipping_provider_type: ShippingProviderType;
538
+ tracking_company: string;
539
+ tracking_number: string;
540
+ tracking_url: string;
541
+ updated_at: string;
542
+ }
543
+ export interface CustomerOrderFullFragment {
544
+ billing_address: FullAddressFragment | null;
545
+ calculated: boolean;
546
+ cancel_reason: OrderCancelReason | null;
547
+ canceled_at: string | null;
548
+ closed_at: string | null;
549
+ currency: string;
550
+ custom_items: Array<CartCustomItemFragment> | null;
551
+ customer: {
552
+ email: string;
553
+ id: string;
554
+ } | null;
555
+ customer_balance_spent: number;
556
+ customer_email: string | null;
557
+ discount_code: string | null;
558
+ display: {
559
+ amount_due: number;
560
+ customer_balance_spent: number;
561
+ discount: number;
562
+ paid: number;
563
+ shipping: number;
564
+ subtotal: number;
565
+ tax: number;
566
+ total: number;
567
+ } | null;
568
+ financial_status: OrderFinancialStatus;
569
+ fulfillment_status: OrderFulfillmentStatus;
570
+ gateway_type: GatewayType | null;
571
+ id: string;
572
+ line_items: Array<{
573
+ custom_item_index: number;
574
+ detail: {
575
+ original_price: number;
576
+ price: number;
577
+ tax_excl_price: number;
578
+ tax_incl_price: number;
579
+ } | null;
580
+ fields: Array<LineItemFieldFragment>;
581
+ id: string;
582
+ quantity: number;
583
+ variant: CartVariantFullFragment | null;
584
+ variant_id: string | null;
585
+ }>;
586
+ mobile: string;
587
+ mobile_notifications: boolean;
588
+ number: number;
589
+ on_hold: boolean;
590
+ on_hold_until: string | null;
591
+ paid_at: string | null;
592
+ promotion: {
593
+ id: string;
594
+ name: string;
595
+ } | null;
596
+ selected_shipping_rates: Array<{
597
+ id: string;
598
+ name: string;
599
+ }>;
600
+ shipping_address: FullAddressFragment | null;
601
+ shipping_detail: {
602
+ tax_excl_price: number;
603
+ tax_incl_price: number;
604
+ } | null;
605
+ shipping_price: number;
606
+ shipping_rate_groups: Array<{
607
+ shipping_rates: Array<{
608
+ delivery_date_guaranteed: boolean;
609
+ delivery_date_max: string;
610
+ delivery_date_min: string;
611
+ discountable: boolean;
612
+ id: string;
613
+ name: string;
614
+ rate: number;
615
+ shipping_provider: {
616
+ description: string;
617
+ id: string;
618
+ name: string;
619
+ } | null;
620
+ taxable: boolean;
621
+ }>;
622
+ }> | null;
623
+ state: OrderState;
624
+ subtotal_price: number;
625
+ tax_inclusive_prices: boolean;
626
+ total_discounts: number;
627
+ total_price: number;
628
+ total_tax: number;
629
+ uuid: string;
630
+ }
631
+ export interface CustomerPaymentSourceFragment {
632
+ address_city: string;
633
+ address_country: string;
634
+ address_country_info: {
635
+ code: string;
636
+ name: string;
637
+ } | null;
638
+ address_line1: string;
639
+ address_line2: string;
640
+ address_state: string;
641
+ address_state_info: {
642
+ code: string;
643
+ name: string;
644
+ } | null;
645
+ address_zip: string;
646
+ brand: string;
647
+ exp_month: number;
648
+ exp_year: number;
649
+ id: string;
650
+ last4: string;
651
+ name: string;
652
+ stripe_customer_id: string;
653
+ }
654
+ export interface CustomerReturnBriefFragment {
655
+ created_at: string;
656
+ id: string;
657
+ line_items: Array<{
658
+ return_quantity: number;
659
+ variant: CartVariantFragment | null;
660
+ }>;
661
+ number: number;
662
+ reject_reason: string;
663
+ state: ReturnState;
664
+ updated_at: string;
665
+ }
666
+ export interface CustomerReturnFullFragment {
667
+ approved_at: string | null;
668
+ closed_at: string | null;
669
+ created_at: string;
670
+ customer_balance: boolean;
671
+ expected_at_max: string | null;
672
+ expected_at_min: string | null;
673
+ history: Array<{
674
+ action: ReturnHistoryAction;
675
+ created_at: string;
676
+ }>;
677
+ id: string;
678
+ inbound_tracking: TrackingEventStatus;
679
+ inspected_at: string | null;
680
+ label_file: {
681
+ id: string;
682
+ mime: string;
683
+ name: string;
684
+ public_url: string;
685
+ } | null;
686
+ line_items: Array<{
687
+ fulfillment_id: string;
688
+ line_item_id: string;
689
+ reason: ReturnReasonType;
690
+ return_quantity: number;
691
+ variant: CartVariantFullFragment | null;
692
+ }>;
693
+ number: number;
694
+ order: {
695
+ id: string;
696
+ number: number;
697
+ } | null;
698
+ received_at: string | null;
699
+ refund_shipping_charge: boolean;
700
+ refunded_at: string | null;
701
+ reject_reason: string;
702
+ rejected_at: string | null;
703
+ return_address: FullAddressFragment | null;
704
+ return_address_type: ReturnPolicyAddressType;
705
+ return_fee: ReturnPolicyReturnFee | null;
706
+ return_fee_value: number;
707
+ return_inventory_location: {
708
+ id: string;
709
+ name: string;
710
+ } | null;
711
+ return_policy: {
712
+ id: string;
713
+ } | null;
714
+ shipping_provider_type: ShippingProviderType | null;
715
+ state: ReturnState;
716
+ tracking_company: string;
717
+ tracking_number: string;
718
+ tracking_url: string;
719
+ updated_at: string;
720
+ }
721
+ export interface CustomerReturnPolicyFragment {
722
+ id: string;
723
+ name: string;
724
+ refund_option: ReturnPolicyRefundOption;
725
+ shipping_options: Array<{
726
+ address: FullAddressFragment | null;
727
+ address_type: ReturnPolicyAddressType;
728
+ inventory_location: {
729
+ id: string;
730
+ name: string;
731
+ } | null;
732
+ refund_shipping_charge: boolean;
733
+ return_fee: ReturnPolicyReturnFee;
734
+ return_fee_value: number;
735
+ reverse_logistics: ReverseLogistics;
736
+ reverse_logistics_desc: string;
737
+ reverse_logistics_name: string;
738
+ tracking_company: string;
739
+ }>;
740
+ }
741
+ export interface CustomerSubscriptionBriefFragment {
742
+ billing_address: SubscriptionParam;
743
+ billing_address_id: string;
744
+ created_at: string;
745
+ customer: {
746
+ email: string;
747
+ id: string;
748
+ name: string;
749
+ } | null;
750
+ id: string;
751
+ last_order: {
752
+ id: string;
753
+ number: number;
754
+ } | null;
755
+ next_at: string;
756
+ next_offset: number;
757
+ origin_order: {
758
+ id: string;
759
+ number: number;
760
+ } | null;
761
+ payment_source: SubscriptionParam;
762
+ payment_source_id: string;
763
+ quantity: number;
764
+ shipping_address: SubscriptionParam;
765
+ shipping_address_id: string;
766
+ state: SubscriptionState;
767
+ subscription_plan: SubscriptionPlanFragment;
768
+ tick_count: number;
769
+ variant: CartVariantFragment | null;
770
+ }
771
+ export interface CustomerSubscriptionFullFragment {
772
+ billing_address: SubscriptionParam;
773
+ billing_address_id: string;
774
+ created_at: string;
775
+ error: SubscriptionError;
776
+ error_count: number;
777
+ id: string;
778
+ last_order: CustomerOrderFullFragment | null;
779
+ next_at: string;
780
+ next_offset: number;
781
+ origin_order: CustomerOrderFullFragment | null;
782
+ payment_source: SubscriptionParam;
783
+ payment_source_id: string;
784
+ quantity: number;
785
+ shipping_address: SubscriptionParam;
786
+ shipping_address_id: string;
787
+ state: SubscriptionState;
788
+ subscription_plan: SubscriptionPlanFragment;
789
+ tick_count: number;
790
+ variant: CartVariantFullFragment | null;
791
+ }
792
+ export interface FileFragment {
793
+ id: string;
794
+ image_alt: string;
795
+ image_color: string;
796
+ image_height: number;
797
+ image_width: number;
798
+ mime: string;
799
+ public_url: string;
800
+ }
801
+ export interface FileForUploadFragment {
802
+ created_at: string;
803
+ id: string;
804
+ image_alt: string;
805
+ image_color: string;
806
+ image_height: number;
807
+ image_width: number;
808
+ is_binary: boolean;
809
+ is_image: boolean;
810
+ is_uploaded: boolean;
811
+ mime: string;
812
+ name: string;
813
+ path: string;
814
+ public_url: string;
815
+ size: string;
816
+ storage: FileStorage;
817
+ temp_path: string;
818
+ }
819
+ export interface FileNoFallbackFragment {
820
+ id: string;
821
+ image_alt: string;
822
+ image_color: string;
823
+ image_height: number;
824
+ image_width: number;
825
+ mime: string;
826
+ public_url: string;
827
+ }
828
+ export interface FullAddressFragment {
829
+ address1: string;
830
+ address2: string;
831
+ city: string;
832
+ company: string;
833
+ country: {
834
+ code: string;
835
+ name: string;
836
+ } | null;
837
+ id: string;
838
+ latitude: number;
839
+ longitude: number;
840
+ name: string;
841
+ phone: string;
842
+ province: {
843
+ code: string;
844
+ name: string;
845
+ } | null;
846
+ zip: string;
847
+ }
848
+ export interface GatewayFragment {
849
+ created_at: string;
850
+ currencies: Array<{
851
+ code: string;
852
+ max: number;
853
+ min: number;
854
+ }>;
855
+ enabled: boolean;
856
+ id: string;
857
+ manual: GatewayManualFragment | null;
858
+ paypal: GatewayPaypalFragment | null;
859
+ stripe: GatewayStripeFragment | null;
860
+ test: GatewayTestFragment | null;
861
+ test_mode: boolean;
862
+ type: GatewayType;
863
+ updated_at: string;
864
+ visibility: GatewayVisibility;
865
+ }
866
+ export interface GatewayManualFragment {
867
+ description: string;
868
+ details: string;
869
+ name: string;
870
+ }
871
+ export interface GatewayPaypalFragment {
872
+ auto_capture: boolean;
873
+ cards: {
874
+ amex: boolean;
875
+ discover: boolean;
876
+ elo: boolean;
877
+ hiper: boolean;
878
+ jcb: boolean;
879
+ mastercard: boolean;
880
+ visa: boolean;
881
+ };
882
+ client_id: string;
883
+ funding: {
884
+ card: boolean;
885
+ credit: boolean;
886
+ sepa: boolean;
887
+ };
888
+ merchant_id: string;
889
+ send_authorized_order_notifications: boolean;
890
+ }
891
+ export interface GatewayStripeFragment {
892
+ account_id: string;
893
+ amex_express_checkout: {
894
+ client_id: string;
895
+ enabled: boolean;
896
+ };
897
+ auto_capture: boolean;
898
+ card_tokenization: boolean;
899
+ cards: {
900
+ amex: boolean;
901
+ diners: boolean;
902
+ discover: boolean;
903
+ jcb: boolean;
904
+ mastercard: boolean;
905
+ unionpay: boolean;
906
+ visa: boolean;
907
+ };
908
+ masterpass: {
909
+ checkout_id: string;
910
+ enabled: boolean;
911
+ };
912
+ payment_methods: {
913
+ alipay: boolean;
914
+ bancontact: boolean;
915
+ eps: boolean;
916
+ giropay: boolean;
917
+ ideal: boolean;
918
+ multibanco: boolean;
919
+ p24: boolean;
920
+ sofort: boolean;
921
+ wechat: boolean;
922
+ };
923
+ publishable_key: string;
924
+ send_authorized_order_notifications: boolean;
925
+ visa_checkout: {
926
+ checkout_id: string;
927
+ enabled: boolean;
928
+ };
929
+ }
930
+ export interface GatewayTestFragment {
931
+ auto_capture: boolean;
932
+ name: string;
933
+ send_authorized_order_notifications: boolean;
934
+ }
935
+ export interface IPAndUAInfoFragment {
936
+ br_family: string;
937
+ br_version: string;
938
+ country: InfoCountryFragment | null;
939
+ dvce_brand: string;
940
+ dvce_family: string;
941
+ dvce_model: string;
942
+ geo_accuracy_radius: number;
943
+ geo_city: string;
944
+ geo_continent: string;
945
+ geo_continent_name: string;
946
+ geo_country: string;
947
+ geo_country_name: string;
948
+ geo_latitude: number;
949
+ geo_longitude: number;
950
+ geo_metro_code: number;
951
+ geo_region: string;
952
+ geo_region_name: string;
953
+ geo_timezone: string;
954
+ geo_zipcode: string;
955
+ ip_domain: string;
956
+ ip_isanonymousproxy: boolean;
957
+ ip_isp: string;
958
+ ip_issatelliteprovider: boolean;
959
+ ip_netspeed: string;
960
+ ip_organization: string;
961
+ os_family: string;
962
+ os_version: string;
963
+ province: InfoProvinceFragment | null;
964
+ }
965
+ export interface InfoCountryFragment {
966
+ code: string;
967
+ currency: string;
968
+ dedup_fields: Array<InfoCountryDedupFieldFragment>;
969
+ display_format: string;
970
+ form_format: string;
971
+ has_province: boolean;
972
+ has_zip: boolean;
973
+ labels: {
974
+ address1: string;
975
+ address2: string;
976
+ city: string;
977
+ company: string;
978
+ country: string;
979
+ name: string;
980
+ phone: string;
981
+ province: string;
982
+ zip: string;
983
+ };
984
+ name: string;
985
+ phone: string;
986
+ }
987
+ export interface InfoCountryDedupFieldFragment {
988
+ field: string;
989
+ separator: string;
990
+ }
991
+ export interface InfoCurrencyFragment {
992
+ code: string;
993
+ currency_format: {
994
+ decimal_separator: string;
995
+ has_decimals: boolean;
996
+ pattern: string;
997
+ thousands_separator: string;
998
+ } | null;
999
+ name: string;
1000
+ symbol: string;
1001
+ to_minor: number;
1002
+ }
1003
+ export interface InfoProvinceFragment {
1004
+ code: string;
1005
+ name: string;
1006
+ }
1007
+ export interface KeyValueFragment {
1008
+ key: string;
1009
+ value: string;
1010
+ }
1011
+ export interface LineItemFieldFragment {
1012
+ choice_index: number;
1013
+ field_index: number;
1014
+ label: string;
1015
+ type: ProductFieldType;
1016
+ value: string;
1017
+ }
1018
+ export interface MediaFileFragment {
1019
+ file: {
1020
+ id: string;
1021
+ image_alt: string;
1022
+ image_color: string;
1023
+ image_height: number;
1024
+ image_width: number;
1025
+ mime: string;
1026
+ public_url: string;
1027
+ } | null;
1028
+ thumbnail_file: {
1029
+ id: string;
1030
+ image_alt: string;
1031
+ image_color: string;
1032
+ image_height: number;
1033
+ image_width: number;
1034
+ mime: string;
1035
+ public_url: string;
1036
+ } | null;
1037
+ }
1038
+ export interface MinCurrencyPriceFragment {
1039
+ currency: string;
1040
+ min_price: number;
1041
+ }
1042
+ export interface ProductFieldFragment {
1043
+ choices: Array<string>;
1044
+ label: string;
1045
+ required: boolean;
1046
+ type: ProductFieldType;
1047
+ }
1048
+ export interface ProductFieldSetFragment {
1049
+ fields: Array<ProductFieldFragment>;
1050
+ id: string;
1051
+ name: string;
1052
+ }
1053
+ export interface ProductFlatFragment {
1054
+ average_score: number;
1055
+ average_scores: Array<ProductReviewAverageScoreFragment>;
1056
+ ban_countries: Array<string>;
1057
+ ban_mode: ProductBanMode;
1058
+ brand: {
1059
+ id: string;
1060
+ } | null;
1061
+ categories: Array<{
1062
+ id: string;
1063
+ } | null> | null;
1064
+ content_image_files: Array<FileNoFallbackFragment | null> | null;
1065
+ created_at: string;
1066
+ field_set: ProductFieldSetFragment | null;
1067
+ handle: string;
1068
+ id: string;
1069
+ maximum_quantity: number | null;
1070
+ meta_description: string;
1071
+ meta_title: string;
1072
+ min_currency_prices: Array<MinCurrencyPriceFragment>;
1073
+ min_price: number;
1074
+ minimum_quantity: number | null;
1075
+ no_count: number;
1076
+ published_at: string | null;
1077
+ raw_content: string;
1078
+ recommended_no_count: number;
1079
+ recommended_yes_count: number;
1080
+ review_count: number;
1081
+ review_dimension_set: ReviewDimensionSetFragment | null;
1082
+ subscription_only: boolean;
1083
+ subscription_plans: Array<SubscriptionPlanFragment>;
1084
+ title: string;
1085
+ updated_at: string;
1086
+ variants: Array<CommonCartVariantFragment | null> | null;
1087
+ yes_count: number;
1088
+ }
1089
+ export interface ProductQuestionFragment {
1090
+ answers: Array<ProductQuestionAnswerFragment | null> | null;
1091
+ created_at: string;
1092
+ customer: {
1093
+ display_name: string;
1094
+ id: string;
1095
+ } | null;
1096
+ flagged: boolean;
1097
+ id: string;
1098
+ no_count: number;
1099
+ product: {
1100
+ id: string;
1101
+ } | null;
1102
+ status: ApprovalStatus;
1103
+ text: string;
1104
+ voted: StorefrontCustomerVote;
1105
+ yes_count: number;
1106
+ }
1107
+ export interface ProductQuestionAnswerFragment {
1108
+ created_at: string;
1109
+ customer: {
1110
+ display_name: string;
1111
+ id: string;
1112
+ } | null;
1113
+ flagged: boolean;
1114
+ id: string;
1115
+ no_count: number;
1116
+ text: string;
1117
+ user: {
1118
+ display_name: string;
1119
+ id: string;
1120
+ } | null;
1121
+ voted: StorefrontCustomerVote;
1122
+ yes_count: number;
1123
+ }
1124
+ export interface ProductQuestionPageFragment {
1125
+ items: Array<ProductQuestionFragment>;
1126
+ last_key: string;
1127
+ }
1128
+ export interface ProductReviewFragment {
1129
+ answers: Array<ProductReviewAnswerFragment | null> | null;
1130
+ average_score: number;
1131
+ created_at: string;
1132
+ customer: {
1133
+ display_name: string;
1134
+ id: string;
1135
+ } | null;
1136
+ detected_language: {
1137
+ code: string;
1138
+ id: string;
1139
+ } | null;
1140
+ flagged: boolean;
1141
+ id: string;
1142
+ image_files: Array<FileNoFallbackFragment | null> | null;
1143
+ no_count: number;
1144
+ product: {
1145
+ id: string;
1146
+ } | null;
1147
+ recommended: StorefrontCustomerVote;
1148
+ scores: Array<ProductReviewScoreFragment>;
1149
+ status: ApprovalStatus;
1150
+ survey_answers: Array<ProductReviewSurveyAnswerFragment>;
1151
+ text: string;
1152
+ title: string;
1153
+ updated_at: string;
1154
+ verified_purchase: boolean;
1155
+ voted: StorefrontCustomerVote;
1156
+ yes_count: number;
1157
+ }
1158
+ export interface ProductReviewAnswerFragment {
1159
+ created_at: string;
1160
+ id: string;
1161
+ text: string;
1162
+ }
1163
+ export interface ProductReviewAverageScoreFragment {
1164
+ count: number;
1165
+ histogram: Array<KeyValueFragment>;
1166
+ review_dimension: ReviewDimensionFragment | null;
1167
+ score: number;
1168
+ sum: number;
1169
+ }
1170
+ export interface ProductReviewPageFragment {
1171
+ items: Array<ProductReviewFragment>;
1172
+ last_key: string;
1173
+ }
1174
+ export interface ProductReviewScoreFragment {
1175
+ review_dimension: ReviewDimensionFragment | null;
1176
+ score: number;
1177
+ }
1178
+ export interface ProductReviewSurveyAnswerFragment {
1179
+ answer: string;
1180
+ answer_index: number;
1181
+ survey_question: SurveyQuestionFragment | null;
1182
+ }
1183
+ export interface ProductSearchOptionAggFragment {
1184
+ count: number;
1185
+ name: string;
1186
+ values: Array<{
1187
+ count: number;
1188
+ name: string;
1189
+ }>;
1190
+ }
1191
+ export interface ProductSearchResultFragment {
1192
+ count: number;
1193
+ items: Array<SearchProductFragment | null> | null;
1194
+ last_key: string;
1195
+ options: Array<ProductSearchOptionAggFragment>;
1196
+ price_max: number;
1197
+ price_min: number;
1198
+ }
1199
+ export interface ReturnReasonFragment {
1200
+ description: string;
1201
+ id: ReturnReasonType;
1202
+ }
1203
+ export interface ReviewDimensionFragment {
1204
+ id: string;
1205
+ name: string;
1206
+ }
1207
+ export interface ReviewDimensionSetFragment {
1208
+ id: string;
1209
+ name: string;
1210
+ overall_review_dimension: ReviewDimensionFragment | null;
1211
+ review_dimensions: Array<ReviewDimensionFragment | null> | null;
1212
+ survey_questions: Array<SurveyQuestionFragment | null> | null;
1213
+ }
1214
+ export interface ReviewImagePageFragment {
1215
+ count: number;
1216
+ items: Array<FileNoFallbackFragment | null> | null;
1217
+ last_key: string;
1218
+ }
1219
+ export interface ReviewQuestionProductFragment {
1220
+ average_score: number;
1221
+ average_scores: Array<ProductReviewAverageScoreFragment>;
1222
+ ban_countries: Array<string>;
1223
+ ban_mode: ProductBanMode;
1224
+ brand: {
1225
+ id: string;
1226
+ } | null;
1227
+ categories: Array<{
1228
+ id: string;
1229
+ } | null> | null;
1230
+ content_image_files: Array<FileNoFallbackFragment | null> | null;
1231
+ created_at: string;
1232
+ custom_field_objects: CustomFieldObjectsFragment | null;
1233
+ custom_fields: Array<CustomFieldFragment>;
1234
+ field_set: ProductFieldSetFragment | null;
1235
+ handle: string;
1236
+ id: string;
1237
+ maximum_quantity: number | null;
1238
+ meta_description: string;
1239
+ meta_title: string;
1240
+ min_currency_prices: Array<MinCurrencyPriceFragment>;
1241
+ min_price: number;
1242
+ minimum_quantity: number | null;
1243
+ no_count: number;
1244
+ published_at: string | null;
1245
+ raw_content: string;
1246
+ recommended_no_count: number;
1247
+ recommended_yes_count: number;
1248
+ return_mode: ProductReturnMode;
1249
+ review_count: number;
1250
+ review_dimension_set: ReviewDimensionSetFragment | null;
1251
+ subscription_only: boolean;
1252
+ subscription_plans: Array<SubscriptionPlanFragment>;
1253
+ tiered_pricing_mode: TieredPricingMode;
1254
+ title: string;
1255
+ updated_at: string;
1256
+ variants: Array<CommonCartVariantFragment | null> | null;
1257
+ yes_count: number;
1258
+ }
1259
+ export interface ReviewSettingsFragment {
1260
+ default_review_dimension_set: ReviewDimensionSetFragment | null;
1261
+ }
1262
+ export interface SearchProductFragment {
1263
+ average_score: number;
1264
+ handle: string;
1265
+ id: string;
1266
+ return_mode: ProductReturnMode;
1267
+ review_count: number;
1268
+ subscription_only: boolean;
1269
+ subscription_plans: Array<SubscriptionPlanFragment>;
1270
+ tiered_pricing_mode: TieredPricingMode;
1271
+ title: string;
1272
+ variants: Array<CommonCartVariantFragment | null> | null;
1273
+ }
1274
+ export interface ShopFragment {
1275
+ app_domain: string;
1276
+ created_at: string;
1277
+ currency: string;
1278
+ customer_oauth_providers: Array<CustomerOAuthProviderFragment>;
1279
+ customer_service_email: string;
1280
+ id: string;
1281
+ name: string;
1282
+ primary_domain: {
1283
+ domain: string;
1284
+ id: string;
1285
+ } | null;
1286
+ product_review_enabled: boolean;
1287
+ tax_label: string;
1288
+ timezone: string;
1289
+ tips_enabled: boolean;
1290
+ tips_variant: {
1291
+ id: string;
1292
+ } | null;
1293
+ }
1294
+ export interface SubscriptionPlanFragment {
1295
+ align_day_of_month: {
1296
+ value: number;
1297
+ } | null;
1298
+ align_day_of_week: {
1299
+ value: number;
1300
+ } | null;
1301
+ align_hour: {
1302
+ value: number;
1303
+ } | null;
1304
+ align_month: {
1305
+ value: number;
1306
+ } | null;
1307
+ billing_interval_count: number;
1308
+ discountable: boolean;
1309
+ fulfillment_interval_count: number;
1310
+ interval: SubscriptionPlanInterval;
1311
+ limit: number;
1312
+ price1: number;
1313
+ price1_percentage: number;
1314
+ price1_type: SubscriptionPlanPriceType;
1315
+ price2: number;
1316
+ price2_percentage: number;
1317
+ price2_type: SubscriptionPlanPriceType;
1318
+ }
1319
+ export interface SurveyQuestionFragment {
1320
+ answers: Array<string>;
1321
+ id: string;
1322
+ kind: SurveyQuestionKind;
1323
+ meta: string;
1324
+ name: string;
1325
+ }
1326
+ export interface TieredPricingFragment {
1327
+ model: TieredPricingModel;
1328
+ tiers: Array<TieredPricingTierFragment>;
1329
+ }
1330
+ export interface TieredPricingTierFragment {
1331
+ from: number;
1332
+ price: number;
1333
+ to: number;
1334
+ }
1335
+ export interface VariantOptionFragment {
1336
+ option_id: string;
1337
+ option_name: string;
1338
+ option_value_id: string;
1339
+ option_value_name: string;
1340
+ }
1341
+ export interface ApplyGiftCardMutation {
1342
+ storefrontCustomerBalanceApplyGiftCard: boolean | null;
1343
+ }
1344
+ export interface ApplyGiftCardMutationVariables {
1345
+ data: ApplyGiftCard;
1346
+ shopID: string;
1347
+ }
1348
+ export interface ApplyGiftCardMutationMeta {
1349
+ __opType: ApplyGiftCardMutation;
1350
+ __opVariablesType: ApplyGiftCardMutationVariables;
1351
+ __tag: "graphql-operation";
1352
+ }
1353
+ export interface AuthRequestMutation {
1354
+ storefrontAuthRequest: {
1355
+ url: string;
1356
+ } | null;
1357
+ }
1358
+ export interface AuthRequestMutationVariables {
1359
+ provider: CustomerOAuthProviderKind;
1360
+ shopID: string;
1361
+ }
1362
+ export interface AuthRequestMutationMeta {
1363
+ __opType: AuthRequestMutation;
1364
+ __opVariablesType: AuthRequestMutationVariables;
1365
+ __tag: "graphql-operation";
1366
+ }
1367
+ export interface CancelOrderMutation {
1368
+ result: {
1369
+ id: string;
1370
+ } | null;
1371
+ }
1372
+ export interface CancelOrderMutationVariables {
1373
+ id: string;
1374
+ shopID: string;
1375
+ }
1376
+ export interface CancelOrderMutationMeta {
1377
+ __opType: CancelOrderMutation;
1378
+ __opVariablesType: CancelOrderMutationVariables;
1379
+ __tag: "graphql-operation";
1380
+ }
1381
+ export interface CancelSubscriptionMutation {
1382
+ result: {
1383
+ id: string;
1384
+ } | null;
1385
+ }
1386
+ export interface CancelSubscriptionMutationVariables {
1387
+ shopID: string;
1388
+ subscriptionID: string;
1389
+ }
1390
+ export interface CancelSubscriptionMutationMeta {
1391
+ __opType: CancelSubscriptionMutation;
1392
+ __opVariablesType: CancelSubscriptionMutationVariables;
1393
+ __tag: "graphql-operation";
1394
+ }
1395
+ export interface ConnectOAuth2Mutation {
1396
+ storefrontCustomersOauth: boolean | null;
1397
+ }
1398
+ export interface ConnectOAuth2MutationVariables {
1399
+ code?: string | null;
1400
+ provider: CustomerOAuthProviderKind;
1401
+ shopID: string;
1402
+ token?: string | null;
1403
+ verifier?: string | null;
1404
+ }
1405
+ export interface ConnectOAuth2MutationMeta {
1406
+ __opType: ConnectOAuth2Mutation;
1407
+ __opVariablesType: ConnectOAuth2MutationVariables;
1408
+ __tag: "graphql-operation";
1409
+ }
1410
+ export interface CreateCartMutation {
1411
+ orders: Array<CartOrderFragment> | null;
1412
+ }
1413
+ export interface CreateCartMutationVariables {
1414
+ data: StorefrontOrderCreate;
1415
+ shopID: string;
1416
+ }
1417
+ export interface CreateCartMutationMeta {
1418
+ __opType: CreateCartMutation;
1419
+ __opVariablesType: CreateCartMutationVariables;
1420
+ __tag: "graphql-operation";
1421
+ }
1422
+ export interface CreateFavoriteMutation {
1423
+ storefrontFavoritesCreate: Array<CustomerFavoriteFragment> | null;
1424
+ }
1425
+ export interface CreateFavoriteMutationVariables {
1426
+ data: StorefrontCustomerFavoriteCreate;
1427
+ shopID: string;
1428
+ }
1429
+ export interface CreateFavoriteMutationMeta {
1430
+ __opType: CreateFavoriteMutation;
1431
+ __opVariablesType: CreateFavoriteMutationVariables;
1432
+ __tag: "graphql-operation";
1433
+ }
1434
+ export interface CreateFileMutation {
1435
+ storefrontFilesCreate: Array<FileForUploadFragment> | null;
1436
+ }
1437
+ export interface CreateFileMutationVariables {
1438
+ data: FileCreate;
1439
+ shopID: string;
1440
+ }
1441
+ export interface CreateFileMutationMeta {
1442
+ __opType: CreateFileMutation;
1443
+ __opVariablesType: CreateFileMutationVariables;
1444
+ __tag: "graphql-operation";
1445
+ }
1446
+ export interface CreatePaymentSourceMutation {
1447
+ storefrontPaymentSourcesCreate: Array<CustomerPaymentSourceFragment> | null;
1448
+ }
1449
+ export interface CreatePaymentSourceMutationVariables {
1450
+ data: CustomerPaymentSourceCreate;
1451
+ shopID: string;
1452
+ }
1453
+ export interface CreatePaymentSourceMutationMeta {
1454
+ __opType: CreatePaymentSourceMutation;
1455
+ __opVariablesType: CreatePaymentSourceMutationVariables;
1456
+ __tag: "graphql-operation";
1457
+ }
1458
+ export interface CreateProductQuestionAnswerMutation {
1459
+ questionAnswers: Array<{
1460
+ id: string;
1461
+ }> | null;
1462
+ }
1463
+ export interface CreateProductQuestionAnswerMutationVariables {
1464
+ data: AnswerCreate;
1465
+ questionID: string;
1466
+ shopID: string;
1467
+ }
1468
+ export interface CreateProductQuestionAnswerMutationMeta {
1469
+ __opType: CreateProductQuestionAnswerMutation;
1470
+ __opVariablesType: CreateProductQuestionAnswerMutationVariables;
1471
+ __tag: "graphql-operation";
1472
+ }
1473
+ export interface CreateProductQuestionMutation {
1474
+ questions: Array<ProductQuestionFragment> | null;
1475
+ }
1476
+ export interface CreateProductQuestionMutationVariables {
1477
+ data: StorefrontProductQuestionCreate;
1478
+ shopID: string;
1479
+ }
1480
+ export interface CreateProductQuestionMutationMeta {
1481
+ __opType: CreateProductQuestionMutation;
1482
+ __opVariablesType: CreateProductQuestionMutationVariables;
1483
+ __tag: "graphql-operation";
1484
+ }
1485
+ export interface CreateProductReviewMutation {
1486
+ reviews: Array<ProductReviewFragment> | null;
1487
+ }
1488
+ export interface CreateProductReviewMutationVariables {
1489
+ data: StorefrontProductReviewCreate;
1490
+ shopID: string;
1491
+ }
1492
+ export interface CreateProductReviewMutationMeta {
1493
+ __opType: CreateProductReviewMutation;
1494
+ __opVariablesType: CreateProductReviewMutationVariables;
1495
+ __tag: "graphql-operation";
1496
+ }
1497
+ export interface CreateReturnMutation {
1498
+ storefrontReturnsCreate: Array<CustomerReturnBriefFragment> | null;
1499
+ }
1500
+ export interface CreateReturnMutationVariables {
1501
+ data: ReturnCreate;
1502
+ shopID: string;
1503
+ }
1504
+ export interface CreateReturnMutationMeta {
1505
+ __opType: CreateReturnMutation;
1506
+ __opVariablesType: CreateReturnMutationVariables;
1507
+ __tag: "graphql-operation";
1508
+ }
1509
+ export interface DeleteFavoriteMutation {
1510
+ storefrontFavoritesDelete: boolean | null;
1511
+ }
1512
+ export interface DeleteFavoriteMutationVariables {
1513
+ id: string;
1514
+ shopID: string;
1515
+ }
1516
+ export interface DeleteFavoriteMutationMeta {
1517
+ __opType: DeleteFavoriteMutation;
1518
+ __opVariablesType: DeleteFavoriteMutationVariables;
1519
+ __tag: "graphql-operation";
1520
+ }
1521
+ export interface DeletePaymentSourceMutation {
1522
+ storefrontPaymentSourcesDelete: boolean | null;
1523
+ }
1524
+ export interface DeletePaymentSourceMutationVariables {
1525
+ id: string;
1526
+ shopID: string;
1527
+ }
1528
+ export interface DeletePaymentSourceMutationMeta {
1529
+ __opType: DeletePaymentSourceMutation;
1530
+ __opVariablesType: DeletePaymentSourceMutationVariables;
1531
+ __tag: "graphql-operation";
1532
+ }
1533
+ export interface DeleteProductQuestionAnswerMutation {
1534
+ questionAnswers: boolean | null;
1535
+ }
1536
+ export interface DeleteProductQuestionAnswerMutationVariables {
1537
+ questionAnswerID: string;
1538
+ shopID: string;
1539
+ }
1540
+ export interface DeleteProductQuestionAnswerMutationMeta {
1541
+ __opType: DeleteProductQuestionAnswerMutation;
1542
+ __opVariablesType: DeleteProductQuestionAnswerMutationVariables;
1543
+ __tag: "graphql-operation";
1544
+ }
1545
+ export interface DeleteProductQuestionMutation {
1546
+ questions: boolean | null;
1547
+ }
1548
+ export interface DeleteProductQuestionMutationVariables {
1549
+ questionID: string;
1550
+ shopID: string;
1551
+ }
1552
+ export interface DeleteProductQuestionMutationMeta {
1553
+ __opType: DeleteProductQuestionMutation;
1554
+ __opVariablesType: DeleteProductQuestionMutationVariables;
1555
+ __tag: "graphql-operation";
1556
+ }
1557
+ export interface DeleteProductReviewMutation {
1558
+ reviews: boolean | null;
1559
+ }
1560
+ export interface DeleteProductReviewMutationVariables {
1561
+ reviewID: string;
1562
+ shopID: string;
1563
+ }
1564
+ export interface DeleteProductReviewMutationMeta {
1565
+ __opType: DeleteProductReviewMutation;
1566
+ __opVariablesType: DeleteProductReviewMutationVariables;
1567
+ __tag: "graphql-operation";
1568
+ }
1569
+ export interface DisconnectOAuth2Mutation {
1570
+ storefrontCustomersOauthDelete: boolean | null;
1571
+ }
1572
+ export interface DisconnectOAuth2MutationVariables {
1573
+ shopID: string;
1574
+ }
1575
+ export interface DisconnectOAuth2MutationMeta {
1576
+ __opType: DisconnectOAuth2Mutation;
1577
+ __opVariablesType: DisconnectOAuth2MutationVariables;
1578
+ __tag: "graphql-operation";
1579
+ }
1580
+ export interface EditSubscriptionMutation {
1581
+ result: {
1582
+ id: string;
1583
+ } | null;
1584
+ }
1585
+ export interface EditSubscriptionMutationVariables {
1586
+ data: SubscriptionEdit;
1587
+ shopID: string;
1588
+ subscriptionID: string;
1589
+ }
1590
+ export interface EditSubscriptionMutationMeta {
1591
+ __opType: EditSubscriptionMutation;
1592
+ __opVariablesType: EditSubscriptionMutationVariables;
1593
+ __tag: "graphql-operation";
1594
+ }
1595
+ export interface FileUploadedMutation {
1596
+ storefrontFilesUploaded: FileForUploadFragment | null;
1597
+ }
1598
+ export interface FileUploadedMutationVariables {
1599
+ fileID: string;
1600
+ shopID: string;
1601
+ }
1602
+ export interface FileUploadedMutationMeta {
1603
+ __opType: FileUploadedMutation;
1604
+ __opVariablesType: FileUploadedMutationVariables;
1605
+ __tag: "graphql-operation";
1606
+ }
1607
+ export interface FlagQuestionAnswerMutation {
1608
+ questionAnswers: boolean | null;
1609
+ }
1610
+ export interface FlagQuestionAnswerMutationVariables {
1611
+ delete?: boolean | null;
1612
+ questionAnswerID: string;
1613
+ shopID: string;
1614
+ }
1615
+ export interface FlagQuestionAnswerMutationMeta {
1616
+ __opType: FlagQuestionAnswerMutation;
1617
+ __opVariablesType: FlagQuestionAnswerMutationVariables;
1618
+ __tag: "graphql-operation";
1619
+ }
1620
+ export interface FlagQuestionMutation {
1621
+ questions: boolean | null;
1622
+ }
1623
+ export interface FlagQuestionMutationVariables {
1624
+ delete?: boolean | null;
1625
+ questionID: string;
1626
+ shopID: string;
1627
+ }
1628
+ export interface FlagQuestionMutationMeta {
1629
+ __opType: FlagQuestionMutation;
1630
+ __opVariablesType: FlagQuestionMutationVariables;
1631
+ __tag: "graphql-operation";
1632
+ }
1633
+ export interface FlagReviewAnswerMutation {
1634
+ reviewAnswers: boolean | null;
1635
+ }
1636
+ export interface FlagReviewAnswerMutationVariables {
1637
+ delete?: boolean | null;
1638
+ reviewAnswerID: string;
1639
+ shopID: string;
1640
+ }
1641
+ export interface FlagReviewAnswerMutationMeta {
1642
+ __opType: FlagReviewAnswerMutation;
1643
+ __opVariablesType: FlagReviewAnswerMutationVariables;
1644
+ __tag: "graphql-operation";
1645
+ }
1646
+ export interface FlagReviewMutation {
1647
+ reviews: boolean | null;
1648
+ }
1649
+ export interface FlagReviewMutationVariables {
1650
+ delete?: boolean | null;
1651
+ reviewID: string;
1652
+ shopID: string;
1653
+ }
1654
+ export interface FlagReviewMutationMeta {
1655
+ __opType: FlagReviewMutation;
1656
+ __opVariablesType: FlagReviewMutationVariables;
1657
+ __tag: "graphql-operation";
1658
+ }
1659
+ export interface GetBrandingQuery {
1660
+ storefrontBranding: BrandingFragment | null;
1661
+ }
1662
+ export interface GetBrandingQueryVariables {
1663
+ shopID: string;
1664
+ }
1665
+ export interface GetBrandingQueryMeta {
1666
+ __opType: GetBrandingQuery;
1667
+ __opVariablesType: GetBrandingQueryVariables;
1668
+ __tag: "graphql-operation";
1669
+ }
1670
+ export interface GetCartQuery {
1671
+ orders: Array<CartOrderFragment> | null;
1672
+ }
1673
+ export interface GetCartQueryVariables {
1674
+ id: string;
1675
+ shopID: string;
1676
+ uuid: string;
1677
+ }
1678
+ export interface GetCartQueryMeta {
1679
+ __opType: GetCartQuery;
1680
+ __opVariablesType: GetCartQueryVariables;
1681
+ __tag: "graphql-operation";
1682
+ }
1683
+ export interface GetCustomerAddressesPageDataQuery {
1684
+ analyticsGeoip: IPAndUAInfoFragment | null;
1685
+ countries: Array<InfoCountryFragment> | null;
1686
+ storefrontCustomers: Array<CustomerFragment> | null;
1687
+ }
1688
+ export interface GetCustomerAddressesPageDataQueryVariables {
1689
+ customerID: string;
1690
+ shopID: string;
1691
+ }
1692
+ export interface GetCustomerAddressesPageDataQueryMeta {
1693
+ __opType: GetCustomerAddressesPageDataQuery;
1694
+ __opVariablesType: GetCustomerAddressesPageDataQueryVariables;
1695
+ __tag: "graphql-operation";
1696
+ }
1697
+ export interface GetCustomerBalanceHistoryPageQuery {
1698
+ storefrontCustomerBalanceHistory: {
1699
+ items: Array<CustomerBalanceHistoryFragment>;
1700
+ last_key: string;
1701
+ } | null;
1702
+ }
1703
+ export interface GetCustomerBalanceHistoryPageQueryVariables {
1704
+ currency: string;
1705
+ lastKey: string;
1706
+ shopID: string;
1707
+ }
1708
+ export interface GetCustomerBalanceHistoryPageQueryMeta {
1709
+ __opType: GetCustomerBalanceHistoryPageQuery;
1710
+ __opVariablesType: GetCustomerBalanceHistoryPageQueryVariables;
1711
+ __tag: "graphql-operation";
1712
+ }
1713
+ export interface GetCustomerBalanceQuery {
1714
+ storefrontCustomerBalance: CustomerBalanceFragment | null;
1715
+ storefrontCustomerBalanceHistory: {
1716
+ items: Array<CustomerBalanceHistoryFragment>;
1717
+ last_key: string;
1718
+ } | null;
1719
+ }
1720
+ export interface GetCustomerBalanceQueryVariables {
1721
+ currency: string;
1722
+ shopID: string;
1723
+ }
1724
+ export interface GetCustomerBalanceQueryMeta {
1725
+ __opType: GetCustomerBalanceQuery;
1726
+ __opVariablesType: GetCustomerBalanceQueryVariables;
1727
+ __tag: "graphql-operation";
1728
+ }
1729
+ export interface GetCustomerInfoQuery {
1730
+ customer: Array<CustomerFragment> | null;
1731
+ favorites: Array<CustomerFavoriteShortFragment> | null;
1732
+ }
1733
+ export interface GetCustomerInfoQueryVariables {
1734
+ id: string;
1735
+ shopID: string;
1736
+ }
1737
+ export interface GetCustomerInfoQueryMeta {
1738
+ __opType: GetCustomerInfoQuery;
1739
+ __opVariablesType: GetCustomerInfoQueryVariables;
1740
+ __tag: "graphql-operation";
1741
+ }
1742
+ export interface GetCustomerQuery {
1743
+ storefrontCustomers: Array<CustomerFragment> | null;
1744
+ }
1745
+ export interface GetCustomerQueryVariables {
1746
+ id: string;
1747
+ shopID: string;
1748
+ }
1749
+ export interface GetCustomerQueryMeta {
1750
+ __opType: GetCustomerQuery;
1751
+ __opVariablesType: GetCustomerQueryVariables;
1752
+ __tag: "graphql-operation";
1753
+ }
1754
+ export interface GetFavoritesQuery {
1755
+ storefrontFavorites: Array<CustomerFavoriteFragment> | null;
1756
+ }
1757
+ export interface GetFavoritesQueryVariables {
1758
+ shopID: string;
1759
+ }
1760
+ export interface GetFavoritesQueryMeta {
1761
+ __opType: GetFavoritesQuery;
1762
+ __opVariablesType: GetFavoritesQueryVariables;
1763
+ __tag: "graphql-operation";
1764
+ }
1765
+ export interface GetFileStatusQuery {
1766
+ storefrontFilesStatus: {
1767
+ processed: boolean;
1768
+ result_file: FileForUploadFragment | null;
1769
+ } | null;
1770
+ }
1771
+ export interface GetFileStatusQueryVariables {
1772
+ fileID: string;
1773
+ shopID: string;
1774
+ }
1775
+ export interface GetFileStatusQueryMeta {
1776
+ __opType: GetFileStatusQuery;
1777
+ __opVariablesType: GetFileStatusQueryVariables;
1778
+ __tag: "graphql-operation";
1779
+ }
1780
+ export interface GetGatewaysQuery {
1781
+ storefrontGateways: Array<GatewayFragment> | null;
1782
+ }
1783
+ export interface GetGatewaysQueryVariables {
1784
+ shopID: string;
1785
+ }
1786
+ export interface GetGatewaysQueryMeta {
1787
+ __opType: GetGatewaysQuery;
1788
+ __opVariablesType: GetGatewaysQueryVariables;
1789
+ __tag: "graphql-operation";
1790
+ }
1791
+ export interface GetInfoCurrenciesQuery {
1792
+ infoCurrencies: Array<InfoCurrencyFragment> | null;
1793
+ }
1794
+ export interface GetInfoCurrenciesQueryVariables {
1795
+ }
1796
+ export interface GetInfoCurrenciesQueryMeta {
1797
+ __opType: GetInfoCurrenciesQuery;
1798
+ __opVariablesType: GetInfoCurrenciesQueryVariables;
1799
+ __tag: "graphql-operation";
1800
+ }
1801
+ export interface GetLastCartQuery {
1802
+ order: CartOrderFragment | null;
1803
+ }
1804
+ export interface GetLastCartQueryVariables {
1805
+ shopID: string;
1806
+ }
1807
+ export interface GetLastCartQueryMeta {
1808
+ __opType: GetLastCartQuery;
1809
+ __opVariablesType: GetLastCartQueryVariables;
1810
+ __tag: "graphql-operation";
1811
+ }
1812
+ export interface GetOrderQuery {
1813
+ storefrontOrders: Array<CustomerOrderFullFragment> | null;
1814
+ }
1815
+ export interface GetOrderQueryVariables {
1816
+ id: string;
1817
+ shopID: string;
1818
+ }
1819
+ export interface GetOrderQueryMeta {
1820
+ __opType: GetOrderQuery;
1821
+ __opVariablesType: GetOrderQueryVariables;
1822
+ __tag: "graphql-operation";
1823
+ }
1824
+ export interface GetOrdersPageQuery {
1825
+ storefrontOrdersPage: {
1826
+ items: Array<CustomerOrderBriefFragment>;
1827
+ last_key: string;
1828
+ } | null;
1829
+ }
1830
+ export interface GetOrdersPageQueryVariables {
1831
+ lastKey: string;
1832
+ shopID: string;
1833
+ }
1834
+ export interface GetOrdersPageQueryMeta {
1835
+ __opType: GetOrdersPageQuery;
1836
+ __opVariablesType: GetOrdersPageQueryVariables;
1837
+ __tag: "graphql-operation";
1838
+ }
1839
+ export interface GetPaymentMethodsPageDataQuery {
1840
+ analyticsGeoip: IPAndUAInfoFragment | null;
1841
+ countries: Array<InfoCountryFragment> | null;
1842
+ storefrontCustomers: Array<CustomerFragment> | null;
1843
+ storefrontPaymentSources: Array<CustomerPaymentSourceFragment> | null;
1844
+ }
1845
+ export interface GetPaymentMethodsPageDataQueryVariables {
1846
+ customerID: string;
1847
+ shopID: string;
1848
+ }
1849
+ export interface GetPaymentMethodsPageDataQueryMeta {
1850
+ __opType: GetPaymentMethodsPageDataQuery;
1851
+ __opVariablesType: GetPaymentMethodsPageDataQueryVariables;
1852
+ __tag: "graphql-operation";
1853
+ }
1854
+ export interface GetProductQuestionsPageQuery {
1855
+ page: ProductQuestionPageFragment | null;
1856
+ }
1857
+ export interface GetProductQuestionsPageQueryVariables {
1858
+ lastKey: string;
1859
+ limit: number;
1860
+ productID?: string | null;
1861
+ shopID: string;
1862
+ }
1863
+ export interface GetProductQuestionsPageQueryMeta {
1864
+ __opType: GetProductQuestionsPageQuery;
1865
+ __opVariablesType: GetProductQuestionsPageQueryVariables;
1866
+ __tag: "graphql-operation";
1867
+ }
1868
+ export interface GetProductReviewImagesPageQuery {
1869
+ page: ReviewImagePageFragment | null;
1870
+ }
1871
+ export interface GetProductReviewImagesPageQueryVariables {
1872
+ lastKey: string;
1873
+ limit: number;
1874
+ productID: string;
1875
+ shopID: string;
1876
+ }
1877
+ export interface GetProductReviewImagesPageQueryMeta {
1878
+ __opType: GetProductReviewImagesPageQuery;
1879
+ __opVariablesType: GetProductReviewImagesPageQueryVariables;
1880
+ __tag: "graphql-operation";
1881
+ }
1882
+ export interface GetProductReviewsPageQuery {
1883
+ page: ProductReviewPageFragment | null;
1884
+ }
1885
+ export interface GetProductReviewsPageQueryVariables {
1886
+ lastKey: string;
1887
+ limit: number;
1888
+ productID?: string | null;
1889
+ shopID: string;
1890
+ }
1891
+ export interface GetProductReviewsPageQueryMeta {
1892
+ __opType: GetProductReviewsPageQuery;
1893
+ __opVariablesType: GetProductReviewsPageQueryVariables;
1894
+ __tag: "graphql-operation";
1895
+ }
1896
+ export interface GetProvincesQuery {
1897
+ provinces: Array<InfoProvinceFragment> | null;
1898
+ }
1899
+ export interface GetProvincesQueryVariables {
1900
+ countryCode: string;
1901
+ shopID: string;
1902
+ }
1903
+ export interface GetProvincesQueryMeta {
1904
+ __opType: GetProvincesQuery;
1905
+ __opVariablesType: GetProvincesQueryVariables;
1906
+ __tag: "graphql-operation";
1907
+ }
1908
+ export interface GetQuestionQuery {
1909
+ questions: Array<ProductQuestionFragment> | null;
1910
+ }
1911
+ export interface GetQuestionQueryVariables {
1912
+ questionID: string;
1913
+ shopID: string;
1914
+ }
1915
+ export interface GetQuestionQueryMeta {
1916
+ __opType: GetQuestionQuery;
1917
+ __opVariablesType: GetQuestionQueryVariables;
1918
+ __tag: "graphql-operation";
1919
+ }
1920
+ export interface GetReturnCreationInfoQuery {
1921
+ returnReasons: Array<ReturnReasonFragment> | null;
1922
+ storefrontOrderFulfillments: Array<CustomerOrderFulfillmentFragment> | null;
1923
+ storefrontOrders: Array<CustomerOrderFullFragment> | null;
1924
+ storefrontReturnsFindPolicy: CustomerReturnPolicyFragment | null;
1925
+ }
1926
+ export interface GetReturnCreationInfoQueryVariables {
1927
+ id: string;
1928
+ shopID: string;
1929
+ }
1930
+ export interface GetReturnCreationInfoQueryMeta {
1931
+ __opType: GetReturnCreationInfoQuery;
1932
+ __opVariablesType: GetReturnCreationInfoQueryVariables;
1933
+ __tag: "graphql-operation";
1934
+ }
1935
+ export interface GetReturnQuery {
1936
+ returnReasons: Array<ReturnReasonFragment> | null;
1937
+ storefrontReturns: Array<CustomerReturnFullFragment> | null;
1938
+ }
1939
+ export interface GetReturnQueryVariables {
1940
+ id: string;
1941
+ shopID: string;
1942
+ }
1943
+ export interface GetReturnQueryMeta {
1944
+ __opType: GetReturnQuery;
1945
+ __opVariablesType: GetReturnQueryVariables;
1946
+ __tag: "graphql-operation";
1947
+ }
1948
+ export interface GetReturnsPageQuery {
1949
+ storefrontReturnsPage: {
1950
+ items: Array<CustomerReturnBriefFragment>;
1951
+ last_key: string;
1952
+ } | null;
1953
+ }
1954
+ export interface GetReturnsPageQueryVariables {
1955
+ lastKey: string;
1956
+ shopID: string;
1957
+ }
1958
+ export interface GetReturnsPageQueryMeta {
1959
+ __opType: GetReturnsPageQuery;
1960
+ __opVariablesType: GetReturnsPageQueryVariables;
1961
+ __tag: "graphql-operation";
1962
+ }
1963
+ export interface GetReviewDimensionsQuery {
1964
+ storefrontReviewDimensions: Array<ReviewDimensionFragment> | null;
1965
+ }
1966
+ export interface GetReviewDimensionsQueryVariables {
1967
+ shopID: string;
1968
+ }
1969
+ export interface GetReviewDimensionsQueryMeta {
1970
+ __opType: GetReviewDimensionsQuery;
1971
+ __opVariablesType: GetReviewDimensionsQueryVariables;
1972
+ __tag: "graphql-operation";
1973
+ }
1974
+ export interface GetReviewQuery {
1975
+ reviews: Array<ProductReviewFragment> | null;
1976
+ }
1977
+ export interface GetReviewQueryVariables {
1978
+ reviewID: string;
1979
+ shopID: string;
1980
+ }
1981
+ export interface GetReviewQueryMeta {
1982
+ __opType: GetReviewQuery;
1983
+ __opVariablesType: GetReviewQueryVariables;
1984
+ __tag: "graphql-operation";
1985
+ }
1986
+ export interface GetReviewSettingsQuery {
1987
+ storefrontProductReviewsSettings: ReviewSettingsFragment | null;
1988
+ }
1989
+ export interface GetReviewSettingsQueryVariables {
1990
+ shopID: string;
1991
+ }
1992
+ export interface GetReviewSettingsQueryMeta {
1993
+ __opType: GetReviewSettingsQuery;
1994
+ __opVariablesType: GetReviewSettingsQueryVariables;
1995
+ __tag: "graphql-operation";
1996
+ }
1997
+ export interface GetShopCurrenciesQuery {
1998
+ storefrontCurrencies: Array<CurrencyFragment> | null;
1999
+ }
2000
+ export interface GetShopCurrenciesQueryVariables {
2001
+ shopID: string;
2002
+ }
2003
+ export interface GetShopCurrenciesQueryMeta {
2004
+ __opType: GetShopCurrenciesQuery;
2005
+ __opVariablesType: GetShopCurrenciesQueryVariables;
2006
+ __tag: "graphql-operation";
2007
+ }
2008
+ export interface GetShopQuery {
2009
+ storefrontShops: Array<ShopFragment> | null;
2010
+ }
2011
+ export interface GetShopQueryVariables {
2012
+ shopID: string;
2013
+ }
2014
+ export interface GetShopQueryMeta {
2015
+ __opType: GetShopQuery;
2016
+ __opVariablesType: GetShopQueryVariables;
2017
+ __tag: "graphql-operation";
2018
+ }
2019
+ export interface GetSubscriptionQuery {
2020
+ storefrontCustomers: Array<CustomerFragment> | null;
2021
+ storefrontPaymentSources: Array<CustomerPaymentSourceFragment> | null;
2022
+ storefrontSubscriptions: Array<CustomerSubscriptionFullFragment> | null;
2023
+ }
2024
+ export interface GetSubscriptionQueryVariables {
2025
+ customerID: string;
2026
+ shopID: string;
2027
+ subscriptionID: string;
2028
+ }
2029
+ export interface GetSubscriptionQueryMeta {
2030
+ __opType: GetSubscriptionQuery;
2031
+ __opVariablesType: GetSubscriptionQueryVariables;
2032
+ __tag: "graphql-operation";
2033
+ }
2034
+ export interface GetSubscriptionsPageQuery {
2035
+ storefrontSubscriptionsPage: {
2036
+ items: Array<CustomerSubscriptionBriefFragment>;
2037
+ last_key: string;
2038
+ } | null;
2039
+ }
2040
+ export interface GetSubscriptionsPageQueryVariables {
2041
+ lastKey: string;
2042
+ shopID: string;
2043
+ }
2044
+ export interface GetSubscriptionsPageQueryMeta {
2045
+ __opType: GetSubscriptionsPageQuery;
2046
+ __opVariablesType: GetSubscriptionsPageQueryVariables;
2047
+ __tag: "graphql-operation";
2048
+ }
2049
+ export interface GetVariantPageQuery {
2050
+ page: {
2051
+ items: Array<CartVariantFragment>;
2052
+ last_key: string;
2053
+ } | null;
2054
+ }
2055
+ export interface GetVariantPageQueryVariables {
2056
+ lastKey: string;
2057
+ limit: number;
2058
+ shopID: string;
2059
+ }
2060
+ export interface GetVariantPageQueryMeta {
2061
+ __opType: GetVariantPageQuery;
2062
+ __opVariablesType: GetVariantPageQueryVariables;
2063
+ __tag: "graphql-operation";
2064
+ }
2065
+ export interface LoadProductNoCustomerQuery {
2066
+ images: ReviewImagePageFragment | null;
2067
+ products: Array<ReviewQuestionProductFragment> | null;
2068
+ questions: {
2069
+ count: number;
2070
+ items: Array<ProductQuestionFragment | null> | null;
2071
+ } | null;
2072
+ reviews: {
2073
+ count: number;
2074
+ items: Array<ProductReviewFragment | null> | null;
2075
+ } | null;
2076
+ settings: ReviewSettingsFragment | null;
2077
+ }
2078
+ export interface LoadProductNoCustomerQueryVariables {
2079
+ productID: string;
2080
+ shopID: string;
2081
+ }
2082
+ export interface LoadProductNoCustomerQueryMeta {
2083
+ __opType: LoadProductNoCustomerQuery;
2084
+ __opVariablesType: LoadProductNoCustomerQueryVariables;
2085
+ __tag: "graphql-operation";
2086
+ }
2087
+ export interface LoadProductQuery {
2088
+ images: ReviewImagePageFragment | null;
2089
+ ownQuestions: ProductQuestionPageFragment | null;
2090
+ ownReviews: ProductReviewPageFragment | null;
2091
+ products: Array<ReviewQuestionProductFragment> | null;
2092
+ questions: {
2093
+ count: number;
2094
+ items: Array<ProductQuestionFragment | null> | null;
2095
+ } | null;
2096
+ reviews: {
2097
+ count: number;
2098
+ items: Array<ProductReviewFragment | null> | null;
2099
+ } | null;
2100
+ settings: ReviewSettingsFragment | null;
2101
+ }
2102
+ export interface LoadProductQueryVariables {
2103
+ customerID: string;
2104
+ productID: string;
2105
+ shopID: string;
2106
+ }
2107
+ export interface LoadProductQueryMeta {
2108
+ __opType: LoadProductQuery;
2109
+ __opVariablesType: LoadProductQueryVariables;
2110
+ __tag: "graphql-operation";
2111
+ }
2112
+ export interface ModifyCartMutation {
2113
+ orders: Array<CartOrderFragment> | null;
2114
+ }
2115
+ export interface ModifyCartMutationVariables {
2116
+ data: StorefrontOrderModify;
2117
+ id: string;
2118
+ shopID: string;
2119
+ updatedAt: string;
2120
+ uuid: string;
2121
+ }
2122
+ export interface ModifyCartMutationMeta {
2123
+ __opType: ModifyCartMutation;
2124
+ __opVariablesType: ModifyCartMutationVariables;
2125
+ __tag: "graphql-operation";
2126
+ }
2127
+ export interface ModifyCustomerMutation {
2128
+ storefrontCustomersModify: Array<CustomerFragment> | null;
2129
+ }
2130
+ export interface ModifyCustomerMutationVariables {
2131
+ data: StorefrontCustomerModify;
2132
+ id: string;
2133
+ shopID: string;
2134
+ }
2135
+ export interface ModifyCustomerMutationMeta {
2136
+ __opType: ModifyCustomerMutation;
2137
+ __opVariablesType: ModifyCustomerMutationVariables;
2138
+ __tag: "graphql-operation";
2139
+ }
2140
+ export interface ModifyFavoriteMutation {
2141
+ storefrontFavoritesModify: Array<CustomerFavoriteFragment> | null;
2142
+ }
2143
+ export interface ModifyFavoriteMutationVariables {
2144
+ data: StorefrontCustomerFavoriteModify;
2145
+ id: string;
2146
+ shopID: string;
2147
+ }
2148
+ export interface ModifyFavoriteMutationMeta {
2149
+ __opType: ModifyFavoriteMutation;
2150
+ __opVariablesType: ModifyFavoriteMutationVariables;
2151
+ __tag: "graphql-operation";
2152
+ }
2153
+ export interface ModifyProductQuestionAnswerMutation {
2154
+ questionAnswers: Array<{
2155
+ id: string;
2156
+ }> | null;
2157
+ }
2158
+ export interface ModifyProductQuestionAnswerMutationVariables {
2159
+ data: AnswerModify;
2160
+ questionAnswerID: string;
2161
+ questionID: string;
2162
+ shopID: string;
2163
+ }
2164
+ export interface ModifyProductQuestionAnswerMutationMeta {
2165
+ __opType: ModifyProductQuestionAnswerMutation;
2166
+ __opVariablesType: ModifyProductQuestionAnswerMutationVariables;
2167
+ __tag: "graphql-operation";
2168
+ }
2169
+ export interface ModifyProductQuestionMutation {
2170
+ questions: Array<ProductQuestionFragment> | null;
2171
+ }
2172
+ export interface ModifyProductQuestionMutationVariables {
2173
+ data: StorefrontProductQuestionModify;
2174
+ questionID: string;
2175
+ shopID: string;
2176
+ }
2177
+ export interface ModifyProductQuestionMutationMeta {
2178
+ __opType: ModifyProductQuestionMutation;
2179
+ __opVariablesType: ModifyProductQuestionMutationVariables;
2180
+ __tag: "graphql-operation";
2181
+ }
2182
+ export interface ModifyProductReviewMutation {
2183
+ reviews: Array<ProductReviewFragment> | null;
2184
+ }
2185
+ export interface ModifyProductReviewMutationVariables {
2186
+ data: StorefrontProductReviewModify;
2187
+ reviewID: string;
2188
+ shopID: string;
2189
+ }
2190
+ export interface ModifyProductReviewMutationMeta {
2191
+ __opType: ModifyProductReviewMutation;
2192
+ __opVariablesType: ModifyProductReviewMutationVariables;
2193
+ __tag: "graphql-operation";
2194
+ }
2195
+ export interface NewPasswordMutation {
2196
+ storefrontAuthPasswordComplete: boolean | null;
2197
+ }
2198
+ export interface NewPasswordMutationVariables {
2199
+ data: CustomerPasswordResetComplete;
2200
+ shopID: string;
2201
+ }
2202
+ export interface NewPasswordMutationMeta {
2203
+ __opType: NewPasswordMutation;
2204
+ __opVariablesType: NewPasswordMutationVariables;
2205
+ __tag: "graphql-operation";
2206
+ }
2207
+ export interface PauseSubscriptionMutation {
2208
+ result: {
2209
+ id: string;
2210
+ } | null;
2211
+ }
2212
+ export interface PauseSubscriptionMutationVariables {
2213
+ shopID: string;
2214
+ subscriptionID: string;
2215
+ }
2216
+ export interface PauseSubscriptionMutationMeta {
2217
+ __opType: PauseSubscriptionMutation;
2218
+ __opVariablesType: PauseSubscriptionMutationVariables;
2219
+ __tag: "graphql-operation";
2220
+ }
2221
+ export interface ResetPasswordMutation {
2222
+ storefrontAuthPasswordReset: boolean | null;
2223
+ }
2224
+ export interface ResetPasswordMutationVariables {
2225
+ data: CustomerPasswordReset;
2226
+ shopID: string;
2227
+ }
2228
+ export interface ResetPasswordMutationMeta {
2229
+ __opType: ResetPasswordMutation;
2230
+ __opVariablesType: ResetPasswordMutationVariables;
2231
+ __tag: "graphql-operation";
2232
+ }
2233
+ export interface ResumeSubscriptionMutation {
2234
+ result: {
2235
+ id: string;
2236
+ } | null;
2237
+ }
2238
+ export interface ResumeSubscriptionMutationVariables {
2239
+ shopID: string;
2240
+ subscriptionID: string;
2241
+ }
2242
+ export interface ResumeSubscriptionMutationMeta {
2243
+ __opType: ResumeSubscriptionMutation;
2244
+ __opVariablesType: ResumeSubscriptionMutationVariables;
2245
+ __tag: "graphql-operation";
2246
+ }
2247
+ export interface SearchProductsAdvancedQuery {
2248
+ search: ProductSearchResultFragment | null;
2249
+ }
2250
+ export interface SearchProductsAdvancedQueryVariables {
2251
+ aggregations: boolean;
2252
+ data: Array<SearchOption>;
2253
+ lastKey: string;
2254
+ limit: number;
2255
+ shopID: string;
2256
+ sortBy: SearchProductsSortBy;
2257
+ sortDesc: boolean;
2258
+ }
2259
+ export interface SearchProductsAdvancedQueryMeta {
2260
+ __opType: SearchProductsAdvancedQuery;
2261
+ __opVariablesType: SearchProductsAdvancedQueryVariables;
2262
+ __tag: "graphql-operation";
2263
+ }
2264
+ export interface SearchProductsQuery {
2265
+ search: {
2266
+ count: number;
2267
+ items: Array<SearchProductFragment | null> | null;
2268
+ } | null;
2269
+ }
2270
+ export interface SearchProductsQueryVariables {
2271
+ query: string;
2272
+ shopID: string;
2273
+ }
2274
+ export interface SearchProductsQueryMeta {
2275
+ __opType: SearchProductsQuery;
2276
+ __opVariablesType: SearchProductsQueryVariables;
2277
+ __tag: "graphql-operation";
2278
+ }
2279
+ export interface SearchQuestionsQuery {
2280
+ questions: {
2281
+ count: number;
2282
+ items: Array<ProductQuestionFragment | null> | null;
2283
+ } | null;
2284
+ }
2285
+ export interface SearchQuestionsQueryVariables {
2286
+ limit: number;
2287
+ notCustomerID?: string | null;
2288
+ offset: number;
2289
+ productID: string;
2290
+ shopID: string;
2291
+ sortBy: SearchQuestionsSortBy;
2292
+ sortDesc: boolean;
2293
+ }
2294
+ export interface SearchQuestionsQueryMeta {
2295
+ __opType: SearchQuestionsQuery;
2296
+ __opVariablesType: SearchQuestionsQueryVariables;
2297
+ __tag: "graphql-operation";
2298
+ }
2299
+ export interface SearchReviewsQuery {
2300
+ reviews: {
2301
+ count: number;
2302
+ items: Array<ProductReviewFragment | null> | null;
2303
+ } | null;
2304
+ }
2305
+ export interface SearchReviewsQueryVariables {
2306
+ limit: number;
2307
+ notCustomerID?: string | null;
2308
+ offset: number;
2309
+ productID: string;
2310
+ shopID: string;
2311
+ sortBy: SearchReviewsSortBy;
2312
+ sortDesc: boolean;
2313
+ }
2314
+ export interface SearchReviewsQueryMeta {
2315
+ __opType: SearchReviewsQuery;
2316
+ __opVariablesType: SearchReviewsQueryVariables;
2317
+ __tag: "graphql-operation";
2318
+ }
2319
+ export interface SignInMutation {
2320
+ storefrontAuthLogin: {
2321
+ customer_id: string;
2322
+ token: string;
2323
+ } | null;
2324
+ }
2325
+ export interface SignInMutationVariables {
2326
+ data: CustomerLogin;
2327
+ shopID: string;
2328
+ }
2329
+ export interface SignInMutationMeta {
2330
+ __opType: SignInMutation;
2331
+ __opVariablesType: SignInMutationVariables;
2332
+ __tag: "graphql-operation";
2333
+ }
2334
+ export interface SignInViaEmailCompleteMutation {
2335
+ storefrontAuthEmailLoginComplete: {
2336
+ customer_id: string;
2337
+ token: string;
2338
+ } | null;
2339
+ }
2340
+ export interface SignInViaEmailCompleteMutationVariables {
2341
+ data: CustomerEmailLogin;
2342
+ shopID: string;
2343
+ }
2344
+ export interface SignInViaEmailCompleteMutationMeta {
2345
+ __opType: SignInViaEmailCompleteMutation;
2346
+ __opVariablesType: SignInViaEmailCompleteMutationVariables;
2347
+ __tag: "graphql-operation";
2348
+ }
2349
+ export interface SignInViaEmailInitMutation {
2350
+ storefrontAuthEmailLoginInit: boolean | null;
2351
+ }
2352
+ export interface SignInViaEmailInitMutationVariables {
2353
+ data: CustomerLogin;
2354
+ shopID: string;
2355
+ }
2356
+ export interface SignInViaEmailInitMutationMeta {
2357
+ __opType: SignInViaEmailInitMutation;
2358
+ __opVariablesType: SignInViaEmailInitMutationVariables;
2359
+ __tag: "graphql-operation";
2360
+ }
2361
+ export interface SignUpMutation {
2362
+ storefrontCustomersCreate: Array<{
2363
+ id: string;
2364
+ token: string | null;
2365
+ }> | null;
2366
+ }
2367
+ export interface SignUpMutationVariables {
2368
+ data: StorefrontCustomerCreate;
2369
+ shopID: string;
2370
+ }
2371
+ export interface SignUpMutationMeta {
2372
+ __opType: SignUpMutation;
2373
+ __opVariablesType: SignUpMutationVariables;
2374
+ __tag: "graphql-operation";
2375
+ }
2376
+ export interface SkipNextSubscriptionMutation {
2377
+ result: {
2378
+ id: string;
2379
+ } | null;
2380
+ }
2381
+ export interface SkipNextSubscriptionMutationVariables {
2382
+ shopID: string;
2383
+ subscriptionID: string;
2384
+ }
2385
+ export interface SkipNextSubscriptionMutationMeta {
2386
+ __opType: SkipNextSubscriptionMutation;
2387
+ __opVariablesType: SkipNextSubscriptionMutationVariables;
2388
+ __tag: "graphql-operation";
2389
+ }
2390
+ export interface UploadFileMutation {
2391
+ storefrontFilesUpload: {
2392
+ url: string;
2393
+ } | null;
2394
+ }
2395
+ export interface UploadFileMutationVariables {
2396
+ fileID: string;
2397
+ shopID: string;
2398
+ }
2399
+ export interface UploadFileMutationMeta {
2400
+ __opType: UploadFileMutation;
2401
+ __opVariablesType: UploadFileMutationVariables;
2402
+ __tag: "graphql-operation";
2403
+ }
2404
+ export interface VerifyCodeMutation {
2405
+ storefrontAuthPasswordVerify: boolean | null;
2406
+ }
2407
+ export interface VerifyCodeMutationVariables {
2408
+ data: CustomerPasswordResetVerify;
2409
+ shopID: string;
2410
+ }
2411
+ export interface VerifyCodeMutationMeta {
2412
+ __opType: VerifyCodeMutation;
2413
+ __opVariablesType: VerifyCodeMutationVariables;
2414
+ __tag: "graphql-operation";
2415
+ }
2416
+ export interface VoteQuestionAnswerMutation {
2417
+ questionAnswers: boolean | null;
2418
+ }
2419
+ export interface VoteQuestionAnswerMutationVariables {
2420
+ delete?: boolean | null;
2421
+ questionAnswerID: string;
2422
+ shopID: string;
2423
+ y: boolean;
2424
+ }
2425
+ export interface VoteQuestionAnswerMutationMeta {
2426
+ __opType: VoteQuestionAnswerMutation;
2427
+ __opVariablesType: VoteQuestionAnswerMutationVariables;
2428
+ __tag: "graphql-operation";
2429
+ }
2430
+ export interface VoteQuestionMutation {
2431
+ questions: boolean | null;
2432
+ }
2433
+ export interface VoteQuestionMutationVariables {
2434
+ delete?: boolean | null;
2435
+ questionID: string;
2436
+ shopID: string;
2437
+ y: boolean;
2438
+ }
2439
+ export interface VoteQuestionMutationMeta {
2440
+ __opType: VoteQuestionMutation;
2441
+ __opVariablesType: VoteQuestionMutationVariables;
2442
+ __tag: "graphql-operation";
2443
+ }
2444
+ export interface VoteReviewAnswerMutation {
2445
+ reviewAnswers: boolean | null;
2446
+ }
2447
+ export interface VoteReviewAnswerMutationVariables {
2448
+ delete?: boolean | null;
2449
+ reviewAnswerID: string;
2450
+ shopID: string;
2451
+ y: boolean;
2452
+ }
2453
+ export interface VoteReviewAnswerMutationMeta {
2454
+ __opType: VoteReviewAnswerMutation;
2455
+ __opVariablesType: VoteReviewAnswerMutationVariables;
2456
+ __tag: "graphql-operation";
2457
+ }
2458
+ export interface VoteReviewMutation {
2459
+ reviews: boolean | null;
2460
+ }
2461
+ export interface VoteReviewMutationVariables {
2462
+ delete?: boolean | null;
2463
+ reviewID: string;
2464
+ shopID: string;
2465
+ y: boolean;
2466
+ }
2467
+ export interface VoteReviewMutationMeta {
2468
+ __opType: VoteReviewMutation;
2469
+ __opVariablesType: VoteReviewMutationVariables;
2470
+ __tag: "graphql-operation";
2471
+ }