@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
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { o as ListFulfillmentsForSingleOrderRequest$1, L as ListFulfillmentsForSingleOrderResponse$1, p as ListFulfillmentsForMultipleOrdersRequest$1, a as ListFulfillmentsForMultipleOrdersResponse$1, q as CreateFulfillmentRequest$1, C as CreateFulfillmentResponse$1, r as UpdateFulfillmentRequest$1, s as UpdateFulfillmentResponse$1, t as DeleteFulfillmentRequest$1, c as DeleteFulfillmentResponse$1, u as BulkCreateFulfillmentRequest$1, d as BulkCreateFulfillmentResponse$1 } from './ecom-v1-fulfillments-order-fulfillments.universal-DOM-x30R.mjs';
|
|
2
|
+
|
|
3
|
+
interface OrderWithFulfillments {
|
|
4
|
+
/**
|
|
5
|
+
* Order ID.
|
|
6
|
+
* @minLength 1
|
|
7
|
+
* @maxLength 100
|
|
8
|
+
*/
|
|
9
|
+
orderId?: string;
|
|
10
|
+
/** Fulfillments associated with the order. */
|
|
11
|
+
fulfillments?: Fulfillment[];
|
|
12
|
+
}
|
|
13
|
+
/** for now, this is a sub-object of Orders, so can refer to order line items by id. */
|
|
14
|
+
interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
15
|
+
/** Tracking info. */
|
|
16
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
17
|
+
/** Custom fulfillment info. */
|
|
18
|
+
customInfo?: CustomFulfillmentInfo;
|
|
19
|
+
/**
|
|
20
|
+
* Fulfillment ID.
|
|
21
|
+
* @format GUID
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
id?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
createdDate?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* Line items being fulfilled.
|
|
32
|
+
* @maxSize 300
|
|
33
|
+
*/
|
|
34
|
+
lineItems?: FulfillmentLineItem[];
|
|
35
|
+
/**
|
|
36
|
+
* __Optional.__ Fulfillment status.
|
|
37
|
+
*
|
|
38
|
+
* Supported values:
|
|
39
|
+
* + `"Pending"`
|
|
40
|
+
* + `"Accepted"`
|
|
41
|
+
* + `"Ready"`
|
|
42
|
+
* + `"In_Delivery"`
|
|
43
|
+
* + `"Fulfilled"`
|
|
44
|
+
* @minLength 1
|
|
45
|
+
* @maxLength 100
|
|
46
|
+
*/
|
|
47
|
+
status?: string | null;
|
|
48
|
+
/** Fulfillment handling complete. */
|
|
49
|
+
completed?: boolean | null;
|
|
50
|
+
}
|
|
51
|
+
/** @oneof */
|
|
52
|
+
interface FulfillmentFulfillmentInfoOneOf {
|
|
53
|
+
/** Tracking info. */
|
|
54
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
55
|
+
/** Custom fulfillment info. */
|
|
56
|
+
customInfo?: CustomFulfillmentInfo;
|
|
57
|
+
}
|
|
58
|
+
interface FulfillmentLineItem {
|
|
59
|
+
/**
|
|
60
|
+
* Line item ID (mirrors the ID of the order line item).
|
|
61
|
+
* @format GUID
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Line item quantity.
|
|
66
|
+
* * If this property isn't passed on creation, it defaults to the number of items not already linked to a fulfillment.
|
|
67
|
+
* * If the order does not have the requested quantity of line items available to add to this fulfillment, the fulfillment will not be created and an error is returned.
|
|
68
|
+
*
|
|
69
|
+
* Min: `1`
|
|
70
|
+
* Max: `100000`
|
|
71
|
+
* @min 1
|
|
72
|
+
* @max 100000
|
|
73
|
+
*/
|
|
74
|
+
quantity?: number | null;
|
|
75
|
+
}
|
|
76
|
+
interface FulfillmentTrackingInfo {
|
|
77
|
+
/**
|
|
78
|
+
* Shipping/delivery tracking number.
|
|
79
|
+
* @minLength 1
|
|
80
|
+
* @maxLength 100
|
|
81
|
+
*/
|
|
82
|
+
trackingNumber?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Shipping provider. Using one of the following shipping providers will allow for auto-filling the tracking link:
|
|
85
|
+
* * `'fedex'`
|
|
86
|
+
* * `'ups'`
|
|
87
|
+
* * `'usps'`
|
|
88
|
+
* * `'dhl'`
|
|
89
|
+
* * `'canadaPost'`
|
|
90
|
+
* @minLength 1
|
|
91
|
+
* @maxLength 100
|
|
92
|
+
*/
|
|
93
|
+
shippingProvider?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Tracking link. Auto-filled if a predefined shipping provider is used, otherwise provided on creation.
|
|
96
|
+
* @minLength 1
|
|
97
|
+
* @maxLength 2048
|
|
98
|
+
* @format WEB_URL
|
|
99
|
+
*/
|
|
100
|
+
trackingLink?: string | null;
|
|
101
|
+
}
|
|
102
|
+
interface CustomFulfillmentInfo {
|
|
103
|
+
/**
|
|
104
|
+
* Custom fulfillment info in key:value form.
|
|
105
|
+
* @maxSize 100
|
|
106
|
+
*/
|
|
107
|
+
fieldsData?: Record<string, string>;
|
|
108
|
+
}
|
|
109
|
+
interface ListFulfillmentsForSingleOrderRequest {
|
|
110
|
+
/**
|
|
111
|
+
* Order ID for which to retrieve fulfillments.
|
|
112
|
+
* @minLength 1
|
|
113
|
+
* @maxLength 100
|
|
114
|
+
*/
|
|
115
|
+
orderId: string;
|
|
116
|
+
}
|
|
117
|
+
interface ListFulfillmentsForSingleOrderResponse {
|
|
118
|
+
/** List of fulfillments associated with the order. */
|
|
119
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
120
|
+
}
|
|
121
|
+
interface ListFulfillmentsForMultipleOrdersRequest {
|
|
122
|
+
/**
|
|
123
|
+
* List of order IDs for which to retrieve fulfillments.
|
|
124
|
+
* @minSize 1
|
|
125
|
+
* @maxSize 100
|
|
126
|
+
*/
|
|
127
|
+
orderIds: string[];
|
|
128
|
+
}
|
|
129
|
+
interface ListFulfillmentsForMultipleOrdersResponse {
|
|
130
|
+
/** List of order IDs and their associated fulfillments. */
|
|
131
|
+
ordersWithFulfillments?: OrderWithFulfillments[];
|
|
132
|
+
}
|
|
133
|
+
interface CreateFulfillmentRequest {
|
|
134
|
+
/** Order ID. */
|
|
135
|
+
orderId: string;
|
|
136
|
+
/** Fulfillment info. */
|
|
137
|
+
fulfillment: Fulfillment;
|
|
138
|
+
}
|
|
139
|
+
interface CreateFulfillmentResponse {
|
|
140
|
+
/** Order ID and the orders' fulfillments. */
|
|
141
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
142
|
+
/** ID of created fulfillment. */
|
|
143
|
+
fulfillmentId?: string;
|
|
144
|
+
}
|
|
145
|
+
interface UpdateFulfillmentRequest {
|
|
146
|
+
/** Order ID. */
|
|
147
|
+
orderId: string;
|
|
148
|
+
/** Fulfillment info to update. */
|
|
149
|
+
fulfillment?: Fulfillment;
|
|
150
|
+
}
|
|
151
|
+
interface UpdateFulfillmentResponse {
|
|
152
|
+
/** Order ID and the orders' associated fulfillments after update. */
|
|
153
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
154
|
+
}
|
|
155
|
+
interface DeleteFulfillmentRequest {
|
|
156
|
+
/**
|
|
157
|
+
* Order ID.
|
|
158
|
+
* @minLength 1
|
|
159
|
+
* @maxLength 100
|
|
160
|
+
*/
|
|
161
|
+
orderId: string;
|
|
162
|
+
/**
|
|
163
|
+
* ID of the fulfillment to delete.
|
|
164
|
+
* @format GUID
|
|
165
|
+
*/
|
|
166
|
+
fulfillmentId: string;
|
|
167
|
+
}
|
|
168
|
+
interface DeleteFulfillmentResponse {
|
|
169
|
+
/** Order ID and the order's associated fulfillments after deletion. */
|
|
170
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
171
|
+
}
|
|
172
|
+
interface BulkCreateFulfillmentRequest {
|
|
173
|
+
/**
|
|
174
|
+
* List of order IDs and their associated fulfillments.
|
|
175
|
+
* @minSize 1
|
|
176
|
+
* @maxSize 100
|
|
177
|
+
*/
|
|
178
|
+
ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
|
|
179
|
+
}
|
|
180
|
+
interface BulkCreateOrderWithFulfillments {
|
|
181
|
+
/**
|
|
182
|
+
* Order ID.
|
|
183
|
+
* @minLength 1
|
|
184
|
+
* @maxLength 100
|
|
185
|
+
*/
|
|
186
|
+
orderId?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Fulfillments associated with the order.
|
|
189
|
+
* @minSize 1
|
|
190
|
+
*/
|
|
191
|
+
fulfillments?: Fulfillment[];
|
|
192
|
+
}
|
|
193
|
+
interface BulkCreateFulfillmentResponse {
|
|
194
|
+
/** Items updated by bulk action. */
|
|
195
|
+
results?: BulkOrderFulfillmentsResult[];
|
|
196
|
+
/** Bulk action metadata. */
|
|
197
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
198
|
+
}
|
|
199
|
+
interface BulkOrderFulfillmentsResult {
|
|
200
|
+
/** Item metadata. */
|
|
201
|
+
itemMetadata?: ItemMetadata;
|
|
202
|
+
ordersWithFulfillments?: OrderWithFulfillments;
|
|
203
|
+
}
|
|
204
|
+
interface ItemMetadata {
|
|
205
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
206
|
+
id?: string | null;
|
|
207
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
208
|
+
originalIndex?: number;
|
|
209
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
210
|
+
success?: boolean;
|
|
211
|
+
/** Details about the error in case of failure. */
|
|
212
|
+
error?: ApplicationError;
|
|
213
|
+
}
|
|
214
|
+
interface ApplicationError {
|
|
215
|
+
/** Error code. */
|
|
216
|
+
code?: string;
|
|
217
|
+
/** Description of the error. */
|
|
218
|
+
description?: string;
|
|
219
|
+
/** Data related to the error. */
|
|
220
|
+
data?: Record<string, any> | null;
|
|
221
|
+
}
|
|
222
|
+
interface BulkActionMetadata {
|
|
223
|
+
/** Number of items that were successfully processed. */
|
|
224
|
+
totalSuccesses?: number;
|
|
225
|
+
/** Number of items that couldn't be processed. */
|
|
226
|
+
totalFailures?: number;
|
|
227
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
228
|
+
undetailedFailures?: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
232
|
+
getUrl: (context: any) => string;
|
|
233
|
+
httpMethod: K;
|
|
234
|
+
path: string;
|
|
235
|
+
pathParams: M;
|
|
236
|
+
__requestType: T;
|
|
237
|
+
__originalRequestType: S;
|
|
238
|
+
__responseType: Q;
|
|
239
|
+
__originalResponseType: R;
|
|
240
|
+
};
|
|
241
|
+
declare function listFulfillmentsForSingleOrder(): __PublicMethodMetaInfo<'GET', {
|
|
242
|
+
orderId: string;
|
|
243
|
+
}, ListFulfillmentsForSingleOrderRequest$1, ListFulfillmentsForSingleOrderRequest, ListFulfillmentsForSingleOrderResponse$1, ListFulfillmentsForSingleOrderResponse>;
|
|
244
|
+
declare function listFulfillmentsForMultipleOrders(): __PublicMethodMetaInfo<'POST', {}, ListFulfillmentsForMultipleOrdersRequest$1, ListFulfillmentsForMultipleOrdersRequest, ListFulfillmentsForMultipleOrdersResponse$1, ListFulfillmentsForMultipleOrdersResponse>;
|
|
245
|
+
declare function createFulfillment(): __PublicMethodMetaInfo<'POST', {
|
|
246
|
+
orderId: string;
|
|
247
|
+
}, CreateFulfillmentRequest$1, CreateFulfillmentRequest, CreateFulfillmentResponse$1, CreateFulfillmentResponse>;
|
|
248
|
+
declare function updateFulfillment(): __PublicMethodMetaInfo<'PATCH', {
|
|
249
|
+
fulfillmentId: string;
|
|
250
|
+
orderId: string;
|
|
251
|
+
}, UpdateFulfillmentRequest$1, UpdateFulfillmentRequest, UpdateFulfillmentResponse$1, UpdateFulfillmentResponse>;
|
|
252
|
+
declare function deleteFulfillment(): __PublicMethodMetaInfo<'DELETE', {
|
|
253
|
+
fulfillmentId: string;
|
|
254
|
+
orderId: string;
|
|
255
|
+
}, DeleteFulfillmentRequest$1, DeleteFulfillmentRequest, DeleteFulfillmentResponse$1, DeleteFulfillmentResponse>;
|
|
256
|
+
declare function bulkCreateFulfillments(): __PublicMethodMetaInfo<'POST', {}, BulkCreateFulfillmentRequest$1, BulkCreateFulfillmentRequest, BulkCreateFulfillmentResponse$1, BulkCreateFulfillmentResponse>;
|
|
257
|
+
|
|
258
|
+
export { type __PublicMethodMetaInfo, bulkCreateFulfillments, createFulfillment, deleteFulfillment, listFulfillmentsForMultipleOrders, listFulfillmentsForSingleOrder, updateFulfillment };
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { o as ListFulfillmentsForSingleOrderRequest$1, L as ListFulfillmentsForSingleOrderResponse$1, p as ListFulfillmentsForMultipleOrdersRequest$1, a as ListFulfillmentsForMultipleOrdersResponse$1, q as CreateFulfillmentRequest$1, C as CreateFulfillmentResponse$1, r as UpdateFulfillmentRequest$1, s as UpdateFulfillmentResponse$1, t as DeleteFulfillmentRequest$1, c as DeleteFulfillmentResponse$1, u as BulkCreateFulfillmentRequest$1, d as BulkCreateFulfillmentResponse$1 } from './ecom-v1-fulfillments-order-fulfillments.universal-DOM-x30R.js';
|
|
2
|
+
|
|
3
|
+
interface OrderWithFulfillments {
|
|
4
|
+
/**
|
|
5
|
+
* Order ID.
|
|
6
|
+
* @minLength 1
|
|
7
|
+
* @maxLength 100
|
|
8
|
+
*/
|
|
9
|
+
orderId?: string;
|
|
10
|
+
/** Fulfillments associated with the order. */
|
|
11
|
+
fulfillments?: Fulfillment[];
|
|
12
|
+
}
|
|
13
|
+
/** for now, this is a sub-object of Orders, so can refer to order line items by id. */
|
|
14
|
+
interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
|
|
15
|
+
/** Tracking info. */
|
|
16
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
17
|
+
/** Custom fulfillment info. */
|
|
18
|
+
customInfo?: CustomFulfillmentInfo;
|
|
19
|
+
/**
|
|
20
|
+
* Fulfillment ID.
|
|
21
|
+
* @format GUID
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
id?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
createdDate?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* Line items being fulfilled.
|
|
32
|
+
* @maxSize 300
|
|
33
|
+
*/
|
|
34
|
+
lineItems?: FulfillmentLineItem[];
|
|
35
|
+
/**
|
|
36
|
+
* __Optional.__ Fulfillment status.
|
|
37
|
+
*
|
|
38
|
+
* Supported values:
|
|
39
|
+
* + `"Pending"`
|
|
40
|
+
* + `"Accepted"`
|
|
41
|
+
* + `"Ready"`
|
|
42
|
+
* + `"In_Delivery"`
|
|
43
|
+
* + `"Fulfilled"`
|
|
44
|
+
* @minLength 1
|
|
45
|
+
* @maxLength 100
|
|
46
|
+
*/
|
|
47
|
+
status?: string | null;
|
|
48
|
+
/** Fulfillment handling complete. */
|
|
49
|
+
completed?: boolean | null;
|
|
50
|
+
}
|
|
51
|
+
/** @oneof */
|
|
52
|
+
interface FulfillmentFulfillmentInfoOneOf {
|
|
53
|
+
/** Tracking info. */
|
|
54
|
+
trackingInfo?: FulfillmentTrackingInfo;
|
|
55
|
+
/** Custom fulfillment info. */
|
|
56
|
+
customInfo?: CustomFulfillmentInfo;
|
|
57
|
+
}
|
|
58
|
+
interface FulfillmentLineItem {
|
|
59
|
+
/**
|
|
60
|
+
* Line item ID (mirrors the ID of the order line item).
|
|
61
|
+
* @format GUID
|
|
62
|
+
*/
|
|
63
|
+
id?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Line item quantity.
|
|
66
|
+
* * If this property isn't passed on creation, it defaults to the number of items not already linked to a fulfillment.
|
|
67
|
+
* * If the order does not have the requested quantity of line items available to add to this fulfillment, the fulfillment will not be created and an error is returned.
|
|
68
|
+
*
|
|
69
|
+
* Min: `1`
|
|
70
|
+
* Max: `100000`
|
|
71
|
+
* @min 1
|
|
72
|
+
* @max 100000
|
|
73
|
+
*/
|
|
74
|
+
quantity?: number | null;
|
|
75
|
+
}
|
|
76
|
+
interface FulfillmentTrackingInfo {
|
|
77
|
+
/**
|
|
78
|
+
* Shipping/delivery tracking number.
|
|
79
|
+
* @minLength 1
|
|
80
|
+
* @maxLength 100
|
|
81
|
+
*/
|
|
82
|
+
trackingNumber?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Shipping provider. Using one of the following shipping providers will allow for auto-filling the tracking link:
|
|
85
|
+
* * `'fedex'`
|
|
86
|
+
* * `'ups'`
|
|
87
|
+
* * `'usps'`
|
|
88
|
+
* * `'dhl'`
|
|
89
|
+
* * `'canadaPost'`
|
|
90
|
+
* @minLength 1
|
|
91
|
+
* @maxLength 100
|
|
92
|
+
*/
|
|
93
|
+
shippingProvider?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Tracking link. Auto-filled if a predefined shipping provider is used, otherwise provided on creation.
|
|
96
|
+
* @minLength 1
|
|
97
|
+
* @maxLength 2048
|
|
98
|
+
* @format WEB_URL
|
|
99
|
+
*/
|
|
100
|
+
trackingLink?: string | null;
|
|
101
|
+
}
|
|
102
|
+
interface CustomFulfillmentInfo {
|
|
103
|
+
/**
|
|
104
|
+
* Custom fulfillment info in key:value form.
|
|
105
|
+
* @maxSize 100
|
|
106
|
+
*/
|
|
107
|
+
fieldsData?: Record<string, string>;
|
|
108
|
+
}
|
|
109
|
+
interface ListFulfillmentsForSingleOrderRequest {
|
|
110
|
+
/**
|
|
111
|
+
* Order ID for which to retrieve fulfillments.
|
|
112
|
+
* @minLength 1
|
|
113
|
+
* @maxLength 100
|
|
114
|
+
*/
|
|
115
|
+
orderId: string;
|
|
116
|
+
}
|
|
117
|
+
interface ListFulfillmentsForSingleOrderResponse {
|
|
118
|
+
/** List of fulfillments associated with the order. */
|
|
119
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
120
|
+
}
|
|
121
|
+
interface ListFulfillmentsForMultipleOrdersRequest {
|
|
122
|
+
/**
|
|
123
|
+
* List of order IDs for which to retrieve fulfillments.
|
|
124
|
+
* @minSize 1
|
|
125
|
+
* @maxSize 100
|
|
126
|
+
*/
|
|
127
|
+
orderIds: string[];
|
|
128
|
+
}
|
|
129
|
+
interface ListFulfillmentsForMultipleOrdersResponse {
|
|
130
|
+
/** List of order IDs and their associated fulfillments. */
|
|
131
|
+
ordersWithFulfillments?: OrderWithFulfillments[];
|
|
132
|
+
}
|
|
133
|
+
interface CreateFulfillmentRequest {
|
|
134
|
+
/** Order ID. */
|
|
135
|
+
orderId: string;
|
|
136
|
+
/** Fulfillment info. */
|
|
137
|
+
fulfillment: Fulfillment;
|
|
138
|
+
}
|
|
139
|
+
interface CreateFulfillmentResponse {
|
|
140
|
+
/** Order ID and the orders' fulfillments. */
|
|
141
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
142
|
+
/** ID of created fulfillment. */
|
|
143
|
+
fulfillmentId?: string;
|
|
144
|
+
}
|
|
145
|
+
interface UpdateFulfillmentRequest {
|
|
146
|
+
/** Order ID. */
|
|
147
|
+
orderId: string;
|
|
148
|
+
/** Fulfillment info to update. */
|
|
149
|
+
fulfillment?: Fulfillment;
|
|
150
|
+
}
|
|
151
|
+
interface UpdateFulfillmentResponse {
|
|
152
|
+
/** Order ID and the orders' associated fulfillments after update. */
|
|
153
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
154
|
+
}
|
|
155
|
+
interface DeleteFulfillmentRequest {
|
|
156
|
+
/**
|
|
157
|
+
* Order ID.
|
|
158
|
+
* @minLength 1
|
|
159
|
+
* @maxLength 100
|
|
160
|
+
*/
|
|
161
|
+
orderId: string;
|
|
162
|
+
/**
|
|
163
|
+
* ID of the fulfillment to delete.
|
|
164
|
+
* @format GUID
|
|
165
|
+
*/
|
|
166
|
+
fulfillmentId: string;
|
|
167
|
+
}
|
|
168
|
+
interface DeleteFulfillmentResponse {
|
|
169
|
+
/** Order ID and the order's associated fulfillments after deletion. */
|
|
170
|
+
orderWithFulfillments?: OrderWithFulfillments;
|
|
171
|
+
}
|
|
172
|
+
interface BulkCreateFulfillmentRequest {
|
|
173
|
+
/**
|
|
174
|
+
* List of order IDs and their associated fulfillments.
|
|
175
|
+
* @minSize 1
|
|
176
|
+
* @maxSize 100
|
|
177
|
+
*/
|
|
178
|
+
ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
|
|
179
|
+
}
|
|
180
|
+
interface BulkCreateOrderWithFulfillments {
|
|
181
|
+
/**
|
|
182
|
+
* Order ID.
|
|
183
|
+
* @minLength 1
|
|
184
|
+
* @maxLength 100
|
|
185
|
+
*/
|
|
186
|
+
orderId?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Fulfillments associated with the order.
|
|
189
|
+
* @minSize 1
|
|
190
|
+
*/
|
|
191
|
+
fulfillments?: Fulfillment[];
|
|
192
|
+
}
|
|
193
|
+
interface BulkCreateFulfillmentResponse {
|
|
194
|
+
/** Items updated by bulk action. */
|
|
195
|
+
results?: BulkOrderFulfillmentsResult[];
|
|
196
|
+
/** Bulk action metadata. */
|
|
197
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
198
|
+
}
|
|
199
|
+
interface BulkOrderFulfillmentsResult {
|
|
200
|
+
/** Item metadata. */
|
|
201
|
+
itemMetadata?: ItemMetadata;
|
|
202
|
+
ordersWithFulfillments?: OrderWithFulfillments;
|
|
203
|
+
}
|
|
204
|
+
interface ItemMetadata {
|
|
205
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
206
|
+
id?: string | null;
|
|
207
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
208
|
+
originalIndex?: number;
|
|
209
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
210
|
+
success?: boolean;
|
|
211
|
+
/** Details about the error in case of failure. */
|
|
212
|
+
error?: ApplicationError;
|
|
213
|
+
}
|
|
214
|
+
interface ApplicationError {
|
|
215
|
+
/** Error code. */
|
|
216
|
+
code?: string;
|
|
217
|
+
/** Description of the error. */
|
|
218
|
+
description?: string;
|
|
219
|
+
/** Data related to the error. */
|
|
220
|
+
data?: Record<string, any> | null;
|
|
221
|
+
}
|
|
222
|
+
interface BulkActionMetadata {
|
|
223
|
+
/** Number of items that were successfully processed. */
|
|
224
|
+
totalSuccesses?: number;
|
|
225
|
+
/** Number of items that couldn't be processed. */
|
|
226
|
+
totalFailures?: number;
|
|
227
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
228
|
+
undetailedFailures?: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
232
|
+
getUrl: (context: any) => string;
|
|
233
|
+
httpMethod: K;
|
|
234
|
+
path: string;
|
|
235
|
+
pathParams: M;
|
|
236
|
+
__requestType: T;
|
|
237
|
+
__originalRequestType: S;
|
|
238
|
+
__responseType: Q;
|
|
239
|
+
__originalResponseType: R;
|
|
240
|
+
};
|
|
241
|
+
declare function listFulfillmentsForSingleOrder(): __PublicMethodMetaInfo<'GET', {
|
|
242
|
+
orderId: string;
|
|
243
|
+
}, ListFulfillmentsForSingleOrderRequest$1, ListFulfillmentsForSingleOrderRequest, ListFulfillmentsForSingleOrderResponse$1, ListFulfillmentsForSingleOrderResponse>;
|
|
244
|
+
declare function listFulfillmentsForMultipleOrders(): __PublicMethodMetaInfo<'POST', {}, ListFulfillmentsForMultipleOrdersRequest$1, ListFulfillmentsForMultipleOrdersRequest, ListFulfillmentsForMultipleOrdersResponse$1, ListFulfillmentsForMultipleOrdersResponse>;
|
|
245
|
+
declare function createFulfillment(): __PublicMethodMetaInfo<'POST', {
|
|
246
|
+
orderId: string;
|
|
247
|
+
}, CreateFulfillmentRequest$1, CreateFulfillmentRequest, CreateFulfillmentResponse$1, CreateFulfillmentResponse>;
|
|
248
|
+
declare function updateFulfillment(): __PublicMethodMetaInfo<'PATCH', {
|
|
249
|
+
fulfillmentId: string;
|
|
250
|
+
orderId: string;
|
|
251
|
+
}, UpdateFulfillmentRequest$1, UpdateFulfillmentRequest, UpdateFulfillmentResponse$1, UpdateFulfillmentResponse>;
|
|
252
|
+
declare function deleteFulfillment(): __PublicMethodMetaInfo<'DELETE', {
|
|
253
|
+
fulfillmentId: string;
|
|
254
|
+
orderId: string;
|
|
255
|
+
}, DeleteFulfillmentRequest$1, DeleteFulfillmentRequest, DeleteFulfillmentResponse$1, DeleteFulfillmentResponse>;
|
|
256
|
+
declare function bulkCreateFulfillments(): __PublicMethodMetaInfo<'POST', {}, BulkCreateFulfillmentRequest$1, BulkCreateFulfillmentRequest, BulkCreateFulfillmentResponse$1, BulkCreateFulfillmentResponse>;
|
|
257
|
+
|
|
258
|
+
export { type __PublicMethodMetaInfo, bulkCreateFulfillments, createFulfillment, deleteFulfillment, listFulfillmentsForMultipleOrders, listFulfillmentsForSingleOrder, updateFulfillment };
|