@ikas/storefront-api 4.0.0-alpha.49 → 4.0.0-alpha.50
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 +8 -8
- 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 +63 -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 +21 -0
- package/src/__api/models/CartV2.ts +166 -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 +17 -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 +17 -0
- package/src/__api/models/City.ts +29 -0
- package/src/__api/models/Country.ts +45 -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 +27 -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 +17 -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/OrderLineBaseUnit.ts +19 -0
- package/src/__api/models/OrderLineDiscount.ts +28 -0
- package/src/__api/models/OrderLineItem.ts +71 -0
- package/src/__api/models/OrderLineOption.ts +25 -0
- package/src/__api/models/OrderLineOptionValue.ts +18 -0
- package/src/__api/models/OrderLineVariant.ts +64 -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 +34 -0
- package/src/__api/models/OrderLineVariantUnit.ts +16 -0
- package/src/__api/models/OrderLineVariantUnitType.ts +16 -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/OrderSessionInfo.ts +49 -0
- package/src/__api/models/OrderSessionInfoTrafficSource.ts +18 -0
- package/src/__api/models/OrderSessionUTM.ts +21 -0
- package/src/__api/models/OrderSessionUserAgent.ts +18 -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 +74 -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 +27 -0
- package/src/__api/models/ProductBackInStockRemindInput.ts +19 -0
- package/src/__api/models/ProductBaseUnitModel.ts +21 -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 +19 -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 +31 -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/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 +25 -0
- package/src/__api/models/RaffleParticipants.ts +48 -0
- package/src/__api/models/RaffleParticipantsInput.ts +29 -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 +77 -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 +36 -0
- package/src/__api/models/SearchProductProductBaseUnit.ts +23 -0
- package/src/__api/models/SearchProductProductUnit.ts +16 -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 +61 -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 +19 -0
- package/src/__api/models/StorefrontLocalization.ts +21 -0
- package/src/__api/models/StorefrontOrder.ts +118 -0
- package/src/__api/models/StorefrontRaffle.ts +38 -0
- package/src/__api/models/StorefrontRouting.ts +33 -0
- package/src/__api/models/StorefrontTheme.ts +25 -0
- package/src/__api/models/StorefrontTransaction.ts +55 -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 +61 -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/VariantUnitModel.ts +17 -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 +27 -0
- package/src/__api/mutations/activateCustomer.ts +38 -0
- package/src/__api/mutations/addCouponCodeToCheckout.ts +272 -0
- package/src/__api/mutations/addItemToCart.ts +317 -0
- package/src/__api/mutations/createCustomerEmailSubscription.ts +111 -0
- package/src/__api/mutations/createCustomerReview.ts +66 -0
- package/src/__api/mutations/createOrderRefundRequest.ts +252 -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 +44 -0
- package/src/__api/mutations/customerLogin.ts +116 -0
- package/src/__api/mutations/customerRecoverPassword.ts +47 -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 +134 -0
- package/src/__api/mutations/retrieveInstallmentInfo.ts +65 -0
- package/src/__api/mutations/saveCart.ts +317 -0
- package/src/__api/mutations/saveCartCouponCode.ts +320 -0
- package/src/__api/mutations/saveCheckout.ts +269 -0
- package/src/__api/mutations/saveFavoriteProduct.ts +41 -0
- package/src/__api/mutations/saveItemToCart.ts +149 -0
- package/src/__api/mutations/saveLastViewedProducts.ts +62 -0
- package/src/__api/mutations/saveMyCustomer.ts +108 -0
- package/src/__api/mutations/saveProductBackInStockRemind.ts +64 -0
- package/src/__api/mutations/saveRaffleParticipant.ts +91 -0
- package/src/__api/mutations/sendContactFormToMerchant.ts +56 -0
- package/src/__api/mutations/updateCartCampaignOffer.ts +317 -0
- package/src/__api/queries/checkCustomerEmail.ts +57 -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 +155 -0
- package/src/__api/queries/getCartById.ts +320 -0
- package/src/__api/queries/getCheckoutByCartId.ts +269 -0
- package/src/__api/queries/getCheckoutById.ts +269 -0
- package/src/__api/queries/getCurrencyRate.ts +58 -0
- package/src/__api/queries/getCustomerOrders.ts +249 -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 +249 -0
- package/src/__api/queries/getOrderByEmail.ts +252 -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/getRelatedProducts.ts +60 -0
- package/src/__api/queries/getStorefront.ts +106 -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 +76 -0
- package/src/__api/queries/listCity.ts +74 -0
- package/src/__api/queries/listCountry.ts +86 -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 +90 -0
- package/src/__api/queries/listPaymentGateway.ts +85 -0
- package/src/__api/queries/listProduct.ts +163 -0
- package/src/__api/queries/listProductAttribute.ts +81 -0
- package/src/__api/queries/listProductBackInStockRemind.ts +80 -0
- package/src/__api/queries/listProductBrand.ts +110 -0
- package/src/__api/queries/listProductOptionSet.ts +107 -0
- package/src/__api/queries/listProductStockLocation.ts +62 -0
- package/src/__api/queries/listRaffleMetadata.ts +83 -0
- package/src/__api/queries/listRaffleParticipants.ts +81 -0
- package/src/__api/queries/listState.ts +67 -0
- package/src/__api/queries/listStockLocation.ts +76 -0
- package/src/__api/queries/listStorefrontRaffle.ts +108 -0
- package/src/__api/queries/listTown.ts +67 -0
- package/src/__api/queries/listVariantType.ts +74 -0
- package/src/__api/queries/searchProducts.ts +180 -0
- package/src/__api/types/index.ts +3195 -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 +389 -0
- package/src/api/file-upload/index.ts +44 -0
- package/src/api/html-meta-data/index.ts +25 -0
- package/src/api/location/index.ts +73 -0
- package/src/api/masterpass/index.ts +12 -0
- package/src/api/merchant/index.ts +24 -0
- package/src/api/product/index.ts +359 -0
- package/src/api/raffle/index.ts +78 -0
- package/src/api/storefront/index.ts +30 -0
- package/src/index.ts +68 -0
- package/build/__api/models/AbandonedCartFlow.d.ts +0 -19
- package/build/__api/models/AbandonedCartFlowCustomerFilter.d.ts +0 -10
- package/build/__api/models/AddItemToCartInput.d.ts +0 -16
- package/build/__api/models/AdditionalPrice.d.ts +0 -13
- package/build/__api/models/ApplicableProductFilterValue.d.ts +0 -13
- package/build/__api/models/AppliedProduct.d.ts +0 -10
- package/build/__api/models/AppliedProductInput.d.ts +0 -10
- package/build/__api/models/AvailableShippingMethod.d.ts +0 -14
- package/build/__api/models/Blog.d.ts +0 -28
- package/build/__api/models/BlogCategory.d.ts +0 -13
- package/build/__api/models/BlogCategoryPaginationResponse.d.ts +0 -14
- package/build/__api/models/BlogContent.d.ts +0 -12
- package/build/__api/models/BlogMetadata.d.ts +0 -17
- package/build/__api/models/BlogMetadataPaginationResponse.d.ts +0 -14
- package/build/__api/models/BlogMetadataTargetTypeEnumFilter.d.ts +0 -13
- package/build/__api/models/BlogPaginationResponse.d.ts +0 -14
- package/build/__api/models/BlogTag.d.ts +0 -10
- package/build/__api/models/BlogWriter.d.ts +0 -10
- package/build/__api/models/BooleanFilterInput.d.ts +0 -9
- package/build/__api/models/BuyX.d.ts +0 -12
- package/build/__api/models/BuyXThenGetY.d.ts +0 -13
- package/build/__api/models/Campaign.d.ts +0 -30
- package/build/__api/models/CampaignDateRangeField.d.ts +0 -10
- package/build/__api/models/CampaignFilter.d.ts +0 -11
- package/build/__api/models/CampaignMinMaxRangeField.d.ts +0 -10
- package/build/__api/models/CampaignOffer.d.ts +0 -22
- package/build/__api/models/CampaignOfferProduct.d.ts +0 -22
- package/build/__api/models/CampaignOfferProductTranslation.d.ts +0 -11
- package/build/__api/models/CampaignOfferTriggerSettings.d.ts +0 -11
- package/build/__api/models/Cart.d.ts +0 -32
- package/build/__api/models/CartCampaignOffer.d.ts +0 -17
- package/build/__api/models/CartLineItemInput.d.ts +0 -12
- package/build/__api/models/CartLineOptionInput.d.ts +0 -11
- package/build/__api/models/CartLineVariantInput.d.ts +0 -10
- package/build/__api/models/CartStorefrontRouting.d.ts +0 -15
- package/build/__api/models/CartStorefrontRoutingDynamicCurrencySettings.d.ts +0 -11
- package/build/__api/models/CartV2.d.ts +0 -71
- package/build/__api/models/CartV2CampaignOffer.d.ts +0 -19
- package/build/__api/models/Category.d.ts +0 -27
- package/build/__api/models/CategoryCondition.d.ts +0 -11
- package/build/__api/models/CategoryFilterInput.d.ts +0 -11
- package/build/__api/models/CategoryPaginationResponse.d.ts +0 -14
- package/build/__api/models/CategoryPathFilterInput.d.ts +0 -9
- package/build/__api/models/CategoryPathItem.d.ts +0 -17
- package/build/__api/models/CategoryTranslation.d.ts +0 -11
- package/build/__api/models/CheckStocksLineInput.d.ts +0 -11
- package/build/__api/models/CheckStocksLineInput.js +0 -1
- package/build/__api/models/CheckStocksLineResponse.d.ts +0 -11
- package/build/__api/models/CheckStocksResponse.d.ts +0 -10
- package/build/__api/models/Checkout.d.ts +0 -44
- package/build/__api/models/CheckoutCustomer.d.ts +0 -19
- package/build/__api/models/CheckoutCustomerInput.d.ts +0 -13
- package/build/__api/models/CheckoutCustomerInput.js +0 -1
- package/build/__api/models/CheckoutOption.d.ts +0 -10
- package/build/__api/models/CheckoutSettings.d.ts +0 -24
- package/build/__api/models/CheckoutSettingsPrice.d.ts +0 -11
- package/build/__api/models/City.d.ts +0 -16
- package/build/__api/models/Country.d.ts +0 -24
- package/build/__api/models/CreateCustomerEmailSubscriptionInput.d.ts +0 -12
- package/build/__api/models/CreateCustomerReviewInput.d.ts +0 -20
- package/build/__api/models/CreateSaleTransactionMasterPassPaymentMethodDetail.d.ts +0 -10
- package/build/__api/models/CreateSaleTransactionWithCartInput.d.ts +0 -14
- package/build/__api/models/CreateSaleTransactionWithCheckoutInput.d.ts +0 -14
- package/build/__api/models/CreateStripePaymentIntentResponse.d.ts +0 -12
- package/build/__api/models/CurrencyRate.d.ts +0 -15
- package/build/__api/models/CurrencyRateData.d.ts +0 -10
- package/build/__api/models/Customer.d.ts +0 -34
- package/build/__api/models/CustomerAddress.d.ts +0 -31
- package/build/__api/models/CustomerAddressCity.d.ts +0 -11
- package/build/__api/models/CustomerAddressCityInput.d.ts +0 -11
- package/build/__api/models/CustomerAddressCityInput.js +0 -1
- package/build/__api/models/CustomerAddressCountry.d.ts +0 -13
- package/build/__api/models/CustomerAddressCountryInput.d.ts +0 -13
- package/build/__api/models/CustomerAddressCountryInput.js +0 -1
- package/build/__api/models/CustomerAddressDistrict.d.ts +0 -11
- package/build/__api/models/CustomerAddressDistrictInput.d.ts +0 -11
- package/build/__api/models/CustomerAddressDistrictInput.js +0 -1
- package/build/__api/models/CustomerAddressState.d.ts +0 -11
- package/build/__api/models/CustomerAddressStateInput.d.ts +0 -11
- package/build/__api/models/CustomerAddressStateInput.js +0 -1
- package/build/__api/models/CustomerAttribute.d.ts +0 -19
- package/build/__api/models/CustomerAttributeOption.d.ts +0 -10
- package/build/__api/models/CustomerAttributeOptionTranslation.d.ts +0 -10
- package/build/__api/models/CustomerAttributeSalesChannel.d.ts +0 -13
- package/build/__api/models/CustomerAttributeTranslation.d.ts +0 -13
- package/build/__api/models/CustomerAttributeValue.d.ts +0 -11
- package/build/__api/models/CustomerAttributeValueInput.d.ts +0 -11
- package/build/__api/models/CustomerAttributeValueInput.js +0 -1
- package/build/__api/models/CustomerCheckResponse.d.ts +0 -9
- package/build/__api/models/CustomerFavoriteProduct.d.ts +0 -11
- package/build/__api/models/CustomerLoginResponse.d.ts +0 -12
- package/build/__api/models/CustomerRefreshTokenResponse.d.ts +0 -10
- package/build/__api/models/CustomerReview.d.ts +0 -24
- package/build/__api/models/CustomerReviewSFPaginationResponse.d.ts +0 -14
- package/build/__api/models/CustomerReviewSummary.d.ts +0 -14
- package/build/__api/models/CustomerReviewSummaryPaginationResponse.d.ts +0 -14
- package/build/__api/models/CustomerReviewSummaryStar.d.ts +0 -10
- package/build/__api/models/DateFilterInput.d.ts +0 -16
- package/build/__api/models/District.d.ts +0 -16
- package/build/__api/models/FixedDiscount.d.ts +0 -14
- package/build/__api/models/GetAvailableStockLocation.d.ts +0 -14
- package/build/__api/models/GetAvailableStockLocationAddress.d.ts +0 -16
- package/build/__api/models/GetAvailableStockLocationAddressCity.d.ts +0 -11
- package/build/__api/models/GetAvailableStockLocationsResponse.d.ts +0 -10
- package/build/__api/models/GetOrderLineFile.d.ts +0 -9
- package/build/__api/models/GetProductCampaignsInput.d.ts +0 -11
- package/build/__api/models/GetProductCampaignsResponse.d.ts +0 -11
- package/build/__api/models/GetProductOptionFileUrl.d.ts +0 -11
- package/build/__api/models/GetVariantStockLocation.d.ts +0 -12
- package/build/__api/models/GetVariantStockLocationListResponse.d.ts +0 -10
- package/build/__api/models/GetY.d.ts +0 -13
- package/build/__api/models/HTMLMetaData.d.ts +0 -22
- package/build/__api/models/HTMLMetaDataOverride.d.ts +0 -13
- package/build/__api/models/HTMLMetaDataTargetTypeEnumFilter.d.ts +0 -13
- package/build/__api/models/HTMLMetaDataTranslation.d.ts +0 -11
- package/build/__api/models/Invoice.d.ts +0 -16
- package/build/__api/models/ListCustomerReviewInput.d.ts +0 -9
- package/build/__api/models/LocationTranslations.d.ts +0 -11
- package/build/__api/models/MasterPassTokenResponse.d.ts +0 -11
- package/build/__api/models/MerchantAddress.d.ts +0 -27
- package/build/__api/models/MerchantAddressCity.d.ts +0 -11
- package/build/__api/models/MerchantAddressCountry.d.ts +0 -11
- package/build/__api/models/MerchantAddressDistrict.d.ts +0 -11
- package/build/__api/models/MerchantAddressState.d.ts +0 -11
- package/build/__api/models/MerchantSettings.d.ts +0 -17
- package/build/__api/models/MerchantSettingsCurrencyFormat.d.ts +0 -15
- package/build/__api/models/OrderAddress.d.ts +0 -28
- package/build/__api/models/OrderAddressCity.d.ts +0 -11
- package/build/__api/models/OrderAddressCityInput.d.ts +0 -11
- package/build/__api/models/OrderAddressCityInput.js +0 -1
- package/build/__api/models/OrderAddressCountry.d.ts +0 -13
- package/build/__api/models/OrderAddressCountryInput.d.ts +0 -13
- package/build/__api/models/OrderAddressCountryInput.js +0 -1
- package/build/__api/models/OrderAddressDistrict.d.ts +0 -11
- package/build/__api/models/OrderAddressDistrictInput.d.ts +0 -11
- package/build/__api/models/OrderAddressDistrictInput.js +0 -1
- package/build/__api/models/OrderAddressInput.d.ts +0 -28
- package/build/__api/models/OrderAddressInput.js +0 -1
- package/build/__api/models/OrderAddressState.d.ts +0 -11
- package/build/__api/models/OrderAddressStateInput.d.ts +0 -11
- package/build/__api/models/OrderAddressStateInput.js +0 -1
- package/build/__api/models/OrderAdjustment.d.ts +0 -19
- package/build/__api/models/OrderAdjustmentAppliedOrderLine.d.ts +0 -12
- package/build/__api/models/OrderAdjustmentInput.d.ts +0 -16
- package/build/__api/models/OrderAdjustmentInput.js +0 -1
- package/build/__api/models/OrderCurrencyRate.d.ts +0 -11
- package/build/__api/models/OrderCustomer.d.ts +0 -16
- package/build/__api/models/OrderGiftPackageLine.d.ts +0 -10
- package/build/__api/models/OrderLineBaseUnit.d.ts +0 -13
- package/build/__api/models/OrderLineDiscount.d.ts +0 -15
- package/build/__api/models/OrderLineItem.d.ts +0 -29
- package/build/__api/models/OrderLineOption.d.ts +0 -15
- package/build/__api/models/OrderLineOptionValue.d.ts +0 -11
- package/build/__api/models/OrderLineVariant.d.ts +0 -31
- package/build/__api/models/OrderLineVariantBrand.d.ts +0 -10
- package/build/__api/models/OrderLineVariantCategory.d.ts +0 -12
- package/build/__api/models/OrderLineVariantCategoryPath.d.ts +0 -10
- package/build/__api/models/OrderLineVariantPrice.d.ts +0 -15
- package/build/__api/models/OrderLineVariantUnit.d.ts +0 -11
- package/build/__api/models/OrderLineVariantUnitType.d.ts +0 -10
- package/build/__api/models/OrderLineVariantVariantValues.d.ts +0 -13
- package/build/__api/models/OrderPackage.d.ts +0 -18
- package/build/__api/models/OrderPaymentMethod.d.ts +0 -14
- package/build/__api/models/OrderRefundOrderLineInput.d.ts +0 -10
- package/build/__api/models/OrderRefundRequestInput.d.ts +0 -12
- package/build/__api/models/OrderRefundSettings.d.ts +0 -14
- package/build/__api/models/OrderSessionInfo.d.ts +0 -25
- package/build/__api/models/OrderSessionInfoTrafficSource.d.ts +0 -11
- package/build/__api/models/OrderSessionUTM.d.ts +0 -13
- package/build/__api/models/OrderSessionUserAgent.d.ts +0 -12
- package/build/__api/models/OrderShippingLine.d.ts +0 -17
- package/build/__api/models/OrderStorefrontRouting.d.ts +0 -15
- package/build/__api/models/OrderStorefrontRoutingDynamicCurrencySettings.d.ts +0 -10
- package/build/__api/models/OrderTaxLine.d.ts +0 -10
- package/build/__api/models/PaginationInput.d.ts +0 -10
- package/build/__api/models/PaymentGateway.d.ts +0 -29
- package/build/__api/models/PaymentGatewayPaymentMethod.d.ts +0 -10
- package/build/__api/models/PaymentGatewaySettings.d.ts +0 -13
- package/build/__api/models/PaymentGatewayTranslation.d.ts +0 -11
- package/build/__api/models/PaymentMethodDetailInput.d.ts +0 -15
- package/build/__api/models/Product.d.ts +0 -35
- package/build/__api/models/ProductAttribute.d.ts +0 -19
- package/build/__api/models/ProductAttributeOption.d.ts +0 -10
- package/build/__api/models/ProductAttributeOptionTranslation.d.ts +0 -10
- package/build/__api/models/ProductAttributeTableCellData.d.ts +0 -10
- package/build/__api/models/ProductAttributeTableTemplate.d.ts +0 -11
- package/build/__api/models/ProductAttributeTranslation.d.ts +0 -13
- package/build/__api/models/ProductAttributeValue.d.ts +0 -12
- package/build/__api/models/ProductBackInStockRemind.d.ts +0 -15
- package/build/__api/models/ProductBackInStockRemindInput.d.ts +0 -11
- package/build/__api/models/ProductBaseUnitModel.d.ts +0 -12
- package/build/__api/models/ProductBrand.d.ts +0 -19
- package/build/__api/models/ProductBrandPaginationResponse.d.ts +0 -14
- package/build/__api/models/ProductBrandTranslation.d.ts +0 -11
- package/build/__api/models/ProductFacetCount.d.ts +0 -11
- package/build/__api/models/ProductFacetCountValue.d.ts +0 -10
- package/build/__api/models/ProductFilterData.d.ts +0 -12
- package/build/__api/models/ProductFilterDataFilter.d.ts +0 -24
- package/build/__api/models/ProductFilterSettings.d.ts +0 -14
- package/build/__api/models/ProductImage.d.ts +0 -12
- package/build/__api/models/ProductItem.d.ts +0 -11
- package/build/__api/models/ProductItemInput.d.ts +0 -11
- package/build/__api/models/ProductLastViewed.d.ts +0 -12
- package/build/__api/models/ProductLastViewedInput.d.ts +0 -12
- package/build/__api/models/ProductOption.d.ts +0 -28
- package/build/__api/models/ProductOptionDateSettings.d.ts +0 -12
- package/build/__api/models/ProductOptionFileSettings.d.ts +0 -11
- package/build/__api/models/ProductOptionSelectSettings.d.ts +0 -14
- package/build/__api/models/ProductOptionSelectValue.d.ts +0 -16
- package/build/__api/models/ProductOptionSelectValueOtherPrice.d.ts +0 -11
- package/build/__api/models/ProductOptionSelectValueTranslations.d.ts +0 -10
- package/build/__api/models/ProductOptionSet.d.ts +0 -14
- package/build/__api/models/ProductOptionSetTranslations.d.ts +0 -11
- package/build/__api/models/ProductOptionTextSettings.d.ts +0 -10
- package/build/__api/models/ProductOptionTranslations.d.ts +0 -13
- package/build/__api/models/ProductPaginationResponse.d.ts +0 -14
- package/build/__api/models/ProductPrice.d.ts +0 -15
- package/build/__api/models/ProductSearchResponse.d.ts +0 -17
- package/build/__api/models/ProductStockLocation.d.ts +0 -13
- package/build/__api/models/ProductTagTranslation.d.ts +0 -11
- package/build/__api/models/ProductTranslation.d.ts +0 -11
- package/build/__api/models/ProductVariantType.d.ts +0 -11
- package/build/__api/models/RaffleDateRangeField.d.ts +0 -10
- package/build/__api/models/RaffleMetadata.d.ts +0 -17
- package/build/__api/models/RaffleMetadataTargetTypeEnumFilter.d.ts +0 -13
- package/build/__api/models/RafflePaginationResponse.d.ts +0 -14
- package/build/__api/models/RaffleParticipants.d.ts +0 -25
- package/build/__api/models/RaffleParticipantsInput.d.ts +0 -16
- package/build/__api/models/RaffleVariantInformation.d.ts +0 -10
- package/build/__api/models/RetrieveInstallmentInfoInput.d.ts +0 -11
- package/build/__api/models/RetrieveInstallmentInfoResponse.d.ts +0 -17
- package/build/__api/models/SaveCartInput.d.ts +0 -23
- package/build/__api/models/SaveCartInput.js +0 -1
- package/build/__api/models/SaveCheckoutInput.d.ts +0 -26
- package/build/__api/models/SaveItemToCartInput.d.ts +0 -19
- package/build/__api/models/SaveMyCustomerAddressInput.d.ts +0 -29
- package/build/__api/models/SaveMyCustomerAddressInput.js +0 -1
- package/build/__api/models/SaveMyCustomerInput.d.ts +0 -17
- package/build/__api/models/SaveMyCustomerInput.js +0 -1
- package/build/__api/models/SearchCategory.d.ts +0 -15
- package/build/__api/models/SearchCategoryPath.d.ts +0 -13
- package/build/__api/models/SearchDynamicCurrencySettings.d.ts +0 -10
- package/build/__api/models/SearchHTMLMetaData.d.ts +0 -18
- package/build/__api/models/SearchHTMLMetaDataOverride.d.ts +0 -13
- package/build/__api/models/SearchInput.d.ts +0 -32
- package/build/__api/models/SearchInputFacetListInput.d.ts +0 -12
- package/build/__api/models/SearchInputFilterListInput.d.ts +0 -14
- package/build/__api/models/SearchInputOrderByInput.d.ts +0 -11
- package/build/__api/models/SearchProduct.d.ts +0 -36
- package/build/__api/models/SearchProductAttribute.d.ts +0 -15
- package/build/__api/models/SearchProductAttributeOption.d.ts +0 -10
- package/build/__api/models/SearchProductAttributeTableCellData.d.ts +0 -10
- package/build/__api/models/SearchProductAttributeTableTemplate.d.ts +0 -11
- package/build/__api/models/SearchProductAttributeValue.d.ts +0 -14
- package/build/__api/models/SearchProductBrand.d.ts +0 -13
- package/build/__api/models/SearchProductImage.d.ts +0 -12
- package/build/__api/models/SearchProductPrice.d.ts +0 -16
- package/build/__api/models/SearchProductProductBaseUnit.d.ts +0 -13
- package/build/__api/models/SearchProductProductUnit.d.ts +0 -10
- package/build/__api/models/SearchProductStockLocation.d.ts +0 -10
- package/build/__api/models/SearchProductTag.d.ts +0 -12
- package/build/__api/models/SearchProductVariantType.d.ts +0 -12
- package/build/__api/models/SearchVariant.d.ts +0 -27
- package/build/__api/models/SearchVariantType.d.ts +0 -15
- package/build/__api/models/SearchVariantValue.d.ts +0 -12
- package/build/__api/models/SearchVariationValueRelation.d.ts +0 -10
- package/build/__api/models/SocialLoginSettings.d.ts +0 -12
- package/build/__api/models/State.d.ts +0 -12
- package/build/__api/models/StockLocation.d.ts +0 -18
- package/build/__api/models/StockLocationAddress.d.ts +0 -19
- package/build/__api/models/StockLocationAddressCity.d.ts +0 -11
- package/build/__api/models/StockLocationAddressCountry.d.ts +0 -11
- package/build/__api/models/StockLocationAddressDistrict.d.ts +0 -11
- package/build/__api/models/StockLocationAddressState.d.ts +0 -11
- package/build/__api/models/Storefront.d.ts +0 -33
- package/build/__api/models/StorefrontDomain.d.ts +0 -13
- package/build/__api/models/StorefrontDynamicCurrencySettings.d.ts +0 -11
- package/build/__api/models/StorefrontLocalization.d.ts +0 -12
- package/build/__api/models/StorefrontOrder.d.ts +0 -51
- package/build/__api/models/StorefrontRaffle.d.ts +0 -20
- package/build/__api/models/StorefrontRouting.d.ts +0 -18
- package/build/__api/models/StorefrontTheme.d.ts +0 -15
- package/build/__api/models/StorefrontTransaction.d.ts +0 -28
- package/build/__api/models/StringFilterInput.d.ts +0 -13
- package/build/__api/models/Town.d.ts +0 -12
- package/build/__api/models/TrackingInfo.d.ts +0 -13
- package/build/__api/models/TransactionError.d.ts +0 -11
- package/build/__api/models/TransactionInstallmentPrice.d.ts +0 -13
- package/build/__api/models/TransactionPaymentMethodDetail.d.ts +0 -18
- package/build/__api/models/TransactionResponse.d.ts +0 -16
- package/build/__api/models/UpdateCartCampaignOfferInput.d.ts +0 -14
- package/build/__api/models/Variant.d.ts +0 -27
- package/build/__api/models/VariantStock.d.ts +0 -10
- package/build/__api/models/VariantType.d.ts +0 -16
- package/build/__api/models/VariantTypeTranslation.d.ts +0 -12
- package/build/__api/models/VariantUnitModel.d.ts +0 -11
- package/build/__api/models/VariantValue.d.ts +0 -12
- package/build/__api/models/VariantValueRelation.d.ts +0 -10
- package/build/__api/models/VariantValueTranslation.d.ts +0 -10
- package/build/__api/models/_base.d.ts +0 -18
- package/build/__api/models/_base.js +0 -1
- package/build/__api/mutations/activateCustomer.d.ts +0 -6
- package/build/__api/mutations/addCouponCodeToCheckout.d.ts +0 -231
- package/build/__api/mutations/addItemToCart.d.ts +0 -278
- package/build/__api/mutations/addItemToCart.js +0 -1
- package/build/__api/mutations/createCustomerEmailSubscription.d.ts +0 -69
- package/build/__api/mutations/createCustomerEmailSubscription.js +0 -1
- package/build/__api/mutations/createCustomerReview.d.ts +0 -27
- package/build/__api/mutations/createCustomerReview.js +0 -1
- package/build/__api/mutations/createOrderRefundRequest.d.ts +0 -210
- package/build/__api/mutations/createOrderRefundRequest.js +0 -1
- package/build/__api/mutations/createSaleTransactionWithCart.d.ts +0 -17
- package/build/__api/mutations/createSaleTransactionWithCart.js +0 -1
- package/build/__api/mutations/createSaleTransactionWithCheckout.d.ts +0 -17
- package/build/__api/mutations/createStripePaymentIntent.d.ts +0 -13
- package/build/__api/mutations/createStripePaymentIntent.js +0 -1
- package/build/__api/mutations/customerForgotPassword.d.ts +0 -8
- package/build/__api/mutations/customerForgotPassword.js +0 -1
- package/build/__api/mutations/customerLogin.d.ts +0 -73
- package/build/__api/mutations/customerLogin.js +0 -1
- package/build/__api/mutations/customerRecoverPassword.d.ts +0 -9
- package/build/__api/mutations/customerRecoverPassword.js +0 -1
- package/build/__api/mutations/customerRefreshToken.d.ts +0 -11
- package/build/__api/mutations/customerRefreshToken.js +0 -1
- package/build/__api/mutations/deleteRaffleParticipantsList.d.ts +0 -6
- package/build/__api/mutations/getOrderLineFile.d.ts +0 -7
- package/build/__api/mutations/getOrderLineFile.js +0 -1
- package/build/__api/mutations/registerCustomer.d.ts +0 -78
- package/build/__api/mutations/registerCustomer.js +0 -1
- package/build/__api/mutations/retrieveInstallmentInfo.d.ts +0 -20
- package/build/__api/mutations/retrieveInstallmentInfo.js +0 -1
- package/build/__api/mutations/saveCart.d.ts +0 -278
- package/build/__api/mutations/saveCart.js +0 -1
- package/build/__api/mutations/saveCartCouponCode.d.ts +0 -279
- package/build/__api/mutations/saveCartCouponCode.js +0 -1
- package/build/__api/mutations/saveCheckout.d.ts +0 -230
- package/build/__api/mutations/saveFavoriteProduct.d.ts +0 -7
- package/build/__api/mutations/saveFavoriteProduct.js +0 -1
- package/build/__api/mutations/saveItemToCart.d.ts +0 -110
- package/build/__api/mutations/saveLastViewedProducts.d.ts +0 -20
- package/build/__api/mutations/saveLastViewedProducts.js +0 -1
- package/build/__api/mutations/saveMyCustomer.d.ts +0 -69
- package/build/__api/mutations/saveMyCustomer.js +0 -1
- package/build/__api/mutations/saveProductBackInStockRemind.d.ts +0 -19
- package/build/__api/mutations/saveProductBackInStockRemind.js +0 -1
- package/build/__api/mutations/saveRaffleParticipant.d.ts +0 -49
- package/build/__api/mutations/saveRaffleParticipant.js +0 -1
- package/build/__api/mutations/sendContactFormToMerchant.d.ts +0 -12
- package/build/__api/mutations/sendContactFormToMerchant.js +0 -1
- package/build/__api/mutations/updateCartCampaignOffer.d.ts +0 -278
- package/build/__api/mutations/updateCartCampaignOffer.js +0 -1
- package/build/__api/queries/checkCustomerEmail.d.ts +0 -12
- package/build/__api/queries/checkCustomerEmail.js +0 -1
- package/build/__api/queries/checkStocks.d.ts +0 -13
- package/build/__api/queries/checkStocks.js +0 -1
- package/build/__api/queries/customerSocialLogin.d.ts +0 -71
- package/build/__api/queries/customerSocialLogin.js +0 -1
- package/build/__api/queries/getAvailableShippingCountries.d.ts +0 -6
- package/build/__api/queries/getAvailableShippingCountries.js +0 -1
- package/build/__api/queries/getAvailableStockLocations.d.ts +0 -28
- package/build/__api/queries/getAvailableStockLocations.js +0 -1
- package/build/__api/queries/getCart.d.ts +0 -112
- package/build/__api/queries/getCartById.d.ts +0 -279
- package/build/__api/queries/getCartById.js +0 -1
- package/build/__api/queries/getCheckoutByCartId.d.ts +0 -230
- package/build/__api/queries/getCheckoutById.d.ts +0 -230
- package/build/__api/queries/getCurrencyRate.d.ts +0 -19
- package/build/__api/queries/getCustomerOrders.d.ts +0 -210
- package/build/__api/queries/getCustomerOrders.js +0 -1
- package/build/__api/queries/getLastViewedProducts.d.ts +0 -20
- package/build/__api/queries/getLastViewedProducts.js +0 -1
- package/build/__api/queries/getMasterPassRequestToken.d.ts +0 -15
- package/build/__api/queries/getMasterPassRequestToken.js +0 -1
- package/build/__api/queries/getMyCountry.d.ts +0 -3
- package/build/__api/queries/getMyCountry.js +0 -1
- package/build/__api/queries/getMyCustomer.d.ts +0 -66
- package/build/__api/queries/getMyCustomer.js +0 -1
- package/build/__api/queries/getOrder.d.ts +0 -210
- package/build/__api/queries/getOrderByEmail.d.ts +0 -211
- package/build/__api/queries/getOrderByEmail.js +0 -1
- package/build/__api/queries/getProductCampaigns.d.ts +0 -47
- package/build/__api/queries/getProductCampaigns.js +0 -1
- package/build/__api/queries/getProductFilterData.d.ts +0 -167
- package/build/__api/queries/getProductFilterData.js +0 -1
- package/build/__api/queries/getProductOptionFileUrl.d.ts +0 -14
- package/build/__api/queries/getProductOptionFileUrl.js +0 -1
- package/build/__api/queries/getRelatedProducts.d.ts +0 -14
- package/build/__api/queries/getRelatedProducts.js +0 -1
- package/build/__api/queries/getStorefront.d.ts +0 -67
- package/build/__api/queries/getStorefrontSettings.d.ts +0 -3
- package/build/__api/queries/getStorefrontSettings.js +0 -1
- package/build/__api/queries/getVariantStockLocations.d.ts +0 -30
- package/build/__api/queries/isFavoriteProduct.d.ts +0 -6
- package/build/__api/queries/isFavoriteProduct.js +0 -1
- package/build/__api/queries/listBlog.d.ts +0 -76
- package/build/__api/queries/listBlog.js +0 -1
- package/build/__api/queries/listBlogCategory.d.ts +0 -35
- package/build/__api/queries/listBlogCategory.js +0 -1
- package/build/__api/queries/listBlogMetadata.d.ts +0 -30
- package/build/__api/queries/listBlogMetadata.js +0 -1
- package/build/__api/queries/listCampaignOffer.d.ts +0 -37
- package/build/__api/queries/listCategory.d.ts +0 -89
- package/build/__api/queries/listCategory.js +0 -1
- package/build/__api/queries/listCheckoutSettings.d.ts +0 -30
- package/build/__api/queries/listCheckoutSettings.js +0 -1
- package/build/__api/queries/listCity.d.ts +0 -25
- package/build/__api/queries/listCity.js +0 -1
- package/build/__api/queries/listCountry.d.ts +0 -35
- package/build/__api/queries/listCountry.js +0 -1
- package/build/__api/queries/listCustomerAttribute.d.ts +0 -27
- package/build/__api/queries/listCustomerAttribute.js +0 -1
- package/build/__api/queries/listCustomerReviewSummary.d.ts +0 -23
- package/build/__api/queries/listCustomerReviewSummary.js +0 -1
- package/build/__api/queries/listCustomerReviews.d.ts +0 -35
- package/build/__api/queries/listCustomerReviews.js +0 -1
- package/build/__api/queries/listDistrict.d.ts +0 -26
- package/build/__api/queries/listDistrict.js +0 -1
- package/build/__api/queries/listFavoriteProducts.d.ts +0 -12
- package/build/__api/queries/listFavoriteProducts.js +0 -1
- package/build/__api/queries/listHTMLMetaData.d.ts +0 -34
- package/build/__api/queries/listHTMLMetaData.js +0 -1
- package/build/__api/queries/listMerchantSettings.d.ts +0 -46
- package/build/__api/queries/listMerchantSettings.js +0 -1
- package/build/__api/queries/listOrderRefundSettings.d.ts +0 -21
- package/build/__api/queries/listOrderRefundSettings.js +0 -1
- package/build/__api/queries/listOrderTransactions.d.ts +0 -44
- package/build/__api/queries/listOrderTransactions.js +0 -1
- package/build/__api/queries/listPaymentGateway.d.ts +0 -40
- package/build/__api/queries/listPaymentGateway.js +0 -1
- package/build/__api/queries/listProduct.d.ts +0 -101
- package/build/__api/queries/listProductAttribute.d.ts +0 -33
- package/build/__api/queries/listProductAttribute.js +0 -1
- package/build/__api/queries/listProductBackInStockRemind.d.ts +0 -24
- package/build/__api/queries/listProductBackInStockRemind.js +0 -1
- package/build/__api/queries/listProductBrand.d.ts +0 -51
- package/build/__api/queries/listProductBrand.js +0 -1
- package/build/__api/queries/listProductOptionSet.d.ts +0 -61
- package/build/__api/queries/listProductOptionSet.js +0 -1
- package/build/__api/queries/listProductStockLocation.d.ts +0 -18
- package/build/__api/queries/listRaffleMetadata.d.ts +0 -26
- package/build/__api/queries/listRaffleMetadata.js +0 -1
- package/build/__api/queries/listRaffleParticipants.d.ts +0 -46
- package/build/__api/queries/listRaffleParticipants.js +0 -1
- package/build/__api/queries/listState.d.ts +0 -20
- package/build/__api/queries/listState.js +0 -1
- package/build/__api/queries/listStockLocation.d.ts +0 -35
- package/build/__api/queries/listStockLocation.js +0 -1
- package/build/__api/queries/listStorefrontRaffle.d.ts +0 -44
- package/build/__api/queries/listStorefrontRaffle.js +0 -1
- package/build/__api/queries/listTown.d.ts +0 -20
- package/build/__api/queries/listVariantType.d.ts +0 -29
- package/build/__api/queries/searchProducts.d.ts +0 -141
- package/build/__api/queries/searchProducts.js +0 -1
- package/build/__api/types/index.d.ts +0 -2840
- package/build/__api/types/index.js +0 -1
- package/build/api/blog/index.d.ts +0 -27
- package/build/api/blog/index.js +0 -1
- package/build/api/brand/index.d.ts +0 -11
- package/build/api/brand/index.js +0 -1
- package/build/api/cart/index.d.ts +0 -13
- package/build/api/cart/index.js +0 -1
- package/build/api/category/index.d.ts +0 -11
- package/build/api/category/index.js +0 -1
- package/build/api/checkout/index.d.ts +0 -21
- package/build/api/checkout/index.js +0 -1
- package/build/api/customer/index.d.ts +0 -130
- package/build/api/customer/index.js +0 -1
- package/build/api/file-upload/index.d.ts +0 -11
- package/build/api/file-upload/index.js +0 -1
- package/build/api/html-meta-data/index.d.ts +0 -5
- package/build/api/html-meta-data/index.js +0 -1
- package/build/api/location/index.d.ts +0 -12
- package/build/api/location/index.js +0 -1
- package/build/api/masterpass/index.d.ts +0 -3
- package/build/api/masterpass/index.js +0 -1
- package/build/api/merchant/index.d.ts +0 -5
- package/build/api/merchant/index.js +0 -1
- package/build/api/product/index.d.ts +0 -40
- package/build/api/product/index.js +0 -1
- package/build/api/raffle/index.d.ts +0 -16
- package/build/api/raffle/index.js +0 -1
- package/build/api/storefront/index.d.ts +0 -13
- package/build/api/storefront/index.js +0 -1
- package/build/index.d.ts +0 -23
- package/build/index.js +0 -1
- package/build/index2.js +0 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import { CustomerLoginResponse } from "../types";
|
|
8
|
+
|
|
9
|
+
const customerLogin = async (
|
|
10
|
+
variables: QueryParams,
|
|
11
|
+
fields?: string[],
|
|
12
|
+
config?: ConfigType
|
|
13
|
+
) => {
|
|
14
|
+
try {
|
|
15
|
+
const { data, errors } = await fetchQuery({
|
|
16
|
+
operationName: "customerLogin",
|
|
17
|
+
config,
|
|
18
|
+
variables,
|
|
19
|
+
allReturnFields,
|
|
20
|
+
fields,
|
|
21
|
+
query: (returnFields: string) => `
|
|
22
|
+
mutation customerLogin (
|
|
23
|
+
$captchaToken: String,
|
|
24
|
+
$email: String!,
|
|
25
|
+
$password: String!,
|
|
26
|
+
) {
|
|
27
|
+
customerLogin (
|
|
28
|
+
captchaToken: $captchaToken,
|
|
29
|
+
email: $email,
|
|
30
|
+
password: $password,
|
|
31
|
+
) ${returnFields}
|
|
32
|
+
}
|
|
33
|
+
`,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return new APIResponse<CustomerLoginResponse>(data?.customerLogin, errors);
|
|
37
|
+
} catch (err) {
|
|
38
|
+
return handleAPIError(err);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default customerLogin;
|
|
43
|
+
|
|
44
|
+
export type QueryParams = {
|
|
45
|
+
captchaToken?: string | null;
|
|
46
|
+
email: string;
|
|
47
|
+
password: string;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const allReturnFields =
|
|
51
|
+
"{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";
|
|
52
|
+
|
|
53
|
+
export enum ResponseField {
|
|
54
|
+
CUSTOMER__ACCOUNT_STATUS = "customer.accountStatus",
|
|
55
|
+
CUSTOMER__ACCOUNT_STATUS_UPDATED_AT = "customer.accountStatusUpdatedAt",
|
|
56
|
+
CUSTOMER__ADDRESSES__ADDRESS_LINE1 = "customer.addresses.addressLine1",
|
|
57
|
+
CUSTOMER__ADDRESSES__ADDRESS_LINE2 = "customer.addresses.addressLine2",
|
|
58
|
+
CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.addresses.attributes.customerAttributeId",
|
|
59
|
+
CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.addresses.attributes.customerAttributeOptionId",
|
|
60
|
+
CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE = "customer.addresses.attributes.value",
|
|
61
|
+
CUSTOMER__ADDRESSES__CITY__CODE = "customer.addresses.city.code",
|
|
62
|
+
CUSTOMER__ADDRESSES__CITY__ID = "customer.addresses.city.id",
|
|
63
|
+
CUSTOMER__ADDRESSES__CITY__NAME = "customer.addresses.city.name",
|
|
64
|
+
CUSTOMER__ADDRESSES__COMPANY = "customer.addresses.company",
|
|
65
|
+
CUSTOMER__ADDRESSES__COUNTRY__CODE = "customer.addresses.country.code",
|
|
66
|
+
CUSTOMER__ADDRESSES__COUNTRY__ID = "customer.addresses.country.id",
|
|
67
|
+
CUSTOMER__ADDRESSES__COUNTRY__ISO2 = "customer.addresses.country.iso2",
|
|
68
|
+
CUSTOMER__ADDRESSES__COUNTRY__ISO3 = "customer.addresses.country.iso3",
|
|
69
|
+
CUSTOMER__ADDRESSES__COUNTRY__NAME = "customer.addresses.country.name",
|
|
70
|
+
CUSTOMER__ADDRESSES__CREATED_AT = "customer.addresses.createdAt",
|
|
71
|
+
CUSTOMER__ADDRESSES__DELETED = "customer.addresses.deleted",
|
|
72
|
+
CUSTOMER__ADDRESSES__DISTRICT__CODE = "customer.addresses.district.code",
|
|
73
|
+
CUSTOMER__ADDRESSES__DISTRICT__ID = "customer.addresses.district.id",
|
|
74
|
+
CUSTOMER__ADDRESSES__DISTRICT__NAME = "customer.addresses.district.name",
|
|
75
|
+
CUSTOMER__ADDRESSES__FIRST_NAME = "customer.addresses.firstName",
|
|
76
|
+
CUSTOMER__ADDRESSES__ID = "customer.addresses.id",
|
|
77
|
+
CUSTOMER__ADDRESSES__IDENTITY_NUMBER = "customer.addresses.identityNumber",
|
|
78
|
+
CUSTOMER__ADDRESSES__IS_DEFAULT = "customer.addresses.isDefault",
|
|
79
|
+
CUSTOMER__ADDRESSES__LAST_NAME = "customer.addresses.lastName",
|
|
80
|
+
CUSTOMER__ADDRESSES__PHONE = "customer.addresses.phone",
|
|
81
|
+
CUSTOMER__ADDRESSES__POSTAL_CODE = "customer.addresses.postalCode",
|
|
82
|
+
CUSTOMER__ADDRESSES__STATE__CODE = "customer.addresses.state.code",
|
|
83
|
+
CUSTOMER__ADDRESSES__STATE__ID = "customer.addresses.state.id",
|
|
84
|
+
CUSTOMER__ADDRESSES__STATE__NAME = "customer.addresses.state.name",
|
|
85
|
+
CUSTOMER__ADDRESSES__TAX_NUMBER = "customer.addresses.taxNumber",
|
|
86
|
+
CUSTOMER__ADDRESSES__TAX_OFFICE = "customer.addresses.taxOffice",
|
|
87
|
+
CUSTOMER__ADDRESSES__TITLE = "customer.addresses.title",
|
|
88
|
+
CUSTOMER__ADDRESSES__UPDATED_AT = "customer.addresses.updatedAt",
|
|
89
|
+
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
|
|
90
|
+
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
|
|
91
|
+
CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
|
|
92
|
+
CUSTOMER__CREATED_AT = "customer.createdAt",
|
|
93
|
+
CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
|
|
94
|
+
CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
|
|
95
|
+
CUSTOMER__DELETED = "customer.deleted",
|
|
96
|
+
CUSTOMER__EMAIL = "customer.email",
|
|
97
|
+
CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
|
|
98
|
+
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
99
|
+
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
100
|
+
CUSTOMER__ID = "customer.id",
|
|
101
|
+
CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
|
|
102
|
+
CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
|
|
103
|
+
CUSTOMER__LAST_NAME = "customer.lastName",
|
|
104
|
+
CUSTOMER__NOTE = "customer.note",
|
|
105
|
+
CUSTOMER__ORDER_COUNT = "customer.orderCount",
|
|
106
|
+
CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
|
|
107
|
+
CUSTOMER__PHONE = "customer.phone",
|
|
108
|
+
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
109
|
+
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
110
|
+
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
111
|
+
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
112
|
+
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
113
|
+
CUSTOMER__UPDATED_AT = "customer.updatedAt",
|
|
114
|
+
TOKEN = "token",
|
|
115
|
+
TOKEN_EXPIRY = "tokenExpiry",
|
|
116
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
|
|
8
|
+
const customerRecoverPassword = async (
|
|
9
|
+
variables: QueryParams,
|
|
10
|
+
config?: ConfigType
|
|
11
|
+
) => {
|
|
12
|
+
try {
|
|
13
|
+
const { data, errors } = await fetchQuery({
|
|
14
|
+
operationName: "customerRecoverPassword",
|
|
15
|
+
config,
|
|
16
|
+
variables,
|
|
17
|
+
query: `
|
|
18
|
+
mutation customerRecoverPassword (
|
|
19
|
+
$captchaToken: String,
|
|
20
|
+
$password: String!,
|
|
21
|
+
$passwordAgain: String!,
|
|
22
|
+
$token: String!,
|
|
23
|
+
) {
|
|
24
|
+
customerRecoverPassword (
|
|
25
|
+
captchaToken: $captchaToken,
|
|
26
|
+
password: $password,
|
|
27
|
+
passwordAgain: $passwordAgain,
|
|
28
|
+
token: $token,
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
`,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
return new APIResponse<boolean>(data?.customerRecoverPassword, errors);
|
|
35
|
+
} catch (err) {
|
|
36
|
+
return handleAPIError(err);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default customerRecoverPassword;
|
|
41
|
+
|
|
42
|
+
export type QueryParams = {
|
|
43
|
+
captchaToken?: string | null;
|
|
44
|
+
password: string;
|
|
45
|
+
passwordAgain: string;
|
|
46
|
+
token: string;
|
|
47
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import { CustomerRefreshTokenResponse } from "../types";
|
|
8
|
+
|
|
9
|
+
const customerRefreshToken = async (
|
|
10
|
+
variables: QueryParams,
|
|
11
|
+
fields?: string[],
|
|
12
|
+
config?: ConfigType
|
|
13
|
+
) => {
|
|
14
|
+
try {
|
|
15
|
+
const { data, errors } = await fetchQuery({
|
|
16
|
+
operationName: "customerRefreshToken",
|
|
17
|
+
config,
|
|
18
|
+
variables,
|
|
19
|
+
allReturnFields,
|
|
20
|
+
fields,
|
|
21
|
+
query: (returnFields: string) => `
|
|
22
|
+
mutation customerRefreshToken (
|
|
23
|
+
$token: String!,
|
|
24
|
+
) {
|
|
25
|
+
customerRefreshToken (
|
|
26
|
+
token: $token,
|
|
27
|
+
) ${returnFields}
|
|
28
|
+
}
|
|
29
|
+
`,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
return new APIResponse<CustomerRefreshTokenResponse>(
|
|
33
|
+
data?.customerRefreshToken,
|
|
34
|
+
errors
|
|
35
|
+
);
|
|
36
|
+
} catch (err) {
|
|
37
|
+
return handleAPIError(err);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default customerRefreshToken;
|
|
42
|
+
|
|
43
|
+
export type QueryParams = {
|
|
44
|
+
token: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const allReturnFields = "{token tokenExpiry }";
|
|
48
|
+
|
|
49
|
+
export enum ResponseField {
|
|
50
|
+
TOKEN = "token",
|
|
51
|
+
TOKEN_EXPIRY = "tokenExpiry",
|
|
52
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
|
|
8
|
+
const deleteRaffleParticipantsList = async (
|
|
9
|
+
variables: QueryParams,
|
|
10
|
+
config?: ConfigType
|
|
11
|
+
) => {
|
|
12
|
+
try {
|
|
13
|
+
const { data, errors } = await fetchQuery({
|
|
14
|
+
operationName: "deleteRaffleParticipantsList",
|
|
15
|
+
config,
|
|
16
|
+
variables,
|
|
17
|
+
query: `
|
|
18
|
+
mutation deleteRaffleParticipantsList (
|
|
19
|
+
$idList: [String!]!,
|
|
20
|
+
) {
|
|
21
|
+
deleteRaffleParticipantsList (
|
|
22
|
+
idList: $idList,
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
`,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
return new APIResponse<boolean>(data?.deleteRaffleParticipantsList, errors);
|
|
29
|
+
} catch (err) {
|
|
30
|
+
return handleAPIError(err);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default deleteRaffleParticipantsList;
|
|
35
|
+
|
|
36
|
+
export type QueryParams = {
|
|
37
|
+
idList: string[];
|
|
38
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import { GetOrderLineFile } from "../types";
|
|
8
|
+
|
|
9
|
+
const getOrderLineFile = async (
|
|
10
|
+
variables: QueryParams,
|
|
11
|
+
config?: ConfigType
|
|
12
|
+
) => {
|
|
13
|
+
try {
|
|
14
|
+
const { data, errors } = await fetchQuery({
|
|
15
|
+
operationName: "getOrderLineFile",
|
|
16
|
+
config,
|
|
17
|
+
variables,
|
|
18
|
+
query: `
|
|
19
|
+
mutation getOrderLineFile (
|
|
20
|
+
$input: GetOrderLineFile!,
|
|
21
|
+
) {
|
|
22
|
+
getOrderLineFile (
|
|
23
|
+
input: $input,
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
`,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
return new APIResponse<string>(data?.getOrderLineFile, errors);
|
|
30
|
+
} catch (err) {
|
|
31
|
+
return handleAPIError(err);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default getOrderLineFile;
|
|
36
|
+
|
|
37
|
+
export type QueryParams = {
|
|
38
|
+
input: GetOrderLineFile;
|
|
39
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import { CustomerAttributeValueInput, CustomerLoginResponse } from "../types";
|
|
8
|
+
|
|
9
|
+
const registerCustomer = async (
|
|
10
|
+
variables: QueryParams,
|
|
11
|
+
fields?: string[],
|
|
12
|
+
config?: ConfigType
|
|
13
|
+
) => {
|
|
14
|
+
try {
|
|
15
|
+
const { data, errors } = await fetchQuery({
|
|
16
|
+
operationName: "registerCustomer",
|
|
17
|
+
config,
|
|
18
|
+
variables,
|
|
19
|
+
allReturnFields,
|
|
20
|
+
fields,
|
|
21
|
+
query: (returnFields: string) => `
|
|
22
|
+
mutation registerCustomer (
|
|
23
|
+
$attributes: [CustomerAttributeValueInput!],
|
|
24
|
+
$captchaToken: String,
|
|
25
|
+
$email: String!,
|
|
26
|
+
$firstName: String!,
|
|
27
|
+
$isAcceptMarketing: Boolean,
|
|
28
|
+
$lastName: String!,
|
|
29
|
+
$locale: String,
|
|
30
|
+
$password: String!,
|
|
31
|
+
) {
|
|
32
|
+
registerCustomer (
|
|
33
|
+
attributes: $attributes,
|
|
34
|
+
captchaToken: $captchaToken,
|
|
35
|
+
email: $email,
|
|
36
|
+
firstName: $firstName,
|
|
37
|
+
isAcceptMarketing: $isAcceptMarketing,
|
|
38
|
+
lastName: $lastName,
|
|
39
|
+
locale: $locale,
|
|
40
|
+
password: $password,
|
|
41
|
+
) ${returnFields}
|
|
42
|
+
}
|
|
43
|
+
`,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return new APIResponse<CustomerLoginResponse>(
|
|
47
|
+
data?.registerCustomer,
|
|
48
|
+
errors
|
|
49
|
+
);
|
|
50
|
+
} catch (err) {
|
|
51
|
+
return handleAPIError(err);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default registerCustomer;
|
|
56
|
+
|
|
57
|
+
export type QueryParams = {
|
|
58
|
+
attributes?: CustomerAttributeValueInput[] | null;
|
|
59
|
+
captchaToken?: string | null;
|
|
60
|
+
email: string;
|
|
61
|
+
firstName: string;
|
|
62
|
+
isAcceptMarketing?: boolean | null;
|
|
63
|
+
lastName: string;
|
|
64
|
+
locale?: string | null;
|
|
65
|
+
password: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const allReturnFields =
|
|
69
|
+
"{customer {accountStatus accountStatusUpdatedAt addresses {addressLine1 addressLine2 attributes {customerAttributeId customerAttributeOptionId value } city {code id name } company country {code id iso2 iso3 name } createdAt deleted district {code id name } firstName id identityNumber isDefault lastName phone postalCode state {code id name } taxNumber taxOffice title updatedAt } attributes {customerAttributeId customerAttributeOptionId value } createdAt customerGroupIds customerSequence deleted email emailVerifiedDate firstName fullName id isEmailVerified isPhoneVerified lastName note orderCount passwordUpdateDate phone phoneVerifiedDate registrationSource subscriptionStatus subscriptionStatusUpdatedAt tagIds updatedAt } token tokenExpiry }";
|
|
70
|
+
|
|
71
|
+
export enum ResponseField {
|
|
72
|
+
CUSTOMER__ACCOUNT_STATUS = "customer.accountStatus",
|
|
73
|
+
CUSTOMER__ACCOUNT_STATUS_UPDATED_AT = "customer.accountStatusUpdatedAt",
|
|
74
|
+
CUSTOMER__ADDRESSES__ADDRESS_LINE1 = "customer.addresses.addressLine1",
|
|
75
|
+
CUSTOMER__ADDRESSES__ADDRESS_LINE2 = "customer.addresses.addressLine2",
|
|
76
|
+
CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.addresses.attributes.customerAttributeId",
|
|
77
|
+
CUSTOMER__ADDRESSES__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.addresses.attributes.customerAttributeOptionId",
|
|
78
|
+
CUSTOMER__ADDRESSES__ATTRIBUTES__VALUE = "customer.addresses.attributes.value",
|
|
79
|
+
CUSTOMER__ADDRESSES__CITY__CODE = "customer.addresses.city.code",
|
|
80
|
+
CUSTOMER__ADDRESSES__CITY__ID = "customer.addresses.city.id",
|
|
81
|
+
CUSTOMER__ADDRESSES__CITY__NAME = "customer.addresses.city.name",
|
|
82
|
+
CUSTOMER__ADDRESSES__COMPANY = "customer.addresses.company",
|
|
83
|
+
CUSTOMER__ADDRESSES__COUNTRY__CODE = "customer.addresses.country.code",
|
|
84
|
+
CUSTOMER__ADDRESSES__COUNTRY__ID = "customer.addresses.country.id",
|
|
85
|
+
CUSTOMER__ADDRESSES__COUNTRY__ISO2 = "customer.addresses.country.iso2",
|
|
86
|
+
CUSTOMER__ADDRESSES__COUNTRY__ISO3 = "customer.addresses.country.iso3",
|
|
87
|
+
CUSTOMER__ADDRESSES__COUNTRY__NAME = "customer.addresses.country.name",
|
|
88
|
+
CUSTOMER__ADDRESSES__CREATED_AT = "customer.addresses.createdAt",
|
|
89
|
+
CUSTOMER__ADDRESSES__DELETED = "customer.addresses.deleted",
|
|
90
|
+
CUSTOMER__ADDRESSES__DISTRICT__CODE = "customer.addresses.district.code",
|
|
91
|
+
CUSTOMER__ADDRESSES__DISTRICT__ID = "customer.addresses.district.id",
|
|
92
|
+
CUSTOMER__ADDRESSES__DISTRICT__NAME = "customer.addresses.district.name",
|
|
93
|
+
CUSTOMER__ADDRESSES__FIRST_NAME = "customer.addresses.firstName",
|
|
94
|
+
CUSTOMER__ADDRESSES__ID = "customer.addresses.id",
|
|
95
|
+
CUSTOMER__ADDRESSES__IDENTITY_NUMBER = "customer.addresses.identityNumber",
|
|
96
|
+
CUSTOMER__ADDRESSES__IS_DEFAULT = "customer.addresses.isDefault",
|
|
97
|
+
CUSTOMER__ADDRESSES__LAST_NAME = "customer.addresses.lastName",
|
|
98
|
+
CUSTOMER__ADDRESSES__PHONE = "customer.addresses.phone",
|
|
99
|
+
CUSTOMER__ADDRESSES__POSTAL_CODE = "customer.addresses.postalCode",
|
|
100
|
+
CUSTOMER__ADDRESSES__STATE__CODE = "customer.addresses.state.code",
|
|
101
|
+
CUSTOMER__ADDRESSES__STATE__ID = "customer.addresses.state.id",
|
|
102
|
+
CUSTOMER__ADDRESSES__STATE__NAME = "customer.addresses.state.name",
|
|
103
|
+
CUSTOMER__ADDRESSES__TAX_NUMBER = "customer.addresses.taxNumber",
|
|
104
|
+
CUSTOMER__ADDRESSES__TAX_OFFICE = "customer.addresses.taxOffice",
|
|
105
|
+
CUSTOMER__ADDRESSES__TITLE = "customer.addresses.title",
|
|
106
|
+
CUSTOMER__ADDRESSES__UPDATED_AT = "customer.addresses.updatedAt",
|
|
107
|
+
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_ID = "customer.attributes.customerAttributeId",
|
|
108
|
+
CUSTOMER__ATTRIBUTES__CUSTOMER_ATTRIBUTE_OPTION_ID = "customer.attributes.customerAttributeOptionId",
|
|
109
|
+
CUSTOMER__ATTRIBUTES__VALUE = "customer.attributes.value",
|
|
110
|
+
CUSTOMER__CREATED_AT = "customer.createdAt",
|
|
111
|
+
CUSTOMER__CUSTOMER_GROUP_IDS = "customer.customerGroupIds",
|
|
112
|
+
CUSTOMER__CUSTOMER_SEQUENCE = "customer.customerSequence",
|
|
113
|
+
CUSTOMER__DELETED = "customer.deleted",
|
|
114
|
+
CUSTOMER__EMAIL = "customer.email",
|
|
115
|
+
CUSTOMER__EMAIL_VERIFIED_DATE = "customer.emailVerifiedDate",
|
|
116
|
+
CUSTOMER__FIRST_NAME = "customer.firstName",
|
|
117
|
+
CUSTOMER__FULL_NAME = "customer.fullName",
|
|
118
|
+
CUSTOMER__ID = "customer.id",
|
|
119
|
+
CUSTOMER__IS_EMAIL_VERIFIED = "customer.isEmailVerified",
|
|
120
|
+
CUSTOMER__IS_PHONE_VERIFIED = "customer.isPhoneVerified",
|
|
121
|
+
CUSTOMER__LAST_NAME = "customer.lastName",
|
|
122
|
+
CUSTOMER__NOTE = "customer.note",
|
|
123
|
+
CUSTOMER__ORDER_COUNT = "customer.orderCount",
|
|
124
|
+
CUSTOMER__PASSWORD_UPDATE_DATE = "customer.passwordUpdateDate",
|
|
125
|
+
CUSTOMER__PHONE = "customer.phone",
|
|
126
|
+
CUSTOMER__PHONE_VERIFIED_DATE = "customer.phoneVerifiedDate",
|
|
127
|
+
CUSTOMER__REGISTRATION_SOURCE = "customer.registrationSource",
|
|
128
|
+
CUSTOMER__SUBSCRIPTION_STATUS = "customer.subscriptionStatus",
|
|
129
|
+
CUSTOMER__SUBSCRIPTION_STATUS_UPDATED_AT = "customer.subscriptionStatusUpdatedAt",
|
|
130
|
+
CUSTOMER__TAG_IDS = "customer.tagIds",
|
|
131
|
+
CUSTOMER__UPDATED_AT = "customer.updatedAt",
|
|
132
|
+
TOKEN = "token",
|
|
133
|
+
TOKEN_EXPIRY = "tokenExpiry",
|
|
134
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import {
|
|
8
|
+
RetrieveInstallmentInfoInput,
|
|
9
|
+
RetrieveInstallmentInfoResponse,
|
|
10
|
+
} from "../types";
|
|
11
|
+
|
|
12
|
+
const retrieveInstallmentInfo = async (
|
|
13
|
+
variables: QueryParams,
|
|
14
|
+
fields?: string[],
|
|
15
|
+
config?: ConfigType
|
|
16
|
+
) => {
|
|
17
|
+
try {
|
|
18
|
+
const { data, errors } = await fetchQuery({
|
|
19
|
+
operationName: "retrieveInstallmentInfo",
|
|
20
|
+
config,
|
|
21
|
+
variables,
|
|
22
|
+
allReturnFields,
|
|
23
|
+
fields,
|
|
24
|
+
query: (returnFields: string) => `
|
|
25
|
+
mutation retrieveInstallmentInfo (
|
|
26
|
+
$input: RetrieveInstallmentInfoInput!,
|
|
27
|
+
) {
|
|
28
|
+
retrieveInstallmentInfo (
|
|
29
|
+
input: $input,
|
|
30
|
+
) ${returnFields}
|
|
31
|
+
}
|
|
32
|
+
`,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
return new APIResponse<RetrieveInstallmentInfoResponse>(
|
|
36
|
+
data?.retrieveInstallmentInfo,
|
|
37
|
+
errors
|
|
38
|
+
);
|
|
39
|
+
} catch (err) {
|
|
40
|
+
return handleAPIError(err);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default retrieveInstallmentInfo;
|
|
45
|
+
|
|
46
|
+
export type QueryParams = {
|
|
47
|
+
input: RetrieveInstallmentInfoInput;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const allReturnFields =
|
|
51
|
+
"{bankName binNumber cardAssociation cardFamily cardType installmentPrices {installmentCount installmentPrice originalRate rate totalPrice } price }";
|
|
52
|
+
|
|
53
|
+
export enum ResponseField {
|
|
54
|
+
BANK_NAME = "bankName",
|
|
55
|
+
BIN_NUMBER = "binNumber",
|
|
56
|
+
CARD_ASSOCIATION = "cardAssociation",
|
|
57
|
+
CARD_FAMILY = "cardFamily",
|
|
58
|
+
CARD_TYPE = "cardType",
|
|
59
|
+
INSTALLMENT_PRICES__INSTALLMENT_COUNT = "installmentPrices.installmentCount",
|
|
60
|
+
INSTALLMENT_PRICES__INSTALLMENT_PRICE = "installmentPrices.installmentPrice",
|
|
61
|
+
INSTALLMENT_PRICES__ORIGINAL_RATE = "installmentPrices.originalRate",
|
|
62
|
+
INSTALLMENT_PRICES__RATE = "installmentPrices.rate",
|
|
63
|
+
INSTALLMENT_PRICES__TOTAL_PRICE = "installmentPrices.totalPrice",
|
|
64
|
+
PRICE = "price",
|
|
65
|
+
}
|