@wix/auto_sdk_ecom_order-fulfillments 1.0.17 → 1.0.19
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-DOM-x30R.d.mts} +169 -57
- package/build/{cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-DOM-x30R.d.ts} +169 -57
- 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-DOM-x30R.d.mts} +169 -57
- package/build/internal/{es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-DOM-x30R.d.ts} +169 -57
- 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 +12 -11
- 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 -817
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -374
- 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/package.json +0 -3
- 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 -817
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -342
- 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 -817
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -374
- 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 -817
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -342
- 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,7 +160,7 @@ 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",
|
|
@@ -168,8 +168,8 @@ export declare enum IdentityType {
|
|
|
168
168
|
CONTACT = "CONTACT"
|
|
169
169
|
}
|
|
170
170
|
/** @enumType */
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
type IdentityTypeWithLiterals = IdentityType | 'UNSPECIFIED_IDENTITY_TYPE' | 'MEMBER' | 'CONTACT';
|
|
172
|
+
declare enum FulfillmentStatus {
|
|
173
173
|
/** None of the order items are fulfilled */
|
|
174
174
|
NOT_FULFILLED = "NOT_FULFILLED",
|
|
175
175
|
/**
|
|
@@ -183,8 +183,8 @@ export declare enum FulfillmentStatus {
|
|
|
183
183
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
|
|
184
184
|
}
|
|
185
185
|
/** @enumType */
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
type FulfillmentStatusWithLiterals = FulfillmentStatus | 'NOT_FULFILLED' | 'FULFILLED' | 'CANCELED' | 'PARTIALLY_FULFILLED';
|
|
187
|
+
interface V2FulfillmentTrackingInfo {
|
|
188
188
|
/**
|
|
189
189
|
* Tracking number.
|
|
190
190
|
* @minLength 1
|
|
@@ -210,7 +210,7 @@ export interface V2FulfillmentTrackingInfo {
|
|
|
210
210
|
*/
|
|
211
211
|
trackingLink?: string | null;
|
|
212
212
|
}
|
|
213
|
-
|
|
213
|
+
interface FulfillmentUpdated {
|
|
214
214
|
/**
|
|
215
215
|
* Order ID (auto generated upon order creation).
|
|
216
216
|
* @format GUID
|
|
@@ -224,7 +224,7 @@ export interface FulfillmentUpdated {
|
|
|
224
224
|
/** Fulfillment tracking information. */
|
|
225
225
|
trackingInfo?: V2FulfillmentTrackingInfo;
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
interface FulfillmentDeleted {
|
|
228
228
|
/**
|
|
229
229
|
* Order ID (auto generated upon order creation).
|
|
230
230
|
* @format GUID
|
|
@@ -238,7 +238,7 @@ export interface FulfillmentDeleted {
|
|
|
238
238
|
/** Order fulfillment status. */
|
|
239
239
|
fulfillmentStatus?: FulfillmentStatusWithLiterals;
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
interface ListFulfillmentsForSingleOrderRequest {
|
|
242
242
|
/**
|
|
243
243
|
* Order ID for which to retrieve fulfillments.
|
|
244
244
|
* @minLength 1
|
|
@@ -246,11 +246,11 @@ export interface ListFulfillmentsForSingleOrderRequest {
|
|
|
246
246
|
*/
|
|
247
247
|
orderId: string;
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
interface ListFulfillmentsForSingleOrderResponse {
|
|
250
250
|
/** List of fulfillments associated with the order. */
|
|
251
251
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
interface ListFulfillmentsForMultipleOrdersRequest {
|
|
254
254
|
/**
|
|
255
255
|
* List of order IDs for which to retrieve fulfillments.
|
|
256
256
|
* @minSize 1
|
|
@@ -258,33 +258,33 @@ export interface ListFulfillmentsForMultipleOrdersRequest {
|
|
|
258
258
|
*/
|
|
259
259
|
orderIds: string[];
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
interface ListFulfillmentsForMultipleOrdersResponse {
|
|
262
262
|
/** List of order IDs and their associated fulfillments. */
|
|
263
263
|
ordersWithFulfillments?: OrderWithFulfillments[];
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
interface CreateFulfillmentRequest {
|
|
266
266
|
/** Order ID. */
|
|
267
267
|
orderId: string;
|
|
268
268
|
/** Fulfillment info. */
|
|
269
269
|
fulfillment: Fulfillment;
|
|
270
270
|
}
|
|
271
|
-
|
|
271
|
+
interface CreateFulfillmentResponse {
|
|
272
272
|
/** Order ID and the orders' fulfillments. */
|
|
273
273
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
274
274
|
/** ID of created fulfillment. */
|
|
275
275
|
fulfillmentId?: string;
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
interface UpdateFulfillmentRequest {
|
|
278
278
|
/** Order ID. */
|
|
279
279
|
orderId: string;
|
|
280
280
|
/** Fulfillment info to update. */
|
|
281
281
|
fulfillment?: Fulfillment;
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
interface UpdateFulfillmentResponse {
|
|
284
284
|
/** Order ID and the orders' associated fulfillments after update. */
|
|
285
285
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
286
286
|
}
|
|
287
|
-
|
|
287
|
+
interface DeleteFulfillmentRequest {
|
|
288
288
|
/**
|
|
289
289
|
* Order ID.
|
|
290
290
|
* @minLength 1
|
|
@@ -297,19 +297,19 @@ export interface DeleteFulfillmentRequest {
|
|
|
297
297
|
*/
|
|
298
298
|
fulfillmentId: string;
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
interface DeleteFulfillmentResponse {
|
|
301
301
|
/** Order ID and the order's associated fulfillments after deletion. */
|
|
302
302
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
interface BulkCreateFulfillmentRequest {
|
|
305
305
|
/**
|
|
306
|
-
* List of order IDs and their associated fulfillments.
|
|
306
|
+
* List of order IDs and their associated fulfillments' info.
|
|
307
307
|
* @minSize 1
|
|
308
308
|
* @maxSize 100
|
|
309
309
|
*/
|
|
310
310
|
ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
interface BulkCreateOrderWithFulfillments {
|
|
313
313
|
/**
|
|
314
314
|
* Order ID.
|
|
315
315
|
* @minLength 1
|
|
@@ -322,20 +322,21 @@ export interface BulkCreateOrderWithFulfillments {
|
|
|
322
322
|
*/
|
|
323
323
|
fulfillments?: Fulfillment[];
|
|
324
324
|
}
|
|
325
|
-
|
|
325
|
+
interface BulkCreateFulfillmentResponse {
|
|
326
326
|
/** Items updated by bulk action. */
|
|
327
327
|
results?: BulkOrderFulfillmentsResult[];
|
|
328
328
|
/** Bulk action metadata. */
|
|
329
329
|
bulkActionMetadata?: BulkActionMetadata;
|
|
330
330
|
}
|
|
331
|
-
|
|
331
|
+
interface BulkOrderFulfillmentsResult {
|
|
332
332
|
/** Item metadata. */
|
|
333
333
|
itemMetadata?: ItemMetadata;
|
|
334
|
+
/** List of order IDs and their associated fulfillments. */
|
|
334
335
|
ordersWithFulfillments?: OrderWithFulfillments;
|
|
335
336
|
}
|
|
336
|
-
|
|
337
|
+
interface ItemMetadata {
|
|
337
338
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
338
|
-
|
|
339
|
+
_id?: string | null;
|
|
339
340
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
340
341
|
originalIndex?: number;
|
|
341
342
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -343,7 +344,7 @@ export interface ItemMetadata {
|
|
|
343
344
|
/** Details about the error in case of failure. */
|
|
344
345
|
error?: ApplicationError;
|
|
345
346
|
}
|
|
346
|
-
|
|
347
|
+
interface ApplicationError {
|
|
347
348
|
/** Error code. */
|
|
348
349
|
code?: string;
|
|
349
350
|
/** Description of the error. */
|
|
@@ -351,7 +352,7 @@ export interface ApplicationError {
|
|
|
351
352
|
/** Data related to the error. */
|
|
352
353
|
data?: Record<string, any> | null;
|
|
353
354
|
}
|
|
354
|
-
|
|
355
|
+
interface BulkActionMetadata {
|
|
355
356
|
/** Number of items that were successfully processed. */
|
|
356
357
|
totalSuccesses?: number;
|
|
357
358
|
/** Number of items that couldn't be processed. */
|
|
@@ -359,13 +360,13 @@ export interface BulkActionMetadata {
|
|
|
359
360
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
360
361
|
undetailedFailures?: number;
|
|
361
362
|
}
|
|
362
|
-
|
|
363
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
363
364
|
createdEvent?: EntityCreatedEvent;
|
|
364
365
|
updatedEvent?: EntityUpdatedEvent;
|
|
365
366
|
deletedEvent?: EntityDeletedEvent;
|
|
366
367
|
actionEvent?: ActionEvent;
|
|
367
368
|
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
368
|
-
|
|
369
|
+
_id?: string;
|
|
369
370
|
/**
|
|
370
371
|
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
371
372
|
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
@@ -394,36 +395,34 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
394
395
|
entityEventSequence?: string | null;
|
|
395
396
|
}
|
|
396
397
|
/** @oneof */
|
|
397
|
-
|
|
398
|
+
interface DomainEventBodyOneOf {
|
|
398
399
|
createdEvent?: EntityCreatedEvent;
|
|
399
400
|
updatedEvent?: EntityUpdatedEvent;
|
|
400
401
|
deletedEvent?: EntityDeletedEvent;
|
|
401
402
|
actionEvent?: ActionEvent;
|
|
402
403
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
406
|
-
restoreInfo?: RestoreInfo;
|
|
404
|
+
interface EntityCreatedEvent {
|
|
405
|
+
entity?: string;
|
|
407
406
|
}
|
|
408
|
-
|
|
407
|
+
interface RestoreInfo {
|
|
409
408
|
deletedDate?: Date | null;
|
|
410
409
|
}
|
|
411
|
-
|
|
410
|
+
interface EntityUpdatedEvent {
|
|
412
411
|
/**
|
|
413
412
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
414
413
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
415
414
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
416
415
|
*/
|
|
417
|
-
|
|
416
|
+
currentEntity?: string;
|
|
418
417
|
}
|
|
419
|
-
|
|
418
|
+
interface EntityDeletedEvent {
|
|
420
419
|
/** Entity that was deleted. */
|
|
421
|
-
|
|
420
|
+
deletedEntity?: string | null;
|
|
422
421
|
}
|
|
423
|
-
|
|
424
|
-
|
|
422
|
+
interface ActionEvent {
|
|
423
|
+
body?: string;
|
|
425
424
|
}
|
|
426
|
-
|
|
425
|
+
interface MessageEnvelope {
|
|
427
426
|
/**
|
|
428
427
|
* App instance ID.
|
|
429
428
|
* @format GUID
|
|
@@ -439,7 +438,7 @@ export interface MessageEnvelope {
|
|
|
439
438
|
/** Stringify payload. */
|
|
440
439
|
data?: string;
|
|
441
440
|
}
|
|
442
|
-
|
|
441
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
443
442
|
/**
|
|
444
443
|
* ID of a site visitor that has not logged in to the site.
|
|
445
444
|
* @format GUID
|
|
@@ -464,7 +463,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
464
463
|
identityType?: WebhookIdentityTypeWithLiterals;
|
|
465
464
|
}
|
|
466
465
|
/** @oneof */
|
|
467
|
-
|
|
466
|
+
interface IdentificationDataIdOneOf {
|
|
468
467
|
/**
|
|
469
468
|
* ID of a site visitor that has not logged in to the site.
|
|
470
469
|
* @format GUID
|
|
@@ -486,7 +485,7 @@ export interface IdentificationDataIdOneOf {
|
|
|
486
485
|
*/
|
|
487
486
|
appId?: string;
|
|
488
487
|
}
|
|
489
|
-
|
|
488
|
+
declare enum WebhookIdentityType {
|
|
490
489
|
UNKNOWN = "UNKNOWN",
|
|
491
490
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
492
491
|
MEMBER = "MEMBER",
|
|
@@ -494,4 +493,117 @@ export declare enum WebhookIdentityType {
|
|
|
494
493
|
APP = "APP"
|
|
495
494
|
}
|
|
496
495
|
/** @enumType */
|
|
497
|
-
|
|
496
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
497
|
+
interface BaseEventMetadata {
|
|
498
|
+
/**
|
|
499
|
+
* App instance ID.
|
|
500
|
+
* @format GUID
|
|
501
|
+
*/
|
|
502
|
+
instanceId?: string | null;
|
|
503
|
+
/**
|
|
504
|
+
* Event type.
|
|
505
|
+
* @maxLength 150
|
|
506
|
+
*/
|
|
507
|
+
eventType?: string;
|
|
508
|
+
/** The identification type and identity data. */
|
|
509
|
+
identity?: IdentificationData;
|
|
510
|
+
}
|
|
511
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
512
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
513
|
+
_id?: string;
|
|
514
|
+
/**
|
|
515
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
516
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
517
|
+
*/
|
|
518
|
+
entityFqdn?: string;
|
|
519
|
+
/**
|
|
520
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
521
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
522
|
+
*/
|
|
523
|
+
slug?: string;
|
|
524
|
+
/** ID of the entity associated with the event. */
|
|
525
|
+
entityId?: string;
|
|
526
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
527
|
+
eventTime?: Date | null;
|
|
528
|
+
/**
|
|
529
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
530
|
+
* (for example, GDPR).
|
|
531
|
+
*/
|
|
532
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
533
|
+
/** If present, indicates the action that triggered the event. */
|
|
534
|
+
originatedFrom?: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
537
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
538
|
+
*/
|
|
539
|
+
entityEventSequence?: string | null;
|
|
540
|
+
}
|
|
541
|
+
interface FulfillmentsUpdatedEnvelope {
|
|
542
|
+
entity: OrderWithFulfillments;
|
|
543
|
+
metadata: EventMetadata;
|
|
544
|
+
}
|
|
545
|
+
interface UpdateFulfillmentOptions {
|
|
546
|
+
/** Fulfillment info. */
|
|
547
|
+
fulfillment: {
|
|
548
|
+
/** Tracking info. */
|
|
549
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
550
|
+
/** Custom fulfillment info. */
|
|
551
|
+
customInfo?: CustomFulfillmentInfo;
|
|
552
|
+
/**
|
|
553
|
+
* Fulfillment ID.
|
|
554
|
+
* @format GUID
|
|
555
|
+
* @readonly
|
|
556
|
+
*/
|
|
557
|
+
_id?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
560
|
+
* @readonly
|
|
561
|
+
*/
|
|
562
|
+
_createdDate?: Date | null;
|
|
563
|
+
/**
|
|
564
|
+
* Line items being fulfilled.
|
|
565
|
+
* @maxSize 300
|
|
566
|
+
*/
|
|
567
|
+
lineItems?: FulfillmentLineItem[];
|
|
568
|
+
/**
|
|
569
|
+
* __Optional.__ Fulfillment status.
|
|
570
|
+
*
|
|
571
|
+
* Supported values:
|
|
572
|
+
* + `"Pending"`
|
|
573
|
+
* + `"Accepted"`
|
|
574
|
+
* + `"Ready"`
|
|
575
|
+
* + `"In_Delivery"`
|
|
576
|
+
* + `"Fulfilled"`
|
|
577
|
+
* @minLength 1
|
|
578
|
+
* @maxLength 100
|
|
579
|
+
*/
|
|
580
|
+
status?: string | null;
|
|
581
|
+
/** Fulfillment handling complete. */
|
|
582
|
+
completed?: boolean | null;
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
interface UpdateFulfillmentIdentifiers {
|
|
586
|
+
/**
|
|
587
|
+
* ID of the fulfillment to be updated.
|
|
588
|
+
* @format GUID
|
|
589
|
+
* @readonly
|
|
590
|
+
*/
|
|
591
|
+
fulfillmentId?: string | null;
|
|
592
|
+
/** Order ID. */
|
|
593
|
+
orderId: string;
|
|
594
|
+
}
|
|
595
|
+
interface DeleteFulfillmentIdentifiers {
|
|
596
|
+
/**
|
|
597
|
+
* ID of the fulfillment to delete.
|
|
598
|
+
* @format GUID
|
|
599
|
+
*/
|
|
600
|
+
fulfillmentId: string;
|
|
601
|
+
/**
|
|
602
|
+
* Order ID.
|
|
603
|
+
* @minLength 1
|
|
604
|
+
* @maxLength 100
|
|
605
|
+
*/
|
|
606
|
+
orderId: string;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
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 EntityUpdatedEvent as G, type EntityDeletedEvent as H, IdentityType as I, type ActionEvent as J, type IdentificationData as K, type ListFulfillmentsForSingleOrderResponse as L, type MessageEnvelope as M, type IdentificationDataIdOneOf as N, type OrderWithFulfillments as O, type BaseEventMetadata as P, type EventMetadata 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, type FulfillmentsUpdatedEnvelope as e, FulfillmentStatus as f, type FulfillmentFulfillmentInfoOneOf as g, type FulfillmentLineItem as h, type FulfillmentTrackingInfo as i, type CustomFulfillmentInfo as j, type FulfillmentCreated as k, type BuyerInfo as l, type FulfillmentUpdated as m, type FulfillmentDeleted as n, type ListFulfillmentsForSingleOrderRequest as o, type ListFulfillmentsForMultipleOrdersRequest as p, type CreateFulfillmentRequest as q, type UpdateFulfillmentRequest as r, type UpdateFulfillmentResponse as s, type DeleteFulfillmentRequest as t, type BulkCreateFulfillmentRequest as u, type BulkOrderFulfillmentsResult as v, type ItemMetadata as w, type BulkActionMetadata as x, type DomainEvent as y, type DomainEventBodyOneOf as z };
|