@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,16 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CampaignFilterTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class CampaignFilterData {
|
|
5
|
+
idList: string[];
|
|
6
|
+
type: CampaignFilterTypeEnum;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CampaignFilterData> = {}) {
|
|
9
|
+
this.idList = data.idList || [];
|
|
10
|
+
this.type = data.type || CampaignFilterTypeEnum.CATEGORY;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class CampaignFilter extends CampaignFilterData {}
|
|
15
|
+
export type PartialCampaignFilter = Partial<CampaignFilter>;
|
|
16
|
+
export type ReadOnlyCampaignFilter = DeepReadonly<CampaignFilter>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CampaignMinMaxRangeFieldData {
|
|
4
|
+
max: number | null;
|
|
5
|
+
min: number | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CampaignMinMaxRangeFieldData> = {}) {
|
|
8
|
+
this.max = data.max !== undefined && data.max !== null ? data.max : null;
|
|
9
|
+
this.min = data.min !== undefined && data.min !== null ? data.min : null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CampaignMinMaxRangeField extends CampaignMinMaxRangeFieldData {}
|
|
14
|
+
export type PartialCampaignMinMaxRangeField = Partial<CampaignMinMaxRangeField>;
|
|
15
|
+
export type ReadOnlyCampaignMinMaxRangeField =
|
|
16
|
+
DeepReadonly<CampaignMinMaxRangeField>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import {
|
|
4
|
+
CampaignOfferFollowUpActionTypeEnum,
|
|
5
|
+
CampaignOfferTargetPageTypeEnum,
|
|
6
|
+
CampaignOfferTypeEnum,
|
|
7
|
+
} from "../types";
|
|
8
|
+
import { CampaignOfferProductData } from "./CampaignOfferProduct";
|
|
9
|
+
import { CampaignOfferTriggerSettingsData } from "./CampaignOfferTriggerSettings";
|
|
10
|
+
|
|
11
|
+
export class CampaignOfferData extends BaseModelData {
|
|
12
|
+
availableSalesChannelIds: string[];
|
|
13
|
+
endDate: any | null;
|
|
14
|
+
followUpActionType: CampaignOfferFollowUpActionTypeEnum;
|
|
15
|
+
minimumRequiredCartAmount: number | null;
|
|
16
|
+
name: string;
|
|
17
|
+
offers: CampaignOfferProductData[];
|
|
18
|
+
startDate: any | null;
|
|
19
|
+
targetPageTypes: CampaignOfferTargetPageTypeEnum[];
|
|
20
|
+
triggerSettings: CampaignOfferTriggerSettingsData;
|
|
21
|
+
type: CampaignOfferTypeEnum;
|
|
22
|
+
|
|
23
|
+
constructor(data: Partial<CampaignOfferData> = {}) {
|
|
24
|
+
super(data);
|
|
25
|
+
|
|
26
|
+
this.availableSalesChannelIds = data.availableSalesChannelIds || [];
|
|
27
|
+
this.endDate = data.endDate || null;
|
|
28
|
+
this.followUpActionType =
|
|
29
|
+
data.followUpActionType || CampaignOfferFollowUpActionTypeEnum.DO_NOTHING;
|
|
30
|
+
this.minimumRequiredCartAmount =
|
|
31
|
+
data.minimumRequiredCartAmount !== undefined &&
|
|
32
|
+
data.minimumRequiredCartAmount !== null
|
|
33
|
+
? data.minimumRequiredCartAmount
|
|
34
|
+
: null;
|
|
35
|
+
this.name = data.name || "";
|
|
36
|
+
this.offers = data.offers
|
|
37
|
+
? data.offers.map((c) => new CampaignOfferProductData(c))
|
|
38
|
+
: [];
|
|
39
|
+
this.startDate = data.startDate || null;
|
|
40
|
+
this.targetPageTypes = data.targetPageTypes || [];
|
|
41
|
+
this.triggerSettings = data.triggerSettings
|
|
42
|
+
? new CampaignOfferTriggerSettingsData(data.triggerSettings)
|
|
43
|
+
: new CampaignOfferTriggerSettingsData();
|
|
44
|
+
this.type = data.type || CampaignOfferTypeEnum.CROSS_SELL;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class CampaignOffer extends CampaignOfferData {}
|
|
49
|
+
export type PartialCampaignOffer = Partial<CampaignOffer>;
|
|
50
|
+
export type ReadOnlyCampaignOffer = DeepReadonly<CampaignOffer>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { AmountTypeEnum, CampaignOfferProductShowCriteriaEnum } from "../types";
|
|
3
|
+
import { CampaignOfferProductTranslationData } from "./CampaignOfferProductTranslation";
|
|
4
|
+
|
|
5
|
+
export class CampaignOfferProductData {
|
|
6
|
+
countdownMinutes: number | null;
|
|
7
|
+
description: string | null;
|
|
8
|
+
discountAmount: number | null;
|
|
9
|
+
discountType: AmountTypeEnum | null;
|
|
10
|
+
excludedVariantIdList: string[] | null;
|
|
11
|
+
id: string;
|
|
12
|
+
order: number;
|
|
13
|
+
productId: string;
|
|
14
|
+
showCriteria: CampaignOfferProductShowCriteriaEnum | null;
|
|
15
|
+
skipOfferIfProductExistsInCart: boolean | null;
|
|
16
|
+
title: string;
|
|
17
|
+
translations: CampaignOfferProductTranslationData[] | null;
|
|
18
|
+
|
|
19
|
+
constructor(data: Partial<CampaignOfferProductData> = {}) {
|
|
20
|
+
this.countdownMinutes =
|
|
21
|
+
data.countdownMinutes !== undefined && data.countdownMinutes !== null
|
|
22
|
+
? data.countdownMinutes
|
|
23
|
+
: null;
|
|
24
|
+
this.description = data.description || null;
|
|
25
|
+
this.discountAmount =
|
|
26
|
+
data.discountAmount !== undefined && data.discountAmount !== null
|
|
27
|
+
? data.discountAmount
|
|
28
|
+
: null;
|
|
29
|
+
this.discountType = data.discountType || null;
|
|
30
|
+
this.excludedVariantIdList = data.excludedVariantIdList || null;
|
|
31
|
+
this.id = data.id || "";
|
|
32
|
+
this.order = data.order || 0;
|
|
33
|
+
this.productId = data.productId || "";
|
|
34
|
+
this.showCriteria = data.showCriteria || null;
|
|
35
|
+
this.skipOfferIfProductExistsInCart =
|
|
36
|
+
data.skipOfferIfProductExistsInCart !== undefined &&
|
|
37
|
+
data.skipOfferIfProductExistsInCart !== null
|
|
38
|
+
? data.skipOfferIfProductExistsInCart
|
|
39
|
+
: null;
|
|
40
|
+
this.title = data.title || "";
|
|
41
|
+
this.translations = data.translations
|
|
42
|
+
? data.translations.map((c) => new CampaignOfferProductTranslationData(c))
|
|
43
|
+
: null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class CampaignOfferProduct extends CampaignOfferProductData {}
|
|
48
|
+
export type PartialCampaignOfferProduct = Partial<CampaignOfferProduct>;
|
|
49
|
+
export type ReadOnlyCampaignOfferProduct = DeepReadonly<CampaignOfferProduct>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CampaignOfferProductTranslationData {
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
title: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CampaignOfferProductTranslationData> = {}) {
|
|
9
|
+
this.description = data.description || null;
|
|
10
|
+
this.locale = data.locale || "";
|
|
11
|
+
this.title = data.title || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CampaignOfferProductTranslation extends CampaignOfferProductTranslationData {}
|
|
16
|
+
export type PartialCampaignOfferProductTranslation =
|
|
17
|
+
Partial<CampaignOfferProductTranslation>;
|
|
18
|
+
export type ReadOnlyCampaignOfferProductTranslation =
|
|
19
|
+
DeepReadonly<CampaignOfferProductTranslation>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CampaignOfferTriggerFilterTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class CampaignOfferTriggerSettingsData {
|
|
5
|
+
filterType: CampaignOfferTriggerFilterTypeEnum;
|
|
6
|
+
valueList: string[];
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CampaignOfferTriggerSettingsData> = {}) {
|
|
9
|
+
this.filterType =
|
|
10
|
+
data.filterType || CampaignOfferTriggerFilterTypeEnum.ALL_PRODUCTS;
|
|
11
|
+
this.valueList = data.valueList || [];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CampaignOfferTriggerSettings extends CampaignOfferTriggerSettingsData {}
|
|
16
|
+
export type PartialCampaignOfferTriggerSettings =
|
|
17
|
+
Partial<CampaignOfferTriggerSettings>;
|
|
18
|
+
export type ReadOnlyCampaignOfferTriggerSettings =
|
|
19
|
+
DeepReadonly<CampaignOfferTriggerSettings>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CartCreatedByEnum, CartStatusEnum } from "../types";
|
|
4
|
+
import { CartCampaignOfferData } from "./CartCampaignOffer";
|
|
5
|
+
import { OrderLineItemData } from "./OrderLineItem";
|
|
6
|
+
import { CartStorefrontRoutingData } from "./CartStorefrontRouting";
|
|
7
|
+
import { OrderTaxLineData } from "./OrderTaxLine";
|
|
8
|
+
|
|
9
|
+
export class CartData extends BaseModelData {
|
|
10
|
+
campaignOffers: CartCampaignOfferData[] | null;
|
|
11
|
+
createdBy: CartCreatedByEnum | null;
|
|
12
|
+
currencyCode: string | null;
|
|
13
|
+
customerId: string | null;
|
|
14
|
+
dueDate: any;
|
|
15
|
+
itemCount: number;
|
|
16
|
+
items: OrderLineItemData[];
|
|
17
|
+
merchantId: string;
|
|
18
|
+
priceListId: string | null;
|
|
19
|
+
salesChannelId: string;
|
|
20
|
+
status: CartStatusEnum;
|
|
21
|
+
storefrontId: string | null;
|
|
22
|
+
storefrontRouting: CartStorefrontRoutingData | null;
|
|
23
|
+
storefrontRoutingId: string | null;
|
|
24
|
+
storefrontThemeId: string | null;
|
|
25
|
+
taxLines: OrderTaxLineData[] | null;
|
|
26
|
+
totalPrice: number;
|
|
27
|
+
|
|
28
|
+
constructor(data: Partial<CartData> = {}) {
|
|
29
|
+
super(data);
|
|
30
|
+
|
|
31
|
+
this.campaignOffers = data.campaignOffers
|
|
32
|
+
? data.campaignOffers.map((c) => new CartCampaignOfferData(c))
|
|
33
|
+
: null;
|
|
34
|
+
this.createdBy = data.createdBy || null;
|
|
35
|
+
this.currencyCode = data.currencyCode || null;
|
|
36
|
+
this.customerId = data.customerId || null;
|
|
37
|
+
this.dueDate = data.dueDate || null;
|
|
38
|
+
this.itemCount = data.itemCount || 0;
|
|
39
|
+
this.items = data.items
|
|
40
|
+
? data.items.map((o) => new OrderLineItemData(o))
|
|
41
|
+
: [];
|
|
42
|
+
this.merchantId = data.merchantId || "";
|
|
43
|
+
this.priceListId = data.priceListId || null;
|
|
44
|
+
this.salesChannelId = data.salesChannelId || "";
|
|
45
|
+
this.status = data.status || CartStatusEnum.ACTIVE;
|
|
46
|
+
this.storefrontId = data.storefrontId || null;
|
|
47
|
+
this.storefrontRouting = data.storefrontRouting
|
|
48
|
+
? new CartStorefrontRoutingData(data.storefrontRouting)
|
|
49
|
+
: null;
|
|
50
|
+
this.storefrontRoutingId = data.storefrontRoutingId || null;
|
|
51
|
+
this.storefrontThemeId = data.storefrontThemeId || null;
|
|
52
|
+
this.taxLines = data.taxLines
|
|
53
|
+
? data.taxLines.map((o) => new OrderTaxLineData(o))
|
|
54
|
+
: null;
|
|
55
|
+
this.totalPrice = data.totalPrice || 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class Cart extends CartData {}
|
|
60
|
+
export type PartialCart = Partial<Cart>;
|
|
61
|
+
export type ReadOnlyCart = DeepReadonly<Cart>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import {
|
|
3
|
+
CartCampaignOfferStatus,
|
|
4
|
+
CampaignOfferTargetPageTypeEnum,
|
|
5
|
+
} from "../types";
|
|
6
|
+
|
|
7
|
+
export class CartCampaignOfferData {
|
|
8
|
+
appliedOrderLineId: string | null;
|
|
9
|
+
campaignOfferId: string;
|
|
10
|
+
campaignOfferProductId: string | null;
|
|
11
|
+
offerEndDate: any | null;
|
|
12
|
+
offerStartDate: any;
|
|
13
|
+
status: CartCampaignOfferStatus;
|
|
14
|
+
targetPageTypes: CampaignOfferTargetPageTypeEnum[];
|
|
15
|
+
triggerSourceOrderLineId: string;
|
|
16
|
+
|
|
17
|
+
constructor(data: Partial<CartCampaignOfferData> = {}) {
|
|
18
|
+
this.appliedOrderLineId = data.appliedOrderLineId || null;
|
|
19
|
+
this.campaignOfferId = data.campaignOfferId || "";
|
|
20
|
+
this.campaignOfferProductId = data.campaignOfferProductId || null;
|
|
21
|
+
this.offerEndDate = data.offerEndDate || null;
|
|
22
|
+
this.offerStartDate = data.offerStartDate || null;
|
|
23
|
+
this.status = data.status || CartCampaignOfferStatus.ACCEPTED;
|
|
24
|
+
this.targetPageTypes = data.targetPageTypes || [];
|
|
25
|
+
this.triggerSourceOrderLineId = data.triggerSourceOrderLineId || "";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class CartCampaignOffer extends CartCampaignOfferData {}
|
|
30
|
+
export type PartialCartCampaignOffer = Partial<CartCampaignOffer>;
|
|
31
|
+
export type ReadOnlyCartCampaignOffer = DeepReadonly<CartCampaignOffer>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CartLineVariantInputData } from "./CartLineVariantInput";
|
|
3
|
+
|
|
4
|
+
export class CartLineItemInputData {
|
|
5
|
+
id: string | null;
|
|
6
|
+
quantity: number;
|
|
7
|
+
variant: CartLineVariantInputData;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<CartLineItemInputData> = {}) {
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.quantity = data.quantity || 0;
|
|
12
|
+
this.variant = data.variant
|
|
13
|
+
? new CartLineVariantInputData(data.variant)
|
|
14
|
+
: new CartLineVariantInputData();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class CartLineItemInput extends CartLineItemInputData {}
|
|
19
|
+
export type PartialCartLineItemInput = Partial<CartLineItemInput>;
|
|
20
|
+
export type ReadOnlyCartLineItemInput = DeepReadonly<CartLineItemInput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CartLineOptionInputData {
|
|
4
|
+
productOptionId: string;
|
|
5
|
+
productOptionsSetId: string;
|
|
6
|
+
values: string[];
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CartLineOptionInputData> = {}) {
|
|
9
|
+
this.productOptionId = data.productOptionId || "";
|
|
10
|
+
this.productOptionsSetId = data.productOptionsSetId || "";
|
|
11
|
+
this.values = data.values || [];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CartLineOptionInput extends CartLineOptionInputData {}
|
|
16
|
+
export type PartialCartLineOptionInput = Partial<CartLineOptionInput>;
|
|
17
|
+
export type ReadOnlyCartLineOptionInput = DeepReadonly<CartLineOptionInput>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CartLineVariantInputData {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CartLineVariantInputData> = {}) {
|
|
8
|
+
this.id = data.id || "";
|
|
9
|
+
this.name = data.name || null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CartLineVariantInput extends CartLineVariantInputData {}
|
|
14
|
+
export type PartialCartLineVariantInput = Partial<CartLineVariantInput>;
|
|
15
|
+
export type ReadOnlyCartLineVariantInput = DeepReadonly<CartLineVariantInput>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CartStorefrontRoutingDynamicCurrencySettingsData } from "./CartStorefrontRoutingDynamicCurrencySettings";
|
|
3
|
+
|
|
4
|
+
export class CartStorefrontRoutingData {
|
|
5
|
+
domain: string | null;
|
|
6
|
+
dynamicCurrencySettings: CartStorefrontRoutingDynamicCurrencySettingsData | null;
|
|
7
|
+
id: string;
|
|
8
|
+
locale: string | null;
|
|
9
|
+
path: string | null;
|
|
10
|
+
priceListId: string | null;
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<CartStorefrontRoutingData> = {}) {
|
|
13
|
+
this.domain = data.domain || null;
|
|
14
|
+
this.dynamicCurrencySettings = data.dynamicCurrencySettings
|
|
15
|
+
? new CartStorefrontRoutingDynamicCurrencySettingsData(
|
|
16
|
+
data.dynamicCurrencySettings
|
|
17
|
+
)
|
|
18
|
+
: null;
|
|
19
|
+
this.id = data.id || "";
|
|
20
|
+
this.locale = data.locale || null;
|
|
21
|
+
this.path = data.path || null;
|
|
22
|
+
this.priceListId = data.priceListId || null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class CartStorefrontRouting extends CartStorefrontRoutingData {}
|
|
27
|
+
export type PartialCartStorefrontRouting = Partial<CartStorefrontRouting>;
|
|
28
|
+
export type ReadOnlyCartStorefrontRouting = DeepReadonly<CartStorefrontRouting>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CartStorefrontRoutingDynamicCurrencySettingsData {
|
|
4
|
+
roundingFormat: string | null;
|
|
5
|
+
targetCurrencyCode: string;
|
|
6
|
+
|
|
7
|
+
constructor(
|
|
8
|
+
data: Partial<CartStorefrontRoutingDynamicCurrencySettingsData> = {}
|
|
9
|
+
) {
|
|
10
|
+
this.roundingFormat = data.roundingFormat || null;
|
|
11
|
+
this.targetCurrencyCode = data.targetCurrencyCode || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CartStorefrontRoutingDynamicCurrencySettings extends CartStorefrontRoutingDynamicCurrencySettingsData {}
|
|
16
|
+
export type PartialCartStorefrontRoutingDynamicCurrencySettings =
|
|
17
|
+
Partial<CartStorefrontRoutingDynamicCurrencySettings>;
|
|
18
|
+
export type ReadOnlyCartStorefrontRoutingDynamicCurrencySettings =
|
|
19
|
+
DeepReadonly<CartStorefrontRoutingDynamicCurrencySettings>;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import {
|
|
4
|
+
CartV2StatusEnum,
|
|
5
|
+
CartCreatedByEnum,
|
|
6
|
+
OrderPackageStatusEnum,
|
|
7
|
+
CheckoutRecoveryEmailStatusEnum,
|
|
8
|
+
CheckoutRecoveryStatusEnum,
|
|
9
|
+
ShippingMethodEnum,
|
|
10
|
+
} from "../types";
|
|
11
|
+
import { AbandonedCartFlowData } from "./AbandonedCartFlow";
|
|
12
|
+
import { AvailableShippingMethodData } from "./AvailableShippingMethod";
|
|
13
|
+
import { OrderAddressData } from "./OrderAddress";
|
|
14
|
+
import { CartV2CampaignOfferData } from "./CartV2CampaignOffer";
|
|
15
|
+
import { OrderCurrencyRateData } from "./OrderCurrencyRate";
|
|
16
|
+
import { OrderCustomerData } from "./OrderCustomer";
|
|
17
|
+
import { OrderGiftPackageLineData } from "./OrderGiftPackageLine";
|
|
18
|
+
import { OrderAdjustmentData } from "./OrderAdjustment";
|
|
19
|
+
import { OrderLineItemData } from "./OrderLineItem";
|
|
20
|
+
import { OrderShippingLineData } from "./OrderShippingLine";
|
|
21
|
+
import { OrderStorefrontRoutingData } from "./OrderStorefrontRouting";
|
|
22
|
+
import { OrderTaxLineData } from "./OrderTaxLine";
|
|
23
|
+
|
|
24
|
+
export class CartV2Data extends BaseModelData {
|
|
25
|
+
abandonedCartFlows: AbandonedCartFlowData[] | null;
|
|
26
|
+
availableShippingMethods: AvailableShippingMethodData[] | null;
|
|
27
|
+
billingAddress: OrderAddressData | null;
|
|
28
|
+
campaignOffers: CartV2CampaignOfferData[] | null;
|
|
29
|
+
cartId: string | null;
|
|
30
|
+
cartStatus: CartV2StatusEnum | null;
|
|
31
|
+
checkoutId: string | null;
|
|
32
|
+
clientIp: string | null;
|
|
33
|
+
couponCode: string | null;
|
|
34
|
+
createdBy: CartCreatedByEnum | null;
|
|
35
|
+
currencyCode: string;
|
|
36
|
+
currencyRates: OrderCurrencyRateData[];
|
|
37
|
+
customer: OrderCustomerData | null;
|
|
38
|
+
customerId: string | null;
|
|
39
|
+
dueDate: any | null;
|
|
40
|
+
giftPackageLines: OrderGiftPackageLineData[] | null;
|
|
41
|
+
giftPackageNote: string | null;
|
|
42
|
+
host: string | null;
|
|
43
|
+
isGiftPackage: boolean | null;
|
|
44
|
+
itemCount: number | null;
|
|
45
|
+
merchantId: string;
|
|
46
|
+
note: string | null;
|
|
47
|
+
orderAdjustments: OrderAdjustmentData[] | null;
|
|
48
|
+
orderLineItems: OrderLineItemData[];
|
|
49
|
+
orderNumber: string | null;
|
|
50
|
+
orderPackageStatus: OrderPackageStatusEnum | null;
|
|
51
|
+
orderedAt: any | null;
|
|
52
|
+
priceListId: string | null;
|
|
53
|
+
recoverEmailStatus: CheckoutRecoveryEmailStatusEnum | null;
|
|
54
|
+
recoveryStatus: CheckoutRecoveryStatusEnum | null;
|
|
55
|
+
salesChannelId: string;
|
|
56
|
+
shippingAddress: OrderAddressData | null;
|
|
57
|
+
shippingLines: OrderShippingLineData[] | null;
|
|
58
|
+
shippingMethod: ShippingMethodEnum;
|
|
59
|
+
shippingSettingsId: string | null;
|
|
60
|
+
shippingZoneRateId: string | null;
|
|
61
|
+
status: CartV2StatusEnum;
|
|
62
|
+
stockLocationId: string | null;
|
|
63
|
+
storefrontId: string | null;
|
|
64
|
+
storefrontRouting: OrderStorefrontRoutingData | null;
|
|
65
|
+
storefrontRoutingId: string | null;
|
|
66
|
+
storefrontThemeId: string | null;
|
|
67
|
+
taxLines: OrderTaxLineData[] | null;
|
|
68
|
+
totalFinalPrice: number;
|
|
69
|
+
totalPrice: number;
|
|
70
|
+
userAgent: string | null;
|
|
71
|
+
|
|
72
|
+
constructor(data: Partial<CartV2Data> = {}) {
|
|
73
|
+
super(data);
|
|
74
|
+
|
|
75
|
+
this.abandonedCartFlows = data.abandonedCartFlows
|
|
76
|
+
? data.abandonedCartFlows.map((a) => new AbandonedCartFlowData(a))
|
|
77
|
+
: null;
|
|
78
|
+
this.availableShippingMethods = data.availableShippingMethods
|
|
79
|
+
? data.availableShippingMethods.map(
|
|
80
|
+
(a) => new AvailableShippingMethodData(a)
|
|
81
|
+
)
|
|
82
|
+
: null;
|
|
83
|
+
this.billingAddress = data.billingAddress
|
|
84
|
+
? new OrderAddressData(data.billingAddress)
|
|
85
|
+
: null;
|
|
86
|
+
this.campaignOffers = data.campaignOffers
|
|
87
|
+
? data.campaignOffers.map((c) => new CartV2CampaignOfferData(c))
|
|
88
|
+
: null;
|
|
89
|
+
this.cartId = data.cartId || null;
|
|
90
|
+
this.cartStatus = data.cartStatus || null;
|
|
91
|
+
this.checkoutId = data.checkoutId || null;
|
|
92
|
+
this.clientIp = data.clientIp || null;
|
|
93
|
+
this.couponCode = data.couponCode || null;
|
|
94
|
+
this.createdBy = data.createdBy || null;
|
|
95
|
+
this.currencyCode = data.currencyCode || "";
|
|
96
|
+
this.currencyRates = data.currencyRates
|
|
97
|
+
? data.currencyRates.map((o) => new OrderCurrencyRateData(o))
|
|
98
|
+
: [];
|
|
99
|
+
this.customer = data.customer ? new OrderCustomerData(data.customer) : null;
|
|
100
|
+
this.customerId = data.customerId || null;
|
|
101
|
+
this.dueDate = data.dueDate || null;
|
|
102
|
+
this.giftPackageLines = data.giftPackageLines
|
|
103
|
+
? data.giftPackageLines.map((o) => new OrderGiftPackageLineData(o))
|
|
104
|
+
: null;
|
|
105
|
+
this.giftPackageNote = data.giftPackageNote || null;
|
|
106
|
+
this.host = data.host || null;
|
|
107
|
+
this.isGiftPackage =
|
|
108
|
+
data.isGiftPackage !== undefined && data.isGiftPackage !== null
|
|
109
|
+
? data.isGiftPackage
|
|
110
|
+
: null;
|
|
111
|
+
this.itemCount =
|
|
112
|
+
data.itemCount !== undefined && data.itemCount !== null
|
|
113
|
+
? data.itemCount
|
|
114
|
+
: null;
|
|
115
|
+
this.merchantId = data.merchantId || "";
|
|
116
|
+
this.note = data.note || null;
|
|
117
|
+
this.orderAdjustments = data.orderAdjustments
|
|
118
|
+
? data.orderAdjustments.map((o) => new OrderAdjustmentData(o))
|
|
119
|
+
: null;
|
|
120
|
+
this.orderLineItems = data.orderLineItems
|
|
121
|
+
? data.orderLineItems.map((o) => new OrderLineItemData(o))
|
|
122
|
+
: [];
|
|
123
|
+
this.orderNumber = data.orderNumber || null;
|
|
124
|
+
this.orderPackageStatus = data.orderPackageStatus || null;
|
|
125
|
+
this.orderedAt = data.orderedAt || null;
|
|
126
|
+
this.priceListId = data.priceListId || null;
|
|
127
|
+
this.recoverEmailStatus = data.recoverEmailStatus || null;
|
|
128
|
+
this.recoveryStatus = data.recoveryStatus || null;
|
|
129
|
+
this.salesChannelId = data.salesChannelId || "";
|
|
130
|
+
this.shippingAddress = data.shippingAddress
|
|
131
|
+
? new OrderAddressData(data.shippingAddress)
|
|
132
|
+
: null;
|
|
133
|
+
this.shippingLines = data.shippingLines
|
|
134
|
+
? data.shippingLines.map((o) => new OrderShippingLineData(o))
|
|
135
|
+
: null;
|
|
136
|
+
this.shippingMethod =
|
|
137
|
+
data.shippingMethod || ShippingMethodEnum.CLICK_AND_COLLECT;
|
|
138
|
+
this.shippingSettingsId = data.shippingSettingsId || null;
|
|
139
|
+
this.shippingZoneRateId = data.shippingZoneRateId || null;
|
|
140
|
+
this.status = data.status || CartV2StatusEnum.COMPLETED;
|
|
141
|
+
this.stockLocationId = data.stockLocationId || null;
|
|
142
|
+
this.storefrontId = data.storefrontId || null;
|
|
143
|
+
this.storefrontRouting = data.storefrontRouting
|
|
144
|
+
? new OrderStorefrontRoutingData(data.storefrontRouting)
|
|
145
|
+
: null;
|
|
146
|
+
this.storefrontRoutingId = data.storefrontRoutingId || null;
|
|
147
|
+
this.storefrontThemeId = data.storefrontThemeId || null;
|
|
148
|
+
this.taxLines = data.taxLines
|
|
149
|
+
? data.taxLines.map((o) => new OrderTaxLineData(o))
|
|
150
|
+
: null;
|
|
151
|
+
this.totalFinalPrice = data.totalFinalPrice || 0;
|
|
152
|
+
this.totalPrice = data.totalPrice || 0;
|
|
153
|
+
this.userAgent = data.userAgent || null;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export class CartV2 extends CartV2Data {}
|
|
158
|
+
export type PartialCartV2 = Partial<CartV2>;
|
|
159
|
+
export type ReadOnlyCartV2 = DeepReadonly<CartV2>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import {
|
|
3
|
+
CartCampaignOfferStatus,
|
|
4
|
+
CampaignOfferTargetPageTypeEnum,
|
|
5
|
+
} from "../types";
|
|
6
|
+
import { CampaignOfferData } from "./CampaignOffer";
|
|
7
|
+
|
|
8
|
+
export class CartV2CampaignOfferData {
|
|
9
|
+
appliedOrderLineId: string | null;
|
|
10
|
+
campaignOffer: CampaignOfferData | null;
|
|
11
|
+
campaignOfferId: string;
|
|
12
|
+
campaignOfferProductId: string | null;
|
|
13
|
+
offerEndDate: any | null;
|
|
14
|
+
offerStartDate: any;
|
|
15
|
+
status: CartCampaignOfferStatus;
|
|
16
|
+
targetPageTypes: CampaignOfferTargetPageTypeEnum[];
|
|
17
|
+
triggerSourceOrderLineId: string;
|
|
18
|
+
|
|
19
|
+
constructor(data: Partial<CartV2CampaignOfferData> = {}) {
|
|
20
|
+
this.appliedOrderLineId = data.appliedOrderLineId || null;
|
|
21
|
+
this.campaignOffer = data.campaignOffer
|
|
22
|
+
? new CampaignOfferData(data.campaignOffer)
|
|
23
|
+
: null;
|
|
24
|
+
this.campaignOfferId = data.campaignOfferId || "";
|
|
25
|
+
this.campaignOfferProductId = data.campaignOfferProductId || null;
|
|
26
|
+
this.offerEndDate = data.offerEndDate || null;
|
|
27
|
+
this.offerStartDate = data.offerStartDate || null;
|
|
28
|
+
this.status = data.status || CartCampaignOfferStatus.ACCEPTED;
|
|
29
|
+
this.targetPageTypes = data.targetPageTypes || [];
|
|
30
|
+
this.triggerSourceOrderLineId = data.triggerSourceOrderLineId || "";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class CartV2CampaignOffer extends CartV2CampaignOfferData {}
|
|
35
|
+
export type PartialCartV2CampaignOffer = Partial<CartV2CampaignOffer>;
|
|
36
|
+
export type ReadOnlyCartV2CampaignOffer = DeepReadonly<CartV2CampaignOffer>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CategoryProductsOrderTypeEnum } from "../types";
|
|
4
|
+
import { CategoryPathItemData } from "./CategoryPathItem";
|
|
5
|
+
import { CategoryConditionData } from "./CategoryCondition";
|
|
6
|
+
import { HTMLMetaDataData } from "./HTMLMetaData";
|
|
7
|
+
import { CategoryTranslationData } from "./CategoryTranslation";
|
|
8
|
+
|
|
9
|
+
export class CategoryData extends BaseModelData {
|
|
10
|
+
categoryPath: string[] | null;
|
|
11
|
+
categoryPathItems: CategoryPathItemData[] | null;
|
|
12
|
+
conditions: CategoryConditionData[] | null;
|
|
13
|
+
description: string | null;
|
|
14
|
+
imageId: string | null;
|
|
15
|
+
isAutomated: boolean | null;
|
|
16
|
+
metaData: HTMLMetaDataData | null;
|
|
17
|
+
name: string;
|
|
18
|
+
orderType: CategoryProductsOrderTypeEnum | null;
|
|
19
|
+
parentId: string | null;
|
|
20
|
+
salesChannelIds: string[] | null;
|
|
21
|
+
shouldMatchAllConditions: boolean | null;
|
|
22
|
+
translations: CategoryTranslationData[] | null;
|
|
23
|
+
|
|
24
|
+
constructor(data: Partial<CategoryData> = {}) {
|
|
25
|
+
super(data);
|
|
26
|
+
|
|
27
|
+
this.categoryPath = data.categoryPath || null;
|
|
28
|
+
this.categoryPathItems = data.categoryPathItems
|
|
29
|
+
? data.categoryPathItems.map((c) => new CategoryPathItemData(c))
|
|
30
|
+
: null;
|
|
31
|
+
this.conditions = data.conditions
|
|
32
|
+
? data.conditions.map((c) => new CategoryConditionData(c))
|
|
33
|
+
: null;
|
|
34
|
+
this.description = data.description || null;
|
|
35
|
+
this.imageId = data.imageId || null;
|
|
36
|
+
this.isAutomated =
|
|
37
|
+
data.isAutomated !== undefined && data.isAutomated !== null
|
|
38
|
+
? data.isAutomated
|
|
39
|
+
: null;
|
|
40
|
+
this.metaData = data.metaData ? new HTMLMetaDataData(data.metaData) : null;
|
|
41
|
+
this.name = data.name || "";
|
|
42
|
+
this.orderType = data.orderType || null;
|
|
43
|
+
this.parentId = data.parentId || null;
|
|
44
|
+
this.salesChannelIds = data.salesChannelIds || null;
|
|
45
|
+
this.shouldMatchAllConditions =
|
|
46
|
+
data.shouldMatchAllConditions !== undefined &&
|
|
47
|
+
data.shouldMatchAllConditions !== null
|
|
48
|
+
? data.shouldMatchAllConditions
|
|
49
|
+
: null;
|
|
50
|
+
this.translations = data.translations
|
|
51
|
+
? data.translations.map((c) => new CategoryTranslationData(c))
|
|
52
|
+
: null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export class Category extends CategoryData {}
|
|
57
|
+
export type PartialCategory = Partial<Category>;
|
|
58
|
+
export type ReadOnlyCategory = DeepReadonly<Category>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CategoryConditionTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class CategoryConditionData {
|
|
5
|
+
conditionType: CategoryConditionTypeEnum;
|
|
6
|
+
valueList: string[];
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CategoryConditionData> = {}) {
|
|
9
|
+
this.conditionType =
|
|
10
|
+
data.conditionType || CategoryConditionTypeEnum.CREATED_AT;
|
|
11
|
+
this.valueList = data.valueList || [];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CategoryCondition extends CategoryConditionData {}
|
|
16
|
+
export type PartialCategoryCondition = Partial<CategoryCondition>;
|
|
17
|
+
export type ReadOnlyCategoryCondition = DeepReadonly<CategoryCondition>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CategoryFilterInputData {
|
|
4
|
+
eq: string | null;
|
|
5
|
+
in: string[] | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CategoryFilterInputData> = {}) {
|
|
8
|
+
this.eq = data.eq || null;
|
|
9
|
+
this.in = data.in || null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CategoryFilterInput extends CategoryFilterInputData {}
|
|
14
|
+
export type PartialCategoryFilterInput = Partial<CategoryFilterInput>;
|
|
15
|
+
export type ReadOnlyCategoryFilterInput = DeepReadonly<CategoryFilterInput>;
|