@devite/shopware-client 1.0.0 → 1.1.0
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/dist/index.cjs +12140 -453
- package/dist/index.d.cts +11772 -1421
- package/dist/index.d.mts +11772 -1421
- package/dist/index.d.ts +11772 -1421
- package/dist/index.mjs +12140 -441
- package/dist/{types → src/http}/HTTPRequestMethod.d.ts +2 -1
- package/dist/types/ClientRequestOptions.d.ts +7 -4
- package/dist/types/ClientResponse.d.ts +3 -3
- package/dist/types/OAuthScope.d.ts +1 -0
- package/dist/types/RequestCacheEntry.d.ts +2 -2
- package/dist/types/api/admin/DeliveryTime.d.ts +7 -0
- package/dist/types/api/admin/LogEntry.d.ts +10 -0
- package/dist/types/api/admin/Notification.d.ts +15 -0
- package/dist/types/api/admin/Salutation.d.ts +11 -0
- package/dist/types/api/admin/ScheduledTask.d.ts +12 -0
- package/dist/types/api/admin/Script.d.ts +12 -0
- package/dist/types/api/admin/ShopwarePlugin.d.ts +30 -0
- package/dist/types/api/admin/SystemConfig.d.ts +12 -0
- package/dist/types/api/admin/Tag.d.ts +21 -0
- package/dist/types/api/admin/Unit.d.ts +5 -0
- package/dist/types/api/admin/acl/AclRole.d.ts +15 -0
- package/dist/types/api/admin/acl/AclUserRole.d.ts +11 -0
- package/dist/types/api/admin/acl/index.d.ts +2 -0
- package/dist/types/api/admin/app/App.d.ts +59 -0
- package/dist/types/api/admin/app/AppActionButton.d.ts +14 -0
- package/dist/types/api/admin/app/AppAdministrationSnippet.d.ts +8 -0
- package/dist/types/api/admin/app/AppCmsBlock.d.ts +14 -0
- package/dist/types/api/admin/app/AppScriptCondition.d.ts +17 -0
- package/dist/types/api/admin/app/AppTemplate.d.ts +11 -0
- package/dist/types/api/admin/app/index.d.ts +6 -0
- package/dist/types/api/admin/cart/Cart.d.ts +12 -0
- package/dist/types/api/admin/cart/CartItem.d.ts +4 -0
- package/dist/types/api/admin/cart/index.d.ts +2 -0
- package/dist/types/api/admin/category/Category.d.ts +17 -0
- package/dist/types/api/admin/category/CategoryTag.d.ts +10 -0
- package/dist/types/api/admin/category/MainCategory.d.ts +9 -0
- package/dist/types/api/admin/category/index.d.ts +3 -0
- package/dist/types/api/admin/cms/CmsBlock.d.ts +10 -0
- package/dist/types/api/admin/cms/CmsPage.d.ts +14 -0
- package/dist/types/api/admin/cms/CmsSection.d.ts +11 -0
- package/dist/types/api/admin/cms/CmsSlot.d.ts +5 -0
- package/dist/types/api/admin/cms/index.d.ts +5 -0
- package/dist/types/api/admin/cms/landingPage/LandingPage.d.ts +9 -0
- package/dist/types/api/admin/cms/landingPage/LandingPageSalesChannel.d.ts +10 -0
- package/dist/types/api/admin/cms/landingPage/LandingPageTag.d.ts +10 -0
- package/dist/types/api/admin/cms/landingPage/index.d.ts +3 -0
- package/dist/types/api/admin/country/Country.d.ts +16 -0
- package/dist/types/api/admin/country/CountryState.d.ts +9 -0
- package/dist/types/api/admin/currency/Currency.d.ts +16 -0
- package/dist/types/api/admin/currency/CurrencyCountryRounding.d.ts +14 -0
- package/dist/types/api/admin/currency/index.d.ts +2 -0
- package/dist/types/api/admin/custom/CustomEntity.d.ts +16 -0
- package/dist/types/api/admin/custom/field/CustomField.d.ts +16 -0
- package/dist/types/api/admin/custom/field/index.d.ts +2 -0
- package/dist/types/api/admin/custom/field/set/CustomFieldSet.d.ts +19 -0
- package/dist/types/api/admin/custom/field/set/CustomFieldSetRelation.d.ts +9 -0
- package/dist/types/api/admin/custom/field/set/index.d.ts +2 -0
- package/dist/types/api/admin/custom/index.d.ts +2 -0
- package/dist/types/api/admin/customer/Customer.d.ts +39 -0
- package/dist/types/api/admin/customer/CustomerAddress.d.ts +11 -0
- package/dist/types/api/admin/customer/CustomerRecovery.d.ts +9 -0
- package/dist/types/api/admin/customer/CustomerTag.d.ts +9 -0
- package/dist/types/api/admin/customer/group/CustomerGroup.d.ts +8 -0
- package/dist/types/api/admin/customer/group/CustomerGroupRegistrationSalesChannels.d.ts +10 -0
- package/dist/types/api/admin/customer/group/index.d.ts +2 -0
- package/dist/types/api/admin/customer/index.d.ts +6 -0
- package/dist/types/api/admin/customer/wishlist/CustomerWishlist.d.ts +15 -0
- package/dist/types/api/admin/customer/wishlist/CustomerWishlistProduct.d.ts +12 -0
- package/dist/types/api/admin/customer/wishlist/index.d.ts +2 -0
- package/dist/types/api/admin/document/ShopwareDocument.d.ts +9 -0
- package/dist/types/api/admin/document/ShopwareDocumentType.d.ts +9 -0
- package/dist/types/api/admin/document/baseConfig/ShopwareDocumentBaseConfig.d.ts +9 -0
- package/dist/types/api/admin/document/baseConfig/ShopwareDocumentBaseConfigSalesChannel.d.ts +14 -0
- package/dist/types/api/admin/document/baseConfig/index.d.ts +2 -0
- package/dist/types/api/admin/document/index.d.ts +3 -0
- package/dist/types/api/admin/flow/Flow.d.ts +18 -0
- package/dist/types/api/admin/flow/FlowSequence.d.ts +25 -0
- package/dist/types/api/admin/flow/FlowTemplate.d.ts +7 -0
- package/dist/types/api/admin/flow/app/AppFlowAction.d.ts +27 -0
- package/dist/types/api/admin/flow/app/AppFlowEvent.d.ts +14 -0
- package/dist/types/api/admin/flow/app/index.d.ts +2 -0
- package/dist/types/api/admin/flow/index.d.ts +4 -0
- package/dist/types/api/admin/importExport/ImportExportFile.d.ts +12 -0
- package/dist/types/api/admin/importExport/ImportExportLog.d.ts +24 -0
- package/dist/types/api/admin/importExport/ImportExportProfile.d.ts +20 -0
- package/dist/types/api/admin/importExport/index.d.ts +3 -0
- package/dist/types/api/admin/index.d.ts +45 -0
- package/dist/types/api/admin/integration/Integration.d.ts +32 -0
- package/dist/types/api/admin/integration/IntegrationRole.d.ts +9 -0
- package/dist/types/api/admin/integration/index.d.ts +2 -0
- package/dist/types/api/admin/locale/Language.d.ts +26 -0
- package/dist/types/api/admin/locale/Locale.d.ts +7 -0
- package/dist/types/api/admin/mail/MailHeaderFooter.d.ts +15 -0
- package/dist/types/api/admin/mail/index.d.ts +2 -0
- package/dist/types/api/admin/mail/template/MailTemplate.d.ts +19 -0
- package/dist/types/api/admin/mail/template/MailTemplateMedia.d.ts +11 -0
- package/dist/types/api/admin/mail/template/MailTemplateType.d.ts +13 -0
- package/dist/types/api/admin/mail/template/index.d.ts +3 -0
- package/dist/types/api/admin/media/Media.d.ts +89 -0
- package/dist/types/api/admin/media/MediaTag.d.ts +9 -0
- package/dist/types/api/admin/media/folder/MediaDefaultFolder.d.ts +10 -0
- package/dist/types/api/admin/media/folder/MediaFolder.d.ts +22 -0
- package/dist/types/api/admin/media/folder/configuration/MediaFolderConfiguration.d.ts +16 -0
- package/dist/types/api/admin/media/folder/configuration/MediaFolderConfigurationMediaThumbnailSize.d.ts +9 -0
- package/dist/types/api/admin/media/folder/configuration/index.d.ts +2 -0
- package/dist/types/api/admin/media/folder/index.d.ts +3 -0
- package/dist/types/api/admin/media/index.d.ts +4 -0
- package/dist/types/api/admin/media/thumbnail/MediaThumbnail.d.ts +5 -0
- package/dist/types/api/admin/media/thumbnail/MediaThumbnailSize.d.ts +11 -0
- package/dist/types/api/admin/media/thumbnail/index.d.ts +2 -0
- package/dist/types/api/admin/newsletterRecipient/NewsletterRecipient.d.ts +28 -0
- package/dist/types/api/admin/newsletterRecipient/NewsletterRecipientTag.d.ts +9 -0
- package/dist/types/api/admin/newsletterRecipient/index.d.ts +2 -0
- package/dist/types/api/admin/numberRange/NumberRange.d.ts +20 -0
- package/dist/types/api/admin/numberRange/NumberRangeSalesChannel.d.ts +14 -0
- package/dist/types/api/admin/numberRange/NumberRangeState.d.ts +9 -0
- package/dist/types/api/admin/numberRange/NumberRangeType.d.ts +15 -0
- package/dist/types/api/admin/numberRange/index.d.ts +4 -0
- package/dist/types/api/admin/order/Order.d.ts +33 -0
- package/dist/types/api/admin/order/OrderAddress.d.ts +15 -0
- package/dist/types/api/admin/order/OrderCustomer.d.ts +13 -0
- package/dist/types/api/admin/order/OrderTag.d.ts +10 -0
- package/dist/types/api/admin/order/delivery/OrderDelivery.d.ts +13 -0
- package/dist/types/api/admin/order/delivery/OrderDeliveryPosition.d.ts +7 -0
- package/dist/types/api/admin/order/delivery/index.d.ts +2 -0
- package/dist/types/api/admin/order/index.d.ts +9 -0
- package/dist/types/api/admin/order/lineItem/OrderLineItem.d.ts +13 -0
- package/dist/types/api/admin/order/lineItem/OrderLineItemDownload.d.ts +7 -0
- package/dist/types/api/admin/order/lineItem/index.d.ts +2 -0
- package/dist/types/api/admin/order/return/OrderReturn.d.ts +17 -0
- package/dist/types/api/admin/order/return/OrderReturnLineItem.d.ts +18 -0
- package/dist/types/api/admin/order/return/OrderReturnLineItemReason.d.ts +8 -0
- package/dist/types/api/admin/order/return/index.d.ts +1 -0
- package/dist/types/api/admin/order/transaction/OrderTransaction.d.ts +9 -0
- package/dist/types/api/admin/order/transaction/capture/OrderTransactionCapture.d.ts +9 -0
- package/dist/types/api/admin/order/transaction/capture/OrderTransactionCaptureRefund.d.ts +9 -0
- package/dist/types/api/admin/order/transaction/capture/OrderTransactionCaptureRefundPosition.d.ts +7 -0
- package/dist/types/api/admin/order/transaction/capture/index.d.ts +3 -0
- package/dist/types/api/admin/order/transaction/index.d.ts +2 -0
- package/dist/types/api/admin/order/warehouse/OrderProductWarehouse.d.ts +10 -0
- package/dist/types/api/admin/order/warehouse/OrderWarehouseGroup.d.ts +7 -0
- package/dist/types/api/admin/order/warehouse/index.d.ts +2 -0
- package/dist/types/api/admin/paymentMethod/AppPaymentMethod.d.ts +22 -0
- package/dist/types/api/admin/paymentMethod/PaymentMethod.d.ts +22 -0
- package/dist/types/api/admin/paymentMethod/index.d.ts +2 -0
- package/dist/types/api/admin/product/Product.d.ts +65 -0
- package/dist/types/api/admin/product/ProductConfiguratorSetting.d.ts +8 -0
- package/dist/types/api/admin/product/ProductCustomFieldSet.d.ts +9 -0
- package/dist/types/api/admin/product/ProductDownload.d.ts +17 -0
- package/dist/types/api/admin/product/ProductExport.d.ts +32 -0
- package/dist/types/api/admin/product/ProductFeatureSet.d.ts +11 -0
- package/dist/types/api/admin/product/ProductKeywordDictionary.d.ts +8 -0
- package/dist/types/api/admin/product/ProductManufacturer.d.ts +7 -0
- package/dist/types/api/admin/product/ProductMedia.d.ts +17 -0
- package/dist/types/api/admin/product/ProductOption.d.ts +10 -0
- package/dist/types/api/admin/product/ProductPrice.d.ts +19 -0
- package/dist/types/api/admin/product/ProductProperty.d.ts +10 -0
- package/dist/types/api/admin/product/ProductSorting.d.ts +12 -0
- package/dist/types/api/admin/product/ProductTag.d.ts +11 -0
- package/dist/types/api/admin/product/ProductVisibility.d.ts +13 -0
- package/dist/types/api/admin/product/category/ProductCategory.d.ts +11 -0
- package/dist/types/api/admin/product/category/ProductCategoryTree.d.ts +11 -0
- package/dist/types/api/admin/product/category/index.d.ts +2 -0
- package/dist/types/api/admin/product/crossSelling/ProductCrossSelling.d.ts +12 -0
- package/dist/types/api/admin/product/crossSelling/ProductCrossSellingAssignedProduct.d.ts +13 -0
- package/dist/types/api/admin/product/crossSelling/index.d.ts +2 -0
- package/dist/types/api/admin/product/index.d.ts +21 -0
- package/dist/types/api/admin/product/review/ProductReview.d.ts +13 -0
- package/dist/types/api/admin/product/review/ProductReviewSummary.d.ts +2 -0
- package/dist/types/api/admin/product/review/index.d.ts +2 -0
- package/dist/types/api/admin/product/search/ProductSearchKeyword.d.ts +15 -0
- package/dist/types/api/admin/product/search/config/ProductSearchConfig.d.ts +13 -0
- package/dist/types/api/admin/product/search/config/ProductSearchConfigField.d.ts +15 -0
- package/dist/types/api/admin/product/search/config/index.d.ts +2 -0
- package/dist/types/api/admin/product/search/index.d.ts +2 -0
- package/dist/types/api/admin/product/stream/ProductStream.d.ts +13 -0
- package/dist/types/api/admin/product/stream/ProductStreamFilter.d.ts +19 -0
- package/dist/types/api/admin/product/stream/ProductStreamMapping.d.ts +10 -0
- package/dist/types/api/admin/product/stream/index.d.ts +3 -0
- package/dist/types/api/admin/product/warehouse/ProductWarehouse.d.ts +7 -0
- package/dist/types/api/admin/product/warehouse/ProductWarehouseGroup.d.ts +6 -0
- package/dist/types/api/admin/product/warehouse/index.d.ts +2 -0
- package/dist/types/api/admin/promotion/Promotion.d.ts +44 -0
- package/dist/types/api/admin/promotion/PromotionIndividualCode.d.ts +10 -0
- package/dist/types/api/admin/promotion/PromotionPersonaCustomer.d.ts +9 -0
- package/dist/types/api/admin/promotion/PromotionSalesChannel.d.ts +12 -0
- package/dist/types/api/admin/promotion/PromotionSetGroup.d.ts +13 -0
- package/dist/types/api/admin/promotion/discount/PromotionDiscount.d.ts +21 -0
- package/dist/types/api/admin/promotion/discount/PromotionDiscountPrice.d.ts +12 -0
- package/dist/types/api/admin/promotion/discount/PromotionDiscountRule.d.ts +9 -0
- package/dist/types/api/admin/promotion/discount/index.d.ts +3 -0
- package/dist/types/api/admin/promotion/index.d.ts +7 -0
- package/dist/types/api/admin/promotion/rule/PromotionCartRule.d.ts +9 -0
- package/dist/types/api/admin/promotion/rule/PromotionOrderRule.d.ts +9 -0
- package/dist/types/api/admin/promotion/rule/PromotionPersonaRule.d.ts +9 -0
- package/dist/types/api/admin/promotion/rule/PromotionSetGroupRule.d.ts +9 -0
- package/dist/types/api/admin/promotion/rule/index.d.ts +4 -0
- package/dist/types/api/admin/propertyGroup/PropertyGroup.d.ts +5 -0
- package/dist/types/api/admin/propertyGroup/PropertyGroupOption.d.ts +12 -0
- package/dist/types/api/admin/rule/Rule.d.ts +31 -0
- package/dist/types/api/admin/rule/RuleCondition.d.ts +19 -0
- package/dist/types/api/admin/rule/RuleTag.d.ts +9 -0
- package/dist/types/api/admin/rule/index.d.ts +3 -0
- package/dist/types/api/admin/salesChannel/SalesChannel.d.ts +103 -0
- package/dist/types/api/admin/salesChannel/SalesChannelAnalytics.d.ts +11 -0
- package/dist/types/api/admin/salesChannel/SalesChannelContext.d.ts +31 -0
- package/dist/types/api/admin/salesChannel/SalesChannelCountry.d.ts +9 -0
- package/dist/types/api/admin/salesChannel/SalesChannelCurrency.d.ts +9 -0
- package/dist/types/api/admin/salesChannel/SalesChannelDomain.d.ts +24 -0
- package/dist/types/api/admin/salesChannel/SalesChannelLanguage.d.ts +9 -0
- package/dist/types/api/admin/salesChannel/SalesChannelPaymentMethod.d.ts +9 -0
- package/dist/types/api/admin/salesChannel/SalesChannelShippingMethod.d.ts +9 -0
- package/dist/types/api/admin/salesChannel/SalesChannelType.d.ts +17 -0
- package/dist/types/api/admin/salesChannel/index.d.ts +9 -0
- package/dist/types/api/admin/seo/SeoUrl.d.ts +22 -0
- package/dist/types/api/admin/seo/SeoUrlTemplate.d.ts +14 -0
- package/dist/types/api/admin/seo/Sitemap.d.ts +3 -0
- package/dist/types/api/admin/seo/index.d.ts +2 -0
- package/dist/types/api/admin/shippingMethod/AppShippingMethod.d.ts +16 -0
- package/dist/types/api/admin/shippingMethod/ShippingMethod.d.ts +24 -0
- package/dist/types/api/admin/shippingMethod/ShippingMethodPrice.d.ts +8 -0
- package/dist/types/api/admin/shippingMethod/ShippingMethodTag.d.ts +9 -0
- package/dist/types/api/admin/shippingMethod/index.d.ts +4 -0
- package/dist/types/api/admin/snippet/Snippet.d.ts +13 -0
- package/dist/types/api/admin/snippet/SnippetSet.d.ts +13 -0
- package/dist/types/api/admin/snippet/index.d.ts +2 -0
- package/dist/types/api/admin/stateMachine/StateMachine.d.ts +17 -0
- package/dist/types/api/admin/stateMachine/StateMachineHistory.d.ts +21 -0
- package/dist/types/api/admin/stateMachine/StateMachineState.d.ts +22 -0
- package/dist/types/api/admin/stateMachine/StateMachineTransition.d.ts +16 -0
- package/dist/types/api/admin/stateMachine/index.d.ts +4 -0
- package/dist/types/api/admin/subscription/Subscription.d.ts +27 -0
- package/dist/types/api/admin/subscription/SubscriptionAddress.d.ts +6 -0
- package/dist/types/api/admin/subscription/SubscriptionCustomer.d.ts +15 -0
- package/dist/types/api/admin/subscription/SubscriptionInterval.d.ts +9 -0
- package/dist/types/api/admin/subscription/SubscriptionTagMapping.d.ts +5 -0
- package/dist/types/api/admin/subscription/index.d.ts +6 -0
- package/dist/types/api/admin/subscription/plan/SubscriptionPlan.d.ts +11 -0
- package/dist/types/api/admin/subscription/plan/SubscriptionPlanIntervalMapping.d.ts +5 -0
- package/dist/types/api/admin/subscription/plan/SubscriptionPlanProductMapping.d.ts +6 -0
- package/dist/types/api/admin/subscription/plan/index.d.ts +3 -0
- package/dist/types/api/admin/tax/Tax.d.ts +9 -0
- package/dist/types/api/admin/tax/TaxProvider.d.ts +19 -0
- package/dist/types/api/admin/tax/index.d.ts +3 -0
- package/dist/types/api/admin/tax/rule/TaxRule.d.ts +22 -0
- package/dist/types/api/admin/tax/rule/TaxRuleType.d.ts +11 -0
- package/dist/types/api/admin/tax/rule/index.d.ts +2 -0
- package/dist/types/api/admin/theme/Theme.d.ts +25 -0
- package/dist/types/api/admin/theme/ThemeChild.d.ts +8 -0
- package/dist/types/api/admin/theme/ThemeMedia.d.ts +9 -0
- package/dist/types/api/admin/theme/ThemeSalesChannel.d.ts +9 -0
- package/dist/types/api/admin/theme/index.d.ts +4 -0
- package/dist/types/api/admin/user/User.d.ts +52 -0
- package/dist/types/api/admin/user/UserAccessKey.d.ts +13 -0
- package/dist/types/api/admin/user/UserConfig.d.ts +10 -0
- package/dist/types/api/admin/user/UserRecovery.d.ts +9 -0
- package/dist/types/api/admin/user/index.d.ts +4 -0
- package/dist/types/api/admin/warehouse/Warehouse.d.ts +5 -0
- package/dist/types/api/admin/warehouse/WarehouseGroup.d.ts +7 -0
- package/dist/types/api/admin/warehouse/WarehouseGroupWarehouse.d.ts +6 -0
- package/dist/types/api/admin/warehouse/index.d.ts +1 -0
- package/dist/types/api/admin/webhook/Webhook.d.ts +14 -0
- package/dist/types/api/admin/webhook/WebhookEventLog.d.ts +20 -0
- package/dist/types/api/admin/webhook/index.d.ts +2 -0
- package/dist/types/api/global/GenericRecord.d.ts +3 -0
- package/dist/types/api/global/Rounding.d.ts +5 -0
- package/dist/types/api/global/aggregation/Aggregation.d.ts +7 -0
- package/dist/types/{storeApi → api/global}/aggregation/AggregationEntity.d.ts +2 -2
- package/dist/types/api/global/aggregation/AggregationFilter.d.ts +6 -0
- package/dist/types/{storeApi → api/global}/aggregation/AggregationHistogram.d.ts +2 -2
- package/dist/types/{storeApi → api/global}/aggregation/AggregationMetrics.d.ts +2 -2
- package/dist/types/{storeApi → api/global}/aggregation/AggregationRange.d.ts +2 -2
- package/dist/types/{storeApi → api/global}/aggregation/AggregationTerms.d.ts +3 -3
- package/dist/types/{storeApi → api/global}/aggregation/index.d.ts +1 -1
- package/dist/types/{storeApi → api/global}/filter/EqualsFilter.d.ts +2 -2
- package/dist/types/api/global/filter/Filters.d.ts +5 -0
- package/dist/types/{storeApi → api/global}/filter/MultiNotFilter.d.ts +3 -3
- package/dist/types/{storeApi → api/global}/filter/RangeFilter.d.ts +2 -2
- package/dist/types/{storeApi → api/global}/filter/SimpleFilter.d.ts +2 -2
- package/dist/types/api/global/index.d.ts +6 -0
- package/dist/types/{storeApi → api/global}/price/Price.d.ts +2 -2
- package/dist/types/api/global/price/index.d.ts +1 -0
- package/dist/types/api/global/query/Criteria.d.ts +23 -0
- package/dist/types/api/global/query/Includes.d.ts +1 -0
- package/dist/types/api/global/query/Query.d.ts +8 -0
- package/dist/types/{storeApi → api/global}/query/Sort.d.ts +2 -2
- package/dist/types/{storeApi → api/global}/query/index.d.ts +2 -1
- package/dist/types/{storeApi → api/global}/query/product/ProductListingCriteria.d.ts +2 -1
- package/dist/types/{storeApi → api/global}/query/product/ProductListingFlags.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/Currency.d.ts +6 -13
- package/dist/types/{storeApi → api/store}/DeliveryTime.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/EntitySearchResult.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/PaymentMethod.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/Rule.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/Salutation.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/StateMachineState.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/Tag.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/Tax.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/Unit.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/cart/Cart.d.ts +6 -4
- package/dist/types/{storeApi → api/store}/cart/CartError.d.ts +2 -2
- package/dist/types/api/store/cart/CartItems.d.ts +2 -0
- package/dist/types/api/store/cart/delivery/CartDelivery.d.ts +15 -0
- package/dist/types/{storeApi/cart → api/store/cart/delivery}/CartDeliveryDate.d.ts +2 -2
- package/dist/types/{storeApi/cart → api/store/cart/delivery}/CartDeliveryInformation.d.ts +3 -3
- package/dist/types/api/store/cart/delivery/CartDeliveryPosition.d.ts +9 -0
- package/dist/types/api/store/cart/delivery/CartDeliveryShippingLocation.d.ts +7 -0
- package/dist/types/{storeApi/cart → api/store/cart/delivery}/CartDeliveryTime.d.ts +2 -2
- package/dist/types/api/store/cart/index.d.ts +3 -0
- package/dist/types/{storeApi → api/store}/category/Category.d.ts +8 -8
- package/dist/types/{storeApi → api/store}/category/MainCategory.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/cms/CmsBlock.d.ts +7 -5
- package/dist/types/{storeApi → api/store}/cms/CmsPage.d.ts +6 -5
- package/dist/types/{storeApi → api/store}/cms/CmsSection.d.ts +8 -5
- package/dist/types/{storeApi → api/store}/cms/CmsSlot.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/cms/LandingPage.d.ts +5 -5
- package/dist/types/{storeApi → api/store}/cms/Visibility.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/country/Country.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/country/CountryState.d.ts +3 -3
- package/dist/types/api/store/country/index.d.ts +2 -0
- package/dist/types/{storeApi → api/store}/customer/Customer.d.ts +6 -5
- package/dist/types/{storeApi → api/store}/customer/CustomerGroup.d.ts +3 -3
- package/dist/types/{storeApi/customer → api/store/customer/address}/CustomerAddress.d.ts +1 -1
- package/dist/types/{storeApi/customer → api/store/customer/address}/CustomerAddressBody.d.ts +6 -5
- package/dist/types/api/store/customer/index.d.ts +2 -0
- package/dist/types/{storeApi → api/store}/document/ShopwareDocument.d.ts +6 -6
- package/dist/types/{storeApi → api/store}/document/ShopwareDocumentBaseConfig.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/document/ShopwareDocumentType.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/index.d.ts +0 -5
- package/dist/types/{storeApi → api/store}/lineItem/LineItem.d.ts +8 -6
- package/dist/types/{storeApi → api/store}/lineItem/LineItemPayload.d.ts +5 -5
- package/dist/types/{storeApi → api/store}/link/Links.d.ts +1 -1
- package/dist/types/{storeApi → api/store}/locale/Language.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/locale/Locale.d.ts +3 -3
- package/dist/types/api/store/locale/index.d.ts +2 -0
- package/dist/types/{storeApi → api/store}/media/Media.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/media/MediaThumbnail.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/media/ProductMedia.d.ts +5 -4
- package/dist/types/{storeApi → api/store}/order/Order.d.ts +14 -17
- package/dist/types/{storeApi → api/store}/order/OrderAddress.d.ts +1 -1
- package/dist/types/{storeApi → api/store}/order/OrderCustomer.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/order/OrderLineItem.d.ts +9 -8
- package/dist/types/{storeApi → api/store}/order/OrderLineItemDownload.d.ts +5 -5
- package/dist/types/api/store/order/OrderPrice.d.ts +9 -0
- package/dist/types/{storeApi/order → api/store/order/delivery}/OrderDelivery.d.ts +7 -6
- package/dist/types/{storeApi/order → api/store/order/delivery}/OrderDeliveryPosition.d.ts +4 -4
- package/dist/types/api/store/order/index.d.ts +6 -0
- package/dist/types/{storeApi/order → api/store/order/return}/OrderReturn.d.ts +3 -3
- package/dist/types/{storeApi/order → api/store/order/return}/OrderReturnLineItem.d.ts +2 -2
- package/dist/types/{storeApi/order → api/store/order/return}/OrderReturnLineItemReason.d.ts +2 -2
- package/dist/types/{storeApi/order → api/store/order/transaction}/OrderTransaction.d.ts +7 -7
- package/dist/types/{storeApi/order → api/store/order/transaction}/OrderTransactionCapture.d.ts +7 -6
- package/dist/types/{storeApi/order → api/store/order/transaction}/OrderTransactionCaptureRefund.d.ts +7 -6
- package/dist/types/{storeApi/order → api/store/order/transaction}/OrderTransactionCaptureRefundPosition.d.ts +6 -5
- package/dist/types/{storeApi → api/store}/price/CalculatedPrice.d.ts +7 -5
- package/dist/types/{storeApi/price → api/store/price/cart}/CartListPrice.d.ts +2 -2
- package/dist/types/{storeApi/price → api/store/price/cart}/CartPriceQuantity.d.ts +3 -3
- package/dist/types/{storeApi/price → api/store/price/cart}/CartPriceReference.d.ts +4 -3
- package/dist/types/{storeApi/price → api/store/price/cart}/CartRegulationPrice.d.ts +2 -2
- package/dist/types/api/store/price/index.d.ts +1 -0
- package/dist/types/{storeApi → api/store}/product/Product.d.ts +17 -10
- package/dist/types/{storeApi → api/store}/product/ProductConfiguratorSetting.d.ts +5 -5
- package/dist/types/{storeApi → api/store}/product/ProductDownload.d.ts +5 -5
- package/dist/types/{storeApi → api/store}/product/ProductListingResult.d.ts +1 -1
- package/dist/types/{storeApi → api/store}/product/ProductManufacturer.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/product/ProductStream.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/product/crossSelling/CrossSellingElement.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/product/crossSelling/ProductCrossSelling.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/product/index.d.ts +0 -2
- package/dist/types/{storeApi/product → api/store/product/review}/ProductReview.d.ts +4 -4
- package/dist/types/{storeApi/product → api/store/product/review}/ProductReviewSummary.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/propertyGroup/PropertyGroup.d.ts +4 -4
- package/dist/types/{storeApi → api/store}/propertyGroup/PropertyGroupOption.d.ts +5 -5
- package/dist/types/api/store/propertyGroup/index.d.ts +2 -0
- package/dist/types/{storeApi → api/store}/salesChannel/SalesChannel.d.ts +13 -12
- package/dist/types/{storeApi → api/store}/salesChannel/SalesChannelContext.d.ts +6 -6
- package/dist/types/{storeApi → api/store}/seo/SeoUrlEntity.d.ts +3 -3
- package/dist/types/{storeApi → api/store}/seo/Sitemap.d.ts +2 -2
- package/dist/types/{storeApi → api/store}/shippingMethod/ShippingMethod.d.ts +5 -5
- package/dist/types/{storeApi → api/store}/shippingMethod/ShippingMethodPrice.d.ts +4 -4
- package/dist/types/clients/admin/AppClient.d.ts +292 -0
- package/dist/types/clients/admin/CategoryClient.d.ts +60 -0
- package/dist/types/clients/admin/ContentClient.d.ts +176 -0
- package/dist/types/clients/admin/CountryClient.d.ts +60 -0
- package/dist/types/clients/admin/CurrencyClient.d.ts +60 -0
- package/dist/types/clients/admin/CustomDataClient.d.ts +118 -0
- package/dist/types/clients/admin/CustomerClient.d.ts +184 -0
- package/dist/types/clients/admin/DeliveryTimeClient.d.ts +30 -0
- package/dist/types/clients/admin/DocumentClient.d.ts +126 -0
- package/dist/types/clients/admin/FlowClient.d.ts +89 -0
- package/dist/types/clients/admin/ImportExportClient.d.ts +89 -0
- package/dist/types/clients/admin/IntegrationClient.d.ts +30 -0
- package/dist/types/clients/admin/LocaleClient.d.ts +60 -0
- package/dist/types/clients/admin/MailClient.d.ts +125 -0
- package/dist/types/clients/admin/MediaClient.d.ts +176 -0
- package/dist/types/clients/admin/NewsletterClient.d.ts +30 -0
- package/dist/types/clients/admin/NumberRangeClient.d.ts +118 -0
- package/dist/types/clients/admin/OrderClient.d.ts +346 -0
- package/dist/types/clients/admin/PaymentMethodClient.d.ts +30 -0
- package/dist/types/clients/admin/PluginClient.d.ts +30 -0
- package/dist/types/clients/admin/ProductClient.d.ts +553 -0
- package/dist/types/clients/admin/PromotionClient.d.ts +176 -0
- package/dist/types/clients/admin/PropertyGroupClient.d.ts +60 -0
- package/dist/types/clients/admin/RuleClient.d.ts +60 -0
- package/dist/types/clients/admin/SalesChannelClient.d.ts +118 -0
- package/dist/types/clients/admin/SalutationClient.d.ts +30 -0
- package/dist/types/clients/admin/ScriptClient.d.ts +30 -0
- package/dist/types/clients/admin/SecurityClient.d.ts +30 -0
- package/dist/types/clients/admin/SeoClient.d.ts +60 -0
- package/dist/types/clients/admin/ShippingMethodClient.d.ts +60 -0
- package/dist/types/clients/admin/SnippetClient.d.ts +60 -0
- package/dist/types/clients/admin/StateMachineClient.d.ts +89 -0
- package/dist/types/clients/admin/SystemClient.d.ts +185 -0
- package/dist/types/clients/admin/TagClient.d.ts +30 -0
- package/dist/types/clients/admin/TaxClient.d.ts +118 -0
- package/dist/types/clients/admin/UnitClient.d.ts +30 -0
- package/dist/types/clients/admin/UserClient.d.ts +118 -0
- package/dist/types/clients/admin/WebhookClient.d.ts +60 -0
- package/dist/types/clients/admin/index.d.ts +1 -0
- package/dist/types/clients/store/AccountClient.d.ts +98 -0
- package/dist/types/clients/{AddressClient.d.ts → store/AddressClient.d.ts} +5 -3
- package/dist/types/clients/store/CartClient.d.ts +18 -0
- package/dist/types/clients/{CategoryClient.d.ts → store/CategoryClient.d.ts} +3 -1
- package/dist/types/clients/store/ContentClient.d.ts +32 -0
- package/dist/types/clients/{ContextClient.d.ts → store/ContextClient.d.ts} +7 -7
- package/dist/types/clients/store/CustomerAuthenticationClient.d.ts +18 -0
- package/dist/types/clients/store/DocumentClient.d.ts +4 -0
- package/dist/types/clients/{GatewayClient.d.ts → store/GatewayClient.d.ts} +4 -3
- package/dist/types/clients/{NewsletterClient.d.ts → store/NewsletterClient.d.ts} +6 -6
- package/dist/types/clients/store/OrderClient.d.ts +37 -0
- package/dist/types/clients/{ProductClient.d.ts → store/ProductClient.d.ts} +19 -11
- package/dist/types/clients/store/SeoClient.d.ts +10 -0
- package/dist/types/clients/{SystemClient.d.ts → store/SystemClient.d.ts} +11 -3
- package/dist/types/clients/store/WishlistClient.d.ts +22 -0
- package/dist/types/clients/{index.d.ts → store/index.d.ts} +0 -1
- package/dist/types/index.d.ts +1 -3
- package/package.json +27 -7
- package/dist/src/ShopwareClient.d.ts +0 -31
- package/dist/src/auth/AuthenticationStore.d.ts +0 -8
- package/dist/src/auth/AuthenticationType.d.ts +0 -5
- package/dist/src/auth/entries/AuthenticationEntry.d.ts +0 -10
- package/dist/src/auth/entries/ContextTokenEntry.d.ts +0 -13
- package/dist/src/auth/entries/OAuthEntry.d.ts +0 -15
- package/dist/src/auth/entries/index.d.ts +0 -3
- package/dist/src/auth/errors/ExpiredError.d.ts +0 -4
- package/dist/src/auth/errors/NotSavedError.d.ts +0 -4
- package/dist/src/auth/errors/index.d.ts +0 -2
- package/dist/src/auth/index.d.ts +0 -4
- package/dist/src/clients/AccountClient.d.ts +0 -16
- package/dist/src/clients/AddressClient.d.ts +0 -11
- package/dist/src/clients/CartClient.d.ts +0 -10
- package/dist/src/clients/CategoryClient.d.ts +0 -8
- package/dist/src/clients/Client.d.ts +0 -16
- package/dist/src/clients/ContentClient.d.ts +0 -9
- package/dist/src/clients/ContextClient.d.ts +0 -7
- package/dist/src/clients/CustomerAuthenticationClient.d.ts +0 -11
- package/dist/src/clients/DocumentClient.d.ts +0 -6
- package/dist/src/clients/GatewayClient.d.ts +0 -6
- package/dist/src/clients/NewsletterClient.d.ts +0 -8
- package/dist/src/clients/OrderClient.d.ts +0 -10
- package/dist/src/clients/PaymentClient.d.ts +0 -6
- package/dist/src/clients/ProductClient.d.ts +0 -14
- package/dist/src/clients/SeoClient.d.ts +0 -8
- package/dist/src/clients/SystemClient.d.ts +0 -12
- package/dist/src/clients/WishlistClient.d.ts +0 -9
- package/dist/src/clients/index.d.ts +0 -17
- package/dist/src/index.d.ts +0 -1
- package/dist/src/payloads/BinaryPayload.d.ts +0 -10
- package/dist/src/payloads/JsonPayload.d.ts +0 -10
- package/dist/src/payloads/index.d.ts +0 -3
- package/dist/tests/auth/AuthenticationStore.test.d.ts +0 -1
- package/dist/tests/auth/entries/ContextTokenEntry.test.d.ts +0 -1
- package/dist/tests/auth/entries/OAuthEntry.test.d.ts +0 -1
- package/dist/types/clients/AccountClient.d.ts +0 -70
- package/dist/types/clients/CartClient.d.ts +0 -17
- package/dist/types/clients/ContentClient.d.ts +0 -29
- package/dist/types/clients/CustomerAuthenticationClient.d.ts +0 -44
- package/dist/types/clients/DocumentClient.d.ts +0 -3
- package/dist/types/clients/OrderClient.d.ts +0 -26
- package/dist/types/clients/PaymentClient.d.ts +0 -8
- package/dist/types/clients/SeoClient.d.ts +0 -7
- package/dist/types/clients/WishlistClient.d.ts +0 -21
- package/dist/types/storeApi/GenericRecord.d.ts +0 -3
- package/dist/types/storeApi/aggregation/AggregationFilter.d.ts +0 -6
- package/dist/types/storeApi/aggregation/Aggregations.d.ts +0 -2
- package/dist/types/storeApi/cart/CartDelivery.d.ts +0 -13
- package/dist/types/storeApi/cart/CartDeliveryPosition.d.ts +0 -9
- package/dist/types/storeApi/cart/CartDeliveryShippingLocation.d.ts +0 -7
- package/dist/types/storeApi/cart/CartItems.d.ts +0 -2
- package/dist/types/storeApi/cart/index.d.ts +0 -9
- package/dist/types/storeApi/customer/index.d.ts +0 -4
- package/dist/types/storeApi/filter/Filters.d.ts +0 -2
- package/dist/types/storeApi/order/index.d.ts +0 -14
- package/dist/types/storeApi/price/index.d.ts +0 -6
- package/dist/types/storeApi/query/Criteria.d.ts +0 -20
- package/dist/types/storeApi/query/Include.d.ts +0 -1
- package/dist/types/storeApi/query/Query.d.ts +0 -5
- package/dist/types/{storeApi → api/admin}/country/index.d.ts +0 -0
- package/dist/types/{storeApi → api/admin}/locale/index.d.ts +0 -0
- package/dist/types/{storeApi → api/admin}/propertyGroup/index.d.ts +0 -0
- package/dist/types/{storeApi → api/global}/filter/index.d.ts +2 -2
- /package/dist/types/{storeApi → api/global/query}/TotalCountMode.d.ts +0 -0
- /package/dist/types/{storeApi → api/global}/query/product/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/category/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/cms/BackgroundMediaMode.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/cms/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/document/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/lineItem/LineItemType.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/lineItem/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/link/Link.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/link/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/media/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/product/crossSelling/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/salesChannel/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/seo/index.d.ts +0 -0
- /package/dist/types/{storeApi → api/store}/shippingMethod/index.d.ts +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
2
|
+
import { Customer } from "#types/api/store/customer/Customer";
|
|
3
|
+
import { CustomerAddress } from "#types/api/store/customer/address/CustomerAddress";
|
|
4
|
+
import { CustomerGroup } from "#types/api/store";
|
|
5
|
+
export interface AccountEmailChangeRequest {
|
|
6
|
+
email: string;
|
|
7
|
+
emailConfirmation: string;
|
|
8
|
+
password: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AccountEmailChangeResponse {
|
|
11
|
+
success?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type AccountGetRequest = Criteria;
|
|
14
|
+
export type AccountGetResponse = Customer;
|
|
15
|
+
export interface AccountLanguageChangeRequest {
|
|
16
|
+
language?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface AccountLanguageChangeResponse {
|
|
19
|
+
success?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export type AccountNewsletterRecipientListRequest = Criteria;
|
|
22
|
+
export interface AccountNewsletterRecipientListResponse {
|
|
23
|
+
apiAlias: "account_newsletter_recipient";
|
|
24
|
+
status: "undefined" | "notSet" | "direct" | "optIn" | "optOut";
|
|
25
|
+
}
|
|
26
|
+
export interface AccountPasswordChangeRequest {
|
|
27
|
+
password: string;
|
|
28
|
+
newPassword: string;
|
|
29
|
+
newPasswordConfirm: string;
|
|
30
|
+
}
|
|
31
|
+
export interface AccountPasswordChangeResponse {
|
|
32
|
+
success?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface AccountPasswordRecoveryMailRequest {
|
|
35
|
+
email: string;
|
|
36
|
+
storefrontUrl: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AccountPasswordRecoveryMailResponse {
|
|
39
|
+
success?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface AccountPasswordRecoveryRequest {
|
|
42
|
+
hash: string;
|
|
43
|
+
newPassword: string;
|
|
44
|
+
newPasswordConfirm: string;
|
|
45
|
+
}
|
|
46
|
+
export interface AccountPasswordRecoveryResponse {
|
|
47
|
+
success?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface AccountPaymentMethodChangeResponse {
|
|
50
|
+
success?: boolean;
|
|
51
|
+
}
|
|
52
|
+
export interface AccountRecoveryExpiryCheckRequest {
|
|
53
|
+
hash: string;
|
|
54
|
+
}
|
|
55
|
+
export interface AccountRecoveryExpiryCheckResponse {
|
|
56
|
+
apiAlias?: "array_struct";
|
|
57
|
+
data?: {
|
|
58
|
+
isExpired: boolean;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface AccountUpdateRequest {
|
|
62
|
+
salutationId?: string;
|
|
63
|
+
title?: string;
|
|
64
|
+
firstName: string;
|
|
65
|
+
lastName: string;
|
|
66
|
+
company?: string;
|
|
67
|
+
birthdayDay?: number;
|
|
68
|
+
birthdayMonth?: number;
|
|
69
|
+
birthdayYear?: number;
|
|
70
|
+
}
|
|
71
|
+
export interface AccountUpdateResponse {
|
|
72
|
+
success?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface CustomerRegisterRequest {
|
|
75
|
+
email: string;
|
|
76
|
+
password: string;
|
|
77
|
+
salutationId: string;
|
|
78
|
+
firstName: string;
|
|
79
|
+
lastName: string;
|
|
80
|
+
acceptedDataProtection: boolean;
|
|
81
|
+
storefrontUrl: string;
|
|
82
|
+
billingAddress: CustomerAddress;
|
|
83
|
+
shippingAddress?: CustomerAddress;
|
|
84
|
+
accountType?: "private" | "business";
|
|
85
|
+
guest?: boolean;
|
|
86
|
+
birthdayDay?: number;
|
|
87
|
+
birthdayMonth?: number;
|
|
88
|
+
birthdayYear?: number;
|
|
89
|
+
title?: string;
|
|
90
|
+
affiliateCode?: string;
|
|
91
|
+
campaignCode?: string;
|
|
92
|
+
}
|
|
93
|
+
export type CustomerRegisterResponse = Customer;
|
|
94
|
+
export type CustomerRegisterGroupConfigResponse = CustomerGroup;
|
|
95
|
+
export interface CustomerRegistrationConfirmRequest {
|
|
96
|
+
hash: string;
|
|
97
|
+
em: string;
|
|
98
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Criteria
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
2
|
+
import { CustomerAddress } from "#types/api/store/customer/address/CustomerAddress";
|
|
3
|
+
import { CustomerAddressBody } from "#types/api/store/customer/address/CustomerAddressBody";
|
|
4
4
|
export type AddressCreateRequest = CustomerAddressBody;
|
|
5
5
|
export type AddressCreateResponse = CustomerAddress;
|
|
6
6
|
export type AddressUpdateRequest = CustomerAddressBody;
|
|
7
7
|
export type AddressUpdateResponse = CustomerAddressBody;
|
|
8
|
+
export type AddressListRequest = Criteria;
|
|
9
|
+
export type AddressListResponse = Array<CustomerAddress>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LineItem } from "#types/api/store/lineItem/LineItem";
|
|
2
|
+
import { Cart } from "#types/api/store/cart/Cart";
|
|
3
|
+
export interface CartAddItemsRequest {
|
|
4
|
+
items?: Array<LineItem>;
|
|
5
|
+
}
|
|
6
|
+
export type CartAddItemsResponse = Cart;
|
|
7
|
+
export interface CartRemoveItemsRequest {
|
|
8
|
+
ids: Array<string>;
|
|
9
|
+
}
|
|
10
|
+
export type CartRemoveItemsResponse = Cart;
|
|
11
|
+
export interface CartUpdateItemsRequest {
|
|
12
|
+
items?: Array<LineItem>;
|
|
13
|
+
}
|
|
14
|
+
export type CartUpdateItemsResponse = Cart;
|
|
15
|
+
export interface CartDeleteResponse {
|
|
16
|
+
success?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type CartGetOrCreateResponse = Cart;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
2
|
+
import { EntitySearchResult } from "#types/api/store/EntitySearchResult";
|
|
3
|
+
import { Category } from "#types/api/store/category/Category";
|
|
2
4
|
export type CategoryListRequest = Criteria;
|
|
3
5
|
export type CategoryListResponse = EntitySearchResult & {
|
|
4
6
|
elements?: Array<Category>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ProductListingCriteria } from "#types/api/global/query/product/ProductListingCriteria";
|
|
2
|
+
import { CmsPage } from "#types/api/store/cms/CmsPage";
|
|
3
|
+
import { LandingPage } from "#types/api/store/cms/LandingPage";
|
|
4
|
+
import { Media } from "#types/api/store/media/Media";
|
|
5
|
+
export interface CMSPageResolveRequest extends ProductListingCriteria {
|
|
6
|
+
slots?: string;
|
|
7
|
+
}
|
|
8
|
+
export type CMSPageResolveResponse = CmsPage;
|
|
9
|
+
export interface ContactFormSubmitRequest {
|
|
10
|
+
salutationId: string;
|
|
11
|
+
firstName?: string;
|
|
12
|
+
lastName?: string;
|
|
13
|
+
email: string;
|
|
14
|
+
phone?: string;
|
|
15
|
+
subject: string;
|
|
16
|
+
comment: string;
|
|
17
|
+
navigationId?: string;
|
|
18
|
+
slotId?: string;
|
|
19
|
+
cmsPageType?: string;
|
|
20
|
+
entityName?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ContactFormSubmitResponse {
|
|
23
|
+
success?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface LandingPageResolveRequest extends ProductListingCriteria {
|
|
26
|
+
slots?: string;
|
|
27
|
+
}
|
|
28
|
+
export type LandingPageResolveResponse = LandingPage;
|
|
29
|
+
export interface MediaEntityResolveRequest {
|
|
30
|
+
ids: Array<string>;
|
|
31
|
+
}
|
|
32
|
+
export type MediaEntityResolveResponse = Array<Media>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SalesChannelContext } from "
|
|
2
|
-
export
|
|
1
|
+
import { SalesChannelContext } from "#types/api/store/salesChannel/SalesChannelContext";
|
|
2
|
+
export interface ContextGetRequest {
|
|
3
3
|
id: string;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
5
|
export type ContextGetResponse = SalesChannelContext;
|
|
6
|
-
export
|
|
6
|
+
export interface ContextUpdateRequest {
|
|
7
7
|
currencyId?: string;
|
|
8
8
|
languageId?: string;
|
|
9
9
|
billingAddressId?: string;
|
|
@@ -12,7 +12,7 @@ export type ContextUpdateRequest = {
|
|
|
12
12
|
shippingMethodId?: string;
|
|
13
13
|
countryId?: string;
|
|
14
14
|
countryStateId?: string;
|
|
15
|
-
}
|
|
16
|
-
export
|
|
15
|
+
}
|
|
16
|
+
export interface ContextUpdateResponse {
|
|
17
17
|
redirectUrl?: string;
|
|
18
|
-
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CustomerLoginRequest {
|
|
2
|
+
username: string;
|
|
3
|
+
password: string;
|
|
4
|
+
}
|
|
5
|
+
export interface CustomerLoginResponse {
|
|
6
|
+
redirectUrl?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CustomerLogoutResponse {
|
|
9
|
+
redirectUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CustomerLoginImitateRequest {
|
|
12
|
+
token: string;
|
|
13
|
+
customerId: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CustomerLoginImitateResponse {
|
|
17
|
+
redirectUrl?: string;
|
|
18
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PaymentMethod
|
|
2
|
-
|
|
1
|
+
import { PaymentMethod } from "#types/api/store/PaymentMethod";
|
|
2
|
+
import { ShippingMethod } from "#types/api/store/shippingMethod/ShippingMethod";
|
|
3
|
+
export interface GatewayCheckoutResponse {
|
|
3
4
|
paymentMethods?: {
|
|
4
5
|
total?: number;
|
|
5
6
|
aggregations?: object;
|
|
@@ -15,4 +16,4 @@ export type GatewayCheckoutResponse = {
|
|
|
15
16
|
detail?: string;
|
|
16
17
|
blocking?: boolean;
|
|
17
18
|
}>;
|
|
18
|
-
}
|
|
19
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface NewsletterConfirmRequest {
|
|
2
2
|
hash: string;
|
|
3
3
|
em: string;
|
|
4
|
-
}
|
|
5
|
-
export
|
|
4
|
+
}
|
|
5
|
+
export interface NewsletterUpdateRequest {
|
|
6
6
|
email: string;
|
|
7
7
|
option: "direct" | "subscribe" | "unsubscribe" | "confirmSubscribe";
|
|
8
8
|
storefrontUrl: string;
|
|
@@ -15,7 +15,7 @@ export type NewsletterUpdateRequest = {
|
|
|
15
15
|
tags?: string;
|
|
16
16
|
languageId?: string;
|
|
17
17
|
customFields?: string;
|
|
18
|
-
}
|
|
19
|
-
export
|
|
18
|
+
}
|
|
19
|
+
export interface NewsletterUnsubscribeRequest {
|
|
20
20
|
email: string;
|
|
21
|
-
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StateMachineState } from "#types/api/store/StateMachineState";
|
|
2
|
+
import { Order } from "#types/api/store/order/Order";
|
|
3
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
4
|
+
import { EntitySearchResult } from "#types/api/store/EntitySearchResult";
|
|
5
|
+
export interface OrderPaymentInitiateRequest {
|
|
6
|
+
orderId: string;
|
|
7
|
+
finishUrl?: string;
|
|
8
|
+
errorUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface OrderPaymentInitiateResponse {
|
|
11
|
+
redirectUrl: string;
|
|
12
|
+
}
|
|
13
|
+
export interface OrderCancelRequest {
|
|
14
|
+
orderId: string;
|
|
15
|
+
}
|
|
16
|
+
export type OrderCancelResponse = StateMachineState;
|
|
17
|
+
export type OrderDownloadFileResponse = Blob;
|
|
18
|
+
export interface OrderFromCartRequest {
|
|
19
|
+
customerComment?: string;
|
|
20
|
+
affiliateCode?: string;
|
|
21
|
+
campaignCode?: string;
|
|
22
|
+
}
|
|
23
|
+
export type OrderFromCartResponse = Order;
|
|
24
|
+
export type OrderListRequest = Criteria & {
|
|
25
|
+
checkPromotion?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export interface OrderListResponse {
|
|
28
|
+
orders: Array<Order> & EntitySearchResult;
|
|
29
|
+
paymentChangeable: Record<string, boolean>;
|
|
30
|
+
}
|
|
31
|
+
export interface OrderUpdatePaymentMethodRequest {
|
|
32
|
+
paymentMethodId: string;
|
|
33
|
+
orderId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface OrderUpdatePaymentMethodResponse {
|
|
36
|
+
success?: boolean;
|
|
37
|
+
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntitySearchResult } from "#types/api/store/EntitySearchResult";
|
|
2
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
3
|
+
import { Product } from "#types/api/store/product/Product";
|
|
4
|
+
import { ProductReview } from "#types/api/store/product/review/ProductReview";
|
|
5
|
+
import { ProductListingCriteria } from "#types/api/global/query/product/ProductListingCriteria";
|
|
6
|
+
import { ProductListingFlags } from "#types/api/global/query/product/ProductListingFlags";
|
|
7
|
+
import { ProductListingResult } from "#types/api/store/product/ProductListingResult";
|
|
8
|
+
import { PropertyGroup } from "#types/api/store/propertyGroup/PropertyGroup";
|
|
9
|
+
import { CrossSellingElement } from "#types/api/store/product/crossSelling/CrossSellingElement";
|
|
2
10
|
export type ProductListRequest = Criteria;
|
|
3
11
|
export type ProductListResponse = EntitySearchResult & {
|
|
4
12
|
elements?: Array<Product>;
|
|
@@ -14,16 +22,16 @@ export type ProductReviewSaveRequest = {
|
|
|
14
22
|
content: string;
|
|
15
23
|
points: number;
|
|
16
24
|
};
|
|
17
|
-
export
|
|
25
|
+
export interface ProductSearchRequest extends ProductListingCriteria, ProductListingFlags {
|
|
18
26
|
search: string;
|
|
19
|
-
}
|
|
27
|
+
}
|
|
20
28
|
export type ProductSearchResponse = ProductListingResult;
|
|
21
|
-
export
|
|
29
|
+
export interface ProductSearchSuggestionListRequest extends ProductListingFlags {
|
|
22
30
|
search: string;
|
|
23
|
-
}
|
|
31
|
+
}
|
|
24
32
|
export type ProductSearchSuggestionListResponse = ProductListingResult;
|
|
25
33
|
export type ProductSingleRequest = Criteria;
|
|
26
|
-
export
|
|
34
|
+
export interface ProductSingleResponse {
|
|
27
35
|
product: Product;
|
|
28
36
|
configurator?: Array<PropertyGroup>;
|
|
29
37
|
id?: any;
|
|
@@ -33,17 +41,17 @@ export type ProductSingleResponse = {
|
|
|
33
41
|
manufacturerNumber?: any;
|
|
34
42
|
stock?: any;
|
|
35
43
|
sortedProperties?: any;
|
|
36
|
-
}
|
|
37
|
-
export
|
|
44
|
+
}
|
|
45
|
+
export interface ProductVariantWithOptionsRequest {
|
|
38
46
|
options: Array<string>;
|
|
39
47
|
switchedGroup?: string;
|
|
40
|
-
}
|
|
41
|
-
export
|
|
48
|
+
}
|
|
49
|
+
export interface ProductVariantWithOptionsResponse {
|
|
42
50
|
foundCombination?: {
|
|
43
51
|
variantId?: string;
|
|
44
52
|
options: Array<string>;
|
|
45
53
|
};
|
|
46
|
-
}
|
|
54
|
+
}
|
|
47
55
|
export type ProductListingListWithCategoryRequest = ProductListingCriteria & ProductListingFlags;
|
|
48
56
|
export type ProductListingListWithCategoryResponse = ProductListingResult;
|
|
49
57
|
export type ProductCrossSellingGroupListResponse = Array<CrossSellingElement>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntitySearchResult } from "#types/api/store/EntitySearchResult";
|
|
2
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
3
|
+
import { SeoUrlEntity } from "#types/api/store/seo/SeoUrlEntity";
|
|
4
|
+
import { Sitemap } from "#types/api/store/seo/Sitemap";
|
|
5
|
+
export type SeoRouteListRequest = Criteria;
|
|
6
|
+
export type SeoRouteListResponse = EntitySearchResult & {
|
|
7
|
+
elements?: Array<SeoUrlEntity>;
|
|
8
|
+
};
|
|
9
|
+
export type SitemapListResponse = Array<Sitemap>;
|
|
10
|
+
export type SitemapDownloadResponse = Blob;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
2
|
+
import { EntitySearchResult } from "#types/api/store/EntitySearchResult";
|
|
3
|
+
import { Country } from "#types/api/store/country/Country";
|
|
4
|
+
import { CountryState } from "#types/api/store/country/CountryState";
|
|
5
|
+
import { Currency } from "#types/api/store/Currency";
|
|
6
|
+
import { Language } from "#types/api/store/locale/Language";
|
|
7
|
+
import { Salutation } from "#types/api/store/Salutation";
|
|
8
|
+
import { ShippingMethod } from "#types/api/store/shippingMethod/ShippingMethod";
|
|
9
|
+
import { PaymentMethod } from "#types/api/store/PaymentMethod";
|
|
2
10
|
export type CountryListRequest = Criteria;
|
|
3
11
|
export type CountryListResponse = EntitySearchResult & {
|
|
4
12
|
elements?: Array<Country>;
|
|
@@ -26,8 +34,8 @@ export type ShippingMethodListResponse = EntitySearchResult & {
|
|
|
26
34
|
export type PaymentMethodListRequest = Criteria & {
|
|
27
35
|
onlyAvailable?: boolean;
|
|
28
36
|
};
|
|
29
|
-
export
|
|
37
|
+
export interface PaymentMethodListResponse {
|
|
30
38
|
total?: number;
|
|
31
39
|
aggregations?: object;
|
|
32
40
|
elements?: Array<PaymentMethod>;
|
|
33
|
-
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ProductListingResult } from "#types/api/store/product/ProductListingResult";
|
|
2
|
+
import { Criteria } from "#types/api/global/query/Criteria";
|
|
3
|
+
export type WishlistGetRequest = Criteria;
|
|
4
|
+
export interface WishlistGetResponse {
|
|
5
|
+
wishlist?: {
|
|
6
|
+
customerId?: string;
|
|
7
|
+
salesChannelId?: string;
|
|
8
|
+
};
|
|
9
|
+
products?: ProductListingResult;
|
|
10
|
+
}
|
|
11
|
+
export interface WishlistMergeOrCreateRequest {
|
|
12
|
+
productIds?: Array<string>;
|
|
13
|
+
}
|
|
14
|
+
export interface WishlistMergeOrCreateResponse {
|
|
15
|
+
success?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface WishlistProductAddResponse {
|
|
18
|
+
success?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface WishlistProductRemoveResponse {
|
|
21
|
+
success?: boolean;
|
|
22
|
+
}
|
|
@@ -9,7 +9,6 @@ export * from "./DocumentClient";
|
|
|
9
9
|
export * from "./GatewayClient";
|
|
10
10
|
export * from "./NewsletterClient";
|
|
11
11
|
export * from "./OrderClient";
|
|
12
|
-
export * from "./PaymentClient";
|
|
13
12
|
export * from "./ProductClient";
|
|
14
13
|
export * from "./SeoClient";
|
|
15
14
|
export * from "./SystemClient";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from "./auth";
|
|
2
|
-
export * from "./clients";
|
|
3
|
-
export * from "./storeApi";
|
|
4
|
-
export { HTTPRequestMethod } from "./HTTPRequestMethod";
|
|
5
2
|
export { ClientRequestOptions } from "./ClientRequestOptions";
|
|
6
3
|
export { ClientResponse } from "./ClientResponse";
|
|
4
|
+
export { OAuthScope } from "./OAuthScope";
|
|
7
5
|
export { RequestCacheEntry } from "./RequestCacheEntry";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devite/shopware-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Third party API client for Shopware 6.",
|
|
5
5
|
"repository": "devite-io/shopware-client",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,13 +11,32 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./api/global": {
|
|
18
|
+
"import": "./dist/types/api/global/index.d.ts",
|
|
19
|
+
"require": "./dist/types/api/global/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./api/admin": {
|
|
22
|
+
"import": "./dist/types/api/admin/index.d.ts",
|
|
23
|
+
"require": "./dist/types/api/admin/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./api/store": {
|
|
26
|
+
"import": "./dist/types/api/store/index.d.ts",
|
|
27
|
+
"require": "./dist/types/api/store/index.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./clients/admin": {
|
|
30
|
+
"import": "./dist/types/clients/admin/index.d.ts",
|
|
31
|
+
"require": "./dist/types/clients/admin/index.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./clients/store": {
|
|
34
|
+
"import": "./dist/types/clients/store/index.d.ts",
|
|
35
|
+
"require": "./dist/types/clients/store/index.d.ts"
|
|
17
36
|
}
|
|
18
37
|
},
|
|
19
|
-
"main": "./dist/
|
|
20
|
-
"types": "./dist/
|
|
38
|
+
"main": "./dist/index.cjs",
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
21
40
|
"files": [
|
|
22
41
|
"dist"
|
|
23
42
|
],
|
|
@@ -32,7 +51,8 @@
|
|
|
32
51
|
"vitest": "^2.1.8"
|
|
33
52
|
},
|
|
34
53
|
"dependencies": {
|
|
35
|
-
"ofetch": "^1.4.1"
|
|
54
|
+
"ofetch": "^1.4.1",
|
|
55
|
+
"ohash": "^1.1.4"
|
|
36
56
|
},
|
|
37
57
|
"scripts": {
|
|
38
58
|
"build": "export NODE_ENV=production && unbuild && pnpm build:types",
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ClientRequestOptions, ClientResponse, RequestCacheEntry } from "#types";
|
|
2
|
-
import { AccountClient, AddressClient, CartClient, CategoryClient, ContentClient, ContextClient, CustomerAuthenticationClient, DocumentClient, GatewayClient, NewsletterClient, OrderClient, PaymentClient, ProductClient, SeoClient, SystemClient, WishlistClient } from "#clients";
|
|
3
|
-
import { AuthenticationStore } from "#auth";
|
|
4
|
-
declare class ShopwareClient {
|
|
5
|
-
private readonly baseUrl;
|
|
6
|
-
private readonly apiKey;
|
|
7
|
-
readonly authStore: AuthenticationStore;
|
|
8
|
-
readonly cache: Map<string, RequestCacheEntry>;
|
|
9
|
-
constructor(baseUrl: string, apiKey: string);
|
|
10
|
-
doRequest(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
11
|
-
private parseBody;
|
|
12
|
-
withContextToken(options: ClientRequestOptions): ClientRequestOptions;
|
|
13
|
-
withOAuth(options: ClientRequestOptions): Promise<ClientRequestOptions>;
|
|
14
|
-
forAccount(): AccountClient;
|
|
15
|
-
forAddress(): AddressClient;
|
|
16
|
-
forCart(): CartClient;
|
|
17
|
-
forCategory(): CategoryClient;
|
|
18
|
-
forContent(): ContentClient;
|
|
19
|
-
forContext(): ContextClient;
|
|
20
|
-
forCustomerAuthentication(): CustomerAuthenticationClient;
|
|
21
|
-
forDocument(): DocumentClient;
|
|
22
|
-
forGateway(): GatewayClient;
|
|
23
|
-
forNewsletter(): NewsletterClient;
|
|
24
|
-
forOrder(): OrderClient;
|
|
25
|
-
forPayment(): PaymentClient;
|
|
26
|
-
forProduct(): ProductClient;
|
|
27
|
-
forSeo(): SeoClient;
|
|
28
|
-
forSystem(): SystemClient;
|
|
29
|
-
forWishlist(): WishlistClient;
|
|
30
|
-
}
|
|
31
|
-
export default ShopwareClient;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AuthenticationEntry } from "./entries";
|
|
2
|
-
import AuthenticationType from "./AuthenticationType";
|
|
3
|
-
declare class AuthenticationStore {
|
|
4
|
-
entries: Map<AuthenticationType, AuthenticationEntry>;
|
|
5
|
-
getOrCreateEntry(entry: AuthenticationEntry): AuthenticationEntry;
|
|
6
|
-
getEntry(type: AuthenticationType): AuthenticationEntry | undefined;
|
|
7
|
-
}
|
|
8
|
-
export default AuthenticationStore;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AuthenticationType } from "..";
|
|
2
|
-
import { ClientRequestOptions, ClientResponse } from "#types";
|
|
3
|
-
interface AuthenticationEntry {
|
|
4
|
-
getType(): AuthenticationType;
|
|
5
|
-
isSaved(): boolean;
|
|
6
|
-
save(response: ClientResponse): void;
|
|
7
|
-
clear(): void;
|
|
8
|
-
load(): ClientRequestOptions;
|
|
9
|
-
}
|
|
10
|
-
export default AuthenticationEntry;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AuthenticationEntry } from ".";
|
|
2
|
-
import { ClientRequestOptions, ClientResponse } from "#types";
|
|
3
|
-
import { AuthenticationType } from "..";
|
|
4
|
-
declare class ContextTokenEntry implements AuthenticationEntry {
|
|
5
|
-
token: string | null;
|
|
6
|
-
constructor(token?: string | null);
|
|
7
|
-
getType(): AuthenticationType;
|
|
8
|
-
isSaved(): boolean;
|
|
9
|
-
save(response: ClientResponse): void;
|
|
10
|
-
clear(): void;
|
|
11
|
-
load(): ClientRequestOptions;
|
|
12
|
-
}
|
|
13
|
-
export default ContextTokenEntry;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AuthenticationEntry } from ".";
|
|
2
|
-
import { ClientResponse } from "#types";
|
|
3
|
-
import { AuthenticationType } from "..";
|
|
4
|
-
declare class OAuthEntry implements AuthenticationEntry {
|
|
5
|
-
accessToken: string | null;
|
|
6
|
-
refreshToken: string | null;
|
|
7
|
-
expiresAt: number | null;
|
|
8
|
-
constructor(accessToken?: string | null, refreshToken?: string | null, expiresAt?: number | null);
|
|
9
|
-
getType(): AuthenticationType;
|
|
10
|
-
isSaved(): boolean;
|
|
11
|
-
save(response: ClientResponse): void;
|
|
12
|
-
clear(): void;
|
|
13
|
-
load(): any;
|
|
14
|
-
}
|
|
15
|
-
export default OAuthEntry;
|
package/dist/src/auth/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Client } from "#clients";
|
|
2
|
-
import { AccountEmailChangeRequest, AccountEmailChangeResponse, AccountGetRequest, AccountGetResponse, AccountLanguageChangeRequest, AccountLanguageChangeResponse, AccountNewsletterRecipientListRequest, AccountNewsletterRecipientListResponse, AccountPasswordChangeRequest, AccountPasswordChangeResponse, AccountPasswordRecoveryMailRequest, AccountPasswordRecoveryMailResponse, AccountPasswordRecoveryRequest, AccountPasswordRecoveryResponse, AccountPaymentMethodChangeResponse, AccountRecoveryExpiryCheckRequest, AccountRecoveryExpiryCheckResponse, AccountUpdateRequest, AccountUpdateResponse } from "#types";
|
|
3
|
-
declare class AccountClient extends Client {
|
|
4
|
-
getNewsletterRecipientList(request?: AccountNewsletterRecipientListRequest): Promise<AccountNewsletterRecipientListResponse>;
|
|
5
|
-
changeProfile(request: AccountUpdateRequest): Promise<AccountUpdateResponse>;
|
|
6
|
-
changeEmail(request: AccountEmailChangeRequest): Promise<AccountEmailChangeResponse>;
|
|
7
|
-
changeLanguage(request: AccountLanguageChangeRequest): Promise<AccountLanguageChangeResponse>;
|
|
8
|
-
changePassword(request: AccountPasswordChangeRequest): Promise<AccountPasswordChangeResponse>;
|
|
9
|
-
changePaymentMethod(paymentMethodId: string): Promise<AccountPaymentMethodChangeResponse>;
|
|
10
|
-
isCustomerRecoveryExpired(request: AccountRecoveryExpiryCheckRequest): Promise<AccountRecoveryExpiryCheckResponse>;
|
|
11
|
-
getCustomer(request?: AccountGetRequest): Promise<AccountGetResponse>;
|
|
12
|
-
deleteCustomer(): Promise<undefined>;
|
|
13
|
-
confirmRecoveryPassword(request: AccountPasswordRecoveryRequest): Promise<AccountPasswordRecoveryResponse>;
|
|
14
|
-
requestPasswordRecoveryMail(request: AccountPasswordRecoveryMailRequest): Promise<AccountPasswordRecoveryMailResponse>;
|
|
15
|
-
}
|
|
16
|
-
export default AccountClient;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Client } from "#clients";
|
|
2
|
-
import { AddressCreateRequest, AddressCreateResponse, AddressListRequest, AddressListResponse, AddressUpdateRequest, AddressUpdateResponse } from "#types";
|
|
3
|
-
declare class AddressClient extends Client {
|
|
4
|
-
deleteAddress(addressId: string): Promise<undefined>;
|
|
5
|
-
updateAddress(addressId: string, request: AddressUpdateRequest): Promise<AddressUpdateResponse>;
|
|
6
|
-
getAddressList(request?: AddressListRequest): Promise<AddressListResponse>;
|
|
7
|
-
changeDefaultShippingAddress(addressId: string): Promise<undefined>;
|
|
8
|
-
changeDefaultBillingAddress(addressId: string): Promise<undefined>;
|
|
9
|
-
createAddress(request: AddressCreateRequest): Promise<AddressCreateResponse>;
|
|
10
|
-
}
|
|
11
|
-
export default AddressClient;
|