@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.
- package/CHANGELOG.md +531 -0
- package/cjs/actionLock.js +31 -0
- package/cjs/addEmptyListItem.js +7 -0
- package/cjs/aggregateOptions.js +178 -0
- package/cjs/analytics.js +90 -0
- package/cjs/analyticsProductData.js +33 -0
- package/cjs/arrayToDict.js +12 -0
- package/cjs/asyncModuleWrapper.js +52 -0
- package/cjs/averageReviewScore.js +45 -0
- package/cjs/buildconfig.js +16 -0
- package/cjs/cachedLoader.js +36 -0
- package/cjs/canonicalVariantURL.js +2 -0
- package/cjs/cartOperation.js +132 -0
- package/cjs/categorySEO.js +20 -0
- package/cjs/commonTypes.js +2 -0
- package/cjs/compact.js +8 -0
- package/cjs/configLoader.js +69 -0
- package/cjs/controlledQueue.js +46 -0
- package/cjs/convertImageURL.js +19 -0
- package/cjs/dataLoader.js +185 -0
- package/cjs/defaultVariant.js +30 -0
- package/cjs/effector/clearOnChangeAfterDelay.js +17 -0
- package/cjs/effector/combineEvery.js +8 -0
- package/cjs/effector/combineSome.js +8 -0
- package/cjs/effector/debounced.js +18 -0
- package/cjs/effector/form.js +168 -0
- package/cjs/effector/hideOnChangeAfterDelay.js +17 -0
- package/cjs/effector/requestResponse.js +30 -0
- package/cjs/effector/requestResponseMulti.js +51 -0
- package/cjs/effector/restoreNamed.js +8 -0
- package/cjs/effector/split.js +29 -0
- package/cjs/effector/validator.js +33 -0
- package/cjs/effector/wrapSignInRequired.js +13 -0
- package/cjs/exceptions.js +6 -0
- package/cjs/fetchAllItems.js +56 -0
- package/cjs/file.js +83 -0
- package/cjs/fileWebsocket.js +83 -0
- package/cjs/filterFunc.js +48 -0
- package/cjs/filterFuncBrand.js +12 -0
- package/cjs/filterFuncCategory.js +12 -0
- package/cjs/filterFuncContentBlock.js +19 -0
- package/cjs/filterFuncCustomer.js +161 -0
- package/cjs/filterFuncDataFeed.js +54 -0
- package/cjs/filterFuncOrder.js +334 -0
- package/cjs/filterFuncPreprocess.js +14 -0
- package/cjs/filterFuncProduct.js +70 -0
- package/cjs/filterFuncPurchaseOrder.js +126 -0
- package/cjs/filterFuncSupplier.js +36 -0
- package/cjs/filterFuncTransfer.js +135 -0
- package/cjs/formatAbbrevNumber.js +21 -0
- package/cjs/formatCurrency.js +47 -0
- package/cjs/formatToJSX.js +123 -0
- package/cjs/fulfillmentNumber.js +7 -0
- package/cjs/generateRandomToken.js +12 -0
- package/cjs/generateUUID.js +10 -0
- package/cjs/generated/codes.js +47 -0
- package/cjs/genericFile.js +73 -0
- package/cjs/getSalesChannelID.js +13 -0
- package/cjs/getSessionID.js +13 -0
- package/cjs/getTimezone.js +12 -0
- package/cjs/graphql/fragments/Branding.js +3 -0
- package/cjs/graphql/fragments/BrandingField.js +3 -0
- package/cjs/graphql/fragments/CartCustomItem.js +3 -0
- package/cjs/graphql/fragments/CartOrder.js +3 -0
- package/cjs/graphql/fragments/CartVariant.js +3 -0
- package/cjs/graphql/fragments/CartVariantFull.js +3 -0
- package/cjs/graphql/fragments/Category.js +3 -0
- package/cjs/graphql/fragments/CommonCartVariant.js +3 -0
- package/cjs/graphql/fragments/Currency.js +3 -0
- package/cjs/graphql/fragments/CurrencyPrice.js +3 -0
- package/cjs/graphql/fragments/CustomField.js +3 -0
- package/cjs/graphql/fragments/CustomFieldObjects.js +3 -0
- package/cjs/graphql/fragments/Customer.js +3 -0
- package/cjs/graphql/fragments/CustomerBalance.js +3 -0
- package/cjs/graphql/fragments/CustomerBalanceHistory.js +3 -0
- package/cjs/graphql/fragments/CustomerFavorite.js +3 -0
- package/cjs/graphql/fragments/CustomerFavoriteShort.js +3 -0
- package/cjs/graphql/fragments/CustomerOAuthProvider.js +3 -0
- package/cjs/graphql/fragments/CustomerOrderBrief.js +3 -0
- package/cjs/graphql/fragments/CustomerOrderFulfillment.js +3 -0
- package/cjs/graphql/fragments/CustomerOrderFull.js +3 -0
- package/cjs/graphql/fragments/CustomerPaymentSource.js +3 -0
- package/cjs/graphql/fragments/CustomerReturnBrief.js +3 -0
- package/cjs/graphql/fragments/CustomerReturnFull.js +3 -0
- package/cjs/graphql/fragments/CustomerReturnPolicy.js +3 -0
- package/cjs/graphql/fragments/CustomerSubscriptionBrief.js +3 -0
- package/cjs/graphql/fragments/CustomerSubscriptionFull.js +3 -0
- package/cjs/graphql/fragments/File.js +3 -0
- package/cjs/graphql/fragments/FileForUpload.js +3 -0
- package/cjs/graphql/fragments/FileNoFallback.js +3 -0
- package/cjs/graphql/fragments/FullAddress.js +3 -0
- package/cjs/graphql/fragments/Gateway.js +3 -0
- package/cjs/graphql/fragments/GatewayManual.js +3 -0
- package/cjs/graphql/fragments/GatewayPaypal.js +3 -0
- package/cjs/graphql/fragments/GatewayStripe.js +3 -0
- package/cjs/graphql/fragments/GatewayTest.js +3 -0
- package/cjs/graphql/fragments/IPAndUAInfo.js +3 -0
- package/cjs/graphql/fragments/InfoCountry.js +3 -0
- package/cjs/graphql/fragments/InfoCountryDedupField.js +3 -0
- package/cjs/graphql/fragments/InfoCurrency.js +3 -0
- package/cjs/graphql/fragments/InfoProvince.js +3 -0
- package/cjs/graphql/fragments/KeyValue.js +3 -0
- package/cjs/graphql/fragments/LineItemField.js +3 -0
- package/cjs/graphql/fragments/MediaFile.js +3 -0
- package/cjs/graphql/fragments/MinCurrencyPrice.js +3 -0
- package/cjs/graphql/fragments/ProductField.js +3 -0
- package/cjs/graphql/fragments/ProductFieldSet.js +3 -0
- package/cjs/graphql/fragments/ProductFlat.js +3 -0
- package/cjs/graphql/fragments/ProductQuestion.js +3 -0
- package/cjs/graphql/fragments/ProductQuestionAnswer.js +3 -0
- package/cjs/graphql/fragments/ProductQuestionPage.js +3 -0
- package/cjs/graphql/fragments/ProductReview.js +3 -0
- package/cjs/graphql/fragments/ProductReviewAnswer.js +3 -0
- package/cjs/graphql/fragments/ProductReviewAverageScore.js +3 -0
- package/cjs/graphql/fragments/ProductReviewPage.js +3 -0
- package/cjs/graphql/fragments/ProductReviewScore.js +3 -0
- package/cjs/graphql/fragments/ProductReviewSurveyAnswer.js +3 -0
- package/cjs/graphql/fragments/ProductSearchOptionAgg.js +3 -0
- package/cjs/graphql/fragments/ProductSearchResult.js +3 -0
- package/cjs/graphql/fragments/ReturnReason.js +3 -0
- package/cjs/graphql/fragments/ReviewDimension.js +3 -0
- package/cjs/graphql/fragments/ReviewDimensionSet.js +3 -0
- package/cjs/graphql/fragments/ReviewImagePage.js +3 -0
- package/cjs/graphql/fragments/ReviewQuestionProduct.js +3 -0
- package/cjs/graphql/fragments/ReviewSettings.js +3 -0
- package/cjs/graphql/fragments/SearchProduct.js +3 -0
- package/cjs/graphql/fragments/Shop.js +3 -0
- package/cjs/graphql/fragments/SubscriptionPlan.js +3 -0
- package/cjs/graphql/fragments/SurveyQuestion.js +3 -0
- package/cjs/graphql/fragments/TieredPricing.js +3 -0
- package/cjs/graphql/fragments/TieredPricingTier.js +3 -0
- package/cjs/graphql/fragments/VariantOption.js +3 -0
- package/cjs/graphql/operations/ApplyGiftCardMutation.js +3 -0
- package/cjs/graphql/operations/AuthRequestMutation.js +3 -0
- package/cjs/graphql/operations/CancelOrderMutation.js +3 -0
- package/cjs/graphql/operations/CancelSubscriptionMutation.js +3 -0
- package/cjs/graphql/operations/ConnectOAuth2Mutation.js +3 -0
- package/cjs/graphql/operations/CreateCartMutation.js +26 -0
- package/cjs/graphql/operations/CreateFavoriteMutation.js +22 -0
- package/cjs/graphql/operations/CreateFileMutation.js +6 -0
- package/cjs/graphql/operations/CreatePaymentSourceMutation.js +6 -0
- package/cjs/graphql/operations/CreateProductQuestionAnswerMutation.js +3 -0
- package/cjs/graphql/operations/CreateProductQuestionMutation.js +8 -0
- package/cjs/graphql/operations/CreateProductReviewMutation.js +18 -0
- package/cjs/graphql/operations/CreateReturnMutation.js +22 -0
- package/cjs/graphql/operations/DeleteFavoriteMutation.js +3 -0
- package/cjs/graphql/operations/DeletePaymentSourceMutation.js +3 -0
- package/cjs/graphql/operations/DeleteProductQuestionAnswerMutation.js +3 -0
- package/cjs/graphql/operations/DeleteProductQuestionMutation.js +3 -0
- package/cjs/graphql/operations/DeleteProductReviewMutation.js +3 -0
- package/cjs/graphql/operations/DisconnectOAuth2Mutation.js +3 -0
- package/cjs/graphql/operations/EditSubscriptionMutation.js +3 -0
- package/cjs/graphql/operations/FileUploadedMutation.js +6 -0
- package/cjs/graphql/operations/FlagQuestionAnswerMutation.js +3 -0
- package/cjs/graphql/operations/FlagQuestionMutation.js +3 -0
- package/cjs/graphql/operations/FlagReviewAnswerMutation.js +3 -0
- package/cjs/graphql/operations/FlagReviewMutation.js +3 -0
- package/cjs/graphql/operations/GetBrandingQuery.js +10 -0
- package/cjs/graphql/operations/GetCartQuery.js +26 -0
- package/cjs/graphql/operations/GetCustomerAddressesPageDataQuery.js +16 -0
- package/cjs/graphql/operations/GetCustomerBalanceHistoryPageQuery.js +6 -0
- package/cjs/graphql/operations/GetCustomerBalanceQuery.js +8 -0
- package/cjs/graphql/operations/GetCustomerInfoQuery.js +10 -0
- package/cjs/graphql/operations/GetCustomerQuery.js +8 -0
- package/cjs/graphql/operations/GetFavoritesQuery.js +22 -0
- package/cjs/graphql/operations/GetFileStatusQuery.js +6 -0
- package/cjs/graphql/operations/GetGatewaysQuery.js +14 -0
- package/cjs/graphql/operations/GetInfoCurrenciesQuery.js +6 -0
- package/cjs/graphql/operations/GetLastCartQuery.js +26 -0
- package/cjs/graphql/operations/GetOrderQuery.js +30 -0
- package/cjs/graphql/operations/GetOrdersPageQuery.js +24 -0
- package/cjs/graphql/operations/GetPaymentMethodsPageDataQuery.js +18 -0
- package/cjs/graphql/operations/GetProductQuestionsPageQuery.js +10 -0
- package/cjs/graphql/operations/GetProductReviewImagesPageQuery.js +8 -0
- package/cjs/graphql/operations/GetProductReviewsPageQuery.js +20 -0
- package/cjs/graphql/operations/GetProvincesQuery.js +6 -0
- package/cjs/graphql/operations/GetQuestionQuery.js +8 -0
- package/cjs/graphql/operations/GetReturnCreationInfoQuery.js +36 -0
- package/cjs/graphql/operations/GetReturnQuery.js +28 -0
- package/cjs/graphql/operations/GetReturnsPageQuery.js +22 -0
- package/cjs/graphql/operations/GetReviewDimensionsQuery.js +6 -0
- package/cjs/graphql/operations/GetReviewQuery.js +18 -0
- package/cjs/graphql/operations/GetReviewSettingsQuery.js +12 -0
- package/cjs/graphql/operations/GetShopCurrenciesQuery.js +6 -0
- package/cjs/graphql/operations/GetShopQuery.js +8 -0
- package/cjs/graphql/operations/GetSubscriptionQuery.js +36 -0
- package/cjs/graphql/operations/GetSubscriptionsPageQuery.js +22 -0
- package/cjs/graphql/operations/GetVariantPageQuery.js +20 -0
- package/cjs/graphql/operations/LoadProductNoCustomerQuery.js +62 -0
- package/cjs/graphql/operations/LoadProductQuery.js +66 -0
- package/cjs/graphql/operations/ModifyCartMutation.js +26 -0
- package/cjs/graphql/operations/ModifyCustomerMutation.js +8 -0
- package/cjs/graphql/operations/ModifyFavoriteMutation.js +22 -0
- package/cjs/graphql/operations/ModifyProductQuestionAnswerMutation.js +3 -0
- package/cjs/graphql/operations/ModifyProductQuestionMutation.js +8 -0
- package/cjs/graphql/operations/ModifyProductReviewMutation.js +18 -0
- package/cjs/graphql/operations/NewPasswordMutation.js +3 -0
- package/cjs/graphql/operations/PauseSubscriptionMutation.js +3 -0
- package/cjs/graphql/operations/ResetPasswordMutation.js +3 -0
- package/cjs/graphql/operations/ResumeSubscriptionMutation.js +3 -0
- package/cjs/graphql/operations/SearchProductsAdvancedQuery.js +24 -0
- package/cjs/graphql/operations/SearchProductsQuery.js +20 -0
- package/cjs/graphql/operations/SearchQuestionsQuery.js +8 -0
- package/cjs/graphql/operations/SearchReviewsQuery.js +18 -0
- package/cjs/graphql/operations/SignInMutation.js +3 -0
- package/cjs/graphql/operations/SignInViaEmailCompleteMutation.js +3 -0
- package/cjs/graphql/operations/SignInViaEmailInitMutation.js +3 -0
- package/cjs/graphql/operations/SignUpMutation.js +3 -0
- package/cjs/graphql/operations/SkipNextSubscriptionMutation.js +3 -0
- package/cjs/graphql/operations/UploadFileMutation.js +3 -0
- package/cjs/graphql/operations/VerifyCodeMutation.js +3 -0
- package/cjs/graphql/operations/VoteQuestionAnswerMutation.js +3 -0
- package/cjs/graphql/operations/VoteQuestionMutation.js +3 -0
- package/cjs/graphql/operations/VoteReviewAnswerMutation.js +3 -0
- package/cjs/graphql/operations/VoteReviewMutation.js +3 -0
- package/cjs/graphql/types.js +2 -0
- package/cjs/hierarchicalSearchOption.js +42 -0
- package/cjs/idgen.js +8 -0
- package/cjs/ignoreQueue.js +50 -0
- package/cjs/imageAltProps.js +13 -0
- package/cjs/invoiceFormat.js +59 -0
- package/cjs/isShippingRequired.js +20 -0
- package/cjs/isoStripTrailingZeros.js +7 -0
- package/cjs/json/commerce.js +10 -0
- package/cjs/json/commerceFileUpload.js +57 -0
- package/cjs/json/commerceTypes.js +2 -0
- package/cjs/json/common.js +320 -0
- package/cjs/json/fetchAllItems.js +61 -0
- package/cjs/json/mutator.js +957 -0
- package/cjs/json/storefront.js +10 -0
- package/cjs/json/storefrontTypes.js +2 -0
- package/cjs/lastValue.js +17 -0
- package/cjs/lineItemPrice.js +111 -0
- package/cjs/loadJWT.js +25 -0
- package/cjs/mapInvalidInput.js +33 -0
- package/cjs/mapResponseData.js +16 -0
- package/cjs/mapResponseMultiData.js +14 -0
- package/cjs/meanBy.js +15 -0
- package/cjs/media.js +16 -0
- package/cjs/modules/advancedSearch.js +127 -0
- package/cjs/modules/cart.js +708 -0
- package/cjs/modules/config/defaultAdvancedSearchGraphQLConfig.js +8 -0
- package/cjs/modules/config/defaultCartGraphQLConfig.js +14 -0
- package/cjs/modules/config/defaultProductGraphQLConfig.js +48 -0
- package/cjs/modules/config/defaultSearchGraphQLConfig.js +8 -0
- package/cjs/modules/customer.js +2174 -0
- package/cjs/modules/helpers/cartInitOption.js +22 -0
- package/cjs/modules/helpers/cookieConsent.js +33 -0
- package/cjs/modules/helpers/customerOauth2.js +64 -0
- package/cjs/modules/helpers/getOAuth2Hook.js +52 -0
- package/cjs/modules/helpers/hookUpAnalytics.js +49 -0
- package/cjs/modules/helpers/loadJWT.js +23 -0
- package/cjs/modules/helpers/misc.js +58 -0
- package/cjs/modules/imageDialog.js +78 -0
- package/cjs/modules/persist.js +55 -0
- package/cjs/modules/popupMessage.js +21 -0
- package/cjs/modules/product.js +1261 -0
- package/cjs/modules/recentlyVisitedProducts.js +72 -0
- package/cjs/modules/search.js +102 -0
- package/cjs/multiResponseToResponse.js +22 -0
- package/cjs/nonNull.js +10 -0
- package/cjs/oauthState.js +40 -0
- package/cjs/orderShippingAddress.js +7 -0
- package/cjs/package.json +3 -0
- package/cjs/pender.js +16 -0
- package/cjs/percentageOff.js +7 -0
- package/cjs/popupConnectQueue.js +62 -0
- package/cjs/preact/components/SixDigitInput.js +167 -0
- package/cjs/preact/effector.js +74 -0
- package/cjs/preact/transition/CSSTransition.js +55 -0
- package/cjs/preact/transition/Transition.js +104 -0
- package/cjs/preact/translateLocalStatic.js +31 -0
- package/cjs/productFiltering.js +173 -0
- package/cjs/productSEO.js +51 -0
- package/cjs/productSorting.js +93 -0
- package/cjs/promiseAll.js +18 -0
- package/cjs/promiseLimit.js +38 -0
- package/cjs/rdsToInitialScores.js +32 -0
- package/cjs/react/components/Portal.js +7 -0
- package/cjs/react/components/RootCloseWrapper.js +41 -0
- package/cjs/react/components/SixDigitInput.js +167 -0
- package/cjs/react/contains.js +14 -0
- package/cjs/react/popperBinder.js +70 -0
- package/cjs/react/rootClose.js +112 -0
- package/cjs/react/translateLocalStatic.js +32 -0
- package/cjs/react/useAsyncCachedValue.js +14 -0
- package/cjs/refreshTimeout.js +25 -0
- package/cjs/remoteAuth.js +59 -0
- package/cjs/request.js +348 -0
- package/cjs/requestDetails.js +76 -0
- package/cjs/rfc3339Normalize.js +10 -0
- package/cjs/script.js +172 -0
- package/cjs/seo.js +2 -0
- package/cjs/shopDomain.js +8 -0
- package/cjs/shopLinks.js +63 -0
- package/cjs/slate.js +376 -0
- package/cjs/sleep.js +10 -0
- package/cjs/splitBy.js +21 -0
- package/cjs/splitName.js +28 -0
- package/cjs/stripZeros.js +13 -0
- package/cjs/stripeError.js +65 -0
- package/cjs/tailSplit.js +12 -0
- package/cjs/tieredPrice.js +32 -0
- package/cjs/timeIt.js +15 -0
- package/cjs/toMajor.js +8 -0
- package/cjs/toMinor.js +8 -0
- package/cjs/trace.js +37 -0
- package/cjs/translateLocale.js +12 -0
- package/cjs/traverse.js +14 -0
- package/cjs/truncate.js +21 -0
- package/cjs/typedLocalStorage.js +30 -0
- package/cjs/variantImage.js +26 -0
- package/cjs/variantImageURL.js +13 -0
- package/cjs/variantImages.js +19 -0
- package/cjs/variantInventory.js +43 -0
- package/cjs/variantOptions.js +21 -0
- package/cjs/variantPrice.js +96 -0
- package/cjs/variantPriceCommerce.js +29 -0
- package/cjs/variantTitle.js +9 -0
- package/cjs/variantTitleFull.js +11 -0
- package/cjs/variantURL.js +9 -0
- package/cjs/vendor/popper/index.d.ts +160 -0
- package/cjs/vendor/popper/index.js +2657 -0
- package/cjs/vendor/popper/index.js.map +1 -0
- package/cjs/vendor/popper/package.json +3 -0
- package/cjs/websocket.js +179 -0
- package/esm/actionLock.js +24 -0
- package/esm/addEmptyListItem.js +3 -0
- package/esm/aggregateOptions.js +169 -0
- package/esm/analytics.js +91 -0
- package/esm/analyticsProductData.js +28 -0
- package/esm/arrayToDict.js +8 -0
- package/esm/asyncModuleWrapper.js +47 -0
- package/esm/averageReviewScore.js +40 -0
- package/esm/buildconfig.js +13 -0
- package/esm/cachedLoader.js +32 -0
- package/esm/canonicalVariantURL.js +1 -0
- package/esm/cartOperation.js +126 -0
- package/esm/categorySEO.js +16 -0
- package/esm/commonTypes.js +1 -0
- package/esm/compact.js +4 -0
- package/esm/configLoader.js +61 -0
- package/esm/controlledQueue.js +38 -0
- package/esm/convertImageURL.js +15 -0
- package/esm/dataLoader.js +192 -0
- package/esm/defaultVariant.js +25 -0
- package/esm/effector/clearOnChangeAfterDelay.js +13 -0
- package/esm/effector/combineEvery.js +4 -0
- package/esm/effector/combineSome.js +4 -0
- package/esm/effector/debounced.js +14 -0
- package/esm/effector/form.js +166 -0
- package/esm/effector/hideOnChangeAfterDelay.js +13 -0
- package/esm/effector/requestResponse.js +24 -0
- package/esm/effector/requestResponseMulti.js +47 -0
- package/esm/effector/restoreNamed.js +4 -0
- package/esm/effector/split.js +25 -0
- package/esm/effector/validator.js +28 -0
- package/esm/effector/wrapSignInRequired.js +9 -0
- package/esm/exceptions.js +2 -0
- package/esm/fetchAllItems.js +44 -0
- package/esm/file.js +67 -0
- package/esm/fileWebsocket.js +75 -0
- package/esm/filterFunc.js +43 -0
- package/esm/filterFuncBrand.js +9 -0
- package/esm/filterFuncCategory.js +9 -0
- package/esm/filterFuncContentBlock.js +16 -0
- package/esm/filterFuncCustomer.js +153 -0
- package/esm/filterFuncDataFeed.js +50 -0
- package/esm/filterFuncOrder.js +325 -0
- package/esm/filterFuncPreprocess.js +9 -0
- package/esm/filterFuncProduct.js +66 -0
- package/esm/filterFuncPurchaseOrder.js +122 -0
- package/esm/filterFuncSupplier.js +31 -0
- package/esm/filterFuncTransfer.js +130 -0
- package/esm/formatAbbrevNumber.js +16 -0
- package/esm/formatCurrency.js +42 -0
- package/esm/formatToJSX.js +118 -0
- package/esm/fulfillmentNumber.js +3 -0
- package/esm/generateRandomToken.js +8 -0
- package/esm/generateUUID.js +6 -0
- package/esm/generated/codes.js +44 -0
- package/esm/genericFile.js +65 -0
- package/esm/getSalesChannelID.js +9 -0
- package/esm/getSessionID.js +9 -0
- package/esm/getTimezone.js +8 -0
- package/esm/graphql/fragments/Branding.js +1 -0
- package/esm/graphql/fragments/BrandingField.js +1 -0
- package/esm/graphql/fragments/CartCustomItem.js +1 -0
- package/esm/graphql/fragments/CartOrder.js +1 -0
- package/esm/graphql/fragments/CartVariant.js +1 -0
- package/esm/graphql/fragments/CartVariantFull.js +1 -0
- package/esm/graphql/fragments/Category.js +1 -0
- package/esm/graphql/fragments/CommonCartVariant.js +1 -0
- package/esm/graphql/fragments/Currency.js +1 -0
- package/esm/graphql/fragments/CurrencyPrice.js +1 -0
- package/esm/graphql/fragments/CustomField.js +1 -0
- package/esm/graphql/fragments/CustomFieldObjects.js +1 -0
- package/esm/graphql/fragments/Customer.js +1 -0
- package/esm/graphql/fragments/CustomerBalance.js +1 -0
- package/esm/graphql/fragments/CustomerBalanceHistory.js +1 -0
- package/esm/graphql/fragments/CustomerFavorite.js +1 -0
- package/esm/graphql/fragments/CustomerFavoriteShort.js +1 -0
- package/esm/graphql/fragments/CustomerOAuthProvider.js +1 -0
- package/esm/graphql/fragments/CustomerOrderBrief.js +1 -0
- package/esm/graphql/fragments/CustomerOrderFulfillment.js +1 -0
- package/esm/graphql/fragments/CustomerOrderFull.js +1 -0
- package/esm/graphql/fragments/CustomerPaymentSource.js +1 -0
- package/esm/graphql/fragments/CustomerReturnBrief.js +1 -0
- package/esm/graphql/fragments/CustomerReturnFull.js +1 -0
- package/esm/graphql/fragments/CustomerReturnPolicy.js +1 -0
- package/esm/graphql/fragments/CustomerSubscriptionBrief.js +1 -0
- package/esm/graphql/fragments/CustomerSubscriptionFull.js +1 -0
- package/esm/graphql/fragments/File.js +1 -0
- package/esm/graphql/fragments/FileForUpload.js +1 -0
- package/esm/graphql/fragments/FileNoFallback.js +1 -0
- package/esm/graphql/fragments/FullAddress.js +1 -0
- package/esm/graphql/fragments/Gateway.js +1 -0
- package/esm/graphql/fragments/GatewayManual.js +1 -0
- package/esm/graphql/fragments/GatewayPaypal.js +1 -0
- package/esm/graphql/fragments/GatewayStripe.js +1 -0
- package/esm/graphql/fragments/GatewayTest.js +1 -0
- package/esm/graphql/fragments/IPAndUAInfo.js +1 -0
- package/esm/graphql/fragments/InfoCountry.js +1 -0
- package/esm/graphql/fragments/InfoCountryDedupField.js +1 -0
- package/esm/graphql/fragments/InfoCurrency.js +1 -0
- package/esm/graphql/fragments/InfoProvince.js +1 -0
- package/esm/graphql/fragments/KeyValue.js +1 -0
- package/esm/graphql/fragments/LineItemField.js +1 -0
- package/esm/graphql/fragments/MediaFile.js +1 -0
- package/esm/graphql/fragments/MinCurrencyPrice.js +1 -0
- package/esm/graphql/fragments/ProductField.js +1 -0
- package/esm/graphql/fragments/ProductFieldSet.js +1 -0
- package/esm/graphql/fragments/ProductFlat.js +1 -0
- package/esm/graphql/fragments/ProductQuestion.js +1 -0
- package/esm/graphql/fragments/ProductQuestionAnswer.js +1 -0
- package/esm/graphql/fragments/ProductQuestionPage.js +1 -0
- package/esm/graphql/fragments/ProductReview.js +1 -0
- package/esm/graphql/fragments/ProductReviewAnswer.js +1 -0
- package/esm/graphql/fragments/ProductReviewAverageScore.js +1 -0
- package/esm/graphql/fragments/ProductReviewPage.js +1 -0
- package/esm/graphql/fragments/ProductReviewScore.js +1 -0
- package/esm/graphql/fragments/ProductReviewSurveyAnswer.js +1 -0
- package/esm/graphql/fragments/ProductSearchOptionAgg.js +1 -0
- package/esm/graphql/fragments/ProductSearchResult.js +1 -0
- package/esm/graphql/fragments/ReturnReason.js +1 -0
- package/esm/graphql/fragments/ReviewDimension.js +1 -0
- package/esm/graphql/fragments/ReviewDimensionSet.js +1 -0
- package/esm/graphql/fragments/ReviewImagePage.js +1 -0
- package/esm/graphql/fragments/ReviewQuestionProduct.js +1 -0
- package/esm/graphql/fragments/ReviewSettings.js +1 -0
- package/esm/graphql/fragments/SearchProduct.js +1 -0
- package/esm/graphql/fragments/Shop.js +1 -0
- package/esm/graphql/fragments/SubscriptionPlan.js +1 -0
- package/esm/graphql/fragments/SurveyQuestion.js +1 -0
- package/esm/graphql/fragments/TieredPricing.js +1 -0
- package/esm/graphql/fragments/TieredPricingTier.js +1 -0
- package/esm/graphql/fragments/VariantOption.js +1 -0
- package/esm/graphql/operations/ApplyGiftCardMutation.js +1 -0
- package/esm/graphql/operations/AuthRequestMutation.js +1 -0
- package/esm/graphql/operations/CancelOrderMutation.js +1 -0
- package/esm/graphql/operations/CancelSubscriptionMutation.js +1 -0
- package/esm/graphql/operations/ConnectOAuth2Mutation.js +1 -0
- package/esm/graphql/operations/CreateCartMutation.js +23 -0
- package/esm/graphql/operations/CreateFavoriteMutation.js +19 -0
- package/esm/graphql/operations/CreateFileMutation.js +3 -0
- package/esm/graphql/operations/CreatePaymentSourceMutation.js +3 -0
- package/esm/graphql/operations/CreateProductQuestionAnswerMutation.js +1 -0
- package/esm/graphql/operations/CreateProductQuestionMutation.js +5 -0
- package/esm/graphql/operations/CreateProductReviewMutation.js +15 -0
- package/esm/graphql/operations/CreateReturnMutation.js +19 -0
- package/esm/graphql/operations/DeleteFavoriteMutation.js +1 -0
- package/esm/graphql/operations/DeletePaymentSourceMutation.js +1 -0
- package/esm/graphql/operations/DeleteProductQuestionAnswerMutation.js +1 -0
- package/esm/graphql/operations/DeleteProductQuestionMutation.js +1 -0
- package/esm/graphql/operations/DeleteProductReviewMutation.js +1 -0
- package/esm/graphql/operations/DisconnectOAuth2Mutation.js +1 -0
- package/esm/graphql/operations/EditSubscriptionMutation.js +1 -0
- package/esm/graphql/operations/FileUploadedMutation.js +3 -0
- package/esm/graphql/operations/FlagQuestionAnswerMutation.js +1 -0
- package/esm/graphql/operations/FlagQuestionMutation.js +1 -0
- package/esm/graphql/operations/FlagReviewAnswerMutation.js +1 -0
- package/esm/graphql/operations/FlagReviewMutation.js +1 -0
- package/esm/graphql/operations/GetBrandingQuery.js +7 -0
- package/esm/graphql/operations/GetCartQuery.js +23 -0
- package/esm/graphql/operations/GetCustomerAddressesPageDataQuery.js +13 -0
- package/esm/graphql/operations/GetCustomerBalanceHistoryPageQuery.js +3 -0
- package/esm/graphql/operations/GetCustomerBalanceQuery.js +5 -0
- package/esm/graphql/operations/GetCustomerInfoQuery.js +7 -0
- package/esm/graphql/operations/GetCustomerQuery.js +5 -0
- package/esm/graphql/operations/GetFavoritesQuery.js +19 -0
- package/esm/graphql/operations/GetFileStatusQuery.js +3 -0
- package/esm/graphql/operations/GetGatewaysQuery.js +11 -0
- package/esm/graphql/operations/GetInfoCurrenciesQuery.js +3 -0
- package/esm/graphql/operations/GetLastCartQuery.js +23 -0
- package/esm/graphql/operations/GetOrderQuery.js +27 -0
- package/esm/graphql/operations/GetOrdersPageQuery.js +21 -0
- package/esm/graphql/operations/GetPaymentMethodsPageDataQuery.js +15 -0
- package/esm/graphql/operations/GetProductQuestionsPageQuery.js +7 -0
- package/esm/graphql/operations/GetProductReviewImagesPageQuery.js +5 -0
- package/esm/graphql/operations/GetProductReviewsPageQuery.js +17 -0
- package/esm/graphql/operations/GetProvincesQuery.js +3 -0
- package/esm/graphql/operations/GetQuestionQuery.js +5 -0
- package/esm/graphql/operations/GetReturnCreationInfoQuery.js +33 -0
- package/esm/graphql/operations/GetReturnQuery.js +25 -0
- package/esm/graphql/operations/GetReturnsPageQuery.js +19 -0
- package/esm/graphql/operations/GetReviewDimensionsQuery.js +3 -0
- package/esm/graphql/operations/GetReviewQuery.js +15 -0
- package/esm/graphql/operations/GetReviewSettingsQuery.js +9 -0
- package/esm/graphql/operations/GetShopCurrenciesQuery.js +3 -0
- package/esm/graphql/operations/GetShopQuery.js +5 -0
- package/esm/graphql/operations/GetSubscriptionQuery.js +33 -0
- package/esm/graphql/operations/GetSubscriptionsPageQuery.js +19 -0
- package/esm/graphql/operations/GetVariantPageQuery.js +17 -0
- package/esm/graphql/operations/LoadProductNoCustomerQuery.js +59 -0
- package/esm/graphql/operations/LoadProductQuery.js +63 -0
- package/esm/graphql/operations/ModifyCartMutation.js +23 -0
- package/esm/graphql/operations/ModifyCustomerMutation.js +5 -0
- package/esm/graphql/operations/ModifyFavoriteMutation.js +19 -0
- package/esm/graphql/operations/ModifyProductQuestionAnswerMutation.js +1 -0
- package/esm/graphql/operations/ModifyProductQuestionMutation.js +5 -0
- package/esm/graphql/operations/ModifyProductReviewMutation.js +15 -0
- package/esm/graphql/operations/NewPasswordMutation.js +1 -0
- package/esm/graphql/operations/PauseSubscriptionMutation.js +1 -0
- package/esm/graphql/operations/ResetPasswordMutation.js +1 -0
- package/esm/graphql/operations/ResumeSubscriptionMutation.js +1 -0
- package/esm/graphql/operations/SearchProductsAdvancedQuery.js +21 -0
- package/esm/graphql/operations/SearchProductsQuery.js +17 -0
- package/esm/graphql/operations/SearchQuestionsQuery.js +5 -0
- package/esm/graphql/operations/SearchReviewsQuery.js +15 -0
- package/esm/graphql/operations/SignInMutation.js +1 -0
- package/esm/graphql/operations/SignInViaEmailCompleteMutation.js +1 -0
- package/esm/graphql/operations/SignInViaEmailInitMutation.js +1 -0
- package/esm/graphql/operations/SignUpMutation.js +1 -0
- package/esm/graphql/operations/SkipNextSubscriptionMutation.js +1 -0
- package/esm/graphql/operations/UploadFileMutation.js +1 -0
- package/esm/graphql/operations/VerifyCodeMutation.js +1 -0
- package/esm/graphql/operations/VoteQuestionAnswerMutation.js +1 -0
- package/esm/graphql/operations/VoteQuestionMutation.js +1 -0
- package/esm/graphql/operations/VoteReviewAnswerMutation.js +1 -0
- package/esm/graphql/operations/VoteReviewMutation.js +1 -0
- package/esm/graphql/types.js +1 -0
- package/esm/hierarchicalSearchOption.js +43 -0
- package/esm/idgen.js +4 -0
- package/esm/ignoreQueue.js +45 -0
- package/esm/imageAltProps.js +9 -0
- package/esm/invoiceFormat.js +54 -0
- package/esm/isShippingRequired.js +16 -0
- package/esm/isoStripTrailingZeros.js +3 -0
- package/esm/json/commerce.js +3 -0
- package/esm/json/commerceFileUpload.js +43 -0
- package/esm/json/commerceTypes.js +1 -0
- package/esm/json/common.js +309 -0
- package/esm/json/fetchAllItems.js +51 -0
- package/esm/json/mutator.js +952 -0
- package/esm/json/storefront.js +3 -0
- package/esm/json/storefrontTypes.js +1 -0
- package/esm/lastValue.js +12 -0
- package/esm/lineItemPrice.js +106 -0
- package/esm/loadJWT.js +20 -0
- package/esm/mapInvalidInput.js +27 -0
- package/esm/mapResponseData.js +11 -0
- package/esm/mapResponseMultiData.js +10 -0
- package/esm/meanBy.js +11 -0
- package/esm/media.js +12 -0
- package/esm/modules/advancedSearch.js +132 -0
- package/esm/modules/cart.js +699 -0
- package/esm/modules/config/defaultAdvancedSearchGraphQLConfig.js +4 -0
- package/esm/modules/config/defaultCartGraphQLConfig.js +10 -0
- package/esm/modules/config/defaultProductGraphQLConfig.js +44 -0
- package/esm/modules/config/defaultSearchGraphQLConfig.js +4 -0
- package/esm/modules/customer.js +2198 -0
- package/esm/modules/helpers/cartInitOption.js +18 -0
- package/esm/modules/helpers/cookieConsent.js +29 -0
- package/esm/modules/helpers/customerOauth2.js +53 -0
- package/esm/modules/helpers/getOAuth2Hook.js +48 -0
- package/esm/modules/helpers/hookUpAnalytics.js +44 -0
- package/esm/modules/helpers/loadJWT.js +18 -0
- package/esm/modules/helpers/misc.js +49 -0
- package/esm/modules/imageDialog.js +71 -0
- package/esm/modules/persist.js +49 -0
- package/esm/modules/popupMessage.js +17 -0
- package/esm/modules/product.js +1278 -0
- package/esm/modules/recentlyVisitedProducts.js +70 -0
- package/esm/modules/search.js +103 -0
- package/esm/multiResponseToResponse.js +18 -0
- package/esm/nonNull.js +6 -0
- package/esm/oauthState.js +35 -0
- package/esm/orderShippingAddress.js +3 -0
- package/esm/package.json +3 -0
- package/esm/pender.js +11 -0
- package/esm/percentageOff.js +3 -0
- package/esm/popupConnectQueue.js +55 -0
- package/esm/preact/components/SixDigitInput.js +159 -0
- package/esm/preact/effector.js +69 -0
- package/esm/preact/transition/CSSTransition.js +47 -0
- package/esm/preact/transition/Transition.js +100 -0
- package/esm/preact/translateLocalStatic.js +26 -0
- package/esm/productFiltering.js +164 -0
- package/esm/productSEO.js +46 -0
- package/esm/productSorting.js +89 -0
- package/esm/promiseAll.js +11 -0
- package/esm/promiseLimit.js +32 -0
- package/esm/rdsToInitialScores.js +27 -0
- package/esm/react/components/Portal.js +2 -0
- package/esm/react/components/RootCloseWrapper.js +33 -0
- package/esm/react/components/SixDigitInput.js +158 -0
- package/esm/react/contains.js +10 -0
- package/esm/react/popperBinder.js +71 -0
- package/esm/react/rootClose.js +106 -0
- package/esm/react/translateLocalStatic.js +26 -0
- package/esm/react/useAsyncCachedValue.js +10 -0
- package/esm/refreshTimeout.js +21 -0
- package/esm/remoteAuth.js +52 -0
- package/esm/request.js +323 -0
- package/esm/requestDetails.js +69 -0
- package/esm/rfc3339Normalize.js +6 -0
- package/esm/script.js +157 -0
- package/esm/seo.js +1 -0
- package/esm/shopDomain.js +4 -0
- package/esm/shopLinks.js +47 -0
- package/esm/slate.js +364 -0
- package/esm/sleep.js +3 -0
- package/esm/splitBy.js +17 -0
- package/esm/splitName.js +22 -0
- package/esm/stripZeros.js +9 -0
- package/esm/stripeError.js +53 -0
- package/esm/tailSplit.js +8 -0
- package/esm/tieredPrice.js +28 -0
- package/esm/timeIt.js +8 -0
- package/esm/toMajor.js +4 -0
- package/esm/toMinor.js +4 -0
- package/esm/trace.js +37 -0
- package/esm/translateLocale.js +7 -0
- package/esm/traverse.js +10 -0
- package/esm/truncate.js +17 -0
- package/esm/typedLocalStorage.js +24 -0
- package/esm/variantImage.js +22 -0
- package/esm/variantImageURL.js +9 -0
- package/esm/variantImages.js +15 -0
- package/esm/variantInventory.js +38 -0
- package/esm/variantOptions.js +15 -0
- package/esm/variantPrice.js +92 -0
- package/esm/variantPriceCommerce.js +25 -0
- package/esm/variantTitle.js +5 -0
- package/esm/variantTitleFull.js +7 -0
- package/esm/variantURL.js +5 -0
- package/esm/vendor/popper/index.d.ts +160 -0
- package/esm/vendor/popper/index.js +2657 -0
- package/esm/vendor/popper/index.js.map +1 -0
- package/esm/vendor/popper/package.json +3 -0
- package/esm/websocket.js +169 -0
- package/package.json +92 -0
- package/types/actionLock.d.ts +7 -0
- package/types/addEmptyListItem.d.ts +2 -0
- package/types/aggregateOptions.d.ts +33 -0
- package/types/analytics.d.ts +23 -0
- package/types/analyticsProductData.d.ts +38 -0
- package/types/arrayToDict.d.ts +2 -0
- package/types/asyncModuleWrapper.d.ts +13 -0
- package/types/averageReviewScore.d.ts +28 -0
- package/types/buildconfig.d.ts +13 -0
- package/types/cachedLoader.d.ts +10 -0
- package/types/canonicalVariantURL.d.ts +12 -0
- package/types/cartOperation.d.ts +28 -0
- package/types/categorySEO.d.ts +17 -0
- package/types/commonTypes.d.ts +10 -0
- package/types/compact.d.ts +1 -0
- package/types/configLoader.d.ts +53 -0
- package/types/controlledQueue.d.ts +17 -0
- package/types/convertImageURL.d.ts +9 -0
- package/types/dataLoader.d.ts +301 -0
- package/types/defaultVariant.d.ts +9 -0
- package/types/effector/clearOnChangeAfterDelay.d.ts +2 -0
- package/types/effector/combineEvery.d.ts +2 -0
- package/types/effector/combineSome.d.ts +2 -0
- package/types/effector/debounced.d.ts +2 -0
- package/types/effector/form.d.ts +74 -0
- package/types/effector/hideOnChangeAfterDelay.d.ts +6 -0
- package/types/effector/requestResponse.d.ts +9 -0
- package/types/effector/requestResponseMulti.d.ts +7 -0
- package/types/effector/restoreNamed.d.ts +2 -0
- package/types/effector/split.d.ts +7 -0
- package/types/effector/validator.d.ts +14 -0
- package/types/effector/wrapSignInRequired.d.ts +2 -0
- package/types/exceptions.d.ts +2 -0
- package/types/fetchAllItems.d.ts +25 -0
- package/types/file.d.ts +4 -0
- package/types/fileWebsocket.d.ts +6 -0
- package/types/filterFunc.d.ts +8 -0
- package/types/filterFuncBrand.d.ts +3 -0
- package/types/filterFuncCategory.d.ts +3 -0
- package/types/filterFuncContentBlock.d.ts +3 -0
- package/types/filterFuncCustomer.d.ts +3 -0
- package/types/filterFuncDataFeed.d.ts +8 -0
- package/types/filterFuncOrder.d.ts +3 -0
- package/types/filterFuncPreprocess.d.ts +2 -0
- package/types/filterFuncProduct.d.ts +3 -0
- package/types/filterFuncPurchaseOrder.d.ts +3 -0
- package/types/filterFuncSupplier.d.ts +3 -0
- package/types/filterFuncTransfer.d.ts +3 -0
- package/types/formatAbbrevNumber.d.ts +6 -0
- package/types/formatCurrency.d.ts +44 -0
- package/types/formatToJSX.d.ts +24 -0
- package/types/fulfillmentNumber.d.ts +1 -0
- package/types/generateRandomToken.d.ts +1 -0
- package/types/generateUUID.d.ts +1 -0
- package/types/generated/codes.d.ts +234 -0
- package/types/genericFile.d.ts +57 -0
- package/types/getSalesChannelID.d.ts +1 -0
- package/types/getSessionID.d.ts +1 -0
- package/types/getTimezone.d.ts +1 -0
- package/types/graphql/fragments/Branding.d.ts +2 -0
- package/types/graphql/fragments/BrandingField.d.ts +2 -0
- package/types/graphql/fragments/CartCustomItem.d.ts +2 -0
- package/types/graphql/fragments/CartOrder.d.ts +2 -0
- package/types/graphql/fragments/CartVariant.d.ts +2 -0
- package/types/graphql/fragments/CartVariantFull.d.ts +2 -0
- package/types/graphql/fragments/Category.d.ts +2 -0
- package/types/graphql/fragments/CommonCartVariant.d.ts +2 -0
- package/types/graphql/fragments/Currency.d.ts +2 -0
- package/types/graphql/fragments/CurrencyPrice.d.ts +2 -0
- package/types/graphql/fragments/CustomField.d.ts +2 -0
- package/types/graphql/fragments/CustomFieldObjects.d.ts +2 -0
- package/types/graphql/fragments/Customer.d.ts +2 -0
- package/types/graphql/fragments/CustomerBalance.d.ts +2 -0
- package/types/graphql/fragments/CustomerBalanceHistory.d.ts +2 -0
- package/types/graphql/fragments/CustomerFavorite.d.ts +2 -0
- package/types/graphql/fragments/CustomerFavoriteShort.d.ts +2 -0
- package/types/graphql/fragments/CustomerOAuthProvider.d.ts +2 -0
- package/types/graphql/fragments/CustomerOrderBrief.d.ts +2 -0
- package/types/graphql/fragments/CustomerOrderFulfillment.d.ts +2 -0
- package/types/graphql/fragments/CustomerOrderFull.d.ts +2 -0
- package/types/graphql/fragments/CustomerPaymentSource.d.ts +2 -0
- package/types/graphql/fragments/CustomerReturnBrief.d.ts +2 -0
- package/types/graphql/fragments/CustomerReturnFull.d.ts +2 -0
- package/types/graphql/fragments/CustomerReturnPolicy.d.ts +2 -0
- package/types/graphql/fragments/CustomerSubscriptionBrief.d.ts +2 -0
- package/types/graphql/fragments/CustomerSubscriptionFull.d.ts +2 -0
- package/types/graphql/fragments/File.d.ts +2 -0
- package/types/graphql/fragments/FileForUpload.d.ts +2 -0
- package/types/graphql/fragments/FileNoFallback.d.ts +2 -0
- package/types/graphql/fragments/FullAddress.d.ts +2 -0
- package/types/graphql/fragments/Gateway.d.ts +2 -0
- package/types/graphql/fragments/GatewayManual.d.ts +2 -0
- package/types/graphql/fragments/GatewayPaypal.d.ts +2 -0
- package/types/graphql/fragments/GatewayStripe.d.ts +2 -0
- package/types/graphql/fragments/GatewayTest.d.ts +2 -0
- package/types/graphql/fragments/IPAndUAInfo.d.ts +2 -0
- package/types/graphql/fragments/InfoCountry.d.ts +2 -0
- package/types/graphql/fragments/InfoCountryDedupField.d.ts +2 -0
- package/types/graphql/fragments/InfoCurrency.d.ts +2 -0
- package/types/graphql/fragments/InfoProvince.d.ts +2 -0
- package/types/graphql/fragments/KeyValue.d.ts +2 -0
- package/types/graphql/fragments/LineItemField.d.ts +2 -0
- package/types/graphql/fragments/MediaFile.d.ts +2 -0
- package/types/graphql/fragments/MinCurrencyPrice.d.ts +2 -0
- package/types/graphql/fragments/ProductField.d.ts +2 -0
- package/types/graphql/fragments/ProductFieldSet.d.ts +2 -0
- package/types/graphql/fragments/ProductFlat.d.ts +2 -0
- package/types/graphql/fragments/ProductQuestion.d.ts +2 -0
- package/types/graphql/fragments/ProductQuestionAnswer.d.ts +2 -0
- package/types/graphql/fragments/ProductQuestionPage.d.ts +2 -0
- package/types/graphql/fragments/ProductReview.d.ts +2 -0
- package/types/graphql/fragments/ProductReviewAnswer.d.ts +2 -0
- package/types/graphql/fragments/ProductReviewAverageScore.d.ts +2 -0
- package/types/graphql/fragments/ProductReviewPage.d.ts +2 -0
- package/types/graphql/fragments/ProductReviewScore.d.ts +2 -0
- package/types/graphql/fragments/ProductReviewSurveyAnswer.d.ts +2 -0
- package/types/graphql/fragments/ProductSearchOptionAgg.d.ts +2 -0
- package/types/graphql/fragments/ProductSearchResult.d.ts +2 -0
- package/types/graphql/fragments/ReturnReason.d.ts +2 -0
- package/types/graphql/fragments/ReviewDimension.d.ts +2 -0
- package/types/graphql/fragments/ReviewDimensionSet.d.ts +2 -0
- package/types/graphql/fragments/ReviewImagePage.d.ts +2 -0
- package/types/graphql/fragments/ReviewQuestionProduct.d.ts +2 -0
- package/types/graphql/fragments/ReviewSettings.d.ts +2 -0
- package/types/graphql/fragments/SearchProduct.d.ts +2 -0
- package/types/graphql/fragments/Shop.d.ts +2 -0
- package/types/graphql/fragments/SubscriptionPlan.d.ts +2 -0
- package/types/graphql/fragments/SurveyQuestion.d.ts +2 -0
- package/types/graphql/fragments/TieredPricing.d.ts +2 -0
- package/types/graphql/fragments/TieredPricingTier.d.ts +2 -0
- package/types/graphql/fragments/VariantOption.d.ts +2 -0
- package/types/graphql/operations/ApplyGiftCardMutation.d.ts +3 -0
- package/types/graphql/operations/AuthRequestMutation.d.ts +3 -0
- package/types/graphql/operations/CancelOrderMutation.d.ts +3 -0
- package/types/graphql/operations/CancelSubscriptionMutation.d.ts +3 -0
- package/types/graphql/operations/ConnectOAuth2Mutation.d.ts +3 -0
- package/types/graphql/operations/CreateCartMutation.d.ts +3 -0
- package/types/graphql/operations/CreateFavoriteMutation.d.ts +3 -0
- package/types/graphql/operations/CreateFileMutation.d.ts +3 -0
- package/types/graphql/operations/CreatePaymentSourceMutation.d.ts +3 -0
- package/types/graphql/operations/CreateProductQuestionAnswerMutation.d.ts +3 -0
- package/types/graphql/operations/CreateProductQuestionMutation.d.ts +3 -0
- package/types/graphql/operations/CreateProductReviewMutation.d.ts +3 -0
- package/types/graphql/operations/CreateReturnMutation.d.ts +3 -0
- package/types/graphql/operations/DeleteFavoriteMutation.d.ts +3 -0
- package/types/graphql/operations/DeletePaymentSourceMutation.d.ts +3 -0
- package/types/graphql/operations/DeleteProductQuestionAnswerMutation.d.ts +3 -0
- package/types/graphql/operations/DeleteProductQuestionMutation.d.ts +3 -0
- package/types/graphql/operations/DeleteProductReviewMutation.d.ts +3 -0
- package/types/graphql/operations/DisconnectOAuth2Mutation.d.ts +3 -0
- package/types/graphql/operations/EditSubscriptionMutation.d.ts +3 -0
- package/types/graphql/operations/FileUploadedMutation.d.ts +3 -0
- package/types/graphql/operations/FlagQuestionAnswerMutation.d.ts +3 -0
- package/types/graphql/operations/FlagQuestionMutation.d.ts +3 -0
- package/types/graphql/operations/FlagReviewAnswerMutation.d.ts +3 -0
- package/types/graphql/operations/FlagReviewMutation.d.ts +3 -0
- package/types/graphql/operations/GetBrandingQuery.d.ts +3 -0
- package/types/graphql/operations/GetCartQuery.d.ts +3 -0
- package/types/graphql/operations/GetCustomerAddressesPageDataQuery.d.ts +3 -0
- package/types/graphql/operations/GetCustomerBalanceHistoryPageQuery.d.ts +3 -0
- package/types/graphql/operations/GetCustomerBalanceQuery.d.ts +3 -0
- package/types/graphql/operations/GetCustomerInfoQuery.d.ts +3 -0
- package/types/graphql/operations/GetCustomerQuery.d.ts +3 -0
- package/types/graphql/operations/GetFavoritesQuery.d.ts +3 -0
- package/types/graphql/operations/GetFileStatusQuery.d.ts +3 -0
- package/types/graphql/operations/GetGatewaysQuery.d.ts +3 -0
- package/types/graphql/operations/GetInfoCurrenciesQuery.d.ts +3 -0
- package/types/graphql/operations/GetLastCartQuery.d.ts +3 -0
- package/types/graphql/operations/GetOrderQuery.d.ts +3 -0
- package/types/graphql/operations/GetOrdersPageQuery.d.ts +3 -0
- package/types/graphql/operations/GetPaymentMethodsPageDataQuery.d.ts +3 -0
- package/types/graphql/operations/GetProductQuestionsPageQuery.d.ts +3 -0
- package/types/graphql/operations/GetProductReviewImagesPageQuery.d.ts +3 -0
- package/types/graphql/operations/GetProductReviewsPageQuery.d.ts +3 -0
- package/types/graphql/operations/GetProvincesQuery.d.ts +3 -0
- package/types/graphql/operations/GetQuestionQuery.d.ts +3 -0
- package/types/graphql/operations/GetReturnCreationInfoQuery.d.ts +3 -0
- package/types/graphql/operations/GetReturnQuery.d.ts +3 -0
- package/types/graphql/operations/GetReturnsPageQuery.d.ts +3 -0
- package/types/graphql/operations/GetReviewDimensionsQuery.d.ts +3 -0
- package/types/graphql/operations/GetReviewQuery.d.ts +3 -0
- package/types/graphql/operations/GetReviewSettingsQuery.d.ts +3 -0
- package/types/graphql/operations/GetShopCurrenciesQuery.d.ts +3 -0
- package/types/graphql/operations/GetShopQuery.d.ts +3 -0
- package/types/graphql/operations/GetSubscriptionQuery.d.ts +3 -0
- package/types/graphql/operations/GetSubscriptionsPageQuery.d.ts +3 -0
- package/types/graphql/operations/GetVariantPageQuery.d.ts +3 -0
- package/types/graphql/operations/LoadProductNoCustomerQuery.d.ts +3 -0
- package/types/graphql/operations/LoadProductQuery.d.ts +3 -0
- package/types/graphql/operations/ModifyCartMutation.d.ts +3 -0
- package/types/graphql/operations/ModifyCustomerMutation.d.ts +3 -0
- package/types/graphql/operations/ModifyFavoriteMutation.d.ts +3 -0
- package/types/graphql/operations/ModifyProductQuestionAnswerMutation.d.ts +3 -0
- package/types/graphql/operations/ModifyProductQuestionMutation.d.ts +3 -0
- package/types/graphql/operations/ModifyProductReviewMutation.d.ts +3 -0
- package/types/graphql/operations/NewPasswordMutation.d.ts +3 -0
- package/types/graphql/operations/PauseSubscriptionMutation.d.ts +3 -0
- package/types/graphql/operations/ResetPasswordMutation.d.ts +3 -0
- package/types/graphql/operations/ResumeSubscriptionMutation.d.ts +3 -0
- package/types/graphql/operations/SearchProductsAdvancedQuery.d.ts +3 -0
- package/types/graphql/operations/SearchProductsQuery.d.ts +3 -0
- package/types/graphql/operations/SearchQuestionsQuery.d.ts +3 -0
- package/types/graphql/operations/SearchReviewsQuery.d.ts +3 -0
- package/types/graphql/operations/SignInMutation.d.ts +3 -0
- package/types/graphql/operations/SignInViaEmailCompleteMutation.d.ts +3 -0
- package/types/graphql/operations/SignInViaEmailInitMutation.d.ts +3 -0
- package/types/graphql/operations/SignUpMutation.d.ts +3 -0
- package/types/graphql/operations/SkipNextSubscriptionMutation.d.ts +3 -0
- package/types/graphql/operations/UploadFileMutation.d.ts +3 -0
- package/types/graphql/operations/VerifyCodeMutation.d.ts +3 -0
- package/types/graphql/operations/VoteQuestionAnswerMutation.d.ts +3 -0
- package/types/graphql/operations/VoteQuestionMutation.d.ts +3 -0
- package/types/graphql/operations/VoteReviewAnswerMutation.d.ts +3 -0
- package/types/graphql/operations/VoteReviewMutation.d.ts +3 -0
- package/types/graphql/types.d.ts +2471 -0
- package/types/hierarchicalSearchOption.d.ts +14 -0
- package/types/idgen.d.ts +1 -0
- package/types/ignoreQueue.d.ts +10 -0
- package/types/imageAltProps.d.ts +11 -0
- package/types/invoiceFormat.d.ts +32 -0
- package/types/isShippingRequired.d.ts +14 -0
- package/types/isoStripTrailingZeros.d.ts +1 -0
- package/types/json/commerce.d.ts +3 -0
- package/types/json/commerceFileUpload.d.ts +20 -0
- package/types/json/commerceTypes.d.ts +15422 -0
- package/types/json/common.d.ts +81 -0
- package/types/json/fetchAllItems.d.ts +15 -0
- package/types/json/mutator.d.ts +238 -0
- package/types/json/storefront.d.ts +3 -0
- package/types/json/storefrontTypes.d.ts +5059 -0
- package/types/lastValue.d.ts +10 -0
- package/types/lineItemPrice.d.ts +18 -0
- package/types/loadJWT.d.ts +1 -0
- package/types/mapInvalidInput.d.ts +15 -0
- package/types/mapResponseData.d.ts +3 -0
- package/types/mapResponseMultiData.d.ts +2 -0
- package/types/meanBy.d.ts +1 -0
- package/types/media.d.ts +3 -0
- package/types/modules/advancedSearch.d.ts +78 -0
- package/types/modules/cart.d.ts +263 -0
- package/types/modules/config/defaultAdvancedSearchGraphQLConfig.d.ts +3 -0
- package/types/modules/config/defaultCartGraphQLConfig.d.ts +6 -0
- package/types/modules/config/defaultProductGraphQLConfig.d.ts +23 -0
- package/types/modules/config/defaultSearchGraphQLConfig.d.ts +3 -0
- package/types/modules/customer.d.ts +624 -0
- package/types/modules/helpers/cartInitOption.d.ts +2 -0
- package/types/modules/helpers/cookieConsent.d.ts +4 -0
- package/types/modules/helpers/customerOauth2.d.ts +19 -0
- package/types/modules/helpers/getOAuth2Hook.d.ts +22 -0
- package/types/modules/helpers/hookUpAnalytics.d.ts +21 -0
- package/types/modules/helpers/loadJWT.d.ts +1 -0
- package/types/modules/helpers/misc.d.ts +14 -0
- package/types/modules/imageDialog.d.ts +31 -0
- package/types/modules/persist.d.ts +13 -0
- package/types/modules/popupMessage.d.ts +9 -0
- package/types/modules/product.d.ts +320 -0
- package/types/modules/recentlyVisitedProducts.d.ts +25 -0
- package/types/modules/search.d.ts +54 -0
- package/types/multiResponseToResponse.d.ts +2 -0
- package/types/nonNull.d.ts +1 -0
- package/types/oauthState.d.ts +3 -0
- package/types/orderShippingAddress.d.ts +6 -0
- package/types/pender.d.ts +5 -0
- package/types/percentageOff.d.ts +1 -0
- package/types/popupConnectQueue.d.ts +41 -0
- package/types/preact/components/SixDigitInput.d.ts +28 -0
- package/types/preact/effector.d.ts +8 -0
- package/types/preact/transition/CSSTransition.d.ts +8 -0
- package/types/preact/transition/Transition.d.ts +30 -0
- package/types/preact/translateLocalStatic.d.ts +4 -0
- package/types/productFiltering.d.ts +58 -0
- package/types/productSEO.d.ts +59 -0
- package/types/productSorting.d.ts +35 -0
- package/types/promiseAll.d.ts +5 -0
- package/types/promiseLimit.d.ts +13 -0
- package/types/rdsToInitialScores.d.ts +26 -0
- package/types/react/components/Portal.d.ts +2 -0
- package/types/react/components/RootCloseWrapper.d.ts +18 -0
- package/types/react/components/SixDigitInput.d.ts +27 -0
- package/types/react/contains.d.ts +1 -0
- package/types/react/popperBinder.d.ts +23 -0
- package/types/react/rootClose.d.ts +18 -0
- package/types/react/translateLocalStatic.d.ts +4 -0
- package/types/react/useAsyncCachedValue.d.ts +2 -0
- package/types/refreshTimeout.d.ts +5 -0
- package/types/remoteAuth.d.ts +14 -0
- package/types/request.d.ts +104 -0
- package/types/requestDetails.d.ts +16 -0
- package/types/rfc3339Normalize.d.ts +1 -0
- package/types/script.d.ts +36 -0
- package/types/seo.d.ts +5 -0
- package/types/shopDomain.d.ts +7 -0
- package/types/shopLinks.d.ts +14 -0
- package/types/slate.d.ts +47 -0
- package/types/sleep.d.ts +1 -0
- package/types/splitBy.d.ts +1 -0
- package/types/splitName.d.ts +2 -0
- package/types/stripZeros.d.ts +1 -0
- package/types/stripeError.d.ts +14 -0
- package/types/tailSplit.d.ts +1 -0
- package/types/tieredPrice.d.ts +2 -0
- package/types/timeIt.d.ts +1 -0
- package/types/toMajor.d.ts +8 -0
- package/types/toMinor.d.ts +8 -0
- package/types/trace.d.ts +17 -0
- package/types/translateLocale.d.ts +2 -0
- package/types/traverse.d.ts +1 -0
- package/types/truncate.d.ts +7 -0
- package/types/typedLocalStorage.d.ts +3 -0
- package/types/variantImage.d.ts +16 -0
- package/types/variantImageURL.d.ts +25 -0
- package/types/variantImages.d.ts +11 -0
- package/types/variantInventory.d.ts +14 -0
- package/types/variantOptions.d.ts +18 -0
- package/types/variantPrice.d.ts +37 -0
- package/types/variantPriceCommerce.d.ts +26 -0
- package/types/variantTitle.d.ts +7 -0
- package/types/variantTitleFull.d.ts +11 -0
- package/types/variantURL.d.ts +7 -0
- package/types/websocket.d.ts +33 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { stripZeros } from "./stripZeros.js";
|
|
2
|
+
function stripZerosMaybe(value, strip) {
|
|
3
|
+
return strip ? stripZeros(value) : value;
|
|
4
|
+
}
|
|
5
|
+
export function formatAbbrevNumber(value, spec) {
|
|
6
|
+
const units = spec?.units || ["K", "M", "B", "T"];
|
|
7
|
+
const precision = spec?.precision ?? 1;
|
|
8
|
+
const stripZeros = spec?.stripZeros ?? true;
|
|
9
|
+
for (let i = units.length - 1; i >= 0; i--) {
|
|
10
|
+
const size = 10 ** ((i + 1) * 3);
|
|
11
|
+
if (size <= value) {
|
|
12
|
+
return `${stripZerosMaybe((value / size).toFixed(precision), stripZeros)}${units[i]}`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return `${stripZerosMaybe(value.toFixed(precision), stripZeros)}`;
|
|
16
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { formatAbbrevNumber } from "./formatAbbrevNumber.js";
|
|
2
|
+
import { tailSplit } from "./tailSplit.js";
|
|
3
|
+
export const defaultCurrencyInfo = {
|
|
4
|
+
currency: {
|
|
5
|
+
name: "US Dollar",
|
|
6
|
+
to_minor: 100,
|
|
7
|
+
symbol: "$",
|
|
8
|
+
code: "USD",
|
|
9
|
+
},
|
|
10
|
+
format: {
|
|
11
|
+
thousands_separator: ",",
|
|
12
|
+
decimal_separator: ".",
|
|
13
|
+
pattern: "${}",
|
|
14
|
+
has_decimals: true,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
export function formatCurrency(cinfo, value, opts) {
|
|
18
|
+
const v = Math.abs(value / cinfo.currency.to_minor);
|
|
19
|
+
const numDecimalDigitsDefault = cinfo.currency.to_minor.toString().length - 1;
|
|
20
|
+
const thousandsSeparator = cinfo.format.thousands_separator;
|
|
21
|
+
const decimalSeparator = cinfo.format.decimal_separator;
|
|
22
|
+
const hasDecimals = cinfo.format.has_decimals;
|
|
23
|
+
const numDecimalDigits = opts?.precision !== undefined ? opts.precision : hasDecimals ? Math.max(0, ~~numDecimalDigitsDefault) : 0;
|
|
24
|
+
const str = opts?.units
|
|
25
|
+
? formatAbbrevNumber(v, {
|
|
26
|
+
precision: numDecimalDigits,
|
|
27
|
+
units: opts.units,
|
|
28
|
+
stripZeros: opts?.stripZeros ?? false,
|
|
29
|
+
})
|
|
30
|
+
: v.toFixed(numDecimalDigits);
|
|
31
|
+
let [whole, decimal] = tailSplit(str, ".", 2);
|
|
32
|
+
// thousands separator
|
|
33
|
+
whole = thousandsSeparator ? whole.replace(/\d(?=(\d{3})+$)/g, `$&${thousandsSeparator}`) : whole;
|
|
34
|
+
// strip zeros
|
|
35
|
+
decimal = opts?.stripZeros && decimal ? decimal.replace(/0+$/, "") : decimal;
|
|
36
|
+
// explicit sign
|
|
37
|
+
const prefix = value < 0 ? "-" : value >= 0 && opts?.explicitSign ? "+" : "";
|
|
38
|
+
// final touches
|
|
39
|
+
const wholeAndDecimal = decimal && decimalSeparator ? `${whole}${decimalSeparator}${decimal}` : whole;
|
|
40
|
+
const codePrefix = opts?.codePrefix ? `${cinfo.currency.code} ` : "";
|
|
41
|
+
return `${codePrefix}${prefix}${cinfo.format.pattern.replace("{}", wholeAndDecimal)}`;
|
|
42
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// shameless copy & paste from "format-to-jsx" library, adopted for react/preact
|
|
2
|
+
function findBalanced(a, b, s) {
|
|
3
|
+
let balance = 0;
|
|
4
|
+
for (let i = 0; i < s.length; i++) {
|
|
5
|
+
const c = s[i];
|
|
6
|
+
if (c === a) {
|
|
7
|
+
balance++;
|
|
8
|
+
}
|
|
9
|
+
else if (c === b) {
|
|
10
|
+
balance--;
|
|
11
|
+
}
|
|
12
|
+
if (balance === 0) {
|
|
13
|
+
return i;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return -1;
|
|
17
|
+
}
|
|
18
|
+
export function parseFormat(text) {
|
|
19
|
+
const out = [];
|
|
20
|
+
while (true) {
|
|
21
|
+
const i = text.indexOf("{");
|
|
22
|
+
if (i === -1) {
|
|
23
|
+
if (out.length === 0 || text.length > 0) {
|
|
24
|
+
out.push({ type: "text", value: text });
|
|
25
|
+
}
|
|
26
|
+
return out;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
if (i > 0) {
|
|
30
|
+
out.push({ type: "text", value: text.substring(0, i) });
|
|
31
|
+
text = text.substring(i);
|
|
32
|
+
}
|
|
33
|
+
const j = findBalanced("{", "}", text);
|
|
34
|
+
if (j === -1) {
|
|
35
|
+
if (out.length > 0 && out[out.length - 1].type === "text") {
|
|
36
|
+
out[out.length - 1].value += text;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
out.push({ type: "text", value: text });
|
|
40
|
+
}
|
|
41
|
+
return out;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
out.push({ type: "subst", value: text.substring(1, j) });
|
|
45
|
+
text = text.substring(j + 1);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Supports nested substitutions, example:
|
|
51
|
+
//
|
|
52
|
+
// `Hello, {strong:{john}}!`
|
|
53
|
+
// {
|
|
54
|
+
// strong: <strong />,
|
|
55
|
+
// john: <div>John</div>,
|
|
56
|
+
// }
|
|
57
|
+
//
|
|
58
|
+
// Yields:
|
|
59
|
+
//
|
|
60
|
+
// <>
|
|
61
|
+
// {"Hello, "}
|
|
62
|
+
// <strong key={1}>
|
|
63
|
+
// <>
|
|
64
|
+
// <div key={0}>John</div>
|
|
65
|
+
// </>
|
|
66
|
+
// </strong>
|
|
67
|
+
// {"!"}
|
|
68
|
+
// </>
|
|
69
|
+
export const format = (cfg, template, ...args) => {
|
|
70
|
+
if (!template || template.length === 0) {
|
|
71
|
+
throw new Error("[format-to-jsx]: format() method has been called without a template string!");
|
|
72
|
+
}
|
|
73
|
+
if (args.length === 0)
|
|
74
|
+
return template;
|
|
75
|
+
const argsDictionary = args && typeof args[0] === "object" && !cfg.isValidElement(args[0])
|
|
76
|
+
? args[0]
|
|
77
|
+
: args.reduce((acc, a, index) => {
|
|
78
|
+
acc[index] = a;
|
|
79
|
+
return acc;
|
|
80
|
+
}, {});
|
|
81
|
+
let jsxUsed = false; // if not, it's safe to concat the result to string
|
|
82
|
+
const parts = parseFormat(template);
|
|
83
|
+
const results = parts.map((v) => {
|
|
84
|
+
if (v.type === "text") {
|
|
85
|
+
return { element: v.value };
|
|
86
|
+
}
|
|
87
|
+
const value = v.value;
|
|
88
|
+
const colonPos = value.indexOf(":");
|
|
89
|
+
let key = value;
|
|
90
|
+
let child = undefined;
|
|
91
|
+
if (colonPos !== -1) {
|
|
92
|
+
key = value.substring(0, colonPos);
|
|
93
|
+
child = format(cfg, value.substring(colonPos + 1), ...args);
|
|
94
|
+
}
|
|
95
|
+
const replaceValue = argsDictionary[key];
|
|
96
|
+
if (key in argsDictionary) {
|
|
97
|
+
if (cfg.isValidElement(replaceValue)) {
|
|
98
|
+
jsxUsed = true;
|
|
99
|
+
}
|
|
100
|
+
return { element: replaceValue, child };
|
|
101
|
+
}
|
|
102
|
+
if (process.env.NODE_ENV !== "production") {
|
|
103
|
+
console.warn(`[format-to-jsx]: Failed replacing the template '${template}' - '${key}' index wasn't provided!`);
|
|
104
|
+
}
|
|
105
|
+
return { element: `{${key}}` };
|
|
106
|
+
});
|
|
107
|
+
if (jsxUsed) {
|
|
108
|
+
const children = results.map((e, index) => cfg.isValidElement(e.element)
|
|
109
|
+
? e.child
|
|
110
|
+
? cfg.cloneElement(e.element, { key: index }, e.child)
|
|
111
|
+
: cfg.cloneElement(e.element, { key: index })
|
|
112
|
+
: e.element);
|
|
113
|
+
return cfg.toFragment(children.length > 1 ? children : children[0]);
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return results.map((e) => e.element).join("");
|
|
117
|
+
}
|
|
118
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export var ErrorCode;
|
|
2
|
+
(function (ErrorCode) {
|
|
3
|
+
ErrorCode[ErrorCode["Unauthorized"] = 401] = "Unauthorized";
|
|
4
|
+
ErrorCode[ErrorCode["NotFound"] = 404] = "NotFound";
|
|
5
|
+
ErrorCode[ErrorCode["TooManyRequests"] = 429] = "TooManyRequests";
|
|
6
|
+
ErrorCode[ErrorCode["InternalServerError"] = 500] = "InternalServerError";
|
|
7
|
+
ErrorCode[ErrorCode["JWTInvalidForWrite"] = 996] = "JWTInvalidForWrite";
|
|
8
|
+
ErrorCode[ErrorCode["NoPermissions"] = 997] = "NoPermissions";
|
|
9
|
+
ErrorCode[ErrorCode["ForceRedirect"] = 998] = "ForceRedirect";
|
|
10
|
+
ErrorCode[ErrorCode["JWTValidationFailed"] = 999] = "JWTValidationFailed";
|
|
11
|
+
ErrorCode[ErrorCode["InvalidInput"] = 1000] = "InvalidInput";
|
|
12
|
+
ErrorCode[ErrorCode["OrderError"] = 1001] = "OrderError";
|
|
13
|
+
ErrorCode[ErrorCode["ParsingFailure"] = 1030] = "ParsingFailure";
|
|
14
|
+
ErrorCode[ErrorCode["VersionMismatch"] = 1031] = "VersionMismatch";
|
|
15
|
+
ErrorCode[ErrorCode["CSVReadError"] = 1066] = "CSVReadError";
|
|
16
|
+
ErrorCode[ErrorCode["UserDisabled"] = 1068] = "UserDisabled";
|
|
17
|
+
ErrorCode[ErrorCode["UserLocked"] = 1069] = "UserLocked";
|
|
18
|
+
ErrorCode[ErrorCode["ReviewOutOfDate"] = 1107] = "ReviewOutOfDate";
|
|
19
|
+
ErrorCode[ErrorCode["RealtimeShippingRatesFailure"] = 1109] = "RealtimeShippingRatesFailure";
|
|
20
|
+
ErrorCode[ErrorCode["URLFetchFailure"] = 1110] = "URLFetchFailure";
|
|
21
|
+
ErrorCode[ErrorCode["TaxSystemFailure"] = 1111] = "TaxSystemFailure";
|
|
22
|
+
ErrorCode[ErrorCode["XeroFailure"] = 1112] = "XeroFailure";
|
|
23
|
+
ErrorCode[ErrorCode["QuickbooksFailure"] = 1113] = "QuickbooksFailure";
|
|
24
|
+
ErrorCode[ErrorCode["CannotSwitchToPlan"] = 1116] = "CannotSwitchToPlan";
|
|
25
|
+
ErrorCode[ErrorCode["GatewayCreationError"] = 1117] = "GatewayCreationError";
|
|
26
|
+
ErrorCode[ErrorCode["StripeAPICallFailure"] = 1122] = "StripeAPICallFailure";
|
|
27
|
+
ErrorCode[ErrorCode["GatewayTransactionError"] = 1123] = "GatewayTransactionError";
|
|
28
|
+
ErrorCode[ErrorCode["TaskTypeInProgress"] = 1127] = "TaskTypeInProgress";
|
|
29
|
+
ErrorCode[ErrorCode["InvalidFields"] = 1131] = "InvalidFields";
|
|
30
|
+
ErrorCode[ErrorCode["InvalidInputCount"] = 1132] = "InvalidInputCount";
|
|
31
|
+
ErrorCode[ErrorCode["FailedCooking"] = 1137] = "FailedCooking";
|
|
32
|
+
ErrorCode[ErrorCode["CurrencyConversion"] = 1143] = "CurrencyConversion";
|
|
33
|
+
ErrorCode[ErrorCode["LimitExceeded"] = 1146] = "LimitExceeded";
|
|
34
|
+
ErrorCode[ErrorCode["InvalidOperation"] = 1150] = "InvalidOperation";
|
|
35
|
+
ErrorCode[ErrorCode["DownloadLimitExceeded"] = 1151] = "DownloadLimitExceeded";
|
|
36
|
+
ErrorCode[ErrorCode["TryAgainLater"] = 1153] = "TryAgainLater";
|
|
37
|
+
ErrorCode[ErrorCode["ConditionEvalFailure"] = 1154] = "ConditionEvalFailure";
|
|
38
|
+
ErrorCode[ErrorCode["RefundFailure"] = 1155] = "RefundFailure";
|
|
39
|
+
ErrorCode[ErrorCode["AdminError"] = 1156] = "AdminError";
|
|
40
|
+
ErrorCode[ErrorCode["AnalyticsAPICallFailure"] = 1157] = "AnalyticsAPICallFailure";
|
|
41
|
+
ErrorCode[ErrorCode["OAuth2EmailMismatch"] = 1158] = "OAuth2EmailMismatch";
|
|
42
|
+
ErrorCode[ErrorCode["ExternalAPIError"] = 1159] = "ExternalAPIError";
|
|
43
|
+
ErrorCode[ErrorCode["Phone2FAUnavailable"] = 1160] = "Phone2FAUnavailable";
|
|
44
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { sleep } from "./sleep.js";
|
|
2
|
+
const CHUNK_SIZE = 2 * 1024 * 1024;
|
|
3
|
+
export async function uploadFileGeneric(a) {
|
|
4
|
+
const resp1 = await a.api.createFile({
|
|
5
|
+
shopID: a.shopID,
|
|
6
|
+
name: a.name,
|
|
7
|
+
size: a.size,
|
|
8
|
+
contentType: a.contentType,
|
|
9
|
+
storage: a.storage,
|
|
10
|
+
});
|
|
11
|
+
if (!resp1) {
|
|
12
|
+
return { kind: "create_failure" };
|
|
13
|
+
}
|
|
14
|
+
const resp2 = await a.api.uploadFile(a.shopID, resp1);
|
|
15
|
+
if (!resp2) {
|
|
16
|
+
return { kind: "upload_failure" };
|
|
17
|
+
}
|
|
18
|
+
const resp3 = await fetch(resp2, {
|
|
19
|
+
method: "POST",
|
|
20
|
+
headers: {
|
|
21
|
+
"Content-Type": "application/octet-stream",
|
|
22
|
+
"x-goog-resumable": "start",
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
if (resp3.status !== 201) {
|
|
26
|
+
return { kind: "post_failure" };
|
|
27
|
+
}
|
|
28
|
+
const location = resp3.headers.get("location") || "";
|
|
29
|
+
const n = Math.ceil(a.size / CHUNK_SIZE);
|
|
30
|
+
a.onProgress?.({ uploadedBytes: 0, totalBytes: a.size });
|
|
31
|
+
for (let i = 0; i < n; i++) {
|
|
32
|
+
const from = i * CHUNK_SIZE;
|
|
33
|
+
const data = await a.api.getDataSlice(a.data, from, from + CHUNK_SIZE);
|
|
34
|
+
const resp4 = await fetch(location, {
|
|
35
|
+
method: "PUT",
|
|
36
|
+
headers: {
|
|
37
|
+
"Content-Type": "application/octet-stream",
|
|
38
|
+
"Content-Range": `bytes ${from}-${from + data.byteLength - 1}/${a.size}`,
|
|
39
|
+
},
|
|
40
|
+
body: data,
|
|
41
|
+
});
|
|
42
|
+
if ([200, 201, 308].indexOf(resp4.status) === -1) {
|
|
43
|
+
return { kind: "put_failure" };
|
|
44
|
+
}
|
|
45
|
+
a.onProgress?.({ uploadedBytes: from + data.byteLength, totalBytes: a.size });
|
|
46
|
+
}
|
|
47
|
+
a.onProgress?.({ uploadedBytes: a.size, totalBytes: a.size });
|
|
48
|
+
const resp5 = await a.api.fileUploaded(a.shopID, resp1);
|
|
49
|
+
if (!resp5) {
|
|
50
|
+
return { kind: "uploaded_failure" };
|
|
51
|
+
}
|
|
52
|
+
while (true) {
|
|
53
|
+
await sleep(750);
|
|
54
|
+
const resp = await a.api.fileStatus(a.shopID, resp5);
|
|
55
|
+
if (!resp) {
|
|
56
|
+
return { kind: "get_status_failure" };
|
|
57
|
+
}
|
|
58
|
+
if (resp.kind === "not_uploaded") {
|
|
59
|
+
return { kind: "not_uploaded_failure" };
|
|
60
|
+
}
|
|
61
|
+
else if (resp.kind === "uploaded") {
|
|
62
|
+
return { kind: "ok", file: resp.file };
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment Branding on StorefrontBranding{fields{...BrandingField}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment BrandingField on StorefrontBrandingField{type id image_file{...File}string color boolean link font radio text}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CartCustomItem on OrderCustomItem{title price taxable tax_class physical inventory_location{id}length width height grams id}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CartOrder on StorefrontOrder{id uuid discount_code state updated_at currency line_items{id quantity variant{...CartVariant}variant_id discount_preview field_set{id}fields{...LineItemField}subscription_plan_index custom_item_index}custom_items{...CartCustomItem}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CartVariant on StorefrontProductVariant{...CommonCartVariant product{id title handle tiered_pricing_mode return_mode subscription_plans{...SubscriptionPlan}subscription_only}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CartVariantFull on StorefrontProductVariant{...CartVariant bundle_line_items{quantity variant{...CartVariant}}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment Category on StorefrontCategory{content_image_files{...FileNoFallback}created_at featured handle has_children id image_files{...FileNoFallback}meta_description meta_title published published_at raw_content sort_order title updated_at}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CommonCartVariant on StorefrontProductVariant{barcode country_of_origin created_at currency_prices{...CurrencyPrice}discountable expiration_days fulfillment_service grams height hs_code id media_files{...MediaFile}linked_media_files{...MediaFile}inventory{available low_stock locations{available low_stock inventory_location{id}}}inventory_policy is_default length map_price max_downloads options{...VariantOption}position price retail_price sale_price sale_price_eligible sale_price_from sale_price_to sku tax_class taxable type updated_at width customer_group_price favorite{id created_at}tiered_pricing{...TieredPricing}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment Currency on Currency{conversion_fee custom_exchange_rate exchange_rate currency{code name symbol to_minor}format{decimal_separator has_decimals pattern thousands_separator}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CurrencyPrice on CurrencyPrice{currency map_price price retail_price sale_price tiered_pricing{...TieredPricing}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomField on CustomField{name value}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomFieldObjects on StorefrontCustomFieldObjects{files{...FileNoFallback}products{...ProductFlat}categories{...Category}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment Customer on StorefrontCustomer{id email name display_name mobile mobile_notifications accepts_marketing reminder_messages addresses{...FullAddress}mobile mobile_notifications default_billing_address_id default_shipping_address_id default_payment_source_id is_guest password_defined oauth_provider}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerBalance on StorefrontCustomerBalance{balance{amount currency}order_count total_spent}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerBalanceHistory on CustomerBalanceHistory{amount balance comment created_at currency id source source_arg1 source_arg2}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerFavorite on StorefrontCustomerFavorite{id variant{...CartVariant}created_at inventory_notification price_notification}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerFavoriteShort on StorefrontCustomerFavorite{id inventory_notification price_notification variant{id}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerOAuthProvider on StorefrontCustomerOAuthProvider{kind client_id}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerOrderBrief on StorefrontOrder{id number paid_at fulfillment_status financial_status total_price currency line_items{id quantity variant_id variant{...CartVariant}}custom_items{...CartCustomItem}canceled_at}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerOrderFulfillment on StorefrontOrderFulfillment{canceled_at created_at digital disabled_at email expected_at_max expected_at_min id line_items{dest_inventory_location_id inventory_location_id line_item_id quantity returned variant_id}shipping_provider_type tracking_company tracking_number tracking_url updated_at}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerOrderFull on StorefrontOrder{id uuid number calculated fulfillment_status financial_status currency paid_at closed_at canceled_at cancel_reason total_price shipping_price subtotal_price customer_balance_spent total_discounts total_tax discount_code state gateway_type mobile mobile_notifications tax_inclusive_prices customer{id email}customer_email promotion{id name}shipping_detail{tax_excl_price tax_incl_price}shipping_address{...FullAddress}billing_address{...FullAddress}selected_shipping_rates{id name}shipping_rate_groups{shipping_rates{delivery_date_guaranteed delivery_date_max delivery_date_min discountable id name rate shipping_provider{id name description}taxable}}line_items{id quantity variant{...CartVariantFull}variant_id detail{price original_price tax_excl_price tax_incl_price}fields{...LineItemField}custom_item_index}custom_items{...CartCustomItem}display{discount shipping subtotal tax total amount_due paid customer_balance_spent}on_hold on_hold_until}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerPaymentSource on CustomerPaymentSource{id brand last4 exp_month exp_year address_country address_country_info{code name}address_state address_state_info{code name}address_city address_zip address_line1 address_line2 name stripe_customer_id}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerReturnBrief on StorefrontReturn{id number created_at updated_at state reject_reason line_items{return_quantity variant{...CartVariant}}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerReturnFull on StorefrontReturn{id number created_at updated_at approved_at received_at inspected_at refunded_at rejected_at closed_at expected_at_min expected_at_max reject_reason state history{action created_at}order{id number}return_policy{id}line_items{line_item_id fulfillment_id return_quantity reason variant{...CartVariantFull}}return_fee return_fee_value refund_shipping_charge shipping_provider_type tracking_company tracking_number tracking_url label_file{id name mime public_url}inbound_tracking customer_balance return_address_type return_inventory_location{id name}return_address{...FullAddress}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerReturnPolicy on StorefrontReturnPolicy{id name shipping_options{address_type inventory_location{id name}address{...FullAddress}return_fee return_fee_value reverse_logistics reverse_logistics_name reverse_logistics_desc tracking_company refund_shipping_charge}refund_option}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerSubscriptionBrief on StorefrontSubscription{id created_at origin_order{id number}last_order{id number}customer{id name email}variant{...CartVariant}subscription_plan{...SubscriptionPlan}quantity state tick_count next_at next_offset billing_address billing_address_id shipping_address shipping_address_id payment_source payment_source_id}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment CustomerSubscriptionFull on StorefrontSubscription{id created_at origin_order{...CustomerOrderFull}variant{...CartVariantFull}subscription_plan{...SubscriptionPlan}last_order{...CustomerOrderFull}quantity state tick_count next_at next_offset billing_address billing_address_id shipping_address shipping_address_id payment_source payment_source_id error error_count}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment File on StorefrontFile{id public_url image_alt image_color image_height image_width mime}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment FileForUpload on StorefrontFile{created_at id image_alt image_color image_height image_width is_binary is_image is_uploaded mime name path public_url size storage temp_path}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment FileNoFallback on StorefrontFile{id public_url image_alt image_color image_height image_width mime}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment FullAddress on Address{id address1 address2 city company country{code name}name latitude longitude phone province{code name}zip}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment Gateway on Gateway{visibility currencies{code min max}created_at enabled id manual{...GatewayManual}paypal{...GatewayPaypal}stripe{...GatewayStripe}test{...GatewayTest}test_mode type updated_at}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment GatewayManual on GatewayManual{description details name}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment GatewayPaypal on GatewayPaypal{send_authorized_order_notifications merchant_id funding{card credit sepa}cards{amex discover elo hiper jcb mastercard visa}auto_capture client_id}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment GatewayStripe on GatewayStripe{account_id amex_express_checkout{client_id enabled}auto_capture card_tokenization cards{amex diners discover jcb mastercard unionpay visa}masterpass{checkout_id enabled}payment_methods{alipay bancontact giropay eps ideal multibanco p24 sofort wechat}send_authorized_order_notifications visa_checkout{checkout_id enabled}publishable_key}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment GatewayTest on GatewayTest{auto_capture name send_authorized_order_notifications}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment IPAndUAInfo on IPAndUAInfo{geo_city geo_region geo_region_name geo_country geo_country_name geo_continent geo_continent_name geo_zipcode geo_latitude geo_longitude geo_accuracy_radius geo_metro_code geo_timezone ip_isanonymousproxy ip_issatelliteprovider ip_isp ip_organization ip_domain ip_netspeed br_family br_version dvce_brand dvce_family dvce_model os_family os_version country{...InfoCountry}province{...InfoProvince}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment InfoCountry on InfoCountry{name code currency phone has_province has_zip form_format display_format labels{address1 address2 city company country name phone zip province}dedup_fields{...InfoCountryDedupField}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment InfoCountryDedupField on InfoCountryDedupField{field separator}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment InfoCurrency on InfoCurrency{currency_format{decimal_separator has_decimals pattern thousands_separator}code name symbol to_minor}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment InfoProvince on InfoProvince{name code}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment KeyValue on KeyValue{key value}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment LineItemField on LineItemField{field_index choice_index type label value}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment MediaFile on StorefrontMediaFile{file{id public_url mime image_width image_height image_color image_alt}thumbnail_file{id public_url mime image_width image_height image_color image_alt}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment MinCurrencyPrice on MinCurrencyPrice{currency min_price}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductField on ProductField{type label required choices}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductFieldSet on ProductFieldSet{id name fields{...ProductField}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductFlat on StorefrontProduct{average_score average_scores{...ProductReviewAverageScore}ban_countries ban_mode brand{id}categories{id}content_image_files{...FileNoFallback}created_at handle id maximum_quantity meta_description meta_title min_currency_prices{...MinCurrencyPrice}min_price minimum_quantity no_count published_at raw_content recommended_no_count recommended_yes_count review_count review_dimension_set{...ReviewDimensionSet}field_set{...ProductFieldSet}title updated_at variants{...CommonCartVariant}yes_count subscription_plans{...SubscriptionPlan}subscription_only}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductQuestion on StorefrontProductQuestion{customer{id display_name}id created_at text yes_count no_count flagged voted status answers{...ProductQuestionAnswer}product{id}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductQuestionAnswer on StorefrontProductQuestionAnswer{id text created_at yes_count no_count flagged voted customer{id display_name}user{id display_name}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductQuestionPage on StorefrontProductQuestionPage{items{...ProductQuestion}last_key}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductReview on StorefrontProductReview{answers{...ProductReviewAnswer}average_score created_at customer{id display_name}detected_language{id code}flagged id image_files{...FileNoFallback}no_count scores{...ProductReviewScore}survey_answers{...ProductReviewSurveyAnswer}text title updated_at verified_purchase yes_count flagged voted recommended status product{id}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductReviewAnswer on StorefrontProductReviewAnswer{id text created_at}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductReviewAverageScore on ProductReviewAverageScore{count histogram{...KeyValue}review_dimension{...ReviewDimension}score sum}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductReviewPage on StorefrontProductReviewPage{items{...ProductReview}last_key}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductReviewScore on ProductReviewScore{review_dimension{...ReviewDimension}score}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductReviewSurveyAnswer on ProductReviewSurveyAnswer{survey_question{...SurveyQuestion}answer answer_index}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductSearchOptionAgg on ProductSearchOptionAgg{count name values{count name}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ProductSearchResult on StorefrontProductSearchResult{last_key count items{...SearchProduct}options{...ProductSearchOptionAgg}price_max price_min}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ReturnReason on ReturnReason{id description}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ReviewDimension on ReviewDimension{id name}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ReviewDimensionSet on ReviewDimensionSet{id name overall_review_dimension{...ReviewDimension}review_dimensions{...ReviewDimension}survey_questions{...SurveyQuestion}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ReviewImagePage on ReviewImagePage{items{...FileNoFallback}last_key count}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ReviewQuestionProduct on StorefrontProduct{average_score average_scores{...ProductReviewAverageScore}ban_countries ban_mode brand{id}categories{id}content_image_files{...FileNoFallback}created_at custom_field_objects{...CustomFieldObjects}custom_fields{...CustomField}handle id maximum_quantity meta_description meta_title min_currency_prices{...MinCurrencyPrice}min_price minimum_quantity no_count published_at raw_content recommended_no_count recommended_yes_count review_count review_dimension_set{...ReviewDimensionSet}field_set{...ProductFieldSet}title updated_at variants{...CommonCartVariant}yes_count tiered_pricing_mode return_mode subscription_plans{...SubscriptionPlan}subscription_only}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment ReviewSettings on StorefrontReviewSettings{default_review_dimension_set{...ReviewDimensionSet}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment SearchProduct on StorefrontProduct{id title handle tiered_pricing_mode return_mode average_score review_count subscription_only subscription_plans{...SubscriptionPlan}variants{...CommonCartVariant}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment Shop on StorefrontShop{app_domain created_at currency customer_service_email id name product_review_enabled tax_label timezone primary_domain{domain id}customer_oauth_providers{...CustomerOAuthProvider}tips_enabled tips_variant{id}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment SubscriptionPlan on SubscriptionPlan{price1_type price1 price1_percentage price2_type price2 price2_percentage interval billing_interval_count fulfillment_interval_count limit align_month{value}align_day_of_month{value}align_day_of_week{value}align_hour{value}discountable}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment SurveyQuestion on SurveyQuestion{id name kind meta answers}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment TieredPricing on TieredPricing{model tiers{...TieredPricingTier}}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment TieredPricingTier on TieredPricingTier{from to price}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "fragment VariantOption on VariantOption{option_id option_name option_value_id option_value_name}\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "mutation ApplyGiftCard($shopID:String!$data:ApplyGiftCard!){storefrontCustomerBalanceApplyGiftCard(shop_id:$shopID data:$data)}";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "mutation AuthRequest($shopID:String!$provider:CustomerOAuthProviderKind!){storefrontAuthRequest(shop_id:$shopID provider:$provider){url}}";
|