@ikas/storefront-api 4.0.0-alpha.48 → 4.0.0-alpha.49
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/build/__api/models/AbandonedCartFlow.d.ts +19 -0
- package/build/__api/models/AbandonedCartFlowCustomerFilter.d.ts +10 -0
- package/build/__api/models/AddItemToCartInput.d.ts +16 -0
- package/build/__api/models/AdditionalPrice.d.ts +13 -0
- package/build/__api/models/ApplicableProductFilterValue.d.ts +13 -0
- package/build/__api/models/AppliedProduct.d.ts +10 -0
- package/build/__api/models/AppliedProductInput.d.ts +10 -0
- package/build/__api/models/AvailableShippingMethod.d.ts +14 -0
- package/build/__api/models/Blog.d.ts +28 -0
- package/build/__api/models/BlogCategory.d.ts +13 -0
- package/build/__api/models/BlogCategoryPaginationResponse.d.ts +14 -0
- package/build/__api/models/BlogContent.d.ts +12 -0
- package/build/__api/models/BlogMetadata.d.ts +17 -0
- package/build/__api/models/BlogMetadataPaginationResponse.d.ts +14 -0
- package/build/__api/models/BlogMetadataTargetTypeEnumFilter.d.ts +13 -0
- package/build/__api/models/BlogPaginationResponse.d.ts +14 -0
- package/build/__api/models/BlogTag.d.ts +10 -0
- package/build/__api/models/BlogWriter.d.ts +10 -0
- package/build/__api/models/BooleanFilterInput.d.ts +9 -0
- package/build/__api/models/BuyX.d.ts +12 -0
- package/build/__api/models/BuyXThenGetY.d.ts +13 -0
- package/build/__api/models/Campaign.d.ts +30 -0
- package/build/__api/models/CampaignDateRangeField.d.ts +10 -0
- package/build/__api/models/CampaignFilter.d.ts +11 -0
- package/build/__api/models/CampaignMinMaxRangeField.d.ts +10 -0
- package/build/__api/models/CampaignOffer.d.ts +22 -0
- package/build/__api/models/CampaignOfferProduct.d.ts +22 -0
- package/build/__api/models/CampaignOfferProductTranslation.d.ts +11 -0
- package/build/__api/models/CampaignOfferTriggerSettings.d.ts +11 -0
- package/build/__api/models/Cart.d.ts +32 -0
- package/build/__api/models/CartCampaignOffer.d.ts +17 -0
- package/build/__api/models/CartLineItemInput.d.ts +12 -0
- package/build/__api/models/CartLineOptionInput.d.ts +11 -0
- package/build/__api/models/CartLineVariantInput.d.ts +10 -0
- package/build/__api/models/CartStorefrontRouting.d.ts +15 -0
- package/build/__api/models/CartStorefrontRoutingDynamicCurrencySettings.d.ts +11 -0
- package/build/__api/models/CartV2.d.ts +71 -0
- package/build/__api/models/CartV2CampaignOffer.d.ts +19 -0
- package/build/__api/models/Category.d.ts +27 -0
- package/build/__api/models/CategoryCondition.d.ts +11 -0
- package/build/__api/models/CategoryFilterInput.d.ts +11 -0
- package/build/__api/models/CategoryPaginationResponse.d.ts +14 -0
- package/build/__api/models/CategoryPathFilterInput.d.ts +9 -0
- package/build/__api/models/CategoryPathItem.d.ts +17 -0
- package/build/__api/models/CategoryTranslation.d.ts +11 -0
- package/build/__api/models/CheckStocksLineInput.d.ts +11 -0
- package/build/__api/models/CheckStocksLineInput.js +1 -0
- package/build/__api/models/CheckStocksLineResponse.d.ts +11 -0
- package/build/__api/models/CheckStocksResponse.d.ts +10 -0
- package/build/__api/models/Checkout.d.ts +44 -0
- package/build/__api/models/CheckoutCustomer.d.ts +19 -0
- package/build/__api/models/CheckoutCustomerInput.d.ts +13 -0
- package/build/__api/models/CheckoutCustomerInput.js +1 -0
- package/build/__api/models/CheckoutOption.d.ts +10 -0
- package/build/__api/models/CheckoutSettings.d.ts +24 -0
- package/build/__api/models/CheckoutSettingsPrice.d.ts +11 -0
- package/build/__api/models/City.d.ts +16 -0
- package/build/__api/models/Country.d.ts +24 -0
- package/build/__api/models/CreateCustomerEmailSubscriptionInput.d.ts +12 -0
- package/build/__api/models/CreateCustomerReviewInput.d.ts +20 -0
- package/build/__api/models/CreateSaleTransactionMasterPassPaymentMethodDetail.d.ts +10 -0
- package/build/__api/models/CreateSaleTransactionWithCartInput.d.ts +14 -0
- package/build/__api/models/CreateSaleTransactionWithCheckoutInput.d.ts +14 -0
- package/build/__api/models/CreateStripePaymentIntentResponse.d.ts +12 -0
- package/build/__api/models/CurrencyRate.d.ts +15 -0
- package/build/__api/models/CurrencyRateData.d.ts +10 -0
- package/build/__api/models/Customer.d.ts +34 -0
- package/build/__api/models/CustomerAddress.d.ts +31 -0
- package/build/__api/models/CustomerAddressCity.d.ts +11 -0
- package/build/__api/models/CustomerAddressCityInput.d.ts +11 -0
- package/build/__api/models/CustomerAddressCityInput.js +1 -0
- package/build/__api/models/CustomerAddressCountry.d.ts +13 -0
- package/build/__api/models/CustomerAddressCountryInput.d.ts +13 -0
- package/build/__api/models/CustomerAddressCountryInput.js +1 -0
- package/build/__api/models/CustomerAddressDistrict.d.ts +11 -0
- package/build/__api/models/CustomerAddressDistrictInput.d.ts +11 -0
- package/build/__api/models/CustomerAddressDistrictInput.js +1 -0
- package/build/__api/models/CustomerAddressState.d.ts +11 -0
- package/build/__api/models/CustomerAddressStateInput.d.ts +11 -0
- package/build/__api/models/CustomerAddressStateInput.js +1 -0
- package/build/__api/models/CustomerAttribute.d.ts +19 -0
- package/build/__api/models/CustomerAttributeOption.d.ts +10 -0
- package/build/__api/models/CustomerAttributeOptionTranslation.d.ts +10 -0
- package/build/__api/models/CustomerAttributeSalesChannel.d.ts +13 -0
- package/build/__api/models/CustomerAttributeTranslation.d.ts +13 -0
- package/build/__api/models/CustomerAttributeValue.d.ts +11 -0
- package/build/__api/models/CustomerAttributeValueInput.d.ts +11 -0
- package/build/__api/models/CustomerAttributeValueInput.js +1 -0
- package/build/__api/models/CustomerCheckResponse.d.ts +9 -0
- package/build/__api/models/CustomerFavoriteProduct.d.ts +11 -0
- package/build/__api/models/CustomerLoginResponse.d.ts +12 -0
- package/build/__api/models/CustomerRefreshTokenResponse.d.ts +10 -0
- package/build/__api/models/CustomerReview.d.ts +24 -0
- package/build/__api/models/CustomerReviewSFPaginationResponse.d.ts +14 -0
- package/build/__api/models/CustomerReviewSummary.d.ts +14 -0
- package/build/__api/models/CustomerReviewSummaryPaginationResponse.d.ts +14 -0
- package/build/__api/models/CustomerReviewSummaryStar.d.ts +10 -0
- package/build/__api/models/DateFilterInput.d.ts +16 -0
- package/build/__api/models/District.d.ts +16 -0
- package/build/__api/models/FixedDiscount.d.ts +14 -0
- package/build/__api/models/GetAvailableStockLocation.d.ts +14 -0
- package/build/__api/models/GetAvailableStockLocationAddress.d.ts +16 -0
- package/build/__api/models/GetAvailableStockLocationAddressCity.d.ts +11 -0
- package/build/__api/models/GetAvailableStockLocationsResponse.d.ts +10 -0
- package/build/__api/models/GetOrderLineFile.d.ts +9 -0
- package/build/__api/models/GetProductCampaignsInput.d.ts +11 -0
- package/build/__api/models/GetProductCampaignsResponse.d.ts +11 -0
- package/build/__api/models/GetProductOptionFileUrl.d.ts +11 -0
- package/build/__api/models/GetVariantStockLocation.d.ts +12 -0
- package/build/__api/models/GetVariantStockLocationListResponse.d.ts +10 -0
- package/build/__api/models/GetY.d.ts +13 -0
- package/build/__api/models/HTMLMetaData.d.ts +22 -0
- package/build/__api/models/HTMLMetaDataOverride.d.ts +13 -0
- package/build/__api/models/HTMLMetaDataTargetTypeEnumFilter.d.ts +13 -0
- package/build/__api/models/HTMLMetaDataTranslation.d.ts +11 -0
- package/build/__api/models/Invoice.d.ts +16 -0
- package/build/__api/models/ListCustomerReviewInput.d.ts +9 -0
- package/build/__api/models/LocationTranslations.d.ts +11 -0
- package/build/__api/models/MasterPassTokenResponse.d.ts +11 -0
- package/build/__api/models/MerchantAddress.d.ts +27 -0
- package/build/__api/models/MerchantAddressCity.d.ts +11 -0
- package/build/__api/models/MerchantAddressCountry.d.ts +11 -0
- package/build/__api/models/MerchantAddressDistrict.d.ts +11 -0
- package/build/__api/models/MerchantAddressState.d.ts +11 -0
- package/build/__api/models/MerchantSettings.d.ts +17 -0
- package/build/__api/models/MerchantSettingsCurrencyFormat.d.ts +15 -0
- package/build/__api/models/OrderAddress.d.ts +28 -0
- package/build/__api/models/OrderAddressCity.d.ts +11 -0
- package/build/__api/models/OrderAddressCityInput.d.ts +11 -0
- package/build/__api/models/OrderAddressCityInput.js +1 -0
- package/build/__api/models/OrderAddressCountry.d.ts +13 -0
- package/build/__api/models/OrderAddressCountryInput.d.ts +13 -0
- package/build/__api/models/OrderAddressCountryInput.js +1 -0
- package/build/__api/models/OrderAddressDistrict.d.ts +11 -0
- package/build/__api/models/OrderAddressDistrictInput.d.ts +11 -0
- package/build/__api/models/OrderAddressDistrictInput.js +1 -0
- package/build/__api/models/OrderAddressInput.d.ts +28 -0
- package/build/__api/models/OrderAddressInput.js +1 -0
- package/build/__api/models/OrderAddressState.d.ts +11 -0
- package/build/__api/models/OrderAddressStateInput.d.ts +11 -0
- package/build/__api/models/OrderAddressStateInput.js +1 -0
- package/build/__api/models/OrderAdjustment.d.ts +19 -0
- package/build/__api/models/OrderAdjustmentAppliedOrderLine.d.ts +12 -0
- package/build/__api/models/OrderAdjustmentInput.d.ts +16 -0
- package/build/__api/models/OrderAdjustmentInput.js +1 -0
- package/build/__api/models/OrderCurrencyRate.d.ts +11 -0
- package/build/__api/models/OrderCustomer.d.ts +16 -0
- package/build/__api/models/OrderGiftPackageLine.d.ts +10 -0
- package/build/__api/models/OrderLineBaseUnit.d.ts +13 -0
- package/build/__api/models/OrderLineDiscount.d.ts +15 -0
- package/build/__api/models/OrderLineItem.d.ts +29 -0
- package/build/__api/models/OrderLineOption.d.ts +15 -0
- package/build/__api/models/OrderLineOptionValue.d.ts +11 -0
- package/build/__api/models/OrderLineVariant.d.ts +31 -0
- package/build/__api/models/OrderLineVariantBrand.d.ts +10 -0
- package/build/__api/models/OrderLineVariantCategory.d.ts +12 -0
- package/build/__api/models/OrderLineVariantCategoryPath.d.ts +10 -0
- package/build/__api/models/OrderLineVariantPrice.d.ts +15 -0
- package/build/__api/models/OrderLineVariantUnit.d.ts +11 -0
- package/build/__api/models/OrderLineVariantUnitType.d.ts +10 -0
- package/build/__api/models/OrderLineVariantVariantValues.d.ts +13 -0
- package/build/__api/models/OrderPackage.d.ts +18 -0
- package/build/__api/models/OrderPaymentMethod.d.ts +14 -0
- package/build/__api/models/OrderRefundOrderLineInput.d.ts +10 -0
- package/build/__api/models/OrderRefundRequestInput.d.ts +12 -0
- package/build/__api/models/OrderRefundSettings.d.ts +14 -0
- package/build/__api/models/OrderSessionInfo.d.ts +25 -0
- package/build/__api/models/OrderSessionInfoTrafficSource.d.ts +11 -0
- package/build/__api/models/OrderSessionUTM.d.ts +13 -0
- package/build/__api/models/OrderSessionUserAgent.d.ts +12 -0
- package/build/__api/models/OrderShippingLine.d.ts +17 -0
- package/build/__api/models/OrderStorefrontRouting.d.ts +15 -0
- package/build/__api/models/OrderStorefrontRoutingDynamicCurrencySettings.d.ts +10 -0
- package/build/__api/models/OrderTaxLine.d.ts +10 -0
- package/build/__api/models/PaginationInput.d.ts +10 -0
- package/build/__api/models/PaymentGateway.d.ts +29 -0
- package/build/__api/models/PaymentGatewayPaymentMethod.d.ts +10 -0
- package/build/__api/models/PaymentGatewaySettings.d.ts +13 -0
- package/build/__api/models/PaymentGatewayTranslation.d.ts +11 -0
- package/build/__api/models/PaymentMethodDetailInput.d.ts +15 -0
- package/build/__api/models/Product.d.ts +35 -0
- package/build/__api/models/ProductAttribute.d.ts +19 -0
- package/build/__api/models/ProductAttributeOption.d.ts +10 -0
- package/build/__api/models/ProductAttributeOptionTranslation.d.ts +10 -0
- package/build/__api/models/ProductAttributeTableCellData.d.ts +10 -0
- package/build/__api/models/ProductAttributeTableTemplate.d.ts +11 -0
- package/build/__api/models/ProductAttributeTranslation.d.ts +13 -0
- package/build/__api/models/ProductAttributeValue.d.ts +12 -0
- package/build/__api/models/ProductBackInStockRemind.d.ts +15 -0
- package/build/__api/models/ProductBackInStockRemindInput.d.ts +11 -0
- package/build/__api/models/ProductBaseUnitModel.d.ts +12 -0
- package/build/__api/models/ProductBrand.d.ts +19 -0
- package/build/__api/models/ProductBrandPaginationResponse.d.ts +14 -0
- package/build/__api/models/ProductBrandTranslation.d.ts +11 -0
- package/build/__api/models/ProductFacetCount.d.ts +11 -0
- package/build/__api/models/ProductFacetCountValue.d.ts +10 -0
- package/build/__api/models/ProductFilterData.d.ts +12 -0
- package/build/__api/models/ProductFilterDataFilter.d.ts +24 -0
- package/build/__api/models/ProductFilterSettings.d.ts +14 -0
- package/build/__api/models/ProductImage.d.ts +12 -0
- package/build/__api/models/ProductItem.d.ts +11 -0
- package/build/__api/models/ProductItemInput.d.ts +11 -0
- package/build/__api/models/ProductLastViewed.d.ts +12 -0
- package/build/__api/models/ProductLastViewedInput.d.ts +12 -0
- package/build/__api/models/ProductOption.d.ts +28 -0
- package/build/__api/models/ProductOptionDateSettings.d.ts +12 -0
- package/build/__api/models/ProductOptionFileSettings.d.ts +11 -0
- package/build/__api/models/ProductOptionSelectSettings.d.ts +14 -0
- package/build/__api/models/ProductOptionSelectValue.d.ts +16 -0
- package/build/__api/models/ProductOptionSelectValueOtherPrice.d.ts +11 -0
- package/build/__api/models/ProductOptionSelectValueTranslations.d.ts +10 -0
- package/build/__api/models/ProductOptionSet.d.ts +14 -0
- package/build/__api/models/ProductOptionSetTranslations.d.ts +11 -0
- package/build/__api/models/ProductOptionTextSettings.d.ts +10 -0
- package/build/__api/models/ProductOptionTranslations.d.ts +13 -0
- package/build/__api/models/ProductPaginationResponse.d.ts +14 -0
- package/build/__api/models/ProductPrice.d.ts +15 -0
- package/build/__api/models/ProductSearchResponse.d.ts +17 -0
- package/build/__api/models/ProductStockLocation.d.ts +13 -0
- package/build/__api/models/ProductTagTranslation.d.ts +11 -0
- package/build/__api/models/ProductTranslation.d.ts +11 -0
- package/build/__api/models/ProductVariantType.d.ts +11 -0
- package/build/__api/models/RaffleDateRangeField.d.ts +10 -0
- package/build/__api/models/RaffleMetadata.d.ts +17 -0
- package/build/__api/models/RaffleMetadataTargetTypeEnumFilter.d.ts +13 -0
- package/build/__api/models/RafflePaginationResponse.d.ts +14 -0
- package/build/__api/models/RaffleParticipants.d.ts +25 -0
- package/build/__api/models/RaffleParticipantsInput.d.ts +16 -0
- package/build/__api/models/RaffleVariantInformation.d.ts +10 -0
- package/build/__api/models/RetrieveInstallmentInfoInput.d.ts +11 -0
- package/build/__api/models/RetrieveInstallmentInfoResponse.d.ts +17 -0
- package/build/__api/models/SaveCartInput.d.ts +23 -0
- package/build/__api/models/SaveCartInput.js +1 -0
- package/build/__api/models/SaveCheckoutInput.d.ts +26 -0
- package/build/__api/models/SaveItemToCartInput.d.ts +19 -0
- package/build/__api/models/SaveMyCustomerAddressInput.d.ts +29 -0
- package/build/__api/models/SaveMyCustomerAddressInput.js +1 -0
- package/build/__api/models/SaveMyCustomerInput.d.ts +17 -0
- package/build/__api/models/SaveMyCustomerInput.js +1 -0
- package/build/__api/models/SearchCategory.d.ts +15 -0
- package/build/__api/models/SearchCategoryPath.d.ts +13 -0
- package/build/__api/models/SearchDynamicCurrencySettings.d.ts +10 -0
- package/build/__api/models/SearchHTMLMetaData.d.ts +18 -0
- package/build/__api/models/SearchHTMLMetaDataOverride.d.ts +13 -0
- package/build/__api/models/SearchInput.d.ts +32 -0
- package/build/__api/models/SearchInputFacetListInput.d.ts +12 -0
- package/build/__api/models/SearchInputFilterListInput.d.ts +14 -0
- package/build/__api/models/SearchInputOrderByInput.d.ts +11 -0
- package/build/__api/models/SearchProduct.d.ts +36 -0
- package/build/__api/models/SearchProductAttribute.d.ts +15 -0
- package/build/__api/models/SearchProductAttributeOption.d.ts +10 -0
- package/build/__api/models/SearchProductAttributeTableCellData.d.ts +10 -0
- package/build/__api/models/SearchProductAttributeTableTemplate.d.ts +11 -0
- package/build/__api/models/SearchProductAttributeValue.d.ts +14 -0
- package/build/__api/models/SearchProductBrand.d.ts +13 -0
- package/build/__api/models/SearchProductImage.d.ts +12 -0
- package/build/__api/models/SearchProductPrice.d.ts +16 -0
- package/build/__api/models/SearchProductProductBaseUnit.d.ts +13 -0
- package/build/__api/models/SearchProductProductUnit.d.ts +10 -0
- package/build/__api/models/SearchProductStockLocation.d.ts +10 -0
- package/build/__api/models/SearchProductTag.d.ts +12 -0
- package/build/__api/models/SearchProductVariantType.d.ts +12 -0
- package/build/__api/models/SearchVariant.d.ts +27 -0
- package/build/__api/models/SearchVariantType.d.ts +15 -0
- package/build/__api/models/SearchVariantValue.d.ts +12 -0
- package/build/__api/models/SearchVariationValueRelation.d.ts +10 -0
- package/build/__api/models/SocialLoginSettings.d.ts +12 -0
- package/build/__api/models/State.d.ts +12 -0
- package/build/__api/models/StockLocation.d.ts +18 -0
- package/build/__api/models/StockLocationAddress.d.ts +19 -0
- package/build/__api/models/StockLocationAddressCity.d.ts +11 -0
- package/build/__api/models/StockLocationAddressCountry.d.ts +11 -0
- package/build/__api/models/StockLocationAddressDistrict.d.ts +11 -0
- package/build/__api/models/StockLocationAddressState.d.ts +11 -0
- package/build/__api/models/Storefront.d.ts +33 -0
- package/build/__api/models/StorefrontDomain.d.ts +13 -0
- package/build/__api/models/StorefrontDynamicCurrencySettings.d.ts +11 -0
- package/build/__api/models/StorefrontLocalization.d.ts +12 -0
- package/build/__api/models/StorefrontOrder.d.ts +51 -0
- package/build/__api/models/StorefrontRaffle.d.ts +20 -0
- package/build/__api/models/StorefrontRouting.d.ts +18 -0
- package/build/__api/models/StorefrontTheme.d.ts +15 -0
- package/build/__api/models/StorefrontTransaction.d.ts +28 -0
- package/build/__api/models/StringFilterInput.d.ts +13 -0
- package/build/__api/models/Town.d.ts +12 -0
- package/build/__api/models/TrackingInfo.d.ts +13 -0
- package/build/__api/models/TransactionError.d.ts +11 -0
- package/build/__api/models/TransactionInstallmentPrice.d.ts +13 -0
- package/build/__api/models/TransactionPaymentMethodDetail.d.ts +18 -0
- package/build/__api/models/TransactionResponse.d.ts +16 -0
- package/build/__api/models/UpdateCartCampaignOfferInput.d.ts +14 -0
- package/build/__api/models/Variant.d.ts +27 -0
- package/build/__api/models/VariantStock.d.ts +10 -0
- package/build/__api/models/VariantType.d.ts +16 -0
- package/build/__api/models/VariantTypeTranslation.d.ts +12 -0
- package/build/__api/models/VariantUnitModel.d.ts +11 -0
- package/build/__api/models/VariantValue.d.ts +12 -0
- package/build/__api/models/VariantValueRelation.d.ts +10 -0
- package/build/__api/models/VariantValueTranslation.d.ts +10 -0
- package/build/__api/models/_base.d.ts +18 -0
- package/build/__api/models/_base.js +1 -0
- package/build/__api/mutations/activateCustomer.d.ts +6 -0
- package/build/__api/mutations/addCouponCodeToCheckout.d.ts +231 -0
- package/build/__api/mutations/addItemToCart.d.ts +278 -0
- package/build/__api/mutations/addItemToCart.js +1 -0
- package/build/__api/mutations/createCustomerEmailSubscription.d.ts +69 -0
- package/build/__api/mutations/createCustomerEmailSubscription.js +1 -0
- package/build/__api/mutations/createCustomerReview.d.ts +27 -0
- package/build/__api/mutations/createCustomerReview.js +1 -0
- package/build/__api/mutations/createOrderRefundRequest.d.ts +210 -0
- package/build/__api/mutations/createOrderRefundRequest.js +1 -0
- package/build/__api/mutations/createSaleTransactionWithCart.d.ts +17 -0
- package/build/__api/mutations/createSaleTransactionWithCart.js +1 -0
- package/build/__api/mutations/createSaleTransactionWithCheckout.d.ts +17 -0
- package/build/__api/mutations/createStripePaymentIntent.d.ts +13 -0
- package/build/__api/mutations/createStripePaymentIntent.js +1 -0
- package/build/__api/mutations/customerForgotPassword.d.ts +8 -0
- package/build/__api/mutations/customerForgotPassword.js +1 -0
- package/build/__api/mutations/customerLogin.d.ts +73 -0
- package/build/__api/mutations/customerLogin.js +1 -0
- package/build/__api/mutations/customerRecoverPassword.d.ts +9 -0
- package/build/__api/mutations/customerRecoverPassword.js +1 -0
- package/build/__api/mutations/customerRefreshToken.d.ts +11 -0
- package/build/__api/mutations/customerRefreshToken.js +1 -0
- package/build/__api/mutations/deleteRaffleParticipantsList.d.ts +6 -0
- package/build/__api/mutations/getOrderLineFile.d.ts +7 -0
- package/build/__api/mutations/getOrderLineFile.js +1 -0
- package/build/__api/mutations/registerCustomer.d.ts +78 -0
- package/build/__api/mutations/registerCustomer.js +1 -0
- package/build/__api/mutations/retrieveInstallmentInfo.d.ts +20 -0
- package/build/__api/mutations/retrieveInstallmentInfo.js +1 -0
- package/build/__api/mutations/saveCart.d.ts +278 -0
- package/build/__api/mutations/saveCart.js +1 -0
- package/build/__api/mutations/saveCartCouponCode.d.ts +279 -0
- package/build/__api/mutations/saveCartCouponCode.js +1 -0
- package/build/__api/mutations/saveCheckout.d.ts +230 -0
- package/build/__api/mutations/saveFavoriteProduct.d.ts +7 -0
- package/build/__api/mutations/saveFavoriteProduct.js +1 -0
- package/build/__api/mutations/saveItemToCart.d.ts +110 -0
- package/build/__api/mutations/saveLastViewedProducts.d.ts +20 -0
- package/build/__api/mutations/saveLastViewedProducts.js +1 -0
- package/build/__api/mutations/saveMyCustomer.d.ts +69 -0
- package/build/__api/mutations/saveMyCustomer.js +1 -0
- package/build/__api/mutations/saveProductBackInStockRemind.d.ts +19 -0
- package/build/__api/mutations/saveProductBackInStockRemind.js +1 -0
- package/build/__api/mutations/saveRaffleParticipant.d.ts +49 -0
- package/build/__api/mutations/saveRaffleParticipant.js +1 -0
- package/build/__api/mutations/sendContactFormToMerchant.d.ts +12 -0
- package/build/__api/mutations/sendContactFormToMerchant.js +1 -0
- package/build/__api/mutations/updateCartCampaignOffer.d.ts +278 -0
- package/build/__api/mutations/updateCartCampaignOffer.js +1 -0
- package/build/__api/queries/checkCustomerEmail.d.ts +12 -0
- package/build/__api/queries/checkCustomerEmail.js +1 -0
- package/build/__api/queries/checkStocks.d.ts +13 -0
- package/build/__api/queries/checkStocks.js +1 -0
- package/build/__api/queries/customerSocialLogin.d.ts +71 -0
- package/build/__api/queries/customerSocialLogin.js +1 -0
- package/build/__api/queries/getAvailableShippingCountries.d.ts +6 -0
- package/build/__api/queries/getAvailableShippingCountries.js +1 -0
- package/build/__api/queries/getAvailableStockLocations.d.ts +28 -0
- package/build/__api/queries/getAvailableStockLocations.js +1 -0
- package/build/__api/queries/getCart.d.ts +112 -0
- package/build/__api/queries/getCartById.d.ts +279 -0
- package/build/__api/queries/getCartById.js +1 -0
- package/build/__api/queries/getCheckoutByCartId.d.ts +230 -0
- package/build/__api/queries/getCheckoutById.d.ts +230 -0
- package/build/__api/queries/getCurrencyRate.d.ts +19 -0
- package/build/__api/queries/getCustomerOrders.d.ts +210 -0
- package/build/__api/queries/getCustomerOrders.js +1 -0
- package/build/__api/queries/getLastViewedProducts.d.ts +20 -0
- package/build/__api/queries/getLastViewedProducts.js +1 -0
- package/build/__api/queries/getMasterPassRequestToken.d.ts +15 -0
- package/build/__api/queries/getMasterPassRequestToken.js +1 -0
- package/build/__api/queries/getMyCountry.d.ts +3 -0
- package/build/__api/queries/getMyCountry.js +1 -0
- package/build/__api/queries/getMyCustomer.d.ts +66 -0
- package/build/__api/queries/getMyCustomer.js +1 -0
- package/build/__api/queries/getOrder.d.ts +210 -0
- package/build/__api/queries/getOrderByEmail.d.ts +211 -0
- package/build/__api/queries/getOrderByEmail.js +1 -0
- package/build/__api/queries/getProductCampaigns.d.ts +47 -0
- package/build/__api/queries/getProductCampaigns.js +1 -0
- package/build/__api/queries/getProductFilterData.d.ts +167 -0
- package/build/__api/queries/getProductFilterData.js +1 -0
- package/build/__api/queries/getProductOptionFileUrl.d.ts +14 -0
- package/build/__api/queries/getProductOptionFileUrl.js +1 -0
- package/build/__api/queries/getRelatedProducts.d.ts +14 -0
- package/build/__api/queries/getRelatedProducts.js +1 -0
- package/build/__api/queries/getStorefront.d.ts +67 -0
- package/build/__api/queries/getStorefrontSettings.d.ts +3 -0
- package/build/__api/queries/getStorefrontSettings.js +1 -0
- package/build/__api/queries/getVariantStockLocations.d.ts +30 -0
- package/build/__api/queries/isFavoriteProduct.d.ts +6 -0
- package/build/__api/queries/isFavoriteProduct.js +1 -0
- package/build/__api/queries/listBlog.d.ts +76 -0
- package/build/__api/queries/listBlog.js +1 -0
- package/build/__api/queries/listBlogCategory.d.ts +35 -0
- package/build/__api/queries/listBlogCategory.js +1 -0
- package/build/__api/queries/listBlogMetadata.d.ts +30 -0
- package/build/__api/queries/listBlogMetadata.js +1 -0
- package/build/__api/queries/listCampaignOffer.d.ts +37 -0
- package/build/__api/queries/listCategory.d.ts +89 -0
- package/build/__api/queries/listCategory.js +1 -0
- package/build/__api/queries/listCheckoutSettings.d.ts +30 -0
- package/build/__api/queries/listCheckoutSettings.js +1 -0
- package/build/__api/queries/listCity.d.ts +25 -0
- package/build/__api/queries/listCity.js +1 -0
- package/build/__api/queries/listCountry.d.ts +35 -0
- package/build/__api/queries/listCountry.js +1 -0
- package/build/__api/queries/listCustomerAttribute.d.ts +27 -0
- package/build/__api/queries/listCustomerAttribute.js +1 -0
- package/build/__api/queries/listCustomerReviewSummary.d.ts +23 -0
- package/build/__api/queries/listCustomerReviewSummary.js +1 -0
- package/build/__api/queries/listCustomerReviews.d.ts +35 -0
- package/build/__api/queries/listCustomerReviews.js +1 -0
- package/build/__api/queries/listDistrict.d.ts +26 -0
- package/build/__api/queries/listDistrict.js +1 -0
- package/build/__api/queries/listFavoriteProducts.d.ts +12 -0
- package/build/__api/queries/listFavoriteProducts.js +1 -0
- package/build/__api/queries/listHTMLMetaData.d.ts +34 -0
- package/build/__api/queries/listHTMLMetaData.js +1 -0
- package/build/__api/queries/listMerchantSettings.d.ts +46 -0
- package/build/__api/queries/listMerchantSettings.js +1 -0
- package/build/__api/queries/listOrderRefundSettings.d.ts +21 -0
- package/build/__api/queries/listOrderRefundSettings.js +1 -0
- package/build/__api/queries/listOrderTransactions.d.ts +44 -0
- package/build/__api/queries/listOrderTransactions.js +1 -0
- package/build/__api/queries/listPaymentGateway.d.ts +40 -0
- package/build/__api/queries/listPaymentGateway.js +1 -0
- package/build/__api/queries/listProduct.d.ts +101 -0
- package/build/__api/queries/listProductAttribute.d.ts +33 -0
- package/build/__api/queries/listProductAttribute.js +1 -0
- package/build/__api/queries/listProductBackInStockRemind.d.ts +24 -0
- package/build/__api/queries/listProductBackInStockRemind.js +1 -0
- package/build/__api/queries/listProductBrand.d.ts +51 -0
- package/build/__api/queries/listProductBrand.js +1 -0
- package/build/__api/queries/listProductOptionSet.d.ts +61 -0
- package/build/__api/queries/listProductOptionSet.js +1 -0
- package/build/__api/queries/listProductStockLocation.d.ts +18 -0
- package/build/__api/queries/listRaffleMetadata.d.ts +26 -0
- package/build/__api/queries/listRaffleMetadata.js +1 -0
- package/build/__api/queries/listRaffleParticipants.d.ts +46 -0
- package/build/__api/queries/listRaffleParticipants.js +1 -0
- package/build/__api/queries/listState.d.ts +20 -0
- package/build/__api/queries/listState.js +1 -0
- package/build/__api/queries/listStockLocation.d.ts +35 -0
- package/build/__api/queries/listStockLocation.js +1 -0
- package/build/__api/queries/listStorefrontRaffle.d.ts +44 -0
- package/build/__api/queries/listStorefrontRaffle.js +1 -0
- package/build/__api/queries/listTown.d.ts +20 -0
- package/build/__api/queries/listVariantType.d.ts +29 -0
- package/build/__api/queries/searchProducts.d.ts +141 -0
- package/build/__api/queries/searchProducts.js +1 -0
- package/build/__api/types/index.d.ts +2840 -0
- package/build/__api/types/index.js +1 -0
- package/build/api/blog/index.d.ts +27 -0
- package/build/api/blog/index.js +1 -0
- package/build/api/brand/index.d.ts +11 -0
- package/build/api/brand/index.js +1 -0
- package/build/api/cart/index.d.ts +13 -0
- package/build/api/cart/index.js +1 -0
- package/build/api/category/index.d.ts +11 -0
- package/build/api/category/index.js +1 -0
- package/build/api/checkout/index.d.ts +21 -0
- package/build/api/checkout/index.js +1 -0
- package/build/api/customer/index.d.ts +130 -0
- package/build/api/customer/index.js +1 -0
- package/build/api/file-upload/index.d.ts +11 -0
- package/build/api/file-upload/index.js +1 -0
- package/build/api/html-meta-data/index.d.ts +5 -0
- package/build/api/html-meta-data/index.js +1 -0
- package/build/api/location/index.d.ts +12 -0
- package/build/api/location/index.js +1 -0
- package/build/api/masterpass/index.d.ts +3 -0
- package/build/api/masterpass/index.js +1 -0
- package/build/api/merchant/index.d.ts +5 -0
- package/build/api/merchant/index.js +1 -0
- package/build/api/product/index.d.ts +40 -0
- package/build/api/product/index.js +1 -0
- package/build/api/raffle/index.d.ts +16 -0
- package/build/api/raffle/index.js +1 -0
- package/build/api/storefront/index.d.ts +13 -0
- package/build/api/storefront/index.js +1 -0
- package/build/index.d.ts +23 -0
- package/build/index.js +1 -0
- package/build/index2.js +1 -0
- package/package.json +8 -8
- package/src/__api/models/AbandonedCartFlow.ts +0 -34
- package/src/__api/models/AbandonedCartFlowCustomerFilter.ts +0 -25
- package/src/__api/models/AddItemToCartInput.ts +0 -29
- package/src/__api/models/AdditionalPrice.ts +0 -24
- package/src/__api/models/ApplicableProductFilterValue.ts +0 -23
- package/src/__api/models/AppliedProduct.ts +0 -15
- package/src/__api/models/AppliedProductInput.ts +0 -15
- package/src/__api/models/AvailableShippingMethod.ts +0 -24
- package/src/__api/models/Blog.ts +0 -55
- package/src/__api/models/BlogCategory.ts +0 -23
- package/src/__api/models/BlogCategoryPaginationResponse.ts +0 -24
- package/src/__api/models/BlogContent.ts +0 -20
- package/src/__api/models/BlogMetadata.ts +0 -32
- package/src/__api/models/BlogMetadataPaginationResponse.ts +0 -24
- package/src/__api/models/BlogMetadataTargetTypeEnumFilter.ts +0 -22
- package/src/__api/models/BlogPaginationResponse.ts +0 -23
- package/src/__api/models/BlogTag.ts +0 -16
- package/src/__api/models/BlogWriter.ts +0 -15
- package/src/__api/models/BooleanFilterInput.ts +0 -13
- package/src/__api/models/BuyX.ts +0 -20
- package/src/__api/models/BuyXThenGetY.ts +0 -22
- package/src/__api/models/Campaign.ts +0 -75
- package/src/__api/models/CampaignDateRangeField.ts +0 -16
- package/src/__api/models/CampaignFilter.ts +0 -16
- package/src/__api/models/CampaignMinMaxRangeField.ts +0 -16
- package/src/__api/models/CampaignOffer.ts +0 -50
- package/src/__api/models/CampaignOfferProduct.ts +0 -49
- package/src/__api/models/CampaignOfferProductTranslation.ts +0 -19
- package/src/__api/models/CampaignOfferTriggerSettings.ts +0 -19
- package/src/__api/models/Cart.ts +0 -63
- package/src/__api/models/CartCampaignOffer.ts +0 -31
- package/src/__api/models/CartLineItemInput.ts +0 -20
- package/src/__api/models/CartLineOptionInput.ts +0 -17
- package/src/__api/models/CartLineVariantInput.ts +0 -15
- package/src/__api/models/CartStorefrontRouting.ts +0 -28
- package/src/__api/models/CartStorefrontRoutingDynamicCurrencySettings.ts +0 -21
- package/src/__api/models/CartV2.ts +0 -166
- package/src/__api/models/CartV2CampaignOffer.ts +0 -36
- package/src/__api/models/Category.ts +0 -58
- package/src/__api/models/CategoryCondition.ts +0 -17
- package/src/__api/models/CategoryFilterInput.ts +0 -17
- package/src/__api/models/CategoryPaginationResponse.ts +0 -24
- package/src/__api/models/CategoryPathFilterInput.ts +0 -14
- package/src/__api/models/CategoryPathItem.ts +0 -33
- package/src/__api/models/CategoryTranslation.ts +0 -17
- package/src/__api/models/CheckStocksLineInput.ts +0 -17
- package/src/__api/models/CheckStocksLineResponse.ts +0 -18
- package/src/__api/models/CheckStocksResponse.ts +0 -16
- package/src/__api/models/Checkout.ts +0 -102
- package/src/__api/models/CheckoutCustomer.ts +0 -39
- package/src/__api/models/CheckoutCustomerInput.ts +0 -25
- package/src/__api/models/CheckoutOption.ts +0 -15
- package/src/__api/models/CheckoutSettings.ts +0 -62
- package/src/__api/models/CheckoutSettingsPrice.ts +0 -17
- package/src/__api/models/City.ts +0 -29
- package/src/__api/models/Country.ts +0 -45
- package/src/__api/models/CreateCustomerEmailSubscriptionInput.ts +0 -22
- package/src/__api/models/CreateCustomerReviewInput.ts +0 -38
- package/src/__api/models/CreateSaleTransactionMasterPassPaymentMethodDetail.ts +0 -19
- package/src/__api/models/CreateSaleTransactionWithCartInput.ts +0 -29
- package/src/__api/models/CreateSaleTransactionWithCheckoutInput.ts +0 -29
- package/src/__api/models/CreateStripePaymentIntentResponse.ts +0 -21
- package/src/__api/models/CurrencyRate.ts +0 -27
- package/src/__api/models/CurrencyRateData.ts +0 -15
- package/src/__api/models/Customer.ts +0 -81
- package/src/__api/models/CustomerAddress.ts +0 -64
- package/src/__api/models/CustomerAddressCity.ts +0 -17
- package/src/__api/models/CustomerAddressCityInput.ts +0 -18
- package/src/__api/models/CustomerAddressCountry.ts +0 -22
- package/src/__api/models/CustomerAddressCountryInput.ts +0 -23
- package/src/__api/models/CustomerAddressDistrict.ts +0 -18
- package/src/__api/models/CustomerAddressDistrictInput.ts +0 -19
- package/src/__api/models/CustomerAddressState.ts +0 -17
- package/src/__api/models/CustomerAddressStateInput.ts +0 -19
- package/src/__api/models/CustomerAttribute.ts +0 -36
- package/src/__api/models/CustomerAttributeOption.ts +0 -17
- package/src/__api/models/CustomerAttributeOptionTranslation.ts +0 -17
- package/src/__api/models/CustomerAttributeSalesChannel.ts +0 -28
- package/src/__api/models/CustomerAttributeTranslation.ts +0 -24
- package/src/__api/models/CustomerAttributeValue.ts +0 -18
- package/src/__api/models/CustomerAttributeValueInput.ts +0 -19
- package/src/__api/models/CustomerCheckResponse.ts +0 -13
- package/src/__api/models/CustomerFavoriteProduct.ts +0 -19
- package/src/__api/models/CustomerLoginResponse.ts +0 -18
- package/src/__api/models/CustomerRefreshTokenResponse.ts +0 -17
- package/src/__api/models/CustomerReview.ts +0 -43
- package/src/__api/models/CustomerReviewSFPaginationResponse.ts +0 -26
- package/src/__api/models/CustomerReviewSummary.ts +0 -25
- package/src/__api/models/CustomerReviewSummaryPaginationResponse.ts +0 -26
- package/src/__api/models/CustomerReviewSummaryStar.ts +0 -17
- package/src/__api/models/DateFilterInput.ts +0 -27
- package/src/__api/models/District.ts +0 -29
- package/src/__api/models/FixedDiscount.ts +0 -28
- package/src/__api/models/GetAvailableStockLocation.ts +0 -25
- package/src/__api/models/GetAvailableStockLocationAddress.ts +0 -36
- package/src/__api/models/GetAvailableStockLocationAddressCity.ts +0 -19
- package/src/__api/models/GetAvailableStockLocationsResponse.ts +0 -18
- package/src/__api/models/GetOrderLineFile.ts +0 -13
- package/src/__api/models/GetProductCampaignsInput.ts +0 -18
- package/src/__api/models/GetProductCampaignsResponse.ts +0 -20
- package/src/__api/models/GetProductOptionFileUrl.ts +0 -18
- package/src/__api/models/GetVariantStockLocation.ts +0 -21
- package/src/__api/models/GetVariantStockLocationListResponse.ts +0 -18
- package/src/__api/models/GetY.ts +0 -26
- package/src/__api/models/HTMLMetaData.ts +0 -44
- package/src/__api/models/HTMLMetaDataOverride.ts +0 -21
- package/src/__api/models/HTMLMetaDataTargetTypeEnumFilter.ts +0 -22
- package/src/__api/models/HTMLMetaDataTranslation.ts +0 -18
- package/src/__api/models/Invoice.ts +0 -26
- package/src/__api/models/ListCustomerReviewInput.ts +0 -14
- package/src/__api/models/LocationTranslations.ts +0 -17
- package/src/__api/models/MasterPassTokenResponse.ts +0 -18
- package/src/__api/models/MerchantAddress.ts +0 -48
- package/src/__api/models/MerchantAddressCity.ts +0 -17
- package/src/__api/models/MerchantAddressCountry.ts +0 -18
- package/src/__api/models/MerchantAddressDistrict.ts +0 -18
- package/src/__api/models/MerchantAddressState.ts +0 -17
- package/src/__api/models/MerchantSettings.ts +0 -32
- package/src/__api/models/MerchantSettingsCurrencyFormat.ts +0 -27
- package/src/__api/models/OrderAddress.ts +0 -53
- package/src/__api/models/OrderAddressCity.ts +0 -17
- package/src/__api/models/OrderAddressCityInput.ts +0 -17
- package/src/__api/models/OrderAddressCountry.ts +0 -21
- package/src/__api/models/OrderAddressCountryInput.ts +0 -22
- package/src/__api/models/OrderAddressDistrict.ts +0 -17
- package/src/__api/models/OrderAddressDistrictInput.ts +0 -19
- package/src/__api/models/OrderAddressInput.ts +0 -53
- package/src/__api/models/OrderAddressState.ts +0 -17
- package/src/__api/models/OrderAddressStateInput.ts +0 -18
- package/src/__api/models/OrderAdjustment.ts +0 -35
- package/src/__api/models/OrderAdjustmentAppliedOrderLine.ts +0 -24
- package/src/__api/models/OrderAdjustmentInput.ts +0 -26
- package/src/__api/models/OrderCurrencyRate.ts +0 -17
- package/src/__api/models/OrderCustomer.ts +0 -34
- package/src/__api/models/OrderGiftPackageLine.ts +0 -18
- package/src/__api/models/OrderLineBaseUnit.ts +0 -19
- package/src/__api/models/OrderLineDiscount.ts +0 -28
- package/src/__api/models/OrderLineItem.ts +0 -71
- package/src/__api/models/OrderLineOption.ts +0 -25
- package/src/__api/models/OrderLineOptionValue.ts +0 -18
- package/src/__api/models/OrderLineVariant.ts +0 -64
- package/src/__api/models/OrderLineVariantBrand.ts +0 -15
- package/src/__api/models/OrderLineVariantCategory.ts +0 -21
- package/src/__api/models/OrderLineVariantCategoryPath.ts +0 -17
- package/src/__api/models/OrderLineVariantPrice.ts +0 -34
- package/src/__api/models/OrderLineVariantUnit.ts +0 -16
- package/src/__api/models/OrderLineVariantUnitType.ts +0 -16
- package/src/__api/models/OrderLineVariantVariantValues.ts +0 -23
- package/src/__api/models/OrderPackage.ts +0 -33
- package/src/__api/models/OrderPaymentMethod.ts +0 -22
- package/src/__api/models/OrderRefundOrderLineInput.ts +0 -17
- package/src/__api/models/OrderRefundRequestInput.ts +0 -21
- package/src/__api/models/OrderRefundSettings.ts +0 -28
- package/src/__api/models/OrderSessionInfo.ts +0 -49
- package/src/__api/models/OrderSessionInfoTrafficSource.ts +0 -18
- package/src/__api/models/OrderSessionUTM.ts +0 -21
- package/src/__api/models/OrderSessionUserAgent.ts +0 -18
- package/src/__api/models/OrderShippingLine.ts +0 -34
- package/src/__api/models/OrderStorefrontRouting.ts +0 -29
- package/src/__api/models/OrderStorefrontRoutingDynamicCurrencySettings.ts +0 -19
- package/src/__api/models/OrderTaxLine.ts +0 -15
- package/src/__api/models/PaginationInput.ts +0 -17
- package/src/__api/models/PaymentGateway.ts +0 -61
- package/src/__api/models/PaymentGatewayPaymentMethod.ts +0 -17
- package/src/__api/models/PaymentGatewaySettings.ts +0 -21
- package/src/__api/models/PaymentGatewayTranslation.ts +0 -19
- package/src/__api/models/PaymentMethodDetailInput.ts +0 -26
- package/src/__api/models/Product.ts +0 -74
- package/src/__api/models/ProductAttribute.ts +0 -36
- package/src/__api/models/ProductAttributeOption.ts +0 -17
- package/src/__api/models/ProductAttributeOptionTranslation.ts +0 -17
- package/src/__api/models/ProductAttributeTableCellData.ts +0 -17
- package/src/__api/models/ProductAttributeTableTemplate.ts +0 -22
- package/src/__api/models/ProductAttributeTranslation.ts +0 -24
- package/src/__api/models/ProductAttributeValue.ts +0 -19
- package/src/__api/models/ProductBackInStockRemind.ts +0 -27
- package/src/__api/models/ProductBackInStockRemindInput.ts +0 -19
- package/src/__api/models/ProductBaseUnitModel.ts +0 -21
- package/src/__api/models/ProductBrand.ts +0 -33
- package/src/__api/models/ProductBrandPaginationResponse.ts +0 -24
- package/src/__api/models/ProductBrandTranslation.ts +0 -18
- package/src/__api/models/ProductFacetCount.ts +0 -18
- package/src/__api/models/ProductFacetCountValue.ts +0 -16
- package/src/__api/models/ProductFilterData.ts +0 -21
- package/src/__api/models/ProductFilterDataFilter.ts +0 -49
- package/src/__api/models/ProductFilterSettings.ts +0 -25
- package/src/__api/models/ProductImage.ts +0 -20
- package/src/__api/models/ProductItem.ts +0 -18
- package/src/__api/models/ProductItemInput.ts +0 -18
- package/src/__api/models/ProductLastViewed.ts +0 -21
- package/src/__api/models/ProductLastViewedInput.ts +0 -22
- package/src/__api/models/ProductOption.ts +0 -62
- package/src/__api/models/ProductOptionDateSettings.ts +0 -29
- package/src/__api/models/ProductOptionFileSettings.ts +0 -25
- package/src/__api/models/ProductOptionSelectSettings.ts +0 -31
- package/src/__api/models/ProductOptionSelectValue.ts +0 -33
- package/src/__api/models/ProductOptionSelectValueOtherPrice.ts +0 -19
- package/src/__api/models/ProductOptionSelectValueTranslations.ts +0 -17
- package/src/__api/models/ProductOptionSet.ts +0 -26
- package/src/__api/models/ProductOptionSetTranslations.ts +0 -20
- package/src/__api/models/ProductOptionTextSettings.ts +0 -17
- package/src/__api/models/ProductOptionTranslations.ts +0 -24
- package/src/__api/models/ProductPaginationResponse.ts +0 -24
- package/src/__api/models/ProductPrice.ts +0 -31
- package/src/__api/models/ProductSearchResponse.ts +0 -31
- package/src/__api/models/ProductStockLocation.ts +0 -22
- package/src/__api/models/ProductTagTranslation.ts +0 -17
- package/src/__api/models/ProductTranslation.ts +0 -17
- package/src/__api/models/ProductVariantType.ts +0 -17
- package/src/__api/models/RaffleDateRangeField.ts +0 -15
- package/src/__api/models/RaffleMetadata.ts +0 -32
- package/src/__api/models/RaffleMetadataTargetTypeEnumFilter.ts +0 -22
- package/src/__api/models/RafflePaginationResponse.ts +0 -25
- package/src/__api/models/RaffleParticipants.ts +0 -48
- package/src/__api/models/RaffleParticipantsInput.ts +0 -29
- package/src/__api/models/RaffleVariantInformation.ts +0 -16
- package/src/__api/models/RetrieveInstallmentInfoInput.ts +0 -19
- package/src/__api/models/RetrieveInstallmentInfoResponse.ts +0 -36
- package/src/__api/models/SaveCartInput.ts +0 -50
- package/src/__api/models/SaveCheckoutInput.ts +0 -56
- package/src/__api/models/SaveItemToCartInput.ts +0 -35
- package/src/__api/models/SaveMyCustomerAddressInput.ts +0 -63
- package/src/__api/models/SaveMyCustomerInput.ts +0 -30
- package/src/__api/models/SearchCategory.ts +0 -27
- package/src/__api/models/SearchCategoryPath.ts +0 -22
- package/src/__api/models/SearchDynamicCurrencySettings.ts +0 -17
- package/src/__api/models/SearchHTMLMetaData.ts +0 -36
- package/src/__api/models/SearchHTMLMetaDataOverride.ts +0 -23
- package/src/__api/models/SearchInput.ts +0 -64
- package/src/__api/models/SearchInputFacetListInput.ts +0 -20
- package/src/__api/models/SearchInputFilterListInput.ts +0 -27
- package/src/__api/models/SearchInputOrderByInput.ts +0 -17
- package/src/__api/models/SearchProduct.ts +0 -77
- package/src/__api/models/SearchProductAttribute.ts +0 -28
- package/src/__api/models/SearchProductAttributeOption.ts +0 -17
- package/src/__api/models/SearchProductAttributeTableCellData.ts +0 -17
- package/src/__api/models/SearchProductAttributeTableTemplate.ts +0 -22
- package/src/__api/models/SearchProductAttributeValue.ts +0 -27
- package/src/__api/models/SearchProductBrand.ts +0 -22
- package/src/__api/models/SearchProductImage.ts +0 -21
- package/src/__api/models/SearchProductPrice.ts +0 -36
- package/src/__api/models/SearchProductProductBaseUnit.ts +0 -23
- package/src/__api/models/SearchProductProductUnit.ts +0 -16
- package/src/__api/models/SearchProductStockLocation.ts +0 -17
- package/src/__api/models/SearchProductTag.ts +0 -20
- package/src/__api/models/SearchProductVariantType.ts +0 -21
- package/src/__api/models/SearchVariant.ts +0 -61
- package/src/__api/models/SearchVariantType.ts +0 -27
- package/src/__api/models/SearchVariantValue.ts +0 -19
- package/src/__api/models/SearchVariationValueRelation.ts +0 -17
- package/src/__api/models/SocialLoginSettings.ts +0 -18
- package/src/__api/models/State.ts +0 -20
- package/src/__api/models/StockLocation.ts +0 -36
- package/src/__api/models/StockLocationAddress.ts +0 -35
- package/src/__api/models/StockLocationAddressCity.ts +0 -18
- package/src/__api/models/StockLocationAddressCountry.ts +0 -19
- package/src/__api/models/StockLocationAddressDistrict.ts +0 -19
- package/src/__api/models/StockLocationAddressState.ts +0 -19
- package/src/__api/models/Storefront.ts +0 -66
- package/src/__api/models/StorefrontDomain.ts +0 -25
- package/src/__api/models/StorefrontDynamicCurrencySettings.ts +0 -19
- package/src/__api/models/StorefrontLocalization.ts +0 -21
- package/src/__api/models/StorefrontOrder.ts +0 -118
- package/src/__api/models/StorefrontRaffle.ts +0 -38
- package/src/__api/models/StorefrontRouting.ts +0 -33
- package/src/__api/models/StorefrontTheme.ts +0 -25
- package/src/__api/models/StorefrontTransaction.ts +0 -55
- package/src/__api/models/StringFilterInput.ts +0 -21
- package/src/__api/models/Town.ts +0 -21
- package/src/__api/models/TrackingInfo.ts +0 -24
- package/src/__api/models/TransactionError.ts +0 -17
- package/src/__api/models/TransactionInstallmentPrice.ts +0 -36
- package/src/__api/models/TransactionPaymentMethodDetail.ts +0 -39
- package/src/__api/models/TransactionResponse.ts +0 -26
- package/src/__api/models/UpdateCartCampaignOfferInput.ts +0 -25
- package/src/__api/models/Variant.ts +0 -61
- package/src/__api/models/VariantStock.ts +0 -15
- package/src/__api/models/VariantType.ts +0 -29
- package/src/__api/models/VariantTypeTranslation.ts +0 -21
- package/src/__api/models/VariantUnitModel.ts +0 -17
- package/src/__api/models/VariantValue.ts +0 -20
- package/src/__api/models/VariantValueRelation.ts +0 -15
- package/src/__api/models/VariantValueTranslation.ts +0 -16
- package/src/__api/models/_base.ts +0 -27
- package/src/__api/mutations/activateCustomer.ts +0 -38
- package/src/__api/mutations/addCouponCodeToCheckout.ts +0 -272
- package/src/__api/mutations/addItemToCart.ts +0 -317
- package/src/__api/mutations/createCustomerEmailSubscription.ts +0 -111
- package/src/__api/mutations/createCustomerReview.ts +0 -66
- package/src/__api/mutations/createOrderRefundRequest.ts +0 -252
- package/src/__api/mutations/createSaleTransactionWithCart.ts +0 -62
- package/src/__api/mutations/createSaleTransactionWithCheckout.ts +0 -62
- package/src/__api/mutations/createStripePaymentIntent.ts +0 -57
- package/src/__api/mutations/customerForgotPassword.ts +0 -44
- package/src/__api/mutations/customerLogin.ts +0 -116
- package/src/__api/mutations/customerRecoverPassword.ts +0 -47
- package/src/__api/mutations/customerRefreshToken.ts +0 -52
- package/src/__api/mutations/deleteRaffleParticipantsList.ts +0 -38
- package/src/__api/mutations/getOrderLineFile.ts +0 -39
- package/src/__api/mutations/registerCustomer.ts +0 -134
- package/src/__api/mutations/retrieveInstallmentInfo.ts +0 -65
- package/src/__api/mutations/saveCart.ts +0 -317
- package/src/__api/mutations/saveCartCouponCode.ts +0 -320
- package/src/__api/mutations/saveCheckout.ts +0 -269
- package/src/__api/mutations/saveFavoriteProduct.ts +0 -41
- package/src/__api/mutations/saveItemToCart.ts +0 -149
- package/src/__api/mutations/saveLastViewedProducts.ts +0 -62
- package/src/__api/mutations/saveMyCustomer.ts +0 -108
- package/src/__api/mutations/saveProductBackInStockRemind.ts +0 -64
- package/src/__api/mutations/saveRaffleParticipant.ts +0 -91
- package/src/__api/mutations/sendContactFormToMerchant.ts +0 -56
- package/src/__api/mutations/updateCartCampaignOffer.ts +0 -317
- package/src/__api/queries/checkCustomerEmail.ts +0 -57
- package/src/__api/queries/checkStocks.ts +0 -53
- package/src/__api/queries/customerSocialLogin.ts +0 -113
- package/src/__api/queries/getAvailableShippingCountries.ts +0 -41
- package/src/__api/queries/getAvailableStockLocations.ts +0 -75
- package/src/__api/queries/getCart.ts +0 -155
- package/src/__api/queries/getCartById.ts +0 -320
- package/src/__api/queries/getCheckoutByCartId.ts +0 -269
- package/src/__api/queries/getCheckoutById.ts +0 -269
- package/src/__api/queries/getCurrencyRate.ts +0 -58
- package/src/__api/queries/getCustomerOrders.ts +0 -249
- package/src/__api/queries/getLastViewedProducts.ts +0 -62
- package/src/__api/queries/getMasterPassRequestToken.ts +0 -62
- package/src/__api/queries/getMyCountry.ts +0 -26
- package/src/__api/queries/getMyCustomer.ts +0 -95
- package/src/__api/queries/getOrder.ts +0 -249
- package/src/__api/queries/getOrderByEmail.ts +0 -252
- package/src/__api/queries/getProductCampaigns.ts +0 -92
- package/src/__api/queries/getProductFilterData.ts +0 -211
- package/src/__api/queries/getProductOptionFileUrl.ts +0 -59
- package/src/__api/queries/getRelatedProducts.ts +0 -60
- package/src/__api/queries/getStorefront.ts +0 -106
- package/src/__api/queries/getStorefrontSettings.ts +0 -26
- package/src/__api/queries/getVariantStockLocations.ts +0 -74
- package/src/__api/queries/isFavoriteProduct.ts +0 -38
- package/src/__api/queries/listBlog.ts +0 -136
- package/src/__api/queries/listBlogCategory.ts +0 -92
- package/src/__api/queries/listBlogMetadata.ts +0 -90
- package/src/__api/queries/listCampaignOffer.ts +0 -76
- package/src/__api/queries/listCategory.ts +0 -151
- package/src/__api/queries/listCheckoutSettings.ts +0 -76
- package/src/__api/queries/listCity.ts +0 -74
- package/src/__api/queries/listCountry.ts +0 -86
- package/src/__api/queries/listCustomerAttribute.ts +0 -62
- package/src/__api/queries/listCustomerReviewSummary.ts +0 -71
- package/src/__api/queries/listCustomerReviews.ts +0 -90
- package/src/__api/queries/listDistrict.ts +0 -77
- package/src/__api/queries/listFavoriteProducts.ts +0 -44
- package/src/__api/queries/listHTMLMetaData.ts +0 -88
- package/src/__api/queries/listMerchantSettings.ts +0 -90
- package/src/__api/queries/listOrderRefundSettings.ts +0 -73
- package/src/__api/queries/listOrderTransactions.ts +0 -90
- package/src/__api/queries/listPaymentGateway.ts +0 -85
- package/src/__api/queries/listProduct.ts +0 -163
- package/src/__api/queries/listProductAttribute.ts +0 -81
- package/src/__api/queries/listProductBackInStockRemind.ts +0 -80
- package/src/__api/queries/listProductBrand.ts +0 -110
- package/src/__api/queries/listProductOptionSet.ts +0 -107
- package/src/__api/queries/listProductStockLocation.ts +0 -62
- package/src/__api/queries/listRaffleMetadata.ts +0 -83
- package/src/__api/queries/listRaffleParticipants.ts +0 -81
- package/src/__api/queries/listState.ts +0 -67
- package/src/__api/queries/listStockLocation.ts +0 -76
- package/src/__api/queries/listStorefrontRaffle.ts +0 -108
- package/src/__api/queries/listTown.ts +0 -67
- package/src/__api/queries/listVariantType.ts +0 -74
- package/src/__api/queries/searchProducts.ts +0 -180
- package/src/__api/types/index.ts +0 -3195
- package/src/api/blog/index.ts +0 -70
- package/src/api/brand/index.ts +0 -27
- package/src/api/cart/index.ts +0 -113
- package/src/api/category/index.ts +0 -25
- package/src/api/checkout/index.ts +0 -121
- package/src/api/customer/index.ts +0 -389
- package/src/api/file-upload/index.ts +0 -44
- package/src/api/html-meta-data/index.ts +0 -25
- package/src/api/location/index.ts +0 -73
- package/src/api/masterpass/index.ts +0 -12
- package/src/api/merchant/index.ts +0 -24
- package/src/api/product/index.ts +0 -359
- package/src/api/raffle/index.ts +0 -78
- package/src/api/storefront/index.ts +0 -30
- package/src/index.ts +0 -68
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { StorefrontOrder } from "../types";
|
|
8
|
-
|
|
9
|
-
const getOrderByEmail = async (
|
|
10
|
-
variables: QueryParams,
|
|
11
|
-
fields?: string[],
|
|
12
|
-
config?: ConfigType
|
|
13
|
-
) => {
|
|
14
|
-
try {
|
|
15
|
-
const { data, errors } = await fetchQuery({
|
|
16
|
-
operationName: "getOrderByEmail",
|
|
17
|
-
config,
|
|
18
|
-
variables,
|
|
19
|
-
allReturnFields,
|
|
20
|
-
fields,
|
|
21
|
-
query: (returnFields: string) => `
|
|
22
|
-
query getOrderByEmail (
|
|
23
|
-
$email: String!,
|
|
24
|
-
$orderNumber: String!,
|
|
25
|
-
) {
|
|
26
|
-
getOrderByEmail (
|
|
27
|
-
email: $email,
|
|
28
|
-
orderNumber: $orderNumber,
|
|
29
|
-
) ${returnFields}
|
|
30
|
-
}
|
|
31
|
-
`,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
return new APIResponse<StorefrontOrder>(data?.getOrderByEmail, errors);
|
|
35
|
-
} catch (err) {
|
|
36
|
-
return handleAPIError(err);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default getOrderByEmail;
|
|
41
|
-
|
|
42
|
-
export type QueryParams = {
|
|
43
|
-
email: string;
|
|
44
|
-
orderNumber: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const allReturnFields =
|
|
48
|
-
"{billingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } cancelReason cancelledAt createdAt currencyCode currencyRates {code originalRate rate } currencySymbol customer {email firstName fullName id isGuestCheckout lastName notificationsAccepted phone } customerId deleted giftPackageLines {price taxValue } giftPackageNote id invoices {appId appName createdAt id invoiceNumber storeAppId type } isGiftPackage merchantId note orderAdjustments {amount amountType appliedOrderLines {amount appliedQuantity isAutoCreated orderLineId } campaignId campaignType couponId name order type } orderLineItems {createdAt currencyCode currencySymbol deleted discount {amount amountType campaignOfferId campaignOfferProductId maxApplicableQuantity reason } discountPrice finalPrice finalUnitPrice id options {name productOptionId productOptionsSetId type values {name price value } } originalOrderLineItemId price quantity status statusUpdatedAt stockLocationId taxValue unitPrice updatedAt variant {barcodeList baseUnit {baseAmount type unit {id name } } brand {id name } categories {categoryPath {id name } id name } id mainImageId name prices {buyPrice currency currencySymbol discountPrice priceListId sellPrice unitPrice } productId sku slug tagIds taxValue type unit {amount type } variantValues {order variantTypeId variantTypeName variantValueId variantValueName } weight } } orderNumber orderPackageStatus orderPackages {createdAt deleted errorMessage id note orderLineItemIds orderPackageFulfillStatus orderPackageNumber stockLocationId trackingInfo {barcode cargoCompany isSendNotification trackingLink trackingNumber } updatedAt } orderPaymentStatus orderTagIds orderedAt paymentMethods {paymentGatewayCode paymentGatewayId paymentGatewayName price type } shippingAddress {addressLine1 addressLine2 city {code id name } company country {code id iso2 iso3 name } district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice } shippingLines {finalPrice isRefunded paymentMethod price shippingSettingsId shippingZoneRateId taxValue title } shippingMethod status taxLines {price rate } totalFinalPrice totalPrice updatedAt }";
|
|
49
|
-
|
|
50
|
-
export enum ResponseField {
|
|
51
|
-
BILLING_ADDRESS__ADDRESS_LINE1 = "billingAddress.addressLine1",
|
|
52
|
-
BILLING_ADDRESS__ADDRESS_LINE2 = "billingAddress.addressLine2",
|
|
53
|
-
BILLING_ADDRESS__CITY__CODE = "billingAddress.city.code",
|
|
54
|
-
BILLING_ADDRESS__CITY__ID = "billingAddress.city.id",
|
|
55
|
-
BILLING_ADDRESS__CITY__NAME = "billingAddress.city.name",
|
|
56
|
-
BILLING_ADDRESS__COMPANY = "billingAddress.company",
|
|
57
|
-
BILLING_ADDRESS__COUNTRY__CODE = "billingAddress.country.code",
|
|
58
|
-
BILLING_ADDRESS__COUNTRY__ID = "billingAddress.country.id",
|
|
59
|
-
BILLING_ADDRESS__COUNTRY__ISO2 = "billingAddress.country.iso2",
|
|
60
|
-
BILLING_ADDRESS__COUNTRY__ISO3 = "billingAddress.country.iso3",
|
|
61
|
-
BILLING_ADDRESS__COUNTRY__NAME = "billingAddress.country.name",
|
|
62
|
-
BILLING_ADDRESS__DISTRICT__CODE = "billingAddress.district.code",
|
|
63
|
-
BILLING_ADDRESS__DISTRICT__ID = "billingAddress.district.id",
|
|
64
|
-
BILLING_ADDRESS__DISTRICT__NAME = "billingAddress.district.name",
|
|
65
|
-
BILLING_ADDRESS__FIRST_NAME = "billingAddress.firstName",
|
|
66
|
-
BILLING_ADDRESS__ID = "billingAddress.id",
|
|
67
|
-
BILLING_ADDRESS__IDENTITY_NUMBER = "billingAddress.identityNumber",
|
|
68
|
-
BILLING_ADDRESS__IS_DEFAULT = "billingAddress.isDefault",
|
|
69
|
-
BILLING_ADDRESS__LAST_NAME = "billingAddress.lastName",
|
|
70
|
-
BILLING_ADDRESS__PHONE = "billingAddress.phone",
|
|
71
|
-
BILLING_ADDRESS__POSTAL_CODE = "billingAddress.postalCode",
|
|
72
|
-
BILLING_ADDRESS__STATE__CODE = "billingAddress.state.code",
|
|
73
|
-
BILLING_ADDRESS__STATE__ID = "billingAddress.state.id",
|
|
74
|
-
BILLING_ADDRESS__STATE__NAME = "billingAddress.state.name",
|
|
75
|
-
BILLING_ADDRESS__TAX_NUMBER = "billingAddress.taxNumber",
|
|
76
|
-
BILLING_ADDRESS__TAX_OFFICE = "billingAddress.taxOffice",
|
|
77
|
-
CANCEL_REASON = "cancelReason",
|
|
78
|
-
CANCELLED_AT = "cancelledAt",
|
|
79
|
-
CREATED_AT = "createdAt",
|
|
80
|
-
CURRENCY_CODE = "currencyCode",
|
|
81
|
-
CURRENCY_RATES__CODE = "currencyRates.code",
|
|
82
|
-
CURRENCY_RATES__ORIGINAL_RATE = "currencyRates.originalRate",
|
|
83
|
-
CURRENCY_RATES__RATE = "currencyRates.rate",
|
|
84
|
-
CURRENCY_SYMBOL = "currencySymbol",
|
|
85
|
-
CUSTOMER__EMAIL = "customer.email",
|
|
86
|
-
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
87
|
-
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
88
|
-
CUSTOMER__ID = "customer.id",
|
|
89
|
-
CUSTOMER__IS_GUEST_CHECKOUT = "customer.isGuestCheckout",
|
|
90
|
-
CUSTOMER__LAST_NAME = "customer.lastName",
|
|
91
|
-
CUSTOMER__NOTIFICATIONS_ACCEPTED = "customer.notificationsAccepted",
|
|
92
|
-
CUSTOMER__PHONE = "customer.phone",
|
|
93
|
-
CUSTOMER_ID = "customerId",
|
|
94
|
-
DELETED = "deleted",
|
|
95
|
-
GIFT_PACKAGE_LINES__PRICE = "giftPackageLines.price",
|
|
96
|
-
GIFT_PACKAGE_LINES__TAX_VALUE = "giftPackageLines.taxValue",
|
|
97
|
-
GIFT_PACKAGE_NOTE = "giftPackageNote",
|
|
98
|
-
ID = "id",
|
|
99
|
-
INVOICES__APP_ID = "invoices.appId",
|
|
100
|
-
INVOICES__APP_NAME = "invoices.appName",
|
|
101
|
-
INVOICES__CREATED_AT = "invoices.createdAt",
|
|
102
|
-
INVOICES__ID = "invoices.id",
|
|
103
|
-
INVOICES__INVOICE_NUMBER = "invoices.invoiceNumber",
|
|
104
|
-
INVOICES__STORE_APP_ID = "invoices.storeAppId",
|
|
105
|
-
INVOICES__TYPE = "invoices.type",
|
|
106
|
-
IS_GIFT_PACKAGE = "isGiftPackage",
|
|
107
|
-
MERCHANT_ID = "merchantId",
|
|
108
|
-
NOTE = "note",
|
|
109
|
-
ORDER_ADJUSTMENTS__AMOUNT = "orderAdjustments.amount",
|
|
110
|
-
ORDER_ADJUSTMENTS__AMOUNT_TYPE = "orderAdjustments.amountType",
|
|
111
|
-
ORDER_ADJUSTMENTS__APPLIED_ORDER_LINES__AMOUNT = "orderAdjustments.appliedOrderLines.amount",
|
|
112
|
-
ORDER_ADJUSTMENTS__APPLIED_ORDER_LINES__APPLIED_QUANTITY = "orderAdjustments.appliedOrderLines.appliedQuantity",
|
|
113
|
-
ORDER_ADJUSTMENTS__APPLIED_ORDER_LINES__IS_AUTO_CREATED = "orderAdjustments.appliedOrderLines.isAutoCreated",
|
|
114
|
-
ORDER_ADJUSTMENTS__APPLIED_ORDER_LINES__ORDER_LINE_ID = "orderAdjustments.appliedOrderLines.orderLineId",
|
|
115
|
-
ORDER_ADJUSTMENTS__CAMPAIGN_ID = "orderAdjustments.campaignId",
|
|
116
|
-
ORDER_ADJUSTMENTS__CAMPAIGN_TYPE = "orderAdjustments.campaignType",
|
|
117
|
-
ORDER_ADJUSTMENTS__COUPON_ID = "orderAdjustments.couponId",
|
|
118
|
-
ORDER_ADJUSTMENTS__NAME = "orderAdjustments.name",
|
|
119
|
-
ORDER_ADJUSTMENTS__ORDER = "orderAdjustments.order",
|
|
120
|
-
ORDER_ADJUSTMENTS__TYPE = "orderAdjustments.type",
|
|
121
|
-
ORDER_LINE_ITEMS__CREATED_AT = "orderLineItems.createdAt",
|
|
122
|
-
ORDER_LINE_ITEMS__CURRENCY_CODE = "orderLineItems.currencyCode",
|
|
123
|
-
ORDER_LINE_ITEMS__CURRENCY_SYMBOL = "orderLineItems.currencySymbol",
|
|
124
|
-
ORDER_LINE_ITEMS__DELETED = "orderLineItems.deleted",
|
|
125
|
-
ORDER_LINE_ITEMS__DISCOUNT__AMOUNT = "orderLineItems.discount.amount",
|
|
126
|
-
ORDER_LINE_ITEMS__DISCOUNT__AMOUNT_TYPE = "orderLineItems.discount.amountType",
|
|
127
|
-
ORDER_LINE_ITEMS__DISCOUNT__CAMPAIGN_OFFER_ID = "orderLineItems.discount.campaignOfferId",
|
|
128
|
-
ORDER_LINE_ITEMS__DISCOUNT__CAMPAIGN_OFFER_PRODUCT_ID = "orderLineItems.discount.campaignOfferProductId",
|
|
129
|
-
ORDER_LINE_ITEMS__DISCOUNT__MAX_APPLICABLE_QUANTITY = "orderLineItems.discount.maxApplicableQuantity",
|
|
130
|
-
ORDER_LINE_ITEMS__DISCOUNT__REASON = "orderLineItems.discount.reason",
|
|
131
|
-
ORDER_LINE_ITEMS__DISCOUNT_PRICE = "orderLineItems.discountPrice",
|
|
132
|
-
ORDER_LINE_ITEMS__FINAL_PRICE = "orderLineItems.finalPrice",
|
|
133
|
-
ORDER_LINE_ITEMS__FINAL_UNIT_PRICE = "orderLineItems.finalUnitPrice",
|
|
134
|
-
ORDER_LINE_ITEMS__ID = "orderLineItems.id",
|
|
135
|
-
ORDER_LINE_ITEMS__OPTIONS__NAME = "orderLineItems.options.name",
|
|
136
|
-
ORDER_LINE_ITEMS__OPTIONS__PRODUCT_OPTION_ID = "orderLineItems.options.productOptionId",
|
|
137
|
-
ORDER_LINE_ITEMS__OPTIONS__PRODUCT_OPTIONS_SET_ID = "orderLineItems.options.productOptionsSetId",
|
|
138
|
-
ORDER_LINE_ITEMS__OPTIONS__TYPE = "orderLineItems.options.type",
|
|
139
|
-
ORDER_LINE_ITEMS__OPTIONS__VALUES__NAME = "orderLineItems.options.values.name",
|
|
140
|
-
ORDER_LINE_ITEMS__OPTIONS__VALUES__PRICE = "orderLineItems.options.values.price",
|
|
141
|
-
ORDER_LINE_ITEMS__OPTIONS__VALUES__VALUE = "orderLineItems.options.values.value",
|
|
142
|
-
ORDER_LINE_ITEMS__ORIGINAL_ORDER_LINE_ITEM_ID = "orderLineItems.originalOrderLineItemId",
|
|
143
|
-
ORDER_LINE_ITEMS__PRICE = "orderLineItems.price",
|
|
144
|
-
ORDER_LINE_ITEMS__QUANTITY = "orderLineItems.quantity",
|
|
145
|
-
ORDER_LINE_ITEMS__STATUS = "orderLineItems.status",
|
|
146
|
-
ORDER_LINE_ITEMS__STATUS_UPDATED_AT = "orderLineItems.statusUpdatedAt",
|
|
147
|
-
ORDER_LINE_ITEMS__STOCK_LOCATION_ID = "orderLineItems.stockLocationId",
|
|
148
|
-
ORDER_LINE_ITEMS__TAX_VALUE = "orderLineItems.taxValue",
|
|
149
|
-
ORDER_LINE_ITEMS__UNIT_PRICE = "orderLineItems.unitPrice",
|
|
150
|
-
ORDER_LINE_ITEMS__UPDATED_AT = "orderLineItems.updatedAt",
|
|
151
|
-
ORDER_LINE_ITEMS__VARIANT__BARCODE_LIST = "orderLineItems.variant.barcodeList",
|
|
152
|
-
ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__BASE_AMOUNT = "orderLineItems.variant.baseUnit.baseAmount",
|
|
153
|
-
ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__TYPE = "orderLineItems.variant.baseUnit.type",
|
|
154
|
-
ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__ID = "orderLineItems.variant.baseUnit.unit.id",
|
|
155
|
-
ORDER_LINE_ITEMS__VARIANT__BASE_UNIT__UNIT__NAME = "orderLineItems.variant.baseUnit.unit.name",
|
|
156
|
-
ORDER_LINE_ITEMS__VARIANT__BRAND__ID = "orderLineItems.variant.brand.id",
|
|
157
|
-
ORDER_LINE_ITEMS__VARIANT__BRAND__NAME = "orderLineItems.variant.brand.name",
|
|
158
|
-
ORDER_LINE_ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__ID = "orderLineItems.variant.categories.categoryPath.id",
|
|
159
|
-
ORDER_LINE_ITEMS__VARIANT__CATEGORIES__CATEGORY_PATH__NAME = "orderLineItems.variant.categories.categoryPath.name",
|
|
160
|
-
ORDER_LINE_ITEMS__VARIANT__CATEGORIES__ID = "orderLineItems.variant.categories.id",
|
|
161
|
-
ORDER_LINE_ITEMS__VARIANT__CATEGORIES__NAME = "orderLineItems.variant.categories.name",
|
|
162
|
-
ORDER_LINE_ITEMS__VARIANT__ID = "orderLineItems.variant.id",
|
|
163
|
-
ORDER_LINE_ITEMS__VARIANT__MAIN_IMAGE_ID = "orderLineItems.variant.mainImageId",
|
|
164
|
-
ORDER_LINE_ITEMS__VARIANT__NAME = "orderLineItems.variant.name",
|
|
165
|
-
ORDER_LINE_ITEMS__VARIANT__PRICES__BUY_PRICE = "orderLineItems.variant.prices.buyPrice",
|
|
166
|
-
ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY = "orderLineItems.variant.prices.currency",
|
|
167
|
-
ORDER_LINE_ITEMS__VARIANT__PRICES__CURRENCY_SYMBOL = "orderLineItems.variant.prices.currencySymbol",
|
|
168
|
-
ORDER_LINE_ITEMS__VARIANT__PRICES__DISCOUNT_PRICE = "orderLineItems.variant.prices.discountPrice",
|
|
169
|
-
ORDER_LINE_ITEMS__VARIANT__PRICES__PRICE_LIST_ID = "orderLineItems.variant.prices.priceListId",
|
|
170
|
-
ORDER_LINE_ITEMS__VARIANT__PRICES__SELL_PRICE = "orderLineItems.variant.prices.sellPrice",
|
|
171
|
-
ORDER_LINE_ITEMS__VARIANT__PRICES__UNIT_PRICE = "orderLineItems.variant.prices.unitPrice",
|
|
172
|
-
ORDER_LINE_ITEMS__VARIANT__PRODUCT_ID = "orderLineItems.variant.productId",
|
|
173
|
-
ORDER_LINE_ITEMS__VARIANT__SKU = "orderLineItems.variant.sku",
|
|
174
|
-
ORDER_LINE_ITEMS__VARIANT__SLUG = "orderLineItems.variant.slug",
|
|
175
|
-
ORDER_LINE_ITEMS__VARIANT__TAG_IDS = "orderLineItems.variant.tagIds",
|
|
176
|
-
ORDER_LINE_ITEMS__VARIANT__TAX_VALUE = "orderLineItems.variant.taxValue",
|
|
177
|
-
ORDER_LINE_ITEMS__VARIANT__TYPE = "orderLineItems.variant.type",
|
|
178
|
-
ORDER_LINE_ITEMS__VARIANT__UNIT__AMOUNT = "orderLineItems.variant.unit.amount",
|
|
179
|
-
ORDER_LINE_ITEMS__VARIANT__UNIT__TYPE = "orderLineItems.variant.unit.type",
|
|
180
|
-
ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__ORDER = "orderLineItems.variant.variantValues.order",
|
|
181
|
-
ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_ID = "orderLineItems.variant.variantValues.variantTypeId",
|
|
182
|
-
ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_TYPE_NAME = "orderLineItems.variant.variantValues.variantTypeName",
|
|
183
|
-
ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_VALUE_ID = "orderLineItems.variant.variantValues.variantValueId",
|
|
184
|
-
ORDER_LINE_ITEMS__VARIANT__VARIANT_VALUES__VARIANT_VALUE_NAME = "orderLineItems.variant.variantValues.variantValueName",
|
|
185
|
-
ORDER_LINE_ITEMS__VARIANT__WEIGHT = "orderLineItems.variant.weight",
|
|
186
|
-
ORDER_NUMBER = "orderNumber",
|
|
187
|
-
ORDER_PACKAGE_STATUS = "orderPackageStatus",
|
|
188
|
-
ORDER_PACKAGES__CREATED_AT = "orderPackages.createdAt",
|
|
189
|
-
ORDER_PACKAGES__DELETED = "orderPackages.deleted",
|
|
190
|
-
ORDER_PACKAGES__ERROR_MESSAGE = "orderPackages.errorMessage",
|
|
191
|
-
ORDER_PACKAGES__ID = "orderPackages.id",
|
|
192
|
-
ORDER_PACKAGES__NOTE = "orderPackages.note",
|
|
193
|
-
ORDER_PACKAGES__ORDER_LINE_ITEM_IDS = "orderPackages.orderLineItemIds",
|
|
194
|
-
ORDER_PACKAGES__ORDER_PACKAGE_FULFILL_STATUS = "orderPackages.orderPackageFulfillStatus",
|
|
195
|
-
ORDER_PACKAGES__ORDER_PACKAGE_NUMBER = "orderPackages.orderPackageNumber",
|
|
196
|
-
ORDER_PACKAGES__STOCK_LOCATION_ID = "orderPackages.stockLocationId",
|
|
197
|
-
ORDER_PACKAGES__TRACKING_INFO__BARCODE = "orderPackages.trackingInfo.barcode",
|
|
198
|
-
ORDER_PACKAGES__TRACKING_INFO__CARGO_COMPANY = "orderPackages.trackingInfo.cargoCompany",
|
|
199
|
-
ORDER_PACKAGES__TRACKING_INFO__IS_SEND_NOTIFICATION = "orderPackages.trackingInfo.isSendNotification",
|
|
200
|
-
ORDER_PACKAGES__TRACKING_INFO__TRACKING_LINK = "orderPackages.trackingInfo.trackingLink",
|
|
201
|
-
ORDER_PACKAGES__TRACKING_INFO__TRACKING_NUMBER = "orderPackages.trackingInfo.trackingNumber",
|
|
202
|
-
ORDER_PACKAGES__UPDATED_AT = "orderPackages.updatedAt",
|
|
203
|
-
ORDER_PAYMENT_STATUS = "orderPaymentStatus",
|
|
204
|
-
ORDER_TAG_IDS = "orderTagIds",
|
|
205
|
-
ORDERED_AT = "orderedAt",
|
|
206
|
-
PAYMENT_METHODS__PAYMENT_GATEWAY_CODE = "paymentMethods.paymentGatewayCode",
|
|
207
|
-
PAYMENT_METHODS__PAYMENT_GATEWAY_ID = "paymentMethods.paymentGatewayId",
|
|
208
|
-
PAYMENT_METHODS__PAYMENT_GATEWAY_NAME = "paymentMethods.paymentGatewayName",
|
|
209
|
-
PAYMENT_METHODS__PRICE = "paymentMethods.price",
|
|
210
|
-
PAYMENT_METHODS__TYPE = "paymentMethods.type",
|
|
211
|
-
SHIPPING_ADDRESS__ADDRESS_LINE1 = "shippingAddress.addressLine1",
|
|
212
|
-
SHIPPING_ADDRESS__ADDRESS_LINE2 = "shippingAddress.addressLine2",
|
|
213
|
-
SHIPPING_ADDRESS__CITY__CODE = "shippingAddress.city.code",
|
|
214
|
-
SHIPPING_ADDRESS__CITY__ID = "shippingAddress.city.id",
|
|
215
|
-
SHIPPING_ADDRESS__CITY__NAME = "shippingAddress.city.name",
|
|
216
|
-
SHIPPING_ADDRESS__COMPANY = "shippingAddress.company",
|
|
217
|
-
SHIPPING_ADDRESS__COUNTRY__CODE = "shippingAddress.country.code",
|
|
218
|
-
SHIPPING_ADDRESS__COUNTRY__ID = "shippingAddress.country.id",
|
|
219
|
-
SHIPPING_ADDRESS__COUNTRY__ISO2 = "shippingAddress.country.iso2",
|
|
220
|
-
SHIPPING_ADDRESS__COUNTRY__ISO3 = "shippingAddress.country.iso3",
|
|
221
|
-
SHIPPING_ADDRESS__COUNTRY__NAME = "shippingAddress.country.name",
|
|
222
|
-
SHIPPING_ADDRESS__DISTRICT__CODE = "shippingAddress.district.code",
|
|
223
|
-
SHIPPING_ADDRESS__DISTRICT__ID = "shippingAddress.district.id",
|
|
224
|
-
SHIPPING_ADDRESS__DISTRICT__NAME = "shippingAddress.district.name",
|
|
225
|
-
SHIPPING_ADDRESS__FIRST_NAME = "shippingAddress.firstName",
|
|
226
|
-
SHIPPING_ADDRESS__ID = "shippingAddress.id",
|
|
227
|
-
SHIPPING_ADDRESS__IDENTITY_NUMBER = "shippingAddress.identityNumber",
|
|
228
|
-
SHIPPING_ADDRESS__IS_DEFAULT = "shippingAddress.isDefault",
|
|
229
|
-
SHIPPING_ADDRESS__LAST_NAME = "shippingAddress.lastName",
|
|
230
|
-
SHIPPING_ADDRESS__PHONE = "shippingAddress.phone",
|
|
231
|
-
SHIPPING_ADDRESS__POSTAL_CODE = "shippingAddress.postalCode",
|
|
232
|
-
SHIPPING_ADDRESS__STATE__CODE = "shippingAddress.state.code",
|
|
233
|
-
SHIPPING_ADDRESS__STATE__ID = "shippingAddress.state.id",
|
|
234
|
-
SHIPPING_ADDRESS__STATE__NAME = "shippingAddress.state.name",
|
|
235
|
-
SHIPPING_ADDRESS__TAX_NUMBER = "shippingAddress.taxNumber",
|
|
236
|
-
SHIPPING_ADDRESS__TAX_OFFICE = "shippingAddress.taxOffice",
|
|
237
|
-
SHIPPING_LINES__FINAL_PRICE = "shippingLines.finalPrice",
|
|
238
|
-
SHIPPING_LINES__IS_REFUNDED = "shippingLines.isRefunded",
|
|
239
|
-
SHIPPING_LINES__PAYMENT_METHOD = "shippingLines.paymentMethod",
|
|
240
|
-
SHIPPING_LINES__PRICE = "shippingLines.price",
|
|
241
|
-
SHIPPING_LINES__SHIPPING_SETTINGS_ID = "shippingLines.shippingSettingsId",
|
|
242
|
-
SHIPPING_LINES__SHIPPING_ZONE_RATE_ID = "shippingLines.shippingZoneRateId",
|
|
243
|
-
SHIPPING_LINES__TAX_VALUE = "shippingLines.taxValue",
|
|
244
|
-
SHIPPING_LINES__TITLE = "shippingLines.title",
|
|
245
|
-
SHIPPING_METHOD = "shippingMethod",
|
|
246
|
-
STATUS = "status",
|
|
247
|
-
TAX_LINES__PRICE = "taxLines.price",
|
|
248
|
-
TAX_LINES__RATE = "taxLines.rate",
|
|
249
|
-
TOTAL_FINAL_PRICE = "totalFinalPrice",
|
|
250
|
-
TOTAL_PRICE = "totalPrice",
|
|
251
|
-
UPDATED_AT = "updatedAt",
|
|
252
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import {
|
|
8
|
-
GetProductCampaignsInput,
|
|
9
|
-
GetProductCampaignsResponse,
|
|
10
|
-
} from "../types";
|
|
11
|
-
|
|
12
|
-
const getProductCampaigns = async (
|
|
13
|
-
variables: QueryParams,
|
|
14
|
-
fields?: string[],
|
|
15
|
-
config?: ConfigType
|
|
16
|
-
) => {
|
|
17
|
-
try {
|
|
18
|
-
const { data, errors } = await fetchQuery({
|
|
19
|
-
operationName: "getProductCampaigns",
|
|
20
|
-
config,
|
|
21
|
-
variables,
|
|
22
|
-
allReturnFields,
|
|
23
|
-
fields,
|
|
24
|
-
query: (returnFields: string) => `
|
|
25
|
-
query getProductCampaigns (
|
|
26
|
-
$input: GetProductCampaignsInput!,
|
|
27
|
-
) {
|
|
28
|
-
getProductCampaigns (
|
|
29
|
-
input: $input,
|
|
30
|
-
) ${returnFields}
|
|
31
|
-
}
|
|
32
|
-
`,
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
return new APIResponse<GetProductCampaignsResponse[]>(
|
|
36
|
-
data?.getProductCampaigns,
|
|
37
|
-
errors
|
|
38
|
-
);
|
|
39
|
-
} catch (err) {
|
|
40
|
-
return handleAPIError(err);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export default getProductCampaigns;
|
|
45
|
-
|
|
46
|
-
export type QueryParams = {
|
|
47
|
-
input: GetProductCampaignsInput;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const allReturnFields =
|
|
51
|
-
"{campaign {applicableCustomerGroupIds applicableCustomerIds applicablePrice buyXThenGetY {buyX {amount applyByQuantity filter {idList type } } getY {amount automaticallyAddItemToCart discountRatio filter {idList type } } maxUsagePerOrder } canCombineWithOtherCampaigns createdAt createdFor currencyCodes dateRange {end start } deleted fixedDiscount {amount filters {idList type } lineItemQuantityRange {max min } priceRange {max min } } hasCoupon id includeDiscountedProducts salesChannelIds title type updatedAt usageCount usageLimit usageLimitPerCustomer } variantIds }";
|
|
52
|
-
|
|
53
|
-
export enum ResponseField {
|
|
54
|
-
CAMPAIGN__APPLICABLE_CUSTOMER_GROUP_IDS = "campaign.applicableCustomerGroupIds",
|
|
55
|
-
CAMPAIGN__APPLICABLE_CUSTOMER_IDS = "campaign.applicableCustomerIds",
|
|
56
|
-
CAMPAIGN__APPLICABLE_PRICE = "campaign.applicablePrice",
|
|
57
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__BUY_X__AMOUNT = "campaign.buyXThenGetY.buyX.amount",
|
|
58
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__BUY_X__APPLY_BY_QUANTITY = "campaign.buyXThenGetY.buyX.applyByQuantity",
|
|
59
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__BUY_X__FILTER__ID_LIST = "campaign.buyXThenGetY.buyX.filter.idList",
|
|
60
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__BUY_X__FILTER__TYPE = "campaign.buyXThenGetY.buyX.filter.type",
|
|
61
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__GET_Y__AMOUNT = "campaign.buyXThenGetY.getY.amount",
|
|
62
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__GET_Y__AUTOMATICALLY_ADD_ITEM_TO_CART = "campaign.buyXThenGetY.getY.automaticallyAddItemToCart",
|
|
63
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__GET_Y__DISCOUNT_RATIO = "campaign.buyXThenGetY.getY.discountRatio",
|
|
64
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__GET_Y__FILTER__ID_LIST = "campaign.buyXThenGetY.getY.filter.idList",
|
|
65
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__GET_Y__FILTER__TYPE = "campaign.buyXThenGetY.getY.filter.type",
|
|
66
|
-
CAMPAIGN__BUY_X_THEN_GET_Y__MAX_USAGE_PER_ORDER = "campaign.buyXThenGetY.maxUsagePerOrder",
|
|
67
|
-
CAMPAIGN__CAN_COMBINE_WITH_OTHER_CAMPAIGNS = "campaign.canCombineWithOtherCampaigns",
|
|
68
|
-
CAMPAIGN__CREATED_AT = "campaign.createdAt",
|
|
69
|
-
CAMPAIGN__CREATED_FOR = "campaign.createdFor",
|
|
70
|
-
CAMPAIGN__CURRENCY_CODES = "campaign.currencyCodes",
|
|
71
|
-
CAMPAIGN__DATE_RANGE__END = "campaign.dateRange.end",
|
|
72
|
-
CAMPAIGN__DATE_RANGE__START = "campaign.dateRange.start",
|
|
73
|
-
CAMPAIGN__DELETED = "campaign.deleted",
|
|
74
|
-
CAMPAIGN__FIXED_DISCOUNT__AMOUNT = "campaign.fixedDiscount.amount",
|
|
75
|
-
CAMPAIGN__FIXED_DISCOUNT__FILTERS__ID_LIST = "campaign.fixedDiscount.filters.idList",
|
|
76
|
-
CAMPAIGN__FIXED_DISCOUNT__FILTERS__TYPE = "campaign.fixedDiscount.filters.type",
|
|
77
|
-
CAMPAIGN__FIXED_DISCOUNT__LINE_ITEM_QUANTITY_RANGE__MAX = "campaign.fixedDiscount.lineItemQuantityRange.max",
|
|
78
|
-
CAMPAIGN__FIXED_DISCOUNT__LINE_ITEM_QUANTITY_RANGE__MIN = "campaign.fixedDiscount.lineItemQuantityRange.min",
|
|
79
|
-
CAMPAIGN__FIXED_DISCOUNT__PRICE_RANGE__MAX = "campaign.fixedDiscount.priceRange.max",
|
|
80
|
-
CAMPAIGN__FIXED_DISCOUNT__PRICE_RANGE__MIN = "campaign.fixedDiscount.priceRange.min",
|
|
81
|
-
CAMPAIGN__HAS_COUPON = "campaign.hasCoupon",
|
|
82
|
-
CAMPAIGN__ID = "campaign.id",
|
|
83
|
-
CAMPAIGN__INCLUDE_DISCOUNTED_PRODUCTS = "campaign.includeDiscountedProducts",
|
|
84
|
-
CAMPAIGN__SALES_CHANNEL_IDS = "campaign.salesChannelIds",
|
|
85
|
-
CAMPAIGN__TITLE = "campaign.title",
|
|
86
|
-
CAMPAIGN__TYPE = "campaign.type",
|
|
87
|
-
CAMPAIGN__UPDATED_AT = "campaign.updatedAt",
|
|
88
|
-
CAMPAIGN__USAGE_COUNT = "campaign.usageCount",
|
|
89
|
-
CAMPAIGN__USAGE_LIMIT = "campaign.usageLimit",
|
|
90
|
-
CAMPAIGN__USAGE_LIMIT_PER_CUSTOMER = "campaign.usageLimitPerCustomer",
|
|
91
|
-
VARIANT_IDS = "variantIds",
|
|
92
|
-
}
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { ProductFilterData } from "../types";
|
|
8
|
-
|
|
9
|
-
const getProductFilterData = async (
|
|
10
|
-
variables: QueryParams,
|
|
11
|
-
fields?: string[],
|
|
12
|
-
config?: ConfigType
|
|
13
|
-
) => {
|
|
14
|
-
try {
|
|
15
|
-
const { data, errors } = await fetchQuery({
|
|
16
|
-
operationName: "getProductFilterData",
|
|
17
|
-
config,
|
|
18
|
-
variables,
|
|
19
|
-
allReturnFields,
|
|
20
|
-
fields,
|
|
21
|
-
query: (returnFields: string) => `
|
|
22
|
-
query getProductFilterData (
|
|
23
|
-
$categoryId: String,
|
|
24
|
-
$locale: String,
|
|
25
|
-
) {
|
|
26
|
-
getProductFilterData (
|
|
27
|
-
categoryId: $categoryId,
|
|
28
|
-
locale: $locale,
|
|
29
|
-
) ${returnFields}
|
|
30
|
-
}
|
|
31
|
-
`,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
return new APIResponse<ProductFilterData>(
|
|
35
|
-
data?.getProductFilterData,
|
|
36
|
-
errors
|
|
37
|
-
);
|
|
38
|
-
} catch (err) {
|
|
39
|
-
return handleAPIError(err);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default getProductFilterData;
|
|
44
|
-
|
|
45
|
-
export type QueryParams = {
|
|
46
|
-
categoryId?: string | null;
|
|
47
|
-
locale?: string | null;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const allReturnFields =
|
|
51
|
-
"{categories {categoryPath categoryPathItems {createdAt deleted description id imageId isAutomated metaData {canonicals createdAt deleted description disableIndex id metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations {description locale pageTitle } updatedAt } name translations {description locale name } updatedAt } conditions {conditionType valueList } createdAt deleted description id imageId isAutomated metaData {canonicals createdAt deleted description disableIndex id metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations {description locale pageTitle } updatedAt } name orderType parentId salesChannelIds shouldMatchAllConditions translations {description locale name } updatedAt } filters {categories {categoryPath categoryPathItems {createdAt deleted description id imageId isAutomated metaData {canonicals createdAt deleted description disableIndex id metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations {description locale pageTitle } updatedAt } name translations {description locale name } updatedAt } conditions {conditionType valueList } createdAt deleted description id imageId isAutomated metaData {canonicals createdAt deleted description disableIndex id metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations {description locale pageTitle } updatedAt } name orderType parentId salesChannelIds shouldMatchAllConditions translations {description locale name } updatedAt } customValues displayType id isFacetFilter isMultiSelect key name order settings {customSortedValues showCollapsedOnDesktop showCollapsedOnMobile sortType useAndFilter } type values {colorCode id key name thumbnailImageId } } }";
|
|
52
|
-
|
|
53
|
-
export enum ResponseField {
|
|
54
|
-
CATEGORIES__CATEGORY_PATH = "categories.categoryPath",
|
|
55
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__CREATED_AT = "categories.categoryPathItems.createdAt",
|
|
56
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__DELETED = "categories.categoryPathItems.deleted",
|
|
57
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__DESCRIPTION = "categories.categoryPathItems.description",
|
|
58
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__ID = "categories.categoryPathItems.id",
|
|
59
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__IMAGE_ID = "categories.categoryPathItems.imageId",
|
|
60
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__IS_AUTOMATED = "categories.categoryPathItems.isAutomated",
|
|
61
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__CANONICALS = "categories.categoryPathItems.metaData.canonicals",
|
|
62
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__CREATED_AT = "categories.categoryPathItems.metaData.createdAt",
|
|
63
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__DELETED = "categories.categoryPathItems.metaData.deleted",
|
|
64
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__DESCRIPTION = "categories.categoryPathItems.metaData.description",
|
|
65
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__DISABLE_INDEX = "categories.categoryPathItems.metaData.disableIndex",
|
|
66
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__ID = "categories.categoryPathItems.metaData.id",
|
|
67
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "categories.categoryPathItems.metaData.metadataOverrides.description",
|
|
68
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__LANGUAGE = "categories.categoryPathItems.metaData.metadataOverrides.language",
|
|
69
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "categories.categoryPathItems.metaData.metadataOverrides.pageTitle",
|
|
70
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "categories.categoryPathItems.metaData.metadataOverrides.storefrontId",
|
|
71
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "categories.categoryPathItems.metaData.metadataOverrides.storefrontRegionId",
|
|
72
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__PAGE_TITLE = "categories.categoryPathItems.metaData.pageTitle",
|
|
73
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__REDIRECT_TO = "categories.categoryPathItems.metaData.redirectTo",
|
|
74
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__SLUG = "categories.categoryPathItems.metaData.slug",
|
|
75
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TARGET_ID = "categories.categoryPathItems.metaData.targetId",
|
|
76
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TARGET_TYPE = "categories.categoryPathItems.metaData.targetType",
|
|
77
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__DESCRIPTION = "categories.categoryPathItems.metaData.translations.description",
|
|
78
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__LOCALE = "categories.categoryPathItems.metaData.translations.locale",
|
|
79
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__PAGE_TITLE = "categories.categoryPathItems.metaData.translations.pageTitle",
|
|
80
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__UPDATED_AT = "categories.categoryPathItems.metaData.updatedAt",
|
|
81
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__NAME = "categories.categoryPathItems.name",
|
|
82
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__TRANSLATIONS__DESCRIPTION = "categories.categoryPathItems.translations.description",
|
|
83
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__TRANSLATIONS__LOCALE = "categories.categoryPathItems.translations.locale",
|
|
84
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__TRANSLATIONS__NAME = "categories.categoryPathItems.translations.name",
|
|
85
|
-
CATEGORIES__CATEGORY_PATH_ITEMS__UPDATED_AT = "categories.categoryPathItems.updatedAt",
|
|
86
|
-
CATEGORIES__CONDITIONS__CONDITION_TYPE = "categories.conditions.conditionType",
|
|
87
|
-
CATEGORIES__CONDITIONS__VALUE_LIST = "categories.conditions.valueList",
|
|
88
|
-
CATEGORIES__CREATED_AT = "categories.createdAt",
|
|
89
|
-
CATEGORIES__DELETED = "categories.deleted",
|
|
90
|
-
CATEGORIES__DESCRIPTION = "categories.description",
|
|
91
|
-
CATEGORIES__ID = "categories.id",
|
|
92
|
-
CATEGORIES__IMAGE_ID = "categories.imageId",
|
|
93
|
-
CATEGORIES__IS_AUTOMATED = "categories.isAutomated",
|
|
94
|
-
CATEGORIES__META_DATA__CANONICALS = "categories.metaData.canonicals",
|
|
95
|
-
CATEGORIES__META_DATA__CREATED_AT = "categories.metaData.createdAt",
|
|
96
|
-
CATEGORIES__META_DATA__DELETED = "categories.metaData.deleted",
|
|
97
|
-
CATEGORIES__META_DATA__DESCRIPTION = "categories.metaData.description",
|
|
98
|
-
CATEGORIES__META_DATA__DISABLE_INDEX = "categories.metaData.disableIndex",
|
|
99
|
-
CATEGORIES__META_DATA__ID = "categories.metaData.id",
|
|
100
|
-
CATEGORIES__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "categories.metaData.metadataOverrides.description",
|
|
101
|
-
CATEGORIES__META_DATA__METADATA_OVERRIDES__LANGUAGE = "categories.metaData.metadataOverrides.language",
|
|
102
|
-
CATEGORIES__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "categories.metaData.metadataOverrides.pageTitle",
|
|
103
|
-
CATEGORIES__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "categories.metaData.metadataOverrides.storefrontId",
|
|
104
|
-
CATEGORIES__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "categories.metaData.metadataOverrides.storefrontRegionId",
|
|
105
|
-
CATEGORIES__META_DATA__PAGE_TITLE = "categories.metaData.pageTitle",
|
|
106
|
-
CATEGORIES__META_DATA__REDIRECT_TO = "categories.metaData.redirectTo",
|
|
107
|
-
CATEGORIES__META_DATA__SLUG = "categories.metaData.slug",
|
|
108
|
-
CATEGORIES__META_DATA__TARGET_ID = "categories.metaData.targetId",
|
|
109
|
-
CATEGORIES__META_DATA__TARGET_TYPE = "categories.metaData.targetType",
|
|
110
|
-
CATEGORIES__META_DATA__TRANSLATIONS__DESCRIPTION = "categories.metaData.translations.description",
|
|
111
|
-
CATEGORIES__META_DATA__TRANSLATIONS__LOCALE = "categories.metaData.translations.locale",
|
|
112
|
-
CATEGORIES__META_DATA__TRANSLATIONS__PAGE_TITLE = "categories.metaData.translations.pageTitle",
|
|
113
|
-
CATEGORIES__META_DATA__UPDATED_AT = "categories.metaData.updatedAt",
|
|
114
|
-
CATEGORIES__NAME = "categories.name",
|
|
115
|
-
CATEGORIES__ORDER_TYPE = "categories.orderType",
|
|
116
|
-
CATEGORIES__PARENT_ID = "categories.parentId",
|
|
117
|
-
CATEGORIES__SALES_CHANNEL_IDS = "categories.salesChannelIds",
|
|
118
|
-
CATEGORIES__SHOULD_MATCH_ALL_CONDITIONS = "categories.shouldMatchAllConditions",
|
|
119
|
-
CATEGORIES__TRANSLATIONS__DESCRIPTION = "categories.translations.description",
|
|
120
|
-
CATEGORIES__TRANSLATIONS__LOCALE = "categories.translations.locale",
|
|
121
|
-
CATEGORIES__TRANSLATIONS__NAME = "categories.translations.name",
|
|
122
|
-
CATEGORIES__UPDATED_AT = "categories.updatedAt",
|
|
123
|
-
FILTERS__CATEGORIES__CATEGORY_PATH = "filters.categories.categoryPath",
|
|
124
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__CREATED_AT = "filters.categories.categoryPathItems.createdAt",
|
|
125
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__DELETED = "filters.categories.categoryPathItems.deleted",
|
|
126
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__DESCRIPTION = "filters.categories.categoryPathItems.description",
|
|
127
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__ID = "filters.categories.categoryPathItems.id",
|
|
128
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__IMAGE_ID = "filters.categories.categoryPathItems.imageId",
|
|
129
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__IS_AUTOMATED = "filters.categories.categoryPathItems.isAutomated",
|
|
130
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__CANONICALS = "filters.categories.categoryPathItems.metaData.canonicals",
|
|
131
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__CREATED_AT = "filters.categories.categoryPathItems.metaData.createdAt",
|
|
132
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__DELETED = "filters.categories.categoryPathItems.metaData.deleted",
|
|
133
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__DESCRIPTION = "filters.categories.categoryPathItems.metaData.description",
|
|
134
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__DISABLE_INDEX = "filters.categories.categoryPathItems.metaData.disableIndex",
|
|
135
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__ID = "filters.categories.categoryPathItems.metaData.id",
|
|
136
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "filters.categories.categoryPathItems.metaData.metadataOverrides.description",
|
|
137
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__LANGUAGE = "filters.categories.categoryPathItems.metaData.metadataOverrides.language",
|
|
138
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "filters.categories.categoryPathItems.metaData.metadataOverrides.pageTitle",
|
|
139
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "filters.categories.categoryPathItems.metaData.metadataOverrides.storefrontId",
|
|
140
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "filters.categories.categoryPathItems.metaData.metadataOverrides.storefrontRegionId",
|
|
141
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__PAGE_TITLE = "filters.categories.categoryPathItems.metaData.pageTitle",
|
|
142
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__REDIRECT_TO = "filters.categories.categoryPathItems.metaData.redirectTo",
|
|
143
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__SLUG = "filters.categories.categoryPathItems.metaData.slug",
|
|
144
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TARGET_ID = "filters.categories.categoryPathItems.metaData.targetId",
|
|
145
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TARGET_TYPE = "filters.categories.categoryPathItems.metaData.targetType",
|
|
146
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__DESCRIPTION = "filters.categories.categoryPathItems.metaData.translations.description",
|
|
147
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__LOCALE = "filters.categories.categoryPathItems.metaData.translations.locale",
|
|
148
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__PAGE_TITLE = "filters.categories.categoryPathItems.metaData.translations.pageTitle",
|
|
149
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__META_DATA__UPDATED_AT = "filters.categories.categoryPathItems.metaData.updatedAt",
|
|
150
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__NAME = "filters.categories.categoryPathItems.name",
|
|
151
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__TRANSLATIONS__DESCRIPTION = "filters.categories.categoryPathItems.translations.description",
|
|
152
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__TRANSLATIONS__LOCALE = "filters.categories.categoryPathItems.translations.locale",
|
|
153
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__TRANSLATIONS__NAME = "filters.categories.categoryPathItems.translations.name",
|
|
154
|
-
FILTERS__CATEGORIES__CATEGORY_PATH_ITEMS__UPDATED_AT = "filters.categories.categoryPathItems.updatedAt",
|
|
155
|
-
FILTERS__CATEGORIES__CONDITIONS__CONDITION_TYPE = "filters.categories.conditions.conditionType",
|
|
156
|
-
FILTERS__CATEGORIES__CONDITIONS__VALUE_LIST = "filters.categories.conditions.valueList",
|
|
157
|
-
FILTERS__CATEGORIES__CREATED_AT = "filters.categories.createdAt",
|
|
158
|
-
FILTERS__CATEGORIES__DELETED = "filters.categories.deleted",
|
|
159
|
-
FILTERS__CATEGORIES__DESCRIPTION = "filters.categories.description",
|
|
160
|
-
FILTERS__CATEGORIES__ID = "filters.categories.id",
|
|
161
|
-
FILTERS__CATEGORIES__IMAGE_ID = "filters.categories.imageId",
|
|
162
|
-
FILTERS__CATEGORIES__IS_AUTOMATED = "filters.categories.isAutomated",
|
|
163
|
-
FILTERS__CATEGORIES__META_DATA__CANONICALS = "filters.categories.metaData.canonicals",
|
|
164
|
-
FILTERS__CATEGORIES__META_DATA__CREATED_AT = "filters.categories.metaData.createdAt",
|
|
165
|
-
FILTERS__CATEGORIES__META_DATA__DELETED = "filters.categories.metaData.deleted",
|
|
166
|
-
FILTERS__CATEGORIES__META_DATA__DESCRIPTION = "filters.categories.metaData.description",
|
|
167
|
-
FILTERS__CATEGORIES__META_DATA__DISABLE_INDEX = "filters.categories.metaData.disableIndex",
|
|
168
|
-
FILTERS__CATEGORIES__META_DATA__ID = "filters.categories.metaData.id",
|
|
169
|
-
FILTERS__CATEGORIES__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "filters.categories.metaData.metadataOverrides.description",
|
|
170
|
-
FILTERS__CATEGORIES__META_DATA__METADATA_OVERRIDES__LANGUAGE = "filters.categories.metaData.metadataOverrides.language",
|
|
171
|
-
FILTERS__CATEGORIES__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "filters.categories.metaData.metadataOverrides.pageTitle",
|
|
172
|
-
FILTERS__CATEGORIES__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "filters.categories.metaData.metadataOverrides.storefrontId",
|
|
173
|
-
FILTERS__CATEGORIES__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "filters.categories.metaData.metadataOverrides.storefrontRegionId",
|
|
174
|
-
FILTERS__CATEGORIES__META_DATA__PAGE_TITLE = "filters.categories.metaData.pageTitle",
|
|
175
|
-
FILTERS__CATEGORIES__META_DATA__REDIRECT_TO = "filters.categories.metaData.redirectTo",
|
|
176
|
-
FILTERS__CATEGORIES__META_DATA__SLUG = "filters.categories.metaData.slug",
|
|
177
|
-
FILTERS__CATEGORIES__META_DATA__TARGET_ID = "filters.categories.metaData.targetId",
|
|
178
|
-
FILTERS__CATEGORIES__META_DATA__TARGET_TYPE = "filters.categories.metaData.targetType",
|
|
179
|
-
FILTERS__CATEGORIES__META_DATA__TRANSLATIONS__DESCRIPTION = "filters.categories.metaData.translations.description",
|
|
180
|
-
FILTERS__CATEGORIES__META_DATA__TRANSLATIONS__LOCALE = "filters.categories.metaData.translations.locale",
|
|
181
|
-
FILTERS__CATEGORIES__META_DATA__TRANSLATIONS__PAGE_TITLE = "filters.categories.metaData.translations.pageTitle",
|
|
182
|
-
FILTERS__CATEGORIES__META_DATA__UPDATED_AT = "filters.categories.metaData.updatedAt",
|
|
183
|
-
FILTERS__CATEGORIES__NAME = "filters.categories.name",
|
|
184
|
-
FILTERS__CATEGORIES__ORDER_TYPE = "filters.categories.orderType",
|
|
185
|
-
FILTERS__CATEGORIES__PARENT_ID = "filters.categories.parentId",
|
|
186
|
-
FILTERS__CATEGORIES__SALES_CHANNEL_IDS = "filters.categories.salesChannelIds",
|
|
187
|
-
FILTERS__CATEGORIES__SHOULD_MATCH_ALL_CONDITIONS = "filters.categories.shouldMatchAllConditions",
|
|
188
|
-
FILTERS__CATEGORIES__TRANSLATIONS__DESCRIPTION = "filters.categories.translations.description",
|
|
189
|
-
FILTERS__CATEGORIES__TRANSLATIONS__LOCALE = "filters.categories.translations.locale",
|
|
190
|
-
FILTERS__CATEGORIES__TRANSLATIONS__NAME = "filters.categories.translations.name",
|
|
191
|
-
FILTERS__CATEGORIES__UPDATED_AT = "filters.categories.updatedAt",
|
|
192
|
-
FILTERS__CUSTOM_VALUES = "filters.customValues",
|
|
193
|
-
FILTERS__DISPLAY_TYPE = "filters.displayType",
|
|
194
|
-
FILTERS__ID = "filters.id",
|
|
195
|
-
FILTERS__IS_FACET_FILTER = "filters.isFacetFilter",
|
|
196
|
-
FILTERS__IS_MULTI_SELECT = "filters.isMultiSelect",
|
|
197
|
-
FILTERS__KEY = "filters.key",
|
|
198
|
-
FILTERS__NAME = "filters.name",
|
|
199
|
-
FILTERS__ORDER = "filters.order",
|
|
200
|
-
FILTERS__SETTINGS__CUSTOM_SORTED_VALUES = "filters.settings.customSortedValues",
|
|
201
|
-
FILTERS__SETTINGS__SHOW_COLLAPSED_ON_DESKTOP = "filters.settings.showCollapsedOnDesktop",
|
|
202
|
-
FILTERS__SETTINGS__SHOW_COLLAPSED_ON_MOBILE = "filters.settings.showCollapsedOnMobile",
|
|
203
|
-
FILTERS__SETTINGS__SORT_TYPE = "filters.settings.sortType",
|
|
204
|
-
FILTERS__SETTINGS__USE_AND_FILTER = "filters.settings.useAndFilter",
|
|
205
|
-
FILTERS__TYPE = "filters.type",
|
|
206
|
-
FILTERS__VALUES__COLOR_CODE = "filters.values.colorCode",
|
|
207
|
-
FILTERS__VALUES__ID = "filters.values.id",
|
|
208
|
-
FILTERS__VALUES__KEY = "filters.values.key",
|
|
209
|
-
FILTERS__VALUES__NAME = "filters.values.name",
|
|
210
|
-
FILTERS__VALUES__THUMBNAIL_IMAGE_ID = "filters.values.thumbnailImageId",
|
|
211
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { GetProductOptionFileUrl } from "../types";
|
|
8
|
-
|
|
9
|
-
const getProductOptionFileUrl = async (
|
|
10
|
-
variables: QueryParams,
|
|
11
|
-
fields?: string[],
|
|
12
|
-
config?: ConfigType
|
|
13
|
-
) => {
|
|
14
|
-
try {
|
|
15
|
-
const { data, errors } = await fetchQuery({
|
|
16
|
-
operationName: "getProductOptionFileUrl",
|
|
17
|
-
config,
|
|
18
|
-
variables,
|
|
19
|
-
allReturnFields,
|
|
20
|
-
fields,
|
|
21
|
-
query: (returnFields: string) => `
|
|
22
|
-
query getProductOptionFileUrl (
|
|
23
|
-
$fileName: String!,
|
|
24
|
-
$productOptionId: String!,
|
|
25
|
-
$productOptionSetId: String!,
|
|
26
|
-
) {
|
|
27
|
-
getProductOptionFileUrl (
|
|
28
|
-
fileName: $fileName,
|
|
29
|
-
productOptionId: $productOptionId,
|
|
30
|
-
productOptionSetId: $productOptionSetId,
|
|
31
|
-
) ${returnFields}
|
|
32
|
-
}
|
|
33
|
-
`,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
return new APIResponse<GetProductOptionFileUrl>(
|
|
37
|
-
data?.getProductOptionFileUrl,
|
|
38
|
-
errors
|
|
39
|
-
);
|
|
40
|
-
} catch (err) {
|
|
41
|
-
return handleAPIError(err);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default getProductOptionFileUrl;
|
|
46
|
-
|
|
47
|
-
export type QueryParams = {
|
|
48
|
-
fileName: string;
|
|
49
|
-
productOptionId: string;
|
|
50
|
-
productOptionSetId: string;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const allReturnFields = "{fields optionUrl url }";
|
|
54
|
-
|
|
55
|
-
export enum ResponseField {
|
|
56
|
-
FIELDS = "fields",
|
|
57
|
-
OPTION_URL = "optionUrl",
|
|
58
|
-
URL = "url",
|
|
59
|
-
}
|