@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,36 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import {
|
|
3
|
+
TransactionCardAssociationEnum,
|
|
4
|
+
TransactionCardTypeEnum,
|
|
5
|
+
} from "../types";
|
|
6
|
+
import { TransactionInstallmentPriceData } from "./TransactionInstallmentPrice";
|
|
7
|
+
|
|
8
|
+
export class RetrieveInstallmentInfoResponseData {
|
|
9
|
+
bankName: string | null;
|
|
10
|
+
binNumber: string;
|
|
11
|
+
cardAssociation: TransactionCardAssociationEnum | null;
|
|
12
|
+
cardFamily: string | null;
|
|
13
|
+
cardType: TransactionCardTypeEnum | null;
|
|
14
|
+
installmentPrices: TransactionInstallmentPriceData[] | null;
|
|
15
|
+
price: number;
|
|
16
|
+
|
|
17
|
+
constructor(data: Partial<RetrieveInstallmentInfoResponseData> = {}) {
|
|
18
|
+
this.bankName = data.bankName || null;
|
|
19
|
+
this.binNumber = data.binNumber || "";
|
|
20
|
+
this.cardAssociation = data.cardAssociation || null;
|
|
21
|
+
this.cardFamily = data.cardFamily || null;
|
|
22
|
+
this.cardType = data.cardType || null;
|
|
23
|
+
this.installmentPrices = data.installmentPrices
|
|
24
|
+
? data.installmentPrices.map(
|
|
25
|
+
(t) => new TransactionInstallmentPriceData(t)
|
|
26
|
+
)
|
|
27
|
+
: null;
|
|
28
|
+
this.price = data.price || 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class RetrieveInstallmentInfoResponse extends RetrieveInstallmentInfoResponseData {}
|
|
33
|
+
export type PartialRetrieveInstallmentInfoResponse =
|
|
34
|
+
Partial<RetrieveInstallmentInfoResponse>;
|
|
35
|
+
export type ReadOnlyRetrieveInstallmentInfoResponse =
|
|
36
|
+
DeepReadonly<RetrieveInstallmentInfoResponse>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { OrderAddressInputData } from "./OrderAddressInput";
|
|
4
|
+
import { CheckoutCustomerInputData } from "./CheckoutCustomerInput";
|
|
5
|
+
import { OrderAdjustmentInputData } from "./OrderAdjustmentInput";
|
|
6
|
+
|
|
7
|
+
export class SaveCartInputData extends BaseModelData {
|
|
8
|
+
billingAddress: OrderAddressInputData | null;
|
|
9
|
+
couponCode: string | null;
|
|
10
|
+
customer: CheckoutCustomerInputData | null;
|
|
11
|
+
giftPackageNote: string | null;
|
|
12
|
+
isGiftPackage: boolean | null;
|
|
13
|
+
note: string | null;
|
|
14
|
+
orderAdjustments: OrderAdjustmentInputData[] | null;
|
|
15
|
+
shippingAddress: OrderAddressInputData | null;
|
|
16
|
+
shippingSettingsId: string | null;
|
|
17
|
+
shippingZoneRateId: string | null;
|
|
18
|
+
stockLocationId: string | null;
|
|
19
|
+
|
|
20
|
+
constructor(data: Partial<SaveCartInputData> = {}) {
|
|
21
|
+
super(data);
|
|
22
|
+
|
|
23
|
+
this.billingAddress = data.billingAddress
|
|
24
|
+
? new OrderAddressInputData(data.billingAddress)
|
|
25
|
+
: null;
|
|
26
|
+
this.couponCode = data.couponCode || null;
|
|
27
|
+
this.customer = data.customer
|
|
28
|
+
? new CheckoutCustomerInputData(data.customer)
|
|
29
|
+
: null;
|
|
30
|
+
this.giftPackageNote = data.giftPackageNote || null;
|
|
31
|
+
this.isGiftPackage =
|
|
32
|
+
data.isGiftPackage !== undefined && data.isGiftPackage !== null
|
|
33
|
+
? data.isGiftPackage
|
|
34
|
+
: null;
|
|
35
|
+
this.note = data.note || null;
|
|
36
|
+
this.orderAdjustments = data.orderAdjustments
|
|
37
|
+
? data.orderAdjustments.map((o) => new OrderAdjustmentInputData(o))
|
|
38
|
+
: null;
|
|
39
|
+
this.shippingAddress = data.shippingAddress
|
|
40
|
+
? new OrderAddressInputData(data.shippingAddress)
|
|
41
|
+
: null;
|
|
42
|
+
this.shippingSettingsId = data.shippingSettingsId || null;
|
|
43
|
+
this.shippingZoneRateId = data.shippingZoneRateId || null;
|
|
44
|
+
this.stockLocationId = data.stockLocationId || null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class SaveCartInput extends SaveCartInputData {}
|
|
49
|
+
export type PartialSaveCartInput = Partial<SaveCartInput>;
|
|
50
|
+
export type ReadOnlySaveCartInput = DeepReadonly<SaveCartInput>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { ShippingMethodEnum } from "../types";
|
|
4
|
+
import { OrderAddressInputData } from "./OrderAddressInput";
|
|
5
|
+
import { CheckoutCustomerInputData } from "./CheckoutCustomerInput";
|
|
6
|
+
import { OrderAdjustmentInputData } from "./OrderAdjustmentInput";
|
|
7
|
+
|
|
8
|
+
export class SaveCheckoutInputData extends BaseModelData {
|
|
9
|
+
billingAddress: OrderAddressInputData | null;
|
|
10
|
+
cartId: string;
|
|
11
|
+
couponCode: string | null;
|
|
12
|
+
customer: CheckoutCustomerInputData | null;
|
|
13
|
+
giftPackageNote: string | null;
|
|
14
|
+
isGiftPackage: boolean | null;
|
|
15
|
+
note: string | null;
|
|
16
|
+
orderAdjustments: OrderAdjustmentInputData[] | null;
|
|
17
|
+
shippingAddress: OrderAddressInputData | null;
|
|
18
|
+
shippingMethod: ShippingMethodEnum;
|
|
19
|
+
shippingSettingsId: string | null;
|
|
20
|
+
shippingZoneRateId: string | null;
|
|
21
|
+
stockLocationId: string | null;
|
|
22
|
+
|
|
23
|
+
constructor(data: Partial<SaveCheckoutInputData> = {}) {
|
|
24
|
+
super(data);
|
|
25
|
+
|
|
26
|
+
this.billingAddress = data.billingAddress
|
|
27
|
+
? new OrderAddressInputData(data.billingAddress)
|
|
28
|
+
: null;
|
|
29
|
+
this.cartId = data.cartId || "";
|
|
30
|
+
this.couponCode = data.couponCode || null;
|
|
31
|
+
this.customer = data.customer
|
|
32
|
+
? new CheckoutCustomerInputData(data.customer)
|
|
33
|
+
: null;
|
|
34
|
+
this.giftPackageNote = data.giftPackageNote || null;
|
|
35
|
+
this.isGiftPackage =
|
|
36
|
+
data.isGiftPackage !== undefined && data.isGiftPackage !== null
|
|
37
|
+
? data.isGiftPackage
|
|
38
|
+
: null;
|
|
39
|
+
this.note = data.note || null;
|
|
40
|
+
this.orderAdjustments = data.orderAdjustments
|
|
41
|
+
? data.orderAdjustments.map((o) => new OrderAdjustmentInputData(o))
|
|
42
|
+
: null;
|
|
43
|
+
this.shippingAddress = data.shippingAddress
|
|
44
|
+
? new OrderAddressInputData(data.shippingAddress)
|
|
45
|
+
: null;
|
|
46
|
+
this.shippingMethod =
|
|
47
|
+
data.shippingMethod || ShippingMethodEnum.CLICK_AND_COLLECT;
|
|
48
|
+
this.shippingSettingsId = data.shippingSettingsId || null;
|
|
49
|
+
this.shippingZoneRateId = data.shippingZoneRateId || null;
|
|
50
|
+
this.stockLocationId = data.stockLocationId || null;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class SaveCheckoutInput extends SaveCheckoutInputData {}
|
|
55
|
+
export type PartialSaveCheckoutInput = Partial<SaveCheckoutInput>;
|
|
56
|
+
export type ReadOnlySaveCheckoutInput = DeepReadonly<SaveCheckoutInput>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CartLineItemInputData } from "./CartLineItemInput";
|
|
3
|
+
import { CartLineOptionInputData } from "./CartLineOptionInput";
|
|
4
|
+
|
|
5
|
+
export class SaveItemToCartInputData {
|
|
6
|
+
cartId: string | null;
|
|
7
|
+
customerId: string | null;
|
|
8
|
+
item: CartLineItemInputData;
|
|
9
|
+
options: CartLineOptionInputData[] | null;
|
|
10
|
+
priceListId: string | null;
|
|
11
|
+
salesChannelId: string;
|
|
12
|
+
storefrontId: string;
|
|
13
|
+
storefrontRoutingId: string;
|
|
14
|
+
storefrontThemeId: string;
|
|
15
|
+
|
|
16
|
+
constructor(data: Partial<SaveItemToCartInputData> = {}) {
|
|
17
|
+
this.cartId = data.cartId || null;
|
|
18
|
+
this.customerId = data.customerId || null;
|
|
19
|
+
this.item = data.item
|
|
20
|
+
? new CartLineItemInputData(data.item)
|
|
21
|
+
: new CartLineItemInputData();
|
|
22
|
+
this.options = data.options
|
|
23
|
+
? data.options.map((c) => new CartLineOptionInputData(c))
|
|
24
|
+
: null;
|
|
25
|
+
this.priceListId = data.priceListId || null;
|
|
26
|
+
this.salesChannelId = data.salesChannelId || "";
|
|
27
|
+
this.storefrontId = data.storefrontId || "";
|
|
28
|
+
this.storefrontRoutingId = data.storefrontRoutingId || "";
|
|
29
|
+
this.storefrontThemeId = data.storefrontThemeId || "";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class SaveItemToCartInput extends SaveItemToCartInputData {}
|
|
34
|
+
export type PartialSaveItemToCartInput = Partial<SaveItemToCartInput>;
|
|
35
|
+
export type ReadOnlySaveItemToCartInput = DeepReadonly<SaveItemToCartInput>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CustomerAddressCityInputData } from "./CustomerAddressCityInput";
|
|
4
|
+
import { CustomerAddressCountryInputData } from "./CustomerAddressCountryInput";
|
|
5
|
+
import { CustomerAddressDistrictInputData } from "./CustomerAddressDistrictInput";
|
|
6
|
+
import { CustomerAddressStateInputData } from "./CustomerAddressStateInput";
|
|
7
|
+
|
|
8
|
+
export class SaveMyCustomerAddressInputData extends BaseModelData {
|
|
9
|
+
addressLine1: string;
|
|
10
|
+
addressLine2: string | null;
|
|
11
|
+
city: CustomerAddressCityInputData;
|
|
12
|
+
company: string | null;
|
|
13
|
+
country: CustomerAddressCountryInputData;
|
|
14
|
+
district: CustomerAddressDistrictInputData | null;
|
|
15
|
+
firstName: string;
|
|
16
|
+
identityNumber: string | null;
|
|
17
|
+
isDefault: boolean | null;
|
|
18
|
+
lastName: string;
|
|
19
|
+
phone: string | null;
|
|
20
|
+
postalCode: string | null;
|
|
21
|
+
state: CustomerAddressStateInputData | null;
|
|
22
|
+
taxNumber: string | null;
|
|
23
|
+
taxOffice: string | null;
|
|
24
|
+
title: string;
|
|
25
|
+
|
|
26
|
+
constructor(data: Partial<SaveMyCustomerAddressInputData> = {}) {
|
|
27
|
+
super(data);
|
|
28
|
+
|
|
29
|
+
this.addressLine1 = data.addressLine1 || "";
|
|
30
|
+
this.addressLine2 = data.addressLine2 || null;
|
|
31
|
+
this.city = data.city
|
|
32
|
+
? new CustomerAddressCityInputData(data.city)
|
|
33
|
+
: new CustomerAddressCityInputData();
|
|
34
|
+
this.company = data.company || null;
|
|
35
|
+
this.country = data.country
|
|
36
|
+
? new CustomerAddressCountryInputData(data.country)
|
|
37
|
+
: new CustomerAddressCountryInputData();
|
|
38
|
+
this.district = data.district
|
|
39
|
+
? new CustomerAddressDistrictInputData(data.district)
|
|
40
|
+
: null;
|
|
41
|
+
this.firstName = data.firstName || "";
|
|
42
|
+
this.identityNumber = data.identityNumber || null;
|
|
43
|
+
this.isDefault =
|
|
44
|
+
data.isDefault !== undefined && data.isDefault !== null
|
|
45
|
+
? data.isDefault
|
|
46
|
+
: null;
|
|
47
|
+
this.lastName = data.lastName || "";
|
|
48
|
+
this.phone = data.phone || null;
|
|
49
|
+
this.postalCode = data.postalCode || null;
|
|
50
|
+
this.state = data.state
|
|
51
|
+
? new CustomerAddressStateInputData(data.state)
|
|
52
|
+
: null;
|
|
53
|
+
this.taxNumber = data.taxNumber || null;
|
|
54
|
+
this.taxOffice = data.taxOffice || null;
|
|
55
|
+
this.title = data.title || "";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class SaveMyCustomerAddressInput extends SaveMyCustomerAddressInputData {}
|
|
60
|
+
export type PartialSaveMyCustomerAddressInput =
|
|
61
|
+
Partial<SaveMyCustomerAddressInput>;
|
|
62
|
+
export type ReadOnlySaveMyCustomerAddressInput =
|
|
63
|
+
DeepReadonly<SaveMyCustomerAddressInput>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerEmailSubscriptionStatusesEnum } from "../types";
|
|
3
|
+
import { SaveMyCustomerAddressInputData } from "./SaveMyCustomerAddressInput";
|
|
4
|
+
import { CustomerAttributeValueInputData } from "./CustomerAttributeValueInput";
|
|
5
|
+
|
|
6
|
+
export class SaveMyCustomerInputData {
|
|
7
|
+
addresses: SaveMyCustomerAddressInputData[] | null;
|
|
8
|
+
attributes: CustomerAttributeValueInputData[] | null;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
13
|
+
|
|
14
|
+
constructor(data: Partial<SaveMyCustomerInputData> = {}) {
|
|
15
|
+
this.addresses = data.addresses
|
|
16
|
+
? data.addresses.map((s) => new SaveMyCustomerAddressInputData(s))
|
|
17
|
+
: null;
|
|
18
|
+
this.attributes = data.attributes
|
|
19
|
+
? data.attributes.map((c) => new CustomerAttributeValueInputData(c))
|
|
20
|
+
: null;
|
|
21
|
+
this.firstName = data.firstName || "";
|
|
22
|
+
this.lastName = data.lastName || "";
|
|
23
|
+
this.phone = data.phone || null;
|
|
24
|
+
this.subscriptionStatus = data.subscriptionStatus || null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class SaveMyCustomerInput extends SaveMyCustomerInputData {}
|
|
29
|
+
export type PartialSaveMyCustomerInput = Partial<SaveMyCustomerInput>;
|
|
30
|
+
export type ReadOnlySaveMyCustomerInput = DeepReadonly<SaveMyCustomerInput>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { SearchCategoryPathData } from "./SearchCategoryPath";
|
|
3
|
+
import { CategoryTranslationData } from "./CategoryTranslation";
|
|
4
|
+
|
|
5
|
+
export class SearchCategoryData {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
path: SearchCategoryPathData[];
|
|
9
|
+
slug: string | null;
|
|
10
|
+
translations: CategoryTranslationData[] | null;
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<SearchCategoryData> = {}) {
|
|
13
|
+
this.id = data.id || "";
|
|
14
|
+
this.name = data.name || "";
|
|
15
|
+
this.path = data.path
|
|
16
|
+
? data.path.map((s) => new SearchCategoryPathData(s))
|
|
17
|
+
: [];
|
|
18
|
+
this.slug = data.slug || null;
|
|
19
|
+
this.translations = data.translations
|
|
20
|
+
? data.translations.map((c) => new CategoryTranslationData(c))
|
|
21
|
+
: null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class SearchCategory extends SearchCategoryData {}
|
|
26
|
+
export type PartialSearchCategory = Partial<SearchCategory>;
|
|
27
|
+
export type ReadOnlySearchCategory = DeepReadonly<SearchCategory>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CategoryTranslationData } from "./CategoryTranslation";
|
|
3
|
+
|
|
4
|
+
export class SearchCategoryPathData {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
slug: string | null;
|
|
8
|
+
translations: CategoryTranslationData[] | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<SearchCategoryPathData> = {}) {
|
|
11
|
+
this.id = data.id || "";
|
|
12
|
+
this.name = data.name || "";
|
|
13
|
+
this.slug = data.slug || null;
|
|
14
|
+
this.translations = data.translations
|
|
15
|
+
? data.translations.map((c) => new CategoryTranslationData(c))
|
|
16
|
+
: null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class SearchCategoryPath extends SearchCategoryPathData {}
|
|
21
|
+
export type PartialSearchCategoryPath = Partial<SearchCategoryPath>;
|
|
22
|
+
export type ReadOnlySearchCategoryPath = DeepReadonly<SearchCategoryPath>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class SearchDynamicCurrencySettingsData {
|
|
4
|
+
roundingFormat: string | null;
|
|
5
|
+
targetCurrencyCode: string;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<SearchDynamicCurrencySettingsData> = {}) {
|
|
8
|
+
this.roundingFormat = data.roundingFormat || null;
|
|
9
|
+
this.targetCurrencyCode = data.targetCurrencyCode || "";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class SearchDynamicCurrencySettings extends SearchDynamicCurrencySettingsData {}
|
|
14
|
+
export type PartialSearchDynamicCurrencySettings =
|
|
15
|
+
Partial<SearchDynamicCurrencySettings>;
|
|
16
|
+
export type ReadOnlySearchDynamicCurrencySettings =
|
|
17
|
+
DeepReadonly<SearchDynamicCurrencySettings>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { SearchHTMLMetaDataOverrideData } from "./SearchHTMLMetaDataOverride";
|
|
3
|
+
import { HTMLMetaDataTranslationData } from "./HTMLMetaDataTranslation";
|
|
4
|
+
|
|
5
|
+
export class SearchHTMLMetaDataData {
|
|
6
|
+
canonicals: string[] | null;
|
|
7
|
+
description: string | null;
|
|
8
|
+
disableIndex: boolean | null;
|
|
9
|
+
metadataOverrides: SearchHTMLMetaDataOverrideData[] | null;
|
|
10
|
+
pageTitle: string | null;
|
|
11
|
+
redirectTo: string | null;
|
|
12
|
+
slug: string;
|
|
13
|
+
translations: HTMLMetaDataTranslationData[] | null;
|
|
14
|
+
|
|
15
|
+
constructor(data: Partial<SearchHTMLMetaDataData> = {}) {
|
|
16
|
+
this.canonicals = data.canonicals || null;
|
|
17
|
+
this.description = data.description || null;
|
|
18
|
+
this.disableIndex =
|
|
19
|
+
data.disableIndex !== undefined && data.disableIndex !== null
|
|
20
|
+
? data.disableIndex
|
|
21
|
+
: null;
|
|
22
|
+
this.metadataOverrides = data.metadataOverrides
|
|
23
|
+
? data.metadataOverrides.map((s) => new SearchHTMLMetaDataOverrideData(s))
|
|
24
|
+
: null;
|
|
25
|
+
this.pageTitle = data.pageTitle || null;
|
|
26
|
+
this.redirectTo = data.redirectTo || null;
|
|
27
|
+
this.slug = data.slug || "";
|
|
28
|
+
this.translations = data.translations
|
|
29
|
+
? data.translations.map((h) => new HTMLMetaDataTranslationData(h))
|
|
30
|
+
: null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class SearchHTMLMetaData extends SearchHTMLMetaDataData {}
|
|
35
|
+
export type PartialSearchHTMLMetaData = Partial<SearchHTMLMetaData>;
|
|
36
|
+
export type ReadOnlySearchHTMLMetaData = DeepReadonly<SearchHTMLMetaData>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class SearchHTMLMetaDataOverrideData {
|
|
4
|
+
description: string;
|
|
5
|
+
language: string | null;
|
|
6
|
+
pageTitle: string;
|
|
7
|
+
storefrontId: string | null;
|
|
8
|
+
storefrontRegionId: string | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<SearchHTMLMetaDataOverrideData> = {}) {
|
|
11
|
+
this.description = data.description || "";
|
|
12
|
+
this.language = data.language || null;
|
|
13
|
+
this.pageTitle = data.pageTitle || "";
|
|
14
|
+
this.storefrontId = data.storefrontId || null;
|
|
15
|
+
this.storefrontRegionId = data.storefrontRegionId || null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class SearchHTMLMetaDataOverride extends SearchHTMLMetaDataOverrideData {}
|
|
20
|
+
export type PartialSearchHTMLMetaDataOverride =
|
|
21
|
+
Partial<SearchHTMLMetaDataOverride>;
|
|
22
|
+
export type ReadOnlySearchHTMLMetaDataOverride =
|
|
23
|
+
DeepReadonly<SearchHTMLMetaDataOverride>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductSearchShowStockOptionEnum } from "../types";
|
|
3
|
+
import { SearchDynamicCurrencySettingsData } from "./SearchDynamicCurrencySettings";
|
|
4
|
+
import { SearchInputFacetListInputData } from "./SearchInputFacetListInput";
|
|
5
|
+
import { SearchInputFilterListInputData } from "./SearchInputFilterListInput";
|
|
6
|
+
import { SearchInputOrderByInputData } from "./SearchInputOrderByInput";
|
|
7
|
+
|
|
8
|
+
export class SearchInputData {
|
|
9
|
+
barcodeList: string[] | null;
|
|
10
|
+
brandId: string | null;
|
|
11
|
+
brandIdList: string[] | null;
|
|
12
|
+
categoryIdList: string[] | null;
|
|
13
|
+
dynamicCurrencySettings: SearchDynamicCurrencySettingsData | null;
|
|
14
|
+
facetList: SearchInputFacetListInputData[] | null;
|
|
15
|
+
filterList: SearchInputFilterListInputData[] | null;
|
|
16
|
+
locale: string | null;
|
|
17
|
+
order: SearchInputOrderByInputData[] | null;
|
|
18
|
+
page: number | null;
|
|
19
|
+
perPage: number | null;
|
|
20
|
+
priceListId: string | null;
|
|
21
|
+
productIdList: string[] | null;
|
|
22
|
+
query: string | null;
|
|
23
|
+
salesChannelId: string | null;
|
|
24
|
+
showStockOption: ProductSearchShowStockOptionEnum | null;
|
|
25
|
+
slug: string | null;
|
|
26
|
+
tagIdList: string[] | null;
|
|
27
|
+
vendorIdList: string[] | null;
|
|
28
|
+
|
|
29
|
+
constructor(data: Partial<SearchInputData> = {}) {
|
|
30
|
+
this.barcodeList = data.barcodeList || null;
|
|
31
|
+
this.brandId = data.brandId || null;
|
|
32
|
+
this.brandIdList = data.brandIdList || null;
|
|
33
|
+
this.categoryIdList = data.categoryIdList || null;
|
|
34
|
+
this.dynamicCurrencySettings = data.dynamicCurrencySettings
|
|
35
|
+
? new SearchDynamicCurrencySettingsData(data.dynamicCurrencySettings)
|
|
36
|
+
: null;
|
|
37
|
+
this.facetList = data.facetList
|
|
38
|
+
? data.facetList.map((s) => new SearchInputFacetListInputData(s))
|
|
39
|
+
: null;
|
|
40
|
+
this.filterList = data.filterList
|
|
41
|
+
? data.filterList.map((s) => new SearchInputFilterListInputData(s))
|
|
42
|
+
: null;
|
|
43
|
+
this.locale = data.locale || null;
|
|
44
|
+
this.order = data.order
|
|
45
|
+
? data.order.map((s) => new SearchInputOrderByInputData(s))
|
|
46
|
+
: null;
|
|
47
|
+
this.page =
|
|
48
|
+
data.page !== undefined && data.page !== null ? data.page : null;
|
|
49
|
+
this.perPage =
|
|
50
|
+
data.perPage !== undefined && data.perPage !== null ? data.perPage : null;
|
|
51
|
+
this.priceListId = data.priceListId || null;
|
|
52
|
+
this.productIdList = data.productIdList || null;
|
|
53
|
+
this.query = data.query || null;
|
|
54
|
+
this.salesChannelId = data.salesChannelId || null;
|
|
55
|
+
this.showStockOption = data.showStockOption || null;
|
|
56
|
+
this.slug = data.slug || null;
|
|
57
|
+
this.tagIdList = data.tagIdList || null;
|
|
58
|
+
this.vendorIdList = data.vendorIdList || null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class SearchInput extends SearchInputData {}
|
|
63
|
+
export type PartialSearchInput = Partial<SearchInput>;
|
|
64
|
+
export type ReadOnlySearchInput = DeepReadonly<SearchInput>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductFilterDisplayTypeEnum, ProductFilterTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class SearchInputFacetListInputData {
|
|
5
|
+
displayType: ProductFilterDisplayTypeEnum;
|
|
6
|
+
id: string;
|
|
7
|
+
type: ProductFilterTypeEnum;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<SearchInputFacetListInputData> = {}) {
|
|
10
|
+
this.displayType = data.displayType || ProductFilterDisplayTypeEnum.BOX;
|
|
11
|
+
this.id = data.id || "";
|
|
12
|
+
this.type = data.type || ProductFilterTypeEnum.ATTRIBUTE;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class SearchInputFacetListInput extends SearchInputFacetListInputData {}
|
|
17
|
+
export type PartialSearchInputFacetListInput =
|
|
18
|
+
Partial<SearchInputFacetListInput>;
|
|
19
|
+
export type ReadOnlySearchInputFacetListInput =
|
|
20
|
+
DeepReadonly<SearchInputFacetListInput>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductFilterDisplayTypeEnum, ProductFilterTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class SearchInputFilterListInputData {
|
|
5
|
+
displayType: ProductFilterDisplayTypeEnum | null;
|
|
6
|
+
id: string;
|
|
7
|
+
type: ProductFilterTypeEnum;
|
|
8
|
+
useAndFilter: boolean | null;
|
|
9
|
+
valueList: string[];
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<SearchInputFilterListInputData> = {}) {
|
|
12
|
+
this.displayType = data.displayType || null;
|
|
13
|
+
this.id = data.id || "";
|
|
14
|
+
this.type = data.type || ProductFilterTypeEnum.ATTRIBUTE;
|
|
15
|
+
this.useAndFilter =
|
|
16
|
+
data.useAndFilter !== undefined && data.useAndFilter !== null
|
|
17
|
+
? data.useAndFilter
|
|
18
|
+
: null;
|
|
19
|
+
this.valueList = data.valueList || [];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class SearchInputFilterListInput extends SearchInputFilterListInputData {}
|
|
24
|
+
export type PartialSearchInputFilterListInput =
|
|
25
|
+
Partial<SearchInputFilterListInput>;
|
|
26
|
+
export type ReadOnlySearchInputFilterListInput =
|
|
27
|
+
DeepReadonly<SearchInputFilterListInput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { SortByDirectionEnum, SortByTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class SearchInputOrderByInputData {
|
|
5
|
+
direction: SortByDirectionEnum;
|
|
6
|
+
type: SortByTypeEnum;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<SearchInputOrderByInputData> = {}) {
|
|
9
|
+
this.direction = data.direction || SortByDirectionEnum.ASC;
|
|
10
|
+
this.type = data.type || SortByTypeEnum.CREATED_AT;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class SearchInputOrderByInput extends SearchInputOrderByInputData {}
|
|
15
|
+
export type PartialSearchInputOrderByInput = Partial<SearchInputOrderByInput>;
|
|
16
|
+
export type ReadOnlySearchInputOrderByInput =
|
|
17
|
+
DeepReadonly<SearchInputOrderByInput>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { SearchProductAttributeValueData } from "./SearchProductAttributeValue";
|
|
3
|
+
import { SearchProductBrandData } from "./SearchProductBrand";
|
|
4
|
+
import { SearchCategoryData } from "./SearchCategory";
|
|
5
|
+
import { SearchHTMLMetaDataData } from "./SearchHTMLMetaData";
|
|
6
|
+
import { SearchProductVariantTypeData } from "./SearchProductVariantType";
|
|
7
|
+
import { SearchProductTagData } from "./SearchProductTag";
|
|
8
|
+
import { ProductTranslationData } from "./ProductTranslation";
|
|
9
|
+
import { SearchVariantData } from "./SearchVariant";
|
|
10
|
+
|
|
11
|
+
export class SearchProductData {
|
|
12
|
+
attributes: SearchProductAttributeValueData[] | null;
|
|
13
|
+
brand: SearchProductBrandData | null;
|
|
14
|
+
categories: SearchCategoryData[] | null;
|
|
15
|
+
deleted: boolean | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
groupVariantsByVariantTypeId: string | null;
|
|
18
|
+
id: string;
|
|
19
|
+
metaData: SearchHTMLMetaDataData | null;
|
|
20
|
+
name: string;
|
|
21
|
+
productOptionSetId: string | null;
|
|
22
|
+
productVariantTypes: SearchProductVariantTypeData[];
|
|
23
|
+
salesChannelIds: string[] | null;
|
|
24
|
+
shortDescription: string | null;
|
|
25
|
+
tags: SearchProductTagData[] | null;
|
|
26
|
+
translations: ProductTranslationData[] | null;
|
|
27
|
+
type: string;
|
|
28
|
+
variants: SearchVariantData[];
|
|
29
|
+
weight: number | null;
|
|
30
|
+
|
|
31
|
+
constructor(data: Partial<SearchProductData> = {}) {
|
|
32
|
+
this.attributes = data.attributes
|
|
33
|
+
? data.attributes.map((s) => new SearchProductAttributeValueData(s))
|
|
34
|
+
: null;
|
|
35
|
+
this.brand = data.brand ? new SearchProductBrandData(data.brand) : null;
|
|
36
|
+
this.categories = data.categories
|
|
37
|
+
? data.categories.map((s) => new SearchCategoryData(s))
|
|
38
|
+
: null;
|
|
39
|
+
this.deleted =
|
|
40
|
+
data.deleted !== undefined && data.deleted !== null ? data.deleted : null;
|
|
41
|
+
this.description = data.description || null;
|
|
42
|
+
this.groupVariantsByVariantTypeId =
|
|
43
|
+
data.groupVariantsByVariantTypeId || null;
|
|
44
|
+
this.id = data.id || "";
|
|
45
|
+
this.metaData = data.metaData
|
|
46
|
+
? new SearchHTMLMetaDataData(data.metaData)
|
|
47
|
+
: null;
|
|
48
|
+
this.name = data.name || "";
|
|
49
|
+
this.productOptionSetId = data.productOptionSetId || null;
|
|
50
|
+
this.productVariantTypes = data.productVariantTypes
|
|
51
|
+
? data.productVariantTypes.map((s) => new SearchProductVariantTypeData(s))
|
|
52
|
+
: [];
|
|
53
|
+
this.salesChannelIds = data.salesChannelIds || null;
|
|
54
|
+
this.shortDescription = data.shortDescription || null;
|
|
55
|
+
this.tags = data.tags
|
|
56
|
+
? data.tags.map((s) => new SearchProductTagData(s))
|
|
57
|
+
: null;
|
|
58
|
+
this.translations = data.translations
|
|
59
|
+
? data.translations.map((p) => new ProductTranslationData(p))
|
|
60
|
+
: null;
|
|
61
|
+
this.type = data.type || "";
|
|
62
|
+
this.variants = data.variants
|
|
63
|
+
? data.variants.map((s) => new SearchVariantData(s))
|
|
64
|
+
: [];
|
|
65
|
+
this.weight =
|
|
66
|
+
data.weight !== undefined && data.weight !== null ? data.weight : null;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class SearchProduct extends SearchProductData {}
|
|
71
|
+
export type PartialSearchProduct = Partial<SearchProduct>;
|
|
72
|
+
export type ReadOnlySearchProduct = DeepReadonly<SearchProduct>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { SearchProductAttributeTableTemplateData } from "./SearchProductAttributeTableTemplate";
|
|
3
|
+
import { ProductAttributeTranslationData } from "./ProductAttributeTranslation";
|
|
4
|
+
|
|
5
|
+
export class SearchProductAttributeData {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
tableTemplate: SearchProductAttributeTableTemplateData | null;
|
|
9
|
+
translations: ProductAttributeTranslationData[] | null;
|
|
10
|
+
type: string;
|
|
11
|
+
|
|
12
|
+
constructor(data: Partial<SearchProductAttributeData> = {}) {
|
|
13
|
+
this.id = data.id || "";
|
|
14
|
+
this.name = data.name || "";
|
|
15
|
+
this.tableTemplate = data.tableTemplate
|
|
16
|
+
? new SearchProductAttributeTableTemplateData(data.tableTemplate)
|
|
17
|
+
: null;
|
|
18
|
+
this.translations = data.translations
|
|
19
|
+
? data.translations.map((p) => new ProductAttributeTranslationData(p))
|
|
20
|
+
: null;
|
|
21
|
+
this.type = data.type || "";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class SearchProductAttribute extends SearchProductAttributeData {}
|
|
26
|
+
export type PartialSearchProductAttribute = Partial<SearchProductAttribute>;
|
|
27
|
+
export type ReadOnlySearchProductAttribute =
|
|
28
|
+
DeepReadonly<SearchProductAttribute>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class SearchProductAttributeOptionData {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<SearchProductAttributeOptionData> = {}) {
|
|
8
|
+
this.id = data.id || "";
|
|
9
|
+
this.name = data.name || "";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class SearchProductAttributeOption extends SearchProductAttributeOptionData {}
|
|
14
|
+
export type PartialSearchProductAttributeOption =
|
|
15
|
+
Partial<SearchProductAttributeOption>;
|
|
16
|
+
export type ReadOnlySearchProductAttributeOption =
|
|
17
|
+
DeepReadonly<SearchProductAttributeOption>;
|