@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,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { StringFilterInput, CampaignOffer } from "../types";
|
|
8
|
-
|
|
9
|
-
const listCampaignOffer = async (
|
|
10
|
-
variables: QueryParams,
|
|
11
|
-
fields?: string[],
|
|
12
|
-
config?: ConfigType
|
|
13
|
-
) => {
|
|
14
|
-
try {
|
|
15
|
-
const { data, errors } = await fetchQuery({
|
|
16
|
-
operationName: "listCampaignOffer",
|
|
17
|
-
config,
|
|
18
|
-
variables,
|
|
19
|
-
allReturnFields,
|
|
20
|
-
fields,
|
|
21
|
-
query: (returnFields: string) => `
|
|
22
|
-
query listCampaignOffer (
|
|
23
|
-
$id: StringFilterInput,
|
|
24
|
-
) {
|
|
25
|
-
listCampaignOffer (
|
|
26
|
-
id: $id,
|
|
27
|
-
) ${returnFields}
|
|
28
|
-
}
|
|
29
|
-
`,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
return new APIResponse<CampaignOffer[]>(data?.listCampaignOffer, errors);
|
|
33
|
-
} catch (err) {
|
|
34
|
-
return handleAPIError(err);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default listCampaignOffer;
|
|
39
|
-
|
|
40
|
-
export type QueryParams = {
|
|
41
|
-
id?: StringFilterInput | null;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const allReturnFields =
|
|
45
|
-
"{availableSalesChannelIds createdAt deleted endDate followUpActionType id minimumRequiredCartAmount name offers {countdownMinutes description discountAmount discountType excludedVariantIdList id order productId showCriteria skipOfferIfProductExistsInCart title translations {description locale title } } startDate targetPageTypes triggerSettings {filterType valueList } type updatedAt }";
|
|
46
|
-
|
|
47
|
-
export enum ResponseField {
|
|
48
|
-
AVAILABLE_SALES_CHANNEL_IDS = "availableSalesChannelIds",
|
|
49
|
-
CREATED_AT = "createdAt",
|
|
50
|
-
DELETED = "deleted",
|
|
51
|
-
END_DATE = "endDate",
|
|
52
|
-
FOLLOW_UP_ACTION_TYPE = "followUpActionType",
|
|
53
|
-
ID = "id",
|
|
54
|
-
MINIMUM_REQUIRED_CART_AMOUNT = "minimumRequiredCartAmount",
|
|
55
|
-
NAME = "name",
|
|
56
|
-
OFFERS__COUNTDOWN_MINUTES = "offers.countdownMinutes",
|
|
57
|
-
OFFERS__DESCRIPTION = "offers.description",
|
|
58
|
-
OFFERS__DISCOUNT_AMOUNT = "offers.discountAmount",
|
|
59
|
-
OFFERS__DISCOUNT_TYPE = "offers.discountType",
|
|
60
|
-
OFFERS__EXCLUDED_VARIANT_ID_LIST = "offers.excludedVariantIdList",
|
|
61
|
-
OFFERS__ID = "offers.id",
|
|
62
|
-
OFFERS__ORDER = "offers.order",
|
|
63
|
-
OFFERS__PRODUCT_ID = "offers.productId",
|
|
64
|
-
OFFERS__SHOW_CRITERIA = "offers.showCriteria",
|
|
65
|
-
OFFERS__SKIP_OFFER_IF_PRODUCT_EXISTS_IN_CART = "offers.skipOfferIfProductExistsInCart",
|
|
66
|
-
OFFERS__TITLE = "offers.title",
|
|
67
|
-
OFFERS__TRANSLATIONS__DESCRIPTION = "offers.translations.description",
|
|
68
|
-
OFFERS__TRANSLATIONS__LOCALE = "offers.translations.locale",
|
|
69
|
-
OFFERS__TRANSLATIONS__TITLE = "offers.translations.title",
|
|
70
|
-
START_DATE = "startDate",
|
|
71
|
-
TARGET_PAGE_TYPES = "targetPageTypes",
|
|
72
|
-
TRIGGER_SETTINGS__FILTER_TYPE = "triggerSettings.filterType",
|
|
73
|
-
TRIGGER_SETTINGS__VALUE_LIST = "triggerSettings.valueList",
|
|
74
|
-
TYPE = "type",
|
|
75
|
-
UPDATED_AT = "updatedAt",
|
|
76
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import {
|
|
8
|
-
CategoryPathFilterInput,
|
|
9
|
-
StringFilterInput,
|
|
10
|
-
PaginationInput,
|
|
11
|
-
DateFilterInput,
|
|
12
|
-
CategoryPaginationResponse,
|
|
13
|
-
} from "../types";
|
|
14
|
-
|
|
15
|
-
const listCategory = async (
|
|
16
|
-
variables: QueryParams,
|
|
17
|
-
fields?: string[],
|
|
18
|
-
config?: ConfigType
|
|
19
|
-
) => {
|
|
20
|
-
try {
|
|
21
|
-
const { data, errors } = await fetchQuery({
|
|
22
|
-
operationName: "listCategory",
|
|
23
|
-
config,
|
|
24
|
-
variables,
|
|
25
|
-
allReturnFields,
|
|
26
|
-
fields,
|
|
27
|
-
query: (returnFields: string) => `
|
|
28
|
-
query listCategory (
|
|
29
|
-
$categoryPath: CategoryPathFilterInput,
|
|
30
|
-
$id: StringFilterInput,
|
|
31
|
-
$includeDeleted: Boolean,
|
|
32
|
-
$name: StringFilterInput,
|
|
33
|
-
$pagination: PaginationInput,
|
|
34
|
-
$search: String,
|
|
35
|
-
$sort: String,
|
|
36
|
-
$updatedAt: DateFilterInput,
|
|
37
|
-
) {
|
|
38
|
-
listCategory (
|
|
39
|
-
categoryPath: $categoryPath,
|
|
40
|
-
id: $id,
|
|
41
|
-
includeDeleted: $includeDeleted,
|
|
42
|
-
name: $name,
|
|
43
|
-
pagination: $pagination,
|
|
44
|
-
search: $search,
|
|
45
|
-
sort: $sort,
|
|
46
|
-
updatedAt: $updatedAt,
|
|
47
|
-
) ${returnFields}
|
|
48
|
-
}
|
|
49
|
-
`,
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
return new APIResponse<CategoryPaginationResponse>(
|
|
53
|
-
data?.listCategory,
|
|
54
|
-
errors
|
|
55
|
-
);
|
|
56
|
-
} catch (err) {
|
|
57
|
-
return handleAPIError(err);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export default listCategory;
|
|
62
|
-
|
|
63
|
-
export type QueryParams = {
|
|
64
|
-
categoryPath?: CategoryPathFilterInput | null;
|
|
65
|
-
id?: StringFilterInput | null;
|
|
66
|
-
includeDeleted?: boolean | null;
|
|
67
|
-
name?: StringFilterInput | null;
|
|
68
|
-
pagination?: PaginationInput | null;
|
|
69
|
-
search?: string | null;
|
|
70
|
-
sort?: string | null;
|
|
71
|
-
updatedAt?: DateFilterInput | null;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const allReturnFields =
|
|
75
|
-
"{count data {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 } hasNext limit page }";
|
|
76
|
-
|
|
77
|
-
export enum ResponseField {
|
|
78
|
-
COUNT = "count",
|
|
79
|
-
DATA__CATEGORY_PATH = "data.categoryPath",
|
|
80
|
-
DATA__CATEGORY_PATH_ITEMS__CREATED_AT = "data.categoryPathItems.createdAt",
|
|
81
|
-
DATA__CATEGORY_PATH_ITEMS__DELETED = "data.categoryPathItems.deleted",
|
|
82
|
-
DATA__CATEGORY_PATH_ITEMS__DESCRIPTION = "data.categoryPathItems.description",
|
|
83
|
-
DATA__CATEGORY_PATH_ITEMS__ID = "data.categoryPathItems.id",
|
|
84
|
-
DATA__CATEGORY_PATH_ITEMS__IMAGE_ID = "data.categoryPathItems.imageId",
|
|
85
|
-
DATA__CATEGORY_PATH_ITEMS__IS_AUTOMATED = "data.categoryPathItems.isAutomated",
|
|
86
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__CANONICALS = "data.categoryPathItems.metaData.canonicals",
|
|
87
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__CREATED_AT = "data.categoryPathItems.metaData.createdAt",
|
|
88
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__DELETED = "data.categoryPathItems.metaData.deleted",
|
|
89
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__DESCRIPTION = "data.categoryPathItems.metaData.description",
|
|
90
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__DISABLE_INDEX = "data.categoryPathItems.metaData.disableIndex",
|
|
91
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__ID = "data.categoryPathItems.metaData.id",
|
|
92
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "data.categoryPathItems.metaData.metadataOverrides.description",
|
|
93
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__LANGUAGE = "data.categoryPathItems.metaData.metadataOverrides.language",
|
|
94
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "data.categoryPathItems.metaData.metadataOverrides.pageTitle",
|
|
95
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "data.categoryPathItems.metaData.metadataOverrides.storefrontId",
|
|
96
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "data.categoryPathItems.metaData.metadataOverrides.storefrontRegionId",
|
|
97
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__PAGE_TITLE = "data.categoryPathItems.metaData.pageTitle",
|
|
98
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__REDIRECT_TO = "data.categoryPathItems.metaData.redirectTo",
|
|
99
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__SLUG = "data.categoryPathItems.metaData.slug",
|
|
100
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__TARGET_ID = "data.categoryPathItems.metaData.targetId",
|
|
101
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__TARGET_TYPE = "data.categoryPathItems.metaData.targetType",
|
|
102
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__DESCRIPTION = "data.categoryPathItems.metaData.translations.description",
|
|
103
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__LOCALE = "data.categoryPathItems.metaData.translations.locale",
|
|
104
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__TRANSLATIONS__PAGE_TITLE = "data.categoryPathItems.metaData.translations.pageTitle",
|
|
105
|
-
DATA__CATEGORY_PATH_ITEMS__META_DATA__UPDATED_AT = "data.categoryPathItems.metaData.updatedAt",
|
|
106
|
-
DATA__CATEGORY_PATH_ITEMS__NAME = "data.categoryPathItems.name",
|
|
107
|
-
DATA__CATEGORY_PATH_ITEMS__TRANSLATIONS__DESCRIPTION = "data.categoryPathItems.translations.description",
|
|
108
|
-
DATA__CATEGORY_PATH_ITEMS__TRANSLATIONS__LOCALE = "data.categoryPathItems.translations.locale",
|
|
109
|
-
DATA__CATEGORY_PATH_ITEMS__TRANSLATIONS__NAME = "data.categoryPathItems.translations.name",
|
|
110
|
-
DATA__CATEGORY_PATH_ITEMS__UPDATED_AT = "data.categoryPathItems.updatedAt",
|
|
111
|
-
DATA__CONDITIONS__CONDITION_TYPE = "data.conditions.conditionType",
|
|
112
|
-
DATA__CONDITIONS__VALUE_LIST = "data.conditions.valueList",
|
|
113
|
-
DATA__CREATED_AT = "data.createdAt",
|
|
114
|
-
DATA__DELETED = "data.deleted",
|
|
115
|
-
DATA__DESCRIPTION = "data.description",
|
|
116
|
-
DATA__ID = "data.id",
|
|
117
|
-
DATA__IMAGE_ID = "data.imageId",
|
|
118
|
-
DATA__IS_AUTOMATED = "data.isAutomated",
|
|
119
|
-
DATA__META_DATA__CANONICALS = "data.metaData.canonicals",
|
|
120
|
-
DATA__META_DATA__CREATED_AT = "data.metaData.createdAt",
|
|
121
|
-
DATA__META_DATA__DELETED = "data.metaData.deleted",
|
|
122
|
-
DATA__META_DATA__DESCRIPTION = "data.metaData.description",
|
|
123
|
-
DATA__META_DATA__DISABLE_INDEX = "data.metaData.disableIndex",
|
|
124
|
-
DATA__META_DATA__ID = "data.metaData.id",
|
|
125
|
-
DATA__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "data.metaData.metadataOverrides.description",
|
|
126
|
-
DATA__META_DATA__METADATA_OVERRIDES__LANGUAGE = "data.metaData.metadataOverrides.language",
|
|
127
|
-
DATA__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "data.metaData.metadataOverrides.pageTitle",
|
|
128
|
-
DATA__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "data.metaData.metadataOverrides.storefrontId",
|
|
129
|
-
DATA__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "data.metaData.metadataOverrides.storefrontRegionId",
|
|
130
|
-
DATA__META_DATA__PAGE_TITLE = "data.metaData.pageTitle",
|
|
131
|
-
DATA__META_DATA__REDIRECT_TO = "data.metaData.redirectTo",
|
|
132
|
-
DATA__META_DATA__SLUG = "data.metaData.slug",
|
|
133
|
-
DATA__META_DATA__TARGET_ID = "data.metaData.targetId",
|
|
134
|
-
DATA__META_DATA__TARGET_TYPE = "data.metaData.targetType",
|
|
135
|
-
DATA__META_DATA__TRANSLATIONS__DESCRIPTION = "data.metaData.translations.description",
|
|
136
|
-
DATA__META_DATA__TRANSLATIONS__LOCALE = "data.metaData.translations.locale",
|
|
137
|
-
DATA__META_DATA__TRANSLATIONS__PAGE_TITLE = "data.metaData.translations.pageTitle",
|
|
138
|
-
DATA__META_DATA__UPDATED_AT = "data.metaData.updatedAt",
|
|
139
|
-
DATA__NAME = "data.name",
|
|
140
|
-
DATA__ORDER_TYPE = "data.orderType",
|
|
141
|
-
DATA__PARENT_ID = "data.parentId",
|
|
142
|
-
DATA__SALES_CHANNEL_IDS = "data.salesChannelIds",
|
|
143
|
-
DATA__SHOULD_MATCH_ALL_CONDITIONS = "data.shouldMatchAllConditions",
|
|
144
|
-
DATA__TRANSLATIONS__DESCRIPTION = "data.translations.description",
|
|
145
|
-
DATA__TRANSLATIONS__LOCALE = "data.translations.locale",
|
|
146
|
-
DATA__TRANSLATIONS__NAME = "data.translations.name",
|
|
147
|
-
DATA__UPDATED_AT = "data.updatedAt",
|
|
148
|
-
HAS_NEXT = "hasNext",
|
|
149
|
-
LIMIT = "limit",
|
|
150
|
-
PAGE = "page",
|
|
151
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { StringFilterInput, CheckoutSettings } from "../types";
|
|
8
|
-
|
|
9
|
-
const listCheckoutSettings = async (
|
|
10
|
-
variables: QueryParams,
|
|
11
|
-
fields?: string[],
|
|
12
|
-
config?: ConfigType
|
|
13
|
-
) => {
|
|
14
|
-
try {
|
|
15
|
-
const { data, errors } = await fetchQuery({
|
|
16
|
-
operationName: "listCheckoutSettings",
|
|
17
|
-
config,
|
|
18
|
-
variables,
|
|
19
|
-
allReturnFields,
|
|
20
|
-
fields,
|
|
21
|
-
query: (returnFields: string) => `
|
|
22
|
-
query listCheckoutSettings (
|
|
23
|
-
$id: StringFilterInput,
|
|
24
|
-
$includeDeleted: Boolean,
|
|
25
|
-
$storefrontId: StringFilterInput,
|
|
26
|
-
) {
|
|
27
|
-
listCheckoutSettings (
|
|
28
|
-
id: $id,
|
|
29
|
-
includeDeleted: $includeDeleted,
|
|
30
|
-
storefrontId: $storefrontId,
|
|
31
|
-
) ${returnFields}
|
|
32
|
-
}
|
|
33
|
-
`,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
return new APIResponse<CheckoutSettings[]>(
|
|
37
|
-
data?.listCheckoutSettings,
|
|
38
|
-
errors
|
|
39
|
-
);
|
|
40
|
-
} catch (err) {
|
|
41
|
-
return handleAPIError(err);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default listCheckoutSettings;
|
|
46
|
-
|
|
47
|
-
export type QueryParams = {
|
|
48
|
-
id?: StringFilterInput | null;
|
|
49
|
-
includeDeleted?: boolean | null;
|
|
50
|
-
storefrontId?: StringFilterInput | null;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const allReturnFields =
|
|
54
|
-
"{createdAt deleted giftPackagePriceList {currencyCode currencySymbol price } id identityNumberRequirement isAccountRequired isGiftPackageEnabled isShowPostalCode isTermsAndConditionsDefaultChecked options {name required } phoneRequirement postalCodeRequirement showCheckoutNote showTermsAndConditionsCheckbox storefrontId updatedAt }";
|
|
55
|
-
|
|
56
|
-
export enum ResponseField {
|
|
57
|
-
CREATED_AT = "createdAt",
|
|
58
|
-
DELETED = "deleted",
|
|
59
|
-
GIFT_PACKAGE_PRICE_LIST__CURRENCY_CODE = "giftPackagePriceList.currencyCode",
|
|
60
|
-
GIFT_PACKAGE_PRICE_LIST__CURRENCY_SYMBOL = "giftPackagePriceList.currencySymbol",
|
|
61
|
-
GIFT_PACKAGE_PRICE_LIST__PRICE = "giftPackagePriceList.price",
|
|
62
|
-
ID = "id",
|
|
63
|
-
IDENTITY_NUMBER_REQUIREMENT = "identityNumberRequirement",
|
|
64
|
-
IS_ACCOUNT_REQUIRED = "isAccountRequired",
|
|
65
|
-
IS_GIFT_PACKAGE_ENABLED = "isGiftPackageEnabled",
|
|
66
|
-
IS_SHOW_POSTAL_CODE = "isShowPostalCode",
|
|
67
|
-
IS_TERMS_AND_CONDITIONS_DEFAULT_CHECKED = "isTermsAndConditionsDefaultChecked",
|
|
68
|
-
OPTIONS__NAME = "options.name",
|
|
69
|
-
OPTIONS__REQUIRED = "options.required",
|
|
70
|
-
PHONE_REQUIREMENT = "phoneRequirement",
|
|
71
|
-
POSTAL_CODE_REQUIREMENT = "postalCodeRequirement",
|
|
72
|
-
SHOW_CHECKOUT_NOTE = "showCheckoutNote",
|
|
73
|
-
SHOW_TERMS_AND_CONDITIONS_CHECKBOX = "showTermsAndConditionsCheckbox",
|
|
74
|
-
STOREFRONT_ID = "storefrontId",
|
|
75
|
-
UPDATED_AT = "updatedAt",
|
|
76
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { StringFilterInput, DateFilterInput, City } from "../types";
|
|
8
|
-
|
|
9
|
-
const listCity = async (
|
|
10
|
-
variables: QueryParams,
|
|
11
|
-
fields?: string[],
|
|
12
|
-
config?: ConfigType
|
|
13
|
-
) => {
|
|
14
|
-
try {
|
|
15
|
-
const { data, errors } = await fetchQuery({
|
|
16
|
-
operationName: "listCity",
|
|
17
|
-
config,
|
|
18
|
-
variables,
|
|
19
|
-
allReturnFields,
|
|
20
|
-
fields,
|
|
21
|
-
query: (returnFields: string) => `
|
|
22
|
-
query listCity (
|
|
23
|
-
$countryId: StringFilterInput,
|
|
24
|
-
$id: StringFilterInput,
|
|
25
|
-
$includeDeleted: Boolean,
|
|
26
|
-
$search: String,
|
|
27
|
-
$stateId: StringFilterInput!,
|
|
28
|
-
$updatedAt: DateFilterInput,
|
|
29
|
-
) {
|
|
30
|
-
listCity (
|
|
31
|
-
countryId: $countryId,
|
|
32
|
-
id: $id,
|
|
33
|
-
includeDeleted: $includeDeleted,
|
|
34
|
-
search: $search,
|
|
35
|
-
stateId: $stateId,
|
|
36
|
-
updatedAt: $updatedAt,
|
|
37
|
-
) ${returnFields}
|
|
38
|
-
}
|
|
39
|
-
`,
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
return new APIResponse<City[]>(data?.listCity, errors);
|
|
43
|
-
} catch (err) {
|
|
44
|
-
return handleAPIError(err);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default listCity;
|
|
49
|
-
|
|
50
|
-
export type QueryParams = {
|
|
51
|
-
countryId?: StringFilterInput | null;
|
|
52
|
-
id?: StringFilterInput | null;
|
|
53
|
-
includeDeleted?: boolean | null;
|
|
54
|
-
search?: string | null;
|
|
55
|
-
stateId: StringFilterInput;
|
|
56
|
-
updatedAt?: DateFilterInput | null;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
const allReturnFields =
|
|
60
|
-
"{cityCode countryId createdAt deleted id latitude longitude name order stateId updatedAt }";
|
|
61
|
-
|
|
62
|
-
export enum ResponseField {
|
|
63
|
-
CITY_CODE = "cityCode",
|
|
64
|
-
COUNTRY_ID = "countryId",
|
|
65
|
-
CREATED_AT = "createdAt",
|
|
66
|
-
DELETED = "deleted",
|
|
67
|
-
ID = "id",
|
|
68
|
-
LATITUDE = "latitude",
|
|
69
|
-
LONGITUDE = "longitude",
|
|
70
|
-
NAME = "name",
|
|
71
|
-
ORDER = "order",
|
|
72
|
-
STATE_ID = "stateId",
|
|
73
|
-
UPDATED_AT = "updatedAt",
|
|
74
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { StringFilterInput, DateFilterInput, Country } from "../types";
|
|
8
|
-
|
|
9
|
-
const listCountry = async (
|
|
10
|
-
variables: QueryParams,
|
|
11
|
-
fields?: string[],
|
|
12
|
-
config?: ConfigType
|
|
13
|
-
) => {
|
|
14
|
-
try {
|
|
15
|
-
const { data, errors } = await fetchQuery({
|
|
16
|
-
operationName: "listCountry",
|
|
17
|
-
config,
|
|
18
|
-
variables,
|
|
19
|
-
allReturnFields,
|
|
20
|
-
fields,
|
|
21
|
-
query: (returnFields: string) => `
|
|
22
|
-
query listCountry (
|
|
23
|
-
$id: StringFilterInput,
|
|
24
|
-
$includeDeleted: Boolean,
|
|
25
|
-
$iso2: StringFilterInput,
|
|
26
|
-
$iso3: StringFilterInput,
|
|
27
|
-
$locale: String,
|
|
28
|
-
$search: String,
|
|
29
|
-
$updatedAt: DateFilterInput,
|
|
30
|
-
) {
|
|
31
|
-
listCountry (
|
|
32
|
-
id: $id,
|
|
33
|
-
includeDeleted: $includeDeleted,
|
|
34
|
-
iso2: $iso2,
|
|
35
|
-
iso3: $iso3,
|
|
36
|
-
locale: $locale,
|
|
37
|
-
search: $search,
|
|
38
|
-
updatedAt: $updatedAt,
|
|
39
|
-
) ${returnFields}
|
|
40
|
-
}
|
|
41
|
-
`,
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
return new APIResponse<Country[]>(data?.listCountry, errors);
|
|
45
|
-
} catch (err) {
|
|
46
|
-
return handleAPIError(err);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export default listCountry;
|
|
51
|
-
|
|
52
|
-
export type QueryParams = {
|
|
53
|
-
id?: StringFilterInput | null;
|
|
54
|
-
includeDeleted?: boolean | null;
|
|
55
|
-
iso2?: StringFilterInput | null;
|
|
56
|
-
iso3?: StringFilterInput | null;
|
|
57
|
-
locale?: string | null;
|
|
58
|
-
search?: string | null;
|
|
59
|
-
updatedAt?: DateFilterInput | null;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const allReturnFields =
|
|
63
|
-
"{capital createdAt currency currencyCode currencySymbol deleted emoji emojiString id iso2 iso3 locationTranslations {de en tr } name native phoneCode region subregion updatedAt }";
|
|
64
|
-
|
|
65
|
-
export enum ResponseField {
|
|
66
|
-
CAPITAL = "capital",
|
|
67
|
-
CREATED_AT = "createdAt",
|
|
68
|
-
CURRENCY = "currency",
|
|
69
|
-
CURRENCY_CODE = "currencyCode",
|
|
70
|
-
CURRENCY_SYMBOL = "currencySymbol",
|
|
71
|
-
DELETED = "deleted",
|
|
72
|
-
EMOJI = "emoji",
|
|
73
|
-
EMOJI_STRING = "emojiString",
|
|
74
|
-
ID = "id",
|
|
75
|
-
ISO2 = "iso2",
|
|
76
|
-
ISO3 = "iso3",
|
|
77
|
-
LOCATION_TRANSLATIONS__DE = "locationTranslations.de",
|
|
78
|
-
LOCATION_TRANSLATIONS__EN = "locationTranslations.en",
|
|
79
|
-
LOCATION_TRANSLATIONS__TR = "locationTranslations.tr",
|
|
80
|
-
NAME = "name",
|
|
81
|
-
NATIVE = "native",
|
|
82
|
-
PHONE_CODE = "phoneCode",
|
|
83
|
-
REGION = "region",
|
|
84
|
-
SUBREGION = "subregion",
|
|
85
|
-
UPDATED_AT = "updatedAt",
|
|
86
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import { CustomerAttribute } from "../types";
|
|
8
|
-
|
|
9
|
-
const listCustomerAttribute = async (
|
|
10
|
-
fields?: string[],
|
|
11
|
-
config?: ConfigType
|
|
12
|
-
) => {
|
|
13
|
-
try {
|
|
14
|
-
const { data, errors } = await fetchQuery({
|
|
15
|
-
operationName: "listCustomerAttribute",
|
|
16
|
-
config,
|
|
17
|
-
allReturnFields,
|
|
18
|
-
fields,
|
|
19
|
-
query: (returnFields: string) => `
|
|
20
|
-
query listCustomerAttribute {
|
|
21
|
-
listCustomerAttribute ${returnFields}
|
|
22
|
-
}
|
|
23
|
-
`,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
return new APIResponse<CustomerAttribute[]>(
|
|
27
|
-
data?.listCustomerAttribute,
|
|
28
|
-
errors
|
|
29
|
-
);
|
|
30
|
-
} catch (err) {
|
|
31
|
-
return handleAPIError(err);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default listCustomerAttribute;
|
|
36
|
-
|
|
37
|
-
const allReturnFields =
|
|
38
|
-
"{createdAt deleted description id name options {createdAt deleted id name updatedAt } salesChannels {permission registerPageRequirement salesChannelId storefrontId } translations {description locale name options {id name } } type updatedAt }";
|
|
39
|
-
|
|
40
|
-
export enum ResponseField {
|
|
41
|
-
CREATED_AT = "createdAt",
|
|
42
|
-
DELETED = "deleted",
|
|
43
|
-
DESCRIPTION = "description",
|
|
44
|
-
ID = "id",
|
|
45
|
-
NAME = "name",
|
|
46
|
-
OPTIONS__CREATED_AT = "options.createdAt",
|
|
47
|
-
OPTIONS__DELETED = "options.deleted",
|
|
48
|
-
OPTIONS__ID = "options.id",
|
|
49
|
-
OPTIONS__NAME = "options.name",
|
|
50
|
-
OPTIONS__UPDATED_AT = "options.updatedAt",
|
|
51
|
-
SALES_CHANNELS__PERMISSION = "salesChannels.permission",
|
|
52
|
-
SALES_CHANNELS__REGISTER_PAGE_REQUIREMENT = "salesChannels.registerPageRequirement",
|
|
53
|
-
SALES_CHANNELS__SALES_CHANNEL_ID = "salesChannels.salesChannelId",
|
|
54
|
-
SALES_CHANNELS__STOREFRONT_ID = "salesChannels.storefrontId",
|
|
55
|
-
TRANSLATIONS__DESCRIPTION = "translations.description",
|
|
56
|
-
TRANSLATIONS__LOCALE = "translations.locale",
|
|
57
|
-
TRANSLATIONS__NAME = "translations.name",
|
|
58
|
-
TRANSLATIONS__OPTIONS__ID = "translations.options.id",
|
|
59
|
-
TRANSLATIONS__OPTIONS__NAME = "translations.options.name",
|
|
60
|
-
TYPE = "type",
|
|
61
|
-
UPDATED_AT = "updatedAt",
|
|
62
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import {
|
|
8
|
-
PaginationInput,
|
|
9
|
-
StringFilterInput,
|
|
10
|
-
CustomerReviewSummaryPaginationResponse,
|
|
11
|
-
} from "../types";
|
|
12
|
-
|
|
13
|
-
const listCustomerReviewSummary = async (
|
|
14
|
-
variables: QueryParams,
|
|
15
|
-
fields?: string[],
|
|
16
|
-
config?: ConfigType
|
|
17
|
-
) => {
|
|
18
|
-
try {
|
|
19
|
-
const { data, errors } = await fetchQuery({
|
|
20
|
-
operationName: "listCustomerReviewSummary",
|
|
21
|
-
config,
|
|
22
|
-
variables,
|
|
23
|
-
allReturnFields,
|
|
24
|
-
fields,
|
|
25
|
-
query: (returnFields: string) => `
|
|
26
|
-
query listCustomerReviewSummary (
|
|
27
|
-
$pagination: PaginationInput,
|
|
28
|
-
$productId: StringFilterInput,
|
|
29
|
-
) {
|
|
30
|
-
listCustomerReviewSummary (
|
|
31
|
-
pagination: $pagination,
|
|
32
|
-
productId: $productId,
|
|
33
|
-
) ${returnFields}
|
|
34
|
-
}
|
|
35
|
-
`,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
return new APIResponse<CustomerReviewSummaryPaginationResponse>(
|
|
39
|
-
data?.listCustomerReviewSummary,
|
|
40
|
-
errors
|
|
41
|
-
);
|
|
42
|
-
} catch (err) {
|
|
43
|
-
return handleAPIError(err);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export default listCustomerReviewSummary;
|
|
48
|
-
|
|
49
|
-
export type QueryParams = {
|
|
50
|
-
pagination?: PaginationInput | null;
|
|
51
|
-
productId?: StringFilterInput | null;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const allReturnFields =
|
|
55
|
-
"{count data {averageStar createdAt deleted id productId stars {count star } totalReview updatedAt } hasNext limit page }";
|
|
56
|
-
|
|
57
|
-
export enum ResponseField {
|
|
58
|
-
COUNT = "count",
|
|
59
|
-
DATA__AVERAGE_STAR = "data.averageStar",
|
|
60
|
-
DATA__CREATED_AT = "data.createdAt",
|
|
61
|
-
DATA__DELETED = "data.deleted",
|
|
62
|
-
DATA__ID = "data.id",
|
|
63
|
-
DATA__PRODUCT_ID = "data.productId",
|
|
64
|
-
DATA__STARS__COUNT = "data.stars.count",
|
|
65
|
-
DATA__STARS__STAR = "data.stars.star",
|
|
66
|
-
DATA__TOTAL_REVIEW = "data.totalReview",
|
|
67
|
-
DATA__UPDATED_AT = "data.updatedAt",
|
|
68
|
-
HAS_NEXT = "hasNext",
|
|
69
|
-
LIMIT = "limit",
|
|
70
|
-
PAGE = "page",
|
|
71
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
fetchQuery,
|
|
3
|
-
ConfigType,
|
|
4
|
-
APIResponse,
|
|
5
|
-
handleAPIError,
|
|
6
|
-
} from "@ikas/fe-api-client";
|
|
7
|
-
import {
|
|
8
|
-
StringFilterInput,
|
|
9
|
-
ListCustomerReviewInput,
|
|
10
|
-
PaginationInput,
|
|
11
|
-
CustomerReviewSFPaginationResponse,
|
|
12
|
-
} from "../types";
|
|
13
|
-
|
|
14
|
-
const listCustomerReviews = async (
|
|
15
|
-
variables: QueryParams,
|
|
16
|
-
fields?: string[],
|
|
17
|
-
config?: ConfigType
|
|
18
|
-
) => {
|
|
19
|
-
try {
|
|
20
|
-
const { data, errors } = await fetchQuery({
|
|
21
|
-
operationName: "listCustomerReviews",
|
|
22
|
-
config,
|
|
23
|
-
variables,
|
|
24
|
-
allReturnFields,
|
|
25
|
-
fields,
|
|
26
|
-
query: (returnFields: string) => `
|
|
27
|
-
query listCustomerReviews (
|
|
28
|
-
$id: StringFilterInput,
|
|
29
|
-
$includeDeleted: Boolean,
|
|
30
|
-
$input: ListCustomerReviewInput!,
|
|
31
|
-
$pagination: PaginationInput,
|
|
32
|
-
$productId: String,
|
|
33
|
-
) {
|
|
34
|
-
listCustomerReviews (
|
|
35
|
-
id: $id,
|
|
36
|
-
includeDeleted: $includeDeleted,
|
|
37
|
-
input: $input,
|
|
38
|
-
pagination: $pagination,
|
|
39
|
-
productId: $productId,
|
|
40
|
-
) ${returnFields}
|
|
41
|
-
}
|
|
42
|
-
`,
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
return new APIResponse<CustomerReviewSFPaginationResponse>(
|
|
46
|
-
data?.listCustomerReviews,
|
|
47
|
-
errors
|
|
48
|
-
);
|
|
49
|
-
} catch (err) {
|
|
50
|
-
return handleAPIError(err);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export default listCustomerReviews;
|
|
55
|
-
|
|
56
|
-
export type QueryParams = {
|
|
57
|
-
id?: StringFilterInput | null;
|
|
58
|
-
includeDeleted?: boolean | null;
|
|
59
|
-
input: ListCustomerReviewInput;
|
|
60
|
-
pagination?: PaginationInput | null;
|
|
61
|
-
productId?: string | null;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const allReturnFields =
|
|
65
|
-
"{count data {comment createdAt customerId deleted email firstName id imageIds lastName orderId orderNumber productId salesChannelId star status storefrontId title updatedAt } hasNext limit page }";
|
|
66
|
-
|
|
67
|
-
export enum ResponseField {
|
|
68
|
-
COUNT = "count",
|
|
69
|
-
DATA__COMMENT = "data.comment",
|
|
70
|
-
DATA__CREATED_AT = "data.createdAt",
|
|
71
|
-
DATA__CUSTOMER_ID = "data.customerId",
|
|
72
|
-
DATA__DELETED = "data.deleted",
|
|
73
|
-
DATA__EMAIL = "data.email",
|
|
74
|
-
DATA__FIRST_NAME = "data.firstName",
|
|
75
|
-
DATA__ID = "data.id",
|
|
76
|
-
DATA__IMAGE_IDS = "data.imageIds",
|
|
77
|
-
DATA__LAST_NAME = "data.lastName",
|
|
78
|
-
DATA__ORDER_ID = "data.orderId",
|
|
79
|
-
DATA__ORDER_NUMBER = "data.orderNumber",
|
|
80
|
-
DATA__PRODUCT_ID = "data.productId",
|
|
81
|
-
DATA__SALES_CHANNEL_ID = "data.salesChannelId",
|
|
82
|
-
DATA__STAR = "data.star",
|
|
83
|
-
DATA__STATUS = "data.status",
|
|
84
|
-
DATA__STOREFRONT_ID = "data.storefrontId",
|
|
85
|
-
DATA__TITLE = "data.title",
|
|
86
|
-
DATA__UPDATED_AT = "data.updatedAt",
|
|
87
|
-
HAS_NEXT = "hasNext",
|
|
88
|
-
LIMIT = "limit",
|
|
89
|
-
PAGE = "page",
|
|
90
|
-
}
|