@devite/shopware-client 1.0.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/LICENSE +21 -0
- package/README.md +52 -0
- package/dist/index.cjs +1330 -0
- package/dist/index.d.cts +2186 -0
- package/dist/index.d.mts +2186 -0
- package/dist/index.d.ts +2186 -0
- package/dist/index.mjs +1314 -0
- package/dist/src/ShopwareClient.d.ts +31 -0
- package/dist/src/auth/AuthenticationStore.d.ts +8 -0
- package/dist/src/auth/AuthenticationType.d.ts +5 -0
- package/dist/src/auth/entries/AuthenticationEntry.d.ts +10 -0
- package/dist/src/auth/entries/ContextTokenEntry.d.ts +13 -0
- package/dist/src/auth/entries/OAuthEntry.d.ts +15 -0
- package/dist/src/auth/entries/index.d.ts +3 -0
- package/dist/src/auth/errors/ExpiredError.d.ts +4 -0
- package/dist/src/auth/errors/NotSavedError.d.ts +4 -0
- package/dist/src/auth/errors/index.d.ts +2 -0
- package/dist/src/auth/index.d.ts +4 -0
- package/dist/src/clients/AccountClient.d.ts +16 -0
- package/dist/src/clients/AddressClient.d.ts +11 -0
- package/dist/src/clients/CartClient.d.ts +10 -0
- package/dist/src/clients/CategoryClient.d.ts +8 -0
- package/dist/src/clients/Client.d.ts +16 -0
- package/dist/src/clients/ContentClient.d.ts +9 -0
- package/dist/src/clients/ContextClient.d.ts +7 -0
- package/dist/src/clients/CustomerAuthenticationClient.d.ts +11 -0
- package/dist/src/clients/DocumentClient.d.ts +6 -0
- package/dist/src/clients/GatewayClient.d.ts +6 -0
- package/dist/src/clients/NewsletterClient.d.ts +8 -0
- package/dist/src/clients/OrderClient.d.ts +10 -0
- package/dist/src/clients/PaymentClient.d.ts +6 -0
- package/dist/src/clients/ProductClient.d.ts +14 -0
- package/dist/src/clients/SeoClient.d.ts +8 -0
- package/dist/src/clients/SystemClient.d.ts +12 -0
- package/dist/src/clients/WishlistClient.d.ts +9 -0
- package/dist/src/clients/index.d.ts +17 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/payloads/BinaryPayload.d.ts +10 -0
- package/dist/src/payloads/JsonPayload.d.ts +10 -0
- package/dist/src/payloads/Payload.d.ts +6 -0
- package/dist/src/payloads/index.d.ts +3 -0
- package/dist/tests/auth/AuthenticationStore.test.d.ts +1 -0
- package/dist/tests/auth/entries/ContextTokenEntry.test.d.ts +1 -0
- package/dist/tests/auth/entries/OAuthEntry.test.d.ts +1 -0
- package/dist/types/ClientRequestOptions.d.ts +8 -0
- package/dist/types/ClientResponse.d.ts +7 -0
- package/dist/types/HTTPRequestMethod.d.ts +8 -0
- package/dist/types/RequestCacheEntry.d.ts +5 -0
- package/dist/types/auth/OAuthResponseBody.d.ts +5 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/clients/AccountClient.d.ts +70 -0
- package/dist/types/clients/AddressClient.d.ts +7 -0
- package/dist/types/clients/CartClient.d.ts +17 -0
- package/dist/types/clients/CategoryClient.d.ts +12 -0
- package/dist/types/clients/ContentClient.d.ts +29 -0
- package/dist/types/clients/ContextClient.d.ts +18 -0
- package/dist/types/clients/CustomerAuthenticationClient.d.ts +44 -0
- package/dist/types/clients/DocumentClient.d.ts +3 -0
- package/dist/types/clients/GatewayClient.d.ts +18 -0
- package/dist/types/clients/NewsletterClient.d.ts +21 -0
- package/dist/types/clients/OrderClient.d.ts +26 -0
- package/dist/types/clients/PaymentClient.d.ts +8 -0
- package/dist/types/clients/ProductClient.d.ts +49 -0
- package/dist/types/clients/SeoClient.d.ts +7 -0
- package/dist/types/clients/SystemClient.d.ts +33 -0
- package/dist/types/clients/WishlistClient.d.ts +21 -0
- package/dist/types/clients/index.d.ts +16 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/storeApi/Currency.d.ts +26 -0
- package/dist/types/storeApi/DeliveryTime.d.ts +12 -0
- package/dist/types/storeApi/EntitySearchResult.d.ts +7 -0
- package/dist/types/storeApi/GenericRecord.d.ts +3 -0
- package/dist/types/storeApi/PaymentMethod.d.ts +24 -0
- package/dist/types/storeApi/Rule.d.ts +10 -0
- package/dist/types/storeApi/Salutation.d.ts +11 -0
- package/dist/types/storeApi/StateMachineState.d.ts +10 -0
- package/dist/types/storeApi/Tag.d.ts +6 -0
- package/dist/types/storeApi/Tax.d.ts +10 -0
- package/dist/types/storeApi/TotalCountMode.d.ts +1 -0
- package/dist/types/storeApi/Unit.d.ts +10 -0
- package/dist/types/storeApi/aggregation/AggregationEntity.d.ts +6 -0
- package/dist/types/storeApi/aggregation/AggregationFilter.d.ts +6 -0
- package/dist/types/storeApi/aggregation/AggregationHistogram.d.ts +8 -0
- package/dist/types/storeApi/aggregation/AggregationMetrics.d.ts +5 -0
- package/dist/types/storeApi/aggregation/AggregationRange.d.ts +13 -0
- package/dist/types/storeApi/aggregation/AggregationTerms.d.ts +8 -0
- package/dist/types/storeApi/aggregation/Aggregations.d.ts +2 -0
- package/dist/types/storeApi/aggregation/index.d.ts +7 -0
- package/dist/types/storeApi/cart/Cart.d.ts +19 -0
- package/dist/types/storeApi/cart/CartDelivery.d.ts +13 -0
- package/dist/types/storeApi/cart/CartDeliveryDate.d.ts +4 -0
- package/dist/types/storeApi/cart/CartDeliveryInformation.d.ts +12 -0
- package/dist/types/storeApi/cart/CartDeliveryPosition.d.ts +9 -0
- package/dist/types/storeApi/cart/CartDeliveryShippingLocation.d.ts +7 -0
- package/dist/types/storeApi/cart/CartDeliveryTime.d.ts +7 -0
- package/dist/types/storeApi/cart/CartError.d.ts +8 -0
- package/dist/types/storeApi/cart/CartItems.d.ts +2 -0
- package/dist/types/storeApi/cart/index.d.ts +9 -0
- package/dist/types/storeApi/category/Category.d.ts +50 -0
- package/dist/types/storeApi/category/MainCategory.d.ts +10 -0
- package/dist/types/storeApi/category/index.d.ts +2 -0
- package/dist/types/storeApi/cms/BackgroundMediaMode.d.ts +1 -0
- package/dist/types/storeApi/cms/CmsBlock.d.ts +28 -0
- package/dist/types/storeApi/cms/CmsPage.d.ts +23 -0
- package/dist/types/storeApi/cms/CmsSection.d.ts +25 -0
- package/dist/types/storeApi/cms/CmsSlot.d.ts +20 -0
- package/dist/types/storeApi/cms/LandingPage.d.ts +23 -0
- package/dist/types/storeApi/cms/Visibility.d.ts +5 -0
- package/dist/types/storeApi/cms/index.d.ts +7 -0
- package/dist/types/storeApi/country/Country.d.ts +40 -0
- package/dist/types/storeApi/country/CountryState.d.ts +13 -0
- package/dist/types/storeApi/country/index.d.ts +2 -0
- package/dist/types/storeApi/customer/Customer.d.ts +61 -0
- package/dist/types/storeApi/customer/CustomerAddress.d.ts +7 -0
- package/dist/types/storeApi/customer/CustomerAddressBody.d.ts +23 -0
- package/dist/types/storeApi/customer/CustomerGroup.d.ts +20 -0
- package/dist/types/storeApi/customer/index.d.ts +4 -0
- package/dist/types/storeApi/document/ShopwareDocument.d.ts +29 -0
- package/dist/types/storeApi/document/ShopwareDocumentBaseConfig.d.ts +17 -0
- package/dist/types/storeApi/document/ShopwareDocumentType.d.ts +10 -0
- package/dist/types/storeApi/document/index.d.ts +3 -0
- package/dist/types/storeApi/filter/EqualsFilter.d.ts +5 -0
- package/dist/types/storeApi/filter/Filters.d.ts +2 -0
- package/dist/types/storeApi/filter/MultiNotFilter.d.ts +6 -0
- package/dist/types/storeApi/filter/RangeFilter.d.ts +10 -0
- package/dist/types/storeApi/filter/SimpleFilter.d.ts +5 -0
- package/dist/types/storeApi/filter/index.d.ts +5 -0
- package/dist/types/storeApi/index.d.ts +32 -0
- package/dist/types/storeApi/lineItem/LineItem.d.ts +32 -0
- package/dist/types/storeApi/lineItem/LineItemPayload.d.ts +74 -0
- package/dist/types/storeApi/lineItem/LineItemType.d.ts +1 -0
- package/dist/types/storeApi/lineItem/index.d.ts +3 -0
- package/dist/types/storeApi/link/Link.d.ts +4 -0
- package/dist/types/storeApi/link/Links.d.ts +2 -0
- package/dist/types/storeApi/link/index.d.ts +2 -0
- package/dist/types/storeApi/locale/Language.d.ts +16 -0
- package/dist/types/storeApi/locale/Locale.d.ts +11 -0
- package/dist/types/storeApi/locale/index.d.ts +2 -0
- package/dist/types/storeApi/media/Media.d.ts +25 -0
- package/dist/types/storeApi/media/MediaThumbnail.d.ts +12 -0
- package/dist/types/storeApi/media/ProductMedia.d.ts +15 -0
- package/dist/types/storeApi/media/index.d.ts +3 -0
- package/dist/types/storeApi/order/Order.d.ts +58 -0
- package/dist/types/storeApi/order/OrderAddress.d.ts +8 -0
- package/dist/types/storeApi/order/OrderCustomer.d.ts +18 -0
- package/dist/types/storeApi/order/OrderDelivery.d.ts +24 -0
- package/dist/types/storeApi/order/OrderDeliveryPosition.d.ts +17 -0
- package/dist/types/storeApi/order/OrderLineItem.d.ts +43 -0
- package/dist/types/storeApi/order/OrderLineItemDownload.d.ts +17 -0
- package/dist/types/storeApi/order/OrderReturn.d.ts +14 -0
- package/dist/types/storeApi/order/OrderReturnLineItem.d.ts +14 -0
- package/dist/types/storeApi/order/OrderReturnLineItemReason.d.ts +6 -0
- package/dist/types/storeApi/order/OrderTransaction.d.ts +22 -0
- package/dist/types/storeApi/order/OrderTransactionCapture.d.ts +20 -0
- package/dist/types/storeApi/order/OrderTransactionCaptureRefund.d.ts +21 -0
- package/dist/types/storeApi/order/OrderTransactionCaptureRefundPosition.d.ts +21 -0
- package/dist/types/storeApi/order/index.d.ts +14 -0
- package/dist/types/storeApi/price/CalculatedPrice.d.ts +25 -0
- package/dist/types/storeApi/price/CartListPrice.d.ts +6 -0
- package/dist/types/storeApi/price/CartPriceQuantity.d.ts +16 -0
- package/dist/types/storeApi/price/CartPriceReference.d.ts +12 -0
- package/dist/types/storeApi/price/CartRegulationPrice.d.ts +4 -0
- package/dist/types/storeApi/price/Price.d.ts +18 -0
- package/dist/types/storeApi/price/index.d.ts +6 -0
- package/dist/types/storeApi/product/Product.d.ts +107 -0
- package/dist/types/storeApi/product/ProductConfiguratorSetting.d.ts +17 -0
- package/dist/types/storeApi/product/ProductDownload.d.ts +16 -0
- package/dist/types/storeApi/product/ProductListingResult.d.ts +29 -0
- package/dist/types/storeApi/product/ProductManufacturer.d.ts +15 -0
- package/dist/types/storeApi/product/ProductReview.d.ts +16 -0
- package/dist/types/storeApi/product/ProductReviewSummary.d.ts +8 -0
- package/dist/types/storeApi/product/ProductStream.d.ts +10 -0
- package/dist/types/storeApi/product/crossSelling/CrossSellingElement.d.ts +9 -0
- package/dist/types/storeApi/product/crossSelling/ProductCrossSelling.d.ts +13 -0
- package/dist/types/storeApi/product/crossSelling/index.d.ts +2 -0
- package/dist/types/storeApi/product/index.d.ts +9 -0
- package/dist/types/storeApi/propertyGroup/PropertyGroup.d.ts +17 -0
- package/dist/types/storeApi/propertyGroup/PropertyGroupOption.d.ts +18 -0
- package/dist/types/storeApi/propertyGroup/index.d.ts +2 -0
- package/dist/types/storeApi/query/Criteria.d.ts +20 -0
- package/dist/types/storeApi/query/Include.d.ts +1 -0
- package/dist/types/storeApi/query/Query.d.ts +5 -0
- package/dist/types/storeApi/query/Sort.d.ts +6 -0
- package/dist/types/storeApi/query/index.d.ts +5 -0
- package/dist/types/storeApi/query/product/ProductListingCriteria.d.ts +25 -0
- package/dist/types/storeApi/query/product/ProductListingFlags.d.ts +4 -0
- package/dist/types/storeApi/query/product/index.d.ts +2 -0
- package/dist/types/storeApi/salesChannel/SalesChannel.d.ts +23 -0
- package/dist/types/storeApi/salesChannel/SalesChannelContext.d.ts +38 -0
- package/dist/types/storeApi/salesChannel/index.d.ts +2 -0
- package/dist/types/storeApi/seo/SeoUrlEntity.d.ts +18 -0
- package/dist/types/storeApi/seo/Sitemap.d.ts +4 -0
- package/dist/types/storeApi/seo/index.d.ts +2 -0
- package/dist/types/storeApi/shippingMethod/ShippingMethod.d.ts +29 -0
- package/dist/types/storeApi/shippingMethod/ShippingMethodPrice.d.ts +15 -0
- package/dist/types/storeApi/shippingMethod/index.d.ts +2 -0
- package/package.json +45 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Customer, CustomerAddress, CustomerGroup } from "../storeApi";
|
|
2
|
+
export type CustomerLoginRequest = {
|
|
3
|
+
username: string;
|
|
4
|
+
password: string;
|
|
5
|
+
};
|
|
6
|
+
export type CustomerLoginResponse = {
|
|
7
|
+
redirectUrl?: string;
|
|
8
|
+
};
|
|
9
|
+
export type CustomerLogoutResponse = {
|
|
10
|
+
redirectUrl?: string;
|
|
11
|
+
};
|
|
12
|
+
export type CustomerRegisterRequest = {
|
|
13
|
+
email: string;
|
|
14
|
+
password: string;
|
|
15
|
+
salutationId: string;
|
|
16
|
+
firstName: string;
|
|
17
|
+
lastName: string;
|
|
18
|
+
acceptedDataProtection: boolean;
|
|
19
|
+
storefrontUrl: string;
|
|
20
|
+
billingAddress: CustomerAddress;
|
|
21
|
+
shippingAddress?: CustomerAddress;
|
|
22
|
+
accountType?: "private" | "business";
|
|
23
|
+
guest?: boolean;
|
|
24
|
+
birthdayDay?: number;
|
|
25
|
+
birthdayMonth?: number;
|
|
26
|
+
birthdayYear?: number;
|
|
27
|
+
title?: string;
|
|
28
|
+
affiliateCode?: string;
|
|
29
|
+
campaignCode?: string;
|
|
30
|
+
};
|
|
31
|
+
export type CustomerRegisterResponse = Customer;
|
|
32
|
+
export type CustomerRegisterGroupConfigResponse = CustomerGroup;
|
|
33
|
+
export type CustomerRegistrationConfirmRequest = {
|
|
34
|
+
hash: string;
|
|
35
|
+
em: string;
|
|
36
|
+
};
|
|
37
|
+
export type CustomerLoginImitateRequest = {
|
|
38
|
+
token: string;
|
|
39
|
+
customerId: string;
|
|
40
|
+
userId: string;
|
|
41
|
+
};
|
|
42
|
+
export type CustomerLoginImitateResponse = {
|
|
43
|
+
redirectUrl?: string;
|
|
44
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PaymentMethod, ShippingMethod } from "../storeApi";
|
|
2
|
+
export type GatewayCheckoutResponse = {
|
|
3
|
+
paymentMethods?: {
|
|
4
|
+
total?: number;
|
|
5
|
+
aggregations?: object;
|
|
6
|
+
elements?: Array<PaymentMethod>;
|
|
7
|
+
};
|
|
8
|
+
shippingMethods?: {
|
|
9
|
+
total?: number;
|
|
10
|
+
aggregations?: object;
|
|
11
|
+
elements?: Array<ShippingMethod>;
|
|
12
|
+
};
|
|
13
|
+
errors?: Array<{
|
|
14
|
+
code?: string;
|
|
15
|
+
detail?: string;
|
|
16
|
+
blocking?: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type NewsletterConfirmRequest = {
|
|
2
|
+
hash: string;
|
|
3
|
+
em: string;
|
|
4
|
+
};
|
|
5
|
+
export type NewsletterUpdateRequest = {
|
|
6
|
+
email: string;
|
|
7
|
+
option: "direct" | "subscribe" | "unsubscribe" | "confirmSubscribe";
|
|
8
|
+
storefrontUrl: string;
|
|
9
|
+
salutationId?: string;
|
|
10
|
+
firstName?: string;
|
|
11
|
+
lastName?: string;
|
|
12
|
+
street?: string;
|
|
13
|
+
city?: string;
|
|
14
|
+
zipCode?: string;
|
|
15
|
+
tags?: string;
|
|
16
|
+
languageId?: string;
|
|
17
|
+
customFields?: string;
|
|
18
|
+
};
|
|
19
|
+
export type NewsletterUnsubscribeRequest = {
|
|
20
|
+
email: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Criteria, EntitySearchResult, Order, StateMachineState } from "../storeApi";
|
|
2
|
+
export type OrderCancelRequest = {
|
|
3
|
+
orderId: string;
|
|
4
|
+
};
|
|
5
|
+
export type OrderCancelResponse = StateMachineState;
|
|
6
|
+
export type OrderDownloadFileResponse = Blob;
|
|
7
|
+
export type OrderFromCartRequest = {
|
|
8
|
+
customerComment?: string;
|
|
9
|
+
affiliateCode?: string;
|
|
10
|
+
campaignCode?: string;
|
|
11
|
+
};
|
|
12
|
+
export type OrderFromCartResponse = Order;
|
|
13
|
+
export type OrderListRequest = Criteria & {
|
|
14
|
+
checkPromotion?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type OrderListResponse = {
|
|
17
|
+
orders: Array<Order> & EntitySearchResult;
|
|
18
|
+
paymentChangeable: Record<string, boolean>;
|
|
19
|
+
};
|
|
20
|
+
export type OrderUpdatePaymentMethodRequest = {
|
|
21
|
+
paymentMethodId: string;
|
|
22
|
+
orderId: string;
|
|
23
|
+
};
|
|
24
|
+
export type OrderUpdatePaymentMethodResponse = {
|
|
25
|
+
success?: boolean;
|
|
26
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Criteria, CrossSellingElement, EntitySearchResult, Product, ProductListingCriteria, ProductListingFlags, ProductListingResult, ProductReview, PropertyGroup } from "../storeApi";
|
|
2
|
+
export type ProductListRequest = Criteria;
|
|
3
|
+
export type ProductListResponse = EntitySearchResult & {
|
|
4
|
+
elements?: Array<Product>;
|
|
5
|
+
};
|
|
6
|
+
export type ProductReviewListRequest = Criteria;
|
|
7
|
+
export type ProductReviewListResponse = EntitySearchResult & {
|
|
8
|
+
elements?: Array<ProductReview>;
|
|
9
|
+
};
|
|
10
|
+
export type ProductReviewSaveRequest = {
|
|
11
|
+
name?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
title: string;
|
|
14
|
+
content: string;
|
|
15
|
+
points: number;
|
|
16
|
+
};
|
|
17
|
+
export type ProductSearchRequest = {
|
|
18
|
+
search: string;
|
|
19
|
+
} & ProductListingCriteria & ProductListingFlags;
|
|
20
|
+
export type ProductSearchResponse = ProductListingResult;
|
|
21
|
+
export type ProductSearchSuggestionListRequest = ProductListingFlags & {
|
|
22
|
+
search: string;
|
|
23
|
+
};
|
|
24
|
+
export type ProductSearchSuggestionListResponse = ProductListingResult;
|
|
25
|
+
export type ProductSingleRequest = Criteria;
|
|
26
|
+
export type ProductSingleResponse = {
|
|
27
|
+
product: Product;
|
|
28
|
+
configurator?: Array<PropertyGroup>;
|
|
29
|
+
id?: any;
|
|
30
|
+
available?: any;
|
|
31
|
+
isCloseout?: any;
|
|
32
|
+
displayGroup?: any;
|
|
33
|
+
manufacturerNumber?: any;
|
|
34
|
+
stock?: any;
|
|
35
|
+
sortedProperties?: any;
|
|
36
|
+
};
|
|
37
|
+
export type ProductVariantWithOptionsRequest = {
|
|
38
|
+
options: Array<string>;
|
|
39
|
+
switchedGroup?: string;
|
|
40
|
+
};
|
|
41
|
+
export type ProductVariantWithOptionsResponse = {
|
|
42
|
+
foundCombination?: {
|
|
43
|
+
variantId?: string;
|
|
44
|
+
options: Array<string>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export type ProductListingListWithCategoryRequest = ProductListingCriteria & ProductListingFlags;
|
|
48
|
+
export type ProductListingListWithCategoryResponse = ProductListingResult;
|
|
49
|
+
export type ProductCrossSellingGroupListResponse = Array<CrossSellingElement>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Criteria, EntitySearchResult, SeoUrlEntity, Sitemap } from "../storeApi";
|
|
2
|
+
export type SeoRouteListRequest = Criteria;
|
|
3
|
+
export type SeoRouteListResponse = EntitySearchResult & {
|
|
4
|
+
elements?: Array<SeoUrlEntity>;
|
|
5
|
+
};
|
|
6
|
+
export type SitemapDownloadResponse = Blob;
|
|
7
|
+
export type SitemapListResponse = Array<Sitemap>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Country, CountryState, Criteria, Currency, EntitySearchResult, Language, PaymentMethod, Salutation, ShippingMethod } from "../storeApi";
|
|
2
|
+
export type CountryListRequest = Criteria;
|
|
3
|
+
export type CountryListResponse = EntitySearchResult & {
|
|
4
|
+
elements?: Array<Country>;
|
|
5
|
+
};
|
|
6
|
+
export type CountryStateListRequest = Criteria;
|
|
7
|
+
export type CountryStateListResponse = EntitySearchResult & {
|
|
8
|
+
elements?: Array<CountryState>;
|
|
9
|
+
};
|
|
10
|
+
export type CurrencyListRequest = Criteria;
|
|
11
|
+
export type CurrencyListResponse = EntitySearchResult & {
|
|
12
|
+
elements?: Array<Currency>;
|
|
13
|
+
};
|
|
14
|
+
export type LanguageListRequest = Criteria;
|
|
15
|
+
export type LanguageListResponse = EntitySearchResult & {
|
|
16
|
+
elements?: Array<Language>;
|
|
17
|
+
};
|
|
18
|
+
export type SalutationListRequest = Criteria;
|
|
19
|
+
export type SalutationListResponse = EntitySearchResult & {
|
|
20
|
+
elements?: Array<Salutation>;
|
|
21
|
+
};
|
|
22
|
+
export type ShippingMethodListRequest = Criteria;
|
|
23
|
+
export type ShippingMethodListResponse = EntitySearchResult & {
|
|
24
|
+
elements?: Array<ShippingMethod>;
|
|
25
|
+
};
|
|
26
|
+
export type PaymentMethodListRequest = Criteria & {
|
|
27
|
+
onlyAvailable?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type PaymentMethodListResponse = {
|
|
30
|
+
total?: number;
|
|
31
|
+
aggregations?: object;
|
|
32
|
+
elements?: Array<PaymentMethod>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Criteria, ProductListingResult } from "../storeApi";
|
|
2
|
+
export type WishlistGetRequest = Criteria;
|
|
3
|
+
export type WishlistGetResponse = {
|
|
4
|
+
wishlist?: {
|
|
5
|
+
customerId?: string;
|
|
6
|
+
salesChannelId?: string;
|
|
7
|
+
};
|
|
8
|
+
products?: ProductListingResult;
|
|
9
|
+
};
|
|
10
|
+
export type WishlistMergeOrCreateRequest = {
|
|
11
|
+
productIds?: Array<string>;
|
|
12
|
+
};
|
|
13
|
+
export type WishlistMergeOrCreateResponse = {
|
|
14
|
+
success?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type WishlistProductAddResponse = {
|
|
17
|
+
success?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type WishlistProductRemoveResponse = {
|
|
20
|
+
success?: boolean;
|
|
21
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./AccountClient";
|
|
2
|
+
export * from "./AddressClient";
|
|
3
|
+
export * from "./CartClient";
|
|
4
|
+
export * from "./CategoryClient";
|
|
5
|
+
export * from "./ContentClient";
|
|
6
|
+
export * from "./ContextClient";
|
|
7
|
+
export * from "./CustomerAuthenticationClient";
|
|
8
|
+
export * from "./DocumentClient";
|
|
9
|
+
export * from "./GatewayClient";
|
|
10
|
+
export * from "./NewsletterClient";
|
|
11
|
+
export * from "./OrderClient";
|
|
12
|
+
export * from "./PaymentClient";
|
|
13
|
+
export * from "./ProductClient";
|
|
14
|
+
export * from "./SeoClient";
|
|
15
|
+
export * from "./SystemClient";
|
|
16
|
+
export * from "./WishlistClient";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./auth";
|
|
2
|
+
export * from "./clients";
|
|
3
|
+
export * from "./storeApi";
|
|
4
|
+
export { HTTPRequestMethod } from "./HTTPRequestMethod";
|
|
5
|
+
export { ClientRequestOptions } from "./ClientRequestOptions";
|
|
6
|
+
export { ClientResponse } from "./ClientResponse";
|
|
7
|
+
export { RequestCacheEntry } from "./RequestCacheEntry";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GenericRecord } from "./GenericRecord";
|
|
2
|
+
export type Currency = {
|
|
3
|
+
id: string;
|
|
4
|
+
factor: number;
|
|
5
|
+
symbol: string;
|
|
6
|
+
isoCode: string;
|
|
7
|
+
shortName: string;
|
|
8
|
+
name: string;
|
|
9
|
+
position?: number;
|
|
10
|
+
isSystemDefault?: boolean;
|
|
11
|
+
taxFreeFrom?: number;
|
|
12
|
+
customFields?: GenericRecord;
|
|
13
|
+
itemRounding: {
|
|
14
|
+
decimals: number;
|
|
15
|
+
interval: number;
|
|
16
|
+
roundForNet: boolean;
|
|
17
|
+
};
|
|
18
|
+
totalRounding: {
|
|
19
|
+
decimals: number;
|
|
20
|
+
interval: number;
|
|
21
|
+
roundForNet: boolean;
|
|
22
|
+
};
|
|
23
|
+
readonly createdAt?: string;
|
|
24
|
+
readonly updatedAt?: string;
|
|
25
|
+
translated?: object;
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GenericRecord } from "./GenericRecord";
|
|
2
|
+
export type DeliveryTime = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
customFields?: GenericRecord;
|
|
9
|
+
readonly createdAt?: string;
|
|
10
|
+
readonly updatedAt?: string;
|
|
11
|
+
translated?: object;
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GenericRecord } from "./GenericRecord";
|
|
2
|
+
import { Media } from "./media";
|
|
3
|
+
export type PaymentMethod = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
readonly distinguishableName?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
position?: number;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
afterOrderEnabled?: boolean;
|
|
11
|
+
customFields?: GenericRecord;
|
|
12
|
+
mediaId?: string;
|
|
13
|
+
readonly synchronous?: boolean;
|
|
14
|
+
readonly asynchronous?: boolean;
|
|
15
|
+
readonly prepared?: boolean;
|
|
16
|
+
readonly refundable?: boolean;
|
|
17
|
+
readonly recurring?: boolean;
|
|
18
|
+
shortName?: string;
|
|
19
|
+
technicalName?: string;
|
|
20
|
+
readonly createdAt?: string;
|
|
21
|
+
readonly updatedAt?: string;
|
|
22
|
+
translated?: object;
|
|
23
|
+
media?: Media;
|
|
24
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GenericRecord } from "./GenericRecord";
|
|
2
|
+
export type Salutation = {
|
|
3
|
+
id: string;
|
|
4
|
+
salutationKey: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
letterName: string;
|
|
7
|
+
customFields?: GenericRecord;
|
|
8
|
+
readonly createdAt?: string;
|
|
9
|
+
readonly updatedAt?: string;
|
|
10
|
+
translated?: object;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GenericRecord } from "./GenericRecord";
|
|
2
|
+
export type StateMachineState = {
|
|
3
|
+
id?: string;
|
|
4
|
+
technicalName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
customFields?: GenericRecord;
|
|
7
|
+
readonly createdAt?: string;
|
|
8
|
+
readonly updatedAt?: string;
|
|
9
|
+
translated?: object;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TotalCountMode = "none" | "exact" | "next-pages";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AggregationEntity, AggregationFilter, AggregationHistogram, AggregationMetrics, AggregationRange, AggregationTerms } from ".";
|
|
2
|
+
export type Aggregations = Array<AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AggregationEntity } from "./AggregationEntity";
|
|
2
|
+
export { AggregationFilter } from "./AggregationFilter";
|
|
3
|
+
export { AggregationHistogram } from "./AggregationHistogram";
|
|
4
|
+
export { AggregationMetrics } from "./AggregationMetrics";
|
|
5
|
+
export { AggregationRange } from "./AggregationRange";
|
|
6
|
+
export { AggregationTerms } from "./AggregationTerms";
|
|
7
|
+
export { Aggregations } from "./Aggregations";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CalculatedPrice } from "../price";
|
|
2
|
+
import { CartDelivery, CartError, CartItems } from ".";
|
|
3
|
+
export type Cart = {
|
|
4
|
+
name?: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
price?: CalculatedPrice;
|
|
7
|
+
lineItems?: CartItems;
|
|
8
|
+
errors?: Array<CartError>;
|
|
9
|
+
deliveries?: Array<CartDelivery>;
|
|
10
|
+
transactions?: Array<{
|
|
11
|
+
paymentMethodId?: string;
|
|
12
|
+
amount?: CalculatedPrice;
|
|
13
|
+
}>;
|
|
14
|
+
modified?: boolean;
|
|
15
|
+
customerComment?: string | null;
|
|
16
|
+
affiliateCode?: string | null;
|
|
17
|
+
campaignCode?: string | null;
|
|
18
|
+
id?: any;
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CartDeliveryDate, CartDeliveryPosition, CartDeliveryShippingLocation } from ".";
|
|
2
|
+
import { CountryState } from "../country";
|
|
3
|
+
import { CalculatedPrice } from "../price";
|
|
4
|
+
import { ShippingMethod } from "../shippingMethod";
|
|
5
|
+
export type CartDelivery = {
|
|
6
|
+
deliveryDate?: CartDeliveryDate;
|
|
7
|
+
location?: CartDeliveryShippingLocation & {
|
|
8
|
+
state?: CountryState;
|
|
9
|
+
};
|
|
10
|
+
positions?: Array<CartDeliveryPosition>;
|
|
11
|
+
shippingCosts?: CalculatedPrice;
|
|
12
|
+
shippingMethod?: ShippingMethod;
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CartDeliveryTime } from ".";
|
|
2
|
+
export type CartDeliveryInformation = {
|
|
3
|
+
apiAlias: "cart_delivery_information";
|
|
4
|
+
freeDelivery?: boolean;
|
|
5
|
+
deliveryTime?: CartDeliveryTime;
|
|
6
|
+
height?: number;
|
|
7
|
+
length?: number;
|
|
8
|
+
restockTime?: number;
|
|
9
|
+
stock?: number;
|
|
10
|
+
weight?: number;
|
|
11
|
+
width?: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CartDeliveryDate } from ".";
|
|
2
|
+
import { LineItem } from "../lineItem";
|
|
3
|
+
import { CalculatedPrice } from "../price";
|
|
4
|
+
export type CartDeliveryPosition = {
|
|
5
|
+
deliveryDate?: CartDeliveryDate;
|
|
6
|
+
identifier?: string;
|
|
7
|
+
lineItem?: LineItem;
|
|
8
|
+
price?: CalculatedPrice;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Cart } from "./Cart";
|
|
2
|
+
export { CartDelivery } from "./CartDelivery";
|
|
3
|
+
export { CartDeliveryDate } from "./CartDeliveryDate";
|
|
4
|
+
export { CartDeliveryInformation } from "./CartDeliveryInformation";
|
|
5
|
+
export { CartDeliveryPosition } from "./CartDeliveryPosition";
|
|
6
|
+
export { CartDeliveryShippingLocation } from "./CartDeliveryShippingLocation";
|
|
7
|
+
export { CartDeliveryTime } from "./CartDeliveryTime";
|
|
8
|
+
export { CartError } from "./CartError";
|
|
9
|
+
export { CartItems } from "./CartItems";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { GenericRecord } from "../GenericRecord";
|
|
2
|
+
import { Media } from "../media";
|
|
3
|
+
import { Tag } from "../Tag";
|
|
4
|
+
import { CmsPage } from "../cms";
|
|
5
|
+
import { SeoUrlEntity } from "../seo";
|
|
6
|
+
export type Category = {
|
|
7
|
+
apiAlias: "category";
|
|
8
|
+
id: string;
|
|
9
|
+
versionId?: string;
|
|
10
|
+
parentId?: string;
|
|
11
|
+
parentVersionId?: string;
|
|
12
|
+
afterCategoryId?: string;
|
|
13
|
+
afterCategoryVersionId?: string;
|
|
14
|
+
mediaId?: string;
|
|
15
|
+
displayNestedProducts?: boolean;
|
|
16
|
+
readonly breadcrumb: Array<string>;
|
|
17
|
+
readonly level?: number;
|
|
18
|
+
readonly path?: string;
|
|
19
|
+
readonly childCount: number;
|
|
20
|
+
type: "page" | "folder" | "link";
|
|
21
|
+
productAssignmentType?: "product_stream" | "product";
|
|
22
|
+
visible?: boolean;
|
|
23
|
+
active?: boolean;
|
|
24
|
+
cmsPageIdSwitched?: boolean;
|
|
25
|
+
visibleChildCount?: number;
|
|
26
|
+
name: string;
|
|
27
|
+
customFields?: GenericRecord;
|
|
28
|
+
linkType?: "external" | "category" | "product" | "landing_page";
|
|
29
|
+
internalLink?: string;
|
|
30
|
+
externalLink?: string;
|
|
31
|
+
linkNewTab?: boolean;
|
|
32
|
+
description?: string;
|
|
33
|
+
metaTitle?: string;
|
|
34
|
+
metaDescription?: string;
|
|
35
|
+
keywords?: string;
|
|
36
|
+
cmsPageId?: string;
|
|
37
|
+
cmsPageVersionId?: string;
|
|
38
|
+
customEntityTypeId?: string;
|
|
39
|
+
readonly createdAt?: string;
|
|
40
|
+
readonly updatedAt?: string;
|
|
41
|
+
translated: {
|
|
42
|
+
breadcrumb: Array<String>;
|
|
43
|
+
};
|
|
44
|
+
parent?: Category;
|
|
45
|
+
children: Array<Category>;
|
|
46
|
+
media?: Media;
|
|
47
|
+
tags?: Array<Tag>;
|
|
48
|
+
cmsPage?: CmsPage;
|
|
49
|
+
seoUrls?: Array<SeoUrlEntity>;
|
|
50
|
+
};
|