@wix/auto_sdk_ecom_order-fulfillments 1.0.7 → 1.0.9
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/{es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.mts} +174 -54
- package/build/{cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.ts} +174 -54
- package/build/index.d.mts +93 -0
- package/build/index.d.ts +93 -0
- package/build/index.js +516 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +483 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.mts} +174 -54
- package/build/internal/{es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.ts} +174 -54
- package/build/internal/index.d.mts +93 -0
- package/build/internal/index.d.ts +93 -0
- package/build/internal/index.js +516 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +483 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +258 -0
- package/build/internal/meta.d.ts +258 -0
- package/build/internal/meta.js +364 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +332 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +258 -0
- package/build/meta.d.ts +258 -0
- package/build/meta.js +364 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +332 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -24
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -256
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -148
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -59
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -34
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -813
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -362
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -18
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -247
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -116
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -47
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -31
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -813
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -330
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -24
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -256
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -148
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -59
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -34
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -813
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -362
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -18
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -247
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -116
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -47
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -31
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -813
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -330
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface OrderWithFulfillments {
|
|
2
2
|
/**
|
|
3
3
|
* Order ID.
|
|
4
4
|
* @minLength 1
|
|
@@ -9,7 +9,7 @@ export interface OrderWithFulfillments {
|
|
|
9
9
|
fulfillments?: Fulfillment[];
|
|
10
10
|
}
|
|
11
11
|
/** for now, this is a sub-object of Orders, so can refer to order line items by id. */
|
|
12
|
-
|
|
12
|
+
interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
13
13
|
/** Tracking info. */
|
|
14
14
|
trackingInfo?: FulfillmentTrackingInfo;
|
|
15
15
|
/** Custom fulfillment info. */
|
|
@@ -19,12 +19,12 @@ export interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
|
19
19
|
* @format GUID
|
|
20
20
|
* @readonly
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
_id?: string | null;
|
|
23
23
|
/**
|
|
24
24
|
* Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
25
25
|
* @readonly
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
_createdDate?: Date | null;
|
|
28
28
|
/**
|
|
29
29
|
* Line items being fulfilled.
|
|
30
30
|
* @maxSize 300
|
|
@@ -47,18 +47,18 @@ export interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
|
47
47
|
completed?: boolean | null;
|
|
48
48
|
}
|
|
49
49
|
/** @oneof */
|
|
50
|
-
|
|
50
|
+
interface FulfillmentFulfillmentInfoOneOf {
|
|
51
51
|
/** Tracking info. */
|
|
52
52
|
trackingInfo?: FulfillmentTrackingInfo;
|
|
53
53
|
/** Custom fulfillment info. */
|
|
54
54
|
customInfo?: CustomFulfillmentInfo;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
interface FulfillmentLineItem {
|
|
57
57
|
/**
|
|
58
58
|
* Line item ID (mirrors the ID of the order line item).
|
|
59
59
|
* @format GUID
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
_id?: string;
|
|
62
62
|
/**
|
|
63
63
|
* Line item quantity.
|
|
64
64
|
* * If this property isn't passed on creation, it defaults to the number of items not already linked to a fulfillment.
|
|
@@ -71,7 +71,7 @@ export interface FulfillmentLineItem {
|
|
|
71
71
|
*/
|
|
72
72
|
quantity?: number | null;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
interface FulfillmentTrackingInfo {
|
|
75
75
|
/**
|
|
76
76
|
* Shipping/delivery tracking number.
|
|
77
77
|
* @minLength 1
|
|
@@ -97,14 +97,14 @@ export interface FulfillmentTrackingInfo {
|
|
|
97
97
|
*/
|
|
98
98
|
trackingLink?: string | null;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
interface CustomFulfillmentInfo {
|
|
101
101
|
/**
|
|
102
102
|
* Custom fulfillment info in key:value form.
|
|
103
103
|
* @maxSize 100
|
|
104
104
|
*/
|
|
105
105
|
fieldsData?: Record<string, string>;
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
interface FulfillmentCreated {
|
|
108
108
|
/**
|
|
109
109
|
* Order ID (auto generated upon order creation).
|
|
110
110
|
* @format GUID
|
|
@@ -125,12 +125,12 @@ export interface FulfillmentCreated {
|
|
|
125
125
|
trackingInfo?: V2FulfillmentTrackingInfo;
|
|
126
126
|
}
|
|
127
127
|
/** Buyer Info */
|
|
128
|
-
|
|
128
|
+
interface BuyerInfo {
|
|
129
129
|
/**
|
|
130
130
|
* Wix customer ID
|
|
131
131
|
* @format GUID
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
_id?: string | null;
|
|
134
134
|
/**
|
|
135
135
|
* Deprecated (use identityType instead)
|
|
136
136
|
* @readonly
|
|
@@ -160,14 +160,14 @@ export interface BuyerInfo {
|
|
|
160
160
|
*/
|
|
161
161
|
email?: string;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
declare enum IdentityType {
|
|
164
164
|
UNSPECIFIED_IDENTITY_TYPE = "UNSPECIFIED_IDENTITY_TYPE",
|
|
165
165
|
/** Site member */
|
|
166
166
|
MEMBER = "MEMBER",
|
|
167
167
|
/** Contact */
|
|
168
168
|
CONTACT = "CONTACT"
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
declare enum FulfillmentStatus {
|
|
171
171
|
/** None of the order items are fulfilled */
|
|
172
172
|
NOT_FULFILLED = "NOT_FULFILLED",
|
|
173
173
|
/**
|
|
@@ -180,7 +180,7 @@ export declare enum FulfillmentStatus {
|
|
|
180
180
|
/** Some, but not all of the order items are fulfilled */
|
|
181
181
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
interface V2FulfillmentTrackingInfo {
|
|
184
184
|
/**
|
|
185
185
|
* Tracking number.
|
|
186
186
|
* @minLength 1
|
|
@@ -206,7 +206,7 @@ export interface V2FulfillmentTrackingInfo {
|
|
|
206
206
|
*/
|
|
207
207
|
trackingLink?: string | null;
|
|
208
208
|
}
|
|
209
|
-
|
|
209
|
+
interface FulfillmentUpdated {
|
|
210
210
|
/**
|
|
211
211
|
* Order ID (auto generated upon order creation).
|
|
212
212
|
* @format GUID
|
|
@@ -220,7 +220,7 @@ export interface FulfillmentUpdated {
|
|
|
220
220
|
/** Fulfillment tracking information. */
|
|
221
221
|
trackingInfo?: V2FulfillmentTrackingInfo;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
interface FulfillmentDeleted {
|
|
224
224
|
/**
|
|
225
225
|
* Order ID (auto generated upon order creation).
|
|
226
226
|
* @format GUID
|
|
@@ -234,7 +234,7 @@ export interface FulfillmentDeleted {
|
|
|
234
234
|
/** Order fulfillment status. */
|
|
235
235
|
fulfillmentStatus?: FulfillmentStatus;
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
interface ListFulfillmentsForSingleOrderRequest {
|
|
238
238
|
/**
|
|
239
239
|
* Order ID for which to retrieve fulfillments.
|
|
240
240
|
* @minLength 1
|
|
@@ -242,11 +242,11 @@ export interface ListFulfillmentsForSingleOrderRequest {
|
|
|
242
242
|
*/
|
|
243
243
|
orderId: string;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
interface ListFulfillmentsForSingleOrderResponse {
|
|
246
246
|
/** List of fulfillments associated with the order. */
|
|
247
247
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
interface ListFulfillmentsForMultipleOrdersRequest {
|
|
250
250
|
/**
|
|
251
251
|
* List of order IDs for which to retrieve fulfillments.
|
|
252
252
|
* @minSize 1
|
|
@@ -254,33 +254,33 @@ export interface ListFulfillmentsForMultipleOrdersRequest {
|
|
|
254
254
|
*/
|
|
255
255
|
orderIds: string[];
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
interface ListFulfillmentsForMultipleOrdersResponse {
|
|
258
258
|
/** List of order IDs and their associated fulfillments. */
|
|
259
259
|
ordersWithFulfillments?: OrderWithFulfillments[];
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
interface CreateFulfillmentRequest {
|
|
262
262
|
/** Order ID. */
|
|
263
263
|
orderId: string;
|
|
264
264
|
/** Fulfillment info. */
|
|
265
265
|
fulfillment: Fulfillment;
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
interface CreateFulfillmentResponse {
|
|
268
268
|
/** Order ID and the orders' fulfillments. */
|
|
269
269
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
270
270
|
/** ID of created fulfillment. */
|
|
271
271
|
fulfillmentId?: string;
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
interface UpdateFulfillmentRequest {
|
|
274
274
|
/** Order ID. */
|
|
275
275
|
orderId: string;
|
|
276
276
|
/** Fulfillment info to update. */
|
|
277
277
|
fulfillment?: Fulfillment;
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
interface UpdateFulfillmentResponse {
|
|
280
280
|
/** Order ID and the orders' associated fulfillments after update. */
|
|
281
281
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
interface DeleteFulfillmentRequest {
|
|
284
284
|
/**
|
|
285
285
|
* Order ID.
|
|
286
286
|
* @minLength 1
|
|
@@ -293,19 +293,19 @@ export interface DeleteFulfillmentRequest {
|
|
|
293
293
|
*/
|
|
294
294
|
fulfillmentId: string;
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
interface DeleteFulfillmentResponse {
|
|
297
297
|
/** Order ID and the order's associated fulfillments after deletion. */
|
|
298
298
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
interface BulkCreateFulfillmentRequest {
|
|
301
301
|
/**
|
|
302
|
-
* List of order IDs and their associated fulfillments.
|
|
302
|
+
* List of order IDs and their associated fulfillments' info.
|
|
303
303
|
* @minSize 1
|
|
304
304
|
* @maxSize 100
|
|
305
305
|
*/
|
|
306
306
|
ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
interface BulkCreateOrderWithFulfillments {
|
|
309
309
|
/**
|
|
310
310
|
* Order ID.
|
|
311
311
|
* @minLength 1
|
|
@@ -318,20 +318,21 @@ export interface BulkCreateOrderWithFulfillments {
|
|
|
318
318
|
*/
|
|
319
319
|
fulfillments?: Fulfillment[];
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
interface BulkCreateFulfillmentResponse {
|
|
322
322
|
/** Items updated by bulk action. */
|
|
323
323
|
results?: BulkOrderFulfillmentsResult[];
|
|
324
324
|
/** Bulk action metadata. */
|
|
325
325
|
bulkActionMetadata?: BulkActionMetadata;
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
interface BulkOrderFulfillmentsResult {
|
|
328
328
|
/** Item metadata. */
|
|
329
329
|
itemMetadata?: ItemMetadata;
|
|
330
|
+
/** List of order IDs and their associated fulfillments. */
|
|
330
331
|
ordersWithFulfillments?: OrderWithFulfillments;
|
|
331
332
|
}
|
|
332
|
-
|
|
333
|
+
interface ItemMetadata {
|
|
333
334
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
334
|
-
|
|
335
|
+
_id?: string | null;
|
|
335
336
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
336
337
|
originalIndex?: number;
|
|
337
338
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -339,7 +340,7 @@ export interface ItemMetadata {
|
|
|
339
340
|
/** Details about the error in case of failure. */
|
|
340
341
|
error?: ApplicationError;
|
|
341
342
|
}
|
|
342
|
-
|
|
343
|
+
interface ApplicationError {
|
|
343
344
|
/** Error code. */
|
|
344
345
|
code?: string;
|
|
345
346
|
/** Description of the error. */
|
|
@@ -347,7 +348,7 @@ export interface ApplicationError {
|
|
|
347
348
|
/** Data related to the error. */
|
|
348
349
|
data?: Record<string, any> | null;
|
|
349
350
|
}
|
|
350
|
-
|
|
351
|
+
interface BulkActionMetadata {
|
|
351
352
|
/** Number of items that were successfully processed. */
|
|
352
353
|
totalSuccesses?: number;
|
|
353
354
|
/** Number of items that couldn't be processed. */
|
|
@@ -355,7 +356,7 @@ export interface BulkActionMetadata {
|
|
|
355
356
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
356
357
|
undetailedFailures?: number;
|
|
357
358
|
}
|
|
358
|
-
|
|
359
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
359
360
|
createdEvent?: EntityCreatedEvent;
|
|
360
361
|
updatedEvent?: EntityUpdatedEvent;
|
|
361
362
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -364,7 +365,7 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
364
365
|
* Unique event ID.
|
|
365
366
|
* Allows clients to ignore duplicate webhooks.
|
|
366
367
|
*/
|
|
367
|
-
|
|
368
|
+
_id?: string;
|
|
368
369
|
/**
|
|
369
370
|
* Assumes actions are also always typed to an entity_type
|
|
370
371
|
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
@@ -398,36 +399,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
398
399
|
entityEventSequence?: string | null;
|
|
399
400
|
}
|
|
400
401
|
/** @oneof */
|
|
401
|
-
|
|
402
|
+
interface DomainEventBodyOneOf {
|
|
402
403
|
createdEvent?: EntityCreatedEvent;
|
|
403
404
|
updatedEvent?: EntityUpdatedEvent;
|
|
404
405
|
deletedEvent?: EntityDeletedEvent;
|
|
405
406
|
actionEvent?: ActionEvent;
|
|
406
407
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
410
|
-
restoreInfo?: RestoreInfo;
|
|
408
|
+
interface EntityCreatedEvent {
|
|
409
|
+
entity?: string;
|
|
411
410
|
}
|
|
412
|
-
|
|
411
|
+
interface RestoreInfo {
|
|
413
412
|
deletedDate?: Date | null;
|
|
414
413
|
}
|
|
415
|
-
|
|
414
|
+
interface EntityUpdatedEvent {
|
|
416
415
|
/**
|
|
417
416
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
418
417
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
419
418
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
420
419
|
*/
|
|
421
|
-
|
|
420
|
+
currentEntity?: string;
|
|
422
421
|
}
|
|
423
|
-
|
|
422
|
+
interface EntityDeletedEvent {
|
|
424
423
|
/** Entity that was deleted */
|
|
425
|
-
|
|
424
|
+
deletedEntity?: string | null;
|
|
426
425
|
}
|
|
427
|
-
|
|
428
|
-
|
|
426
|
+
interface ActionEvent {
|
|
427
|
+
body?: string;
|
|
429
428
|
}
|
|
430
|
-
|
|
429
|
+
interface MessageEnvelope {
|
|
431
430
|
/**
|
|
432
431
|
* App instance ID.
|
|
433
432
|
* @format GUID
|
|
@@ -443,7 +442,7 @@ export interface MessageEnvelope {
|
|
|
443
442
|
/** Stringify payload. */
|
|
444
443
|
data?: string;
|
|
445
444
|
}
|
|
446
|
-
|
|
445
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
447
446
|
/**
|
|
448
447
|
* ID of a site visitor that has not logged in to the site.
|
|
449
448
|
* @format GUID
|
|
@@ -468,7 +467,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
468
467
|
identityType?: WebhookIdentityType;
|
|
469
468
|
}
|
|
470
469
|
/** @oneof */
|
|
471
|
-
|
|
470
|
+
interface IdentificationDataIdOneOf {
|
|
472
471
|
/**
|
|
473
472
|
* ID of a site visitor that has not logged in to the site.
|
|
474
473
|
* @format GUID
|
|
@@ -490,10 +489,131 @@ export interface IdentificationDataIdOneOf {
|
|
|
490
489
|
*/
|
|
491
490
|
appId?: string;
|
|
492
491
|
}
|
|
493
|
-
|
|
492
|
+
declare enum WebhookIdentityType {
|
|
494
493
|
UNKNOWN = "UNKNOWN",
|
|
495
494
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
496
495
|
MEMBER = "MEMBER",
|
|
497
496
|
WIX_USER = "WIX_USER",
|
|
498
497
|
APP = "APP"
|
|
499
498
|
}
|
|
499
|
+
interface BaseEventMetadata {
|
|
500
|
+
/**
|
|
501
|
+
* App instance ID.
|
|
502
|
+
* @format GUID
|
|
503
|
+
*/
|
|
504
|
+
instanceId?: string | null;
|
|
505
|
+
/**
|
|
506
|
+
* Event type.
|
|
507
|
+
* @maxLength 150
|
|
508
|
+
*/
|
|
509
|
+
eventType?: string;
|
|
510
|
+
/** The identification type and identity data. */
|
|
511
|
+
identity?: IdentificationData;
|
|
512
|
+
}
|
|
513
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
514
|
+
/**
|
|
515
|
+
* Unique event ID.
|
|
516
|
+
* Allows clients to ignore duplicate webhooks.
|
|
517
|
+
*/
|
|
518
|
+
_id?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Assumes actions are also always typed to an entity_type
|
|
521
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
522
|
+
*/
|
|
523
|
+
entityFqdn?: string;
|
|
524
|
+
/**
|
|
525
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
526
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
527
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
528
|
+
*/
|
|
529
|
+
slug?: string;
|
|
530
|
+
/** ID of the entity associated with the event. */
|
|
531
|
+
entityId?: string;
|
|
532
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
533
|
+
eventTime?: Date | null;
|
|
534
|
+
/**
|
|
535
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
536
|
+
* (for example, GDPR).
|
|
537
|
+
*/
|
|
538
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
539
|
+
/** If present, indicates the action that triggered the event. */
|
|
540
|
+
originatedFrom?: string | null;
|
|
541
|
+
/**
|
|
542
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
543
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
544
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
545
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
546
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
547
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
548
|
+
*/
|
|
549
|
+
entityEventSequence?: string | null;
|
|
550
|
+
}
|
|
551
|
+
interface FulfillmentsUpdatedEnvelope {
|
|
552
|
+
entity: OrderWithFulfillments;
|
|
553
|
+
metadata: EventMetadata;
|
|
554
|
+
}
|
|
555
|
+
interface UpdateFulfillmentOptions {
|
|
556
|
+
/** Fulfillment info. */
|
|
557
|
+
fulfillment: {
|
|
558
|
+
/** Tracking info. */
|
|
559
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
560
|
+
/** Custom fulfillment info. */
|
|
561
|
+
customInfo?: CustomFulfillmentInfo;
|
|
562
|
+
/**
|
|
563
|
+
* Fulfillment ID.
|
|
564
|
+
* @format GUID
|
|
565
|
+
* @readonly
|
|
566
|
+
*/
|
|
567
|
+
_id?: string | null;
|
|
568
|
+
/**
|
|
569
|
+
* Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
570
|
+
* @readonly
|
|
571
|
+
*/
|
|
572
|
+
_createdDate?: Date | null;
|
|
573
|
+
/**
|
|
574
|
+
* Line items being fulfilled.
|
|
575
|
+
* @maxSize 300
|
|
576
|
+
*/
|
|
577
|
+
lineItems?: FulfillmentLineItem[];
|
|
578
|
+
/**
|
|
579
|
+
* __Optional.__ Fulfillment status.
|
|
580
|
+
*
|
|
581
|
+
* Supported values:
|
|
582
|
+
* + `"Pending"`
|
|
583
|
+
* + `"Accepted"`
|
|
584
|
+
* + `"Ready"`
|
|
585
|
+
* + `"In_Delivery"`
|
|
586
|
+
* + `"Fulfilled"`
|
|
587
|
+
* @minLength 1
|
|
588
|
+
* @maxLength 100
|
|
589
|
+
*/
|
|
590
|
+
status?: string | null;
|
|
591
|
+
/** Fulfillment handling complete. */
|
|
592
|
+
completed?: boolean | null;
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
interface UpdateFulfillmentIdentifiers {
|
|
596
|
+
/**
|
|
597
|
+
* ID of the fulfillment to be updated.
|
|
598
|
+
* @format GUID
|
|
599
|
+
* @readonly
|
|
600
|
+
*/
|
|
601
|
+
fulfillmentId?: string | null;
|
|
602
|
+
/** Order ID. */
|
|
603
|
+
orderId: string;
|
|
604
|
+
}
|
|
605
|
+
interface DeleteFulfillmentIdentifiers {
|
|
606
|
+
/**
|
|
607
|
+
* ID of the fulfillment to delete.
|
|
608
|
+
* @format GUID
|
|
609
|
+
*/
|
|
610
|
+
fulfillmentId: string;
|
|
611
|
+
/**
|
|
612
|
+
* Order ID.
|
|
613
|
+
* @minLength 1
|
|
614
|
+
* @maxLength 100
|
|
615
|
+
*/
|
|
616
|
+
orderId: string;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export { type ApplicationError as A, type BulkCreateOrderWithFulfillments as B, type CreateFulfillmentResponse as C, type DeleteFulfillmentIdentifiers as D, type EntityCreatedEvent as E, type Fulfillment as F, type EntityDeletedEvent as G, type ActionEvent as H, IdentityType as I, type IdentificationData as J, type IdentificationDataIdOneOf as K, type ListFulfillmentsForSingleOrderResponse as L, type MessageEnvelope as M, type BaseEventMetadata as N, type OrderWithFulfillments as O, type EventMetadata as P, type FulfillmentsUpdatedEnvelope as Q, type RestoreInfo as R, type UpdateFulfillmentIdentifiers as U, type V2FulfillmentTrackingInfo as V, WebhookIdentityType as W, type ListFulfillmentsForMultipleOrdersResponse as a, type UpdateFulfillmentOptions as b, type DeleteFulfillmentResponse as c, type BulkCreateFulfillmentResponse as d, FulfillmentStatus as e, type FulfillmentFulfillmentInfoOneOf as f, type FulfillmentLineItem as g, type FulfillmentTrackingInfo as h, type CustomFulfillmentInfo as i, type FulfillmentCreated as j, type BuyerInfo as k, type FulfillmentUpdated as l, type FulfillmentDeleted as m, type ListFulfillmentsForSingleOrderRequest as n, type ListFulfillmentsForMultipleOrdersRequest as o, type CreateFulfillmentRequest as p, type UpdateFulfillmentRequest as q, type UpdateFulfillmentResponse as r, type DeleteFulfillmentRequest as s, type BulkCreateFulfillmentRequest as t, type BulkOrderFulfillmentsResult as u, type ItemMetadata as v, type BulkActionMetadata as w, type DomainEvent as x, type DomainEventBodyOneOf as y, type EntityUpdatedEvent as z };
|