@wix/auto_sdk_ecom_order-fulfillments 1.0.9 → 1.0.10
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/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +18 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js +24 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +47 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js +256 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +28 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js +148 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +80 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js +59 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +1 -0
- package/build/{ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.mts → cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts} +54 -174
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js +34 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +813 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +362 -0
- package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +18 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.js +18 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +1 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +47 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.js +247 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +1 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +28 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js +116 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +1 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +80 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.js +47 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +1 -0
- package/build/{ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.ts → es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts} +54 -174
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.js +31 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +813 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +330 -0
- package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +18 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js +24 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +47 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js +256 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +28 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js +148 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +80 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js +59 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +1 -0
- package/build/internal/{ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.mts → cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts} +54 -174
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js +34 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +813 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +362 -0
- package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +18 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.js +18 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +47 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.js +247 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +28 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js +116 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +80 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.js +47 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +1 -0
- package/build/internal/{ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.ts → es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts} +54 -174
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.js +31 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +1 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +813 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +330 -0
- package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -93
- package/build/index.d.ts +0 -93
- package/build/index.js +0 -516
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -483
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -93
- package/build/internal/index.d.ts +0 -93
- package/build/internal/index.js +0 -516
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -483
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -258
- package/build/internal/meta.d.ts +0 -258
- package/build/internal/meta.js +0 -364
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -332
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -258
- package/build/meta.d.ts +0 -258
- package/build/meta.js +0 -364
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -332
- package/build/meta.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface OrderWithFulfillments {
|
|
1
|
+
export interface OrderWithFulfillments {
|
|
2
2
|
/**
|
|
3
3
|
* Order ID.
|
|
4
4
|
* @minLength 1
|
|
@@ -9,7 +9,7 @@ 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
|
-
interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
12
|
+
export interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
13
13
|
/** Tracking info. */
|
|
14
14
|
trackingInfo?: FulfillmentTrackingInfo;
|
|
15
15
|
/** Custom fulfillment info. */
|
|
@@ -19,12 +19,12 @@ 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 @@ interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
|
47
47
|
completed?: boolean | null;
|
|
48
48
|
}
|
|
49
49
|
/** @oneof */
|
|
50
|
-
interface FulfillmentFulfillmentInfoOneOf {
|
|
50
|
+
export interface FulfillmentFulfillmentInfoOneOf {
|
|
51
51
|
/** Tracking info. */
|
|
52
52
|
trackingInfo?: FulfillmentTrackingInfo;
|
|
53
53
|
/** Custom fulfillment info. */
|
|
54
54
|
customInfo?: CustomFulfillmentInfo;
|
|
55
55
|
}
|
|
56
|
-
interface FulfillmentLineItem {
|
|
56
|
+
export 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 @@ interface FulfillmentLineItem {
|
|
|
71
71
|
*/
|
|
72
72
|
quantity?: number | null;
|
|
73
73
|
}
|
|
74
|
-
interface FulfillmentTrackingInfo {
|
|
74
|
+
export interface FulfillmentTrackingInfo {
|
|
75
75
|
/**
|
|
76
76
|
* Shipping/delivery tracking number.
|
|
77
77
|
* @minLength 1
|
|
@@ -97,14 +97,14 @@ interface FulfillmentTrackingInfo {
|
|
|
97
97
|
*/
|
|
98
98
|
trackingLink?: string | null;
|
|
99
99
|
}
|
|
100
|
-
interface CustomFulfillmentInfo {
|
|
100
|
+
export 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
|
-
interface FulfillmentCreated {
|
|
107
|
+
export interface FulfillmentCreated {
|
|
108
108
|
/**
|
|
109
109
|
* Order ID (auto generated upon order creation).
|
|
110
110
|
* @format GUID
|
|
@@ -125,12 +125,12 @@ interface FulfillmentCreated {
|
|
|
125
125
|
trackingInfo?: V2FulfillmentTrackingInfo;
|
|
126
126
|
}
|
|
127
127
|
/** Buyer Info */
|
|
128
|
-
interface BuyerInfo {
|
|
128
|
+
export 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 @@ interface BuyerInfo {
|
|
|
160
160
|
*/
|
|
161
161
|
email?: string;
|
|
162
162
|
}
|
|
163
|
-
declare enum IdentityType {
|
|
163
|
+
export 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
|
-
declare enum FulfillmentStatus {
|
|
170
|
+
export declare enum FulfillmentStatus {
|
|
171
171
|
/** None of the order items are fulfilled */
|
|
172
172
|
NOT_FULFILLED = "NOT_FULFILLED",
|
|
173
173
|
/**
|
|
@@ -180,7 +180,7 @@ declare enum FulfillmentStatus {
|
|
|
180
180
|
/** Some, but not all of the order items are fulfilled */
|
|
181
181
|
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
|
|
182
182
|
}
|
|
183
|
-
interface V2FulfillmentTrackingInfo {
|
|
183
|
+
export interface V2FulfillmentTrackingInfo {
|
|
184
184
|
/**
|
|
185
185
|
* Tracking number.
|
|
186
186
|
* @minLength 1
|
|
@@ -206,7 +206,7 @@ interface V2FulfillmentTrackingInfo {
|
|
|
206
206
|
*/
|
|
207
207
|
trackingLink?: string | null;
|
|
208
208
|
}
|
|
209
|
-
interface FulfillmentUpdated {
|
|
209
|
+
export interface FulfillmentUpdated {
|
|
210
210
|
/**
|
|
211
211
|
* Order ID (auto generated upon order creation).
|
|
212
212
|
* @format GUID
|
|
@@ -220,7 +220,7 @@ interface FulfillmentUpdated {
|
|
|
220
220
|
/** Fulfillment tracking information. */
|
|
221
221
|
trackingInfo?: V2FulfillmentTrackingInfo;
|
|
222
222
|
}
|
|
223
|
-
interface FulfillmentDeleted {
|
|
223
|
+
export interface FulfillmentDeleted {
|
|
224
224
|
/**
|
|
225
225
|
* Order ID (auto generated upon order creation).
|
|
226
226
|
* @format GUID
|
|
@@ -234,7 +234,7 @@ interface FulfillmentDeleted {
|
|
|
234
234
|
/** Order fulfillment status. */
|
|
235
235
|
fulfillmentStatus?: FulfillmentStatus;
|
|
236
236
|
}
|
|
237
|
-
interface ListFulfillmentsForSingleOrderRequest {
|
|
237
|
+
export interface ListFulfillmentsForSingleOrderRequest {
|
|
238
238
|
/**
|
|
239
239
|
* Order ID for which to retrieve fulfillments.
|
|
240
240
|
* @minLength 1
|
|
@@ -242,11 +242,11 @@ interface ListFulfillmentsForSingleOrderRequest {
|
|
|
242
242
|
*/
|
|
243
243
|
orderId: string;
|
|
244
244
|
}
|
|
245
|
-
interface ListFulfillmentsForSingleOrderResponse {
|
|
245
|
+
export interface ListFulfillmentsForSingleOrderResponse {
|
|
246
246
|
/** List of fulfillments associated with the order. */
|
|
247
247
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
248
248
|
}
|
|
249
|
-
interface ListFulfillmentsForMultipleOrdersRequest {
|
|
249
|
+
export interface ListFulfillmentsForMultipleOrdersRequest {
|
|
250
250
|
/**
|
|
251
251
|
* List of order IDs for which to retrieve fulfillments.
|
|
252
252
|
* @minSize 1
|
|
@@ -254,33 +254,33 @@ interface ListFulfillmentsForMultipleOrdersRequest {
|
|
|
254
254
|
*/
|
|
255
255
|
orderIds: string[];
|
|
256
256
|
}
|
|
257
|
-
interface ListFulfillmentsForMultipleOrdersResponse {
|
|
257
|
+
export interface ListFulfillmentsForMultipleOrdersResponse {
|
|
258
258
|
/** List of order IDs and their associated fulfillments. */
|
|
259
259
|
ordersWithFulfillments?: OrderWithFulfillments[];
|
|
260
260
|
}
|
|
261
|
-
interface CreateFulfillmentRequest {
|
|
261
|
+
export interface CreateFulfillmentRequest {
|
|
262
262
|
/** Order ID. */
|
|
263
263
|
orderId: string;
|
|
264
264
|
/** Fulfillment info. */
|
|
265
265
|
fulfillment: Fulfillment;
|
|
266
266
|
}
|
|
267
|
-
interface CreateFulfillmentResponse {
|
|
267
|
+
export 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
|
-
interface UpdateFulfillmentRequest {
|
|
273
|
+
export interface UpdateFulfillmentRequest {
|
|
274
274
|
/** Order ID. */
|
|
275
275
|
orderId: string;
|
|
276
276
|
/** Fulfillment info to update. */
|
|
277
277
|
fulfillment?: Fulfillment;
|
|
278
278
|
}
|
|
279
|
-
interface UpdateFulfillmentResponse {
|
|
279
|
+
export interface UpdateFulfillmentResponse {
|
|
280
280
|
/** Order ID and the orders' associated fulfillments after update. */
|
|
281
281
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
282
282
|
}
|
|
283
|
-
interface DeleteFulfillmentRequest {
|
|
283
|
+
export interface DeleteFulfillmentRequest {
|
|
284
284
|
/**
|
|
285
285
|
* Order ID.
|
|
286
286
|
* @minLength 1
|
|
@@ -293,19 +293,19 @@ interface DeleteFulfillmentRequest {
|
|
|
293
293
|
*/
|
|
294
294
|
fulfillmentId: string;
|
|
295
295
|
}
|
|
296
|
-
interface DeleteFulfillmentResponse {
|
|
296
|
+
export interface DeleteFulfillmentResponse {
|
|
297
297
|
/** Order ID and the order's associated fulfillments after deletion. */
|
|
298
298
|
orderWithFulfillments?: OrderWithFulfillments;
|
|
299
299
|
}
|
|
300
|
-
interface BulkCreateFulfillmentRequest {
|
|
300
|
+
export interface BulkCreateFulfillmentRequest {
|
|
301
301
|
/**
|
|
302
|
-
* List of order IDs and their associated fulfillments
|
|
302
|
+
* List of order IDs and their associated fulfillments.
|
|
303
303
|
* @minSize 1
|
|
304
304
|
* @maxSize 100
|
|
305
305
|
*/
|
|
306
306
|
ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
|
|
307
307
|
}
|
|
308
|
-
interface BulkCreateOrderWithFulfillments {
|
|
308
|
+
export interface BulkCreateOrderWithFulfillments {
|
|
309
309
|
/**
|
|
310
310
|
* Order ID.
|
|
311
311
|
* @minLength 1
|
|
@@ -318,21 +318,20 @@ interface BulkCreateOrderWithFulfillments {
|
|
|
318
318
|
*/
|
|
319
319
|
fulfillments?: Fulfillment[];
|
|
320
320
|
}
|
|
321
|
-
interface BulkCreateFulfillmentResponse {
|
|
321
|
+
export 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
|
-
interface BulkOrderFulfillmentsResult {
|
|
327
|
+
export interface BulkOrderFulfillmentsResult {
|
|
328
328
|
/** Item metadata. */
|
|
329
329
|
itemMetadata?: ItemMetadata;
|
|
330
|
-
/** List of order IDs and their associated fulfillments. */
|
|
331
330
|
ordersWithFulfillments?: OrderWithFulfillments;
|
|
332
331
|
}
|
|
333
|
-
interface ItemMetadata {
|
|
332
|
+
export interface ItemMetadata {
|
|
334
333
|
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
335
|
-
|
|
334
|
+
id?: string | null;
|
|
336
335
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
337
336
|
originalIndex?: number;
|
|
338
337
|
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
@@ -340,7 +339,7 @@ interface ItemMetadata {
|
|
|
340
339
|
/** Details about the error in case of failure. */
|
|
341
340
|
error?: ApplicationError;
|
|
342
341
|
}
|
|
343
|
-
interface ApplicationError {
|
|
342
|
+
export interface ApplicationError {
|
|
344
343
|
/** Error code. */
|
|
345
344
|
code?: string;
|
|
346
345
|
/** Description of the error. */
|
|
@@ -348,7 +347,7 @@ interface ApplicationError {
|
|
|
348
347
|
/** Data related to the error. */
|
|
349
348
|
data?: Record<string, any> | null;
|
|
350
349
|
}
|
|
351
|
-
interface BulkActionMetadata {
|
|
350
|
+
export interface BulkActionMetadata {
|
|
352
351
|
/** Number of items that were successfully processed. */
|
|
353
352
|
totalSuccesses?: number;
|
|
354
353
|
/** Number of items that couldn't be processed. */
|
|
@@ -356,7 +355,7 @@ interface BulkActionMetadata {
|
|
|
356
355
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
357
356
|
undetailedFailures?: number;
|
|
358
357
|
}
|
|
359
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
358
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
360
359
|
createdEvent?: EntityCreatedEvent;
|
|
361
360
|
updatedEvent?: EntityUpdatedEvent;
|
|
362
361
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -365,7 +364,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
365
364
|
* Unique event ID.
|
|
366
365
|
* Allows clients to ignore duplicate webhooks.
|
|
367
366
|
*/
|
|
368
|
-
|
|
367
|
+
id?: string;
|
|
369
368
|
/**
|
|
370
369
|
* Assumes actions are also always typed to an entity_type
|
|
371
370
|
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
@@ -399,34 +398,36 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
399
398
|
entityEventSequence?: string | null;
|
|
400
399
|
}
|
|
401
400
|
/** @oneof */
|
|
402
|
-
interface DomainEventBodyOneOf {
|
|
401
|
+
export interface DomainEventBodyOneOf {
|
|
403
402
|
createdEvent?: EntityCreatedEvent;
|
|
404
403
|
updatedEvent?: EntityUpdatedEvent;
|
|
405
404
|
deletedEvent?: EntityDeletedEvent;
|
|
406
405
|
actionEvent?: ActionEvent;
|
|
407
406
|
}
|
|
408
|
-
interface EntityCreatedEvent {
|
|
409
|
-
|
|
407
|
+
export interface EntityCreatedEvent {
|
|
408
|
+
entityAsJson?: string;
|
|
409
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
410
|
+
restoreInfo?: RestoreInfo;
|
|
410
411
|
}
|
|
411
|
-
interface RestoreInfo {
|
|
412
|
+
export interface RestoreInfo {
|
|
412
413
|
deletedDate?: Date | null;
|
|
413
414
|
}
|
|
414
|
-
interface EntityUpdatedEvent {
|
|
415
|
+
export interface EntityUpdatedEvent {
|
|
415
416
|
/**
|
|
416
417
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
417
418
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
418
419
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
419
420
|
*/
|
|
420
|
-
|
|
421
|
+
currentEntityAsJson?: string;
|
|
421
422
|
}
|
|
422
|
-
interface EntityDeletedEvent {
|
|
423
|
+
export interface EntityDeletedEvent {
|
|
423
424
|
/** Entity that was deleted */
|
|
424
|
-
|
|
425
|
+
deletedEntityAsJson?: string | null;
|
|
425
426
|
}
|
|
426
|
-
interface ActionEvent {
|
|
427
|
-
|
|
427
|
+
export interface ActionEvent {
|
|
428
|
+
bodyAsJson?: string;
|
|
428
429
|
}
|
|
429
|
-
interface MessageEnvelope {
|
|
430
|
+
export interface MessageEnvelope {
|
|
430
431
|
/**
|
|
431
432
|
* App instance ID.
|
|
432
433
|
* @format GUID
|
|
@@ -442,7 +443,7 @@ interface MessageEnvelope {
|
|
|
442
443
|
/** Stringify payload. */
|
|
443
444
|
data?: string;
|
|
444
445
|
}
|
|
445
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
446
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
446
447
|
/**
|
|
447
448
|
* ID of a site visitor that has not logged in to the site.
|
|
448
449
|
* @format GUID
|
|
@@ -467,7 +468,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
467
468
|
identityType?: WebhookIdentityType;
|
|
468
469
|
}
|
|
469
470
|
/** @oneof */
|
|
470
|
-
interface IdentificationDataIdOneOf {
|
|
471
|
+
export interface IdentificationDataIdOneOf {
|
|
471
472
|
/**
|
|
472
473
|
* ID of a site visitor that has not logged in to the site.
|
|
473
474
|
* @format GUID
|
|
@@ -489,131 +490,10 @@ interface IdentificationDataIdOneOf {
|
|
|
489
490
|
*/
|
|
490
491
|
appId?: string;
|
|
491
492
|
}
|
|
492
|
-
declare enum WebhookIdentityType {
|
|
493
|
+
export declare enum WebhookIdentityType {
|
|
493
494
|
UNKNOWN = "UNKNOWN",
|
|
494
495
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
495
496
|
MEMBER = "MEMBER",
|
|
496
497
|
WIX_USER = "WIX_USER",
|
|
497
498
|
APP = "APP"
|
|
498
499
|
}
|
|
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 };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export var IdentityType;
|
|
2
|
+
(function (IdentityType) {
|
|
3
|
+
IdentityType["UNSPECIFIED_IDENTITY_TYPE"] = "UNSPECIFIED_IDENTITY_TYPE";
|
|
4
|
+
/** Site member */
|
|
5
|
+
IdentityType["MEMBER"] = "MEMBER";
|
|
6
|
+
/** Contact */
|
|
7
|
+
IdentityType["CONTACT"] = "CONTACT";
|
|
8
|
+
})(IdentityType || (IdentityType = {}));
|
|
9
|
+
export var FulfillmentStatus;
|
|
10
|
+
(function (FulfillmentStatus) {
|
|
11
|
+
/** None of the order items are fulfilled */
|
|
12
|
+
FulfillmentStatus["NOT_FULFILLED"] = "NOT_FULFILLED";
|
|
13
|
+
/**
|
|
14
|
+
* All of the order items are fulfilled
|
|
15
|
+
* Orders without shipping info are fulfilled automatically
|
|
16
|
+
*/
|
|
17
|
+
FulfillmentStatus["FULFILLED"] = "FULFILLED";
|
|
18
|
+
/** Order is canceled */
|
|
19
|
+
FulfillmentStatus["CANCELED"] = "CANCELED";
|
|
20
|
+
/** Some, but not all of the order items are fulfilled */
|
|
21
|
+
FulfillmentStatus["PARTIALLY_FULFILLED"] = "PARTIALLY_FULFILLED";
|
|
22
|
+
})(FulfillmentStatus || (FulfillmentStatus = {}));
|
|
23
|
+
export var WebhookIdentityType;
|
|
24
|
+
(function (WebhookIdentityType) {
|
|
25
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
26
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
27
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
28
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
29
|
+
WebhookIdentityType["APP"] = "APP";
|
|
30
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
31
|
+
//# sourceMappingURL=ecom-v1-fulfillments-order-fulfillments.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-fulfillments-order-fulfillments.types.js","sourceRoot":"","sources":["../../../src/ecom-v1-fulfillments-order-fulfillments.types.ts"],"names":[],"mappings":"AA0KA,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uEAAuD,CAAA;IACvD,kBAAkB;IAClB,iCAAiB,CAAA;IACjB,cAAc;IACd,mCAAmB,CAAA;AACrB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAED,MAAM,CAAN,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,KAAjB,iBAAiB,QAY5B;AAsVD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|