@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.
Files changed (197) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/dist/index.cjs +1330 -0
  4. package/dist/index.d.cts +2186 -0
  5. package/dist/index.d.mts +2186 -0
  6. package/dist/index.d.ts +2186 -0
  7. package/dist/index.mjs +1314 -0
  8. package/dist/src/ShopwareClient.d.ts +31 -0
  9. package/dist/src/auth/AuthenticationStore.d.ts +8 -0
  10. package/dist/src/auth/AuthenticationType.d.ts +5 -0
  11. package/dist/src/auth/entries/AuthenticationEntry.d.ts +10 -0
  12. package/dist/src/auth/entries/ContextTokenEntry.d.ts +13 -0
  13. package/dist/src/auth/entries/OAuthEntry.d.ts +15 -0
  14. package/dist/src/auth/entries/index.d.ts +3 -0
  15. package/dist/src/auth/errors/ExpiredError.d.ts +4 -0
  16. package/dist/src/auth/errors/NotSavedError.d.ts +4 -0
  17. package/dist/src/auth/errors/index.d.ts +2 -0
  18. package/dist/src/auth/index.d.ts +4 -0
  19. package/dist/src/clients/AccountClient.d.ts +16 -0
  20. package/dist/src/clients/AddressClient.d.ts +11 -0
  21. package/dist/src/clients/CartClient.d.ts +10 -0
  22. package/dist/src/clients/CategoryClient.d.ts +8 -0
  23. package/dist/src/clients/Client.d.ts +16 -0
  24. package/dist/src/clients/ContentClient.d.ts +9 -0
  25. package/dist/src/clients/ContextClient.d.ts +7 -0
  26. package/dist/src/clients/CustomerAuthenticationClient.d.ts +11 -0
  27. package/dist/src/clients/DocumentClient.d.ts +6 -0
  28. package/dist/src/clients/GatewayClient.d.ts +6 -0
  29. package/dist/src/clients/NewsletterClient.d.ts +8 -0
  30. package/dist/src/clients/OrderClient.d.ts +10 -0
  31. package/dist/src/clients/PaymentClient.d.ts +6 -0
  32. package/dist/src/clients/ProductClient.d.ts +14 -0
  33. package/dist/src/clients/SeoClient.d.ts +8 -0
  34. package/dist/src/clients/SystemClient.d.ts +12 -0
  35. package/dist/src/clients/WishlistClient.d.ts +9 -0
  36. package/dist/src/clients/index.d.ts +17 -0
  37. package/dist/src/index.d.ts +1 -0
  38. package/dist/src/payloads/BinaryPayload.d.ts +10 -0
  39. package/dist/src/payloads/JsonPayload.d.ts +10 -0
  40. package/dist/src/payloads/Payload.d.ts +6 -0
  41. package/dist/src/payloads/index.d.ts +3 -0
  42. package/dist/tests/auth/AuthenticationStore.test.d.ts +1 -0
  43. package/dist/tests/auth/entries/ContextTokenEntry.test.d.ts +1 -0
  44. package/dist/tests/auth/entries/OAuthEntry.test.d.ts +1 -0
  45. package/dist/types/ClientRequestOptions.d.ts +8 -0
  46. package/dist/types/ClientResponse.d.ts +7 -0
  47. package/dist/types/HTTPRequestMethod.d.ts +8 -0
  48. package/dist/types/RequestCacheEntry.d.ts +5 -0
  49. package/dist/types/auth/OAuthResponseBody.d.ts +5 -0
  50. package/dist/types/auth/index.d.ts +1 -0
  51. package/dist/types/clients/AccountClient.d.ts +70 -0
  52. package/dist/types/clients/AddressClient.d.ts +7 -0
  53. package/dist/types/clients/CartClient.d.ts +17 -0
  54. package/dist/types/clients/CategoryClient.d.ts +12 -0
  55. package/dist/types/clients/ContentClient.d.ts +29 -0
  56. package/dist/types/clients/ContextClient.d.ts +18 -0
  57. package/dist/types/clients/CustomerAuthenticationClient.d.ts +44 -0
  58. package/dist/types/clients/DocumentClient.d.ts +3 -0
  59. package/dist/types/clients/GatewayClient.d.ts +18 -0
  60. package/dist/types/clients/NewsletterClient.d.ts +21 -0
  61. package/dist/types/clients/OrderClient.d.ts +26 -0
  62. package/dist/types/clients/PaymentClient.d.ts +8 -0
  63. package/dist/types/clients/ProductClient.d.ts +49 -0
  64. package/dist/types/clients/SeoClient.d.ts +7 -0
  65. package/dist/types/clients/SystemClient.d.ts +33 -0
  66. package/dist/types/clients/WishlistClient.d.ts +21 -0
  67. package/dist/types/clients/index.d.ts +16 -0
  68. package/dist/types/index.d.ts +7 -0
  69. package/dist/types/storeApi/Currency.d.ts +26 -0
  70. package/dist/types/storeApi/DeliveryTime.d.ts +12 -0
  71. package/dist/types/storeApi/EntitySearchResult.d.ts +7 -0
  72. package/dist/types/storeApi/GenericRecord.d.ts +3 -0
  73. package/dist/types/storeApi/PaymentMethod.d.ts +24 -0
  74. package/dist/types/storeApi/Rule.d.ts +10 -0
  75. package/dist/types/storeApi/Salutation.d.ts +11 -0
  76. package/dist/types/storeApi/StateMachineState.d.ts +10 -0
  77. package/dist/types/storeApi/Tag.d.ts +6 -0
  78. package/dist/types/storeApi/Tax.d.ts +10 -0
  79. package/dist/types/storeApi/TotalCountMode.d.ts +1 -0
  80. package/dist/types/storeApi/Unit.d.ts +10 -0
  81. package/dist/types/storeApi/aggregation/AggregationEntity.d.ts +6 -0
  82. package/dist/types/storeApi/aggregation/AggregationFilter.d.ts +6 -0
  83. package/dist/types/storeApi/aggregation/AggregationHistogram.d.ts +8 -0
  84. package/dist/types/storeApi/aggregation/AggregationMetrics.d.ts +5 -0
  85. package/dist/types/storeApi/aggregation/AggregationRange.d.ts +13 -0
  86. package/dist/types/storeApi/aggregation/AggregationTerms.d.ts +8 -0
  87. package/dist/types/storeApi/aggregation/Aggregations.d.ts +2 -0
  88. package/dist/types/storeApi/aggregation/index.d.ts +7 -0
  89. package/dist/types/storeApi/cart/Cart.d.ts +19 -0
  90. package/dist/types/storeApi/cart/CartDelivery.d.ts +13 -0
  91. package/dist/types/storeApi/cart/CartDeliveryDate.d.ts +4 -0
  92. package/dist/types/storeApi/cart/CartDeliveryInformation.d.ts +12 -0
  93. package/dist/types/storeApi/cart/CartDeliveryPosition.d.ts +9 -0
  94. package/dist/types/storeApi/cart/CartDeliveryShippingLocation.d.ts +7 -0
  95. package/dist/types/storeApi/cart/CartDeliveryTime.d.ts +7 -0
  96. package/dist/types/storeApi/cart/CartError.d.ts +8 -0
  97. package/dist/types/storeApi/cart/CartItems.d.ts +2 -0
  98. package/dist/types/storeApi/cart/index.d.ts +9 -0
  99. package/dist/types/storeApi/category/Category.d.ts +50 -0
  100. package/dist/types/storeApi/category/MainCategory.d.ts +10 -0
  101. package/dist/types/storeApi/category/index.d.ts +2 -0
  102. package/dist/types/storeApi/cms/BackgroundMediaMode.d.ts +1 -0
  103. package/dist/types/storeApi/cms/CmsBlock.d.ts +28 -0
  104. package/dist/types/storeApi/cms/CmsPage.d.ts +23 -0
  105. package/dist/types/storeApi/cms/CmsSection.d.ts +25 -0
  106. package/dist/types/storeApi/cms/CmsSlot.d.ts +20 -0
  107. package/dist/types/storeApi/cms/LandingPage.d.ts +23 -0
  108. package/dist/types/storeApi/cms/Visibility.d.ts +5 -0
  109. package/dist/types/storeApi/cms/index.d.ts +7 -0
  110. package/dist/types/storeApi/country/Country.d.ts +40 -0
  111. package/dist/types/storeApi/country/CountryState.d.ts +13 -0
  112. package/dist/types/storeApi/country/index.d.ts +2 -0
  113. package/dist/types/storeApi/customer/Customer.d.ts +61 -0
  114. package/dist/types/storeApi/customer/CustomerAddress.d.ts +7 -0
  115. package/dist/types/storeApi/customer/CustomerAddressBody.d.ts +23 -0
  116. package/dist/types/storeApi/customer/CustomerGroup.d.ts +20 -0
  117. package/dist/types/storeApi/customer/index.d.ts +4 -0
  118. package/dist/types/storeApi/document/ShopwareDocument.d.ts +29 -0
  119. package/dist/types/storeApi/document/ShopwareDocumentBaseConfig.d.ts +17 -0
  120. package/dist/types/storeApi/document/ShopwareDocumentType.d.ts +10 -0
  121. package/dist/types/storeApi/document/index.d.ts +3 -0
  122. package/dist/types/storeApi/filter/EqualsFilter.d.ts +5 -0
  123. package/dist/types/storeApi/filter/Filters.d.ts +2 -0
  124. package/dist/types/storeApi/filter/MultiNotFilter.d.ts +6 -0
  125. package/dist/types/storeApi/filter/RangeFilter.d.ts +10 -0
  126. package/dist/types/storeApi/filter/SimpleFilter.d.ts +5 -0
  127. package/dist/types/storeApi/filter/index.d.ts +5 -0
  128. package/dist/types/storeApi/index.d.ts +32 -0
  129. package/dist/types/storeApi/lineItem/LineItem.d.ts +32 -0
  130. package/dist/types/storeApi/lineItem/LineItemPayload.d.ts +74 -0
  131. package/dist/types/storeApi/lineItem/LineItemType.d.ts +1 -0
  132. package/dist/types/storeApi/lineItem/index.d.ts +3 -0
  133. package/dist/types/storeApi/link/Link.d.ts +4 -0
  134. package/dist/types/storeApi/link/Links.d.ts +2 -0
  135. package/dist/types/storeApi/link/index.d.ts +2 -0
  136. package/dist/types/storeApi/locale/Language.d.ts +16 -0
  137. package/dist/types/storeApi/locale/Locale.d.ts +11 -0
  138. package/dist/types/storeApi/locale/index.d.ts +2 -0
  139. package/dist/types/storeApi/media/Media.d.ts +25 -0
  140. package/dist/types/storeApi/media/MediaThumbnail.d.ts +12 -0
  141. package/dist/types/storeApi/media/ProductMedia.d.ts +15 -0
  142. package/dist/types/storeApi/media/index.d.ts +3 -0
  143. package/dist/types/storeApi/order/Order.d.ts +58 -0
  144. package/dist/types/storeApi/order/OrderAddress.d.ts +8 -0
  145. package/dist/types/storeApi/order/OrderCustomer.d.ts +18 -0
  146. package/dist/types/storeApi/order/OrderDelivery.d.ts +24 -0
  147. package/dist/types/storeApi/order/OrderDeliveryPosition.d.ts +17 -0
  148. package/dist/types/storeApi/order/OrderLineItem.d.ts +43 -0
  149. package/dist/types/storeApi/order/OrderLineItemDownload.d.ts +17 -0
  150. package/dist/types/storeApi/order/OrderReturn.d.ts +14 -0
  151. package/dist/types/storeApi/order/OrderReturnLineItem.d.ts +14 -0
  152. package/dist/types/storeApi/order/OrderReturnLineItemReason.d.ts +6 -0
  153. package/dist/types/storeApi/order/OrderTransaction.d.ts +22 -0
  154. package/dist/types/storeApi/order/OrderTransactionCapture.d.ts +20 -0
  155. package/dist/types/storeApi/order/OrderTransactionCaptureRefund.d.ts +21 -0
  156. package/dist/types/storeApi/order/OrderTransactionCaptureRefundPosition.d.ts +21 -0
  157. package/dist/types/storeApi/order/index.d.ts +14 -0
  158. package/dist/types/storeApi/price/CalculatedPrice.d.ts +25 -0
  159. package/dist/types/storeApi/price/CartListPrice.d.ts +6 -0
  160. package/dist/types/storeApi/price/CartPriceQuantity.d.ts +16 -0
  161. package/dist/types/storeApi/price/CartPriceReference.d.ts +12 -0
  162. package/dist/types/storeApi/price/CartRegulationPrice.d.ts +4 -0
  163. package/dist/types/storeApi/price/Price.d.ts +18 -0
  164. package/dist/types/storeApi/price/index.d.ts +6 -0
  165. package/dist/types/storeApi/product/Product.d.ts +107 -0
  166. package/dist/types/storeApi/product/ProductConfiguratorSetting.d.ts +17 -0
  167. package/dist/types/storeApi/product/ProductDownload.d.ts +16 -0
  168. package/dist/types/storeApi/product/ProductListingResult.d.ts +29 -0
  169. package/dist/types/storeApi/product/ProductManufacturer.d.ts +15 -0
  170. package/dist/types/storeApi/product/ProductReview.d.ts +16 -0
  171. package/dist/types/storeApi/product/ProductReviewSummary.d.ts +8 -0
  172. package/dist/types/storeApi/product/ProductStream.d.ts +10 -0
  173. package/dist/types/storeApi/product/crossSelling/CrossSellingElement.d.ts +9 -0
  174. package/dist/types/storeApi/product/crossSelling/ProductCrossSelling.d.ts +13 -0
  175. package/dist/types/storeApi/product/crossSelling/index.d.ts +2 -0
  176. package/dist/types/storeApi/product/index.d.ts +9 -0
  177. package/dist/types/storeApi/propertyGroup/PropertyGroup.d.ts +17 -0
  178. package/dist/types/storeApi/propertyGroup/PropertyGroupOption.d.ts +18 -0
  179. package/dist/types/storeApi/propertyGroup/index.d.ts +2 -0
  180. package/dist/types/storeApi/query/Criteria.d.ts +20 -0
  181. package/dist/types/storeApi/query/Include.d.ts +1 -0
  182. package/dist/types/storeApi/query/Query.d.ts +5 -0
  183. package/dist/types/storeApi/query/Sort.d.ts +6 -0
  184. package/dist/types/storeApi/query/index.d.ts +5 -0
  185. package/dist/types/storeApi/query/product/ProductListingCriteria.d.ts +25 -0
  186. package/dist/types/storeApi/query/product/ProductListingFlags.d.ts +4 -0
  187. package/dist/types/storeApi/query/product/index.d.ts +2 -0
  188. package/dist/types/storeApi/salesChannel/SalesChannel.d.ts +23 -0
  189. package/dist/types/storeApi/salesChannel/SalesChannelContext.d.ts +38 -0
  190. package/dist/types/storeApi/salesChannel/index.d.ts +2 -0
  191. package/dist/types/storeApi/seo/SeoUrlEntity.d.ts +18 -0
  192. package/dist/types/storeApi/seo/Sitemap.d.ts +4 -0
  193. package/dist/types/storeApi/seo/index.d.ts +2 -0
  194. package/dist/types/storeApi/shippingMethod/ShippingMethod.d.ts +29 -0
  195. package/dist/types/storeApi/shippingMethod/ShippingMethodPrice.d.ts +15 -0
  196. package/dist/types/storeApi/shippingMethod/index.d.ts +2 -0
  197. 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,3 @@
1
+ import { Criteria, ShopwareDocument } from "../storeApi";
2
+ export type DocumentDownloadRequest = Criteria;
3
+ export type DocumentDownloadResponse = ShopwareDocument;
@@ -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,8 @@
1
+ export type OrderPaymentInitiateRequest = {
2
+ orderId: string;
3
+ finishUrl?: string;
4
+ errorUrl?: string;
5
+ };
6
+ export type OrderPaymentInitiateResponse = {
7
+ redirectUrl: string;
8
+ };
@@ -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,7 @@
1
+ export type EntitySearchResult = {
2
+ entity?: string;
3
+ total?: number;
4
+ aggregations?: Array<object>;
5
+ page?: number;
6
+ limit?: number;
7
+ };
@@ -0,0 +1,3 @@
1
+ export type GenericRecord = never | null | string | Array<String> | number | {
2
+ [key: string]: GenericRecord;
3
+ };
@@ -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,10 @@
1
+ import { GenericRecord } from "./GenericRecord";
2
+ export type Rule = {
3
+ id?: string;
4
+ name: string;
5
+ description?: string;
6
+ customFields?: GenericRecord;
7
+ readonly createdAt?: string;
8
+ readonly updatedAt?: string;
9
+ extensions?: any;
10
+ };
@@ -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,6 @@
1
+ export type Tag = {
2
+ id: string;
3
+ name: string;
4
+ readonly createdAt?: string;
5
+ readonly updatedAt?: string;
6
+ };
@@ -0,0 +1,10 @@
1
+ import { GenericRecord } from "./GenericRecord";
2
+ export type Tax = {
3
+ id: string;
4
+ taxRate: number;
5
+ name: string;
6
+ position?: number;
7
+ customFields?: GenericRecord;
8
+ readonly createdAt?: string;
9
+ readonly updatedAt?: string;
10
+ };
@@ -0,0 +1 @@
1
+ export type TotalCountMode = "none" | "exact" | "next-pages";
@@ -0,0 +1,10 @@
1
+ import { GenericRecord } from "./GenericRecord";
2
+ export type Unit = {
3
+ id: string;
4
+ shortCode: string;
5
+ name: string;
6
+ customFields?: GenericRecord;
7
+ readonly createdAt?: string;
8
+ readonly updatedAt?: string;
9
+ translated?: object;
10
+ };
@@ -0,0 +1,6 @@
1
+ export type AggregationEntity = {
2
+ name: string;
3
+ type: "entity";
4
+ field: string;
5
+ definition: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { Filters } from "../filter";
2
+ export type AggregationFilter = {
3
+ name: string;
4
+ type: "filter";
5
+ filter: Array<Filters>;
6
+ };
@@ -0,0 +1,8 @@
1
+ export type AggregationHistogram = {
2
+ name: string;
3
+ type: "histogram";
4
+ field: string;
5
+ interval?: number;
6
+ format?: string;
7
+ timeZone?: string;
8
+ };
@@ -0,0 +1,5 @@
1
+ export type AggregationMetrics = {
2
+ name: string;
3
+ type: "avg" | "count" | "max" | "min" | "stats" | "sum";
4
+ field: string;
5
+ };
@@ -0,0 +1,13 @@
1
+ export type AggregationRange = {
2
+ name: string;
3
+ type: "range";
4
+ field: string;
5
+ ranges: Array<{
6
+ from: number;
7
+ to: number;
8
+ } | {
9
+ from: number;
10
+ } | {
11
+ to: number;
12
+ }>;
13
+ };
@@ -0,0 +1,8 @@
1
+ import { Sort } from "../query";
2
+ export type AggregationTerms = {
3
+ name: string;
4
+ type: "terms";
5
+ field: string;
6
+ limit?: number;
7
+ sort?: Array<Sort>;
8
+ };
@@ -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,4 @@
1
+ export type CartDeliveryDate = {
2
+ earliest?: string;
3
+ latest?: string;
4
+ };
@@ -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,7 @@
1
+ import { Country } from "../country";
2
+ import { CustomerAddress } from "../customer";
3
+ export type CartDeliveryShippingLocation = {
4
+ apiAlias?: "cart_delivery_shipping_location";
5
+ country?: Country;
6
+ address?: CustomerAddress;
7
+ };
@@ -0,0 +1,7 @@
1
+ export type CartDeliveryTime = {
2
+ apiAlias?: "cart_delivery_time";
3
+ name?: string;
4
+ min?: number;
5
+ max?: number;
6
+ unit?: string;
7
+ };
@@ -0,0 +1,8 @@
1
+ export type CartError = {
2
+ items?: {
3
+ key?: string;
4
+ level?: 0 | 10 | 20;
5
+ message?: string;
6
+ messageKey?: string;
7
+ };
8
+ };
@@ -0,0 +1,2 @@
1
+ import { LineItem } from "../lineItem";
2
+ export type CartItems = Array<LineItem>;
@@ -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
+ };
@@ -0,0 +1,10 @@
1
+ export type MainCategory = {
2
+ id: string;
3
+ productId: string;
4
+ productVersionId?: string;
5
+ categoryId: string;
6
+ categoryVersionId?: string;
7
+ salesChannelId: string;
8
+ readonly createdAt?: string;
9
+ readonly updatedAt?: string;
10
+ };