@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,31 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductOptionSelectTypeEnum } from "../types";
|
|
3
|
+
import { ProductOptionSelectValueData } from "./ProductOptionSelectValue";
|
|
4
|
+
|
|
5
|
+
export class ProductOptionSelectSettingsData {
|
|
6
|
+
maxSelect: number | null;
|
|
7
|
+
minSelect: number | null;
|
|
8
|
+
type: ProductOptionSelectTypeEnum;
|
|
9
|
+
values: ProductOptionSelectValueData[];
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<ProductOptionSelectSettingsData> = {}) {
|
|
12
|
+
this.maxSelect =
|
|
13
|
+
data.maxSelect !== undefined && data.maxSelect !== null
|
|
14
|
+
? data.maxSelect
|
|
15
|
+
: null;
|
|
16
|
+
this.minSelect =
|
|
17
|
+
data.minSelect !== undefined && data.minSelect !== null
|
|
18
|
+
? data.minSelect
|
|
19
|
+
: null;
|
|
20
|
+
this.type = data.type || ProductOptionSelectTypeEnum.BOX;
|
|
21
|
+
this.values = data.values
|
|
22
|
+
? data.values.map((p) => new ProductOptionSelectValueData(p))
|
|
23
|
+
: [];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class ProductOptionSelectSettings extends ProductOptionSelectSettingsData {}
|
|
28
|
+
export type PartialProductOptionSelectSettings =
|
|
29
|
+
Partial<ProductOptionSelectSettings>;
|
|
30
|
+
export type ReadOnlyProductOptionSelectSettings =
|
|
31
|
+
DeepReadonly<ProductOptionSelectSettings>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { ProductOptionSelectValueOtherPriceData } from "./ProductOptionSelectValueOtherPrice";
|
|
4
|
+
|
|
5
|
+
export class ProductOptionSelectValueData extends BaseModelData {
|
|
6
|
+
colorCode: string | null;
|
|
7
|
+
order: number;
|
|
8
|
+
otherPrices: ProductOptionSelectValueOtherPriceData[] | null;
|
|
9
|
+
price: number | null;
|
|
10
|
+
thumbnailImageId: string | null;
|
|
11
|
+
value: string;
|
|
12
|
+
|
|
13
|
+
constructor(data: Partial<ProductOptionSelectValueData> = {}) {
|
|
14
|
+
super(data);
|
|
15
|
+
|
|
16
|
+
this.colorCode = data.colorCode || null;
|
|
17
|
+
this.order = data.order || 0;
|
|
18
|
+
this.otherPrices = data.otherPrices
|
|
19
|
+
? data.otherPrices.map(
|
|
20
|
+
(p) => new ProductOptionSelectValueOtherPriceData(p)
|
|
21
|
+
)
|
|
22
|
+
: null;
|
|
23
|
+
this.price =
|
|
24
|
+
data.price !== undefined && data.price !== null ? data.price : null;
|
|
25
|
+
this.thumbnailImageId = data.thumbnailImageId || null;
|
|
26
|
+
this.value = data.value || "";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class ProductOptionSelectValue extends ProductOptionSelectValueData {}
|
|
31
|
+
export type PartialProductOptionSelectValue = Partial<ProductOptionSelectValue>;
|
|
32
|
+
export type ReadOnlyProductOptionSelectValue =
|
|
33
|
+
DeepReadonly<ProductOptionSelectValue>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class ProductOptionSelectValueOtherPriceData {
|
|
4
|
+
currencyCode: string;
|
|
5
|
+
price: number;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<ProductOptionSelectValueOtherPriceData> = {}) {
|
|
8
|
+
this.currencyCode = data.currencyCode || "";
|
|
9
|
+
this.price = data.price || 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class ProductOptionSelectValueOtherPrice extends ProductOptionSelectValueOtherPriceData {}
|
|
14
|
+
export type PartialProductOptionSelectValueOtherPrice =
|
|
15
|
+
Partial<ProductOptionSelectValueOtherPrice>;
|
|
16
|
+
export type ReadOnlyProductOptionSelectValueOtherPrice =
|
|
17
|
+
DeepReadonly<ProductOptionSelectValueOtherPrice>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class ProductOptionSelectValueTranslationsData {
|
|
4
|
+
id: string;
|
|
5
|
+
value: string | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<ProductOptionSelectValueTranslationsData> = {}) {
|
|
8
|
+
this.id = data.id || "";
|
|
9
|
+
this.value = data.value || null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class ProductOptionSelectValueTranslations extends ProductOptionSelectValueTranslationsData {}
|
|
14
|
+
export type PartialProductOptionSelectValueTranslations =
|
|
15
|
+
Partial<ProductOptionSelectValueTranslations>;
|
|
16
|
+
export type ReadOnlyProductOptionSelectValueTranslations =
|
|
17
|
+
DeepReadonly<ProductOptionSelectValueTranslations>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { ProductOptionData } from "./ProductOption";
|
|
4
|
+
import { ProductOptionSetTranslationsData } from "./ProductOptionSetTranslations";
|
|
5
|
+
|
|
6
|
+
export class ProductOptionSetData extends BaseModelData {
|
|
7
|
+
name: string;
|
|
8
|
+
options: ProductOptionData[];
|
|
9
|
+
translations: ProductOptionSetTranslationsData[] | null;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<ProductOptionSetData> = {}) {
|
|
12
|
+
super(data);
|
|
13
|
+
|
|
14
|
+
this.name = data.name || "";
|
|
15
|
+
this.options = data.options
|
|
16
|
+
? data.options.map((p) => new ProductOptionData(p))
|
|
17
|
+
: [];
|
|
18
|
+
this.translations = data.translations
|
|
19
|
+
? data.translations.map((p) => new ProductOptionSetTranslationsData(p))
|
|
20
|
+
: null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class ProductOptionSet extends ProductOptionSetData {}
|
|
25
|
+
export type PartialProductOptionSet = Partial<ProductOptionSet>;
|
|
26
|
+
export type ReadOnlyProductOptionSet = DeepReadonly<ProductOptionSet>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductOptionTranslationsData } from "./ProductOptionTranslations";
|
|
3
|
+
|
|
4
|
+
export class ProductOptionSetTranslationsData {
|
|
5
|
+
locale: string;
|
|
6
|
+
options: ProductOptionTranslationsData[] | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<ProductOptionSetTranslationsData> = {}) {
|
|
9
|
+
this.locale = data.locale || "";
|
|
10
|
+
this.options = data.options
|
|
11
|
+
? data.options.map((p) => new ProductOptionTranslationsData(p))
|
|
12
|
+
: null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class ProductOptionSetTranslations extends ProductOptionSetTranslationsData {}
|
|
17
|
+
export type PartialProductOptionSetTranslations =
|
|
18
|
+
Partial<ProductOptionSetTranslations>;
|
|
19
|
+
export type ReadOnlyProductOptionSetTranslations =
|
|
20
|
+
DeepReadonly<ProductOptionSetTranslations>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class ProductOptionTextSettingsData {
|
|
4
|
+
max: number | null;
|
|
5
|
+
min: number | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<ProductOptionTextSettingsData> = {}) {
|
|
8
|
+
this.max = data.max !== undefined && data.max !== null ? data.max : null;
|
|
9
|
+
this.min = data.min !== undefined && data.min !== null ? data.min : null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class ProductOptionTextSettings extends ProductOptionTextSettingsData {}
|
|
14
|
+
export type PartialProductOptionTextSettings =
|
|
15
|
+
Partial<ProductOptionTextSettings>;
|
|
16
|
+
export type ReadOnlyProductOptionTextSettings =
|
|
17
|
+
DeepReadonly<ProductOptionTextSettings>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductOptionSelectValueTranslationsData } from "./ProductOptionSelectValueTranslations";
|
|
3
|
+
|
|
4
|
+
export class ProductOptionTranslationsData {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string | null;
|
|
7
|
+
optionalText: string | null;
|
|
8
|
+
values: ProductOptionSelectValueTranslationsData[] | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<ProductOptionTranslationsData> = {}) {
|
|
11
|
+
this.id = data.id || "";
|
|
12
|
+
this.name = data.name || null;
|
|
13
|
+
this.optionalText = data.optionalText || null;
|
|
14
|
+
this.values = data.values
|
|
15
|
+
? data.values.map((p) => new ProductOptionSelectValueTranslationsData(p))
|
|
16
|
+
: null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class ProductOptionTranslations extends ProductOptionTranslationsData {}
|
|
21
|
+
export type PartialProductOptionTranslations =
|
|
22
|
+
Partial<ProductOptionTranslations>;
|
|
23
|
+
export type ReadOnlyProductOptionTranslations =
|
|
24
|
+
DeepReadonly<ProductOptionTranslations>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductData } from "./Product";
|
|
3
|
+
|
|
4
|
+
export class ProductPaginationResponseData {
|
|
5
|
+
count: number;
|
|
6
|
+
data: ProductData[];
|
|
7
|
+
hasNext: boolean;
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<ProductPaginationResponseData> = {}) {
|
|
12
|
+
this.count = data.count || 0;
|
|
13
|
+
this.data = data.data ? data.data.map((p) => new ProductData(p)) : [];
|
|
14
|
+
this.hasNext = data.hasNext || false;
|
|
15
|
+
this.limit = data.limit || 0;
|
|
16
|
+
this.page = data.page || 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class ProductPaginationResponse extends ProductPaginationResponseData {}
|
|
21
|
+
export type PartialProductPaginationResponse =
|
|
22
|
+
Partial<ProductPaginationResponse>;
|
|
23
|
+
export type ReadOnlyProductPaginationResponse =
|
|
24
|
+
DeepReadonly<ProductPaginationResponse>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class ProductPriceData {
|
|
4
|
+
buyPrice: number | null;
|
|
5
|
+
currency: string | null;
|
|
6
|
+
discountPrice: number | null;
|
|
7
|
+
priceListId: string | null;
|
|
8
|
+
sellPrice: number;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<ProductPriceData> = {}) {
|
|
11
|
+
this.buyPrice =
|
|
12
|
+
data.buyPrice !== undefined && data.buyPrice !== null
|
|
13
|
+
? data.buyPrice
|
|
14
|
+
: null;
|
|
15
|
+
this.currency = data.currency || null;
|
|
16
|
+
this.discountPrice =
|
|
17
|
+
data.discountPrice !== undefined && data.discountPrice !== null
|
|
18
|
+
? data.discountPrice
|
|
19
|
+
: null;
|
|
20
|
+
this.priceListId = data.priceListId || null;
|
|
21
|
+
this.sellPrice = data.sellPrice || 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class ProductPrice extends ProductPriceData {}
|
|
26
|
+
export type PartialProductPrice = Partial<ProductPrice>;
|
|
27
|
+
export type ReadOnlyProductPrice = DeepReadonly<ProductPrice>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { ProductFacetCountData } from "./ProductFacetCount";
|
|
3
|
+
import { SearchProductData } from "./SearchProduct";
|
|
4
|
+
|
|
5
|
+
export class ProductSearchResponseData {
|
|
6
|
+
count: number;
|
|
7
|
+
data: any;
|
|
8
|
+
facets: ProductFacetCountData[] | null;
|
|
9
|
+
limit: number;
|
|
10
|
+
page: number;
|
|
11
|
+
results: SearchProductData[];
|
|
12
|
+
totalCount: number;
|
|
13
|
+
|
|
14
|
+
constructor(data: Partial<ProductSearchResponseData> = {}) {
|
|
15
|
+
this.count = data.count || 0;
|
|
16
|
+
this.data = data.data || null;
|
|
17
|
+
this.facets = data.facets
|
|
18
|
+
? data.facets.map((p) => new ProductFacetCountData(p))
|
|
19
|
+
: null;
|
|
20
|
+
this.limit = data.limit || 0;
|
|
21
|
+
this.page = data.page || 0;
|
|
22
|
+
this.results = data.results
|
|
23
|
+
? data.results.map((s) => new SearchProductData(s))
|
|
24
|
+
: [];
|
|
25
|
+
this.totalCount = data.totalCount || 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class ProductSearchResponse extends ProductSearchResponseData {}
|
|
30
|
+
export type PartialProductSearchResponse = Partial<ProductSearchResponse>;
|
|
31
|
+
export type ReadOnlyProductSearchResponse = DeepReadonly<ProductSearchResponse>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class ProductStockLocationData extends BaseModelData {
|
|
5
|
+
productId: string;
|
|
6
|
+
stockCount: number;
|
|
7
|
+
stockLocationId: string;
|
|
8
|
+
variantId: string;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<ProductStockLocationData> = {}) {
|
|
11
|
+
super(data);
|
|
12
|
+
|
|
13
|
+
this.productId = data.productId || "";
|
|
14
|
+
this.stockCount = data.stockCount || 0;
|
|
15
|
+
this.stockLocationId = data.stockLocationId || "";
|
|
16
|
+
this.variantId = data.variantId || "";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class ProductStockLocation extends ProductStockLocationData {}
|
|
21
|
+
export type PartialProductStockLocation = Partial<ProductStockLocation>;
|
|
22
|
+
export type ReadOnlyProductStockLocation = DeepReadonly<ProductStockLocation>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class ProductTagTranslationData {
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<ProductTagTranslationData> = {}) {
|
|
9
|
+
this.description = data.description || null;
|
|
10
|
+
this.locale = data.locale || "";
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class ProductTagTranslation extends ProductTagTranslationData {}
|
|
16
|
+
export type PartialProductTagTranslation = Partial<ProductTagTranslation>;
|
|
17
|
+
export type ReadOnlyProductTagTranslation = DeepReadonly<ProductTagTranslation>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class ProductTranslationData {
|
|
4
|
+
description: string | null;
|
|
5
|
+
locale: string;
|
|
6
|
+
name: string | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<ProductTranslationData> = {}) {
|
|
9
|
+
this.description = data.description || null;
|
|
10
|
+
this.locale = data.locale || "";
|
|
11
|
+
this.name = data.name || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class ProductTranslation extends ProductTranslationData {}
|
|
16
|
+
export type PartialProductTranslation = Partial<ProductTranslation>;
|
|
17
|
+
export type ReadOnlyProductTranslation = DeepReadonly<ProductTranslation>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class ProductVariantTypeData {
|
|
4
|
+
order: number;
|
|
5
|
+
variantTypeId: string;
|
|
6
|
+
variantValueIds: string[] | null;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<ProductVariantTypeData> = {}) {
|
|
9
|
+
this.order = data.order || 0;
|
|
10
|
+
this.variantTypeId = data.variantTypeId || "";
|
|
11
|
+
this.variantValueIds = data.variantValueIds || null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class ProductVariantType extends ProductVariantTypeData {}
|
|
16
|
+
export type PartialProductVariantType = Partial<ProductVariantType>;
|
|
17
|
+
export type ReadOnlyProductVariantType = DeepReadonly<ProductVariantType>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { VerificationTypeEnum } from "../types";
|
|
4
|
+
import { RaffleDateRangeFieldData } from "./RaffleDateRangeField";
|
|
5
|
+
import { RaffleMetadataData } from "./RaffleMetadata";
|
|
6
|
+
import { RaffleVariantInformationData } from "./RaffleVariantInformation";
|
|
7
|
+
|
|
8
|
+
export class RaffleData extends BaseModelData {
|
|
9
|
+
dateRange: RaffleDateRangeFieldData | null;
|
|
10
|
+
metadata: RaffleMetadataData;
|
|
11
|
+
name: string;
|
|
12
|
+
participantCount: number | null;
|
|
13
|
+
raffleParticipantCreatedMailExtraData: string | null;
|
|
14
|
+
raffleParticipantWinnerMailExtraData: string | null;
|
|
15
|
+
requiredCustomerAccount: boolean;
|
|
16
|
+
status: boolean;
|
|
17
|
+
variants: RaffleVariantInformationData[];
|
|
18
|
+
verificationType: VerificationTypeEnum;
|
|
19
|
+
|
|
20
|
+
constructor(data: Partial<RaffleData> = {}) {
|
|
21
|
+
super(data);
|
|
22
|
+
|
|
23
|
+
this.dateRange = data.dateRange
|
|
24
|
+
? new RaffleDateRangeFieldData(data.dateRange)
|
|
25
|
+
: null;
|
|
26
|
+
this.metadata = data.metadata
|
|
27
|
+
? new RaffleMetadataData(data.metadata)
|
|
28
|
+
: new RaffleMetadataData();
|
|
29
|
+
this.name = data.name || "";
|
|
30
|
+
this.participantCount =
|
|
31
|
+
data.participantCount !== undefined && data.participantCount !== null
|
|
32
|
+
? data.participantCount
|
|
33
|
+
: null;
|
|
34
|
+
this.raffleParticipantCreatedMailExtraData =
|
|
35
|
+
data.raffleParticipantCreatedMailExtraData || null;
|
|
36
|
+
this.raffleParticipantWinnerMailExtraData =
|
|
37
|
+
data.raffleParticipantWinnerMailExtraData || null;
|
|
38
|
+
this.requiredCustomerAccount = data.requiredCustomerAccount || false;
|
|
39
|
+
this.status = data.status || false;
|
|
40
|
+
this.variants = data.variants
|
|
41
|
+
? data.variants.map((r) => new RaffleVariantInformationData(r))
|
|
42
|
+
: [];
|
|
43
|
+
this.verificationType = data.verificationType || VerificationTypeEnum.EMAIL;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class Raffle extends RaffleData {}
|
|
48
|
+
export type PartialRaffle = Partial<Raffle>;
|
|
49
|
+
export type ReadOnlyRaffle = DeepReadonly<Raffle>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class RaffleDateRangeFieldData {
|
|
4
|
+
end: any | null;
|
|
5
|
+
start: any | null;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<RaffleDateRangeFieldData> = {}) {
|
|
8
|
+
this.end = data.end || null;
|
|
9
|
+
this.start = data.start || null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class RaffleDateRangeField extends RaffleDateRangeFieldData {}
|
|
14
|
+
export type PartialRaffleDateRangeField = Partial<RaffleDateRangeField>;
|
|
15
|
+
export type ReadOnlyRaffleDateRangeField = DeepReadonly<RaffleDateRangeField>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { RaffleMetadataTargetTypeEnum } from "../types";
|
|
4
|
+
|
|
5
|
+
export class RaffleMetadataData extends BaseModelData {
|
|
6
|
+
canonicals: string[] | null;
|
|
7
|
+
description: string | null;
|
|
8
|
+
disableIndex: boolean | null;
|
|
9
|
+
pageTitle: string | null;
|
|
10
|
+
slug: string;
|
|
11
|
+
targetId: string | null;
|
|
12
|
+
targetType: RaffleMetadataTargetTypeEnum | null;
|
|
13
|
+
|
|
14
|
+
constructor(data: Partial<RaffleMetadataData> = {}) {
|
|
15
|
+
super(data);
|
|
16
|
+
|
|
17
|
+
this.canonicals = data.canonicals || null;
|
|
18
|
+
this.description = data.description || null;
|
|
19
|
+
this.disableIndex =
|
|
20
|
+
data.disableIndex !== undefined && data.disableIndex !== null
|
|
21
|
+
? data.disableIndex
|
|
22
|
+
: null;
|
|
23
|
+
this.pageTitle = data.pageTitle || null;
|
|
24
|
+
this.slug = data.slug || "";
|
|
25
|
+
this.targetId = data.targetId || null;
|
|
26
|
+
this.targetType = data.targetType || null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class RaffleMetadata extends RaffleMetadataData {}
|
|
31
|
+
export type PartialRaffleMetadata = Partial<RaffleMetadata>;
|
|
32
|
+
export type ReadOnlyRaffleMetadata = DeepReadonly<RaffleMetadata>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { RaffleMetadataTargetTypeEnum } from "../types";
|
|
3
|
+
|
|
4
|
+
export class RaffleMetadataTargetTypeEnumFilterData {
|
|
5
|
+
eq: RaffleMetadataTargetTypeEnum | null;
|
|
6
|
+
in: RaffleMetadataTargetTypeEnum[] | null;
|
|
7
|
+
ne: RaffleMetadataTargetTypeEnum | null;
|
|
8
|
+
nin: RaffleMetadataTargetTypeEnum[] | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<RaffleMetadataTargetTypeEnumFilterData> = {}) {
|
|
11
|
+
this.eq = data.eq || null;
|
|
12
|
+
this.in = data.in || null;
|
|
13
|
+
this.ne = data.ne || null;
|
|
14
|
+
this.nin = data.nin || null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class RaffleMetadataTargetTypeEnumFilter extends RaffleMetadataTargetTypeEnumFilterData {}
|
|
19
|
+
export type PartialRaffleMetadataTargetTypeEnumFilter =
|
|
20
|
+
Partial<RaffleMetadataTargetTypeEnumFilter>;
|
|
21
|
+
export type ReadOnlyRaffleMetadataTargetTypeEnumFilter =
|
|
22
|
+
DeepReadonly<RaffleMetadataTargetTypeEnumFilter>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import { RaffleData } from "./Raffle";
|
|
3
|
+
|
|
4
|
+
export class RafflePaginationResponseData {
|
|
5
|
+
count: number;
|
|
6
|
+
data: RaffleData[];
|
|
7
|
+
hasNext: boolean;
|
|
8
|
+
limit: number;
|
|
9
|
+
page: number;
|
|
10
|
+
|
|
11
|
+
constructor(data: Partial<RafflePaginationResponseData> = {}) {
|
|
12
|
+
this.count = data.count || 0;
|
|
13
|
+
this.data = data.data ? data.data.map((r) => new RaffleData(r)) : [];
|
|
14
|
+
this.hasNext = data.hasNext || false;
|
|
15
|
+
this.limit = data.limit || 0;
|
|
16
|
+
this.page = data.page || 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class RafflePaginationResponse extends RafflePaginationResponseData {}
|
|
21
|
+
export type PartialRafflePaginationResponse = Partial<RafflePaginationResponse>;
|
|
22
|
+
export type ReadOnlyRafflePaginationResponse =
|
|
23
|
+
DeepReadonly<RafflePaginationResponse>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { AppliedProductData } from "./AppliedProduct";
|
|
4
|
+
|
|
5
|
+
export class RaffleParticipantsData extends BaseModelData {
|
|
6
|
+
applicationDate: any;
|
|
7
|
+
appliedProduct: AppliedProductData;
|
|
8
|
+
customerId: string | null;
|
|
9
|
+
email: string;
|
|
10
|
+
extraData: any | null;
|
|
11
|
+
firstName: string;
|
|
12
|
+
fullName: string;
|
|
13
|
+
isDeliveredCargo: boolean | null;
|
|
14
|
+
isSendEmail: boolean | null;
|
|
15
|
+
isWinner: boolean | null;
|
|
16
|
+
lastName: string;
|
|
17
|
+
phone: string | null;
|
|
18
|
+
raffleId: string;
|
|
19
|
+
|
|
20
|
+
constructor(data: Partial<RaffleParticipantsData> = {}) {
|
|
21
|
+
super(data);
|
|
22
|
+
|
|
23
|
+
this.applicationDate = data.applicationDate || null;
|
|
24
|
+
this.appliedProduct = data.appliedProduct
|
|
25
|
+
? new AppliedProductData(data.appliedProduct)
|
|
26
|
+
: new AppliedProductData();
|
|
27
|
+
this.customerId = data.customerId || null;
|
|
28
|
+
this.email = data.email || "";
|
|
29
|
+
this.extraData = data.extraData || null;
|
|
30
|
+
this.firstName = data.firstName || "";
|
|
31
|
+
this.fullName = data.fullName || "";
|
|
32
|
+
this.isDeliveredCargo =
|
|
33
|
+
data.isDeliveredCargo !== undefined && data.isDeliveredCargo !== null
|
|
34
|
+
? data.isDeliveredCargo
|
|
35
|
+
: null;
|
|
36
|
+
this.isSendEmail =
|
|
37
|
+
data.isSendEmail !== undefined && data.isSendEmail !== null
|
|
38
|
+
? data.isSendEmail
|
|
39
|
+
: null;
|
|
40
|
+
this.isWinner =
|
|
41
|
+
data.isWinner !== undefined && data.isWinner !== null
|
|
42
|
+
? data.isWinner
|
|
43
|
+
: null;
|
|
44
|
+
this.lastName = data.lastName || "";
|
|
45
|
+
this.phone = data.phone || null;
|
|
46
|
+
this.raffleId = data.raffleId || "";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export class RaffleParticipants extends RaffleParticipantsData {}
|
|
51
|
+
export type PartialRaffleParticipants = Partial<RaffleParticipants>;
|
|
52
|
+
export type ReadOnlyRaffleParticipants = DeepReadonly<RaffleParticipants>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
import { AppliedProductInputData } from "./AppliedProductInput";
|
|
4
|
+
|
|
5
|
+
export class RaffleParticipantsInputData extends BaseModelData {
|
|
6
|
+
appliedProduct: AppliedProductInputData;
|
|
7
|
+
email: string;
|
|
8
|
+
extraData: any | null;
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
raffleId: string;
|
|
13
|
+
|
|
14
|
+
constructor(data: Partial<RaffleParticipantsInputData> = {}) {
|
|
15
|
+
super(data);
|
|
16
|
+
|
|
17
|
+
this.appliedProduct = data.appliedProduct
|
|
18
|
+
? new AppliedProductInputData(data.appliedProduct)
|
|
19
|
+
: new AppliedProductInputData();
|
|
20
|
+
this.email = data.email || "";
|
|
21
|
+
this.extraData = data.extraData || null;
|
|
22
|
+
this.firstName = data.firstName || "";
|
|
23
|
+
this.lastName = data.lastName || "";
|
|
24
|
+
this.phone = data.phone || null;
|
|
25
|
+
this.raffleId = data.raffleId || "";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class RaffleParticipantsInput extends RaffleParticipantsInputData {}
|
|
30
|
+
export type PartialRaffleParticipantsInput = Partial<RaffleParticipantsInput>;
|
|
31
|
+
export type ReadOnlyRaffleParticipantsInput =
|
|
32
|
+
DeepReadonly<RaffleParticipantsInput>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
import BaseModelData from "./_base";
|
|
3
|
+
|
|
4
|
+
export class RaffleParticipantsUpdateInputData extends BaseModelData {
|
|
5
|
+
firstName: string | null;
|
|
6
|
+
lastName: string | null;
|
|
7
|
+
participantId: string;
|
|
8
|
+
phone: string | null;
|
|
9
|
+
|
|
10
|
+
constructor(data: Partial<RaffleParticipantsUpdateInputData> = {}) {
|
|
11
|
+
super(data);
|
|
12
|
+
|
|
13
|
+
this.firstName = data.firstName || null;
|
|
14
|
+
this.lastName = data.lastName || null;
|
|
15
|
+
this.participantId = data.participantId || "";
|
|
16
|
+
this.phone = data.phone || null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class RaffleParticipantsUpdateInput extends RaffleParticipantsUpdateInputData {}
|
|
21
|
+
export type PartialRaffleParticipantsUpdateInput =
|
|
22
|
+
Partial<RaffleParticipantsUpdateInput>;
|
|
23
|
+
export type ReadOnlyRaffleParticipantsUpdateInput =
|
|
24
|
+
DeepReadonly<RaffleParticipantsUpdateInput>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class RaffleVariantInformationData {
|
|
4
|
+
productId: string;
|
|
5
|
+
variantId: string;
|
|
6
|
+
|
|
7
|
+
constructor(data: Partial<RaffleVariantInformationData> = {}) {
|
|
8
|
+
this.productId = data.productId || "";
|
|
9
|
+
this.variantId = data.variantId || "";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class RaffleVariantInformation extends RaffleVariantInformationData {}
|
|
14
|
+
export type PartialRaffleVariantInformation = Partial<RaffleVariantInformation>;
|
|
15
|
+
export type ReadOnlyRaffleVariantInformation =
|
|
16
|
+
DeepReadonly<RaffleVariantInformation>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DeepReadonly } from "ts-essentials";
|
|
2
|
+
|
|
3
|
+
export class RetrieveInstallmentInfoInputData {
|
|
4
|
+
binNumber: string;
|
|
5
|
+
paymentGatewayId: string;
|
|
6
|
+
price: number;
|
|
7
|
+
|
|
8
|
+
constructor(data: Partial<RetrieveInstallmentInfoInputData> = {}) {
|
|
9
|
+
this.binNumber = data.binNumber || "";
|
|
10
|
+
this.paymentGatewayId = data.paymentGatewayId || "";
|
|
11
|
+
this.price = data.price || 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class RetrieveInstallmentInfoInput extends RetrieveInstallmentInfoInputData {}
|
|
16
|
+
export type PartialRetrieveInstallmentInfoInput =
|
|
17
|
+
Partial<RetrieveInstallmentInfoInput>;
|
|
18
|
+
export type ReadOnlyRetrieveInstallmentInfoInput =
|
|
19
|
+
DeepReadonly<RetrieveInstallmentInfoInput>;
|