@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,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import {
|
|
8
|
+
StringFilterInput,
|
|
9
|
+
DateFilterInput,
|
|
10
|
+
OrderRefundSettings,
|
|
11
|
+
} from "../types";
|
|
12
|
+
|
|
13
|
+
const listOrderRefundSettings = async (
|
|
14
|
+
variables: QueryParams,
|
|
15
|
+
fields?: string[],
|
|
16
|
+
config?: ConfigType
|
|
17
|
+
) => {
|
|
18
|
+
try {
|
|
19
|
+
const { data, errors } = await fetchQuery({
|
|
20
|
+
operationName: "listOrderRefundSettings",
|
|
21
|
+
config,
|
|
22
|
+
variables,
|
|
23
|
+
allReturnFields,
|
|
24
|
+
fields,
|
|
25
|
+
query: (returnFields: string) => `
|
|
26
|
+
query listOrderRefundSettings (
|
|
27
|
+
$id: StringFilterInput,
|
|
28
|
+
$includeDeleted: Boolean,
|
|
29
|
+
$storefrontId: StringFilterInput,
|
|
30
|
+
$updatedAt: DateFilterInput,
|
|
31
|
+
) {
|
|
32
|
+
listOrderRefundSettings (
|
|
33
|
+
id: $id,
|
|
34
|
+
includeDeleted: $includeDeleted,
|
|
35
|
+
storefrontId: $storefrontId,
|
|
36
|
+
updatedAt: $updatedAt,
|
|
37
|
+
) ${returnFields}
|
|
38
|
+
}
|
|
39
|
+
`,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
return new APIResponse<OrderRefundSettings[]>(
|
|
43
|
+
data?.listOrderRefundSettings,
|
|
44
|
+
errors
|
|
45
|
+
);
|
|
46
|
+
} catch (err) {
|
|
47
|
+
return handleAPIError(err);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default listOrderRefundSettings;
|
|
52
|
+
|
|
53
|
+
export type QueryParams = {
|
|
54
|
+
id?: StringFilterInput | null;
|
|
55
|
+
includeDeleted?: boolean | null;
|
|
56
|
+
storefrontId?: StringFilterInput | null;
|
|
57
|
+
updatedAt?: DateFilterInput | null;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const allReturnFields =
|
|
61
|
+
"{autoApprove createdAt deleted id isActiveRefundSection orderRefundDayLimit refundDesc storefrontId updatedAt }";
|
|
62
|
+
|
|
63
|
+
export enum ResponseField {
|
|
64
|
+
AUTO_APPROVE = "autoApprove",
|
|
65
|
+
CREATED_AT = "createdAt",
|
|
66
|
+
DELETED = "deleted",
|
|
67
|
+
ID = "id",
|
|
68
|
+
IS_ACTIVE_REFUND_SECTION = "isActiveRefundSection",
|
|
69
|
+
ORDER_REFUND_DAY_LIMIT = "orderRefundDayLimit",
|
|
70
|
+
REFUND_DESC = "refundDesc",
|
|
71
|
+
STOREFRONT_ID = "storefrontId",
|
|
72
|
+
UPDATED_AT = "updatedAt",
|
|
73
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import { StringFilterInput, StorefrontTransaction } from "../types";
|
|
8
|
+
|
|
9
|
+
const listOrderTransactions = async (
|
|
10
|
+
variables: QueryParams,
|
|
11
|
+
fields?: string[],
|
|
12
|
+
config?: ConfigType
|
|
13
|
+
) => {
|
|
14
|
+
try {
|
|
15
|
+
const { data, errors } = await fetchQuery({
|
|
16
|
+
operationName: "listOrderTransactions",
|
|
17
|
+
config,
|
|
18
|
+
variables,
|
|
19
|
+
allReturnFields,
|
|
20
|
+
fields,
|
|
21
|
+
query: (returnFields: string) => `
|
|
22
|
+
query listOrderTransactions (
|
|
23
|
+
$checkoutId: StringFilterInput,
|
|
24
|
+
$id: StringFilterInput,
|
|
25
|
+
$orderId: StringFilterInput,
|
|
26
|
+
) {
|
|
27
|
+
listOrderTransactions (
|
|
28
|
+
checkoutId: $checkoutId,
|
|
29
|
+
id: $id,
|
|
30
|
+
orderId: $orderId,
|
|
31
|
+
) ${returnFields}
|
|
32
|
+
}
|
|
33
|
+
`,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return new APIResponse<StorefrontTransaction[]>(
|
|
37
|
+
data?.listOrderTransactions,
|
|
38
|
+
errors
|
|
39
|
+
);
|
|
40
|
+
} catch (err) {
|
|
41
|
+
return handleAPIError(err);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default listOrderTransactions;
|
|
46
|
+
|
|
47
|
+
export type QueryParams = {
|
|
48
|
+
checkoutId?: StringFilterInput | null;
|
|
49
|
+
id?: StringFilterInput | null;
|
|
50
|
+
orderId?: StringFilterInput | null;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const allReturnFields =
|
|
54
|
+
"{amount checkoutId createdAt currencyCode customerId deleted error {code declineCode message } id orderId paymentGatewayCode paymentGatewayId paymentGatewayName paymentMethod paymentMethodDetail {bankName binNumber cardAssociation cardFamily cardType installment {installmentCount installmentPrice originalRate rate totalPrice } lastFourDigits threeDSecure } processedAt refundReason status type updatedAt }";
|
|
55
|
+
|
|
56
|
+
export enum ResponseField {
|
|
57
|
+
AMOUNT = "amount",
|
|
58
|
+
CHECKOUT_ID = "checkoutId",
|
|
59
|
+
CREATED_AT = "createdAt",
|
|
60
|
+
CURRENCY_CODE = "currencyCode",
|
|
61
|
+
CUSTOMER_ID = "customerId",
|
|
62
|
+
DELETED = "deleted",
|
|
63
|
+
ERROR__CODE = "error.code",
|
|
64
|
+
ERROR__DECLINE_CODE = "error.declineCode",
|
|
65
|
+
ERROR__MESSAGE = "error.message",
|
|
66
|
+
ID = "id",
|
|
67
|
+
ORDER_ID = "orderId",
|
|
68
|
+
PAYMENT_GATEWAY_CODE = "paymentGatewayCode",
|
|
69
|
+
PAYMENT_GATEWAY_ID = "paymentGatewayId",
|
|
70
|
+
PAYMENT_GATEWAY_NAME = "paymentGatewayName",
|
|
71
|
+
PAYMENT_METHOD = "paymentMethod",
|
|
72
|
+
PAYMENT_METHOD_DETAIL__BANK_NAME = "paymentMethodDetail.bankName",
|
|
73
|
+
PAYMENT_METHOD_DETAIL__BIN_NUMBER = "paymentMethodDetail.binNumber",
|
|
74
|
+
PAYMENT_METHOD_DETAIL__CARD_ASSOCIATION = "paymentMethodDetail.cardAssociation",
|
|
75
|
+
PAYMENT_METHOD_DETAIL__CARD_FAMILY = "paymentMethodDetail.cardFamily",
|
|
76
|
+
PAYMENT_METHOD_DETAIL__CARD_TYPE = "paymentMethodDetail.cardType",
|
|
77
|
+
PAYMENT_METHOD_DETAIL__INSTALLMENT__INSTALLMENT_COUNT = "paymentMethodDetail.installment.installmentCount",
|
|
78
|
+
PAYMENT_METHOD_DETAIL__INSTALLMENT__INSTALLMENT_PRICE = "paymentMethodDetail.installment.installmentPrice",
|
|
79
|
+
PAYMENT_METHOD_DETAIL__INSTALLMENT__ORIGINAL_RATE = "paymentMethodDetail.installment.originalRate",
|
|
80
|
+
PAYMENT_METHOD_DETAIL__INSTALLMENT__RATE = "paymentMethodDetail.installment.rate",
|
|
81
|
+
PAYMENT_METHOD_DETAIL__INSTALLMENT__TOTAL_PRICE = "paymentMethodDetail.installment.totalPrice",
|
|
82
|
+
PAYMENT_METHOD_DETAIL__LAST_FOUR_DIGITS = "paymentMethodDetail.lastFourDigits",
|
|
83
|
+
PAYMENT_METHOD_DETAIL__THREE_D_SECURE = "paymentMethodDetail.threeDSecure",
|
|
84
|
+
PROCESSED_AT = "processedAt",
|
|
85
|
+
REFUND_REASON = "refundReason",
|
|
86
|
+
STATUS = "status",
|
|
87
|
+
TYPE = "type",
|
|
88
|
+
UPDATED_AT = "updatedAt",
|
|
89
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import { StringFilterInput, PaginationInput, PaymentGateway } from "../types";
|
|
8
|
+
|
|
9
|
+
const listPaymentGateway = async (
|
|
10
|
+
variables: QueryParams,
|
|
11
|
+
fields?: string[],
|
|
12
|
+
config?: ConfigType
|
|
13
|
+
) => {
|
|
14
|
+
try {
|
|
15
|
+
const { data, errors } = await fetchQuery({
|
|
16
|
+
operationName: "listPaymentGateway",
|
|
17
|
+
config,
|
|
18
|
+
variables,
|
|
19
|
+
allReturnFields,
|
|
20
|
+
fields,
|
|
21
|
+
query: (returnFields: string) => `
|
|
22
|
+
query listPaymentGateway (
|
|
23
|
+
$id: StringFilterInput,
|
|
24
|
+
$includeDeleted: Boolean,
|
|
25
|
+
$locale: String,
|
|
26
|
+
$pagination: PaginationInput,
|
|
27
|
+
) {
|
|
28
|
+
listPaymentGateway (
|
|
29
|
+
id: $id,
|
|
30
|
+
includeDeleted: $includeDeleted,
|
|
31
|
+
locale: $locale,
|
|
32
|
+
pagination: $pagination,
|
|
33
|
+
) ${returnFields}
|
|
34
|
+
}
|
|
35
|
+
`,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
return new APIResponse<PaymentGateway[]>(data?.listPaymentGateway, errors);
|
|
39
|
+
} catch (err) {
|
|
40
|
+
return handleAPIError(err);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default listPaymentGateway;
|
|
45
|
+
|
|
46
|
+
export type QueryParams = {
|
|
47
|
+
id?: StringFilterInput | null;
|
|
48
|
+
includeDeleted?: boolean | null;
|
|
49
|
+
locale?: string | null;
|
|
50
|
+
pagination?: PaginationInput | null;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const allReturnFields =
|
|
54
|
+
"{additionalPrices {amount amountType name type } availableCountries code createdAt deleted description id logoUrl masterPassClientId name paymentGatewayProviderId paymentMethodType paymentMethods {logoUrl name } settings {label order type value } supportedCurrencies testMode translations {description locale name } type updatedAt }";
|
|
55
|
+
|
|
56
|
+
export enum ResponseField {
|
|
57
|
+
ADDITIONAL_PRICES__AMOUNT = "additionalPrices.amount",
|
|
58
|
+
ADDITIONAL_PRICES__AMOUNT_TYPE = "additionalPrices.amountType",
|
|
59
|
+
ADDITIONAL_PRICES__NAME = "additionalPrices.name",
|
|
60
|
+
ADDITIONAL_PRICES__TYPE = "additionalPrices.type",
|
|
61
|
+
AVAILABLE_COUNTRIES = "availableCountries",
|
|
62
|
+
CODE = "code",
|
|
63
|
+
CREATED_AT = "createdAt",
|
|
64
|
+
DELETED = "deleted",
|
|
65
|
+
DESCRIPTION = "description",
|
|
66
|
+
ID = "id",
|
|
67
|
+
LOGO_URL = "logoUrl",
|
|
68
|
+
MASTER_PASS_CLIENT_ID = "masterPassClientId",
|
|
69
|
+
NAME = "name",
|
|
70
|
+
PAYMENT_GATEWAY_PROVIDER_ID = "paymentGatewayProviderId",
|
|
71
|
+
PAYMENT_METHOD_TYPE = "paymentMethodType",
|
|
72
|
+
PAYMENT_METHODS__LOGO_URL = "paymentMethods.logoUrl",
|
|
73
|
+
PAYMENT_METHODS__NAME = "paymentMethods.name",
|
|
74
|
+
SETTINGS__LABEL = "settings.label",
|
|
75
|
+
SETTINGS__ORDER = "settings.order",
|
|
76
|
+
SETTINGS__TYPE = "settings.type",
|
|
77
|
+
SETTINGS__VALUE = "settings.value",
|
|
78
|
+
SUPPORTED_CURRENCIES = "supportedCurrencies",
|
|
79
|
+
TEST_MODE = "testMode",
|
|
80
|
+
TRANSLATIONS__DESCRIPTION = "translations.description",
|
|
81
|
+
TRANSLATIONS__LOCALE = "translations.locale",
|
|
82
|
+
TRANSLATIONS__NAME = "translations.name",
|
|
83
|
+
TYPE = "type",
|
|
84
|
+
UPDATED_AT = "updatedAt",
|
|
85
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import {
|
|
8
|
+
StringFilterInput,
|
|
9
|
+
CategoryFilterInput,
|
|
10
|
+
PaginationInput,
|
|
11
|
+
DateFilterInput,
|
|
12
|
+
ProductPaginationResponse,
|
|
13
|
+
} from "../types";
|
|
14
|
+
|
|
15
|
+
const listProduct = async (
|
|
16
|
+
variables: QueryParams,
|
|
17
|
+
fields?: string[],
|
|
18
|
+
config?: ConfigType
|
|
19
|
+
) => {
|
|
20
|
+
try {
|
|
21
|
+
const { data, errors } = await fetchQuery({
|
|
22
|
+
operationName: "listProduct",
|
|
23
|
+
config,
|
|
24
|
+
variables,
|
|
25
|
+
allReturnFields,
|
|
26
|
+
fields,
|
|
27
|
+
query: (returnFields: string) => `
|
|
28
|
+
query listProduct (
|
|
29
|
+
$brandId: StringFilterInput,
|
|
30
|
+
$categoryIds: CategoryFilterInput,
|
|
31
|
+
$id: StringFilterInput,
|
|
32
|
+
$includeDeleted: Boolean,
|
|
33
|
+
$name: StringFilterInput,
|
|
34
|
+
$pagination: PaginationInput,
|
|
35
|
+
$search: String,
|
|
36
|
+
$updatedAt: DateFilterInput,
|
|
37
|
+
) {
|
|
38
|
+
listProduct (
|
|
39
|
+
brandId: $brandId,
|
|
40
|
+
categoryIds: $categoryIds,
|
|
41
|
+
id: $id,
|
|
42
|
+
includeDeleted: $includeDeleted,
|
|
43
|
+
name: $name,
|
|
44
|
+
pagination: $pagination,
|
|
45
|
+
search: $search,
|
|
46
|
+
updatedAt: $updatedAt,
|
|
47
|
+
) ${returnFields}
|
|
48
|
+
}
|
|
49
|
+
`,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return new APIResponse<ProductPaginationResponse>(
|
|
53
|
+
data?.listProduct,
|
|
54
|
+
errors
|
|
55
|
+
);
|
|
56
|
+
} catch (err) {
|
|
57
|
+
return handleAPIError(err);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export default listProduct;
|
|
62
|
+
|
|
63
|
+
export type QueryParams = {
|
|
64
|
+
brandId?: StringFilterInput | null;
|
|
65
|
+
categoryIds?: CategoryFilterInput | null;
|
|
66
|
+
id?: StringFilterInput | null;
|
|
67
|
+
includeDeleted?: boolean | null;
|
|
68
|
+
name?: StringFilterInput | null;
|
|
69
|
+
pagination?: PaginationInput | null;
|
|
70
|
+
search?: string | null;
|
|
71
|
+
updatedAt?: DateFilterInput | null;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const allReturnFields =
|
|
75
|
+
"{count data {attributes {imageIds productAttributeId productAttributeOptionId value } brandId categoryIds createdAt deleted description groupVariantsByVariantTypeId id maxQuantityPerCart metaData {canonicals createdAt deleted description disableIndex id metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations {description locale pageTitle } updatedAt } name productOptionSetId productVariantTypes {order variantTypeId variantValueIds } salesChannelIds shortDescription tagIds translations {description locale name } type updatedAt variants {attributes {imageIds productAttributeId productAttributeOptionId value } barcodeList createdAt deleted hsCode id images {imageId isMain isVideo order } isActive prices {buyPrice currency discountPrice priceListId sellPrice } sellIfOutOfStock sku stocks {stockCount stockLocationId } updatedAt variantValueIds {variantTypeId variantValueId } weight } vendorId weight } hasNext limit page }";
|
|
76
|
+
|
|
77
|
+
export enum ResponseField {
|
|
78
|
+
COUNT = "count",
|
|
79
|
+
DATA__ATTRIBUTES__IMAGE_IDS = "data.attributes.imageIds",
|
|
80
|
+
DATA__ATTRIBUTES__PRODUCT_ATTRIBUTE_ID = "data.attributes.productAttributeId",
|
|
81
|
+
DATA__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION_ID = "data.attributes.productAttributeOptionId",
|
|
82
|
+
DATA__ATTRIBUTES__VALUE = "data.attributes.value",
|
|
83
|
+
DATA__BRAND_ID = "data.brandId",
|
|
84
|
+
DATA__CATEGORY_IDS = "data.categoryIds",
|
|
85
|
+
DATA__CREATED_AT = "data.createdAt",
|
|
86
|
+
DATA__DELETED = "data.deleted",
|
|
87
|
+
DATA__DESCRIPTION = "data.description",
|
|
88
|
+
DATA__GROUP_VARIANTS_BY_VARIANT_TYPE_ID = "data.groupVariantsByVariantTypeId",
|
|
89
|
+
DATA__ID = "data.id",
|
|
90
|
+
DATA__MAX_QUANTITY_PER_CART = "data.maxQuantityPerCart",
|
|
91
|
+
DATA__META_DATA__CANONICALS = "data.metaData.canonicals",
|
|
92
|
+
DATA__META_DATA__CREATED_AT = "data.metaData.createdAt",
|
|
93
|
+
DATA__META_DATA__DELETED = "data.metaData.deleted",
|
|
94
|
+
DATA__META_DATA__DESCRIPTION = "data.metaData.description",
|
|
95
|
+
DATA__META_DATA__DISABLE_INDEX = "data.metaData.disableIndex",
|
|
96
|
+
DATA__META_DATA__ID = "data.metaData.id",
|
|
97
|
+
DATA__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "data.metaData.metadataOverrides.description",
|
|
98
|
+
DATA__META_DATA__METADATA_OVERRIDES__LANGUAGE = "data.metaData.metadataOverrides.language",
|
|
99
|
+
DATA__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "data.metaData.metadataOverrides.pageTitle",
|
|
100
|
+
DATA__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "data.metaData.metadataOverrides.storefrontId",
|
|
101
|
+
DATA__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "data.metaData.metadataOverrides.storefrontRegionId",
|
|
102
|
+
DATA__META_DATA__PAGE_TITLE = "data.metaData.pageTitle",
|
|
103
|
+
DATA__META_DATA__REDIRECT_TO = "data.metaData.redirectTo",
|
|
104
|
+
DATA__META_DATA__SLUG = "data.metaData.slug",
|
|
105
|
+
DATA__META_DATA__TARGET_ID = "data.metaData.targetId",
|
|
106
|
+
DATA__META_DATA__TARGET_TYPE = "data.metaData.targetType",
|
|
107
|
+
DATA__META_DATA__TRANSLATIONS__DESCRIPTION = "data.metaData.translations.description",
|
|
108
|
+
DATA__META_DATA__TRANSLATIONS__LOCALE = "data.metaData.translations.locale",
|
|
109
|
+
DATA__META_DATA__TRANSLATIONS__PAGE_TITLE = "data.metaData.translations.pageTitle",
|
|
110
|
+
DATA__META_DATA__UPDATED_AT = "data.metaData.updatedAt",
|
|
111
|
+
DATA__NAME = "data.name",
|
|
112
|
+
DATA__PRODUCT_OPTION_SET_ID = "data.productOptionSetId",
|
|
113
|
+
DATA__PRODUCT_VARIANT_TYPES__ORDER = "data.productVariantTypes.order",
|
|
114
|
+
DATA__PRODUCT_VARIANT_TYPES__VARIANT_TYPE_ID = "data.productVariantTypes.variantTypeId",
|
|
115
|
+
DATA__PRODUCT_VARIANT_TYPES__VARIANT_VALUE_IDS = "data.productVariantTypes.variantValueIds",
|
|
116
|
+
DATA__SALES_CHANNEL_IDS = "data.salesChannelIds",
|
|
117
|
+
DATA__SHORT_DESCRIPTION = "data.shortDescription",
|
|
118
|
+
DATA__TAG_IDS = "data.tagIds",
|
|
119
|
+
DATA__TRANSLATIONS__DESCRIPTION = "data.translations.description",
|
|
120
|
+
DATA__TRANSLATIONS__LOCALE = "data.translations.locale",
|
|
121
|
+
DATA__TRANSLATIONS__NAME = "data.translations.name",
|
|
122
|
+
DATA__TYPE = "data.type",
|
|
123
|
+
DATA__UPDATED_AT = "data.updatedAt",
|
|
124
|
+
DATA__VARIANTS__ATTRIBUTES__IMAGE_IDS = "data.variants.attributes.imageIds",
|
|
125
|
+
DATA__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_ID = "data.variants.attributes.productAttributeId",
|
|
126
|
+
DATA__VARIANTS__ATTRIBUTES__PRODUCT_ATTRIBUTE_OPTION_ID = "data.variants.attributes.productAttributeOptionId",
|
|
127
|
+
DATA__VARIANTS__ATTRIBUTES__VALUE = "data.variants.attributes.value",
|
|
128
|
+
DATA__VARIANTS__BARCODE_LIST = "data.variants.barcodeList",
|
|
129
|
+
DATA__VARIANTS__CREATED_AT = "data.variants.createdAt",
|
|
130
|
+
DATA__VARIANTS__DELETED = "data.variants.deleted",
|
|
131
|
+
DATA__VARIANTS__HS_CODE = "data.variants.hsCode",
|
|
132
|
+
DATA__VARIANTS__ID = "data.variants.id",
|
|
133
|
+
DATA__VARIANTS__IMAGES__IMAGE_ID = "data.variants.images.imageId",
|
|
134
|
+
DATA__VARIANTS__IMAGES__IS_MAIN = "data.variants.images.isMain",
|
|
135
|
+
DATA__VARIANTS__IMAGES__IS_VIDEO = "data.variants.images.isVideo",
|
|
136
|
+
DATA__VARIANTS__IMAGES__ORDER = "data.variants.images.order",
|
|
137
|
+
DATA__VARIANTS__IS_ACTIVE = "data.variants.isActive",
|
|
138
|
+
DATA__VARIANTS__PRICES__BUY_PRICE = "data.variants.prices.buyPrice",
|
|
139
|
+
DATA__VARIANTS__PRICES__CURRENCY = "data.variants.prices.currency",
|
|
140
|
+
DATA__VARIANTS__PRICES__DISCOUNT_PRICE = "data.variants.prices.discountPrice",
|
|
141
|
+
DATA__VARIANTS__PRICES__PRICE_LIST_ID = "data.variants.prices.priceListId",
|
|
142
|
+
DATA__VARIANTS__PRICES__SELL_PRICE = "data.variants.prices.sellPrice",
|
|
143
|
+
DATA__VARIANTS__SELL_IF_OUT_OF_STOCK = "data.variants.sellIfOutOfStock",
|
|
144
|
+
DATA__VARIANTS__SKU = "data.variants.sku",
|
|
145
|
+
DATA__VARIANTS__STOCKS__STOCK_COUNT = "data.variants.stocks.stockCount",
|
|
146
|
+
DATA__VARIANTS__STOCKS__STOCK_LOCATION_ID = "data.variants.stocks.stockLocationId",
|
|
147
|
+
DATA__VARIANTS__UPDATED_AT = "data.variants.updatedAt",
|
|
148
|
+
DATA__VARIANTS__VARIANT_VALUE_IDS__VARIANT_TYPE_ID = "data.variants.variantValueIds.variantTypeId",
|
|
149
|
+
DATA__VARIANTS__VARIANT_VALUE_IDS__VARIANT_VALUE_ID = "data.variants.variantValueIds.variantValueId",
|
|
150
|
+
DATA__VARIANTS__WEIGHT = "data.variants.weight",
|
|
151
|
+
DATA__VENDOR_ID = "data.vendorId",
|
|
152
|
+
DATA__WEIGHT = "data.weight",
|
|
153
|
+
HAS_NEXT = "hasNext",
|
|
154
|
+
LIMIT = "limit",
|
|
155
|
+
PAGE = "page",
|
|
156
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import { StringFilterInput, DateFilterInput, ProductAttribute } from "../types";
|
|
8
|
+
|
|
9
|
+
const listProductAttribute = async (
|
|
10
|
+
variables: QueryParams,
|
|
11
|
+
fields?: string[],
|
|
12
|
+
config?: ConfigType
|
|
13
|
+
) => {
|
|
14
|
+
try {
|
|
15
|
+
const { data, errors } = await fetchQuery({
|
|
16
|
+
operationName: "listProductAttribute",
|
|
17
|
+
config,
|
|
18
|
+
variables,
|
|
19
|
+
allReturnFields,
|
|
20
|
+
fields,
|
|
21
|
+
query: (returnFields: string) => `
|
|
22
|
+
query listProductAttribute (
|
|
23
|
+
$id: StringFilterInput,
|
|
24
|
+
$includeDeleted: Boolean,
|
|
25
|
+
$name: StringFilterInput,
|
|
26
|
+
$updatedAt: DateFilterInput,
|
|
27
|
+
) {
|
|
28
|
+
listProductAttribute (
|
|
29
|
+
id: $id,
|
|
30
|
+
includeDeleted: $includeDeleted,
|
|
31
|
+
name: $name,
|
|
32
|
+
updatedAt: $updatedAt,
|
|
33
|
+
) ${returnFields}
|
|
34
|
+
}
|
|
35
|
+
`,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
return new APIResponse<ProductAttribute[]>(
|
|
39
|
+
data?.listProductAttribute,
|
|
40
|
+
errors
|
|
41
|
+
);
|
|
42
|
+
} catch (err) {
|
|
43
|
+
return handleAPIError(err);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default listProductAttribute;
|
|
48
|
+
|
|
49
|
+
export type QueryParams = {
|
|
50
|
+
id?: StringFilterInput | null;
|
|
51
|
+
includeDeleted?: boolean | null;
|
|
52
|
+
name?: StringFilterInput | null;
|
|
53
|
+
updatedAt?: DateFilterInput | null;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const allReturnFields =
|
|
57
|
+
"{createdAt deleted description id name options {createdAt deleted id name updatedAt } tableTemplate {columns {id name } rows {id name } } translations {description locale name options {id name } } type updatedAt }";
|
|
58
|
+
|
|
59
|
+
export enum ResponseField {
|
|
60
|
+
CREATED_AT = "createdAt",
|
|
61
|
+
DELETED = "deleted",
|
|
62
|
+
DESCRIPTION = "description",
|
|
63
|
+
ID = "id",
|
|
64
|
+
NAME = "name",
|
|
65
|
+
OPTIONS__CREATED_AT = "options.createdAt",
|
|
66
|
+
OPTIONS__DELETED = "options.deleted",
|
|
67
|
+
OPTIONS__ID = "options.id",
|
|
68
|
+
OPTIONS__NAME = "options.name",
|
|
69
|
+
OPTIONS__UPDATED_AT = "options.updatedAt",
|
|
70
|
+
TABLE_TEMPLATE__COLUMNS__ID = "tableTemplate.columns.id",
|
|
71
|
+
TABLE_TEMPLATE__COLUMNS__NAME = "tableTemplate.columns.name",
|
|
72
|
+
TABLE_TEMPLATE__ROWS__ID = "tableTemplate.rows.id",
|
|
73
|
+
TABLE_TEMPLATE__ROWS__NAME = "tableTemplate.rows.name",
|
|
74
|
+
TRANSLATIONS__DESCRIPTION = "translations.description",
|
|
75
|
+
TRANSLATIONS__LOCALE = "translations.locale",
|
|
76
|
+
TRANSLATIONS__NAME = "translations.name",
|
|
77
|
+
TRANSLATIONS__OPTIONS__ID = "translations.options.id",
|
|
78
|
+
TRANSLATIONS__OPTIONS__NAME = "translations.options.name",
|
|
79
|
+
TYPE = "type",
|
|
80
|
+
UPDATED_AT = "updatedAt",
|
|
81
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import {
|
|
8
|
+
StringFilterInput,
|
|
9
|
+
DateFilterInput,
|
|
10
|
+
ProductBackInStockRemind,
|
|
11
|
+
} from "../types";
|
|
12
|
+
|
|
13
|
+
const listProductBackInStockRemind = async (
|
|
14
|
+
variables: QueryParams,
|
|
15
|
+
fields?: string[],
|
|
16
|
+
config?: ConfigType
|
|
17
|
+
) => {
|
|
18
|
+
try {
|
|
19
|
+
const { data, errors } = await fetchQuery({
|
|
20
|
+
operationName: "listProductBackInStockRemind",
|
|
21
|
+
config,
|
|
22
|
+
variables,
|
|
23
|
+
allReturnFields,
|
|
24
|
+
fields,
|
|
25
|
+
query: (returnFields: string) => `
|
|
26
|
+
query listProductBackInStockRemind (
|
|
27
|
+
$email: StringFilterInput,
|
|
28
|
+
$id: StringFilterInput,
|
|
29
|
+
$includeDeleted: Boolean,
|
|
30
|
+
$productId: StringFilterInput,
|
|
31
|
+
$updatedAt: DateFilterInput,
|
|
32
|
+
$variantId: StringFilterInput,
|
|
33
|
+
) {
|
|
34
|
+
listProductBackInStockRemind (
|
|
35
|
+
email: $email,
|
|
36
|
+
id: $id,
|
|
37
|
+
includeDeleted: $includeDeleted,
|
|
38
|
+
productId: $productId,
|
|
39
|
+
updatedAt: $updatedAt,
|
|
40
|
+
variantId: $variantId,
|
|
41
|
+
) ${returnFields}
|
|
42
|
+
}
|
|
43
|
+
`,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return new APIResponse<ProductBackInStockRemind[]>(
|
|
47
|
+
data?.listProductBackInStockRemind,
|
|
48
|
+
errors
|
|
49
|
+
);
|
|
50
|
+
} catch (err) {
|
|
51
|
+
return handleAPIError(err);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export default listProductBackInStockRemind;
|
|
56
|
+
|
|
57
|
+
export type QueryParams = {
|
|
58
|
+
email?: StringFilterInput | null;
|
|
59
|
+
id?: StringFilterInput | null;
|
|
60
|
+
includeDeleted?: boolean | null;
|
|
61
|
+
productId?: StringFilterInput | null;
|
|
62
|
+
updatedAt?: DateFilterInput | null;
|
|
63
|
+
variantId?: StringFilterInput | null;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const allReturnFields =
|
|
67
|
+
"{createdAt customerId deleted email id productId storefrontId updatedAt variantId }";
|
|
68
|
+
|
|
69
|
+
export enum ResponseField {
|
|
70
|
+
CREATED_AT = "createdAt",
|
|
71
|
+
CUSTOMER_ID = "customerId",
|
|
72
|
+
DELETED = "deleted",
|
|
73
|
+
EMAIL = "email",
|
|
74
|
+
ID = "id",
|
|
75
|
+
PRODUCT_ID = "productId",
|
|
76
|
+
STOREFRONT_ID = "storefrontId",
|
|
77
|
+
UPDATED_AT = "updatedAt",
|
|
78
|
+
VARIANT_ID = "variantId",
|
|
79
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fetchQuery,
|
|
3
|
+
ConfigType,
|
|
4
|
+
APIResponse,
|
|
5
|
+
handleAPIError,
|
|
6
|
+
} from "@ikas/fe-api-client";
|
|
7
|
+
import {
|
|
8
|
+
StringFilterInput,
|
|
9
|
+
PaginationInput,
|
|
10
|
+
DateFilterInput,
|
|
11
|
+
ProductBrandPaginationResponse,
|
|
12
|
+
} from "../types";
|
|
13
|
+
|
|
14
|
+
const listProductBrand = async (
|
|
15
|
+
variables: QueryParams,
|
|
16
|
+
fields?: string[],
|
|
17
|
+
config?: ConfigType
|
|
18
|
+
) => {
|
|
19
|
+
try {
|
|
20
|
+
const { data, errors } = await fetchQuery({
|
|
21
|
+
operationName: "listProductBrand",
|
|
22
|
+
config,
|
|
23
|
+
variables,
|
|
24
|
+
allReturnFields,
|
|
25
|
+
fields,
|
|
26
|
+
query: (returnFields: string) => `
|
|
27
|
+
query listProductBrand (
|
|
28
|
+
$id: StringFilterInput,
|
|
29
|
+
$includeDeleted: Boolean,
|
|
30
|
+
$name: StringFilterInput,
|
|
31
|
+
$pagination: PaginationInput,
|
|
32
|
+
$search: String,
|
|
33
|
+
$sort: String,
|
|
34
|
+
$updatedAt: DateFilterInput,
|
|
35
|
+
) {
|
|
36
|
+
listProductBrand (
|
|
37
|
+
id: $id,
|
|
38
|
+
includeDeleted: $includeDeleted,
|
|
39
|
+
name: $name,
|
|
40
|
+
pagination: $pagination,
|
|
41
|
+
search: $search,
|
|
42
|
+
sort: $sort,
|
|
43
|
+
updatedAt: $updatedAt,
|
|
44
|
+
) ${returnFields}
|
|
45
|
+
}
|
|
46
|
+
`,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
return new APIResponse<ProductBrandPaginationResponse>(
|
|
50
|
+
data?.listProductBrand,
|
|
51
|
+
errors
|
|
52
|
+
);
|
|
53
|
+
} catch (err) {
|
|
54
|
+
return handleAPIError(err);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export default listProductBrand;
|
|
59
|
+
|
|
60
|
+
export type QueryParams = {
|
|
61
|
+
id?: StringFilterInput | null;
|
|
62
|
+
includeDeleted?: boolean | null;
|
|
63
|
+
name?: StringFilterInput | null;
|
|
64
|
+
pagination?: PaginationInput | null;
|
|
65
|
+
search?: string | null;
|
|
66
|
+
sort?: string | null;
|
|
67
|
+
updatedAt?: DateFilterInput | null;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const allReturnFields =
|
|
71
|
+
"{count data {createdAt deleted description id imageId metaData {canonicals createdAt deleted description disableIndex id metadataOverrides {description language pageTitle storefrontId storefrontRegionId } pageTitle redirectTo slug targetId targetType translations {description locale pageTitle } updatedAt } name orderType salesChannelIds translations {description locale name } updatedAt } hasNext limit page }";
|
|
72
|
+
|
|
73
|
+
export enum ResponseField {
|
|
74
|
+
COUNT = "count",
|
|
75
|
+
DATA__CREATED_AT = "data.createdAt",
|
|
76
|
+
DATA__DELETED = "data.deleted",
|
|
77
|
+
DATA__DESCRIPTION = "data.description",
|
|
78
|
+
DATA__ID = "data.id",
|
|
79
|
+
DATA__IMAGE_ID = "data.imageId",
|
|
80
|
+
DATA__META_DATA__CANONICALS = "data.metaData.canonicals",
|
|
81
|
+
DATA__META_DATA__CREATED_AT = "data.metaData.createdAt",
|
|
82
|
+
DATA__META_DATA__DELETED = "data.metaData.deleted",
|
|
83
|
+
DATA__META_DATA__DESCRIPTION = "data.metaData.description",
|
|
84
|
+
DATA__META_DATA__DISABLE_INDEX = "data.metaData.disableIndex",
|
|
85
|
+
DATA__META_DATA__ID = "data.metaData.id",
|
|
86
|
+
DATA__META_DATA__METADATA_OVERRIDES__DESCRIPTION = "data.metaData.metadataOverrides.description",
|
|
87
|
+
DATA__META_DATA__METADATA_OVERRIDES__LANGUAGE = "data.metaData.metadataOverrides.language",
|
|
88
|
+
DATA__META_DATA__METADATA_OVERRIDES__PAGE_TITLE = "data.metaData.metadataOverrides.pageTitle",
|
|
89
|
+
DATA__META_DATA__METADATA_OVERRIDES__STOREFRONT_ID = "data.metaData.metadataOverrides.storefrontId",
|
|
90
|
+
DATA__META_DATA__METADATA_OVERRIDES__STOREFRONT_REGION_ID = "data.metaData.metadataOverrides.storefrontRegionId",
|
|
91
|
+
DATA__META_DATA__PAGE_TITLE = "data.metaData.pageTitle",
|
|
92
|
+
DATA__META_DATA__REDIRECT_TO = "data.metaData.redirectTo",
|
|
93
|
+
DATA__META_DATA__SLUG = "data.metaData.slug",
|
|
94
|
+
DATA__META_DATA__TARGET_ID = "data.metaData.targetId",
|
|
95
|
+
DATA__META_DATA__TARGET_TYPE = "data.metaData.targetType",
|
|
96
|
+
DATA__META_DATA__TRANSLATIONS__DESCRIPTION = "data.metaData.translations.description",
|
|
97
|
+
DATA__META_DATA__TRANSLATIONS__LOCALE = "data.metaData.translations.locale",
|
|
98
|
+
DATA__META_DATA__TRANSLATIONS__PAGE_TITLE = "data.metaData.translations.pageTitle",
|
|
99
|
+
DATA__META_DATA__UPDATED_AT = "data.metaData.updatedAt",
|
|
100
|
+
DATA__NAME = "data.name",
|
|
101
|
+
DATA__ORDER_TYPE = "data.orderType",
|
|
102
|
+
DATA__SALES_CHANNEL_IDS = "data.salesChannelIds",
|
|
103
|
+
DATA__TRANSLATIONS__DESCRIPTION = "data.translations.description",
|
|
104
|
+
DATA__TRANSLATIONS__LOCALE = "data.translations.locale",
|
|
105
|
+
DATA__TRANSLATIONS__NAME = "data.translations.name",
|
|
106
|
+
DATA__UPDATED_AT = "data.updatedAt",
|
|
107
|
+
HAS_NEXT = "hasNext",
|
|
108
|
+
LIMIT = "limit",
|
|
109
|
+
PAGE = "page",
|
|
110
|
+
}
|