@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,23 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CurrencyRateDataData } from "./CurrencyRateData";
|
|
4
|
+
|
|
5
|
+
export class CurrencyRateData extends BaseModelData {
|
|
6
|
+
baseCurrency: string;
|
|
7
|
+
date: any;
|
|
8
|
+
rates: CurrencyRateDataData[];
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<CurrencyRateData> = {}) {
|
|
11
|
+
super(data);
|
|
12
|
+
|
|
13
|
+
this.baseCurrency = data.baseCurrency || "";
|
|
14
|
+
this.date = data.date || null;
|
|
15
|
+
this.rates = data.rates
|
|
16
|
+
? data.rates.map((c) => new CurrencyRateDataData(c))
|
|
17
|
+
: [];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class CurrencyRate extends CurrencyRateData {}
|
|
22
|
+
export type PartialCurrencyRate = Partial<CurrencyRate>;
|
|
23
|
+
export type ReadOnlyCurrencyRate = DeepReadonly<CurrencyRate>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CurrencyRateDataData {
|
|
4
|
+
code: string;
|
|
5
|
+
rate: number;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CurrencyRateDataData> = {}) {
|
|
8
|
+
this.code = data.code || "";
|
|
9
|
+
this.rate = data.rate || 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CurrencyRateData extends CurrencyRateDataData {}
|
|
14
|
+
export type PartialCurrencyRateData = Partial<CurrencyRateData>;
|
|
15
|
+
export type ReadOnlyCurrencyRateData = DeepReadonly<CurrencyRateData>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import {
|
|
4
|
+
CustomerAccountStatusEnum,
|
|
5
|
+
CustomerRegistrationSourceEnum,
|
|
6
|
+
CustomerEmailSubscriptionStatusesEnum,
|
|
7
|
+
} from "../types";
|
|
8
|
+
import { CustomerAddressData } from "./CustomerAddress";
|
|
9
|
+
import { CustomerAttributeValueData } from "./CustomerAttributeValue";
|
|
10
|
+
|
|
11
|
+
export class CustomerData extends BaseModelData {
|
|
12
|
+
accountStatus: CustomerAccountStatusEnum | null;
|
|
13
|
+
accountStatusUpdatedAt: any | null;
|
|
14
|
+
addresses: CustomerAddressData[] | null;
|
|
15
|
+
attributes: CustomerAttributeValueData[] | null;
|
|
16
|
+
customerGroupIds: string[] | null;
|
|
17
|
+
customerSequence: number | null;
|
|
18
|
+
email: string | null;
|
|
19
|
+
emailVerifiedDate: any | null;
|
|
20
|
+
firstName: string;
|
|
21
|
+
fullName: string | null;
|
|
22
|
+
isEmailVerified: boolean | null;
|
|
23
|
+
isPhoneVerified: boolean | null;
|
|
24
|
+
lastName: string | null;
|
|
25
|
+
note: string | null;
|
|
26
|
+
orderCount: number | null;
|
|
27
|
+
passwordUpdateDate: any | null;
|
|
28
|
+
phone: string | null;
|
|
29
|
+
phoneVerifiedDate: any | null;
|
|
30
|
+
registrationSource: CustomerRegistrationSourceEnum | null;
|
|
31
|
+
subscriptionStatus: CustomerEmailSubscriptionStatusesEnum | null;
|
|
32
|
+
subscriptionStatusUpdatedAt: any | null;
|
|
33
|
+
tagIds: string[] | null;
|
|
34
|
+
|
|
35
|
+
constructor(data: Partial<CustomerData> = {}) {
|
|
36
|
+
super(data);
|
|
37
|
+
|
|
38
|
+
this.accountStatus = data.accountStatus || null;
|
|
39
|
+
this.accountStatusUpdatedAt = data.accountStatusUpdatedAt || null;
|
|
40
|
+
this.addresses = data.addresses
|
|
41
|
+
? data.addresses.map((c) => new CustomerAddressData(c))
|
|
42
|
+
: null;
|
|
43
|
+
this.attributes = data.attributes
|
|
44
|
+
? data.attributes.map((c) => new CustomerAttributeValueData(c))
|
|
45
|
+
: null;
|
|
46
|
+
this.customerGroupIds = data.customerGroupIds || null;
|
|
47
|
+
this.customerSequence =
|
|
48
|
+
data.customerSequence !== undefined && data.customerSequence !== null
|
|
49
|
+
? data.customerSequence
|
|
50
|
+
: null;
|
|
51
|
+
this.email = data.email || null;
|
|
52
|
+
this.emailVerifiedDate = data.emailVerifiedDate || null;
|
|
53
|
+
this.firstName = data.firstName || "";
|
|
54
|
+
this.fullName = data.fullName || null;
|
|
55
|
+
this.isEmailVerified =
|
|
56
|
+
data.isEmailVerified !== undefined && data.isEmailVerified !== null
|
|
57
|
+
? data.isEmailVerified
|
|
58
|
+
: null;
|
|
59
|
+
this.isPhoneVerified =
|
|
60
|
+
data.isPhoneVerified !== undefined && data.isPhoneVerified !== null
|
|
61
|
+
? data.isPhoneVerified
|
|
62
|
+
: null;
|
|
63
|
+
this.lastName = data.lastName || null;
|
|
64
|
+
this.note = data.note || null;
|
|
65
|
+
this.orderCount =
|
|
66
|
+
data.orderCount !== undefined && data.orderCount !== null
|
|
67
|
+
? data.orderCount
|
|
68
|
+
: null;
|
|
69
|
+
this.passwordUpdateDate = data.passwordUpdateDate || null;
|
|
70
|
+
this.phone = data.phone || null;
|
|
71
|
+
this.phoneVerifiedDate = data.phoneVerifiedDate || null;
|
|
72
|
+
this.registrationSource = data.registrationSource || null;
|
|
73
|
+
this.subscriptionStatus = data.subscriptionStatus || null;
|
|
74
|
+
this.subscriptionStatusUpdatedAt = data.subscriptionStatusUpdatedAt || null;
|
|
75
|
+
this.tagIds = data.tagIds || null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class Customer extends CustomerData {}
|
|
80
|
+
export type PartialCustomer = Partial<Customer>;
|
|
81
|
+
export type ReadOnlyCustomer = DeepReadonly<Customer>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CustomerAttributeValueData } from "./CustomerAttributeValue";
|
|
4
|
+
import { CustomerAddressCityData } from "./CustomerAddressCity";
|
|
5
|
+
import { CustomerAddressCountryData } from "./CustomerAddressCountry";
|
|
6
|
+
import { CustomerAddressDistrictData } from "./CustomerAddressDistrict";
|
|
7
|
+
import { CustomerAddressStateData } from "./CustomerAddressState";
|
|
8
|
+
|
|
9
|
+
export class CustomerAddressData extends BaseModelData {
|
|
10
|
+
addressLine1: string;
|
|
11
|
+
addressLine2: string | null;
|
|
12
|
+
attributes: CustomerAttributeValueData[] | null;
|
|
13
|
+
city: CustomerAddressCityData;
|
|
14
|
+
company: string | null;
|
|
15
|
+
country: CustomerAddressCountryData;
|
|
16
|
+
district: CustomerAddressDistrictData | null;
|
|
17
|
+
firstName: string;
|
|
18
|
+
identityNumber: string | null;
|
|
19
|
+
isDefault: boolean | null;
|
|
20
|
+
lastName: string;
|
|
21
|
+
phone: string | null;
|
|
22
|
+
postalCode: string | null;
|
|
23
|
+
state: CustomerAddressStateData | null;
|
|
24
|
+
taxNumber: string | null;
|
|
25
|
+
taxOffice: string | null;
|
|
26
|
+
title: string;
|
|
27
|
+
|
|
28
|
+
constructor(data: Partial<CustomerAddressData> = {}) {
|
|
29
|
+
super(data);
|
|
30
|
+
|
|
31
|
+
this.addressLine1 = data.addressLine1 || "";
|
|
32
|
+
this.addressLine2 = data.addressLine2 || null;
|
|
33
|
+
this.attributes = data.attributes
|
|
34
|
+
? data.attributes.map((c) => new CustomerAttributeValueData(c))
|
|
35
|
+
: null;
|
|
36
|
+
this.city = data.city
|
|
37
|
+
? new CustomerAddressCityData(data.city)
|
|
38
|
+
: new CustomerAddressCityData();
|
|
39
|
+
this.company = data.company || null;
|
|
40
|
+
this.country = data.country
|
|
41
|
+
? new CustomerAddressCountryData(data.country)
|
|
42
|
+
: new CustomerAddressCountryData();
|
|
43
|
+
this.district = data.district
|
|
44
|
+
? new CustomerAddressDistrictData(data.district)
|
|
45
|
+
: null;
|
|
46
|
+
this.firstName = data.firstName || "";
|
|
47
|
+
this.identityNumber = data.identityNumber || null;
|
|
48
|
+
this.isDefault =
|
|
49
|
+
data.isDefault !== undefined && data.isDefault !== null
|
|
50
|
+
? data.isDefault
|
|
51
|
+
: null;
|
|
52
|
+
this.lastName = data.lastName || "";
|
|
53
|
+
this.phone = data.phone || null;
|
|
54
|
+
this.postalCode = data.postalCode || null;
|
|
55
|
+
this.state = data.state ? new CustomerAddressStateData(data.state) : null;
|
|
56
|
+
this.taxNumber = data.taxNumber || null;
|
|
57
|
+
this.taxOffice = data.taxOffice || null;
|
|
58
|
+
this.title = data.title || "";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class CustomerAddress extends CustomerAddressData {}
|
|
63
|
+
export type PartialCustomerAddress = Partial<CustomerAddress>;
|
|
64
|
+
export type ReadOnlyCustomerAddress = DeepReadonly<CustomerAddress>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressCityData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAddressCityData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAddressCity extends CustomerAddressCityData {}
|
|
16
|
+
export type PartialCustomerAddressCity = Partial<CustomerAddressCity>;
|
|
17
|
+
export type ReadOnlyCustomerAddressCity = DeepReadonly<CustomerAddressCity>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressCityInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAddressCityInputData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || "";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAddressCityInput extends CustomerAddressCityInputData {}
|
|
16
|
+
export type PartialCustomerAddressCityInput = Partial<CustomerAddressCityInput>;
|
|
17
|
+
export type ReadOnlyCustomerAddressCityInput =
|
|
18
|
+
DeepReadonly<CustomerAddressCityInput>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressCountryData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
iso2: string | null;
|
|
7
|
+
iso3: string | null;
|
|
8
|
+
name: string;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<CustomerAddressCountryData> = {}) {
|
|
11
|
+
this.code = data.code || null;
|
|
12
|
+
this.id = data.id || null;
|
|
13
|
+
this.iso2 = data.iso2 || null;
|
|
14
|
+
this.iso3 = data.iso3 || null;
|
|
15
|
+
this.name = data.name || "";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CustomerAddressCountry extends CustomerAddressCountryData {}
|
|
20
|
+
export type PartialCustomerAddressCountry = Partial<CustomerAddressCountry>;
|
|
21
|
+
export type ReadOnlyCustomerAddressCountry =
|
|
22
|
+
DeepReadonly<CustomerAddressCountry>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressCountryInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
iso2: string | null;
|
|
7
|
+
iso3: string | null;
|
|
8
|
+
name: string;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<CustomerAddressCountryInputData> = {}) {
|
|
11
|
+
this.code = data.code || null;
|
|
12
|
+
this.id = data.id || null;
|
|
13
|
+
this.iso2 = data.iso2 || null;
|
|
14
|
+
this.iso3 = data.iso3 || null;
|
|
15
|
+
this.name = data.name || "";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export class CustomerAddressCountryInput extends CustomerAddressCountryInputData {}
|
|
20
|
+
export type PartialCustomerAddressCountryInput =
|
|
21
|
+
Partial<CustomerAddressCountryInput>;
|
|
22
|
+
export type ReadOnlyCustomerAddressCountryInput =
|
|
23
|
+
DeepReadonly<CustomerAddressCountryInput>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressDistrictData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAddressDistrictData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAddressDistrict extends CustomerAddressDistrictData {}
|
|
16
|
+
export type PartialCustomerAddressDistrict = Partial<CustomerAddressDistrict>;
|
|
17
|
+
export type ReadOnlyCustomerAddressDistrict =
|
|
18
|
+
DeepReadonly<CustomerAddressDistrict>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressDistrictInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAddressDistrictInputData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAddressDistrictInput extends CustomerAddressDistrictInputData {}
|
|
16
|
+
export type PartialCustomerAddressDistrictInput =
|
|
17
|
+
Partial<CustomerAddressDistrictInput>;
|
|
18
|
+
export type ReadOnlyCustomerAddressDistrictInput =
|
|
19
|
+
DeepReadonly<CustomerAddressDistrictInput>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressStateData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAddressStateData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAddressState extends CustomerAddressStateData {}
|
|
16
|
+
export type PartialCustomerAddressState = Partial<CustomerAddressState>;
|
|
17
|
+
export type ReadOnlyCustomerAddressState = DeepReadonly<CustomerAddressState>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAddressStateInputData {
|
|
4
|
+
code: string | null;
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAddressStateInputData> = {}) {
|
|
9
|
+
this.code = data.code || null;
|
|
10
|
+
this.id = data.id || null;
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAddressStateInput extends CustomerAddressStateInputData {}
|
|
16
|
+
export type PartialCustomerAddressStateInput =
|
|
17
|
+
Partial<CustomerAddressStateInput>;
|
|
18
|
+
export type ReadOnlyCustomerAddressStateInput =
|
|
19
|
+
DeepReadonly<CustomerAddressStateInput>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CustomerAttributeTypeEnum } from "../types";
|
|
4
|
+
import { CustomerAttributeOptionData } from "./CustomerAttributeOption";
|
|
5
|
+
import { CustomerAttributeSalesChannelData } from "./CustomerAttributeSalesChannel";
|
|
6
|
+
import { CustomerAttributeTranslationData } from "./CustomerAttributeTranslation";
|
|
7
|
+
|
|
8
|
+
export class CustomerAttributeData extends BaseModelData {
|
|
9
|
+
description: string | null;
|
|
10
|
+
name: string;
|
|
11
|
+
options: CustomerAttributeOptionData[] | null;
|
|
12
|
+
salesChannels: CustomerAttributeSalesChannelData[] | null;
|
|
13
|
+
translations: CustomerAttributeTranslationData[] | null;
|
|
14
|
+
type: CustomerAttributeTypeEnum;
|
|
15
|
+
|
|
16
|
+
constructor(data: Partial<CustomerAttributeData> = {}) {
|
|
17
|
+
super(data);
|
|
18
|
+
|
|
19
|
+
this.description = data.description || null;
|
|
20
|
+
this.name = data.name || "";
|
|
21
|
+
this.options = data.options
|
|
22
|
+
? data.options.map((c) => new CustomerAttributeOptionData(c))
|
|
23
|
+
: null;
|
|
24
|
+
this.salesChannels = data.salesChannels
|
|
25
|
+
? data.salesChannels.map((c) => new CustomerAttributeSalesChannelData(c))
|
|
26
|
+
: null;
|
|
27
|
+
this.translations = data.translations
|
|
28
|
+
? data.translations.map((c) => new CustomerAttributeTranslationData(c))
|
|
29
|
+
: null;
|
|
30
|
+
this.type = data.type || CustomerAttributeTypeEnum.BOOLEAN;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class CustomerAttribute extends CustomerAttributeData {}
|
|
35
|
+
export type PartialCustomerAttribute = Partial<CustomerAttribute>;
|
|
36
|
+
export type ReadOnlyCustomerAttribute = DeepReadonly<CustomerAttribute>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class CustomerAttributeOptionData extends BaseModelData {
|
|
5
|
+
name: string;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CustomerAttributeOptionData> = {}) {
|
|
8
|
+
super(data);
|
|
9
|
+
|
|
10
|
+
this.name = data.name || "";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class CustomerAttributeOption extends CustomerAttributeOptionData {}
|
|
15
|
+
export type PartialCustomerAttributeOption = Partial<CustomerAttributeOption>;
|
|
16
|
+
export type ReadOnlyCustomerAttributeOption =
|
|
17
|
+
DeepReadonly<CustomerAttributeOption>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAttributeOptionTranslationData {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CustomerAttributeOptionTranslationData> = {}) {
|
|
8
|
+
this.id = data.id || "";
|
|
9
|
+
this.name = data.name || null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CustomerAttributeOptionTranslation extends CustomerAttributeOptionTranslationData {}
|
|
14
|
+
export type PartialCustomerAttributeOptionTranslation =
|
|
15
|
+
Partial<CustomerAttributeOptionTranslation>;
|
|
16
|
+
export type ReadOnlyCustomerAttributeOptionTranslation =
|
|
17
|
+
DeepReadonly<CustomerAttributeOptionTranslation>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import {
|
|
3
|
+
CustomerAttributePermissionEnum,
|
|
4
|
+
CustomerAttributeRegisterPageRequirementEnum,
|
|
5
|
+
} from "../types";
|
|
6
|
+
|
|
7
|
+
export class CustomerAttributeSalesChannelData {
|
|
8
|
+
permission: CustomerAttributePermissionEnum;
|
|
9
|
+
registerPageRequirement: CustomerAttributeRegisterPageRequirementEnum;
|
|
10
|
+
salesChannelId: string;
|
|
11
|
+
storefrontId: string;
|
|
12
|
+
|
|
13
|
+
constructor(data: Partial<CustomerAttributeSalesChannelData> = {}) {
|
|
14
|
+
this.permission =
|
|
15
|
+
data.permission || CustomerAttributePermissionEnum.INVISIBLE;
|
|
16
|
+
this.registerPageRequirement =
|
|
17
|
+
data.registerPageRequirement ||
|
|
18
|
+
CustomerAttributeRegisterPageRequirementEnum.INVISIBLE;
|
|
19
|
+
this.salesChannelId = data.salesChannelId || "";
|
|
20
|
+
this.storefrontId = data.storefrontId || "";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class CustomerAttributeSalesChannel extends CustomerAttributeSalesChannelData {}
|
|
25
|
+
export type PartialCustomerAttributeSalesChannel =
|
|
26
|
+
Partial<CustomerAttributeSalesChannel>;
|
|
27
|
+
export type ReadOnlyCustomerAttributeSalesChannel =
|
|
28
|
+
DeepReadonly<CustomerAttributeSalesChannel>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerAttributeOptionTranslationData } from "./CustomerAttributeOptionTranslation";
|
|
3
|
+
|
|
4
|
+
export class CustomerAttributeTranslationData {
|
|
5
|
+
description: string | null;
|
|
6
|
+
locale: string;
|
|
7
|
+
name: string | null;
|
|
8
|
+
options: CustomerAttributeOptionTranslationData[] | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<CustomerAttributeTranslationData> = {}) {
|
|
11
|
+
this.description = data.description || null;
|
|
12
|
+
this.locale = data.locale || "";
|
|
13
|
+
this.name = data.name || null;
|
|
14
|
+
this.options = data.options
|
|
15
|
+
? data.options.map((c) => new CustomerAttributeOptionTranslationData(c))
|
|
16
|
+
: null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class CustomerAttributeTranslation extends CustomerAttributeTranslationData {}
|
|
21
|
+
export type PartialCustomerAttributeTranslation =
|
|
22
|
+
Partial<CustomerAttributeTranslation>;
|
|
23
|
+
export type ReadOnlyCustomerAttributeTranslation =
|
|
24
|
+
DeepReadonly<CustomerAttributeTranslation>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAttributeValueData {
|
|
4
|
+
customerAttributeId: string | null;
|
|
5
|
+
customerAttributeOptionId: string | null;
|
|
6
|
+
value: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAttributeValueData> = {}) {
|
|
9
|
+
this.customerAttributeId = data.customerAttributeId || null;
|
|
10
|
+
this.customerAttributeOptionId = data.customerAttributeOptionId || null;
|
|
11
|
+
this.value = data.value || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAttributeValue extends CustomerAttributeValueData {}
|
|
16
|
+
export type PartialCustomerAttributeValue = Partial<CustomerAttributeValue>;
|
|
17
|
+
export type ReadOnlyCustomerAttributeValue =
|
|
18
|
+
DeepReadonly<CustomerAttributeValue>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerAttributeValueInputData {
|
|
4
|
+
customerAttributeId: string | null;
|
|
5
|
+
customerAttributeOptionId: string | null;
|
|
6
|
+
value: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerAttributeValueInputData> = {}) {
|
|
9
|
+
this.customerAttributeId = data.customerAttributeId || null;
|
|
10
|
+
this.customerAttributeOptionId = data.customerAttributeOptionId || null;
|
|
11
|
+
this.value = data.value || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class CustomerAttributeValueInput extends CustomerAttributeValueInputData {}
|
|
16
|
+
export type PartialCustomerAttributeValueInput =
|
|
17
|
+
Partial<CustomerAttributeValueInput>;
|
|
18
|
+
export type ReadOnlyCustomerAttributeValueInput =
|
|
19
|
+
DeepReadonly<CustomerAttributeValueInput>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerCheckResponseData {
|
|
4
|
+
exists: boolean;
|
|
5
|
+
|
|
6
|
+
constructor(data: Partial<CustomerCheckResponseData> = {}) {
|
|
7
|
+
this.exists = data.exists || false;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class CustomerCheckResponse extends CustomerCheckResponseData {}
|
|
12
|
+
export type PartialCustomerCheckResponse = Partial<CustomerCheckResponse>;
|
|
13
|
+
export type ReadOnlyCustomerCheckResponse = DeepReadonly<CustomerCheckResponse>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class CustomerFavoriteProductData extends BaseModelData {
|
|
5
|
+
customerId: string;
|
|
6
|
+
productId: string;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<CustomerFavoriteProductData> = {}) {
|
|
9
|
+
super(data);
|
|
10
|
+
|
|
11
|
+
this.customerId = data.customerId || "";
|
|
12
|
+
this.productId = data.productId || "";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class CustomerFavoriteProduct extends CustomerFavoriteProductData {}
|
|
17
|
+
export type PartialCustomerFavoriteProduct = Partial<CustomerFavoriteProduct>;
|
|
18
|
+
export type ReadOnlyCustomerFavoriteProduct =
|
|
19
|
+
DeepReadonly<CustomerFavoriteProduct>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerData } from "./Customer";
|
|
3
|
+
|
|
4
|
+
export class CustomerLoginResponseData {
|
|
5
|
+
customer: CustomerData | null;
|
|
6
|
+
token: string;
|
|
7
|
+
tokenExpiry: number;
|
|
8
|
+
|
|
9
|
+
constructor(data: Partial<CustomerLoginResponseData> = {}) {
|
|
10
|
+
this.customer = data.customer ? new CustomerData(data.customer) : null;
|
|
11
|
+
this.token = data.token || "";
|
|
12
|
+
this.tokenExpiry = data.tokenExpiry || 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class CustomerLoginResponse extends CustomerLoginResponseData {}
|
|
17
|
+
export type PartialCustomerLoginResponse = Partial<CustomerLoginResponse>;
|
|
18
|
+
export type ReadOnlyCustomerLoginResponse = DeepReadonly<CustomerLoginResponse>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class CustomerRefreshTokenResponseData {
|
|
4
|
+
token: string;
|
|
5
|
+
tokenExpiry: number;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<CustomerRefreshTokenResponseData> = {}) {
|
|
8
|
+
this.token = data.token || "";
|
|
9
|
+
this.tokenExpiry = data.tokenExpiry || 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class CustomerRefreshTokenResponse extends CustomerRefreshTokenResponseData {}
|
|
14
|
+
export type PartialCustomerRefreshTokenResponse =
|
|
15
|
+
Partial<CustomerRefreshTokenResponse>;
|
|
16
|
+
export type ReadOnlyCustomerRefreshTokenResponse =
|
|
17
|
+
DeepReadonly<CustomerRefreshTokenResponse>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { CustomerReviewStatusEnum } from "../types";
|
|
4
|
+
|
|
5
|
+
export class CustomerReviewData extends BaseModelData {
|
|
6
|
+
comment: string | null;
|
|
7
|
+
customerId: string | null;
|
|
8
|
+
email: string | null;
|
|
9
|
+
firstName: string | null;
|
|
10
|
+
imageIds: string[] | null;
|
|
11
|
+
lastName: string | null;
|
|
12
|
+
orderId: string | null;
|
|
13
|
+
orderNumber: string | null;
|
|
14
|
+
productId: string;
|
|
15
|
+
salesChannelId: string | null;
|
|
16
|
+
star: number;
|
|
17
|
+
status: CustomerReviewStatusEnum | null;
|
|
18
|
+
storefrontId: string | null;
|
|
19
|
+
title: string | null;
|
|
20
|
+
|
|
21
|
+
constructor(data: Partial<CustomerReviewData> = {}) {
|
|
22
|
+
super(data);
|
|
23
|
+
|
|
24
|
+
this.comment = data.comment || null;
|
|
25
|
+
this.customerId = data.customerId || null;
|
|
26
|
+
this.email = data.email || null;
|
|
27
|
+
this.firstName = data.firstName || null;
|
|
28
|
+
this.imageIds = data.imageIds || null;
|
|
29
|
+
this.lastName = data.lastName || null;
|
|
30
|
+
this.orderId = data.orderId || null;
|
|
31
|
+
this.orderNumber = data.orderNumber || null;
|
|
32
|
+
this.productId = data.productId || "";
|
|
33
|
+
this.salesChannelId = data.salesChannelId || null;
|
|
34
|
+
this.star = data.star || 0;
|
|
35
|
+
this.status = data.status || null;
|
|
36
|
+
this.storefrontId = data.storefrontId || null;
|
|
37
|
+
this.title = data.title || null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class CustomerReview extends CustomerReviewData {}
|
|
42
|
+
export type PartialCustomerReview = Partial<CustomerReview>;
|
|
43
|
+
export type ReadOnlyCustomerReview = DeepReadonly<CustomerReview>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { CustomerReviewData } from "./CustomerReview";
|
|
3
|
+
|
|
4
|
+
export class CustomerReviewSFPaginationResponseData {
|
|
5
|
+
count: number;
|
|
6
|
+
data: CustomerReviewData[];
|
|
7
|
+
hasNext: boolean;
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<CustomerReviewSFPaginationResponseData> = {}) {
|
|
12
|
+
this.count = data.count || 0;
|
|
13
|
+
this.data = data.data
|
|
14
|
+
? data.data.map((c) => new CustomerReviewData(c))
|
|
15
|
+
: [];
|
|
16
|
+
this.hasNext = data.hasNext || false;
|
|
17
|
+
this.limit = data.limit || 0;
|
|
18
|
+
this.page = data.page || 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class CustomerReviewSFPaginationResponse extends CustomerReviewSFPaginationResponseData {}
|
|
23
|
+
export type PartialCustomerReviewSFPaginationResponse =
|
|
24
|
+
Partial<CustomerReviewSFPaginationResponse>;
|
|
25
|
+
export type ReadOnlyCustomerReviewSFPaginationResponse =
|
|
26
|
+
DeepReadonly<CustomerReviewSFPaginationResponse>;
|