@wix/auto_sdk_ecom_order-fulfillments 1.0.17 → 1.0.18

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.
Files changed (134) hide show
  1. package/build/{es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-DOM-x30R.d.mts} +169 -57
  2. package/build/{cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-DOM-x30R.d.ts} +169 -57
  3. package/build/index.d.mts +93 -0
  4. package/build/index.d.ts +93 -0
  5. package/build/index.js +516 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +483 -0
  8. package/build/index.mjs.map +1 -0
  9. 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
  10. 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
  11. package/build/internal/index.d.mts +93 -0
  12. package/build/internal/index.d.ts +93 -0
  13. package/build/internal/index.js +516 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +483 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +258 -0
  18. package/build/internal/meta.d.ts +258 -0
  19. package/build/internal/meta.js +364 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +332 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +258 -0
  24. package/build/meta.d.ts +258 -0
  25. package/build/meta.js +364 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +332 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
  40. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -24
  41. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
  43. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -256
  44. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
  46. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -148
  47. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
  49. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -59
  50. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -34
  52. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -817
  54. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -374
  55. package/build/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
  67. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -18
  68. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
  70. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -247
  71. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
  73. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -116
  74. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
  76. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -47
  77. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -31
  79. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
  80. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -817
  81. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -342
  82. package/build/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
  93. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -24
  94. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
  96. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -256
  97. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
  99. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -148
  100. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
  102. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -59
  103. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -34
  105. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -817
  107. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -374
  108. package/build/internal/cjs/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.d.ts +0 -18
  119. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.js +0 -18
  120. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.d.ts +0 -47
  122. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.js +0 -247
  123. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.d.ts +0 -28
  125. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js +0 -116
  126. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.d.ts +0 -80
  128. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.js +0 -47
  129. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.js +0 -31
  131. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.d.ts +0 -817
  133. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js +0 -342
  134. package/build/internal/es/src/ecom-v1-fulfillments-order-fulfillments.universal.js.map +0 -1
@@ -1,817 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface OrderWithFulfillments {
3
- /**
4
- * Order ID.
5
- * @minLength 1
6
- * @maxLength 100
7
- */
8
- orderId?: string;
9
- /** Fulfillments associated with the order. */
10
- fulfillments?: Fulfillment[];
11
- }
12
- /** for now, this is a sub-object of Orders, so can refer to order line items by id. */
13
- export interface Fulfillment extends FulfillmentFulfillmentInfoOneOf {
14
- /** Tracking info. */
15
- trackingInfo?: FulfillmentTrackingInfo;
16
- /** Custom fulfillment info. */
17
- customInfo?: CustomFulfillmentInfo;
18
- /**
19
- * Fulfillment ID.
20
- * @format GUID
21
- * @readonly
22
- */
23
- _id?: string | null;
24
- /**
25
- * Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
26
- * @readonly
27
- */
28
- _createdDate?: Date | null;
29
- /**
30
- * Line items being fulfilled.
31
- * @maxSize 300
32
- */
33
- lineItems?: FulfillmentLineItem[];
34
- /**
35
- * __Optional.__ Fulfillment status.
36
- *
37
- * Supported values:
38
- * + `"Pending"`
39
- * + `"Accepted"`
40
- * + `"Ready"`
41
- * + `"In_Delivery"`
42
- * + `"Fulfilled"`
43
- * @minLength 1
44
- * @maxLength 100
45
- */
46
- status?: string | null;
47
- /** Fulfillment handling complete. */
48
- completed?: boolean | null;
49
- }
50
- /** @oneof */
51
- export interface FulfillmentFulfillmentInfoOneOf {
52
- /** Tracking info. */
53
- trackingInfo?: FulfillmentTrackingInfo;
54
- /** Custom fulfillment info. */
55
- customInfo?: CustomFulfillmentInfo;
56
- }
57
- export interface FulfillmentLineItem {
58
- /**
59
- * Line item ID (mirrors the ID of the order line item).
60
- * @format GUID
61
- */
62
- _id?: string;
63
- /**
64
- * Line item quantity.
65
- * * If this property isn't passed on creation, it defaults to the number of items not already linked to a fulfillment.
66
- * * 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.
67
- *
68
- * Min: `1`
69
- * Max: `100000`
70
- * @min 1
71
- * @max 100000
72
- */
73
- quantity?: number | null;
74
- }
75
- export interface FulfillmentTrackingInfo {
76
- /**
77
- * Shipping/delivery tracking number.
78
- * @minLength 1
79
- * @maxLength 100
80
- */
81
- trackingNumber?: string | null;
82
- /**
83
- * Shipping provider. Using one of the following shipping providers will allow for auto-filling the tracking link:
84
- * * `'fedex'`
85
- * * `'ups'`
86
- * * `'usps'`
87
- * * `'dhl'`
88
- * * `'canadaPost'`
89
- * @minLength 1
90
- * @maxLength 100
91
- */
92
- shippingProvider?: string | null;
93
- /**
94
- * Tracking link. Auto-filled if a predefined shipping provider is used, otherwise provided on creation.
95
- * @minLength 1
96
- * @maxLength 2048
97
- * @format WEB_URL
98
- */
99
- trackingLink?: string | null;
100
- }
101
- export interface CustomFulfillmentInfo {
102
- /**
103
- * Custom fulfillment info in key:value form.
104
- * @maxSize 100
105
- */
106
- fieldsData?: Record<string, string>;
107
- }
108
- export interface FulfillmentCreated {
109
- /**
110
- * Order ID (auto generated upon order creation).
111
- * @format GUID
112
- */
113
- orderId?: string;
114
- /**
115
- * ID of the newly created fulfillment.
116
- * @format GUID
117
- */
118
- fulfillmentId?: string;
119
- /** Fulfillment creation date and time. */
120
- dateCreated?: Date | null;
121
- /** Buyer information. */
122
- buyerInfo?: BuyerInfo;
123
- /** Order fulfillment status. */
124
- fulfillmentStatus?: FulfillmentStatusWithLiterals;
125
- /** Fulfillment tracking information. */
126
- trackingInfo?: V2FulfillmentTrackingInfo;
127
- }
128
- /** Buyer Info */
129
- export interface BuyerInfo {
130
- /**
131
- * Wix customer ID
132
- * @format GUID
133
- */
134
- _id?: string | null;
135
- /**
136
- * Deprecated (use identityType instead)
137
- * @readonly
138
- * @deprecated
139
- */
140
- type?: IdentityTypeWithLiterals;
141
- /** Customer type */
142
- identityType?: IdentityTypeWithLiterals;
143
- /**
144
- * Customer's first name
145
- * @readonly
146
- */
147
- firstName?: string;
148
- /**
149
- * Customer's last name
150
- * @readonly
151
- */
152
- lastName?: string;
153
- /**
154
- * Customer's phone number
155
- * @readonly
156
- */
157
- phone?: string | null;
158
- /**
159
- * Customer's email address
160
- * @readonly
161
- */
162
- email?: string;
163
- }
164
- export declare enum IdentityType {
165
- UNSPECIFIED_IDENTITY_TYPE = "UNSPECIFIED_IDENTITY_TYPE",
166
- /** Site member */
167
- MEMBER = "MEMBER",
168
- /** Contact */
169
- CONTACT = "CONTACT"
170
- }
171
- /** @enumType */
172
- export type IdentityTypeWithLiterals = IdentityType | 'UNSPECIFIED_IDENTITY_TYPE' | 'MEMBER' | 'CONTACT';
173
- export declare enum FulfillmentStatus {
174
- /** None of the order items are fulfilled */
175
- NOT_FULFILLED = "NOT_FULFILLED",
176
- /**
177
- * All of the order items are fulfilled
178
- * Orders without shipping info are fulfilled automatically
179
- */
180
- FULFILLED = "FULFILLED",
181
- /** Order is canceled */
182
- CANCELED = "CANCELED",
183
- /** Some, but not all of the order items are fulfilled */
184
- PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
185
- }
186
- /** @enumType */
187
- export type FulfillmentStatusWithLiterals = FulfillmentStatus | 'NOT_FULFILLED' | 'FULFILLED' | 'CANCELED' | 'PARTIALLY_FULFILLED';
188
- export interface V2FulfillmentTrackingInfo {
189
- /**
190
- * Tracking number.
191
- * @minLength 1
192
- * @maxLength 100
193
- */
194
- trackingNumber?: string;
195
- /**
196
- * Shipping provider. Using the following shipping providers will allow for autofilling the tracking link:
197
- * * `fedex`
198
- * * `ups`
199
- * * `usps`
200
- * * `dhl`
201
- * * `canadaPost`
202
- * @minLength 1
203
- * @maxLength 100
204
- */
205
- shippingProvider?: string;
206
- /**
207
- * Tracking link - autofilled if using a predefined shipping provider, otherwise provided on creation.
208
- * @minLength 1
209
- * @maxLength 2048
210
- * @format WEB_URL
211
- */
212
- trackingLink?: string | null;
213
- }
214
- export interface FulfillmentUpdated {
215
- /**
216
- * Order ID (auto generated upon order creation).
217
- * @format GUID
218
- */
219
- orderId?: string;
220
- /**
221
- * ID of the updated fulfillment.
222
- * @format GUID
223
- */
224
- fulfillmentId?: string;
225
- /** Fulfillment tracking information. */
226
- trackingInfo?: V2FulfillmentTrackingInfo;
227
- }
228
- export interface FulfillmentDeleted {
229
- /**
230
- * Order ID (auto generated upon order creation).
231
- * @format GUID
232
- */
233
- orderId?: string;
234
- /**
235
- * ID of the deleted fulfillment.
236
- * @format GUID
237
- */
238
- fulfillmentId?: string;
239
- /** Order fulfillment status. */
240
- fulfillmentStatus?: FulfillmentStatusWithLiterals;
241
- }
242
- export interface ListFulfillmentsForSingleOrderRequest {
243
- /**
244
- * Order ID for which to retrieve fulfillments.
245
- * @minLength 1
246
- * @maxLength 100
247
- */
248
- orderId: string;
249
- }
250
- export interface ListFulfillmentsForSingleOrderResponse {
251
- /** List of fulfillments associated with the order. */
252
- orderWithFulfillments?: OrderWithFulfillments;
253
- }
254
- export interface ListFulfillmentsForMultipleOrdersRequest {
255
- /**
256
- * List of order IDs for which to retrieve fulfillments.
257
- * @minSize 1
258
- * @maxSize 100
259
- */
260
- orderIds: string[];
261
- }
262
- export interface ListFulfillmentsForMultipleOrdersResponse {
263
- /** List of order IDs and their associated fulfillments. */
264
- ordersWithFulfillments?: OrderWithFulfillments[];
265
- }
266
- export interface CreateFulfillmentRequest {
267
- /** Order ID. */
268
- orderId: string;
269
- /** Fulfillment info. */
270
- fulfillment: Fulfillment;
271
- }
272
- export interface CreateFulfillmentResponse {
273
- /** Order ID and the orders' fulfillments. */
274
- orderWithFulfillments?: OrderWithFulfillments;
275
- /** ID of created fulfillment. */
276
- fulfillmentId?: string;
277
- }
278
- export interface UpdateFulfillmentRequest {
279
- /** Order ID. */
280
- orderId: string;
281
- /** Fulfillment info to update. */
282
- fulfillment?: Fulfillment;
283
- }
284
- export interface UpdateFulfillmentResponse {
285
- /** Order ID and the orders' associated fulfillments after update. */
286
- orderWithFulfillments?: OrderWithFulfillments;
287
- }
288
- export interface DeleteFulfillmentRequest {
289
- /**
290
- * Order ID.
291
- * @minLength 1
292
- * @maxLength 100
293
- */
294
- orderId: string;
295
- /**
296
- * ID of the fulfillment to delete.
297
- * @format GUID
298
- */
299
- fulfillmentId: string;
300
- }
301
- export interface DeleteFulfillmentResponse {
302
- /** Order ID and the order's associated fulfillments after deletion. */
303
- orderWithFulfillments?: OrderWithFulfillments;
304
- }
305
- export interface BulkCreateFulfillmentRequest {
306
- /**
307
- * List of order IDs and their associated fulfillments' info.
308
- * @minSize 1
309
- * @maxSize 100
310
- */
311
- ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
312
- }
313
- export interface BulkCreateOrderWithFulfillments {
314
- /**
315
- * Order ID.
316
- * @minLength 1
317
- * @maxLength 100
318
- */
319
- orderId?: string;
320
- /**
321
- * Fulfillments associated with the order.
322
- * @minSize 1
323
- */
324
- fulfillments?: Fulfillment[];
325
- }
326
- export interface BulkCreateFulfillmentResponse {
327
- /** Items updated by bulk action. */
328
- results?: BulkOrderFulfillmentsResult[];
329
- /** Bulk action metadata. */
330
- bulkActionMetadata?: BulkActionMetadata;
331
- }
332
- export interface BulkOrderFulfillmentsResult {
333
- /** Item metadata. */
334
- itemMetadata?: ItemMetadata;
335
- /** List of order IDs and their associated fulfillments. */
336
- ordersWithFulfillments?: OrderWithFulfillments;
337
- }
338
- export interface ItemMetadata {
339
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
340
- _id?: string | null;
341
- /** Index of the item within the request array. Allows for correlation between request and response items. */
342
- originalIndex?: number;
343
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
344
- success?: boolean;
345
- /** Details about the error in case of failure. */
346
- error?: ApplicationError;
347
- }
348
- export interface ApplicationError {
349
- /** Error code. */
350
- code?: string;
351
- /** Description of the error. */
352
- description?: string;
353
- /** Data related to the error. */
354
- data?: Record<string, any> | null;
355
- }
356
- export interface BulkActionMetadata {
357
- /** Number of items that were successfully processed. */
358
- totalSuccesses?: number;
359
- /** Number of items that couldn't be processed. */
360
- totalFailures?: number;
361
- /** Number of failures without details because detailed failure threshold was exceeded. */
362
- undetailedFailures?: number;
363
- }
364
- export interface DomainEvent extends DomainEventBodyOneOf {
365
- createdEvent?: EntityCreatedEvent;
366
- updatedEvent?: EntityUpdatedEvent;
367
- deletedEvent?: EntityDeletedEvent;
368
- actionEvent?: ActionEvent;
369
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
370
- _id?: string;
371
- /**
372
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
373
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
374
- */
375
- entityFqdn?: string;
376
- /**
377
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
378
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
379
- */
380
- slug?: string;
381
- /** ID of the entity associated with the event. */
382
- entityId?: string;
383
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
384
- eventTime?: Date | null;
385
- /**
386
- * Whether the event was triggered as a result of a privacy regulation application
387
- * (for example, GDPR).
388
- */
389
- triggeredByAnonymizeRequest?: boolean | null;
390
- /** If present, indicates the action that triggered the event. */
391
- originatedFrom?: string | null;
392
- /**
393
- * 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.
394
- * 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.
395
- */
396
- entityEventSequence?: string | null;
397
- }
398
- /** @oneof */
399
- export interface DomainEventBodyOneOf {
400
- createdEvent?: EntityCreatedEvent;
401
- updatedEvent?: EntityUpdatedEvent;
402
- deletedEvent?: EntityDeletedEvent;
403
- actionEvent?: ActionEvent;
404
- }
405
- export interface EntityCreatedEvent {
406
- entity?: string;
407
- }
408
- export interface RestoreInfo {
409
- deletedDate?: Date | null;
410
- }
411
- export interface EntityUpdatedEvent {
412
- /**
413
- * 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
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
415
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
416
- */
417
- currentEntity?: string;
418
- }
419
- export interface EntityDeletedEvent {
420
- /** Entity that was deleted. */
421
- deletedEntity?: string | null;
422
- }
423
- export interface ActionEvent {
424
- body?: string;
425
- }
426
- export interface MessageEnvelope {
427
- /**
428
- * App instance ID.
429
- * @format GUID
430
- */
431
- instanceId?: string | null;
432
- /**
433
- * Event type.
434
- * @maxLength 150
435
- */
436
- eventType?: string;
437
- /** The identification type and identity data. */
438
- identity?: IdentificationData;
439
- /** Stringify payload. */
440
- data?: string;
441
- }
442
- export interface IdentificationData extends IdentificationDataIdOneOf {
443
- /**
444
- * ID of a site visitor that has not logged in to the site.
445
- * @format GUID
446
- */
447
- anonymousVisitorId?: string;
448
- /**
449
- * ID of a site visitor that has logged in to the site.
450
- * @format GUID
451
- */
452
- memberId?: string;
453
- /**
454
- * ID of a Wix user (site owner, contributor, etc.).
455
- * @format GUID
456
- */
457
- wixUserId?: string;
458
- /**
459
- * ID of an app.
460
- * @format GUID
461
- */
462
- appId?: string;
463
- /** @readonly */
464
- identityType?: WebhookIdentityTypeWithLiterals;
465
- }
466
- /** @oneof */
467
- export interface IdentificationDataIdOneOf {
468
- /**
469
- * ID of a site visitor that has not logged in to the site.
470
- * @format GUID
471
- */
472
- anonymousVisitorId?: string;
473
- /**
474
- * ID of a site visitor that has logged in to the site.
475
- * @format GUID
476
- */
477
- memberId?: string;
478
- /**
479
- * ID of a Wix user (site owner, contributor, etc.).
480
- * @format GUID
481
- */
482
- wixUserId?: string;
483
- /**
484
- * ID of an app.
485
- * @format GUID
486
- */
487
- appId?: string;
488
- }
489
- export declare enum WebhookIdentityType {
490
- UNKNOWN = "UNKNOWN",
491
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
492
- MEMBER = "MEMBER",
493
- WIX_USER = "WIX_USER",
494
- APP = "APP"
495
- }
496
- /** @enumType */
497
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
498
- export interface BaseEventMetadata {
499
- /**
500
- * App instance ID.
501
- * @format GUID
502
- */
503
- instanceId?: string | null;
504
- /**
505
- * Event type.
506
- * @maxLength 150
507
- */
508
- eventType?: string;
509
- /** The identification type and identity data. */
510
- identity?: IdentificationData;
511
- }
512
- export interface EventMetadata extends BaseEventMetadata {
513
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
514
- _id?: string;
515
- /**
516
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
517
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
518
- */
519
- entityFqdn?: string;
520
- /**
521
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
522
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
523
- */
524
- slug?: string;
525
- /** ID of the entity associated with the event. */
526
- entityId?: string;
527
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
528
- eventTime?: Date | null;
529
- /**
530
- * Whether the event was triggered as a result of a privacy regulation application
531
- * (for example, GDPR).
532
- */
533
- triggeredByAnonymizeRequest?: boolean | null;
534
- /** If present, indicates the action that triggered the event. */
535
- originatedFrom?: string | null;
536
- /**
537
- * 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.
538
- * 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.
539
- */
540
- entityEventSequence?: string | null;
541
- }
542
- export interface FulfillmentsUpdatedEnvelope {
543
- entity: OrderWithFulfillments;
544
- metadata: EventMetadata;
545
- }
546
- /**
547
- * Triggered when one or more of an order's fulfillments are created, updated, or deleted.
548
- *
549
- * The response contains the order's ID and details about all of its fulfillments following the change.
550
- * @permissionScope Manage Stores - all permissions
551
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
552
- * @permissionScope Manage Stores
553
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
554
- * @permissionScope Read eCommerce - all read permissions
555
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
556
- * @permissionScope Read Orders
557
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
558
- * @permissionScope Read Stores - all read permissions
559
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
560
- * @permissionScope Manage Restaurants - all permissions
561
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
562
- * @permissionScope Manage eCommerce - all permissions
563
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
564
- * @permissionScope Manage Orders
565
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
566
- * @permissionId ECOM.READ_FULFILLMENTS
567
- * @webhook
568
- * @eventType wix.ecom.v1.fulfillments_updated
569
- * @serviceIdentifier com.wix.ecom.orders.fulfillments.v1.Fulfillments
570
- * @slug updated
571
- */
572
- export declare function onFulfillmentsUpdated(handler: (event: FulfillmentsUpdatedEnvelope) => void | Promise<void>): void;
573
- type FulfillmentsNonNullablePaths = `orderId` | `fulfillments`;
574
- /**
575
- * Retrieves fulfillments associated with a specified order.
576
- *
577
- *
578
- * The `listFulfillmentsForSingleOrder()` function returns a Promise that resolves when the fulfillments are retrieved.
579
- * @param orderId - Order ID for which to retrieve fulfillments.
580
- * @public
581
- * @requiredField orderId
582
- * @permissionId ECOM.READ_FULFILLMENTS
583
- * @permissionScope Manage Stores - all permissions
584
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
585
- * @permissionScope Manage Stores
586
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
587
- * @permissionScope Read eCommerce - all read permissions
588
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
589
- * @permissionScope Read Orders
590
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
591
- * @permissionScope Read Stores - all read permissions
592
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
593
- * @permissionScope Manage Restaurants - all permissions
594
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
595
- * @permissionScope Manage eCommerce - all permissions
596
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
597
- * @permissionScope Manage Orders
598
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
599
- * @applicableIdentity APP
600
- * @applicableIdentity MEMBER
601
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.ListFulfillmentsForSingleOrder
602
- */
603
- export declare function listFulfillmentsForSingleOrder(orderId: string): Promise<NonNullablePaths<ListFulfillmentsForSingleOrderResponse, {
604
- [P in FulfillmentsNonNullablePaths]: `orderWithFulfillments.${P}`;
605
- }[FulfillmentsNonNullablePaths]>>;
606
- /**
607
- * Retrieves fulfillments associated with multiple specified orders.
608
- *
609
- *
610
- * The `listFulfillmentsForMultipleOrders()` function returns a Promise that resolves when the fulfillments are retrieved.
611
- * @param orderIds - List of order IDs for which to retrieve fulfillments.
612
- * @public
613
- * @requiredField orderIds
614
- * @permissionId ECOM.READ_FULFILLMENTS
615
- * @permissionScope Manage Stores - all permissions
616
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
617
- * @permissionScope Manage Stores
618
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
619
- * @permissionScope Read eCommerce - all read permissions
620
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
621
- * @permissionScope Read Orders
622
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
623
- * @permissionScope Read Stores - all read permissions
624
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
625
- * @permissionScope Manage Restaurants - all permissions
626
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
627
- * @permissionScope Manage eCommerce - all permissions
628
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
629
- * @permissionScope Manage Orders
630
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
631
- * @applicableIdentity APP
632
- * @applicableIdentity MEMBER
633
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.ListFulfillmentsForMultipleOrders
634
- */
635
- export declare function listFulfillmentsForMultipleOrders(orderIds: string[]): Promise<NonNullablePaths<ListFulfillmentsForMultipleOrdersResponse, {
636
- [P in FulfillmentsNonNullablePaths]: `ordersWithFulfillments.${number}.${P}`;
637
- }[FulfillmentsNonNullablePaths]>>;
638
- /**
639
- * Creates an order fulfillment.
640
- *
641
- *
642
- * The `createFulfillment()` function returns a Promise that resolves when the fulfillment is created.
643
- * @param orderId - Order ID.
644
- * @param fulfillment - Fulfillment info.
645
- * @public
646
- * @requiredField fulfillment
647
- * @requiredField fulfillment.lineItems
648
- * @requiredField fulfillment.lineItems._id
649
- * @requiredField orderId
650
- * @permissionId ECOM.MODIFY_FULFILLMENTS
651
- * @permissionScope Manage Stores - all permissions
652
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
653
- * @permissionScope Manage Stores
654
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
655
- * @permissionScope Manage Restaurants - all permissions
656
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
657
- * @permissionScope Manage eCommerce - all permissions
658
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
659
- * @permissionScope Manage Orders
660
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
661
- * @applicableIdentity APP
662
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.CreateFulfillment
663
- */
664
- export declare function createFulfillment(orderId: string, fulfillment: NonNullablePaths<Fulfillment, `lineItems` | `lineItems.${number}._id`>): Promise<NonNullablePaths<CreateFulfillmentResponse, {
665
- [P in FulfillmentsNonNullablePaths]: `orderWithFulfillments.${P}`;
666
- }[FulfillmentsNonNullablePaths] | `fulfillmentId`>>;
667
- /**
668
- * Updates a fulfillment's properties.
669
- * To update a field's value, include the new value in the `fulfillment` field in the body params.
670
- * To remove a field's value, pass `null`.
671
- *
672
- *
673
- * The `updateFulfillment()` function returns a Promise that resolves when the fulfillment is updated.
674
- *
675
- * > **Note:** Updating line item IDs or fulfilled quantities is not allowed. To update line item IDs or quantities, delete the fulfillment and create it again.
676
- * @public
677
- * @requiredField identifiers
678
- * @requiredField identifiers.fulfillmentId
679
- * @requiredField identifiers.orderId
680
- * @param identifiers - Order and fulfillment IDs to be updated.
681
- * @param options - Available options to use when updating a fulfillment.
682
- * @permissionId ECOM.MODIFY_FULFILLMENTS
683
- * @permissionScope Manage Stores - all permissions
684
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
685
- * @permissionScope Manage Stores
686
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
687
- * @permissionScope Manage Restaurants - all permissions
688
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
689
- * @permissionScope Manage eCommerce - all permissions
690
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
691
- * @permissionScope Manage Orders
692
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
693
- * @applicableIdentity APP
694
- * @returns Order ID and the orders' associated fulfillments after update.
695
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.UpdateFulfillment
696
- */
697
- export declare function updateFulfillment(identifiers: NonNullablePaths<UpdateFulfillmentIdentifiers, `fulfillmentId` | `orderId`>, options?: UpdateFulfillmentOptions): Promise<NonNullablePaths<OrderWithFulfillments, FulfillmentsNonNullablePaths>>;
698
- export interface UpdateFulfillmentOptions {
699
- /** Fulfillment info. */
700
- fulfillment: {
701
- /** Tracking info. */
702
- trackingInfo?: FulfillmentTrackingInfo;
703
- /** Custom fulfillment info. */
704
- customInfo?: CustomFulfillmentInfo;
705
- /**
706
- * Fulfillment ID.
707
- * @format GUID
708
- * @readonly
709
- */
710
- _id?: string | null;
711
- /**
712
- * Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
713
- * @readonly
714
- */
715
- _createdDate?: Date | null;
716
- /**
717
- * Line items being fulfilled.
718
- * @maxSize 300
719
- */
720
- lineItems?: FulfillmentLineItem[];
721
- /**
722
- * __Optional.__ Fulfillment status.
723
- *
724
- * Supported values:
725
- * + `"Pending"`
726
- * + `"Accepted"`
727
- * + `"Ready"`
728
- * + `"In_Delivery"`
729
- * + `"Fulfilled"`
730
- * @minLength 1
731
- * @maxLength 100
732
- */
733
- status?: string | null;
734
- /** Fulfillment handling complete. */
735
- completed?: boolean | null;
736
- };
737
- }
738
- export interface UpdateFulfillmentIdentifiers {
739
- /**
740
- * ID of the fulfillment to be updated.
741
- * @format GUID
742
- * @readonly
743
- */
744
- fulfillmentId?: string | null;
745
- /** Order ID. */
746
- orderId: string;
747
- }
748
- /**
749
- * Deletes an existing order fulfillment.
750
- *
751
- *
752
- * The `deleteFulfillment()` function returns a Promise that resolves when the fulfillment is deleted.
753
- * @public
754
- * @requiredField identifiers
755
- * @requiredField identifiers.fulfillmentId
756
- * @requiredField identifiers.orderId
757
- * @param identifiers - Order and fulfillment IDs.
758
- * @permissionId ECOM.MODIFY_FULFILLMENTS
759
- * @permissionScope Manage Stores - all permissions
760
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
761
- * @permissionScope Manage Stores
762
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
763
- * @permissionScope Manage Restaurants - all permissions
764
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
765
- * @permissionScope Manage eCommerce - all permissions
766
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
767
- * @permissionScope Manage Orders
768
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
769
- * @applicableIdentity APP
770
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.DeleteFulfillment
771
- */
772
- export declare function deleteFulfillment(identifiers: NonNullablePaths<DeleteFulfillmentIdentifiers, `fulfillmentId` | `orderId`>): Promise<NonNullablePaths<DeleteFulfillmentResponse, {
773
- [P in FulfillmentsNonNullablePaths]: `orderWithFulfillments.${P}`;
774
- }[FulfillmentsNonNullablePaths]>>;
775
- export interface DeleteFulfillmentIdentifiers {
776
- /**
777
- * ID of the fulfillment to delete.
778
- * @format GUID
779
- */
780
- fulfillmentId: string;
781
- /**
782
- * Order ID.
783
- * @minLength 1
784
- * @maxLength 100
785
- */
786
- orderId: string;
787
- }
788
- /**
789
- * Creates multiple fulfillments for one or more orders.
790
- *
791
- *
792
- * The `bulkCreateFulfillments()` function returns a Promise that resolves when the fulfillments are created.
793
- * @param ordersWithFulfillments - List of order IDs and their associated fulfillments' info.
794
- * @public
795
- * @requiredField ordersWithFulfillments
796
- * @requiredField ordersWithFulfillments.fulfillments
797
- * @requiredField ordersWithFulfillments.fulfillments.lineItems
798
- * @requiredField ordersWithFulfillments.fulfillments.lineItems._id
799
- * @requiredField ordersWithFulfillments.orderId
800
- * @permissionId ECOM.MODIFY_FULFILLMENTS
801
- * @permissionScope Manage Stores - all permissions
802
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
803
- * @permissionScope Manage Stores
804
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
805
- * @permissionScope Manage Restaurants - all permissions
806
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
807
- * @permissionScope Manage eCommerce - all permissions
808
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
809
- * @permissionScope Manage Orders
810
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
811
- * @applicableIdentity APP
812
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.BulkCreateFulfillment
813
- */
814
- export declare function bulkCreateFulfillments(ordersWithFulfillments: NonNullablePaths<BulkCreateOrderWithFulfillments, `fulfillments` | `fulfillments.${number}.lineItems` | `fulfillments.${number}.lineItems.${number}._id` | `orderId`>[]): Promise<NonNullablePaths<BulkCreateFulfillmentResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
815
- [P in FulfillmentsNonNullablePaths]: `results.${number}.ordersWithFulfillments.${P}`;
816
- }[FulfillmentsNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
817
- export {};