@ikas/storefront-api 4.0.0-alpha.10
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/package.json +42 -0
- package/src/__api/models/AbandonedCartFlow.ts +34 -0
- package/src/__api/models/AbandonedCartFlowCustomerFilter.ts +25 -0
- package/src/__api/models/AddItemToCartInput.ts +29 -0
- package/src/__api/models/AdditionalPrice.ts +24 -0
- package/src/__api/models/ApplicableProductFilterValue.ts +23 -0
- package/src/__api/models/AppliedProduct.ts +15 -0
- package/src/__api/models/AppliedProductInput.ts +15 -0
- package/src/__api/models/AvailableShippingMethod.ts +24 -0
- package/src/__api/models/Blog.ts +55 -0
- package/src/__api/models/BlogCategory.ts +23 -0
- package/src/__api/models/BlogCategoryPaginationResponse.ts +24 -0
- package/src/__api/models/BlogContent.ts +20 -0
- package/src/__api/models/BlogMetadata.ts +32 -0
- package/src/__api/models/BlogMetadataPaginationResponse.ts +24 -0
- package/src/__api/models/BlogMetadataTargetTypeEnumFilter.ts +22 -0
- package/src/__api/models/BlogPaginationResponse.ts +23 -0
- package/src/__api/models/BlogTag.ts +16 -0
- package/src/__api/models/BlogWriter.ts +15 -0
- package/src/__api/models/BooleanFilterInput.ts +13 -0
- package/src/__api/models/BuyX.ts +20 -0
- package/src/__api/models/BuyXThenGetY.ts +22 -0
- package/src/__api/models/Campaign.ts +75 -0
- package/src/__api/models/CampaignDateRangeField.ts +16 -0
- package/src/__api/models/CampaignFilter.ts +16 -0
- package/src/__api/models/CampaignMinMaxRangeField.ts +16 -0
- package/src/__api/models/CampaignOffer.ts +50 -0
- package/src/__api/models/CampaignOfferProduct.ts +49 -0
- package/src/__api/models/CampaignOfferProductTranslation.ts +19 -0
- package/src/__api/models/CampaignOfferTriggerSettings.ts +19 -0
- package/src/__api/models/Cart.ts +61 -0
- package/src/__api/models/CartCampaignOffer.ts +31 -0
- package/src/__api/models/CartLineItemInput.ts +20 -0
- package/src/__api/models/CartLineOptionInput.ts +17 -0
- package/src/__api/models/CartLineVariantInput.ts +15 -0
- package/src/__api/models/CartStorefrontRouting.ts +28 -0
- package/src/__api/models/CartStorefrontRoutingDynamicCurrencySettings.ts +19 -0
- package/src/__api/models/CartV2.ts +159 -0
- package/src/__api/models/CartV2CampaignOffer.ts +36 -0
- package/src/__api/models/Category.ts +58 -0
- package/src/__api/models/CategoryCondition.ts +17 -0
- package/src/__api/models/CategoryFilterInput.ts +15 -0
- package/src/__api/models/CategoryPaginationResponse.ts +24 -0
- package/src/__api/models/CategoryPathFilterInput.ts +14 -0
- package/src/__api/models/CategoryPathItem.ts +33 -0
- package/src/__api/models/CategoryTranslation.ts +17 -0
- package/src/__api/models/CheckStocksLineInput.ts +17 -0
- package/src/__api/models/CheckStocksLineResponse.ts +18 -0
- package/src/__api/models/CheckStocksResponse.ts +16 -0
- package/src/__api/models/Checkout.ts +102 -0
- package/src/__api/models/CheckoutCustomer.ts +39 -0
- package/src/__api/models/CheckoutCustomerInput.ts +25 -0
- package/src/__api/models/CheckoutOption.ts +15 -0
- package/src/__api/models/CheckoutSettings.ts +62 -0
- package/src/__api/models/CheckoutSettingsPrice.ts +15 -0
- package/src/__api/models/City.ts +29 -0
- package/src/__api/models/Country.ts +41 -0
- package/src/__api/models/CreateCustomerEmailSubscriptionInput.ts +22 -0
- package/src/__api/models/CreateCustomerReviewInput.ts +38 -0
- package/src/__api/models/CreateSaleTransactionMasterPassPaymentMethodDetail.ts +19 -0
- package/src/__api/models/CreateSaleTransactionWithCartInput.ts +29 -0
- package/src/__api/models/CreateSaleTransactionWithCheckoutInput.ts +29 -0
- package/src/__api/models/CreateStripePaymentIntentResponse.ts +21 -0
- package/src/__api/models/CurrencyRate.ts +23 -0
- package/src/__api/models/CurrencyRateData.ts +15 -0
- package/src/__api/models/Customer.ts +81 -0
- package/src/__api/models/CustomerAddress.ts +64 -0
- package/src/__api/models/CustomerAddressCity.ts +17 -0
- package/src/__api/models/CustomerAddressCityInput.ts +18 -0
- package/src/__api/models/CustomerAddressCountry.ts +22 -0
- package/src/__api/models/CustomerAddressCountryInput.ts +23 -0
- package/src/__api/models/CustomerAddressDistrict.ts +18 -0
- package/src/__api/models/CustomerAddressDistrictInput.ts +19 -0
- package/src/__api/models/CustomerAddressState.ts +17 -0
- package/src/__api/models/CustomerAddressStateInput.ts +19 -0
- package/src/__api/models/CustomerAttribute.ts +36 -0
- package/src/__api/models/CustomerAttributeOption.ts +17 -0
- package/src/__api/models/CustomerAttributeOptionTranslation.ts +17 -0
- package/src/__api/models/CustomerAttributeSalesChannel.ts +28 -0
- package/src/__api/models/CustomerAttributeTranslation.ts +24 -0
- package/src/__api/models/CustomerAttributeValue.ts +18 -0
- package/src/__api/models/CustomerAttributeValueInput.ts +19 -0
- package/src/__api/models/CustomerCheckResponse.ts +13 -0
- package/src/__api/models/CustomerFavoriteProduct.ts +19 -0
- package/src/__api/models/CustomerLoginResponse.ts +18 -0
- package/src/__api/models/CustomerRefreshTokenResponse.ts +17 -0
- package/src/__api/models/CustomerReview.ts +43 -0
- package/src/__api/models/CustomerReviewSFPaginationResponse.ts +26 -0
- package/src/__api/models/CustomerReviewSummary.ts +25 -0
- package/src/__api/models/CustomerReviewSummaryPaginationResponse.ts +26 -0
- package/src/__api/models/CustomerReviewSummaryStar.ts +17 -0
- package/src/__api/models/DateFilterInput.ts +27 -0
- package/src/__api/models/District.ts +29 -0
- package/src/__api/models/FixedDiscount.ts +28 -0
- package/src/__api/models/GetAvailableStockLocation.ts +25 -0
- package/src/__api/models/GetAvailableStockLocationAddress.ts +36 -0
- package/src/__api/models/GetAvailableStockLocationAddressCity.ts +19 -0
- package/src/__api/models/GetAvailableStockLocationsResponse.ts +18 -0
- package/src/__api/models/GetOrderLineFile.ts +13 -0
- package/src/__api/models/GetProductCampaignsInput.ts +18 -0
- package/src/__api/models/GetProductCampaignsResponse.ts +20 -0
- package/src/__api/models/GetProductOptionFileUrl.ts +18 -0
- package/src/__api/models/GetVariantStockLocation.ts +21 -0
- package/src/__api/models/GetVariantStockLocationListResponse.ts +18 -0
- package/src/__api/models/GetY.ts +26 -0
- package/src/__api/models/HTMLMetaData.ts +44 -0
- package/src/__api/models/HTMLMetaDataOverride.ts +21 -0
- package/src/__api/models/HTMLMetaDataTargetTypeEnumFilter.ts +22 -0
- package/src/__api/models/HTMLMetaDataTranslation.ts +18 -0
- package/src/__api/models/Invoice.ts +26 -0
- package/src/__api/models/ListCustomerReviewInput.ts +14 -0
- package/src/__api/models/LocationTranslations.ts +15 -0
- package/src/__api/models/MasterPassTokenResponse.ts +18 -0
- package/src/__api/models/MerchantAddress.ts +48 -0
- package/src/__api/models/MerchantAddressCity.ts +17 -0
- package/src/__api/models/MerchantAddressCountry.ts +18 -0
- package/src/__api/models/MerchantAddressDistrict.ts +18 -0
- package/src/__api/models/MerchantAddressState.ts +17 -0
- package/src/__api/models/MerchantSettings.ts +32 -0
- package/src/__api/models/MerchantSettingsCurrencyFormat.ts +27 -0
- package/src/__api/models/OrderAddress.ts +53 -0
- package/src/__api/models/OrderAddressCity.ts +17 -0
- package/src/__api/models/OrderAddressCityInput.ts +17 -0
- package/src/__api/models/OrderAddressCountry.ts +21 -0
- package/src/__api/models/OrderAddressCountryInput.ts +22 -0
- package/src/__api/models/OrderAddressDistrict.ts +17 -0
- package/src/__api/models/OrderAddressDistrictInput.ts +19 -0
- package/src/__api/models/OrderAddressInput.ts +53 -0
- package/src/__api/models/OrderAddressState.ts +17 -0
- package/src/__api/models/OrderAddressStateInput.ts +18 -0
- package/src/__api/models/OrderAdjustment.ts +35 -0
- package/src/__api/models/OrderAdjustmentAppliedOrderLine.ts +24 -0
- package/src/__api/models/OrderAdjustmentInput.ts +26 -0
- package/src/__api/models/OrderCurrencyRate.ts +17 -0
- package/src/__api/models/OrderCustomer.ts +34 -0
- package/src/__api/models/OrderGiftPackageLine.ts +18 -0
- package/src/__api/models/OrderLineDiscount.ts +28 -0
- package/src/__api/models/OrderLineItem.ts +59 -0
- package/src/__api/models/OrderLineOption.ts +25 -0
- package/src/__api/models/OrderLineOptionValue.ts +18 -0
- package/src/__api/models/OrderLineVariant.ts +56 -0
- package/src/__api/models/OrderLineVariantBrand.ts +15 -0
- package/src/__api/models/OrderLineVariantCategory.ts +21 -0
- package/src/__api/models/OrderLineVariantCategoryPath.ts +17 -0
- package/src/__api/models/OrderLineVariantPrice.ts +27 -0
- package/src/__api/models/OrderLineVariantVariantValues.ts +23 -0
- package/src/__api/models/OrderPackage.ts +33 -0
- package/src/__api/models/OrderPaymentMethod.ts +22 -0
- package/src/__api/models/OrderRefundOrderLineInput.ts +17 -0
- package/src/__api/models/OrderRefundRequestInput.ts +21 -0
- package/src/__api/models/OrderRefundSettings.ts +28 -0
- package/src/__api/models/OrderShippingLine.ts +34 -0
- package/src/__api/models/OrderStorefrontRouting.ts +29 -0
- package/src/__api/models/OrderStorefrontRoutingDynamicCurrencySettings.ts +19 -0
- package/src/__api/models/OrderTaxLine.ts +15 -0
- package/src/__api/models/PaginationInput.ts +17 -0
- package/src/__api/models/PaymentGateway.ts +61 -0
- package/src/__api/models/PaymentGatewayPaymentMethod.ts +17 -0
- package/src/__api/models/PaymentGatewaySettings.ts +21 -0
- package/src/__api/models/PaymentGatewayTranslation.ts +19 -0
- package/src/__api/models/PaymentMethodDetailInput.ts +26 -0
- package/src/__api/models/Product.ts +69 -0
- package/src/__api/models/ProductAttribute.ts +36 -0
- package/src/__api/models/ProductAttributeOption.ts +17 -0
- package/src/__api/models/ProductAttributeOptionTranslation.ts +17 -0
- package/src/__api/models/ProductAttributeTableCellData.ts +17 -0
- package/src/__api/models/ProductAttributeTableTemplate.ts +22 -0
- package/src/__api/models/ProductAttributeTranslation.ts +24 -0
- package/src/__api/models/ProductAttributeValue.ts +19 -0
- package/src/__api/models/ProductBackInStockRemind.ts +25 -0
- package/src/__api/models/ProductBackInStockRemindInput.ts +19 -0
- package/src/__api/models/ProductBrand.ts +33 -0
- package/src/__api/models/ProductBrandPaginationResponse.ts +24 -0
- package/src/__api/models/ProductBrandTranslation.ts +18 -0
- package/src/__api/models/ProductFacetCount.ts +18 -0
- package/src/__api/models/ProductFacetCountValue.ts +16 -0
- package/src/__api/models/ProductFilterData.ts +21 -0
- package/src/__api/models/ProductFilterDataFilter.ts +49 -0
- package/src/__api/models/ProductFilterSettings.ts +25 -0
- package/src/__api/models/ProductImage.ts +20 -0
- package/src/__api/models/ProductItem.ts +18 -0
- package/src/__api/models/ProductItemInput.ts +18 -0
- package/src/__api/models/ProductLastViewed.ts +21 -0
- package/src/__api/models/ProductLastViewedInput.ts +22 -0
- package/src/__api/models/ProductOption.ts +62 -0
- package/src/__api/models/ProductOptionDateSettings.ts +29 -0
- package/src/__api/models/ProductOptionFileSettings.ts +25 -0
- package/src/__api/models/ProductOptionSelectSettings.ts +31 -0
- package/src/__api/models/ProductOptionSelectValue.ts +33 -0
- package/src/__api/models/ProductOptionSelectValueOtherPrice.ts +17 -0
- package/src/__api/models/ProductOptionSelectValueTranslations.ts +17 -0
- package/src/__api/models/ProductOptionSet.ts +26 -0
- package/src/__api/models/ProductOptionSetTranslations.ts +20 -0
- package/src/__api/models/ProductOptionTextSettings.ts +17 -0
- package/src/__api/models/ProductOptionTranslations.ts +24 -0
- package/src/__api/models/ProductPaginationResponse.ts +24 -0
- package/src/__api/models/ProductPrice.ts +27 -0
- package/src/__api/models/ProductSearchResponse.ts +31 -0
- package/src/__api/models/ProductStockLocation.ts +22 -0
- package/src/__api/models/ProductTagTranslation.ts +17 -0
- package/src/__api/models/ProductTranslation.ts +17 -0
- package/src/__api/models/ProductVariantType.ts +17 -0
- package/src/__api/models/Raffle.ts +49 -0
- package/src/__api/models/RaffleDateRangeField.ts +15 -0
- package/src/__api/models/RaffleMetadata.ts +32 -0
- package/src/__api/models/RaffleMetadataTargetTypeEnumFilter.ts +22 -0
- package/src/__api/models/RafflePaginationResponse.ts +23 -0
- package/src/__api/models/RaffleParticipants.ts +52 -0
- package/src/__api/models/RaffleParticipantsInput.ts +32 -0
- package/src/__api/models/RaffleParticipantsUpdateInput.ts +24 -0
- package/src/__api/models/RaffleVariantInformation.ts +16 -0
- package/src/__api/models/RetrieveInstallmentInfoInput.ts +19 -0
- package/src/__api/models/RetrieveInstallmentInfoResponse.ts +36 -0
- package/src/__api/models/SaveCartInput.ts +50 -0
- package/src/__api/models/SaveCheckoutInput.ts +56 -0
- package/src/__api/models/SaveItemToCartInput.ts +35 -0
- package/src/__api/models/SaveMyCustomerAddressInput.ts +63 -0
- package/src/__api/models/SaveMyCustomerInput.ts +30 -0
- package/src/__api/models/SearchCategory.ts +27 -0
- package/src/__api/models/SearchCategoryPath.ts +22 -0
- package/src/__api/models/SearchDynamicCurrencySettings.ts +17 -0
- package/src/__api/models/SearchHTMLMetaData.ts +36 -0
- package/src/__api/models/SearchHTMLMetaDataOverride.ts +23 -0
- package/src/__api/models/SearchInput.ts +64 -0
- package/src/__api/models/SearchInputFacetListInput.ts +20 -0
- package/src/__api/models/SearchInputFilterListInput.ts +27 -0
- package/src/__api/models/SearchInputOrderByInput.ts +17 -0
- package/src/__api/models/SearchProduct.ts +72 -0
- package/src/__api/models/SearchProductAttribute.ts +28 -0
- package/src/__api/models/SearchProductAttributeOption.ts +17 -0
- package/src/__api/models/SearchProductAttributeTableCellData.ts +17 -0
- package/src/__api/models/SearchProductAttributeTableTemplate.ts +22 -0
- package/src/__api/models/SearchProductAttributeValue.ts +27 -0
- package/src/__api/models/SearchProductBrand.ts +22 -0
- package/src/__api/models/SearchProductImage.ts +21 -0
- package/src/__api/models/SearchProductPrice.ts +27 -0
- package/src/__api/models/SearchProductStockLocation.ts +17 -0
- package/src/__api/models/SearchProductTag.ts +20 -0
- package/src/__api/models/SearchProductVariantType.ts +21 -0
- package/src/__api/models/SearchVariant.ts +58 -0
- package/src/__api/models/SearchVariantType.ts +27 -0
- package/src/__api/models/SearchVariantValue.ts +19 -0
- package/src/__api/models/SearchVariationValueRelation.ts +17 -0
- package/src/__api/models/SocialLoginSettings.ts +18 -0
- package/src/__api/models/State.ts +20 -0
- package/src/__api/models/StockLocation.ts +36 -0
- package/src/__api/models/StockLocationAddress.ts +35 -0
- package/src/__api/models/StockLocationAddressCity.ts +18 -0
- package/src/__api/models/StockLocationAddressCountry.ts +19 -0
- package/src/__api/models/StockLocationAddressDistrict.ts +19 -0
- package/src/__api/models/StockLocationAddressState.ts +19 -0
- package/src/__api/models/Storefront.ts +66 -0
- package/src/__api/models/StorefrontDomain.ts +25 -0
- package/src/__api/models/StorefrontDynamicCurrencySettings.ts +17 -0
- package/src/__api/models/StorefrontLocalization.ts +21 -0
- package/src/__api/models/StorefrontOrder.ts +116 -0
- package/src/__api/models/StorefrontRouting.ts +29 -0
- package/src/__api/models/StorefrontTheme.ts +25 -0
- package/src/__api/models/StorefrontTransaction.ts +53 -0
- package/src/__api/models/StringFilterInput.ts +21 -0
- package/src/__api/models/Town.ts +21 -0
- package/src/__api/models/TrackingInfo.ts +24 -0
- package/src/__api/models/TransactionError.ts +17 -0
- package/src/__api/models/TransactionInstallmentPrice.ts +36 -0
- package/src/__api/models/TransactionPaymentMethodDetail.ts +39 -0
- package/src/__api/models/TransactionResponse.ts +26 -0
- package/src/__api/models/UpdateCartCampaignOfferInput.ts +25 -0
- package/src/__api/models/Variant.ts +58 -0
- package/src/__api/models/VariantStock.ts +15 -0
- package/src/__api/models/VariantType.ts +29 -0
- package/src/__api/models/VariantTypeTranslation.ts +21 -0
- package/src/__api/models/VariantValue.ts +20 -0
- package/src/__api/models/VariantValueRelation.ts +15 -0
- package/src/__api/models/VariantValueTranslation.ts +16 -0
- package/src/__api/models/_base.ts +26 -0
- package/src/__api/mutations/activateCustomer.ts +38 -0
- package/src/__api/mutations/addCouponCodeToCheckout.ts +259 -0
- package/src/__api/mutations/addItemToCart.ts +284 -0
- package/src/__api/mutations/createCustomerEmailSubscription.ts +111 -0
- package/src/__api/mutations/createCustomerReview.ts +66 -0
- package/src/__api/mutations/createOrderRefundRequest.ts +240 -0
- package/src/__api/mutations/createSaleTransactionWithCart.ts +62 -0
- package/src/__api/mutations/createSaleTransactionWithCheckout.ts +62 -0
- package/src/__api/mutations/createStripePaymentIntent.ts +57 -0
- package/src/__api/mutations/customerForgotPassword.ts +41 -0
- package/src/__api/mutations/customerLogin.ts +113 -0
- package/src/__api/mutations/customerRecoverPassword.ts +44 -0
- package/src/__api/mutations/customerRefreshToken.ts +52 -0
- package/src/__api/mutations/deleteRaffleParticipantsList.ts +38 -0
- package/src/__api/mutations/getOrderLineFile.ts +39 -0
- package/src/__api/mutations/registerCustomer.ts +131 -0
- package/src/__api/mutations/retrieveInstallmentInfo.ts +65 -0
- package/src/__api/mutations/saveCart.ts +284 -0
- package/src/__api/mutations/saveCartCouponCode.ts +287 -0
- package/src/__api/mutations/saveCheckout.ts +256 -0
- package/src/__api/mutations/saveFavoriteProduct.ts +41 -0
- package/src/__api/mutations/saveItemToCart.ts +136 -0
- package/src/__api/mutations/saveLastViewedProducts.ts +62 -0
- package/src/__api/mutations/saveMyCustomer.ts +108 -0
- package/src/__api/mutations/saveProductBackInStockRemind.ts +63 -0
- package/src/__api/mutations/saveRaffleParticipant.ts +69 -0
- package/src/__api/mutations/sendContactFormToMerchant.ts +53 -0
- package/src/__api/mutations/updateCartCampaignOffer.ts +284 -0
- package/src/__api/mutations/updateRaffleParticipant.ts +72 -0
- package/src/__api/queries/checkCustomerEmail.ts +54 -0
- package/src/__api/queries/checkStocks.ts +53 -0
- package/src/__api/queries/customerSocialLogin.ts +113 -0
- package/src/__api/queries/getAvailableShippingCountries.ts +41 -0
- package/src/__api/queries/getAvailableStockLocations.ts +75 -0
- package/src/__api/queries/getCart.ts +142 -0
- package/src/__api/queries/getCartById.ts +287 -0
- package/src/__api/queries/getCheckoutByCartId.ts +256 -0
- package/src/__api/queries/getCheckoutById.ts +256 -0
- package/src/__api/queries/getCurrencyRate.ts +56 -0
- package/src/__api/queries/getCustomerOrders.ts +237 -0
- package/src/__api/queries/getLastViewedProducts.ts +62 -0
- package/src/__api/queries/getMasterPassRequestToken.ts +62 -0
- package/src/__api/queries/getMyCountry.ts +26 -0
- package/src/__api/queries/getMyCustomer.ts +95 -0
- package/src/__api/queries/getOrder.ts +237 -0
- package/src/__api/queries/getOrderByEmail.ts +240 -0
- package/src/__api/queries/getProductCampaigns.ts +92 -0
- package/src/__api/queries/getProductFilterData.ts +211 -0
- package/src/__api/queries/getProductOptionFileUrl.ts +59 -0
- package/src/__api/queries/getRaffleParticipants.ts +59 -0
- package/src/__api/queries/getRafflesByCustomerId.ts +74 -0
- package/src/__api/queries/getRelatedProducts.ts +60 -0
- package/src/__api/queries/getStorefront.ts +103 -0
- package/src/__api/queries/getStorefrontSettings.ts +26 -0
- package/src/__api/queries/getVariantStockLocations.ts +74 -0
- package/src/__api/queries/isFavoriteProduct.ts +38 -0
- package/src/__api/queries/listBlog.ts +136 -0
- package/src/__api/queries/listBlogCategory.ts +92 -0
- package/src/__api/queries/listBlogMetadata.ts +90 -0
- package/src/__api/queries/listCampaignOffer.ts +76 -0
- package/src/__api/queries/listCategory.ts +151 -0
- package/src/__api/queries/listCheckoutSettings.ts +75 -0
- package/src/__api/queries/listCity.ts +74 -0
- package/src/__api/queries/listCountry.ts +80 -0
- package/src/__api/queries/listCustomerAttribute.ts +62 -0
- package/src/__api/queries/listCustomerReviewSummary.ts +71 -0
- package/src/__api/queries/listCustomerReviews.ts +90 -0
- package/src/__api/queries/listDistrict.ts +77 -0
- package/src/__api/queries/listFavoriteProducts.ts +44 -0
- package/src/__api/queries/listHTMLMetaData.ts +88 -0
- package/src/__api/queries/listMerchantSettings.ts +90 -0
- package/src/__api/queries/listOrderRefundSettings.ts +73 -0
- package/src/__api/queries/listOrderTransactions.ts +89 -0
- package/src/__api/queries/listPaymentGateway.ts +85 -0
- package/src/__api/queries/listProduct.ts +156 -0
- package/src/__api/queries/listProductAttribute.ts +81 -0
- package/src/__api/queries/listProductBackInStockRemind.ts +79 -0
- package/src/__api/queries/listProductBrand.ts +110 -0
- package/src/__api/queries/listProductOptionSet.ts +105 -0
- package/src/__api/queries/listProductStockLocation.ts +62 -0
- package/src/__api/queries/listRaffle.ts +108 -0
- package/src/__api/queries/listRaffleMetadata.ts +83 -0
- package/src/__api/queries/listState.ts +67 -0
- package/src/__api/queries/listStockLocation.ts +76 -0
- package/src/__api/queries/listTown.ts +67 -0
- package/src/__api/queries/listVariantType.ts +74 -0
- package/src/__api/queries/searchProducts.ts +171 -0
- package/src/__api/types/index.ts +3047 -0
- package/src/api/blog/index.ts +70 -0
- package/src/api/brand/index.ts +27 -0
- package/src/api/cart/index.ts +113 -0
- package/src/api/category/index.ts +25 -0
- package/src/api/checkout/index.ts +121 -0
- package/src/api/customer/index.ts +380 -0
- package/src/api/file-upload/index.ts +38 -0
- package/src/api/html-meta-data/index.ts +25 -0
- package/src/api/location/index.ts +64 -0
- package/src/api/masterpass/index.ts +12 -0
- package/src/api/merchant/index.ts +24 -0
- package/src/api/product/index.ts +354 -0
- package/src/api/raffle/index.ts +80 -0
- package/src/api/storefront/index.ts +30 -0
- package/src/index.ts +68 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
|
|
3
|
+
import { QueryParams as ListBlogQueryParams } from "../../__api/queries/listBlog";
|
|
4
|
+
import { QueryParams as ListBlogMetadataQueryParams } from "../../__api/queries/listBlogMetadata";
|
|
5
|
+
import { QueryParams as ListBlogCategoryQueryParams } from "../../__api/queries/listBlogCategory";
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
IkasBlog,
|
|
9
|
+
IkasBlogMetaData,
|
|
10
|
+
IkasBlogCategory,
|
|
11
|
+
} from "@ikas/storefront-models";
|
|
12
|
+
|
|
13
|
+
import { initIkasBlog } from "@ikas/storefront-models";
|
|
14
|
+
import { initIkasBlogCategory } from "@ikas/storefront-models";
|
|
15
|
+
|
|
16
|
+
export type {
|
|
17
|
+
ListBlogQueryParams,
|
|
18
|
+
ListBlogMetadataQueryParams,
|
|
19
|
+
ListBlogCategoryQueryParams,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export async function listBlog(params: ListBlogQueryParams) {
|
|
23
|
+
const _listBlog = (await import("../../__api/queries/listBlog")).default;
|
|
24
|
+
const response = await _listBlog(params);
|
|
25
|
+
const data: IkasBlog[] | undefined = response.data?.data as any;
|
|
26
|
+
|
|
27
|
+
data?.forEach(initIkasBlog);
|
|
28
|
+
|
|
29
|
+
return new APIResponse(
|
|
30
|
+
{
|
|
31
|
+
...response.data,
|
|
32
|
+
data,
|
|
33
|
+
},
|
|
34
|
+
response.graphQLErrors
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export async function listBlogMetaData(params: ListBlogMetadataQueryParams) {
|
|
39
|
+
const _listBlogMetadata = (
|
|
40
|
+
await import("../../__api/queries/listBlogMetadata")
|
|
41
|
+
).default;
|
|
42
|
+
const response = await _listBlogMetadata(params);
|
|
43
|
+
const data: IkasBlogMetaData[] | undefined = response.data?.data as any;
|
|
44
|
+
|
|
45
|
+
return new APIResponse(
|
|
46
|
+
{
|
|
47
|
+
...response.data,
|
|
48
|
+
data: data ? data : null,
|
|
49
|
+
},
|
|
50
|
+
response.graphQLErrors
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export async function listBlogCategory(params: ListBlogCategoryQueryParams) {
|
|
55
|
+
const _listBlogCategory = (
|
|
56
|
+
await import("../../__api/queries/listBlogCategory")
|
|
57
|
+
).default;
|
|
58
|
+
const response = await _listBlogCategory(params);
|
|
59
|
+
const data: IkasBlogCategory[] = response.data?.data as any;
|
|
60
|
+
|
|
61
|
+
data?.forEach(initIkasBlogCategory);
|
|
62
|
+
|
|
63
|
+
return new APIResponse(
|
|
64
|
+
{
|
|
65
|
+
...response.data,
|
|
66
|
+
data: data ? data : null,
|
|
67
|
+
},
|
|
68
|
+
response.graphQLErrors
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { IkasStorefrontConfig } from "@ikas/storefront-config";
|
|
3
|
+
import { IkasBrand, initIkasBrand } from "@ikas/storefront-models";
|
|
4
|
+
|
|
5
|
+
import { QueryParams as ListBrandQueryParams } from "../../__api/queries/listProductBrand";
|
|
6
|
+
|
|
7
|
+
export type { ListBrandQueryParams };
|
|
8
|
+
|
|
9
|
+
export async function listProductBrand(params: ListBrandQueryParams) {
|
|
10
|
+
const _listProductBrand = (
|
|
11
|
+
await import("../../__api/queries/listProductBrand")
|
|
12
|
+
).default;
|
|
13
|
+
const response = await _listProductBrand(params);
|
|
14
|
+
const data: IkasBrand[] | undefined = response.data?.data as any;
|
|
15
|
+
|
|
16
|
+
data?.forEach((b) =>
|
|
17
|
+
initIkasBrand(b, IkasStorefrontConfig.getCurrentLocale())
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
return new APIResponse(
|
|
21
|
+
{
|
|
22
|
+
...response.data,
|
|
23
|
+
data,
|
|
24
|
+
},
|
|
25
|
+
response.graphQLErrors
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
|
|
3
|
+
import { QueryParams as GetCartByIdQueryParams } from "../../__api/queries/getCartById";
|
|
4
|
+
import { QueryParams as SaveCartQueryParams } from "../../__api/mutations/saveCart";
|
|
5
|
+
import { QueryParams as SaveCartCouponCodeQueryParams } from "../../__api/mutations/saveCartCouponCode";
|
|
6
|
+
import { QueryParams as AddItemToCartQueryParams } from "../../__api/mutations/addItemToCart";
|
|
7
|
+
import { QueryParams as UpdateCartCampaignOfferQueryParams } from "../../__api/mutations/updateCartCampaignOffer";
|
|
8
|
+
|
|
9
|
+
import { CartV2 } from "../../__api/types";
|
|
10
|
+
import { IkasCart } from "@ikas/storefront-models";
|
|
11
|
+
|
|
12
|
+
export type {
|
|
13
|
+
GetCartByIdQueryParams,
|
|
14
|
+
SaveCartQueryParams,
|
|
15
|
+
SaveCartCouponCodeQueryParams,
|
|
16
|
+
AddItemToCartQueryParams,
|
|
17
|
+
UpdateCartCampaignOfferQueryParams,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
function initCartData(data: CartV2) {
|
|
21
|
+
const cart: IkasCart = {
|
|
22
|
+
...data,
|
|
23
|
+
cancelReason: null,
|
|
24
|
+
} as any;
|
|
25
|
+
|
|
26
|
+
return cart;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export async function getCartById(params: GetCartByIdQueryParams) {
|
|
30
|
+
const _getCartById = (await import("../../__api/queries/getCartById"))
|
|
31
|
+
.default;
|
|
32
|
+
const response = await _getCartById(params, await getCartResponseFields());
|
|
33
|
+
const cart: IkasCart | null = response.data
|
|
34
|
+
? initCartData(response.data)
|
|
35
|
+
: null;
|
|
36
|
+
|
|
37
|
+
return new APIResponse(cart ? cart : null, response.graphQLErrors);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export async function saveCart(params: SaveCartQueryParams) {
|
|
41
|
+
const _saveCart = (await import("../../__api/mutations/saveCart")).default;
|
|
42
|
+
const response = await _saveCart(params, await getCartResponseFields());
|
|
43
|
+
const cart: IkasCart | null = response.data
|
|
44
|
+
? initCartData(response.data)
|
|
45
|
+
: null;
|
|
46
|
+
|
|
47
|
+
return new APIResponse(cart ? cart : null, response.graphQLErrors);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export async function saveCartCouponCode(
|
|
51
|
+
params: SaveCartCouponCodeQueryParams
|
|
52
|
+
) {
|
|
53
|
+
const _saveCartCouponCode = (
|
|
54
|
+
await import("../../__api/mutations/saveCartCouponCode")
|
|
55
|
+
).default;
|
|
56
|
+
const response = await _saveCartCouponCode(
|
|
57
|
+
params,
|
|
58
|
+
await getCartResponseFields()
|
|
59
|
+
);
|
|
60
|
+
const cart: IkasCart | null = response.data
|
|
61
|
+
? initCartData(response.data)
|
|
62
|
+
: null;
|
|
63
|
+
|
|
64
|
+
return new APIResponse(cart ? cart : null, response.graphQLErrors);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export async function addItemToCart(params: AddItemToCartQueryParams) {
|
|
68
|
+
const _addItemToCart = (await import("../../__api/mutations/addItemToCart"))
|
|
69
|
+
.default;
|
|
70
|
+
const response = await _addItemToCart(params, await getCartResponseFields());
|
|
71
|
+
const cart: IkasCart | null = response.data
|
|
72
|
+
? initCartData(response.data)
|
|
73
|
+
: null;
|
|
74
|
+
|
|
75
|
+
return new APIResponse(cart ? cart : null, response.graphQLErrors);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export async function updateCartCampaignOffer(
|
|
79
|
+
params: UpdateCartCampaignOfferQueryParams
|
|
80
|
+
) {
|
|
81
|
+
const _updateCartCampaignOffer = (
|
|
82
|
+
await import("../../__api/mutations/updateCartCampaignOffer")
|
|
83
|
+
).default;
|
|
84
|
+
const response = await _updateCartCampaignOffer(params);
|
|
85
|
+
const cart: IkasCart | null = response.data
|
|
86
|
+
? initCartData(response.data)
|
|
87
|
+
: null;
|
|
88
|
+
|
|
89
|
+
return new APIResponse(cart ? cart : null, response.graphQLErrors);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async function getCartResponseFields() {
|
|
93
|
+
const GetCartByIdResponseField = (
|
|
94
|
+
await import("../../__api/queries/getCartById")
|
|
95
|
+
).ResponseField;
|
|
96
|
+
|
|
97
|
+
type CartFieldKey = keyof typeof GetCartByIdResponseField;
|
|
98
|
+
|
|
99
|
+
const EXCLUDED_CART_FIELDS: CartFieldKey[] = [
|
|
100
|
+
"MERCHANT_ID",
|
|
101
|
+
"ORDER_LINE_ITEMS__VARIANT__TAG_IDS",
|
|
102
|
+
...(Object.keys(GetCartByIdResponseField).filter((key) =>
|
|
103
|
+
key.startsWith("CURRENCY_RATES")
|
|
104
|
+
) as CartFieldKey[]),
|
|
105
|
+
...(Object.keys(GetCartByIdResponseField).filter((key) =>
|
|
106
|
+
key.startsWith("ABANDONED_CART_FLOWS")
|
|
107
|
+
) as CartFieldKey[]),
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
return Object.entries(GetCartByIdResponseField)
|
|
111
|
+
.filter(([key]) => !EXCLUDED_CART_FIELDS.includes(key as CartFieldKey))
|
|
112
|
+
.map((entry) => entry[1]);
|
|
113
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
import { IkasStorefrontConfig } from "@ikas/storefront-config";
|
|
3
|
+
import { IkasCategory, initIkasCategory } from "@ikas/storefront-models";
|
|
4
|
+
import { QueryParams as ListCategoryQueryParams } from "../../__api/queries/listCategory";
|
|
5
|
+
|
|
6
|
+
export type { ListCategoryQueryParams };
|
|
7
|
+
|
|
8
|
+
export async function listCategory(params: ListCategoryQueryParams) {
|
|
9
|
+
const _listCategory = (await import("../../__api/queries/listCategory"))
|
|
10
|
+
.default;
|
|
11
|
+
const response = await _listCategory(params);
|
|
12
|
+
const data: IkasCategory[] | undefined = response.data?.data as any[];
|
|
13
|
+
|
|
14
|
+
data.forEach((c) =>
|
|
15
|
+
initIkasCategory(c, IkasStorefrontConfig.getCurrentLocale())
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
return new APIResponse(
|
|
19
|
+
{
|
|
20
|
+
...response.data,
|
|
21
|
+
data,
|
|
22
|
+
},
|
|
23
|
+
response.graphQLErrors
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { APIResponse } from "@ikas/fe-api-client";
|
|
2
|
+
|
|
3
|
+
import { QueryParams as CreateSaleTransactionQueryParams } from "../../__api/mutations/createSaleTransactionWithCart";
|
|
4
|
+
import { QueryParams as ListPaymentGatewayQueryParams } from "../../__api/queries/listPaymentGateway";
|
|
5
|
+
import { QueryParams as RetrieveInstallmentInfoQueryParams } from "../../__api/mutations/retrieveInstallmentInfo";
|
|
6
|
+
import { QueryParams as CheckStocksQueryParams } from "../../__api/queries/checkStocks";
|
|
7
|
+
import { QueryParams as ListCheckoutSettingsQueryParams } from "../../__api/queries/listCheckoutSettings";
|
|
8
|
+
import { QueryParams as GetAvailableShippingCountriesQueryParams } from "../../__api/queries/getAvailableShippingCountries";
|
|
9
|
+
import { QueryParams as ListStockLocationQueryParams } from "../../__api/queries/listStockLocation";
|
|
10
|
+
import { QueryParams as GetAvailableStockLocationQueryParams } from "../../__api/queries/getAvailableStockLocations";
|
|
11
|
+
import { QueryParams as CreateStripePaymentIntentParams } from "../../__api/mutations/createStripePaymentIntent";
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
IkasAvailableStockLocation,
|
|
15
|
+
IkasCheckoutSettings,
|
|
16
|
+
IkasPaymentGateway,
|
|
17
|
+
IkasStockLocation,
|
|
18
|
+
} from "@ikas/storefront-models";
|
|
19
|
+
|
|
20
|
+
export type {
|
|
21
|
+
CreateSaleTransactionQueryParams,
|
|
22
|
+
ListPaymentGatewayQueryParams,
|
|
23
|
+
RetrieveInstallmentInfoQueryParams,
|
|
24
|
+
CheckStocksQueryParams,
|
|
25
|
+
ListCheckoutSettingsQueryParams,
|
|
26
|
+
GetAvailableShippingCountriesQueryParams,
|
|
27
|
+
ListStockLocationQueryParams,
|
|
28
|
+
GetAvailableStockLocationQueryParams,
|
|
29
|
+
CreateStripePaymentIntentParams,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export async function createSaleTransactionWithCart(
|
|
33
|
+
params: CreateSaleTransactionQueryParams
|
|
34
|
+
) {
|
|
35
|
+
const _createSaleTransactionWithCart = (
|
|
36
|
+
await import("../../__api/mutations/createSaleTransactionWithCart")
|
|
37
|
+
).default;
|
|
38
|
+
return await _createSaleTransactionWithCart(params);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export async function listPaymentGateway(
|
|
42
|
+
params: ListPaymentGatewayQueryParams
|
|
43
|
+
) {
|
|
44
|
+
const _listPaymentGateway = (
|
|
45
|
+
await import("../../__api/queries/listPaymentGateway")
|
|
46
|
+
).default;
|
|
47
|
+
const response = await _listPaymentGateway(params);
|
|
48
|
+
const data: IkasPaymentGateway[] = (response.data as any) || [];
|
|
49
|
+
|
|
50
|
+
return new APIResponse(data, response.graphQLErrors);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export async function retrieveInstallmentInfo(
|
|
54
|
+
params: RetrieveInstallmentInfoQueryParams
|
|
55
|
+
) {
|
|
56
|
+
const _retrieveInstallmentInfo = (
|
|
57
|
+
await import("../../__api/mutations/retrieveInstallmentInfo")
|
|
58
|
+
).default;
|
|
59
|
+
return await _retrieveInstallmentInfo(params);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export async function checkStocks(params: CheckStocksQueryParams) {
|
|
63
|
+
const _checkStocks = (await import("../../__api/queries/checkStocks"))
|
|
64
|
+
.default;
|
|
65
|
+
return await _checkStocks(params);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export async function listCheckoutSettings(
|
|
69
|
+
params: ListCheckoutSettingsQueryParams
|
|
70
|
+
) {
|
|
71
|
+
const _listCheckoutSettings = (
|
|
72
|
+
await import("../../__api/queries/listCheckoutSettings")
|
|
73
|
+
).default;
|
|
74
|
+
const response = await _listCheckoutSettings(params);
|
|
75
|
+
const data: IkasCheckoutSettings[] = (response.data as any) || [];
|
|
76
|
+
|
|
77
|
+
return new APIResponse(data, response.graphQLErrors);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export async function getAvailableShippingCountries(
|
|
81
|
+
params: GetAvailableShippingCountriesQueryParams
|
|
82
|
+
) {
|
|
83
|
+
const _getAvailableShippingCountries = (
|
|
84
|
+
await import("../../__api/queries/getAvailableShippingCountries")
|
|
85
|
+
).default;
|
|
86
|
+
return await _getAvailableShippingCountries(params);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export async function listStockLocations(params: ListStockLocationQueryParams) {
|
|
90
|
+
const _listStockLocation = (
|
|
91
|
+
await import("../../__api/queries/listStockLocation")
|
|
92
|
+
).default;
|
|
93
|
+
const response = await _listStockLocation(params);
|
|
94
|
+
return new APIResponse(
|
|
95
|
+
response.data as IkasStockLocation[] | undefined,
|
|
96
|
+
response.graphQLErrors
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export async function getAvailableStockLocations(
|
|
101
|
+
params: GetAvailableStockLocationQueryParams
|
|
102
|
+
) {
|
|
103
|
+
const _getAvailableStockLocations = (
|
|
104
|
+
await import("../../__api/queries/getAvailableStockLocations")
|
|
105
|
+
).default;
|
|
106
|
+
const response = await _getAvailableStockLocations(params);
|
|
107
|
+
return new APIResponse(
|
|
108
|
+
response.data as IkasAvailableStockLocation[] | undefined,
|
|
109
|
+
response.graphQLErrors
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export async function createStripePaymentIntent(
|
|
114
|
+
params: CreateStripePaymentIntentParams
|
|
115
|
+
) {
|
|
116
|
+
const _createStripePaymentIntent = (
|
|
117
|
+
await import("../../__api/mutations/createStripePaymentIntent")
|
|
118
|
+
).default;
|
|
119
|
+
const response = await _createStripePaymentIntent(params);
|
|
120
|
+
return new APIResponse(response.data, response.graphQLErrors);
|
|
121
|
+
}
|