@wix/auto_sdk_ecom_draft-orders 1.0.23 → 1.0.25
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/build/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js +18 -2
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js +213 -2
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +457 -136
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
- package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.js +16 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
- package/build/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.js +211 -0
- package/build/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
- package/build/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +457 -136
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
- package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js +18 -2
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js +213 -2
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +459 -137
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
- package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +17 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js +16 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +54 -34
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js +54 -34
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +62 -43
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js +211 -0
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.d.ts +207 -86
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js +11 -7
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +459 -137
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js +115 -47
- package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, CommitDraftOrderOptions, CommitDraftOrderResponse, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateDraftOrderResponse, CreateEmptyDraftOrderResponse, CreateOrderFromDraftOptions, CreateOrderFromDraftResponse, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsResponse, DraftOrdersQueryBuilder, GetDraftOrderResponse, GetOrderDraftabilityStatusResponse, IdAndApplied, LineItemChangeDetails, SetAdditionalFeesResponse, SetBillingInfoOptions, SetBillingInfoResponse, SetBusinessLocationOptions, SetBusinessLocationResponse, SetBuyerInfoOptions, SetBuyerInfoResponse, SetDiscountsResponse, SetRecipientInfoOptions, SetRecipientInfoResponse, SetShippingInfoOptions, SetShippingInfoResponse, SetTaxExemptionOptions, SetTaxExemptionResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateLineItemsResponse } from './ecom-v1-draft-order-draft-orders.universal.js';
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderResponse, CommitDraftOrderOptions, CommitDraftOrderResponse, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsResponse, CreateDraftOrderResponse, CreateEmptyDraftOrderResponse, CreateOrderFromDraftOptions, CreateOrderFromDraftResponse, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsResponse, DraftOrderCreatedEnvelope, DraftOrderDeletedEnvelope, DraftOrderUpdatedEnvelope, DraftOrdersQueryBuilder, GetDraftOrderResponse, GetOrderDraftabilityStatusResponse, IdAndApplied, LineItemChangeDetails, SetAdditionalFeesResponse, SetBillingInfoOptions, SetBillingInfoResponse, SetBusinessLocationOptions, SetBusinessLocationResponse, SetBuyerInfoOptions, SetBuyerInfoResponse, SetDiscountsResponse, SetRecipientInfoOptions, SetRecipientInfoResponse, SetShippingInfoOptions, SetShippingInfoResponse, SetTaxExemptionOptions, SetTaxExemptionResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateLineItemsResponse } from './ecom-v1-draft-order-draft-orders.universal.js';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function createDraftOrder(httpClient: HttpClient): CreateDraftOrderSignature;
|
|
7
7
|
interface CreateDraftOrderSignature {
|
|
8
8
|
/**
|
|
9
|
-
* Creates or
|
|
9
|
+
* Creates or retrieves a draft order based on the specified order ID.
|
|
10
10
|
*
|
|
11
|
-
* When passing the ID of an order that is already in draft, the existing draft order
|
|
12
|
-
* To complete a draft and update the order, call Commit Draft Order
|
|
13
|
-
* @param -
|
|
11
|
+
* When passing the ID of an order that is already in draft, the existing draft order is returned.
|
|
12
|
+
* To complete a draft and update the original order, call Commit Draft Order.
|
|
13
|
+
* @param - ID of the order to create a draft for.
|
|
14
14
|
*/
|
|
15
15
|
(orderId: string): Promise<CreateDraftOrderResponse>;
|
|
16
16
|
}
|
|
@@ -18,13 +18,15 @@ export declare function createEmptyDraftOrder(httpClient: HttpClient): CreateEmp
|
|
|
18
18
|
interface CreateEmptyDraftOrderSignature {
|
|
19
19
|
/**
|
|
20
20
|
* Creates an empty draft order.
|
|
21
|
+
*
|
|
22
|
+
* After all relevant details are applied, call Create Order From Draft to convert the draft order to a regular order.
|
|
21
23
|
*/
|
|
22
24
|
(): Promise<CreateEmptyDraftOrderResponse>;
|
|
23
25
|
}
|
|
24
26
|
export declare function addLineItemsToDraftOrder(httpClient: HttpClient): AddLineItemsToDraftOrderSignature;
|
|
25
27
|
interface AddLineItemsToDraftOrderSignature {
|
|
26
28
|
/**
|
|
27
|
-
* Adds line items to a draft order.
|
|
29
|
+
* Adds catalog or custom line items to a draft order.
|
|
28
30
|
* @param - Draft order ID.
|
|
29
31
|
*/
|
|
30
32
|
(draftOrderId: string, options?: AddLineItemsToDraftOrderOptions | undefined): Promise<AddLineItemsToDraftOrderResponse>;
|
|
@@ -34,11 +36,11 @@ interface UpdateLineItemsSignature {
|
|
|
34
36
|
/**
|
|
35
37
|
* Updates a draft order's line items.
|
|
36
38
|
*
|
|
37
|
-
*
|
|
39
|
+
* You can update a line item's quantity, price, and description.
|
|
38
40
|
* > **Notes:**
|
|
39
|
-
* > +
|
|
41
|
+
* > + Specifying a quantity of `0` will remove the line item.
|
|
40
42
|
* > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.
|
|
41
|
-
* > + Quantity cannot be decreased fulfilled line items. To
|
|
43
|
+
* > + Quantity cannot be decreased for fulfilled line items. To retrieve fulfillment information, specify the order ID when calling List Fulfillments For Single Order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/order-fulfillments/list-fulfillments-for-single-order) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-fulfillments/list-fulfillments-for-single-order)).
|
|
42
44
|
* @param - Draft order ID.
|
|
43
45
|
* @param - Details of changes to apply per line item.
|
|
44
46
|
*/
|
|
@@ -49,21 +51,22 @@ interface SetDiscountsSignature {
|
|
|
49
51
|
/**
|
|
50
52
|
* Applies or unapplies discounts on a draft order.
|
|
51
53
|
*
|
|
52
|
-
* Unapplied discounts are still part of draft order, but do not affect balance.
|
|
53
|
-
* Existing discounts
|
|
54
|
+
* Unapplied discounts are still part of the draft order, but do not affect balance.
|
|
55
|
+
* Existing discounts that are not passed in the request will keep their current state.
|
|
54
56
|
* @param - Draft order ID.
|
|
55
|
-
* @param -
|
|
56
|
-
*
|
|
57
|
+
* @param - Discounts to set on the draft order.
|
|
58
|
+
*
|
|
59
|
+
* Any existing discounts that are not passed will not change.
|
|
57
60
|
*/
|
|
58
61
|
(draftOrderId: string, discounts: IdAndApplied[]): Promise<SetDiscountsResponse>;
|
|
59
62
|
}
|
|
60
63
|
export declare function createCustomDiscounts(httpClient: HttpClient): CreateCustomDiscountsSignature;
|
|
61
64
|
interface CreateCustomDiscountsSignature {
|
|
62
65
|
/**
|
|
63
|
-
*
|
|
66
|
+
* Creates custom discounts.
|
|
64
67
|
*
|
|
65
|
-
* Newly
|
|
66
|
-
* To apply them, use Set Discounts
|
|
68
|
+
* Newly created discounts are unapplied by default.
|
|
69
|
+
* To apply them, use Set Discounts.
|
|
67
70
|
* @param - Draft order ID.
|
|
68
71
|
*/
|
|
69
72
|
(draftOrderId: string, options?: CreateCustomDiscountsOptions | undefined): Promise<CreateCustomDiscountsResponse>;
|
|
@@ -71,9 +74,9 @@ interface CreateCustomDiscountsSignature {
|
|
|
71
74
|
export declare function deleteCustomDiscounts(httpClient: HttpClient): DeleteCustomDiscountsSignature;
|
|
72
75
|
interface DeleteCustomDiscountsSignature {
|
|
73
76
|
/**
|
|
74
|
-
*
|
|
77
|
+
* Removes custom discounts from a draft order.
|
|
75
78
|
* @param - Draft order ID.
|
|
76
|
-
* @param -
|
|
79
|
+
* @param - IDs of the discounts to remove from the draft order.
|
|
77
80
|
*/
|
|
78
81
|
(draftOrderId: string, discountIds: string[]): Promise<DeleteCustomDiscountsResponse>;
|
|
79
82
|
}
|
|
@@ -82,11 +85,12 @@ interface SetAdditionalFeesSignature {
|
|
|
82
85
|
/**
|
|
83
86
|
* Applies or unapplies additional fees on a draft order.
|
|
84
87
|
*
|
|
85
|
-
*
|
|
86
|
-
* Existing additional fees
|
|
88
|
+
* Additional fees that are not applied are still part of the draft order, but do not affect balance.
|
|
89
|
+
* Existing additional fees that are not passed in the request will keep their current state.
|
|
87
90
|
* @param - Draft order ID.
|
|
88
|
-
* @param - Additional
|
|
89
|
-
*
|
|
91
|
+
* @param - Additional fees to set on the draft order.
|
|
92
|
+
*
|
|
93
|
+
* Any existing additional fees that are not passed will not change.
|
|
90
94
|
*/
|
|
91
95
|
(draftOrderId: string, additionalFees: IdAndApplied[]): Promise<SetAdditionalFeesResponse>;
|
|
92
96
|
}
|
|
@@ -95,8 +99,8 @@ interface CreateCustomAdditionalFeesSignature {
|
|
|
95
99
|
/**
|
|
96
100
|
* Creates custom additional fees on a draft order.
|
|
97
101
|
*
|
|
98
|
-
* Newly
|
|
99
|
-
* To apply them, use Set Additional Fees
|
|
102
|
+
* Newly created additional fees are not applied by default.
|
|
103
|
+
* To apply them, use Set Additional Fees.
|
|
100
104
|
* @param - Draft order ID.
|
|
101
105
|
*/
|
|
102
106
|
(draftOrderId: string, options?: CreateCustomAdditionalFeesOptions | undefined): Promise<CreateCustomAdditionalFeesResponse>;
|
|
@@ -104,9 +108,9 @@ interface CreateCustomAdditionalFeesSignature {
|
|
|
104
108
|
export declare function deleteCustomAdditionalFees(httpClient: HttpClient): DeleteCustomAdditionalFeesSignature;
|
|
105
109
|
interface DeleteCustomAdditionalFeesSignature {
|
|
106
110
|
/**
|
|
107
|
-
*
|
|
111
|
+
* Removes custom additional fees from a draft order.
|
|
108
112
|
* @param - Draft order ID.
|
|
109
|
-
* @param -
|
|
113
|
+
* @param - IDs of the additional fees to remove from the draft order.
|
|
110
114
|
*/
|
|
111
115
|
(draftOrderId: string, customAdditionalFees: string[]): Promise<DeleteCustomAdditionalFeesResponse>;
|
|
112
116
|
}
|
|
@@ -145,12 +149,14 @@ interface SetBillingInfoSignature {
|
|
|
145
149
|
export declare function getDraftOrder(httpClient: HttpClient): GetDraftOrderSignature;
|
|
146
150
|
interface GetDraftOrderSignature {
|
|
147
151
|
/**
|
|
148
|
-
*
|
|
152
|
+
* Retrieves a draft order.
|
|
149
153
|
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
+
* The retrieved draft order contains the latest calculations:
|
|
155
|
+
* + Line items, shipping details, and buyer information.
|
|
156
|
+
* + Tax details and price totals.
|
|
157
|
+
* + Automatic discounts and automatic additional fees, along with updated eligibility.
|
|
158
|
+
*
|
|
159
|
+
* > **Note:** When retrieving a committed draft order, it **is not recalculated**.
|
|
154
160
|
* @param - Draft order ID.
|
|
155
161
|
*/
|
|
156
162
|
(draftOrderId: string): Promise<GetDraftOrderResponse>;
|
|
@@ -158,18 +164,21 @@ interface GetDraftOrderSignature {
|
|
|
158
164
|
export declare function getOrderDraftabilityStatus(httpClient: HttpClient): GetOrderDraftabilityStatusSignature;
|
|
159
165
|
interface GetOrderDraftabilityStatusSignature {
|
|
160
166
|
/**
|
|
161
|
-
* Checks whether a draft can be created for
|
|
162
|
-
* @param - Order
|
|
167
|
+
* Checks whether a draft can be created for an order.
|
|
168
|
+
* @param - Order ID.
|
|
163
169
|
*/
|
|
164
170
|
(orderId: string): Promise<GetOrderDraftabilityStatusResponse>;
|
|
165
171
|
}
|
|
166
172
|
export declare function commitDraftOrder(httpClient: HttpClient): CommitDraftOrderSignature;
|
|
167
173
|
interface CommitDraftOrderSignature {
|
|
168
174
|
/**
|
|
169
|
-
*
|
|
175
|
+
* Finalizes a draft order and applies its modifications to the associated order.
|
|
176
|
+
* You can also control which side-effects are executed on commit.
|
|
170
177
|
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
178
|
+
* > **Notes:**
|
|
179
|
+
* > + The draft order's status is set to `COMMITTED`.
|
|
180
|
+
* > + Commiting a draft order cannot be undone or reverted.
|
|
181
|
+
* > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
|
|
173
182
|
* @param - Draft order ID.
|
|
174
183
|
*/
|
|
175
184
|
(draftOrderId: string, options?: CommitDraftOrderOptions | undefined): Promise<CommitDraftOrderResponse>;
|
|
@@ -177,10 +186,12 @@ interface CommitDraftOrderSignature {
|
|
|
177
186
|
export declare function createOrderFromDraft(httpClient: HttpClient): CreateOrderFromDraftSignature;
|
|
178
187
|
interface CreateOrderFromDraftSignature {
|
|
179
188
|
/**
|
|
180
|
-
* Creates a new order while specifying which side-effects are executed.
|
|
189
|
+
* Creates a new order from a draft, while specifying which side-effects are executed.
|
|
181
190
|
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
191
|
+
* > **Notes:**
|
|
192
|
+
* > + The draft order's status is set to `COMMITTED`.
|
|
193
|
+
* > + Commiting a draft order cannot be undone or reverted.
|
|
194
|
+
* > + A committed draft order does not allow for further modifications. However, it is kept for reference and can be retrieved.
|
|
184
195
|
* @param - Draft order ID.
|
|
185
196
|
*/
|
|
186
197
|
(draftOrderId: string, options?: CreateOrderFromDraftOptions | undefined): Promise<CreateOrderFromDraftResponse>;
|
|
@@ -190,7 +201,7 @@ interface DeleteDraftOrderSignature {
|
|
|
190
201
|
/**
|
|
191
202
|
* Deletes a draft order along with all its pending changes.
|
|
192
203
|
*
|
|
193
|
-
* Draft orders
|
|
204
|
+
* Draft orders with status 'COMMITTED' cannot be deleted.
|
|
194
205
|
* @param - Draft order ID.
|
|
195
206
|
*/
|
|
196
207
|
(draftOrderId: string): Promise<void>;
|
|
@@ -207,6 +218,7 @@ interface QueryDraftOrdersSignature {
|
|
|
207
218
|
* | `_updatedDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable |
|
|
208
219
|
* | `status` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()` | Sortable |
|
|
209
220
|
* | `orderId` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `startsWith()` | |
|
|
221
|
+
*
|
|
210
222
|
* To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
|
|
211
223
|
*/
|
|
212
224
|
(): DraftOrdersQueryBuilder;
|
|
@@ -223,7 +235,9 @@ interface UpdateExtendedFieldsSignature {
|
|
|
223
235
|
export declare function setTaxExemption(httpClient: HttpClient): SetTaxExemptionSignature;
|
|
224
236
|
interface SetTaxExemptionSignature {
|
|
225
237
|
/**
|
|
226
|
-
* Sets
|
|
238
|
+
* Sets whether a draft order is tax-exempt.
|
|
239
|
+
*
|
|
240
|
+
* A tax exempted draft order ignores taxes during calculation. Tax information will return empty.
|
|
227
241
|
* @param - Draft order ID.
|
|
228
242
|
*/
|
|
229
243
|
(draftOrderId: string, options: SetTaxExemptionOptions): Promise<SetTaxExemptionResponse>;
|
|
@@ -232,8 +246,13 @@ export declare function setBusinessLocation(httpClient: HttpClient): SetBusiness
|
|
|
232
246
|
interface SetBusinessLocationSignature {
|
|
233
247
|
/**
|
|
234
248
|
* Sets business location on a draft order.
|
|
249
|
+
*
|
|
250
|
+
* When committed, the order will become associated to a specific business location. This affects who can see and manage this order, and how it is calculated in reports.
|
|
235
251
|
* @param - Draft order ID.
|
|
236
252
|
*/
|
|
237
253
|
(draftOrderId: string, options?: SetBusinessLocationOptions | undefined): Promise<SetBusinessLocationResponse>;
|
|
238
254
|
}
|
|
239
|
-
export
|
|
255
|
+
export declare const onDraftOrderCreated: EventDefinition<DraftOrderCreatedEnvelope, "wix.ecom.v1.draft_order_created">;
|
|
256
|
+
export declare const onDraftOrderDeleted: EventDefinition<DraftOrderDeletedEnvelope, "wix.ecom.v1.draft_order_deleted">;
|
|
257
|
+
export declare const onDraftOrderUpdated: EventDefinition<DraftOrderUpdatedEnvelope, "wix.ecom.v1.draft_order_updated">;
|
|
258
|
+
export { ActionEvent, Activity, ActivityContentOneOf, ActivityType, AddLineItemsToDraftOrderOptions, AddLineItemsToDraftOrderRequest, AddLineItemsToDraftOrderResponse, AdditionalFee, AdditionalFeeDetails, AdditionalFeeOption, Address, AddressLocation, AddressWithContact, AdjustmentType, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AttributionSource, AuthorizedPaymentCaptured, AuthorizedPaymentCreated, AuthorizedPaymentVoided, Balance, BalanceSummary, BaseEventMetadata, BillingAdjustment, BillingAdjustmentPriceSummary, BillingChangedDetails, BillingDetails, BillingDetailsChangeTypeOneOf, BusinessLocationChangedDetails, BusinessLocationDetails, BusinessLocationDetailsChangeTypeOneOf, BuyerChangedDetails, BuyerDetails, BuyerDetailsChangeTypeOneOf, BuyerInfo, BuyerInfoIdOneOf, CalculatedDraftOrder, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, CatalogReference, CatalogReferenceLineItem, ChannelInfo, ChannelType, Color, CommitDraftOrderOptions, CommitDraftOrderRequest, CommitDraftOrderResponse, Coupon, CreateCustomAdditionalFeesOptions, CreateCustomAdditionalFeesRequest, CreateCustomAdditionalFeesResponse, CreateCustomDiscountsOptions, CreateCustomDiscountsRequest, CreateCustomDiscountsResponse, CreateDraftOrderRequest, CreateDraftOrderResponse, CreateEmptyDraftOrderRequest, CreateEmptyDraftOrderResponse, CreateOrderFromDraftOptions, CreateOrderFromDraftRequest, CreateOrderFromDraftResponse, CreatedBy, CreatedByStringOneOf, CreditCardDetails, CurrencyConversionDetails, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomActivity, CustomField, CustomLineItem, DeleteCustomAdditionalFeesRequest, DeleteCustomAdditionalFeesResponse, DeleteCustomDiscountsRequest, DeleteCustomDiscountsResponse, DeleteDraftOrderRequest, DeleteDraftOrderResponse, DeliveryLogistics, DeliveryTimeSlot, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DigitalFile, DiscountDetails, DiscountOption, DiscountOptionDiscountAmountOneOf, DiscountReason, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, DraftOrder, DraftOrderChangesApplied, DraftOrderCommitSettings, DraftOrderCreatedEnvelope, DraftOrderDeletedEnvelope, DraftOrderUpdatedEnvelope, DraftOrdersQueryBuilder, DraftOrdersQueryResult, EditingStatus, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReceipt, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FulfillmentStatus, FulfillmentStatusesAggregate, FullAddressContactDetails, GetDraftOrderRequest, GetDraftOrderResponse, GetOrderDraftabilityStatusRequest, GetOrderDraftabilityStatusResponse, GiftCardPaymentRefund, IdAndApplied, IdentificationData, IdentificationDataIdOneOf, InventoryUpdate, ItemChangedDetails, ItemDetails, ItemDetailsChangeTypeOneOf, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItemAmount, LineItemChangeDetails, LineItemChanges, LineItemDiscount, LineItemExchangeData, LineItemPriceChange, LineItemQuantityChange, LineItemQuantityChangeType, LineItemTaxBreakdown, LineItemTaxInfo, Location, LocationAndQuantity, ManagedAdditionalFee, ManagedDiscount, ManagedLineItem, MembershipPaymentRefund, MerchantComment, MerchantDiscount, MerchantDiscountMerchantDiscountReasonOneOf, MessageEnvelope, ModifierGroup, NewExchangeOrderCreated, NonDraftableReason, Order, OrderChange, OrderChangeValueOneOf, OrderCreateNotifications, OrderCreateSettings, OrderCreatedFromExchange, OrderLineItem, OrderRefunded, OrderStatus, OrderTaxBreakdown, OrderTaxInfo, PaymentCanceled, PaymentCanceledPaymentDetailsOneOf, PaymentDeclined, PaymentDeclinedPaymentDetailsOneOf, PaymentOptionType, PaymentPending, PaymentPendingPaymentDetailsOneOf, PaymentRefundFailed, PaymentRefunded, PaymentStatus, PhysicalProperties, PickupAddress, PickupDetails, PickupDetailsPickupMethod, PickupMethod, PlainTextValue, Price, PriceDescription, PriceSummary, ProductName, QueryDraftOrdersRequest, QueryDraftOrdersResponse, ReceiptCreated, ReceiptCreatedReceiptInfoOneOf, ReceiptSent, ReceiptSentReceiptInfoOneOf, RecipientInfoChangedDetails, RecipientInfoDetails, RecipientInfoDetailsChangeTypeOneOf, RefundInitiated, RefundedAsStoreCredit, RefundedPayment, RefundedPaymentKindOneOf, RegularPayment, RegularPaymentPaymentMethodDetailsOneOf, RegularPaymentRefund, RestoreInfo, RuleType, SavedPaymentMethod, SecuredMedia, SetAdditionalFeesRequest, SetAdditionalFeesResponse, SetBillingInfoOptions, SetBillingInfoRequest, SetBillingInfoResponse, SetBusinessLocationOptions, SetBusinessLocationRequest, SetBusinessLocationResponse, SetBuyerInfoOptions, SetBuyerInfoRequest, SetBuyerInfoResponse, SetDiscountsRequest, SetDiscountsResponse, SetRecipientInfoOptions, SetRecipientInfoRequest, SetRecipientInfoResponse, SetShippingInfoOptions, SetShippingInfoRequest, SetShippingInfoResponse, SetTaxExemptionOptions, SetTaxExemptionRequest, SetTaxExemptionResponse, ShippingChangedDetails, ShippingDetails, ShippingDetailsChangeTypeOneOf, ShippingInformation, ShippingInformationChange, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, Sorting, SourceType, StreetAddress, SubscriptionDescription, SubscriptionFrequency, SubscriptionInfo, SubscriptionSettings, SubscriptionTitle, SystemError, TagList, Tags, TaxDetails, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TotalPriceChange, TranslatableString, TranslatedValue, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateLineItemsRequest, UpdateLineItemsResponse, UpdateShippingInfoRequest, UpdateShippingInfoResponse, V1BalanceSummary, V1CreatedBy, V1CreatedByStringOneOf, V1DeliveryLogistics, V1DeliveryLogisticsAddressOneOf, V1DeliveryTimeSlot, V1PickupDetails, V1ShippingInformation, V1ShippingPrice, ValidationError, VatId, VatType, WebhookIdentityType, WeightUnit, WixReceipt, } from './ecom-v1-draft-order-draft-orders.universal.js';
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
2
|
+
import { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';
|
|
3
|
+
import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
|
|
4
|
+
import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
|
|
5
|
+
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
|
|
6
|
+
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
|
|
7
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
1
8
|
import { addLineItemsToDraftOrder as universalAddLineItemsToDraftOrder, commitDraftOrder as universalCommitDraftOrder, createCustomAdditionalFees as universalCreateCustomAdditionalFees, createCustomDiscounts as universalCreateCustomDiscounts, createDraftOrder as universalCreateDraftOrder, createEmptyDraftOrder as universalCreateEmptyDraftOrder, createOrderFromDraft as universalCreateOrderFromDraft, deleteCustomAdditionalFees as universalDeleteCustomAdditionalFees, deleteCustomDiscounts as universalDeleteCustomDiscounts, deleteDraftOrder as universalDeleteDraftOrder, getDraftOrder as universalGetDraftOrder, getOrderDraftabilityStatus as universalGetOrderDraftabilityStatus, queryDraftOrders as universalQueryDraftOrders, setAdditionalFees as universalSetAdditionalFees, setBillingInfo as universalSetBillingInfo, setBusinessLocation as universalSetBusinessLocation, setBuyerInfo as universalSetBuyerInfo, setDiscounts as universalSetDiscounts, setRecipientInfo as universalSetRecipientInfo, setShippingInfo as universalSetShippingInfo, setTaxExemption as universalSetTaxExemption, updateExtendedFields as universalUpdateExtendedFields, updateLineItems as universalUpdateLineItems, } from './ecom-v1-draft-order-draft-orders.universal.js';
|
|
2
9
|
export const __metadata = { PACKAGE_NAME: '@wix/ecom' };
|
|
3
10
|
export function createDraftOrder(httpClient) {
|
|
@@ -115,5 +122,209 @@ export function setBusinessLocation(httpClient) {
|
|
|
115
122
|
// @ts-ignore
|
|
116
123
|
{ httpClient });
|
|
117
124
|
}
|
|
125
|
+
export const onDraftOrderCreated = EventDefinition('wix.ecom.v1.draft_order_created', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
126
|
+
{
|
|
127
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
128
|
+
paths: [
|
|
129
|
+
{ path: 'entity.createdDate' },
|
|
130
|
+
{ path: 'entity.updatedDate' },
|
|
131
|
+
{ path: 'entity.lineItems.lineItem.digitalFile.expirationDate' },
|
|
132
|
+
{
|
|
133
|
+
path: 'entity.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.deliverByDate',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
|
|
152
|
+
},
|
|
153
|
+
{ path: 'metadata.eventTime' },
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
transformFn: transformRESTImageToSDKImage,
|
|
158
|
+
paths: [{ path: 'entity.lineItems.lineItem.image' }],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
162
|
+
paths: [
|
|
163
|
+
{ path: 'entity.lineItems.lineItem.physicalProperties.weight' },
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
168
|
+
paths: [
|
|
169
|
+
{
|
|
170
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.shippingDestination.address',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.pickupDetails.address',
|
|
180
|
+
},
|
|
181
|
+
{ path: 'entity.billingInfo.address' },
|
|
182
|
+
{
|
|
183
|
+
path: 'entity.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
|
|
184
|
+
},
|
|
185
|
+
{ path: 'entity.recipientInfo.recipientInfo.address' },
|
|
186
|
+
{
|
|
187
|
+
path: 'entity.billingDetails.changedDetails.billingInfoBeforeChange.address',
|
|
188
|
+
},
|
|
189
|
+
{ path: 'entity.billingDetails.billingInfo.address' },
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
])))();
|
|
193
|
+
export const onDraftOrderDeleted = EventDefinition('wix.ecom.v1.draft_order_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
194
|
+
{
|
|
195
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
196
|
+
paths: [
|
|
197
|
+
{ path: 'undefined.createdDate' },
|
|
198
|
+
{ path: 'undefined.updatedDate' },
|
|
199
|
+
{ path: 'undefined.lineItems.lineItem.digitalFile.expirationDate' },
|
|
200
|
+
{
|
|
201
|
+
path: 'undefined.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
path: 'undefined.shippingInfo.shippingInfo.logistics.deliverByDate',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: 'undefined.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
path: 'undefined.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
|
|
220
|
+
},
|
|
221
|
+
{ path: 'metadata.eventTime' },
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
transformFn: transformRESTImageToSDKImage,
|
|
226
|
+
paths: [{ path: 'undefined.lineItems.lineItem.image' }],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
230
|
+
paths: [
|
|
231
|
+
{ path: 'undefined.lineItems.lineItem.physicalProperties.weight' },
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
236
|
+
paths: [
|
|
237
|
+
{
|
|
238
|
+
path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
path: 'undefined.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
path: 'undefined.shippingInfo.shippingInfo.logistics.shippingDestination.address',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
path: 'undefined.shippingInfo.shippingInfo.logistics.pickupDetails.address',
|
|
248
|
+
},
|
|
249
|
+
{ path: 'undefined.billingInfo.address' },
|
|
250
|
+
{
|
|
251
|
+
path: 'undefined.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
|
|
252
|
+
},
|
|
253
|
+
{ path: 'undefined.recipientInfo.recipientInfo.address' },
|
|
254
|
+
{
|
|
255
|
+
path: 'undefined.billingDetails.changedDetails.billingInfoBeforeChange.address',
|
|
256
|
+
},
|
|
257
|
+
{ path: 'undefined.billingDetails.billingInfo.address' },
|
|
258
|
+
],
|
|
259
|
+
},
|
|
260
|
+
])))();
|
|
261
|
+
export const onDraftOrderUpdated = EventDefinition('wix.ecom.v1.draft_order_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
|
|
262
|
+
{
|
|
263
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
264
|
+
paths: [
|
|
265
|
+
{ path: 'entity.createdDate' },
|
|
266
|
+
{ path: 'entity.updatedDate' },
|
|
267
|
+
{ path: 'entity.lineItems.lineItem.digitalFile.expirationDate' },
|
|
268
|
+
{
|
|
269
|
+
path: 'entity.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.deliverByDate',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',
|
|
288
|
+
},
|
|
289
|
+
{ path: 'metadata.eventTime' },
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
transformFn: transformRESTImageToSDKImage,
|
|
294
|
+
paths: [{ path: 'entity.lineItems.lineItem.image' }],
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
298
|
+
paths: [
|
|
299
|
+
{ path: 'entity.lineItems.lineItem.physicalProperties.weight' },
|
|
300
|
+
],
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
304
|
+
paths: [
|
|
305
|
+
{
|
|
306
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
path: 'entity.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.shippingDestination.address',
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
path: 'entity.shippingInfo.shippingInfo.logistics.pickupDetails.address',
|
|
316
|
+
},
|
|
317
|
+
{ path: 'entity.billingInfo.address' },
|
|
318
|
+
{
|
|
319
|
+
path: 'entity.recipientInfo.changedDetails.recipientInfoBeforeChange.address',
|
|
320
|
+
},
|
|
321
|
+
{ path: 'entity.recipientInfo.recipientInfo.address' },
|
|
322
|
+
{
|
|
323
|
+
path: 'entity.billingDetails.changedDetails.billingInfoBeforeChange.address',
|
|
324
|
+
},
|
|
325
|
+
{ path: 'entity.billingDetails.billingInfo.address' },
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
])))();
|
|
118
329
|
export { ActivityType, AdjustmentType, AppliedDiscountDiscountType, AttributionSource, ChannelType, DescriptionLineType, DiscountReason, DiscountType, EditingStatus, FileType, FulfillmentStatus, ItemTypeItemType, JurisdictionType, LineItemQuantityChangeType, NonDraftableReason, OrderStatus, PaymentOptionType, PaymentStatus, PickupDetailsPickupMethod, PickupMethod, RuleType, SortOrder, SourceType, SubscriptionFrequency, TaxableAddressType, VatType, WebhookIdentityType, WeightUnit, } from './ecom-v1-draft-order-draft-orders.universal.js';
|
|
119
330
|
//# sourceMappingURL=ecom-v1-draft-order-draft-orders.public.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-draft-order-draft-orders.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-draft-order-draft-orders.public.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecom-v1-draft-order-draft-orders.public.js","sourceRoot":"","sources":["../../../src/ecom-v1-draft-order-draft-orders.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAgC,MAAM,gBAAgB,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