@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
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2186 @@
|
|
|
1
|
+
type AggregationEntity = {
|
|
2
|
+
name: string;
|
|
3
|
+
type: "entity";
|
|
4
|
+
field: string;
|
|
5
|
+
definition: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
type EqualsFilter = {
|
|
9
|
+
type: "equals";
|
|
10
|
+
field: string;
|
|
11
|
+
value: "string" | "number" | "boolean" | "null";
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type RangeFilter = {
|
|
15
|
+
type: "range";
|
|
16
|
+
field: string;
|
|
17
|
+
parameters: Array<{
|
|
18
|
+
gte?: number;
|
|
19
|
+
gt?: number;
|
|
20
|
+
lte?: number;
|
|
21
|
+
lt?: number;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type SimpleFilter = {
|
|
26
|
+
type: "contains" | "equalsAny" | "prefix" | "suffix";
|
|
27
|
+
field: string;
|
|
28
|
+
value: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
type Filters = Array<SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter>;
|
|
32
|
+
|
|
33
|
+
type MultiNotFilter = {
|
|
34
|
+
type: "multi" | "not";
|
|
35
|
+
operator: "AND" | "and" | "OR" | "or";
|
|
36
|
+
queries: Filters;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
type AggregationFilter = {
|
|
40
|
+
name: string;
|
|
41
|
+
type: "filter";
|
|
42
|
+
filter: Array<Filters>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
type AggregationHistogram = {
|
|
46
|
+
name: string;
|
|
47
|
+
type: "histogram";
|
|
48
|
+
field: string;
|
|
49
|
+
interval?: number;
|
|
50
|
+
format?: string;
|
|
51
|
+
timeZone?: string;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
type AggregationMetrics = {
|
|
55
|
+
name: string;
|
|
56
|
+
type: "avg" | "count" | "max" | "min" | "stats" | "sum";
|
|
57
|
+
field: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
type AggregationRange = {
|
|
61
|
+
name: string;
|
|
62
|
+
type: "range";
|
|
63
|
+
field: string;
|
|
64
|
+
ranges: Array<{
|
|
65
|
+
from: number;
|
|
66
|
+
to: number;
|
|
67
|
+
} | {
|
|
68
|
+
from: number;
|
|
69
|
+
} | {
|
|
70
|
+
to: number;
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
type TotalCountMode = "none" | "exact" | "next-pages";
|
|
75
|
+
|
|
76
|
+
type Criteria = {
|
|
77
|
+
page?: number;
|
|
78
|
+
term?: string;
|
|
79
|
+
limit?: number;
|
|
80
|
+
filter?: Filters;
|
|
81
|
+
ids?: Array<string>;
|
|
82
|
+
query?: Array<Query>;
|
|
83
|
+
associations?: Array<Criteria>;
|
|
84
|
+
"post-filter"?: Filters;
|
|
85
|
+
sort?: Array<Sort>;
|
|
86
|
+
aggregations?: Aggregations;
|
|
87
|
+
fields?: Array<string>;
|
|
88
|
+
grouping?: Array<string>;
|
|
89
|
+
"total-count-mode"?: TotalCountMode;
|
|
90
|
+
includes?: Include;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
type Sort = {
|
|
94
|
+
field: string;
|
|
95
|
+
order: "ASC" | "DESC";
|
|
96
|
+
naturalSorting?: boolean;
|
|
97
|
+
type?: string;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
type ProductListingCriteria = Criteria & {
|
|
101
|
+
order?: string;
|
|
102
|
+
limit?: number;
|
|
103
|
+
p?: number;
|
|
104
|
+
manufacturer?: string;
|
|
105
|
+
"min-price"?: number;
|
|
106
|
+
"max-price"?: number;
|
|
107
|
+
rating?: number;
|
|
108
|
+
"shipping-free"?: boolean;
|
|
109
|
+
properties?: string;
|
|
110
|
+
"manufacturer-filter"?: boolean;
|
|
111
|
+
"price-filter"?: boolean;
|
|
112
|
+
"rating-filter"?: boolean;
|
|
113
|
+
"shipping-free-filter"?: boolean;
|
|
114
|
+
"property-filter"?: boolean;
|
|
115
|
+
"property-whitelist"?: string;
|
|
116
|
+
"reduce-aggregations"?: string | null;
|
|
117
|
+
} & {
|
|
118
|
+
filter?: Filters | SimpleFilter;
|
|
119
|
+
sort?: Array<Sort> | Sort;
|
|
120
|
+
"post-filter"?: Filters | SimpleFilter;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
type ProductListingFlags = {
|
|
124
|
+
"no-aggregations"?: string | null;
|
|
125
|
+
"only-aggregations"?: string | null;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
type Include = Record<string, Array<string>>;
|
|
129
|
+
|
|
130
|
+
type Query = {
|
|
131
|
+
score: number;
|
|
132
|
+
query: SimpleFilter | EqualsFilter | MultiNotFilter | RangeFilter;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
type AggregationTerms = {
|
|
136
|
+
name: string;
|
|
137
|
+
type: "terms";
|
|
138
|
+
field: string;
|
|
139
|
+
limit?: number;
|
|
140
|
+
sort?: Array<Sort>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
type Aggregations = Array<AggregationEntity | AggregationFilter | AggregationHistogram | AggregationMetrics | AggregationRange | AggregationTerms>;
|
|
144
|
+
|
|
145
|
+
type Price = {
|
|
146
|
+
currencyId: string;
|
|
147
|
+
gross: number;
|
|
148
|
+
net: number;
|
|
149
|
+
linked?: boolean;
|
|
150
|
+
listPrice?: {
|
|
151
|
+
currencyId?: string;
|
|
152
|
+
gross: number;
|
|
153
|
+
net: number;
|
|
154
|
+
linked?: boolean;
|
|
155
|
+
};
|
|
156
|
+
regulationPrice: {
|
|
157
|
+
currencyId?: string;
|
|
158
|
+
gross: number;
|
|
159
|
+
net: number;
|
|
160
|
+
linked?: boolean;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
type CartPriceQuantity = {
|
|
165
|
+
apiAlias: "cart_price_quantity";
|
|
166
|
+
isCalculated?: boolean;
|
|
167
|
+
listPrice?: CartListPrice;
|
|
168
|
+
price?: number;
|
|
169
|
+
quantity?: number;
|
|
170
|
+
regulationPrice?: {
|
|
171
|
+
price?: number;
|
|
172
|
+
};
|
|
173
|
+
taxRules?: Array<{
|
|
174
|
+
taxRate?: number;
|
|
175
|
+
name?: string;
|
|
176
|
+
}>;
|
|
177
|
+
type?: string;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
type CartPriceReference = {
|
|
181
|
+
apiAlias: "cart_price_reference";
|
|
182
|
+
purchaseUnit?: number;
|
|
183
|
+
referenceUnit?: number;
|
|
184
|
+
unitName: string;
|
|
185
|
+
price?: number;
|
|
186
|
+
listPrice: CartListPrice | null;
|
|
187
|
+
regulationPrice: CartRegulationPrice | null;
|
|
188
|
+
hasRange: boolean;
|
|
189
|
+
variantId?: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
type CalculatedPrice = {
|
|
193
|
+
unitPrice: number;
|
|
194
|
+
quantity: number;
|
|
195
|
+
rawTotal?: number;
|
|
196
|
+
totalPrice: number;
|
|
197
|
+
calculatedTaxes: Array<{
|
|
198
|
+
apiAlias: "cart_tax_calculated";
|
|
199
|
+
tax: number;
|
|
200
|
+
taxRate: number;
|
|
201
|
+
price: number;
|
|
202
|
+
}>;
|
|
203
|
+
referencePrice: CartPriceReference | null;
|
|
204
|
+
listPrice: CartListPrice | null;
|
|
205
|
+
positionPrice: number;
|
|
206
|
+
netPrice: number;
|
|
207
|
+
regulationPrice: CartRegulationPrice | null;
|
|
208
|
+
hasRange: boolean;
|
|
209
|
+
variantId?: string | null;
|
|
210
|
+
apiAlias: "calculated_price";
|
|
211
|
+
taxRules: Array<{
|
|
212
|
+
taxRate?: number;
|
|
213
|
+
name?: string;
|
|
214
|
+
}>;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
type CartListPrice = {
|
|
218
|
+
apiAlias: "cart_list_price";
|
|
219
|
+
discount?: number;
|
|
220
|
+
percentage?: number;
|
|
221
|
+
price?: number;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
type CartRegulationPrice = {
|
|
225
|
+
apiAlias?: "cart_regulation_price";
|
|
226
|
+
price?: number;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
type Cart = {
|
|
230
|
+
name?: string;
|
|
231
|
+
token?: string;
|
|
232
|
+
price?: CalculatedPrice;
|
|
233
|
+
lineItems?: CartItems;
|
|
234
|
+
errors?: Array<CartError>;
|
|
235
|
+
deliveries?: Array<CartDelivery>;
|
|
236
|
+
transactions?: Array<{
|
|
237
|
+
paymentMethodId?: string;
|
|
238
|
+
amount?: CalculatedPrice;
|
|
239
|
+
}>;
|
|
240
|
+
modified?: boolean;
|
|
241
|
+
customerComment?: string | null;
|
|
242
|
+
affiliateCode?: string | null;
|
|
243
|
+
campaignCode?: string | null;
|
|
244
|
+
id?: any;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
type GenericRecord = never | null | string | Array<String> | number | {
|
|
248
|
+
[key: string]: GenericRecord;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
type Country = {
|
|
252
|
+
id: string;
|
|
253
|
+
name: string;
|
|
254
|
+
iso?: string;
|
|
255
|
+
position?: number;
|
|
256
|
+
active?: boolean;
|
|
257
|
+
shippingAvailable?: boolean;
|
|
258
|
+
iso3?: string;
|
|
259
|
+
displayStateInRegistration?: boolean;
|
|
260
|
+
forceStateInRegistration?: boolean;
|
|
261
|
+
checkVatIdPattern?: boolean;
|
|
262
|
+
vatIdRequired?: boolean;
|
|
263
|
+
vatIdPattern?: string;
|
|
264
|
+
customFields?: GenericRecord;
|
|
265
|
+
customerTax?: {
|
|
266
|
+
enabled: boolean;
|
|
267
|
+
currencyId: string;
|
|
268
|
+
amount: number;
|
|
269
|
+
};
|
|
270
|
+
companyTax?: {
|
|
271
|
+
enabled: boolean;
|
|
272
|
+
currencyId: string;
|
|
273
|
+
amount: number;
|
|
274
|
+
};
|
|
275
|
+
postalCodeRequired?: boolean;
|
|
276
|
+
checkPostalCodePattern?: boolean;
|
|
277
|
+
checkAdvancedPostalCodePattern?: boolean;
|
|
278
|
+
advancedPostalCodePattern?: string;
|
|
279
|
+
addressFormat: string;
|
|
280
|
+
defaultPostalCodePattern?: string;
|
|
281
|
+
isEu?: boolean;
|
|
282
|
+
readonly createdAt?: string;
|
|
283
|
+
readonly updatedAt?: string;
|
|
284
|
+
translated?: object;
|
|
285
|
+
states?: Array<CountryState>;
|
|
286
|
+
taxFree?: boolean;
|
|
287
|
+
companyTaxFree?: boolean;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
type CountryState = {
|
|
291
|
+
id: string;
|
|
292
|
+
countryId: string;
|
|
293
|
+
shortCode: string;
|
|
294
|
+
name: string;
|
|
295
|
+
position?: number;
|
|
296
|
+
active?: boolean;
|
|
297
|
+
customFields?: GenericRecord;
|
|
298
|
+
readonly createdAt?: string;
|
|
299
|
+
readonly updatedAt?: string;
|
|
300
|
+
translated?: object;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
type DeliveryTime = {
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
min: number;
|
|
307
|
+
max: number;
|
|
308
|
+
unit: string;
|
|
309
|
+
customFields?: GenericRecord;
|
|
310
|
+
readonly createdAt?: string;
|
|
311
|
+
readonly updatedAt?: string;
|
|
312
|
+
translated?: object;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
type Rule = {
|
|
316
|
+
id?: string;
|
|
317
|
+
name: string;
|
|
318
|
+
description?: string;
|
|
319
|
+
customFields?: GenericRecord;
|
|
320
|
+
readonly createdAt?: string;
|
|
321
|
+
readonly updatedAt?: string;
|
|
322
|
+
extensions?: any;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
type Media = {
|
|
326
|
+
apiAlias: "media";
|
|
327
|
+
id: string;
|
|
328
|
+
readonly mimeType?: string;
|
|
329
|
+
readonly fileExtension: string;
|
|
330
|
+
readonly uploadedAt?: string;
|
|
331
|
+
readonly fileName: string;
|
|
332
|
+
readonly fileSize?: number;
|
|
333
|
+
readonly metaData?: object;
|
|
334
|
+
config?: object;
|
|
335
|
+
alt?: string;
|
|
336
|
+
title?: string;
|
|
337
|
+
url: string;
|
|
338
|
+
path: string;
|
|
339
|
+
hasFile: boolean;
|
|
340
|
+
private: boolean;
|
|
341
|
+
customFields?: GenericRecord;
|
|
342
|
+
readonly createdAt?: string;
|
|
343
|
+
readonly updatedAt?: string;
|
|
344
|
+
translated: object;
|
|
345
|
+
thumbnails?: Array<MediaThumbnail>;
|
|
346
|
+
extensions?: any;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
type MediaThumbnail = {
|
|
350
|
+
id: string;
|
|
351
|
+
mediaId: string;
|
|
352
|
+
readonly width: number;
|
|
353
|
+
readonly height: number;
|
|
354
|
+
url: string;
|
|
355
|
+
path?: string;
|
|
356
|
+
customFields?: GenericRecord;
|
|
357
|
+
readonly createdAt?: string;
|
|
358
|
+
readonly updatedAt?: string;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
type ProductMedia = {
|
|
362
|
+
id: string;
|
|
363
|
+
versionId?: string;
|
|
364
|
+
productId: string;
|
|
365
|
+
productVersionId?: string;
|
|
366
|
+
mediaId: string;
|
|
367
|
+
position?: number;
|
|
368
|
+
customFields?: GenericRecord;
|
|
369
|
+
readonly createdAt?: string;
|
|
370
|
+
readonly updatedAt?: string;
|
|
371
|
+
media?: Media;
|
|
372
|
+
thumbnails?: MediaThumbnail;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
type Tag = {
|
|
376
|
+
id: string;
|
|
377
|
+
name: string;
|
|
378
|
+
readonly createdAt?: string;
|
|
379
|
+
readonly updatedAt?: string;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
type Tax = {
|
|
383
|
+
id: string;
|
|
384
|
+
taxRate: number;
|
|
385
|
+
name: string;
|
|
386
|
+
position?: number;
|
|
387
|
+
customFields?: GenericRecord;
|
|
388
|
+
readonly createdAt?: string;
|
|
389
|
+
readonly updatedAt?: string;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
type ShippingMethod = {
|
|
393
|
+
id: string;
|
|
394
|
+
name: string;
|
|
395
|
+
active?: boolean;
|
|
396
|
+
position?: number;
|
|
397
|
+
customFields?: GenericRecord;
|
|
398
|
+
mediaId?: string;
|
|
399
|
+
deliveryTimeId: string;
|
|
400
|
+
taxType?: "Free" | "Net" | "Gross";
|
|
401
|
+
description?: string;
|
|
402
|
+
trackingUrl?: string;
|
|
403
|
+
technicalName?: string;
|
|
404
|
+
readonly createdAt?: string;
|
|
405
|
+
readonly updatedAt?: string;
|
|
406
|
+
translated?: object;
|
|
407
|
+
deliveryTime?: DeliveryTime;
|
|
408
|
+
availabilityRule?: Rule;
|
|
409
|
+
prices?: Array<ShippingMethodPrice>;
|
|
410
|
+
media?: Media;
|
|
411
|
+
tags?: Array<Tag>;
|
|
412
|
+
tax?: Tax;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
type ShippingMethodPrice = {
|
|
416
|
+
id: string;
|
|
417
|
+
shippingMethodId: string;
|
|
418
|
+
ruleId?: string;
|
|
419
|
+
calculation?: number;
|
|
420
|
+
calculationRuleId?: string;
|
|
421
|
+
quantityStart?: number;
|
|
422
|
+
quantityEnd?: number;
|
|
423
|
+
currencyPrice: Array<Price>;
|
|
424
|
+
customFields?: GenericRecord;
|
|
425
|
+
readonly createdAt?: string;
|
|
426
|
+
readonly updatedAt?: string;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
type CartDelivery = {
|
|
430
|
+
deliveryDate?: CartDeliveryDate;
|
|
431
|
+
location?: CartDeliveryShippingLocation & {
|
|
432
|
+
state?: CountryState;
|
|
433
|
+
};
|
|
434
|
+
positions?: Array<CartDeliveryPosition>;
|
|
435
|
+
shippingCosts?: CalculatedPrice;
|
|
436
|
+
shippingMethod?: ShippingMethod;
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
type CartDeliveryDate = {
|
|
440
|
+
earliest?: string;
|
|
441
|
+
latest?: string;
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
type CartDeliveryInformation = {
|
|
445
|
+
apiAlias: "cart_delivery_information";
|
|
446
|
+
freeDelivery?: boolean;
|
|
447
|
+
deliveryTime?: CartDeliveryTime;
|
|
448
|
+
height?: number;
|
|
449
|
+
length?: number;
|
|
450
|
+
restockTime?: number;
|
|
451
|
+
stock?: number;
|
|
452
|
+
weight?: number;
|
|
453
|
+
width?: number;
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
type LineItem = {
|
|
457
|
+
children?: Array<LineItem>;
|
|
458
|
+
cover?: ProductMedia;
|
|
459
|
+
dataContextHash?: string;
|
|
460
|
+
dataTimestamp?: string;
|
|
461
|
+
deliveryInformation?: CartDeliveryInformation;
|
|
462
|
+
description?: string;
|
|
463
|
+
good?: boolean;
|
|
464
|
+
id: string;
|
|
465
|
+
label?: string;
|
|
466
|
+
modified?: string;
|
|
467
|
+
modifiedByApp?: boolean;
|
|
468
|
+
payload?: LineItemPayload;
|
|
469
|
+
price?: CalculatedPrice;
|
|
470
|
+
priceDefinition?: CartPriceQuantity;
|
|
471
|
+
quantity?: number;
|
|
472
|
+
quantityInformation?: {
|
|
473
|
+
maxPurchase?: number;
|
|
474
|
+
minPurchase?: number;
|
|
475
|
+
purchaseSteps?: number;
|
|
476
|
+
};
|
|
477
|
+
referencedId?: string;
|
|
478
|
+
removable?: boolean;
|
|
479
|
+
stackable?: boolean;
|
|
480
|
+
states?: Array<"is-physical" | "is-download">;
|
|
481
|
+
type: LineItemType;
|
|
482
|
+
uniqueIdentifier?: string;
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
type Link = string | {
|
|
486
|
+
href: string;
|
|
487
|
+
meta?: object;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
type Links = Record<string, Link>;
|
|
491
|
+
|
|
492
|
+
type LineItemPayload = {
|
|
493
|
+
type: string;
|
|
494
|
+
id: string;
|
|
495
|
+
attributes?: object;
|
|
496
|
+
relationships?: object;
|
|
497
|
+
links?: Links;
|
|
498
|
+
meta?: object;
|
|
499
|
+
versionId?: string;
|
|
500
|
+
parentId?: string;
|
|
501
|
+
parentVersionId?: string;
|
|
502
|
+
manufacturerId?: string;
|
|
503
|
+
productManufacturerVersionId?: string;
|
|
504
|
+
unitId?: string;
|
|
505
|
+
taxId?: string;
|
|
506
|
+
coverId?: string;
|
|
507
|
+
productMediaVersionId?: string;
|
|
508
|
+
deliveryTimeId?: string;
|
|
509
|
+
canonicalProductId?: string;
|
|
510
|
+
canonicalProductVersionId?: string;
|
|
511
|
+
cmsPageId?: string;
|
|
512
|
+
cmsPageVersionId?: string;
|
|
513
|
+
productNumber: string;
|
|
514
|
+
restockTime?: number;
|
|
515
|
+
active?: boolean;
|
|
516
|
+
available?: boolean;
|
|
517
|
+
isCloseout?: boolean;
|
|
518
|
+
availableStock?: number;
|
|
519
|
+
stock: number;
|
|
520
|
+
displayGroup?: string;
|
|
521
|
+
manufacturerNumber?: string;
|
|
522
|
+
ean?: string;
|
|
523
|
+
purchaseSteps?: number;
|
|
524
|
+
maxPurchase?: number;
|
|
525
|
+
minPurchase?: number;
|
|
526
|
+
purchaseUnit?: number;
|
|
527
|
+
referenceUnit?: number;
|
|
528
|
+
shippingFree?: boolean;
|
|
529
|
+
markAsTopseller?: boolean;
|
|
530
|
+
weight?: number;
|
|
531
|
+
width?: number;
|
|
532
|
+
height?: number;
|
|
533
|
+
length?: number;
|
|
534
|
+
releaseDate?: string;
|
|
535
|
+
ratingAverage?: number;
|
|
536
|
+
categoryTree?: Array<string>;
|
|
537
|
+
propertyIds?: Array<string>;
|
|
538
|
+
optionIds?: Array<string>;
|
|
539
|
+
streamIds?: Array<string>;
|
|
540
|
+
tagIds?: Array<string>;
|
|
541
|
+
categoryIds?: Array<string>;
|
|
542
|
+
childCount?: number;
|
|
543
|
+
sales?: number;
|
|
544
|
+
states?: Array<string>;
|
|
545
|
+
metaDescription?: string;
|
|
546
|
+
name: string;
|
|
547
|
+
keywords?: string;
|
|
548
|
+
description?: string;
|
|
549
|
+
metaTitle?: string;
|
|
550
|
+
packUnit?: string;
|
|
551
|
+
packUnitPlural?: string;
|
|
552
|
+
customFields?: GenericRecord;
|
|
553
|
+
calculatedPrice?: CalculatedPrice;
|
|
554
|
+
calculatedPrices?: Array<CalculatedPrice>;
|
|
555
|
+
calculatedMaxPurchase?: number;
|
|
556
|
+
calculatedCheapestPrice?: CalculatedPrice;
|
|
557
|
+
isNew?: boolean;
|
|
558
|
+
sortedProperties?: object;
|
|
559
|
+
createdAt?: string;
|
|
560
|
+
updatedAt?: string;
|
|
561
|
+
translated?: object;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
type LineItemType = "product" | "credit" | "custom" | "promotion" | "discount" | "container" | "quantity";
|
|
565
|
+
|
|
566
|
+
type CartDeliveryPosition = {
|
|
567
|
+
deliveryDate?: CartDeliveryDate;
|
|
568
|
+
identifier?: string;
|
|
569
|
+
lineItem?: LineItem;
|
|
570
|
+
price?: CalculatedPrice;
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
type Language = {
|
|
574
|
+
id: string;
|
|
575
|
+
parentId?: string;
|
|
576
|
+
localeId: string;
|
|
577
|
+
translationCodeId?: string;
|
|
578
|
+
name: string;
|
|
579
|
+
customFields?: GenericRecord;
|
|
580
|
+
readonly createdAt?: string;
|
|
581
|
+
readonly updatedAt?: string;
|
|
582
|
+
parent?: Language;
|
|
583
|
+
locale?: Locale;
|
|
584
|
+
translationCode?: Locale;
|
|
585
|
+
children?: Array<Language>;
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
type Locale = {
|
|
589
|
+
id: string;
|
|
590
|
+
code: string;
|
|
591
|
+
name: string;
|
|
592
|
+
territory: string;
|
|
593
|
+
customFields?: GenericRecord;
|
|
594
|
+
readonly createdAt?: string;
|
|
595
|
+
readonly updatedAt?: string;
|
|
596
|
+
translated?: object;
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
type PaymentMethod = {
|
|
600
|
+
id: string;
|
|
601
|
+
name: string;
|
|
602
|
+
readonly distinguishableName?: string;
|
|
603
|
+
description?: string;
|
|
604
|
+
position?: number;
|
|
605
|
+
active?: boolean;
|
|
606
|
+
afterOrderEnabled?: boolean;
|
|
607
|
+
customFields?: GenericRecord;
|
|
608
|
+
mediaId?: string;
|
|
609
|
+
readonly synchronous?: boolean;
|
|
610
|
+
readonly asynchronous?: boolean;
|
|
611
|
+
readonly prepared?: boolean;
|
|
612
|
+
readonly refundable?: boolean;
|
|
613
|
+
readonly recurring?: boolean;
|
|
614
|
+
shortName?: string;
|
|
615
|
+
technicalName?: string;
|
|
616
|
+
readonly createdAt?: string;
|
|
617
|
+
readonly updatedAt?: string;
|
|
618
|
+
translated?: object;
|
|
619
|
+
media?: Media;
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
type Salutation = {
|
|
623
|
+
id: string;
|
|
624
|
+
salutationKey: string;
|
|
625
|
+
displayName: string;
|
|
626
|
+
letterName: string;
|
|
627
|
+
customFields?: GenericRecord;
|
|
628
|
+
readonly createdAt?: string;
|
|
629
|
+
readonly updatedAt?: string;
|
|
630
|
+
translated?: object;
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
type Customer = {
|
|
634
|
+
apiAlias: "customer";
|
|
635
|
+
id: string;
|
|
636
|
+
groupId: string;
|
|
637
|
+
salesChannelId: string;
|
|
638
|
+
languageId: string;
|
|
639
|
+
lastPaymentMethodId?: string;
|
|
640
|
+
defaultBillingAddressId: string;
|
|
641
|
+
defaultShippingAddressId: string;
|
|
642
|
+
customerNumber: string;
|
|
643
|
+
salutationId?: string;
|
|
644
|
+
firstName: string;
|
|
645
|
+
lastName: string;
|
|
646
|
+
company?: string;
|
|
647
|
+
email: string;
|
|
648
|
+
title?: string;
|
|
649
|
+
vatIds?: Array<string>;
|
|
650
|
+
affiliateCode?: string;
|
|
651
|
+
campaignCode?: string;
|
|
652
|
+
active?: boolean;
|
|
653
|
+
doubleOptInRegistration?: boolean;
|
|
654
|
+
doubleOptInEmailSentDate?: string;
|
|
655
|
+
doubleOptInConfirmDate?: string;
|
|
656
|
+
hash?: string;
|
|
657
|
+
guest?: boolean;
|
|
658
|
+
firstLogin?: string;
|
|
659
|
+
lastLogin?: string;
|
|
660
|
+
birthday?: string;
|
|
661
|
+
readonly lastOrderDate?: string;
|
|
662
|
+
readonly orderCount?: number;
|
|
663
|
+
readonly orderTotalAmount?: number;
|
|
664
|
+
readonly reviewCount?: number;
|
|
665
|
+
customFields?: GenericRecord;
|
|
666
|
+
readonly tagIds?: Array<string>;
|
|
667
|
+
accountType?: string;
|
|
668
|
+
createdById?: string;
|
|
669
|
+
updatedById?: string;
|
|
670
|
+
defaultPaymentMethodId: string;
|
|
671
|
+
readonly createdAt?: string;
|
|
672
|
+
readonly updatedAt?: string;
|
|
673
|
+
group?: CustomerGroup;
|
|
674
|
+
language?: Language;
|
|
675
|
+
lastPaymentMethod?: PaymentMethod;
|
|
676
|
+
defaultBillingAddress?: CustomerAddress;
|
|
677
|
+
activeBillingAddress: CustomerAddress;
|
|
678
|
+
defaultShippingAddress?: CustomerAddress;
|
|
679
|
+
activeShippingAddress: CustomerAddress;
|
|
680
|
+
salutation?: Salutation;
|
|
681
|
+
addresses?: Array<CustomerAddress>;
|
|
682
|
+
tags?: Array<Tag>;
|
|
683
|
+
defaultPaymentMethod?: PaymentMethod;
|
|
684
|
+
extensions?: {
|
|
685
|
+
specificFeatures?: any;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
type CustomerAddress = CustomerAddressBody & {
|
|
690
|
+
id: string;
|
|
691
|
+
customerId: string;
|
|
692
|
+
readonly createdAt?: string;
|
|
693
|
+
readonly updatedAt?: string;
|
|
694
|
+
};
|
|
695
|
+
|
|
696
|
+
type CustomerAddressBody = {
|
|
697
|
+
countryId: string;
|
|
698
|
+
countryStateId?: string;
|
|
699
|
+
salutationId?: string;
|
|
700
|
+
firstName: string;
|
|
701
|
+
lastName: string;
|
|
702
|
+
zipcode?: string;
|
|
703
|
+
city: string;
|
|
704
|
+
company?: string;
|
|
705
|
+
street: string;
|
|
706
|
+
department?: string;
|
|
707
|
+
title?: string;
|
|
708
|
+
phoneNumber?: string;
|
|
709
|
+
additionalAddressLine1?: string;
|
|
710
|
+
additionalAddressLine2?: string;
|
|
711
|
+
customFields?: GenericRecord;
|
|
712
|
+
country?: Country;
|
|
713
|
+
countryState?: CountryState;
|
|
714
|
+
salutation?: Salutation;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
type CustomerGroup = {
|
|
718
|
+
id: string;
|
|
719
|
+
name: string;
|
|
720
|
+
displayGross?: boolean;
|
|
721
|
+
customFields?: GenericRecord;
|
|
722
|
+
registrationActive?: boolean;
|
|
723
|
+
registrationTitle?: string;
|
|
724
|
+
registrationIntroduction?: string;
|
|
725
|
+
registrationOnlyCompanyRegistration?: boolean;
|
|
726
|
+
registrationSeoMetaDescription?: string;
|
|
727
|
+
readonly createdAt?: string;
|
|
728
|
+
readonly updatedAt?: string;
|
|
729
|
+
translated: {
|
|
730
|
+
name?: string;
|
|
731
|
+
registrationIntroduction?: string;
|
|
732
|
+
registrationSeoMetaDescription?: string;
|
|
733
|
+
registrationTitle?: string;
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
type CartDeliveryShippingLocation = {
|
|
738
|
+
apiAlias?: "cart_delivery_shipping_location";
|
|
739
|
+
country?: Country;
|
|
740
|
+
address?: CustomerAddress;
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
type CartDeliveryTime = {
|
|
744
|
+
apiAlias?: "cart_delivery_time";
|
|
745
|
+
name?: string;
|
|
746
|
+
min?: number;
|
|
747
|
+
max?: number;
|
|
748
|
+
unit?: string;
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
type CartError = {
|
|
752
|
+
items?: {
|
|
753
|
+
key?: string;
|
|
754
|
+
level?: 0 | 10 | 20;
|
|
755
|
+
message?: string;
|
|
756
|
+
messageKey?: string;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
type CartItems = Array<LineItem>;
|
|
761
|
+
|
|
762
|
+
type BackgroundMediaMode = "cover" | "auto" | "contain";
|
|
763
|
+
|
|
764
|
+
type CmsBlock = {
|
|
765
|
+
apiAlias: "cms_block";
|
|
766
|
+
id?: string;
|
|
767
|
+
position: number;
|
|
768
|
+
type: "image" | "text" | "product-listing" | "image-two-column";
|
|
769
|
+
name?: string;
|
|
770
|
+
sectionPosition?: "main" | "sidebar";
|
|
771
|
+
marginTop?: string;
|
|
772
|
+
marginBottom?: string;
|
|
773
|
+
marginLeft?: string;
|
|
774
|
+
marginRight?: string;
|
|
775
|
+
backgroundColor?: string;
|
|
776
|
+
backgroundMediaId?: string;
|
|
777
|
+
backgroundMediaMode?: BackgroundMediaMode;
|
|
778
|
+
cssClass?: string;
|
|
779
|
+
visibility?: Visibility;
|
|
780
|
+
sectionId: string;
|
|
781
|
+
customFields?: GenericRecord;
|
|
782
|
+
versionId?: string;
|
|
783
|
+
cmsSectionVersionId?: string;
|
|
784
|
+
readonly createdAt?: string;
|
|
785
|
+
readonly updatedAt?: string;
|
|
786
|
+
backgroundMedia?: Media;
|
|
787
|
+
slots?: Array<CmsSlot>;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
type CmsPage = {
|
|
791
|
+
apiAlias: "cms_page";
|
|
792
|
+
id: string;
|
|
793
|
+
versionId?: string;
|
|
794
|
+
name?: string;
|
|
795
|
+
type: "landingpage" | "page" | "product_list" | "product_detail";
|
|
796
|
+
entity?: string;
|
|
797
|
+
cssClass?: string;
|
|
798
|
+
config?: {
|
|
799
|
+
backgroundColor?: string;
|
|
800
|
+
};
|
|
801
|
+
previewMediaId?: string;
|
|
802
|
+
customFields?: GenericRecord;
|
|
803
|
+
readonly createdAt?: string;
|
|
804
|
+
readonly updatedAt?: string;
|
|
805
|
+
translated?: object;
|
|
806
|
+
sections?: Array<CmsSection>;
|
|
807
|
+
previewMedia?: Media;
|
|
808
|
+
landingPages?: Array<LandingPage>;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
type CmsSection = {
|
|
812
|
+
apiAlias: "cms_section";
|
|
813
|
+
id?: string;
|
|
814
|
+
position: number;
|
|
815
|
+
type: "sidebar" | "fullwidth";
|
|
816
|
+
name?: string;
|
|
817
|
+
sizingMode?: "boxed" | "full_width";
|
|
818
|
+
mobileBehavior?: string;
|
|
819
|
+
backgroundColor?: string;
|
|
820
|
+
backgroundMediaId?: string;
|
|
821
|
+
backgroundMediaMode?: BackgroundMediaMode;
|
|
822
|
+
cssClass?: string;
|
|
823
|
+
pageId: string;
|
|
824
|
+
visibility?: Visibility;
|
|
825
|
+
customFields?: GenericRecord;
|
|
826
|
+
cmsPageVersionId?: string;
|
|
827
|
+
readonly createdAt?: string;
|
|
828
|
+
readonly updatedAt?: string;
|
|
829
|
+
page?: CmsPage;
|
|
830
|
+
backgroundMedia?: Media;
|
|
831
|
+
blocks?: Array<CmsBlock>;
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
type CmsSlot = {
|
|
835
|
+
id: string;
|
|
836
|
+
versionId?: string;
|
|
837
|
+
type: "image" | "text" | "form" | "product-listing" | "category-navigation" | "product-box" | "buy-box" | "sidebar-filter";
|
|
838
|
+
slot: string;
|
|
839
|
+
locked?: boolean;
|
|
840
|
+
config?: object;
|
|
841
|
+
customFields?: GenericRecord;
|
|
842
|
+
readonly data?: object;
|
|
843
|
+
blockId: string;
|
|
844
|
+
fieldConfig?: object;
|
|
845
|
+
cmsBlockVersionId?: string;
|
|
846
|
+
readonly createdAt?: string;
|
|
847
|
+
readonly updatedAt?: string;
|
|
848
|
+
translated?: object;
|
|
849
|
+
block?: CmsBlock;
|
|
850
|
+
VersionId?: string;
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
type SeoUrlEntity = {
|
|
854
|
+
id: string;
|
|
855
|
+
salesChannelId?: string;
|
|
856
|
+
languageId: string;
|
|
857
|
+
foreignKey: string;
|
|
858
|
+
routeName: "frontend.navigation.page" | "frontend.landing.page" | "frontend.detail.page";
|
|
859
|
+
pathInfo: string;
|
|
860
|
+
seoPathInfo: string;
|
|
861
|
+
isCanonical?: boolean;
|
|
862
|
+
isModified?: boolean;
|
|
863
|
+
isDeleted?: boolean;
|
|
864
|
+
error?: string;
|
|
865
|
+
url?: string;
|
|
866
|
+
customFields?: GenericRecord;
|
|
867
|
+
readonly createdAt?: string;
|
|
868
|
+
readonly updatedAt?: string;
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
type Sitemap = {
|
|
872
|
+
filename: string;
|
|
873
|
+
created: string;
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
type LandingPage = {
|
|
877
|
+
apiAlias: "landing_page";
|
|
878
|
+
id: string;
|
|
879
|
+
versionId?: string;
|
|
880
|
+
active?: boolean;
|
|
881
|
+
name: string;
|
|
882
|
+
customFields?: GenericRecord;
|
|
883
|
+
slotConfig?: object;
|
|
884
|
+
metaTitle?: string;
|
|
885
|
+
metaDescription?: string;
|
|
886
|
+
keywords?: string;
|
|
887
|
+
url: string;
|
|
888
|
+
cmsPageId?: string;
|
|
889
|
+
cmsPageVersionId?: string;
|
|
890
|
+
readonly createdAt?: string;
|
|
891
|
+
readonly updatedAt?: string;
|
|
892
|
+
translated?: object;
|
|
893
|
+
cmsPage?: CmsPage;
|
|
894
|
+
seoUrls?: Array<SeoUrlEntity>;
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
type Visibility = {
|
|
898
|
+
mobile?: boolean;
|
|
899
|
+
desktop?: boolean;
|
|
900
|
+
tablet?: boolean;
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
type Category = {
|
|
904
|
+
apiAlias: "category";
|
|
905
|
+
id: string;
|
|
906
|
+
versionId?: string;
|
|
907
|
+
parentId?: string;
|
|
908
|
+
parentVersionId?: string;
|
|
909
|
+
afterCategoryId?: string;
|
|
910
|
+
afterCategoryVersionId?: string;
|
|
911
|
+
mediaId?: string;
|
|
912
|
+
displayNestedProducts?: boolean;
|
|
913
|
+
readonly breadcrumb: Array<string>;
|
|
914
|
+
readonly level?: number;
|
|
915
|
+
readonly path?: string;
|
|
916
|
+
readonly childCount: number;
|
|
917
|
+
type: "page" | "folder" | "link";
|
|
918
|
+
productAssignmentType?: "product_stream" | "product";
|
|
919
|
+
visible?: boolean;
|
|
920
|
+
active?: boolean;
|
|
921
|
+
cmsPageIdSwitched?: boolean;
|
|
922
|
+
visibleChildCount?: number;
|
|
923
|
+
name: string;
|
|
924
|
+
customFields?: GenericRecord;
|
|
925
|
+
linkType?: "external" | "category" | "product" | "landing_page";
|
|
926
|
+
internalLink?: string;
|
|
927
|
+
externalLink?: string;
|
|
928
|
+
linkNewTab?: boolean;
|
|
929
|
+
description?: string;
|
|
930
|
+
metaTitle?: string;
|
|
931
|
+
metaDescription?: string;
|
|
932
|
+
keywords?: string;
|
|
933
|
+
cmsPageId?: string;
|
|
934
|
+
cmsPageVersionId?: string;
|
|
935
|
+
customEntityTypeId?: string;
|
|
936
|
+
readonly createdAt?: string;
|
|
937
|
+
readonly updatedAt?: string;
|
|
938
|
+
translated: {
|
|
939
|
+
breadcrumb: Array<String>;
|
|
940
|
+
};
|
|
941
|
+
parent?: Category;
|
|
942
|
+
children: Array<Category>;
|
|
943
|
+
media?: Media;
|
|
944
|
+
tags?: Array<Tag>;
|
|
945
|
+
cmsPage?: CmsPage;
|
|
946
|
+
seoUrls?: Array<SeoUrlEntity>;
|
|
947
|
+
};
|
|
948
|
+
|
|
949
|
+
type MainCategory = {
|
|
950
|
+
id: string;
|
|
951
|
+
productId: string;
|
|
952
|
+
productVersionId?: string;
|
|
953
|
+
categoryId: string;
|
|
954
|
+
categoryVersionId?: string;
|
|
955
|
+
salesChannelId: string;
|
|
956
|
+
readonly createdAt?: string;
|
|
957
|
+
readonly updatedAt?: string;
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
type StateMachineState = {
|
|
961
|
+
id?: string;
|
|
962
|
+
technicalName: string;
|
|
963
|
+
name: string;
|
|
964
|
+
customFields?: GenericRecord;
|
|
965
|
+
readonly createdAt?: string;
|
|
966
|
+
readonly updatedAt?: string;
|
|
967
|
+
translated?: object;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
type Currency = {
|
|
971
|
+
id: string;
|
|
972
|
+
factor: number;
|
|
973
|
+
symbol: string;
|
|
974
|
+
isoCode: string;
|
|
975
|
+
shortName: string;
|
|
976
|
+
name: string;
|
|
977
|
+
position?: number;
|
|
978
|
+
isSystemDefault?: boolean;
|
|
979
|
+
taxFreeFrom?: number;
|
|
980
|
+
customFields?: GenericRecord;
|
|
981
|
+
itemRounding: {
|
|
982
|
+
decimals: number;
|
|
983
|
+
interval: number;
|
|
984
|
+
roundForNet: boolean;
|
|
985
|
+
};
|
|
986
|
+
totalRounding: {
|
|
987
|
+
decimals: number;
|
|
988
|
+
interval: number;
|
|
989
|
+
roundForNet: boolean;
|
|
990
|
+
};
|
|
991
|
+
readonly createdAt?: string;
|
|
992
|
+
readonly updatedAt?: string;
|
|
993
|
+
translated?: object;
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
type Order = {
|
|
997
|
+
id: string;
|
|
998
|
+
versionId?: string;
|
|
999
|
+
orderNumber?: string;
|
|
1000
|
+
billingAddressId: string;
|
|
1001
|
+
billingAddressVersionId?: string;
|
|
1002
|
+
currencyId: string;
|
|
1003
|
+
languageId: string;
|
|
1004
|
+
salesChannelId: string;
|
|
1005
|
+
orderDateTime: string;
|
|
1006
|
+
readonly orderDate: string;
|
|
1007
|
+
price: {
|
|
1008
|
+
netPrice: number;
|
|
1009
|
+
totalPrice: number;
|
|
1010
|
+
calculatedTaxes?: object;
|
|
1011
|
+
taxRules?: object;
|
|
1012
|
+
positionPrice: number;
|
|
1013
|
+
rawTotal: number;
|
|
1014
|
+
taxStatus: "Free" | "Net" | "Gross";
|
|
1015
|
+
};
|
|
1016
|
+
readonly amountTotal?: number;
|
|
1017
|
+
readonly amountNet?: number;
|
|
1018
|
+
readonly positionPrice?: number;
|
|
1019
|
+
readonly taxStatus?: "Free" | "Net" | "Gross";
|
|
1020
|
+
shippingCosts?: CalculatedPrice;
|
|
1021
|
+
readonly shippingTotal?: number;
|
|
1022
|
+
currencyFactor: number;
|
|
1023
|
+
deepLinkCode?: string;
|
|
1024
|
+
affiliateCode?: string;
|
|
1025
|
+
campaignCode?: string;
|
|
1026
|
+
customerComment?: string;
|
|
1027
|
+
source?: string;
|
|
1028
|
+
customFields?: GenericRecord;
|
|
1029
|
+
createdById?: string;
|
|
1030
|
+
updatedById?: string;
|
|
1031
|
+
readonly createdAt?: string;
|
|
1032
|
+
readonly updatedAt?: string;
|
|
1033
|
+
stateMachineState: StateMachineState;
|
|
1034
|
+
orderCustomer: OrderCustomer;
|
|
1035
|
+
currency?: Currency;
|
|
1036
|
+
language?: Language;
|
|
1037
|
+
addresses?: Array<OrderAddress>;
|
|
1038
|
+
billingAddress?: OrderAddress;
|
|
1039
|
+
deliveries?: Array<OrderDelivery>;
|
|
1040
|
+
lineItems?: Array<OrderLineItem>;
|
|
1041
|
+
transactions?: Array<OrderTransaction>;
|
|
1042
|
+
documents: Array<ShopwareDocument>;
|
|
1043
|
+
tags?: Array<Tag>;
|
|
1044
|
+
extensions?: object;
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
type OrderAddress = CustomerAddressBody & {
|
|
1048
|
+
id: string;
|
|
1049
|
+
versionId?: string;
|
|
1050
|
+
vatId?: string;
|
|
1051
|
+
readonly createdAt?: string;
|
|
1052
|
+
readonly updatedAt?: string;
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
type OrderCustomer = {
|
|
1056
|
+
id: string;
|
|
1057
|
+
versionId?: string;
|
|
1058
|
+
email: string;
|
|
1059
|
+
salutationId?: string;
|
|
1060
|
+
firstName: string;
|
|
1061
|
+
lastName: string;
|
|
1062
|
+
company?: string;
|
|
1063
|
+
title?: string;
|
|
1064
|
+
vatIds?: Array<string>;
|
|
1065
|
+
customerNumber?: string;
|
|
1066
|
+
customFields?: GenericRecord;
|
|
1067
|
+
readonly createdAt?: string;
|
|
1068
|
+
readonly updatedAt?: string;
|
|
1069
|
+
salutation?: Salutation;
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
type OrderDelivery = {
|
|
1073
|
+
id: string;
|
|
1074
|
+
versionId?: string;
|
|
1075
|
+
orderId: string;
|
|
1076
|
+
orderVersionId?: string;
|
|
1077
|
+
shippingOrderAddressId: string;
|
|
1078
|
+
shippingOrderAddressVersionId?: string;
|
|
1079
|
+
shippingMethodId: string;
|
|
1080
|
+
stateId: string;
|
|
1081
|
+
trackingCodes?: Array<string>;
|
|
1082
|
+
shippingDateEarliest: string;
|
|
1083
|
+
shippingDateLatest: string;
|
|
1084
|
+
shippingCosts?: CalculatedPrice;
|
|
1085
|
+
readonly createdAt?: string;
|
|
1086
|
+
readonly updatedAt?: string;
|
|
1087
|
+
stateMachineState?: StateMachineState;
|
|
1088
|
+
shippingOrderAddress?: OrderAddress;
|
|
1089
|
+
shippingMethod?: ShippingMethod;
|
|
1090
|
+
positions?: Array<OrderDeliveryPosition>;
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
type OrderDeliveryPosition = {
|
|
1094
|
+
id: string;
|
|
1095
|
+
versionId?: string;
|
|
1096
|
+
orderDeliveryId: string;
|
|
1097
|
+
orderDeliveryVersionId?: string;
|
|
1098
|
+
orderLineItemId: string;
|
|
1099
|
+
orderLineItemVersionId?: string;
|
|
1100
|
+
price: CalculatedPrice;
|
|
1101
|
+
unitPrice?: number;
|
|
1102
|
+
totalPrice?: number;
|
|
1103
|
+
quantity?: number;
|
|
1104
|
+
customFields?: GenericRecord;
|
|
1105
|
+
readonly createdAt?: string;
|
|
1106
|
+
readonly updatedAt?: string;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
type OrderLineItem = {
|
|
1110
|
+
apiAlias: "order_line_item";
|
|
1111
|
+
id: string;
|
|
1112
|
+
versionId?: string;
|
|
1113
|
+
orderId: string;
|
|
1114
|
+
orderVersionId?: string;
|
|
1115
|
+
productId?: string;
|
|
1116
|
+
productVersionId?: string;
|
|
1117
|
+
promotionId?: string;
|
|
1118
|
+
parentId?: string;
|
|
1119
|
+
parentVersionId?: string;
|
|
1120
|
+
coverId?: string;
|
|
1121
|
+
identifier: string;
|
|
1122
|
+
referencedId: string;
|
|
1123
|
+
quantity: number;
|
|
1124
|
+
label: string;
|
|
1125
|
+
payload?: LineItemPayload;
|
|
1126
|
+
good?: boolean;
|
|
1127
|
+
removable?: boolean;
|
|
1128
|
+
stackable?: boolean;
|
|
1129
|
+
position?: number;
|
|
1130
|
+
states: Array<string>;
|
|
1131
|
+
priceDefinition?: CartPriceQuantity;
|
|
1132
|
+
unitPrice?: number;
|
|
1133
|
+
totalPrice?: number;
|
|
1134
|
+
description?: string;
|
|
1135
|
+
type?: string;
|
|
1136
|
+
customFields?: GenericRecord;
|
|
1137
|
+
readonly createdAt?: string;
|
|
1138
|
+
readonly updatedAt?: string;
|
|
1139
|
+
cover?: Media;
|
|
1140
|
+
orderDeliveryPositions?: Array<OrderDeliveryPosition>;
|
|
1141
|
+
downloads?: Array<OrderLineItemDownload>;
|
|
1142
|
+
parent?: OrderLineItem;
|
|
1143
|
+
children: Array<OrderLineItem>;
|
|
1144
|
+
extensions?: object;
|
|
1145
|
+
translated?: object;
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
type OrderLineItemDownload = {
|
|
1149
|
+
id: string;
|
|
1150
|
+
versionId?: string;
|
|
1151
|
+
orderLineItemId: string;
|
|
1152
|
+
orderLineItemVersionId?: string;
|
|
1153
|
+
mediaId: string;
|
|
1154
|
+
position: number;
|
|
1155
|
+
accessGranted: boolean;
|
|
1156
|
+
customFields?: GenericRecord;
|
|
1157
|
+
readonly createdAt?: string;
|
|
1158
|
+
readonly updatedAt?: string;
|
|
1159
|
+
orderLineItem?: OrderLineItem;
|
|
1160
|
+
media?: Media;
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
type OrderTransaction = {
|
|
1164
|
+
id: string;
|
|
1165
|
+
versionId?: string;
|
|
1166
|
+
orderId: string;
|
|
1167
|
+
orderVersionId?: string;
|
|
1168
|
+
paymentMethodId: string;
|
|
1169
|
+
amount: CalculatedPrice;
|
|
1170
|
+
validationData?: object;
|
|
1171
|
+
stateId: string;
|
|
1172
|
+
customFields?: GenericRecord;
|
|
1173
|
+
readonly createdAt?: string;
|
|
1174
|
+
readonly updatedAt?: string;
|
|
1175
|
+
stateMachineState?: StateMachineState;
|
|
1176
|
+
paymentMethod?: PaymentMethod;
|
|
1177
|
+
captures?: Array<OrderTransactionCapture>;
|
|
1178
|
+
shippingCosts?: CalculatedPrice;
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
type OrderTransactionCapture = {
|
|
1182
|
+
id: string;
|
|
1183
|
+
versionId?: string;
|
|
1184
|
+
orderTransactionId: string;
|
|
1185
|
+
orderTransactionVersionId?: string;
|
|
1186
|
+
stateId: string;
|
|
1187
|
+
externalReference?: string;
|
|
1188
|
+
amount: CalculatedPrice;
|
|
1189
|
+
customFields?: GenericRecord;
|
|
1190
|
+
readonly createdAt?: string;
|
|
1191
|
+
readonly updatedAt?: string;
|
|
1192
|
+
stateMachineState?: StateMachineState;
|
|
1193
|
+
transaction?: OrderTransaction;
|
|
1194
|
+
refunds?: Array<OrderTransactionCaptureRefund>;
|
|
1195
|
+
shippingCosts?: CalculatedPrice;
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
type OrderTransactionCaptureRefund = {
|
|
1199
|
+
id: string;
|
|
1200
|
+
versionId?: string;
|
|
1201
|
+
captureId: string;
|
|
1202
|
+
captureVersionId?: string;
|
|
1203
|
+
stateId: string;
|
|
1204
|
+
externalReference?: string;
|
|
1205
|
+
reason?: string;
|
|
1206
|
+
amount: CalculatedPrice;
|
|
1207
|
+
customFields?: GenericRecord;
|
|
1208
|
+
readonly createdAt?: string;
|
|
1209
|
+
readonly updatedAt?: string;
|
|
1210
|
+
stateMachineState?: StateMachineState;
|
|
1211
|
+
transactionCapture?: OrderTransactionCapture;
|
|
1212
|
+
positions?: Array<OrderTransactionCaptureRefundPosition>;
|
|
1213
|
+
shippingCosts?: CalculatedPrice;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
type OrderTransactionCaptureRefundPosition = {
|
|
1217
|
+
id: string;
|
|
1218
|
+
versionId?: string;
|
|
1219
|
+
refundId: string;
|
|
1220
|
+
refundVersionId?: string;
|
|
1221
|
+
orderLineItemId: string;
|
|
1222
|
+
orderLineItemVersionId?: string;
|
|
1223
|
+
externalReference?: string;
|
|
1224
|
+
reason?: string;
|
|
1225
|
+
quantity?: number;
|
|
1226
|
+
amount: CalculatedPrice;
|
|
1227
|
+
customFields?: GenericRecord;
|
|
1228
|
+
readonly createdAt?: string;
|
|
1229
|
+
readonly updatedAt?: string;
|
|
1230
|
+
orderLineItem?: OrderLineItem;
|
|
1231
|
+
orderTransactionCaptureRefund?: OrderTransactionCaptureRefund;
|
|
1232
|
+
shippingCosts?: CalculatedPrice;
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
type ShopwareDocument = {
|
|
1236
|
+
id: string;
|
|
1237
|
+
documentTypeId: string;
|
|
1238
|
+
fileType: string;
|
|
1239
|
+
referenceDocumentId?: string;
|
|
1240
|
+
orderId: string;
|
|
1241
|
+
documentMediaFileId?: string;
|
|
1242
|
+
orderVersionId?: string;
|
|
1243
|
+
config: {
|
|
1244
|
+
name: string;
|
|
1245
|
+
title: string;
|
|
1246
|
+
};
|
|
1247
|
+
sent?: boolean;
|
|
1248
|
+
static?: boolean;
|
|
1249
|
+
deepLinkCode: string;
|
|
1250
|
+
documentNumber?: string;
|
|
1251
|
+
customFields?: GenericRecord;
|
|
1252
|
+
readonly createdAt?: string;
|
|
1253
|
+
readonly updatedAt?: string;
|
|
1254
|
+
documentType?: ShopwareDocumentType;
|
|
1255
|
+
order?: Order;
|
|
1256
|
+
referencedDocument?: ShopwareDocument;
|
|
1257
|
+
dependantDocuments?: Array<ShopwareDocument>;
|
|
1258
|
+
documentMediaFile?: Media;
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
type ShopwareDocumentType = {
|
|
1262
|
+
id: string;
|
|
1263
|
+
name: string;
|
|
1264
|
+
technicalName: string;
|
|
1265
|
+
readonly createdAt?: string;
|
|
1266
|
+
readonly updatedAt?: string;
|
|
1267
|
+
customFields?: GenericRecord;
|
|
1268
|
+
translated?: object;
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
type Unit = {
|
|
1272
|
+
id: string;
|
|
1273
|
+
shortCode: string;
|
|
1274
|
+
name: string;
|
|
1275
|
+
customFields?: GenericRecord;
|
|
1276
|
+
readonly createdAt?: string;
|
|
1277
|
+
readonly updatedAt?: string;
|
|
1278
|
+
translated?: object;
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
type PropertyGroup = {
|
|
1282
|
+
id: string;
|
|
1283
|
+
name: string;
|
|
1284
|
+
description?: string;
|
|
1285
|
+
displayType?: "text" | "image" | "dropdown" | "color";
|
|
1286
|
+
sortingType?: "name" | "position";
|
|
1287
|
+
filterable?: boolean;
|
|
1288
|
+
visibleOnProductDetailPage?: boolean;
|
|
1289
|
+
position?: number;
|
|
1290
|
+
customFields?: GenericRecord;
|
|
1291
|
+
readonly createdAt?: string;
|
|
1292
|
+
readonly updatedAt?: string;
|
|
1293
|
+
translated?: object;
|
|
1294
|
+
options?: Array<PropertyGroupOption>;
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
type PropertyGroupOption = {
|
|
1298
|
+
id: string;
|
|
1299
|
+
groupId: string;
|
|
1300
|
+
name: string;
|
|
1301
|
+
position?: number;
|
|
1302
|
+
colorHexCode?: string;
|
|
1303
|
+
mediaId?: string;
|
|
1304
|
+
customFields?: GenericRecord;
|
|
1305
|
+
readonly createdAt?: string;
|
|
1306
|
+
readonly updatedAt?: string;
|
|
1307
|
+
translated?: object;
|
|
1308
|
+
media?: Media;
|
|
1309
|
+
group: PropertyGroup;
|
|
1310
|
+
option: string;
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
type Product = {
|
|
1314
|
+
apiAlias: "product";
|
|
1315
|
+
id: string;
|
|
1316
|
+
versionId?: string;
|
|
1317
|
+
parentId?: string;
|
|
1318
|
+
parentVersionId?: string;
|
|
1319
|
+
manufacturerId?: string;
|
|
1320
|
+
productManufacturerVersionId?: string;
|
|
1321
|
+
unitId?: string;
|
|
1322
|
+
taxId: string;
|
|
1323
|
+
coverId?: string;
|
|
1324
|
+
productMediaVersionId?: string;
|
|
1325
|
+
deliveryTimeId?: string;
|
|
1326
|
+
canonicalProductId?: string;
|
|
1327
|
+
canonicalProductVersionId?: string;
|
|
1328
|
+
cmsPageId?: string;
|
|
1329
|
+
cmsPageVersionId?: string;
|
|
1330
|
+
productNumber: string;
|
|
1331
|
+
restockTime: number;
|
|
1332
|
+
active?: boolean;
|
|
1333
|
+
readonly available?: boolean;
|
|
1334
|
+
isCloseout?: boolean;
|
|
1335
|
+
readonly availableStock?: number;
|
|
1336
|
+
stock: number;
|
|
1337
|
+
readonly displayGroup?: string;
|
|
1338
|
+
manufacturerNumber?: string;
|
|
1339
|
+
ean?: string;
|
|
1340
|
+
purchaseSteps?: number;
|
|
1341
|
+
maxPurchase?: number;
|
|
1342
|
+
minPurchase?: number;
|
|
1343
|
+
purchaseUnit?: number;
|
|
1344
|
+
referenceUnit?: number;
|
|
1345
|
+
shippingFree?: boolean;
|
|
1346
|
+
markAsTopseller?: boolean;
|
|
1347
|
+
weight?: number;
|
|
1348
|
+
width?: number;
|
|
1349
|
+
height?: number;
|
|
1350
|
+
length?: number;
|
|
1351
|
+
releaseDate?: string;
|
|
1352
|
+
readonly ratingAverage?: number;
|
|
1353
|
+
readonly categoryTree?: Array<string>;
|
|
1354
|
+
readonly propertyIds?: Array<string>;
|
|
1355
|
+
readonly optionIds?: Array<string>;
|
|
1356
|
+
readonly streamIds?: Array<string>;
|
|
1357
|
+
readonly tagIds?: Array<string>;
|
|
1358
|
+
readonly categoryIds?: Array<string>;
|
|
1359
|
+
readonly childCount?: number;
|
|
1360
|
+
readonly sales?: number;
|
|
1361
|
+
readonly states?: Array<string>;
|
|
1362
|
+
metaDescription?: string;
|
|
1363
|
+
name: string;
|
|
1364
|
+
keywords?: string;
|
|
1365
|
+
description?: string;
|
|
1366
|
+
metaTitle?: string;
|
|
1367
|
+
packUnit?: string;
|
|
1368
|
+
packUnitPlural?: string;
|
|
1369
|
+
customFields?: GenericRecord;
|
|
1370
|
+
calculatedPrice: CalculatedPrice;
|
|
1371
|
+
calculatedPrices: Array<CalculatedPrice>;
|
|
1372
|
+
calculatedMaxPurchase?: number;
|
|
1373
|
+
calculatedCheapestPrice?: CalculatedPrice;
|
|
1374
|
+
isNew?: boolean;
|
|
1375
|
+
sortedProperties: object;
|
|
1376
|
+
readonly createdAt?: string;
|
|
1377
|
+
readonly updatedAt?: string;
|
|
1378
|
+
translated?: object;
|
|
1379
|
+
downloads?: Array<ProductDownload>;
|
|
1380
|
+
parent?: Product;
|
|
1381
|
+
children?: Array<Product>;
|
|
1382
|
+
deliveryTime?: DeliveryTime;
|
|
1383
|
+
tax?: Tax;
|
|
1384
|
+
manufacturer?: ProductManufacturer;
|
|
1385
|
+
unit?: Unit;
|
|
1386
|
+
cover?: ProductMedia;
|
|
1387
|
+
cmsPage?: CmsPage;
|
|
1388
|
+
canonicalProduct?: Product;
|
|
1389
|
+
media?: Array<Media>;
|
|
1390
|
+
crossSellings?: Array<ProductCrossSelling>;
|
|
1391
|
+
configuratorSettings?: Array<ProductConfiguratorSetting>;
|
|
1392
|
+
productReviews?: Array<ProductReview>;
|
|
1393
|
+
mainCategories?: Array<MainCategory>;
|
|
1394
|
+
seoUrls?: Array<SeoUrlEntity>;
|
|
1395
|
+
options?: Array<PropertyGroupOption>;
|
|
1396
|
+
properties?: Array<PropertyGroupOption>;
|
|
1397
|
+
categories?: Array<MainCategory>;
|
|
1398
|
+
streams?: Array<ProductStream>;
|
|
1399
|
+
categoriesRo?: Array<Category>;
|
|
1400
|
+
tags?: Array<Tag>;
|
|
1401
|
+
seoCategory: Category;
|
|
1402
|
+
variantListingConfig?: {
|
|
1403
|
+
displayParent?: boolean;
|
|
1404
|
+
} | null;
|
|
1405
|
+
mainVariantId?: any;
|
|
1406
|
+
externalReference?: any;
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
type CrossSellingElement = {
|
|
1410
|
+
apiAlias: "cross_selling_element";
|
|
1411
|
+
crossSelling: Array<ProductCrossSelling>;
|
|
1412
|
+
products: Array<Product>;
|
|
1413
|
+
total: number;
|
|
1414
|
+
streamId: string;
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1417
|
+
type ProductCrossSelling = {
|
|
1418
|
+
id: string;
|
|
1419
|
+
name: string;
|
|
1420
|
+
position?: number;
|
|
1421
|
+
sortBy?: string;
|
|
1422
|
+
sortDirection?: string;
|
|
1423
|
+
type?: string;
|
|
1424
|
+
active?: boolean;
|
|
1425
|
+
limit?: number;
|
|
1426
|
+
readonly createdAt?: string;
|
|
1427
|
+
readonly updatedAt?: string;
|
|
1428
|
+
translated?: object;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
type ProductConfiguratorSetting = {
|
|
1432
|
+
id: string;
|
|
1433
|
+
versionId?: string;
|
|
1434
|
+
productId: string;
|
|
1435
|
+
productVersionId?: string;
|
|
1436
|
+
mediaId?: string;
|
|
1437
|
+
optionId: string;
|
|
1438
|
+
position?: number;
|
|
1439
|
+
customFields?: GenericRecord;
|
|
1440
|
+
readonly createdAt?: string;
|
|
1441
|
+
readonly updatedAt?: string;
|
|
1442
|
+
media?: Media;
|
|
1443
|
+
option?: PropertyGroupOption;
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1446
|
+
type ProductDownload = {
|
|
1447
|
+
id: string;
|
|
1448
|
+
versionId?: string;
|
|
1449
|
+
productId: string;
|
|
1450
|
+
productVersionId?: string;
|
|
1451
|
+
mediaId: string;
|
|
1452
|
+
position?: number;
|
|
1453
|
+
customFields?: GenericRecord;
|
|
1454
|
+
readonly createdAt?: string;
|
|
1455
|
+
readonly updatedAt?: string;
|
|
1456
|
+
product?: Product;
|
|
1457
|
+
media?: Media;
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
type EntitySearchResult = {
|
|
1461
|
+
entity?: string;
|
|
1462
|
+
total?: number;
|
|
1463
|
+
aggregations?: Array<object>;
|
|
1464
|
+
page?: number;
|
|
1465
|
+
limit?: number;
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1468
|
+
type ProductListingResult = EntitySearchResult & {
|
|
1469
|
+
apiAlias: "product_listing";
|
|
1470
|
+
entity?: "product";
|
|
1471
|
+
currentFilters: Array<{
|
|
1472
|
+
navigationId: string;
|
|
1473
|
+
manufacturer: Array<string>;
|
|
1474
|
+
price: {
|
|
1475
|
+
min: number;
|
|
1476
|
+
max: number;
|
|
1477
|
+
};
|
|
1478
|
+
rating: number | null;
|
|
1479
|
+
"shipping-free": boolean;
|
|
1480
|
+
properties: Array<string>;
|
|
1481
|
+
search: string;
|
|
1482
|
+
}>;
|
|
1483
|
+
availableSortings: Array<{
|
|
1484
|
+
apiAlias: "product_sorting";
|
|
1485
|
+
label: string;
|
|
1486
|
+
translated: {
|
|
1487
|
+
label: string;
|
|
1488
|
+
};
|
|
1489
|
+
key: string;
|
|
1490
|
+
priority: number;
|
|
1491
|
+
}>;
|
|
1492
|
+
sorting?: string;
|
|
1493
|
+
elements: Array<Product>;
|
|
1494
|
+
};
|
|
1495
|
+
|
|
1496
|
+
type ProductManufacturer = {
|
|
1497
|
+
id: string;
|
|
1498
|
+
versionId?: string;
|
|
1499
|
+
mediaId?: string;
|
|
1500
|
+
link?: string;
|
|
1501
|
+
name: string;
|
|
1502
|
+
description?: string;
|
|
1503
|
+
customFields?: GenericRecord;
|
|
1504
|
+
readonly createdAt?: string;
|
|
1505
|
+
readonly updatedAt?: string;
|
|
1506
|
+
translated?: object;
|
|
1507
|
+
media?: Media;
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
type ProductReview = {
|
|
1511
|
+
id: string;
|
|
1512
|
+
productId: string;
|
|
1513
|
+
productIdVersionId?: string;
|
|
1514
|
+
salesChannelId: string;
|
|
1515
|
+
languageId: string;
|
|
1516
|
+
title: string;
|
|
1517
|
+
content: string;
|
|
1518
|
+
points: number;
|
|
1519
|
+
status?: boolean;
|
|
1520
|
+
comment?: string;
|
|
1521
|
+
customFields?: GenericRecord;
|
|
1522
|
+
readonly createdAt?: string;
|
|
1523
|
+
readonly updatedAt?: string;
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1526
|
+
type ProductStream = {
|
|
1527
|
+
id: string;
|
|
1528
|
+
name: string;
|
|
1529
|
+
description?: string;
|
|
1530
|
+
customFields?: GenericRecord;
|
|
1531
|
+
readonly createdAt?: string;
|
|
1532
|
+
readonly updatedAt?: string;
|
|
1533
|
+
translated?: object;
|
|
1534
|
+
};
|
|
1535
|
+
|
|
1536
|
+
type SalesChannel = {
|
|
1537
|
+
typeId?: string;
|
|
1538
|
+
languageId?: string;
|
|
1539
|
+
currencyId?: string;
|
|
1540
|
+
paymentMethodId?: string;
|
|
1541
|
+
shippingMethodId?: string;
|
|
1542
|
+
countryId?: string;
|
|
1543
|
+
navigationCategoryId?: string;
|
|
1544
|
+
navigationCategoryDepth?: number;
|
|
1545
|
+
footerCategoryId?: string;
|
|
1546
|
+
serviceCategoryId?: string;
|
|
1547
|
+
name?: string;
|
|
1548
|
+
shortName?: string;
|
|
1549
|
+
accessKey?: string;
|
|
1550
|
+
active?: boolean;
|
|
1551
|
+
maintenance?: boolean;
|
|
1552
|
+
maintenanceIpWhitelist?: string;
|
|
1553
|
+
mailHeaderFooterId?: string;
|
|
1554
|
+
customerGroupId?: string;
|
|
1555
|
+
hreflangActive?: boolean;
|
|
1556
|
+
hreflangDefaultDomainId?: string;
|
|
1557
|
+
analyticsId?: string;
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
type SalesChannelContext = {
|
|
1561
|
+
token?: string;
|
|
1562
|
+
currentCustomerGroup?: {
|
|
1563
|
+
name?: string;
|
|
1564
|
+
displayGross?: boolean;
|
|
1565
|
+
};
|
|
1566
|
+
fallbackCustomerGroup?: {
|
|
1567
|
+
name?: string;
|
|
1568
|
+
displayGross?: boolean;
|
|
1569
|
+
};
|
|
1570
|
+
currency?: Currency;
|
|
1571
|
+
salesChannel?: SalesChannel;
|
|
1572
|
+
taxRules?: Array<{
|
|
1573
|
+
taxRate?: number;
|
|
1574
|
+
name?: string;
|
|
1575
|
+
}>;
|
|
1576
|
+
customer?: Customer;
|
|
1577
|
+
paymentMethod?: PaymentMethod;
|
|
1578
|
+
shippingLocation?: CartDeliveryShippingLocation;
|
|
1579
|
+
shippingMethod?: ShippingMethod;
|
|
1580
|
+
context?: {
|
|
1581
|
+
versionId?: string;
|
|
1582
|
+
currencyId?: string;
|
|
1583
|
+
currencyFactor?: number;
|
|
1584
|
+
currencyPrecision?: number;
|
|
1585
|
+
languageIdChain?: string;
|
|
1586
|
+
scope?: string;
|
|
1587
|
+
source?: string;
|
|
1588
|
+
taxState?: "gross" | "net";
|
|
1589
|
+
useCache?: boolean;
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
type AccountEmailChangeRequest = {
|
|
1594
|
+
email: string;
|
|
1595
|
+
emailConfirmation: string;
|
|
1596
|
+
password: string;
|
|
1597
|
+
};
|
|
1598
|
+
type AccountEmailChangeResponse = {
|
|
1599
|
+
success?: boolean;
|
|
1600
|
+
};
|
|
1601
|
+
type AccountGetRequest = Criteria;
|
|
1602
|
+
type AccountGetResponse = Customer;
|
|
1603
|
+
type AccountLanguageChangeRequest = {
|
|
1604
|
+
language?: string;
|
|
1605
|
+
};
|
|
1606
|
+
type AccountLanguageChangeResponse = {
|
|
1607
|
+
success?: boolean;
|
|
1608
|
+
};
|
|
1609
|
+
type AccountNewsletterRecipientListRequest = Criteria;
|
|
1610
|
+
type AccountNewsletterRecipientListResponse = {
|
|
1611
|
+
apiAlias: "account_newsletter_recipient";
|
|
1612
|
+
status: "undefined" | "notSet" | "direct" | "optIn" | "optOut";
|
|
1613
|
+
};
|
|
1614
|
+
type AccountPasswordChangeRequest = {
|
|
1615
|
+
password: string;
|
|
1616
|
+
newPassword: string;
|
|
1617
|
+
newPasswordConfirm: string;
|
|
1618
|
+
};
|
|
1619
|
+
type AccountPasswordChangeResponse = {
|
|
1620
|
+
success?: boolean;
|
|
1621
|
+
};
|
|
1622
|
+
type AccountPasswordRecoveryMailRequest = {
|
|
1623
|
+
email: string;
|
|
1624
|
+
storefrontUrl: string;
|
|
1625
|
+
};
|
|
1626
|
+
type AccountPasswordRecoveryMailResponse = {
|
|
1627
|
+
success?: boolean;
|
|
1628
|
+
};
|
|
1629
|
+
type AccountPasswordRecoveryRequest = {
|
|
1630
|
+
hash: string;
|
|
1631
|
+
newPassword: string;
|
|
1632
|
+
newPasswordConfirm: string;
|
|
1633
|
+
};
|
|
1634
|
+
type AccountPasswordRecoveryResponse = {
|
|
1635
|
+
success?: boolean;
|
|
1636
|
+
};
|
|
1637
|
+
type AccountPaymentMethodChangeResponse = {
|
|
1638
|
+
success?: boolean;
|
|
1639
|
+
};
|
|
1640
|
+
type AccountRecoveryExpiryCheckRequest = {
|
|
1641
|
+
hash: string;
|
|
1642
|
+
};
|
|
1643
|
+
type AccountRecoveryExpiryCheckResponse = {
|
|
1644
|
+
apiAlias?: "array_struct";
|
|
1645
|
+
data?: {
|
|
1646
|
+
isExpired: boolean;
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
type AccountUpdateRequest = {
|
|
1650
|
+
salutationId?: string;
|
|
1651
|
+
title?: string;
|
|
1652
|
+
firstName: string;
|
|
1653
|
+
lastName: string;
|
|
1654
|
+
company?: string;
|
|
1655
|
+
birthdayDay?: number;
|
|
1656
|
+
birthdayMonth?: number;
|
|
1657
|
+
birthdayYear?: number;
|
|
1658
|
+
};
|
|
1659
|
+
type AccountUpdateResponse = {
|
|
1660
|
+
success?: boolean;
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
type AddressListRequest = Criteria;
|
|
1664
|
+
type AddressListResponse = Array<CustomerAddress>;
|
|
1665
|
+
type AddressCreateRequest = CustomerAddressBody;
|
|
1666
|
+
type AddressCreateResponse = CustomerAddress;
|
|
1667
|
+
type AddressUpdateRequest = CustomerAddressBody;
|
|
1668
|
+
type AddressUpdateResponse = CustomerAddressBody;
|
|
1669
|
+
|
|
1670
|
+
type CartAddItemsRequest = {
|
|
1671
|
+
items?: Array<LineItem>;
|
|
1672
|
+
};
|
|
1673
|
+
type CartAddItemsResponse = Cart;
|
|
1674
|
+
type CartRemoveItemsRequest = {
|
|
1675
|
+
ids: Array<string>;
|
|
1676
|
+
};
|
|
1677
|
+
type CartRemoveItemsResponse = Cart;
|
|
1678
|
+
type CartUpdateItemsRequest = {
|
|
1679
|
+
items?: Array<LineItem>;
|
|
1680
|
+
};
|
|
1681
|
+
type CartUpdateItemsResponse = Cart;
|
|
1682
|
+
type CartDeleteResponse = {
|
|
1683
|
+
success?: boolean;
|
|
1684
|
+
};
|
|
1685
|
+
type CartGetOrCreateResponse = Cart;
|
|
1686
|
+
|
|
1687
|
+
type CategoryListRequest = Criteria;
|
|
1688
|
+
type CategoryListResponse = EntitySearchResult & {
|
|
1689
|
+
elements?: Array<Category>;
|
|
1690
|
+
};
|
|
1691
|
+
type CategorySingleRequest = Criteria;
|
|
1692
|
+
type CategorySingleResponse = Category;
|
|
1693
|
+
type NavigationMenuRequest = Criteria & {
|
|
1694
|
+
depth?: number;
|
|
1695
|
+
buildTree?: Array<object>;
|
|
1696
|
+
};
|
|
1697
|
+
type NavigationMenuResponse = Array<Category>;
|
|
1698
|
+
|
|
1699
|
+
type CMSPageResolveResponse = CmsPage;
|
|
1700
|
+
type ContactFormSubmitRequest = {
|
|
1701
|
+
salutationId: string;
|
|
1702
|
+
firstName?: string;
|
|
1703
|
+
lastName?: string;
|
|
1704
|
+
email: string;
|
|
1705
|
+
phone?: string;
|
|
1706
|
+
subject: string;
|
|
1707
|
+
comment: string;
|
|
1708
|
+
navigationId?: string;
|
|
1709
|
+
slotId?: string;
|
|
1710
|
+
cmsPageType?: string;
|
|
1711
|
+
entityName?: string;
|
|
1712
|
+
};
|
|
1713
|
+
type ContactFormSubmitResponse = {
|
|
1714
|
+
success?: boolean;
|
|
1715
|
+
};
|
|
1716
|
+
type LandingPageResolveRequest = {
|
|
1717
|
+
slots?: string;
|
|
1718
|
+
} & ProductListingCriteria;
|
|
1719
|
+
type LandingPageResolveResponse = LandingPage;
|
|
1720
|
+
type MediaEntityResolveRequest = {
|
|
1721
|
+
ids: Array<string>;
|
|
1722
|
+
};
|
|
1723
|
+
type MediaEntityResolveResponse = Array<Media>;
|
|
1724
|
+
|
|
1725
|
+
type ContextGetResponse = SalesChannelContext;
|
|
1726
|
+
type ContextUpdateRequest = {
|
|
1727
|
+
currencyId?: string;
|
|
1728
|
+
languageId?: string;
|
|
1729
|
+
billingAddressId?: string;
|
|
1730
|
+
shippingAddressId?: string;
|
|
1731
|
+
paymentMethodId?: string;
|
|
1732
|
+
shippingMethodId?: string;
|
|
1733
|
+
countryId?: string;
|
|
1734
|
+
countryStateId?: string;
|
|
1735
|
+
};
|
|
1736
|
+
type ContextUpdateResponse = {
|
|
1737
|
+
redirectUrl?: string;
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
type CustomerLoginRequest = {
|
|
1741
|
+
username: string;
|
|
1742
|
+
password: string;
|
|
1743
|
+
};
|
|
1744
|
+
type CustomerLoginResponse = {
|
|
1745
|
+
redirectUrl?: string;
|
|
1746
|
+
};
|
|
1747
|
+
type CustomerLogoutResponse = {
|
|
1748
|
+
redirectUrl?: string;
|
|
1749
|
+
};
|
|
1750
|
+
type CustomerRegisterRequest = {
|
|
1751
|
+
email: string;
|
|
1752
|
+
password: string;
|
|
1753
|
+
salutationId: string;
|
|
1754
|
+
firstName: string;
|
|
1755
|
+
lastName: string;
|
|
1756
|
+
acceptedDataProtection: boolean;
|
|
1757
|
+
storefrontUrl: string;
|
|
1758
|
+
billingAddress: CustomerAddress;
|
|
1759
|
+
shippingAddress?: CustomerAddress;
|
|
1760
|
+
accountType?: "private" | "business";
|
|
1761
|
+
guest?: boolean;
|
|
1762
|
+
birthdayDay?: number;
|
|
1763
|
+
birthdayMonth?: number;
|
|
1764
|
+
birthdayYear?: number;
|
|
1765
|
+
title?: string;
|
|
1766
|
+
affiliateCode?: string;
|
|
1767
|
+
campaignCode?: string;
|
|
1768
|
+
};
|
|
1769
|
+
type CustomerRegisterResponse = Customer;
|
|
1770
|
+
type CustomerRegisterGroupConfigResponse = CustomerGroup;
|
|
1771
|
+
type CustomerRegistrationConfirmRequest = {
|
|
1772
|
+
hash: string;
|
|
1773
|
+
em: string;
|
|
1774
|
+
};
|
|
1775
|
+
type CustomerLoginImitateRequest = {
|
|
1776
|
+
token: string;
|
|
1777
|
+
customerId: string;
|
|
1778
|
+
userId: string;
|
|
1779
|
+
};
|
|
1780
|
+
type CustomerLoginImitateResponse = {
|
|
1781
|
+
redirectUrl?: string;
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
type DocumentDownloadRequest = Criteria;
|
|
1785
|
+
type DocumentDownloadResponse = ShopwareDocument;
|
|
1786
|
+
|
|
1787
|
+
type GatewayCheckoutResponse = {
|
|
1788
|
+
paymentMethods?: {
|
|
1789
|
+
total?: number;
|
|
1790
|
+
aggregations?: object;
|
|
1791
|
+
elements?: Array<PaymentMethod>;
|
|
1792
|
+
};
|
|
1793
|
+
shippingMethods?: {
|
|
1794
|
+
total?: number;
|
|
1795
|
+
aggregations?: object;
|
|
1796
|
+
elements?: Array<ShippingMethod>;
|
|
1797
|
+
};
|
|
1798
|
+
errors?: Array<{
|
|
1799
|
+
code?: string;
|
|
1800
|
+
detail?: string;
|
|
1801
|
+
blocking?: boolean;
|
|
1802
|
+
}>;
|
|
1803
|
+
};
|
|
1804
|
+
|
|
1805
|
+
type NewsletterConfirmRequest = {
|
|
1806
|
+
hash: string;
|
|
1807
|
+
em: string;
|
|
1808
|
+
};
|
|
1809
|
+
type NewsletterUpdateRequest = {
|
|
1810
|
+
email: string;
|
|
1811
|
+
option: "direct" | "subscribe" | "unsubscribe" | "confirmSubscribe";
|
|
1812
|
+
storefrontUrl: string;
|
|
1813
|
+
salutationId?: string;
|
|
1814
|
+
firstName?: string;
|
|
1815
|
+
lastName?: string;
|
|
1816
|
+
street?: string;
|
|
1817
|
+
city?: string;
|
|
1818
|
+
zipCode?: string;
|
|
1819
|
+
tags?: string;
|
|
1820
|
+
languageId?: string;
|
|
1821
|
+
customFields?: string;
|
|
1822
|
+
};
|
|
1823
|
+
type NewsletterUnsubscribeRequest = {
|
|
1824
|
+
email: string;
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
type OrderCancelRequest = {
|
|
1828
|
+
orderId: string;
|
|
1829
|
+
};
|
|
1830
|
+
type OrderCancelResponse = StateMachineState;
|
|
1831
|
+
type OrderDownloadFileResponse = Blob;
|
|
1832
|
+
type OrderFromCartRequest = {
|
|
1833
|
+
customerComment?: string;
|
|
1834
|
+
affiliateCode?: string;
|
|
1835
|
+
campaignCode?: string;
|
|
1836
|
+
};
|
|
1837
|
+
type OrderFromCartResponse = Order;
|
|
1838
|
+
type OrderListRequest = Criteria & {
|
|
1839
|
+
checkPromotion?: boolean;
|
|
1840
|
+
};
|
|
1841
|
+
type OrderListResponse = {
|
|
1842
|
+
orders: Array<Order> & EntitySearchResult;
|
|
1843
|
+
paymentChangeable: Record<string, boolean>;
|
|
1844
|
+
};
|
|
1845
|
+
type OrderUpdatePaymentMethodRequest = {
|
|
1846
|
+
paymentMethodId: string;
|
|
1847
|
+
orderId: string;
|
|
1848
|
+
};
|
|
1849
|
+
type OrderUpdatePaymentMethodResponse = {
|
|
1850
|
+
success?: boolean;
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
type OrderPaymentInitiateRequest = {
|
|
1854
|
+
orderId: string;
|
|
1855
|
+
finishUrl?: string;
|
|
1856
|
+
errorUrl?: string;
|
|
1857
|
+
};
|
|
1858
|
+
type OrderPaymentInitiateResponse = {
|
|
1859
|
+
redirectUrl: string;
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1862
|
+
type ProductListRequest = Criteria;
|
|
1863
|
+
type ProductListResponse = EntitySearchResult & {
|
|
1864
|
+
elements?: Array<Product>;
|
|
1865
|
+
};
|
|
1866
|
+
type ProductReviewListRequest = Criteria;
|
|
1867
|
+
type ProductReviewListResponse = EntitySearchResult & {
|
|
1868
|
+
elements?: Array<ProductReview>;
|
|
1869
|
+
};
|
|
1870
|
+
type ProductReviewSaveRequest = {
|
|
1871
|
+
name?: string;
|
|
1872
|
+
email?: string;
|
|
1873
|
+
title: string;
|
|
1874
|
+
content: string;
|
|
1875
|
+
points: number;
|
|
1876
|
+
};
|
|
1877
|
+
type ProductSearchRequest = {
|
|
1878
|
+
search: string;
|
|
1879
|
+
} & ProductListingCriteria & ProductListingFlags;
|
|
1880
|
+
type ProductSearchResponse = ProductListingResult;
|
|
1881
|
+
type ProductSearchSuggestionListRequest = ProductListingFlags & {
|
|
1882
|
+
search: string;
|
|
1883
|
+
};
|
|
1884
|
+
type ProductSearchSuggestionListResponse = ProductListingResult;
|
|
1885
|
+
type ProductSingleRequest = Criteria;
|
|
1886
|
+
type ProductSingleResponse = {
|
|
1887
|
+
product: Product;
|
|
1888
|
+
configurator?: Array<PropertyGroup>;
|
|
1889
|
+
id?: any;
|
|
1890
|
+
available?: any;
|
|
1891
|
+
isCloseout?: any;
|
|
1892
|
+
displayGroup?: any;
|
|
1893
|
+
manufacturerNumber?: any;
|
|
1894
|
+
stock?: any;
|
|
1895
|
+
sortedProperties?: any;
|
|
1896
|
+
};
|
|
1897
|
+
type ProductVariantWithOptionsRequest = {
|
|
1898
|
+
options: Array<string>;
|
|
1899
|
+
switchedGroup?: string;
|
|
1900
|
+
};
|
|
1901
|
+
type ProductVariantWithOptionsResponse = {
|
|
1902
|
+
foundCombination?: {
|
|
1903
|
+
variantId?: string;
|
|
1904
|
+
options: Array<string>;
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
type ProductListingListWithCategoryRequest = ProductListingCriteria & ProductListingFlags;
|
|
1908
|
+
type ProductListingListWithCategoryResponse = ProductListingResult;
|
|
1909
|
+
type ProductCrossSellingGroupListResponse = Array<CrossSellingElement>;
|
|
1910
|
+
|
|
1911
|
+
type SeoRouteListRequest = Criteria;
|
|
1912
|
+
type SeoRouteListResponse = EntitySearchResult & {
|
|
1913
|
+
elements?: Array<SeoUrlEntity>;
|
|
1914
|
+
};
|
|
1915
|
+
type SitemapDownloadResponse = Blob;
|
|
1916
|
+
type SitemapListResponse = Array<Sitemap>;
|
|
1917
|
+
|
|
1918
|
+
type CountryListRequest = Criteria;
|
|
1919
|
+
type CountryListResponse = EntitySearchResult & {
|
|
1920
|
+
elements?: Array<Country>;
|
|
1921
|
+
};
|
|
1922
|
+
type CountryStateListRequest = Criteria;
|
|
1923
|
+
type CountryStateListResponse = EntitySearchResult & {
|
|
1924
|
+
elements?: Array<CountryState>;
|
|
1925
|
+
};
|
|
1926
|
+
type CurrencyListRequest = Criteria;
|
|
1927
|
+
type CurrencyListResponse = EntitySearchResult & {
|
|
1928
|
+
elements?: Array<Currency>;
|
|
1929
|
+
};
|
|
1930
|
+
type LanguageListRequest = Criteria;
|
|
1931
|
+
type LanguageListResponse = EntitySearchResult & {
|
|
1932
|
+
elements?: Array<Language>;
|
|
1933
|
+
};
|
|
1934
|
+
type SalutationListRequest = Criteria;
|
|
1935
|
+
type SalutationListResponse = EntitySearchResult & {
|
|
1936
|
+
elements?: Array<Salutation>;
|
|
1937
|
+
};
|
|
1938
|
+
type ShippingMethodListRequest = Criteria;
|
|
1939
|
+
type ShippingMethodListResponse = EntitySearchResult & {
|
|
1940
|
+
elements?: Array<ShippingMethod>;
|
|
1941
|
+
};
|
|
1942
|
+
type PaymentMethodListRequest = Criteria & {
|
|
1943
|
+
onlyAvailable?: boolean;
|
|
1944
|
+
};
|
|
1945
|
+
type PaymentMethodListResponse = {
|
|
1946
|
+
total?: number;
|
|
1947
|
+
aggregations?: object;
|
|
1948
|
+
elements?: Array<PaymentMethod>;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
type WishlistGetRequest = Criteria;
|
|
1952
|
+
type WishlistGetResponse = {
|
|
1953
|
+
wishlist?: {
|
|
1954
|
+
customerId?: string;
|
|
1955
|
+
salesChannelId?: string;
|
|
1956
|
+
};
|
|
1957
|
+
products?: ProductListingResult;
|
|
1958
|
+
};
|
|
1959
|
+
type WishlistMergeOrCreateRequest = {
|
|
1960
|
+
productIds?: Array<string>;
|
|
1961
|
+
};
|
|
1962
|
+
type WishlistMergeOrCreateResponse = {
|
|
1963
|
+
success?: boolean;
|
|
1964
|
+
};
|
|
1965
|
+
type WishlistProductAddResponse = {
|
|
1966
|
+
success?: boolean;
|
|
1967
|
+
};
|
|
1968
|
+
type WishlistProductRemoveResponse = {
|
|
1969
|
+
success?: boolean;
|
|
1970
|
+
};
|
|
1971
|
+
|
|
1972
|
+
declare enum HTTPRequestMethod {
|
|
1973
|
+
GET = "GET",
|
|
1974
|
+
POST = "POST",
|
|
1975
|
+
DELETE = "DELETE",
|
|
1976
|
+
PATCH = "PATCH",
|
|
1977
|
+
PUT = "PUT",
|
|
1978
|
+
OPTIONS = "OPTIONS"
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
declare abstract class Payload<T> {
|
|
1982
|
+
abstract contentType(): string;
|
|
1983
|
+
abstract deserialize(data: Blob): Promise<void>;
|
|
1984
|
+
abstract serialize(): T | undefined;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
type ClientRequestOptions = {
|
|
1988
|
+
method?: HTTPRequestMethod;
|
|
1989
|
+
headers?: Record<string, string>;
|
|
1990
|
+
body?: Payload<any>;
|
|
1991
|
+
maxAge?: number;
|
|
1992
|
+
};
|
|
1993
|
+
|
|
1994
|
+
type ClientResponse = {
|
|
1995
|
+
statusCode: number;
|
|
1996
|
+
statusMessage: string;
|
|
1997
|
+
headers?: Headers;
|
|
1998
|
+
body?: Payload<any>;
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
type RequestCacheEntry = {
|
|
2002
|
+
cachedAt: number;
|
|
2003
|
+
response: ClientResponse;
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
declare class Client {
|
|
2007
|
+
protected readonly client: ShopwareClient;
|
|
2008
|
+
constructor(client: ShopwareClient);
|
|
2009
|
+
protected doRequest(method: HTTPRequestMethod, path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2010
|
+
protected get(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2011
|
+
protected post(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2012
|
+
protected delete(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2013
|
+
protected patch(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2014
|
+
protected put(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2015
|
+
protected options(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2016
|
+
protected withContextToken(options?: ClientRequestOptions): ClientRequestOptions;
|
|
2017
|
+
protected withOAuth(options?: ClientRequestOptions): Promise<ClientRequestOptions>;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
declare class AccountClient extends Client {
|
|
2021
|
+
getNewsletterRecipientList(request?: AccountNewsletterRecipientListRequest): Promise<AccountNewsletterRecipientListResponse>;
|
|
2022
|
+
changeProfile(request: AccountUpdateRequest): Promise<AccountUpdateResponse>;
|
|
2023
|
+
changeEmail(request: AccountEmailChangeRequest): Promise<AccountEmailChangeResponse>;
|
|
2024
|
+
changeLanguage(request: AccountLanguageChangeRequest): Promise<AccountLanguageChangeResponse>;
|
|
2025
|
+
changePassword(request: AccountPasswordChangeRequest): Promise<AccountPasswordChangeResponse>;
|
|
2026
|
+
changePaymentMethod(paymentMethodId: string): Promise<AccountPaymentMethodChangeResponse>;
|
|
2027
|
+
isCustomerRecoveryExpired(request: AccountRecoveryExpiryCheckRequest): Promise<AccountRecoveryExpiryCheckResponse>;
|
|
2028
|
+
getCustomer(request?: AccountGetRequest): Promise<AccountGetResponse>;
|
|
2029
|
+
deleteCustomer(): Promise<undefined>;
|
|
2030
|
+
confirmRecoveryPassword(request: AccountPasswordRecoveryRequest): Promise<AccountPasswordRecoveryResponse>;
|
|
2031
|
+
requestPasswordRecoveryMail(request: AccountPasswordRecoveryMailRequest): Promise<AccountPasswordRecoveryMailResponse>;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
declare class AddressClient extends Client {
|
|
2035
|
+
deleteAddress(addressId: string): Promise<undefined>;
|
|
2036
|
+
updateAddress(addressId: string, request: AddressUpdateRequest): Promise<AddressUpdateResponse>;
|
|
2037
|
+
getAddressList(request?: AddressListRequest): Promise<AddressListResponse>;
|
|
2038
|
+
changeDefaultShippingAddress(addressId: string): Promise<undefined>;
|
|
2039
|
+
changeDefaultBillingAddress(addressId: string): Promise<undefined>;
|
|
2040
|
+
createAddress(request: AddressCreateRequest): Promise<AddressCreateResponse>;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
declare class CartClient extends Client {
|
|
2044
|
+
getOrCreateCart(): Promise<CartGetOrCreateResponse>;
|
|
2045
|
+
deleteCart(): Promise<CartDeleteResponse>;
|
|
2046
|
+
addLineItemsToCart(request: CartAddItemsRequest): Promise<CartAddItemsResponse>;
|
|
2047
|
+
removeLineItemsFromCart(request: CartRemoveItemsRequest): Promise<CartRemoveItemsResponse>;
|
|
2048
|
+
updateLineItemsInCart(request: CartUpdateItemsRequest): Promise<CartUpdateItemsResponse>;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
declare class CategoryClient extends Client {
|
|
2052
|
+
getCategoryList(request?: CategoryListRequest): Promise<CategoryListResponse>;
|
|
2053
|
+
getCategory(categoryId: string, includeSeoUrls: boolean, request: CategorySingleRequest): Promise<CategorySingleResponse>;
|
|
2054
|
+
getNavigationMenu(activeId: string, rootId: string, includeSeoUrls: boolean, request?: NavigationMenuRequest): Promise<NavigationMenuResponse>;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
declare class ContentClient extends Client {
|
|
2058
|
+
submitContactForm(request: ContactFormSubmitRequest): Promise<ContactFormSubmitResponse>;
|
|
2059
|
+
resolveCMSPage(id: string): Promise<CMSPageResolveResponse>;
|
|
2060
|
+
resolveMedia(request: MediaEntityResolveRequest): Promise<MediaEntityResolveResponse>;
|
|
2061
|
+
resolveLandingPage(landingPageId: string, request: LandingPageResolveRequest): Promise<LandingPageResolveResponse>;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
declare class ContextClient extends Client {
|
|
2065
|
+
getContext(): Promise<ContextGetResponse>;
|
|
2066
|
+
updateContext(context: ContextUpdateRequest): Promise<ContextUpdateResponse>;
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
declare class CustomerAuthenticationClient extends Client {
|
|
2070
|
+
login(request: CustomerLoginRequest): Promise<CustomerLoginResponse>;
|
|
2071
|
+
imitateLogin(request: CustomerLoginImitateRequest): Promise<CustomerLoginImitateResponse>;
|
|
2072
|
+
logout(): Promise<CustomerLogoutResponse>;
|
|
2073
|
+
confirmRegistration(request: CustomerRegistrationConfirmRequest): Promise<undefined>;
|
|
2074
|
+
register(request: CustomerRegisterRequest): Promise<CustomerRegisterResponse>;
|
|
2075
|
+
getRegistrationSettingsForGroup(customerGroupId: string): Promise<CustomerRegisterGroupConfigResponse>;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
declare class DocumentClient extends Client {
|
|
2079
|
+
downloadDocument(deepLinkCode: string, documentId: string, request: DocumentDownloadRequest): Promise<DocumentDownloadResponse>;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
declare class GatewayClient extends Client {
|
|
2083
|
+
checkout(): Promise<GatewayCheckoutResponse>;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
declare class NewsletterClient extends Client {
|
|
2087
|
+
confirmSubscription(request: NewsletterConfirmRequest): Promise<undefined>;
|
|
2088
|
+
updateSubscription(request: NewsletterUpdateRequest): Promise<undefined>;
|
|
2089
|
+
unsubscribe(request: NewsletterUnsubscribeRequest): Promise<undefined>;
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
declare class OrderClient extends Client {
|
|
2093
|
+
cancelOrder(request: OrderCancelRequest): Promise<OrderCancelResponse>;
|
|
2094
|
+
getOrderList(request?: OrderListRequest): Promise<OrderListResponse>;
|
|
2095
|
+
updateOrderPaymentMethod(request: OrderUpdatePaymentMethodRequest): Promise<OrderUpdatePaymentMethodResponse>;
|
|
2096
|
+
downloadPurchasedFile(downloadId: string, orderId: string): Promise<OrderDownloadFileResponse>;
|
|
2097
|
+
createOrderFromCart(request?: OrderFromCartRequest): Promise<OrderFromCartResponse>;
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
declare class PaymentClient extends Client {
|
|
2101
|
+
initiateOrderPayment(request: OrderPaymentInitiateRequest): Promise<OrderPaymentInitiateResponse>;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
declare class ProductClient extends Client {
|
|
2105
|
+
getProductListingByCategory(categoryId: string, request?: ProductListingListWithCategoryRequest): Promise<ProductListingListWithCategoryResponse>;
|
|
2106
|
+
getCrossSellingGroupsForProduct(productId: string): Promise<ProductCrossSellingGroupListResponse>;
|
|
2107
|
+
getProduct(productId: string, includeSeoUrls: boolean, request?: ProductSingleRequest): Promise<ProductSingleResponse>;
|
|
2108
|
+
getProductList(request?: ProductListRequest): Promise<ProductListResponse>;
|
|
2109
|
+
getReviewsForProduct(productId: string, request?: ProductReviewListRequest): Promise<ProductReviewListResponse>;
|
|
2110
|
+
saveReviewForProduct(productId: string, request: ProductReviewSaveRequest): Promise<undefined>;
|
|
2111
|
+
findProductVariantWithOptions(productId: string, request: ProductVariantWithOptionsRequest): Promise<ProductVariantWithOptionsResponse>;
|
|
2112
|
+
searchProducts(request: ProductSearchRequest): Promise<ProductSearchResponse>;
|
|
2113
|
+
getSearchSuggestions(request: ProductSearchSuggestionListRequest): Promise<ProductSearchSuggestionListResponse>;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
declare class SeoClient extends Client {
|
|
2117
|
+
getSeoRouteList(request?: SeoRouteListRequest): Promise<SeoRouteListResponse>;
|
|
2118
|
+
fetchSitemapList(): Promise<SitemapListResponse>;
|
|
2119
|
+
downloadSitemap(filePath: string): Promise<SitemapDownloadResponse>;
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
declare class SystemClient extends Client {
|
|
2123
|
+
getLanguageList(request?: LanguageListRequest): Promise<LanguageListResponse>;
|
|
2124
|
+
getSalutationList(request?: SalutationListRequest): Promise<SalutationListResponse>;
|
|
2125
|
+
getCurrencyList(request?: CurrencyListRequest): Promise<CurrencyListResponse>;
|
|
2126
|
+
getCountryStateList(countryId: string, request?: CountryStateListRequest): Promise<CountryStateListResponse>;
|
|
2127
|
+
getCountryList(request?: CountryListRequest): Promise<CountryListResponse>;
|
|
2128
|
+
getShippingMethodList(request?: ShippingMethodListRequest): Promise<ShippingMethodListResponse>;
|
|
2129
|
+
getPaymentMethodList(request?: PaymentMethodListRequest): Promise<PaymentMethodListResponse>;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
declare class WishlistClient extends Client {
|
|
2133
|
+
addProductToWishlist(productId: string): Promise<WishlistProductAddResponse>;
|
|
2134
|
+
getWishlist(request?: WishlistGetRequest): Promise<WishlistGetResponse>;
|
|
2135
|
+
mergeOrCreateWishlist(request: WishlistMergeOrCreateRequest): Promise<WishlistMergeOrCreateResponse>;
|
|
2136
|
+
removeProductFromWishlist(productId: string): Promise<WishlistProductRemoveResponse>;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
interface AuthenticationEntry {
|
|
2140
|
+
getType(): AuthenticationType;
|
|
2141
|
+
isSaved(): boolean;
|
|
2142
|
+
save(response: ClientResponse): void;
|
|
2143
|
+
clear(): void;
|
|
2144
|
+
load(): ClientRequestOptions;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
declare enum AuthenticationType {
|
|
2148
|
+
CONTEXT_TOKEN = "context_token",
|
|
2149
|
+
OAUTH = "oauth"
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
declare class AuthenticationStore {
|
|
2153
|
+
entries: Map<AuthenticationType, AuthenticationEntry>;
|
|
2154
|
+
getOrCreateEntry(entry: AuthenticationEntry): AuthenticationEntry;
|
|
2155
|
+
getEntry(type: AuthenticationType): AuthenticationEntry | undefined;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
declare class ShopwareClient {
|
|
2159
|
+
private readonly baseUrl;
|
|
2160
|
+
private readonly apiKey;
|
|
2161
|
+
readonly authStore: AuthenticationStore;
|
|
2162
|
+
readonly cache: Map<string, RequestCacheEntry>;
|
|
2163
|
+
constructor(baseUrl: string, apiKey: string);
|
|
2164
|
+
doRequest(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
2165
|
+
private parseBody;
|
|
2166
|
+
withContextToken(options: ClientRequestOptions): ClientRequestOptions;
|
|
2167
|
+
withOAuth(options: ClientRequestOptions): Promise<ClientRequestOptions>;
|
|
2168
|
+
forAccount(): AccountClient;
|
|
2169
|
+
forAddress(): AddressClient;
|
|
2170
|
+
forCart(): CartClient;
|
|
2171
|
+
forCategory(): CategoryClient;
|
|
2172
|
+
forContent(): ContentClient;
|
|
2173
|
+
forContext(): ContextClient;
|
|
2174
|
+
forCustomerAuthentication(): CustomerAuthenticationClient;
|
|
2175
|
+
forDocument(): DocumentClient;
|
|
2176
|
+
forGateway(): GatewayClient;
|
|
2177
|
+
forNewsletter(): NewsletterClient;
|
|
2178
|
+
forOrder(): OrderClient;
|
|
2179
|
+
forPayment(): PaymentClient;
|
|
2180
|
+
forProduct(): ProductClient;
|
|
2181
|
+
forSeo(): SeoClient;
|
|
2182
|
+
forSystem(): SystemClient;
|
|
2183
|
+
forWishlist(): WishlistClient;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
export { ShopwareClient };
|