@wix/auto_sdk_ecom_order-fulfillments 1.0.6 → 1.0.8

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-D89xmwPL.d.mts} +174 -54
  2. package/build/{cjs/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.ts} +174 -54
  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-D89xmwPL.d.mts} +174 -54
  10. package/build/internal/{es/src/ecom-v1-fulfillments-order-fulfillments.types.d.ts → ecom-v1-fulfillments-order-fulfillments.universal-D89xmwPL.d.ts} +174 -54
  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 +13 -12
  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 -827
  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 -827
  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 -827
  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 -827
  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,827 +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?: FulfillmentStatus;
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?: IdentityType;
141
- /** Customer type */
142
- identityType?: IdentityType;
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
- export declare enum FulfillmentStatus {
172
- /** None of the order items are fulfilled */
173
- NOT_FULFILLED = "NOT_FULFILLED",
174
- /**
175
- * All of the order items are fulfilled
176
- * Orders without shipping info are fulfilled automatically
177
- */
178
- FULFILLED = "FULFILLED",
179
- /** Order is canceled */
180
- CANCELED = "CANCELED",
181
- /** Some, but not all of the order items are fulfilled */
182
- PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED"
183
- }
184
- export interface V2FulfillmentTrackingInfo {
185
- /**
186
- * Tracking number.
187
- * @minLength 1
188
- * @maxLength 100
189
- */
190
- trackingNumber?: string;
191
- /**
192
- * Shipping provider. Using the following shipping providers will allow for autofilling the tracking link:
193
- * * `fedex`
194
- * * `ups`
195
- * * `usps`
196
- * * `dhl`
197
- * * `canadaPost`
198
- * @minLength 1
199
- * @maxLength 100
200
- */
201
- shippingProvider?: string;
202
- /**
203
- * Tracking link - autofilled if using a predefined shipping provider, otherwise provided on creation.
204
- * @minLength 1
205
- * @maxLength 2048
206
- * @format WEB_URL
207
- */
208
- trackingLink?: string | null;
209
- }
210
- export interface FulfillmentUpdated {
211
- /**
212
- * Order ID (auto generated upon order creation).
213
- * @format GUID
214
- */
215
- orderId?: string;
216
- /**
217
- * ID of the updated fulfillment.
218
- * @format GUID
219
- */
220
- fulfillmentId?: string;
221
- /** Fulfillment tracking information. */
222
- trackingInfo?: V2FulfillmentTrackingInfo;
223
- }
224
- export interface FulfillmentDeleted {
225
- /**
226
- * Order ID (auto generated upon order creation).
227
- * @format GUID
228
- */
229
- orderId?: string;
230
- /**
231
- * ID of the deleted fulfillment.
232
- * @format GUID
233
- */
234
- fulfillmentId?: string;
235
- /** Order fulfillment status. */
236
- fulfillmentStatus?: FulfillmentStatus;
237
- }
238
- export interface ListFulfillmentsForSingleOrderRequest {
239
- /**
240
- * Order ID for which to retrieve fulfillments.
241
- * @minLength 1
242
- * @maxLength 100
243
- */
244
- orderId: string;
245
- }
246
- export interface ListFulfillmentsForSingleOrderResponse {
247
- /** List of fulfillments associated with the order. */
248
- orderWithFulfillments?: OrderWithFulfillments;
249
- }
250
- export interface ListFulfillmentsForMultipleOrdersRequest {
251
- /**
252
- * List of order IDs for which to retrieve fulfillments.
253
- * @minSize 1
254
- * @maxSize 100
255
- */
256
- orderIds: string[];
257
- }
258
- export interface ListFulfillmentsForMultipleOrdersResponse {
259
- /** List of order IDs and their associated fulfillments. */
260
- ordersWithFulfillments?: OrderWithFulfillments[];
261
- }
262
- export interface CreateFulfillmentRequest {
263
- /** Order ID. */
264
- orderId: string;
265
- /** Fulfillment info. */
266
- fulfillment: Fulfillment;
267
- }
268
- export interface CreateFulfillmentResponse {
269
- /** Order ID and the orders' fulfillments. */
270
- orderWithFulfillments?: OrderWithFulfillments;
271
- /** ID of created fulfillment. */
272
- fulfillmentId?: string;
273
- }
274
- export interface UpdateFulfillmentRequest {
275
- /** Order ID. */
276
- orderId: string;
277
- /** Fulfillment info to update. */
278
- fulfillment?: Fulfillment;
279
- }
280
- export interface UpdateFulfillmentResponse {
281
- /** Order ID and the orders' associated fulfillments after update. */
282
- orderWithFulfillments?: OrderWithFulfillments;
283
- }
284
- export interface DeleteFulfillmentRequest {
285
- /**
286
- * Order ID.
287
- * @minLength 1
288
- * @maxLength 100
289
- */
290
- orderId: string;
291
- /**
292
- * ID of the fulfillment to delete.
293
- * @format GUID
294
- */
295
- fulfillmentId: string;
296
- }
297
- export interface DeleteFulfillmentResponse {
298
- /** Order ID and the order's associated fulfillments after deletion. */
299
- orderWithFulfillments?: OrderWithFulfillments;
300
- }
301
- export interface BulkCreateFulfillmentRequest {
302
- /**
303
- * List of order IDs and their associated fulfillments' info.
304
- * @minSize 1
305
- * @maxSize 100
306
- */
307
- ordersWithFulfillments: BulkCreateOrderWithFulfillments[];
308
- }
309
- export interface BulkCreateOrderWithFulfillments {
310
- /**
311
- * Order ID.
312
- * @minLength 1
313
- * @maxLength 100
314
- */
315
- orderId?: string;
316
- /**
317
- * Fulfillments associated with the order.
318
- * @minSize 1
319
- */
320
- fulfillments?: Fulfillment[];
321
- }
322
- export interface BulkCreateFulfillmentResponse {
323
- /** Items updated by bulk action. */
324
- results?: BulkOrderFulfillmentsResult[];
325
- /** Bulk action metadata. */
326
- bulkActionMetadata?: BulkActionMetadata;
327
- }
328
- export interface BulkOrderFulfillmentsResult {
329
- /** Item metadata. */
330
- itemMetadata?: ItemMetadata;
331
- /** List of order IDs and their associated fulfillments. */
332
- ordersWithFulfillments?: OrderWithFulfillments;
333
- }
334
- export interface ItemMetadata {
335
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
336
- _id?: string | null;
337
- /** Index of the item within the request array. Allows for correlation between request and response items. */
338
- originalIndex?: number;
339
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
340
- success?: boolean;
341
- /** Details about the error in case of failure. */
342
- error?: ApplicationError;
343
- }
344
- export interface ApplicationError {
345
- /** Error code. */
346
- code?: string;
347
- /** Description of the error. */
348
- description?: string;
349
- /** Data related to the error. */
350
- data?: Record<string, any> | null;
351
- }
352
- export interface BulkActionMetadata {
353
- /** Number of items that were successfully processed. */
354
- totalSuccesses?: number;
355
- /** Number of items that couldn't be processed. */
356
- totalFailures?: number;
357
- /** Number of failures without details because detailed failure threshold was exceeded. */
358
- undetailedFailures?: number;
359
- }
360
- export interface DomainEvent extends DomainEventBodyOneOf {
361
- createdEvent?: EntityCreatedEvent;
362
- updatedEvent?: EntityUpdatedEvent;
363
- deletedEvent?: EntityDeletedEvent;
364
- actionEvent?: ActionEvent;
365
- /**
366
- * Unique event ID.
367
- * Allows clients to ignore duplicate webhooks.
368
- */
369
- _id?: string;
370
- /**
371
- * Assumes actions are also always typed to an entity_type
372
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
373
- */
374
- entityFqdn?: string;
375
- /**
376
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
377
- * This is although the created/updated/deleted notion is duplication of the oneof types
378
- * 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 defining the order of updates to the underlying entity.
394
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
395
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
396
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
397
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
398
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
399
- */
400
- entityEventSequence?: string | null;
401
- }
402
- /** @oneof */
403
- export interface DomainEventBodyOneOf {
404
- createdEvent?: EntityCreatedEvent;
405
- updatedEvent?: EntityUpdatedEvent;
406
- deletedEvent?: EntityDeletedEvent;
407
- actionEvent?: ActionEvent;
408
- }
409
- export interface EntityCreatedEvent {
410
- entity?: string;
411
- }
412
- export interface RestoreInfo {
413
- deletedDate?: Date | null;
414
- }
415
- export interface EntityUpdatedEvent {
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.
418
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
419
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
420
- */
421
- currentEntity?: string;
422
- }
423
- export interface EntityDeletedEvent {
424
- /** Entity that was deleted */
425
- deletedEntity?: string | null;
426
- }
427
- export interface ActionEvent {
428
- body?: string;
429
- }
430
- export interface MessageEnvelope {
431
- /**
432
- * App instance ID.
433
- * @format GUID
434
- */
435
- instanceId?: string | null;
436
- /**
437
- * Event type.
438
- * @maxLength 150
439
- */
440
- eventType?: string;
441
- /** The identification type and identity data. */
442
- identity?: IdentificationData;
443
- /** Stringify payload. */
444
- data?: string;
445
- }
446
- export interface IdentificationData extends IdentificationDataIdOneOf {
447
- /**
448
- * ID of a site visitor that has not logged in to the site.
449
- * @format GUID
450
- */
451
- anonymousVisitorId?: string;
452
- /**
453
- * ID of a site visitor that has logged in to the site.
454
- * @format GUID
455
- */
456
- memberId?: string;
457
- /**
458
- * ID of a Wix user (site owner, contributor, etc.).
459
- * @format GUID
460
- */
461
- wixUserId?: string;
462
- /**
463
- * ID of an app.
464
- * @format GUID
465
- */
466
- appId?: string;
467
- /** @readonly */
468
- identityType?: WebhookIdentityType;
469
- }
470
- /** @oneof */
471
- export interface IdentificationDataIdOneOf {
472
- /**
473
- * ID of a site visitor that has not logged in to the site.
474
- * @format GUID
475
- */
476
- anonymousVisitorId?: string;
477
- /**
478
- * ID of a site visitor that has logged in to the site.
479
- * @format GUID
480
- */
481
- memberId?: string;
482
- /**
483
- * ID of a Wix user (site owner, contributor, etc.).
484
- * @format GUID
485
- */
486
- wixUserId?: string;
487
- /**
488
- * ID of an app.
489
- * @format GUID
490
- */
491
- appId?: string;
492
- }
493
- export declare enum WebhookIdentityType {
494
- UNKNOWN = "UNKNOWN",
495
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
496
- MEMBER = "MEMBER",
497
- WIX_USER = "WIX_USER",
498
- APP = "APP"
499
- }
500
- export interface BaseEventMetadata {
501
- /**
502
- * App instance ID.
503
- * @format GUID
504
- */
505
- instanceId?: string | null;
506
- /**
507
- * Event type.
508
- * @maxLength 150
509
- */
510
- eventType?: string;
511
- /** The identification type and identity data. */
512
- identity?: IdentificationData;
513
- }
514
- export interface EventMetadata extends BaseEventMetadata {
515
- /**
516
- * Unique event ID.
517
- * Allows clients to ignore duplicate webhooks.
518
- */
519
- _id?: string;
520
- /**
521
- * Assumes actions are also always typed to an entity_type
522
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
523
- */
524
- entityFqdn?: string;
525
- /**
526
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
527
- * This is although the created/updated/deleted notion is duplication of the oneof types
528
- * Example: created/updated/deleted/started/completed/email_opened
529
- */
530
- slug?: string;
531
- /** ID of the entity associated with the event. */
532
- entityId?: string;
533
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
534
- eventTime?: Date | null;
535
- /**
536
- * Whether the event was triggered as a result of a privacy regulation application
537
- * (for example, GDPR).
538
- */
539
- triggeredByAnonymizeRequest?: boolean | null;
540
- /** If present, indicates the action that triggered the event. */
541
- originatedFrom?: string | null;
542
- /**
543
- * A sequence number defining the order of updates to the underlying entity.
544
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
545
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
546
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
547
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
548
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
549
- */
550
- entityEventSequence?: string | null;
551
- }
552
- export interface FulfillmentsUpdatedEnvelope {
553
- entity: OrderWithFulfillments;
554
- metadata: EventMetadata;
555
- }
556
- /**
557
- * Triggered when one or more of an order's fulfillments are created, updated, or deleted.
558
- *
559
- * The response contains the order's ID and details about all of its fulfillments following the change.
560
- * @permissionScope Manage Stores - all permissions
561
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
562
- * @permissionScope Read eCommerce - all read permissions
563
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
564
- * @permissionScope Read Orders
565
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
566
- * @permissionScope Read Stores - all read permissions
567
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
568
- * @permissionScope Manage Restaurants - all permissions
569
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
570
- * @permissionScope Manage eCommerce - all permissions
571
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
572
- * @permissionScope Picasso private app mega scope
573
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
574
- * @permissionScope Manage Orders
575
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
576
- * @permissionId ECOM.READ_FULFILLMENTS
577
- * @webhook
578
- * @eventType wix.ecom.v1.fulfillments_updated
579
- * @serviceIdentifier com.wix.ecom.orders.fulfillments.v1.Fulfillments
580
- * @slug updated
581
- */
582
- export declare function onFulfillmentsUpdated(handler: (event: FulfillmentsUpdatedEnvelope) => void | Promise<void>): void;
583
- type FulfillmentsNonNullablePaths = `orderId` | `fulfillments` | `fulfillments.${number}.lineItems` | `fulfillments.${number}.lineItems.${number}._id`;
584
- /**
585
- * Retrieves fulfillments associated with a specified order.
586
- *
587
- *
588
- * The `listFulfillmentsForSingleOrder()` function returns a Promise that resolves when the fulfillments are retrieved.
589
- * @param orderId - Order ID for which to retrieve fulfillments.
590
- * @public
591
- * @requiredField orderId
592
- * @permissionId ECOM.READ_FULFILLMENTS
593
- * @permissionScope Manage Stores - all permissions
594
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
595
- * @permissionScope Read eCommerce - all read permissions
596
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
597
- * @permissionScope Read Orders
598
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
599
- * @permissionScope Read Stores - all read permissions
600
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
601
- * @permissionScope Manage Restaurants - all permissions
602
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
603
- * @permissionScope Manage eCommerce - all permissions
604
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
605
- * @permissionScope Picasso private app mega scope
606
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
607
- * @permissionScope Manage Orders
608
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
609
- * @applicableIdentity APP
610
- * @applicableIdentity MEMBER
611
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.ListFulfillmentsForSingleOrder
612
- */
613
- export declare function listFulfillmentsForSingleOrder(orderId: string): Promise<NonNullablePaths<ListFulfillmentsForSingleOrderResponse, {
614
- [P in FulfillmentsNonNullablePaths]: `orderWithFulfillments.${P}`;
615
- }[FulfillmentsNonNullablePaths]>>;
616
- /**
617
- * Retrieves fulfillments associated with multiple specified orders.
618
- *
619
- *
620
- * The `listFulfillmentsForMultipleOrders()` function returns a Promise that resolves when the fulfillments are retrieved.
621
- * @param orderIds - List of order IDs for which to retrieve fulfillments.
622
- * @public
623
- * @requiredField orderIds
624
- * @permissionId ECOM.READ_FULFILLMENTS
625
- * @permissionScope Manage Stores - all permissions
626
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
627
- * @permissionScope Read eCommerce - all read permissions
628
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
629
- * @permissionScope Read Orders
630
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
631
- * @permissionScope Read Stores - all read permissions
632
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
633
- * @permissionScope Manage Restaurants - all permissions
634
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
635
- * @permissionScope Manage eCommerce - all permissions
636
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
637
- * @permissionScope Picasso private app mega scope
638
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
639
- * @permissionScope Manage Orders
640
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
641
- * @applicableIdentity APP
642
- * @applicableIdentity MEMBER
643
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.ListFulfillmentsForMultipleOrders
644
- */
645
- export declare function listFulfillmentsForMultipleOrders(orderIds: string[]): Promise<NonNullablePaths<ListFulfillmentsForMultipleOrdersResponse, {
646
- [P in FulfillmentsNonNullablePaths]: `ordersWithFulfillments.${number}.${P}`;
647
- }[FulfillmentsNonNullablePaths]>>;
648
- /**
649
- * Creates an order fulfillment.
650
- *
651
- *
652
- * The `createFulfillment()` function returns a Promise that resolves when the fulfillment is created.
653
- * @param orderId - Order ID.
654
- * @param fulfillment - Fulfillment info.
655
- * @public
656
- * @requiredField fulfillment
657
- * @requiredField fulfillment.lineItems
658
- * @requiredField fulfillment.lineItems._id
659
- * @requiredField orderId
660
- * @permissionId ECOM.MODIFY_FULFILLMENTS
661
- * @permissionScope Manage Stores - all permissions
662
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
663
- * @permissionScope Manage Restaurants - all permissions
664
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
665
- * @permissionScope Manage eCommerce - all permissions
666
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
667
- * @permissionScope Picasso private app mega scope
668
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
669
- * @permissionScope Manage Orders
670
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
671
- * @applicableIdentity APP
672
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.CreateFulfillment
673
- */
674
- export declare function createFulfillment(orderId: string, fulfillment: NonNullablePaths<Fulfillment, `lineItems` | `lineItems.${number}._id`>): Promise<NonNullablePaths<CreateFulfillmentResponse, {
675
- [P in FulfillmentsNonNullablePaths]: `orderWithFulfillments.${P}`;
676
- }[FulfillmentsNonNullablePaths] | `fulfillmentId`>>;
677
- /**
678
- * Updates a fulfillment's properties.
679
- * To update a field's value, include the new value in the `fulfillment` field in the body params.
680
- * To remove a field's value, pass `null`.
681
- *
682
- *
683
- * The `updateFulfillment()` function returns a Promise that resolves when the fulfillment is updated.
684
- *
685
- * > **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.
686
- * @public
687
- * @requiredField identifiers
688
- * @requiredField identifiers.fulfillmentId
689
- * @requiredField identifiers.orderId
690
- * @param identifiers - Order and fulfillment IDs to be updated.
691
- * @param options - Available options to use when updating a fulfillment.
692
- * @permissionId ECOM.MODIFY_FULFILLMENTS
693
- * @permissionScope Manage Stores - all permissions
694
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
695
- * @permissionScope Manage Restaurants - all permissions
696
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
697
- * @permissionScope Manage eCommerce - all permissions
698
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
699
- * @permissionScope Picasso private app mega scope
700
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
701
- * @permissionScope Manage Orders
702
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
703
- * @applicableIdentity APP
704
- * @returns Order ID and the orders' associated fulfillments after update.
705
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.UpdateFulfillment
706
- */
707
- export declare function updateFulfillment(identifiers: NonNullablePaths<UpdateFulfillmentIdentifiers, `fulfillmentId` | `orderId`>, options?: UpdateFulfillmentOptions): Promise<NonNullablePaths<OrderWithFulfillments, FulfillmentsNonNullablePaths>>;
708
- export interface UpdateFulfillmentOptions {
709
- /** Fulfillment info. */
710
- fulfillment: {
711
- /** Tracking info. */
712
- trackingInfo?: FulfillmentTrackingInfo;
713
- /** Custom fulfillment info. */
714
- customInfo?: CustomFulfillmentInfo;
715
- /**
716
- * Fulfillment ID.
717
- * @format GUID
718
- * @readonly
719
- */
720
- _id?: string | null;
721
- /**
722
- * Fulfillment creation date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
723
- * @readonly
724
- */
725
- _createdDate?: Date | null;
726
- /**
727
- * Line items being fulfilled.
728
- * @maxSize 300
729
- */
730
- lineItems?: FulfillmentLineItem[];
731
- /**
732
- * __Optional.__ Fulfillment status.
733
- *
734
- * Supported values:
735
- * + `"Pending"`
736
- * + `"Accepted"`
737
- * + `"Ready"`
738
- * + `"In_Delivery"`
739
- * + `"Fulfilled"`
740
- * @minLength 1
741
- * @maxLength 100
742
- */
743
- status?: string | null;
744
- /** Fulfillment handling complete. */
745
- completed?: boolean | null;
746
- };
747
- }
748
- export interface UpdateFulfillmentIdentifiers {
749
- /**
750
- * ID of the fulfillment to be updated.
751
- * @format GUID
752
- * @readonly
753
- */
754
- fulfillmentId?: string | null;
755
- /** Order ID. */
756
- orderId: string;
757
- }
758
- /**
759
- * Deletes an existing order fulfillment.
760
- *
761
- *
762
- * The `deleteFulfillment()` function returns a Promise that resolves when the fulfillment is deleted.
763
- * @public
764
- * @requiredField identifiers
765
- * @requiredField identifiers.fulfillmentId
766
- * @requiredField identifiers.orderId
767
- * @param identifiers - Order and fulfillment IDs.
768
- * @permissionId ECOM.MODIFY_FULFILLMENTS
769
- * @permissionScope Manage Stores - all permissions
770
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
771
- * @permissionScope Manage Restaurants - all permissions
772
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
773
- * @permissionScope Manage eCommerce - all permissions
774
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
775
- * @permissionScope Picasso private app mega scope
776
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
777
- * @permissionScope Manage Orders
778
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
779
- * @applicableIdentity APP
780
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.DeleteFulfillment
781
- */
782
- export declare function deleteFulfillment(identifiers: NonNullablePaths<DeleteFulfillmentIdentifiers, `fulfillmentId` | `orderId`>): Promise<NonNullablePaths<DeleteFulfillmentResponse, {
783
- [P in FulfillmentsNonNullablePaths]: `orderWithFulfillments.${P}`;
784
- }[FulfillmentsNonNullablePaths]>>;
785
- export interface DeleteFulfillmentIdentifiers {
786
- /**
787
- * ID of the fulfillment to delete.
788
- * @format GUID
789
- */
790
- fulfillmentId: string;
791
- /**
792
- * Order ID.
793
- * @minLength 1
794
- * @maxLength 100
795
- */
796
- orderId: string;
797
- }
798
- /**
799
- * Creates multiple fulfillments for one or more orders.
800
- *
801
- *
802
- * The `bulkCreateFulfillments()` function returns a Promise that resolves when the fulfillments are created.
803
- * @param ordersWithFulfillments - List of order IDs and their associated fulfillments' info.
804
- * @public
805
- * @requiredField ordersWithFulfillments
806
- * @requiredField ordersWithFulfillments.fulfillments
807
- * @requiredField ordersWithFulfillments.fulfillments.lineItems
808
- * @requiredField ordersWithFulfillments.fulfillments.lineItems._id
809
- * @requiredField ordersWithFulfillments.orderId
810
- * @permissionId ECOM.MODIFY_FULFILLMENTS
811
- * @permissionScope Manage Stores - all permissions
812
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
813
- * @permissionScope Manage Restaurants - all permissions
814
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
815
- * @permissionScope Manage eCommerce - all permissions
816
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
817
- * @permissionScope Picasso private app mega scope
818
- * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
819
- * @permissionScope Manage Orders
820
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
821
- * @applicableIdentity APP
822
- * @fqn com.wix.ecom.orders.fulfillments.v1.Fulfillments.BulkCreateFulfillment
823
- */
824
- 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` | {
825
- [P in FulfillmentsNonNullablePaths]: `results.${number}.ordersWithFulfillments.${P}`;
826
- }[FulfillmentsNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
827
- export {};