@wix/auto_sdk_ecom_order-fulfillments 1.0.0 → 1.0.2
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-fulfillments-order-fulfillments.types.d.ts +150 -33
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -1
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +178 -39
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts +150 -33
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -1
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +178 -39
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts +150 -33
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +178 -39
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts +150 -33
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -1
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +178 -39
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export interface OrderWithFulfillments {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Order ID.
|
|
4
|
+
* @minLength 1
|
|
5
|
+
* @maxLength 100
|
|
6
|
+
*/
|
|
3
7
|
orderId?: string;
|
|
4
8
|
/** Fulfillments associated with the order. */
|
|
5
9
|
fulfillments?: Fulfillment[];
|
|
@@ -12,6 +16,7 @@ export interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
|
12
16
|
customInfo?: CustomFulfillmentInfo;
|
|
13
17
|
/**
|
|
14
18
|
* Fulfillment ID.
|
|
19
|
+
* @format GUID
|
|
15
20
|
* @readonly
|
|
16
21
|
*/
|
|
17
22
|
id?: string | null;
|
|
@@ -20,10 +25,13 @@ export interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
|
20
25
|
* @readonly
|
|
21
26
|
*/
|
|
22
27
|
createdDate?: Date | null;
|
|
23
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Line items being fulfilled.
|
|
30
|
+
* @maxSize 300
|
|
31
|
+
*/
|
|
24
32
|
lineItems?: FulfillmentLineItem[];
|
|
25
33
|
/**
|
|
26
|
-
* Fulfillment status.
|
|
34
|
+
* *Optional.** Fulfillment status.
|
|
27
35
|
*
|
|
28
36
|
* Supported values:
|
|
29
37
|
* + `"Pending"`
|
|
@@ -31,6 +39,8 @@ export interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
|
31
39
|
* + `"Ready"`
|
|
32
40
|
* + `"In_Delivery"`
|
|
33
41
|
* + `"Fulfilled"`
|
|
42
|
+
* @minLength 1
|
|
43
|
+
* @maxLength 100
|
|
34
44
|
*/
|
|
35
45
|
status?: string | null;
|
|
36
46
|
/** Fulfillment handling complete. */
|
|
@@ -44,7 +54,10 @@ export interface FulfillmentFulfillmentInfoOneOf {
|
|
|
44
54
|
customInfo?: CustomFulfillmentInfo;
|
|
45
55
|
}
|
|
46
56
|
export interface FulfillmentLineItem {
|
|
47
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* Line item ID (mirrors the ID of the order line item).
|
|
59
|
+
* @format GUID
|
|
60
|
+
*/
|
|
48
61
|
id?: string;
|
|
49
62
|
/**
|
|
50
63
|
* Line item quantity.
|
|
@@ -53,11 +66,17 @@ export interface FulfillmentLineItem {
|
|
|
53
66
|
*
|
|
54
67
|
* Min: `1`
|
|
55
68
|
* Max: `100000`
|
|
69
|
+
* @min 1
|
|
70
|
+
* @max 100000
|
|
56
71
|
*/
|
|
57
72
|
quantity?: number | null;
|
|
58
73
|
}
|
|
59
74
|
export interface FulfillmentTrackingInfo {
|
|
60
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* Shipping/delivery tracking number.
|
|
77
|
+
* @minLength 1
|
|
78
|
+
* @maxLength 100
|
|
79
|
+
*/
|
|
61
80
|
trackingNumber?: string | null;
|
|
62
81
|
/**
|
|
63
82
|
* Shipping provider. Using one of the following shipping providers will allow for auto-filling the tracking link:
|
|
@@ -66,19 +85,35 @@ export interface FulfillmentTrackingInfo {
|
|
|
66
85
|
* * `'usps'`
|
|
67
86
|
* * `'dhl'`
|
|
68
87
|
* * `'canadaPost'`
|
|
88
|
+
* @minLength 1
|
|
89
|
+
* @maxLength 100
|
|
69
90
|
*/
|
|
70
91
|
shippingProvider?: string | null;
|
|
71
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Tracking link. Auto-filled if a predefined shipping provider is used, otherwise provided on creation.
|
|
94
|
+
* @minLength 1
|
|
95
|
+
* @maxLength 2048
|
|
96
|
+
* @format WEB_URL
|
|
97
|
+
*/
|
|
72
98
|
trackingLink?: string | null;
|
|
73
99
|
}
|
|
74
100
|
export interface CustomFulfillmentInfo {
|
|
75
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Custom fulfillment info in key:value form.
|
|
103
|
+
* @maxSize 100
|
|
104
|
+
*/
|
|
76
105
|
fieldsData?: Record<string, string>;
|
|
77
106
|
}
|
|
78
107
|
export interface FulfillmentCreated {
|
|
79
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* Order ID (auto generated upon order creation).
|
|
110
|
+
* @format GUID
|
|
111
|
+
*/
|
|
80
112
|
orderId?: string;
|
|
81
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* ID of the newly created fulfillment.
|
|
115
|
+
* @format GUID
|
|
116
|
+
*/
|
|
82
117
|
fulfillmentId?: string;
|
|
83
118
|
/** Fulfillment creation date and time. */
|
|
84
119
|
dateCreated?: Date | null;
|
|
@@ -91,7 +126,10 @@ export interface FulfillmentCreated {
|
|
|
91
126
|
}
|
|
92
127
|
/** Buyer Info */
|
|
93
128
|
export interface BuyerInfo {
|
|
94
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* Wix customer ID
|
|
131
|
+
* @format GUID
|
|
132
|
+
*/
|
|
95
133
|
id?: string | null;
|
|
96
134
|
/**
|
|
97
135
|
* Deprecated (use identityType instead)
|
|
@@ -143,7 +181,11 @@ export declare enum FulfillmentStatus {
|
|
|
143
181
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
|
|
144
182
|
}
|
|
145
183
|
export interface V2FulfillmentTrackingInfo {
|
|
146
|
-
/**
|
|
184
|
+
/**
|
|
185
|
+
* Tracking number.
|
|
186
|
+
* @minLength 1
|
|
187
|
+
* @maxLength 100
|
|
188
|
+
*/
|
|
147
189
|
trackingNumber?: string;
|
|
148
190
|
/**
|
|
149
191
|
* Shipping provider. Using the following shipping providers will allow for autofilling the tracking link:
|
|
@@ -152,29 +194,52 @@ export interface V2FulfillmentTrackingInfo {
|
|
|
152
194
|
* * `usps`
|
|
153
195
|
* * `dhl`
|
|
154
196
|
* * `canadaPost`
|
|
197
|
+
* @minLength 1
|
|
198
|
+
* @maxLength 100
|
|
155
199
|
*/
|
|
156
200
|
shippingProvider?: string;
|
|
157
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* Tracking link - autofilled if using a predefined shipping provider, otherwise provided on creation.
|
|
203
|
+
* @minLength 1
|
|
204
|
+
* @maxLength 2048
|
|
205
|
+
* @format WEB_URL
|
|
206
|
+
*/
|
|
158
207
|
trackingLink?: string | null;
|
|
159
208
|
}
|
|
160
209
|
export interface FulfillmentUpdated {
|
|
161
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Order ID (auto generated upon order creation).
|
|
212
|
+
* @format GUID
|
|
213
|
+
*/
|
|
162
214
|
orderId?: string;
|
|
163
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* ID of the updated fulfillment.
|
|
217
|
+
* @format GUID
|
|
218
|
+
*/
|
|
164
219
|
fulfillmentId?: string;
|
|
165
220
|
/** Fulfillment tracking information. */
|
|
166
221
|
trackingInfo?: V2FulfillmentTrackingInfo;
|
|
167
222
|
}
|
|
168
223
|
export interface FulfillmentDeleted {
|
|
169
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* Order ID (auto generated upon order creation).
|
|
226
|
+
* @format GUID
|
|
227
|
+
*/
|
|
170
228
|
orderId?: string;
|
|
171
|
-
/**
|
|
229
|
+
/**
|
|
230
|
+
* ID of the deleted fulfillment.
|
|
231
|
+
* @format GUID
|
|
232
|
+
*/
|
|
172
233
|
fulfillmentId?: string;
|
|
173
234
|
/** Order fulfillment status. */
|
|
174
235
|
fulfillmentStatus?: FulfillmentStatus;
|
|
175
236
|
}
|
|
176
237
|
export interface ListFulfillmentsForSingleOrderRequest {
|
|
177
|
-
/**
|
|
238
|
+
/**
|
|
239
|
+
* Order ID for which to retrieve fulfillments.
|
|
240
|
+
* @minLength 1
|
|
241
|
+
* @maxLength 100
|
|
242
|
+
*/
|
|
178
243
|
orderId: string;
|
|
179
244
|
}
|
|
180
245
|
export interface ListFulfillmentsForSingleOrderResponse {
|
|
@@ -182,7 +247,11 @@ export interface ListFulfillmentsForSingleOrderResponse {
|
|
|
182
247
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
183
248
|
}
|
|
184
249
|
export interface ListFulfillmentsForMultipleOrdersRequest {
|
|
185
|
-
/**
|
|
250
|
+
/**
|
|
251
|
+
* List of order IDs for which to retrieve fulfillments.
|
|
252
|
+
* @minSize 1
|
|
253
|
+
* @maxSize 100
|
|
254
|
+
*/
|
|
186
255
|
orderIds: string[];
|
|
187
256
|
}
|
|
188
257
|
export interface ListFulfillmentsForMultipleOrdersResponse {
|
|
@@ -212,9 +281,16 @@ export interface UpdateFulfillmentResponse {
|
|
|
212
281
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
213
282
|
}
|
|
214
283
|
export interface DeleteFulfillmentRequest {
|
|
215
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Order ID.
|
|
286
|
+
* @minLength 1
|
|
287
|
+
* @maxLength 100
|
|
288
|
+
*/
|
|
216
289
|
orderId: string;
|
|
217
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* ID of the fulfillment to delete.
|
|
292
|
+
* @format GUID
|
|
293
|
+
*/
|
|
218
294
|
fulfillmentId: string;
|
|
219
295
|
}
|
|
220
296
|
export interface DeleteFulfillmentResponse {
|
|
@@ -222,13 +298,24 @@ export interface DeleteFulfillmentResponse {
|
|
|
222
298
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
223
299
|
}
|
|
224
300
|
export interface BulkCreateFulfillmentRequest {
|
|
225
|
-
/**
|
|
301
|
+
/**
|
|
302
|
+
* List of order IDs and their associated fulfillments.
|
|
303
|
+
* @minSize 1
|
|
304
|
+
* @maxSize 100
|
|
305
|
+
*/
|
|
226
306
|
ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
|
|
227
307
|
}
|
|
228
308
|
export interface BulkCreateOrderWithFulfillments {
|
|
229
|
-
/**
|
|
309
|
+
/**
|
|
310
|
+
* Order ID.
|
|
311
|
+
* @minLength 1
|
|
312
|
+
* @maxLength 100
|
|
313
|
+
*/
|
|
230
314
|
orderId?: string;
|
|
231
|
-
/**
|
|
315
|
+
/**
|
|
316
|
+
* Fulfillments associated with the order.
|
|
317
|
+
* @minSize 1
|
|
318
|
+
*/
|
|
232
319
|
fulfillments?: Fulfillment[];
|
|
233
320
|
}
|
|
234
321
|
export interface BulkCreateFulfillmentResponse {
|
|
@@ -341,9 +428,15 @@ export interface ActionEvent {
|
|
|
341
428
|
bodyAsJson?: string;
|
|
342
429
|
}
|
|
343
430
|
export interface MessageEnvelope {
|
|
344
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* App instance ID.
|
|
433
|
+
* @format GUID
|
|
434
|
+
*/
|
|
345
435
|
instanceId?: string | null;
|
|
346
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* Event type.
|
|
438
|
+
* @maxLength 150
|
|
439
|
+
*/
|
|
347
440
|
eventType?: string;
|
|
348
441
|
/** The identification type and identity data. */
|
|
349
442
|
identity?: IdentificationData;
|
|
@@ -351,26 +444,50 @@ export interface MessageEnvelope {
|
|
|
351
444
|
data?: string;
|
|
352
445
|
}
|
|
353
446
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
354
|
-
/**
|
|
447
|
+
/**
|
|
448
|
+
* ID of a site visitor that has not logged in to the site.
|
|
449
|
+
* @format GUID
|
|
450
|
+
*/
|
|
355
451
|
anonymousVisitorId?: string;
|
|
356
|
-
/**
|
|
452
|
+
/**
|
|
453
|
+
* ID of a site visitor that has logged in to the site.
|
|
454
|
+
* @format GUID
|
|
455
|
+
*/
|
|
357
456
|
memberId?: string;
|
|
358
|
-
/**
|
|
457
|
+
/**
|
|
458
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
459
|
+
* @format GUID
|
|
460
|
+
*/
|
|
359
461
|
wixUserId?: string;
|
|
360
|
-
/**
|
|
462
|
+
/**
|
|
463
|
+
* ID of an app.
|
|
464
|
+
* @format GUID
|
|
465
|
+
*/
|
|
361
466
|
appId?: string;
|
|
362
467
|
/** @readonly */
|
|
363
468
|
identityType?: WebhookIdentityType;
|
|
364
469
|
}
|
|
365
470
|
/** @oneof */
|
|
366
471
|
export interface IdentificationDataIdOneOf {
|
|
367
|
-
/**
|
|
472
|
+
/**
|
|
473
|
+
* ID of a site visitor that has not logged in to the site.
|
|
474
|
+
* @format GUID
|
|
475
|
+
*/
|
|
368
476
|
anonymousVisitorId?: string;
|
|
369
|
-
/**
|
|
477
|
+
/**
|
|
478
|
+
* ID of a site visitor that has logged in to the site.
|
|
479
|
+
* @format GUID
|
|
480
|
+
*/
|
|
370
481
|
memberId?: string;
|
|
371
|
-
/**
|
|
482
|
+
/**
|
|
483
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
484
|
+
* @format GUID
|
|
485
|
+
*/
|
|
372
486
|
wixUserId?: string;
|
|
373
|
-
/**
|
|
487
|
+
/**
|
|
488
|
+
* ID of an app.
|
|
489
|
+
* @format GUID
|
|
490
|
+
*/
|
|
374
491
|
appId?: string;
|
|
375
492
|
}
|
|
376
493
|
export declare enum WebhookIdentityType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecom-v1-fulfillments-order-fulfillments.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ecom-v1-fulfillments-order-fulfillments.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.types.ts"],"names":[],"mappings":";;;AA0KA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,kBAAkB;IAClB,iCAAiB,CAAA;IACjB,cAAc;IACd,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,iBAYX;AAZD,WAAY,iBAAiB;IAC3B,4CAA4C;IAC5C,oDAA+B,CAAA;IAC/B;;;OAGG;IACH,4CAAuB,CAAA;IACvB,wBAAwB;IACxB,0CAAqB,CAAA;IACrB,yDAAyD;IACzD,gEAA2C,CAAA;AAC7C,CAAC,EAZW,iBAAiB,iCAAjB,iBAAiB,QAY5B;AAsVD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|