|
1
|
// TODO: Comment temporarely and we will re enable it in the near future #14478 |
|
2
|
// import { EventOptions } from "@medusajs/types" |
|
3
|
|
|
4
|
/** |
|
5
|
* @category Cart |
|
6
|
* @customNamespace Cart |
|
7
|
*/ |
|
8
|
export const CartWorkflowEvents = { |
|
9
|
/** |
|
10
|
* Emitted when a cart is created. |
|
11
|
* |
|
12
|
* @eventPayload |
|
13
|
* ```ts |
|
14
|
* { |
|
15
|
* id, // The ID of the cart |
|
16
|
* } |
|
17
|
* ``` |
|
18
|
*/ |
|
19
|
CREATED: "cart.created", |
|
20
|
/** |
|
21
|
* Emitted when a cart's details are updated. |
|
22
|
* |
|
23
|
* @eventPayload |
|
24
|
* ```ts |
|
25
|
* { |
|
26
|
* id, // The ID of the cart |
|
27
|
* } |
|
28
|
* ``` |
|
29
|
*/ |
|
30
|
UPDATED: "cart.updated", |
|
31
|
/** |
|
32
|
* Emitted when the customer in the cart is updated. |
|
33
|
* |
|
34
|
* @eventPayload |
|
35
|
* ```ts |
|
36
|
* { |
|
37
|
* id, // The ID of the cart |
|
38
|
* } |
|
39
|
* ``` |
|
40
|
*/ |
|
41
|
CUSTOMER_UPDATED: "cart.customer_updated", |
|
42
|
/** |
|
43
|
* Emitted when the cart's region is updated. This |
|
44
|
* event is emitted alongside the `cart.updated` event. |
|
45
|
* |
|
46
|
* @eventPayload |
|
47
|
* ```ts |
|
48
|
* { |
|
49
|
* id, // The ID of the cart |
|
50
|
* } |
|
51
|
* ``` |
|
52
|
*/ |
|
53
|
REGION_UPDATED: "cart.region_updated", |
|
54
|
|
|
55
|
/** |
|
56
|
* Emitted when the customer in the cart is transferred. |
|
57
|
* |
|
58
|
* @since 2.8.0 |
|
59
|
* |
|
60
|
* @eventPayload |
|
61
|
* ```ts |
|
62
|
* { |
|
63
|
* id, // The ID of the cart |
|
64
|
* customer_id, // The ID of the customer |
|
65
|
* } |
|
66
|
* ``` |
|
67
|
*/ |
|
68
|
CUSTOMER_TRANSFERRED: "cart.customer_transferred", |
|
69
|
} as const |
|
70
|
|
|
71
|
/** |
|
72
|
* @category Customer |
|
73
|
* @customNamespace Customer |
|
74
|
*/ |
|
75
|
export const CustomerWorkflowEvents = { |
|
76
|
/** |
|
77
|
* Emitted when a customer is created. |
|
78
|
* |
|
79
|
* @eventPayload |
|
80
|
* ```ts |
|
81
|
* { |
|
82
|
* id, // The ID of the customer |
|
83
|
* } |
|
84
|
* ``` |
|
85
|
*/ |
|
86
|
CREATED: "customer.created", |
|
87
|
/** |
|
88
|
* Emitted when a customer is updated. |
|
89
|
* |
|
90
|
* @eventPayload |
|
91
|
* ```ts |
|
92
|
* { |
|
93
|
* id, // The ID of the customer |
|
94
|
* } |
|
95
|
* ``` |
|
96
|
*/ |
|
97
|
UPDATED: "customer.updated", |
|
98
|
/** |
|
99
|
* Emitted when a customer is deleted. |
|
100
|
* |
|
101
|
* @eventPayload |
|
102
|
* ```ts |
|
103
|
* { |
|
104
|
* id, // The ID of the customer |
|
105
|
* } |
|
106
|
* ``` |
|
107
|
*/ |
|
108
|
DELETED: "customer.deleted", |
|
109
|
} as const |
|
110
|
|
|
111
|
/** |
|
112
|
* @category Order |
|
113
|
* @customNamespace Order |
|
114
|
*/ |
|
115
|
export const OrderWorkflowEvents = { |
|
116
|
/** |
|
117
|
* Emitted when the details of an order or draft order is updated. This |
|
118
|
* doesn't include updates made by an edit. |
|
119
|
* |
|
120
|
* @eventPayload |
|
121
|
* ```ts |
|
122
|
* { |
|
123
|
* id, // The ID of the order |
|
124
|
* } |
|
125
|
* ``` |
|
126
|
*/ |
|
127
|
UPDATED: "order.updated", |
|
128
|
|
|
129
|
/** |
|
130
|
* Emitted when an order is placed, or when a draft order is converted to an |
|
131
|
* order. |
|
132
|
* |
|
133
|
* @eventPayload |
|
134
|
* ```ts |
|
135
|
* { |
|
136
|
* id, // The ID of the order |
|
137
|
* } |
|
138
|
* ``` |
|
139
|
*/ |
|
140
|
PLACED: "order.placed", |
|
141
|
/** |
|
142
|
* Emitted when an order is canceld. |
|
143
|
* |
|
144
|
* @eventPayload |
|
145
|
* ```ts |
|
146
|
* { |
|
147
|
* id, // The ID of the order |
|
148
|
* } |
|
149
|
* ``` |
|
150
|
*/ |
|
151
|
CANCELED: "order.canceled", |
|
152
|
/** |
|
153
|
* Emitted when orders are completed. |
|
154
|
* |
|
155
|
* @eventPayload |
|
156
|
* ```ts |
|
157
|
* { |
|
158
|
* id, // The ID of the order |
|
159
|
* } |
|
160
|
* ``` |
|
161
|
*/ |
|
162
|
COMPLETED: "order.completed", |
|
163
|
/** |
|
164
|
* Emitted when an order is archived. |
|
165
|
* |
|
166
|
* @eventPayload |
|
167
|
* ```ts |
|
168
|
* { |
|
169
|
* id, // The ID of the order |
|
170
|
* } |
|
171
|
* ``` |
|
172
|
*/ |
|
173
|
ARCHIVED: "order.archived", |
|
174
|
|
|
175
|
/** |
|
176
|
* Emitted when a fulfillment is created for an order. |
|
177
|
* |
|
178
|
* @eventPayload |
|
179
|
* ```ts |
|
180
|
* { |
|
181
|
* order_id, // The ID of the order |
|
182
|
* fulfillment_id, // The ID of the fulfillment |
|
183
|
* no_notification, // (boolean) Whether to notify the customer |
|
184
|
* } |
|
185
|
* ``` |
|
186
|
*/ |
|
187
|
FULFILLMENT_CREATED: "order.fulfillment_created", |
|
188
|
/** |
|
189
|
* Emitted when an order's fulfillment is canceled. |
|
190
|
* |
|
191
|
* @eventPayload |
|
192
|
* ```ts |
|
193
|
* { |
|
194
|
* order_id, // The ID of the order |
|
195
|
* fulfillment_id, // The ID of the fulfillment |
|
196
|
* no_notification, // (boolean) Whether to notify the customer |
|
197
|
* } |
|
198
|
* ``` |
|
199
|
*/ |
|
200
|
FULFILLMENT_CANCELED: "order.fulfillment_canceled", |
|
201
|
|
|
202
|
/** |
|
203
|
* Emitted when a return request is confirmed. |
|
204
|
* |
|
205
|
* @eventPayload |
|
206
|
* ```ts |
|
207
|
* { |
|
208
|
* order_id, // The ID of the order |
|
209
|
* return_id, // The ID of the return |
|
210
|
* } |
|
211
|
* ``` |
|
212
|
*/ |
|
213
|
RETURN_REQUESTED: "order.return_requested", |
|
214
|
/** |
|
215
|
* Emitted when a return is marked as received. |
|
216
|
* |
|
217
|
* @eventPayload |
|
218
|
* ```ts |
|
219
|
* { |
|
220
|
* order_id, // The ID of the order |
|
221
|
* return_id, // The ID of the return |
|
222
|
* } |
|
223
|
* ``` |
|
224
|
*/ |
|
225
|
RETURN_RECEIVED: "order.return_received", |
|
226
|
|
|
227
|
/** |
|
228
|
* Emitted when a claim is created for an order. |
|
229
|
* |
|
230
|
* @eventPayload |
|
231
|
* ```ts |
|
232
|
* { |
|
233
|
* order_id, // The ID of the order |
|
234
|
* claim_id, // The ID of the claim |
|
235
|
* } |
|
236
|
* ``` |
|
237
|
*/ |
|
238
|
CLAIM_CREATED: "order.claim_created", |
|
239
|
/** |
|
240
|
* Emitted when an exchange is created for an order. |
|
241
|
* |
|
242
|
* @eventPayload |
|
243
|
* ```ts |
|
244
|
* { |
|
245
|
* order_id, // The ID of the order |
|
246
|
* exchange_id, // The ID of the exchange |
|
247
|
* } |
|
248
|
* ``` |
|
249
|
*/ |
|
250
|
EXCHANGE_CREATED: "order.exchange_created", |
|
251
|
|
|
252
|
/** |
|
253
|
* Emitted when an order is requested to be transferred to |
|
254
|
* another customer. |
|
255
|
* |
|
256
|
* @eventPayload |
|
257
|
* ```ts |
|
258
|
* { |
|
259
|
* id, // The ID of the order |
|
260
|
* order_change_id, // The ID of the order change created for the transfer |
|
261
|
* } |
|
262
|
* ``` |
|
263
|
*/ |
|
264
|
TRANSFER_REQUESTED: "order.transfer_requested", |
|
265
|
} as const |
|
266
|
|
|
267
|
/** |
|
268
|
* @category Order Edit |
|
269
|
* @customNamespace Order |
|
270
|
*/ |
|
271
|
export const OrderEditWorkflowEvents = { |
|
272
|
/** |
|
273
|
* Emitted when an order edit is requested. |
|
274
|
* |
|
275
|
* @since 2.8.0 |
|
276
|
* |
|
277
|
* @eventPayload |
|
278
|
* ```ts |
|
279
|
* { |
|
280
|
* order_id, // The ID of the order |
|
281
|
* actions, // (array) The [actions](https://docs.medusajs.com/resources/references/fulfillment/interfaces/fulfillment.OrderChangeActionDTO) to edit the order |
|
282
|
* no_notification, // (boolean) Whether the customer shouldn't be notified of the requested order edit. Available since v2.19.0. |
|
283
|
* } |
|
284
|
* ``` |
|
285
|
*/ |
|
286
|
REQUESTED: "order-edit.requested", |
|
287
|
/** |
|
288
|
* Emitted when an order edit request is confirmed. |
|
289
|
* |
|
290
|
* @since 2.8.0 |
|
291
|
* |
|
292
|
* @eventPayload |
|
293
|
* ```ts |
|
294
|
* { |
|
295
|
* order_id, // The ID of the order |
|
296
|
* actions, // (array) The [actions](https://docs.medusajs.com/resources/references/fulfillment/interfaces/fulfillment.OrderChangeActionDTO) to edit the order |
|
297
|
* no_notification, // (boolean) Whether the customer shouldn't be notified of the order edit, as stored on the order change when the edit was requested. Available since v2.19.0. |
|
298
|
* } |
|
299
|
* ``` |
|
300
|
*/ |
|
301
|
CONFIRMED: "order-edit.confirmed", |
|
302
|
/** |
|
303
|
* Emitted when an order edit request is canceled. |
|
304
|
* |
|
305
|
* @since 2.8.0 |
|
306
|
* |
|
307
|
* @eventPayload |
|
308
|
* ```ts |
|
309
|
* { |
|
310
|
* order_id, // The ID of the order |
|
311
|
* actions, // (array) The [actions](https://docs.medusajs.com/resources/references/fulfillment/interfaces/fulfillment.OrderChangeActionDTO) to edit the order |
|
312
|
* } |
|
313
|
* ``` |
|
314
|
*/ |
|
315
|
CANCELED: "order-edit.canceled", |
|
316
|
} as const |
|
317
|
|
|
318
|
/** |
|
319
|
* @category User |
|
320
|
* @customNamespace User |
|
321
|
*/ |
|
322
|
export const UserWorkflowEvents = { |
|
323
|
/** |
|
324
|
* Emitted when users are created. |
|
325
|
* |
|
326
|
* @eventPayload |
|
327
|
* ```ts |
|
328
|
* { |
|
329
|
* id, // The ID of the user |
|
330
|
* } |
|
331
|
* ``` |
|
332
|
*/ |
|
333
|
CREATED: "user.created", |
|
334
|
/** |
|
335
|
* Emitted when users are updated. |
|
336
|
* |
|
337
|
* @eventPayload |
|
338
|
* ```ts |
|
339
|
* { |
|
340
|
* id, // The ID of the user |
|
341
|
* } |
|
342
|
* ``` |
|
343
|
*/ |
|
344
|
UPDATED: "user.updated", |
|
345
|
/** |
|
346
|
* Emitted when users are deleted. |
|
347
|
* |
|
348
|
* @eventPayload |
|
349
|
* ```ts |
|
350
|
* { |
|
351
|
* id, // The ID of the user |
|
352
|
* } |
|
353
|
* ``` |
|
354
|
*/ |
|
355
|
DELETED: "user.deleted", |
|
356
|
} as const |
|
357
|
|
|
358
|
/** |
|
359
|
* @category Auth |
|
360
|
* @customNamespace Auth |
|
361
|
*/ |
|
362
|
export const AuthWorkflowEvents = { |
|
363
|
/** |
|
364
|
* Emitted when a reset password token is generated. You can listen to this event |
|
365
|
* to send a reset password email to the user or customer, for example. |
|
366
|
* |
|
367
|
* @eventPayload |
|
368
|
* ```ts |
|
369
|
* { |
|
370
|
* entity_id, // The identifier of the user or customer. For example, an email address. |
|
371
|
* actor_type, // The type of actor. For example, "customer", "user", or custom. |
|
372
|
* token, // The generated token. |
|
373
|
* metadata, // Optional custom metadata passed from the request. |
|
374
|
* } |
|
375
|
* ``` |
|
376
|
*/ |
|
377
|
PASSWORD_RESET: "auth.password_reset", |
|
378
|
/** |
|
379
|
* Emitted when a verification code is generated. You can listen to |
|
380
|
* this event and decide how to deliver the code to the user or customer. |
|
381
|
* The payload changed in v2.17.0: |
|
382
|
* `actor_type` and `provider_identity_id` were removed, |
|
383
|
* `provider` was renamed to `code_provider`, and `entity_type` was added. |
|
384
|
* Subscribers written before v2.17.0 must be updated to use the payload below. |
|
385
|
* |
|
386
|
* @since 2.15.5 |
|
387
|
* |
|
388
|
* @eventPayload |
|
389
|
* ```ts |
|
390
|
* { |
|
391
|
* entity_id, // The identifier of the entity being verified. For example, an email address. |
|
392
|
* entity_type, // The kind of entity being verified. For example, "email". |
|
393
|
* code_provider, // The verification provider that generated the code. For example, "token". |
|
394
|
* auth_identity_id, // The ID of the auth identity being verified. |
|
395
|
* code, // The generated verification code. |
|
396
|
* expires_at, // (Date) The code expiry date. |
|
397
|
* metadata, // (object) Optional custom metadata passed from the request. |
|
398
|
* } |
|
399
|
* ``` |
|
400
|
*/ |
|
401
|
VERIFICATION_REQUESTED: "auth.verification_requested", |
|
402
|
} as const |
|
403
|
|
|
404
|
/** |
|
405
|
* @category Sales Channel |
|
406
|
* @customNamespace Sales Channel |
|
407
|
*/ |
|
408
|
export const SalesChannelWorkflowEvents = { |
|
409
|
/** |
|
410
|
* Emitted when sales channels are created. |
|
411
|
* |
|
412
|
* @eventPayload |
|
413
|
* ```ts |
|
414
|
* { |
|
415
|
* id, // The ID of the sales channel |
|
416
|
* } |
|
417
|
* ``` |
|
418
|
*/ |
|
419
|
CREATED: "sales-channel.created", |
|
420
|
/** |
|
421
|
* Emitted when sales channels are updated. |
|
422
|
* |
|
423
|
* @eventPayload |
|
424
|
* ```ts |
|
425
|
* { |
|
426
|
* id, // The ID of the sales channel |
|
427
|
* } |
|
428
|
* ``` |
|
429
|
*/ |
|
430
|
UPDATED: "sales-channel.updated", |
|
431
|
/** |
|
432
|
* Emitted when sales channels are deleted. |
|
433
|
* |
|
434
|
* @eventPayload |
|
435
|
* ```ts |
|
436
|
* { |
|
437
|
* id, // The ID of the sales channel |
|
438
|
* } |
|
439
|
* ``` |
|
440
|
*/ |
|
441
|
DELETED: "sales-channel.deleted", |
|
442
|
} as const |
|
443
|
|
|
444
|
/** |
|
445
|
* @category Product Category |
|
446
|
* @customNamespace Product |
|
447
|
*/ |
|
448
|
export const ProductCategoryWorkflowEvents = { |
|
449
|
/** |
|
450
|
* Emitted when product categories are created. |
|
451
|
* |
|
452
|
* @eventPayload |
|
453
|
* ```ts |
|
454
|
* { |
|
455
|
* id, // The ID of the product category |
|
456
|
* } |
|
457
|
* ``` |
|
458
|
*/ |
|
459
|
CREATED: "product-category.created", |
|
460
|
/** |
|
461
|
* Emitted when product categories are updated. |
|
462
|
* |
|
463
|
* @eventPayload |
|
464
|
* ```ts |
|
465
|
* { |
|
466
|
* id, // The ID of the product category |
|
467
|
* } |
|
468
|
* ``` |
|
469
|
*/ |
|
470
|
UPDATED: "product-category.updated", |
|
471
|
/** |
|
472
|
* Emitted when product categories are deleted. |
|
473
|
* |
|
474
|
* @eventPayload |
|
475
|
* ```ts |
|
476
|
* { |
|
477
|
* id, // The ID of the product category |
|
478
|
* } |
|
479
|
* ``` |
|
480
|
*/ |
|
481
|
DELETED: "product-category.deleted", |
|
482
|
} as const |
|
483
|
|
|
484
|
/** |
|
485
|
* @category Product Collection |
|
486
|
* @customNamespace Product |
|
487
|
*/ |
|
488
|
export const ProductCollectionWorkflowEvents = { |
|
489
|
/** |
|
490
|
* Emitted when product collections are created. |
|
491
|
* |
|
492
|
* @eventPayload |
|
493
|
* ```ts |
|
494
|
* { |
|
495
|
* id, // The ID of the product collection |
|
496
|
* } |
|
497
|
* ``` |
|
498
|
*/ |
|
499
|
CREATED: "product-collection.created", |
|
500
|
/** |
|
501
|
* Emitted when product collections are updated. |
|
502
|
* |
|
503
|
* @eventPayload |
|
504
|
* ```ts |
|
505
|
* { |
|
506
|
* id, // The ID of the product collection |
|
507
|
* } |
|
508
|
* ``` |
|
509
|
*/ |
|
510
|
UPDATED: "product-collection.updated", |
|
511
|
/** |
|
512
|
* Emitted when product collections are deleted. |
|
513
|
* |
|
514
|
* @eventPayload |
|
515
|
* ```ts |
|
516
|
* { |
|
517
|
* id, // The ID of the product collection |
|
518
|
* } |
|
519
|
* ``` |
|
520
|
*/ |
|
521
|
DELETED: "product-collection.deleted", |
|
522
|
} as const |
|
523
|
|
|
524
|
/** |
|
525
|
* @category Product Variant |
|
526
|
* @customNamespace Product |
|
527
|
*/ |
|
528
|
export const ProductVariantWorkflowEvents = { |
|
529
|
/** |
|
530
|
* Emitted when product variants are updated. |
|
531
|
* |
|
532
|
* @eventPayload |
|
533
|
* ```ts |
|
534
|
* { |
|
535
|
* id, // The ID of the product variant |
|
536
|
* } |
|
537
|
* ``` |
|
538
|
*/ |
|
539
|
UPDATED: "product-variant.updated", |
|
540
|
/** |
|
541
|
* Emitted when product variants are created. |
|
542
|
* |
|
543
|
* @eventPayload |
|
544
|
* ```ts |
|
545
|
* { |
|
546
|
* id, // The ID of the product variant |
|
547
|
* } |
|
548
|
* ``` |
|
549
|
*/ |
|
550
|
CREATED: "product-variant.created", |
|
551
|
/** |
|
552
|
* Emitted when product variants are deleted. |
|
553
|
* |
|
554
|
* @eventPayload |
|
555
|
* ```ts |
|
556
|
* { |
|
557
|
* id, // The ID of the product variant |
|
558
|
* } |
|
559
|
* ``` |
|
560
|
*/ |
|
561
|
DELETED: "product-variant.deleted", |
|
562
|
} as const |
|
563
|
|
|
564
|
/** |
|
565
|
* @category Product |
|
566
|
* @customNamespace Product |
|
567
|
*/ |
|
568
|
export const ProductWorkflowEvents = { |
|
569
|
/** |
|
570
|
* Emitted when products are updated. |
|
571
|
* |
|
572
|
* @eventPayload |
|
573
|
* ```ts |
|
574
|
* { |
|
575
|
* id, // The ID of the product |
|
576
|
* } |
|
577
|
* ``` |
|
578
|
*/ |
|
579
|
UPDATED: "product.updated", |
|
580
|
/** |
|
581
|
* Emitted when products are created. |
|
582
|
* |
|
583
|
* @eventPayload |
|
584
|
* ```ts |
|
585
|
* { |
|
586
|
* id, // The ID of the product |
|
587
|
* } |
|
588
|
* ``` |
|
589
|
*/ |
|
590
|
CREATED: "product.created", |
|
591
|
/** |
|
592
|
* Emitted when products are deleted. |
|
593
|
* |
|
594
|
* @eventPayload |
|
595
|
* ```ts |
|
596
|
* { |
|
597
|
* id, // The ID of the product |
|
598
|
* } |
|
599
|
* ``` |
|
600
|
*/ |
|
601
|
DELETED: "product.deleted", |
|
602
|
} as const |
|
603
|
|
|
604
|
/** |
|
605
|
* @category Product Type |
|
606
|
* @customNamespace Product |
|
607
|
*/ |
|
608
|
export const ProductTypeWorkflowEvents = { |
|
609
|
/** |
|
610
|
* Emitted when product types are updated. |
|
611
|
* |
|
612
|
* @eventPayload |
|
613
|
* ```ts |
|
614
|
* { |
|
615
|
* id, // The ID of the product type |
|
616
|
* } |
|
617
|
* ``` |
|
618
|
*/ |
|
619
|
UPDATED: "product-type.updated", |
|
620
|
/** |
|
621
|
* Emitted when product types are created. |
|
622
|
* |
|
623
|
* @eventPayload |
|
624
|
* ```ts |
|
625
|
* { |
|
626
|
* id, // The ID of the product type |
|
627
|
* } |
|
628
|
* ``` |
|
629
|
*/ |
|
630
|
CREATED: "product-type.created", |
|
631
|
/** |
|
632
|
* Emitted when product types are deleted. |
|
633
|
* |
|
634
|
* @eventPayload |
|
635
|
* ```ts |
|
636
|
* { |
|
637
|
* id, // The ID of the product type |
|
638
|
* } |
|
639
|
* ``` |
|
640
|
*/ |
|
641
|
DELETED: "product-type.deleted", |
|
642
|
} as const |
|
643
|
|
|
644
|
/** |
|
645
|
* @category Product Tag |
|
646
|
* @customNamespace Product |
|
647
|
*/ |
|
648
|
export const ProductTagWorkflowEvents = { |
|
649
|
/** |
|
650
|
* Emitted when product tags are updated. |
|
651
|
* |
|
652
|
* @eventPayload |
|
653
|
* ```ts |
|
654
|
* { |
|
655
|
* id, // The ID of the product tag |
|
656
|
* } |
|
657
|
* ``` |
|
658
|
*/ |
|
659
|
UPDATED: "product-tag.updated", |
|
660
|
/** |
|
661
|
* Emitted when product tags are created. |
|
662
|
* |
|
663
|
* @eventPayload |
|
664
|
* ```ts |
|
665
|
* { |
|
666
|
* id, // The ID of the product tag |
|
667
|
* } |
|
668
|
* ``` |
|
669
|
*/ |
|
670
|
CREATED: "product-tag.created", |
|
671
|
/** |
|
672
|
* Emitted when product tags are deleted. |
|
673
|
* |
|
674
|
* @eventPayload |
|
675
|
* ```ts |
|
676
|
* { |
|
677
|
* id, // The ID of the product tag |
|
678
|
* } |
|
679
|
* ``` |
|
680
|
*/ |
|
681
|
DELETED: "product-tag.deleted", |
|
682
|
} as const |
|
683
|
|
|
684
|
/** |
|
685
|
* @category Product Option |
|
686
|
* @customNamespace Product |
|
687
|
*/ |
|
688
|
export const ProductOptionWorkflowEvents = { |
|
689
|
/** |
|
690
|
* Emitted when product options are updated. |
|
691
|
* |
|
692
|
* @eventPayload |
|
693
|
* ```ts |
|
694
|
* { |
|
695
|
* id, // The ID of the product option |
|
696
|
* } |
|
697
|
* ``` |
|
698
|
*/ |
|
699
|
UPDATED: "product-option.updated", |
|
700
|
/** |
|
701
|
* Emitted when product options are created. |
|
702
|
* |
|
703
|
* @eventPayload |
|
704
|
* ```ts |
|
705
|
* { |
|
706
|
* id, // The ID of the product option |
|
707
|
* } |
|
708
|
* ``` |
|
709
|
*/ |
|
710
|
CREATED: "product-option.created", |
|
711
|
/** |
|
712
|
* Emitted when product options are deleted. |
|
713
|
* |
|
714
|
* @eventPayload |
|
715
|
* ```ts |
|
716
|
* { |
|
717
|
* id, // The ID of the product option |
|
718
|
* } |
|
719
|
* ``` |
|
720
|
*/ |
|
721
|
DELETED: "product-option.deleted", |
|
722
|
} as const |
|
723
|
|
|
724
|
/** |
|
725
|
* @category Product Option Value |
|
726
|
* @customNamespace Product |
|
727
|
*/ |
|
728
|
export const ProductOptionValueWorkflowEvents = { |
|
729
|
/** |
|
730
|
* Emitted when product option values are updated. |
|
731
|
* |
|
732
|
* @since 2.20.0 |
|
733
|
* |
|
734
|
* @eventPayload |
|
735
|
* ```ts |
|
736
|
* { |
|
737
|
* id, // The ID of the product option value |
|
738
|
* } |
|
739
|
* ``` |
|
740
|
*/ |
|
741
|
UPDATED: "product-option-value.updated", |
|
742
|
/** |
|
743
|
* Emitted when product option values are deleted. |
|
744
|
* |
|
745
|
* @since 2.20.0 |
|
746
|
* |
|
747
|
* @eventPayload |
|
748
|
* ```ts |
|
749
|
* { |
|
750
|
* id, // The ID of the product option value |
|
751
|
* } |
|
752
|
* ``` |
|
753
|
*/ |
|
754
|
DELETED: "product-option-value.deleted", |
|
755
|
} as const |
|
756
|
|
|
757
|
/** |
|
758
|
* @category Price List |
|
759
|
* @customNamespace Pricing |
|
760
|
*/ |
|
761
|
export const PriceListWorkflowEvents = { |
|
762
|
/** |
|
763
|
* Emitted when price lists are created. |
|
764
|
* |
|
765
|
* @since 2.21.3 |
|
766
|
* |
|
767
|
* @eventPayload |
|
768
|
* ```ts |
|
769
|
* { |
|
770
|
* id, // The ID of the price list |
|
771
|
* } |
|
772
|
* ``` |
|
773
|
*/ |
|
774
|
CREATED: "price-list.created", |
|
775
|
/** |
|
776
|
* Emitted when price lists are updated. |
|
777
|
* |
|
778
|
* @since 2.21.3 |
|
779
|
* |
|
780
|
* @eventPayload |
|
781
|
* ```ts |
|
782
|
* { |
|
783
|
* id, // The ID of the price list |
|
784
|
* } |
|
785
|
* ``` |
|
786
|
*/ |
|
787
|
UPDATED: "price-list.updated", |
|
788
|
/** |
|
789
|
* Emitted when price lists are deleted. |
|
790
|
* |
|
791
|
* @since 2.21.3 |
|
792
|
* |
|
793
|
* @eventPayload |
|
794
|
* ```ts |
|
795
|
* { |
|
796
|
* id, // The ID of the price list |
|
797
|
* } |
|
798
|
* ``` |
|
799
|
*/ |
|
800
|
DELETED: "price-list.deleted", |
|
801
|
/** |
|
802
|
* Emitted when prices are added to a price list. |
|
803
|
* |
|
804
|
* @since 2.21.3 |
|
805
|
* |
|
806
|
* @eventPayload |
|
807
|
* ```ts |
|
808
|
* { |
|
809
|
* id, // The ID of the price list |
|
810
|
* price_set_ids, // The IDs of the price sets whose prices were added |
|
811
|
* } |
|
812
|
* ``` |
|
813
|
*/ |
|
814
|
PRICES_ADDED: "price-list.prices_added", |
|
815
|
/** |
|
816
|
* Emitted when prices in a price list are updated. |
|
817
|
* |
|
818
|
* @since 2.21.3 |
|
819
|
* |
|
820
|
* @eventPayload |
|
821
|
* ```ts |
|
822
|
* { |
|
823
|
* id, // The ID of the price list |
|
824
|
* price_set_ids, // The IDs of the price sets whose prices were updated |
|
825
|
* } |
|
826
|
* ``` |
|
827
|
*/ |
|
828
|
PRICES_UPDATED: "price-list.prices_updated", |
|
829
|
/** |
|
830
|
* Emitted when prices are removed from a price list. |
|
831
|
* |
|
832
|
* @since 2.21.3 |
|
833
|
* |
|
834
|
* @eventPayload |
|
835
|
* ```ts |
|
836
|
* { |
|
837
|
* id, // The ID of the price list |
|
838
|
* price_set_ids, // The IDs of the price sets whose prices were removed |
|
839
|
* } |
|
840
|
* ``` |
|
841
|
*/ |
|
842
|
PRICES_REMOVED: "price-list.prices_removed", |
|
843
|
} as const |
|
844
|
|
|
845
|
/** |
|
846
|
* @category Invite |
|
847
|
* @customNamespace User |
|
848
|
*/ |
|
849
|
export const InviteWorkflowEvents = { |
|
850
|
/** |
|
851
|
* Emitted when an invite is accepted. |
|
852
|
* |
|
853
|
* @eventPayload |
|
854
|
* ```ts |
|
855
|
* { |
|
856
|
* id, // The ID of the invite |
|
857
|
* } |
|
858
|
* ``` |
|
859
|
*/ |
|
860
|
ACCEPTED: "invite.accepted", |
|
861
|
/** |
|
862
|
* Emitted when invites are created. You can listen to this event |
|
863
|
* to send an email to the invited users, for example. |
|
864
|
* |
|
865
|
* @eventPayload |
|
866
|
* ```ts |
|
867
|
* { |
|
868
|
* id, // The ID of the invite |
|
869
|
* } |
|
870
|
* ``` |
|
871
|
*/ |
|
872
|
CREATED: "invite.created", |
|
873
|
/** |
|
874
|
* Emitted when invites are deleted. |
|
875
|
* |
|
876
|
* @eventPayload |
|
877
|
* ```ts |
|
878
|
* { |
|
879
|
* id, // The ID of the invite |
|
880
|
* } |
|
881
|
* ``` |
|
882
|
*/ |
|
883
|
DELETED: "invite.deleted", |
|
884
|
/** |
|
885
|
* Emitted when invites should be resent because their token was |
|
886
|
* refreshed. You can listen to this event to send an email to the invited users, |
|
887
|
* for example. |
|
888
|
* |
|
889
|
* @eventPayload |
|
890
|
* ```ts |
|
891
|
* { |
|
892
|
* id, // The ID of the invite |
|
893
|
* } |
|
894
|
* ``` |
|
895
|
*/ |
|
896
|
RESENT: "invite.resent", |
|
897
|
} as const |
|
898
|
|
|
899
|
/** |
|
900
|
* @category Region |
|
901
|
* @customNamespace Region |
|
902
|
*/ |
|
903
|
export const RegionWorkflowEvents = { |
|
904
|
/** |
|
905
|
* Emitted when regions are updated. |
|
906
|
* |
|
907
|
* @eventPayload |
|
908
|
* ```ts |
|
909
|
* { |
|
910
|
* id, // The ID of the region |
|
911
|
* } |
|
912
|
* ``` |
|
913
|
*/ |
|
914
|
UPDATED: "region.updated", |
|
915
|
/** |
|
916
|
* Emitted when regions are created. |
|
917
|
* |
|
918
|
* @eventPayload |
|
919
|
* ```ts |
|
920
|
* { |
|
921
|
* id, // The ID of the region |
|
922
|
* } |
|
923
|
* ``` |
|
924
|
*/ |
|
925
|
CREATED: "region.created", |
|
926
|
/** |
|
927
|
* Emitted when regions are deleted. |
|
928
|
* |
|
929
|
* @eventPayload |
|
930
|
* ```ts |
|
931
|
* { |
|
932
|
* id, // The ID of the region |
|
933
|
* } |
|
934
|
* ``` |
|
935
|
*/ |
|
936
|
DELETED: "region.deleted", |
|
937
|
} as const |
|
938
|
|
|
939
|
/** |
|
940
|
* @category Fulfillment |
|
941
|
* @customNamespace Fulfillment |
|
942
|
*/ |
|
943
|
export const FulfillmentWorkflowEvents = { |
|
944
|
/** |
|
945
|
* Emitted when a shipment is created for an order. |
|
946
|
* |
|
947
|
* @eventPayload |
|
948
|
* ```ts |
|
949
|
* { |
|
950
|
* id, // the ID of the fulfillment |
|
951
|
* no_notification, // (boolean) whether to notify the customer |
|
952
|
* } |
|
953
|
* ``` |
|
954
|
*/ |
|
955
|
SHIPMENT_CREATED: "shipment.created", |
|
956
|
/** |
|
957
|
* Emitted when a fulfillment is marked as delivered. |
|
958
|
* |
|
959
|
* @eventPayload |
|
960
|
* ```ts |
|
961
|
* { |
|
962
|
* id, // the ID of the fulfillment |
|
963
|
* } |
|
964
|
* ``` |
|
965
|
*/ |
|
966
|
DELIVERY_CREATED: "delivery.created", |
|
967
|
} as const |
|
968
|
|
|
969
|
/** |
|
970
|
* @category Shipping Option Type |
|
971
|
* @customNamespace Fulfillment |
|
972
|
*/ |
|
973
|
export const ShippingOptionTypeWorkflowEvents = { |
|
974
|
/** |
|
975
|
* Emitted when shipping option types are updated. |
|
976
|
* |
|
977
|
* @since 2.10.0 |
|
978
|
* |
|
979
|
* @eventPayload |
|
980
|
* ```ts |
|
981
|
* { |
|
982
|
* id, // The ID of the shipping option type |
|
983
|
* } |
|
984
|
* ``` |
|
985
|
*/ |
|
986
|
UPDATED: "shipping-option-type.updated", |
|
987
|
/** |
|
988
|
* Emitted when shipping option types are created. |
|
989
|
* |
|
990
|
* @since 2.10.0 |
|
991
|
* |
|
992
|
* @eventPayload |
|
993
|
* ```ts |
|
994
|
* { |
|
995
|
* id, // The ID of the shipping option type |
|
996
|
* } |
|
997
|
* ``` |
|
998
|
*/ |
|
999
|
CREATED: "shipping-option-type.created", |
|
1000
|
/** |
|
1001
|
* Emitted when shipping option types are deleted. |
|
1002
|
* |
|
1003
|
* @since 2.10.0 |
|
1004
|
* |
|
1005
|
* @eventPayload |
|
1006
|
* ```ts |
|
1007
|
* { |
|
1008
|
* id, // The ID of the shipping option type |
|
1009
|
* } |
|
1010
|
* ``` |
|
1011
|
*/ |
|
1012
|
DELETED: "shipping-option-type.deleted", |
|
1013
|
} as const |
|
1014
|
|
|
1015
|
/** |
|
1016
|
* @category Shipping Option |
|
1017
|
* @customNamespace Fulfillment |
|
1018
|
*/ |
|
1019
|
export const ShippingOptionWorkflowEvents = { |
|
1020
|
/** |
|
1021
|
* Emitted when shipping options are created. |
|
1022
|
* |
|
1023
|
* @since 2.12.4 |
|
1024
|
* |
|
1025
|
* @eventPayload |
|
1026
|
* ```ts |
|
1027
|
* { |
|
1028
|
* id, // The ID of the shipping option |
|
1029
|
* } |
|
1030
|
* ``` |
|
1031
|
*/ |
|
1032
|
CREATED: "shipping-option.created", |
|
1033
|
/** |
|
1034
|
* Emitted when shipping options are updated. |
|
1035
|
* |
|
1036
|
* @since 2.12.4 |
|
1037
|
* |
|
1038
|
* @eventPayload |
|
1039
|
* ```ts |
|
1040
|
* { |
|
1041
|
* id, // The ID of the shipping option |
|
1042
|
* } |
|
1043
|
* ``` |
|
1044
|
*/ |
|
1045
|
UPDATED: "shipping-option.updated", |
|
1046
|
/** |
|
1047
|
* Emitted when shipping options are deleted. |
|
1048
|
* |
|
1049
|
* @since 2.12.4 |
|
1050
|
* |
|
1051
|
* @eventPayload |
|
1052
|
* ```ts |
|
1053
|
* { |
|
1054
|
* id, // The ID of the shipping option |
|
1055
|
* } |
|
1056
|
* ``` |
|
1057
|
*/ |
|
1058
|
DELETED: "shipping-option.deleted", |
|
1059
|
} as const |
|
1060
|
|
|
1061
|
/** |
|
1062
|
* @category Payment |
|
1063
|
* @customNamespace Payment |
|
1064
|
*/ |
|
1065
|
export const PaymentEvents = { |
|
1066
|
/** |
|
1067
|
* Emitted when a payment is captured. |
|
1068
|
* |
|
1069
|
* @eventPayload |
|
1070
|
* ```ts |
|
1071
|
* { |
|
1072
|
* id, // the ID of the payment |
|
1073
|
* } |
|
1074
|
* ``` |
|
1075
|
*/ |
|
1076
|
CAPTURED: "payment.captured", |
|
1077
|
/** |
|
1078
|
* Emitted when a payment is refunded. |
|
1079
|
* |
|
1080
|
* @eventPayload |
|
1081
|
* ```ts |
|
1082
|
* { |
|
1083
|
* id, // the ID of the payment |
|
1084
|
* } |
|
1085
|
* ``` |
|
1086
|
*/ |
|
1087
|
REFUNDED: "payment.refunded", |
|
1088
|
} as const |
|
1089
|
|
|
1090
|
/** |
|
1091
|
* @category Translation |
|
1092
|
* @customNamespace Translation |
|
1093
|
*/ |
|
1094
|
export const TranslationWorkflowEvents = { |
|
1095
|
/** |
|
1096
|
* Emitted when translations are created. |
|
1097
|
* |
|
1098
|
* @since 2.12.3 |
|
1099
|
* @featureFlag translation |
|
1100
|
* @eventPayload |
|
1101
|
* ```ts |
|
1102
|
* { |
|
1103
|
* id, // The ID of the translation |
|
1104
|
* } |
|
1105
|
* ``` |
|
1106
|
*/ |
|
1107
|
CREATED: "translation.created", |
|
1108
|
/** |
|
1109
|
* Emitted when translations are updated. |
|
1110
|
* |
|
1111
|
* @since 2.12.3 |
|
1112
|
* @featureFlag translation |
|
1113
|
* @eventPayload |
|
1114
|
* ```ts |
|
1115
|
* { |
|
1116
|
* id, // The ID of the translation |
|
1117
|
* } |
|
1118
|
* ``` |
|
1119
|
*/ |
|
1120
|
UPDATED: "translation.updated", |
|
1121
|
/** |
|
1122
|
* Emitted when translations are deleted. |
|
1123
|
* |
|
1124
|
* @since 2.12.3 |
|
1125
|
* @featureFlag translation |
|
1126
|
* @eventPayload |
|
1127
|
* ```ts |
|
1128
|
* { |
|
1129
|
* id, // The ID of the translation |
|
1130
|
* } |
|
1131
|
* ``` |
|
1132
|
*/ |
|
1133
|
DELETED: "translation.deleted", |
|
1134
|
} as const |
|
1135
|
|
|
1136
|
/** |
|
1137
|
* @category Inventory Item |
|
1138
|
* @customNamespace Inventory |
|
1139
|
*/ |
|
1140
|
export const InventoryItemWorkflowEvents = { |
|
1141
|
/** |
|
1142
|
* Emitted when inventory items are created. |
|
1143
|
* |
|
1144
|
* @since 2.18.0 |
|
1145
|
* |
|
1146
|
* @eventPayload |
|
1147
|
* ```ts |
|
1148
|
* { |
|
1149
|
* id, // The ID of the inventory item |
|
1150
|
* } |
|
1151
|
* ``` |
|
1152
|
*/ |
|
1153
|
CREATED: "inventory-item.created", |
|
1154
|
/** |
|
1155
|
* Emitted when inventory items are updated. |
|
1156
|
* |
|
1157
|
* @since 2.18.0 |
|
1158
|
* |
|
1159
|
* @eventPayload |
|
1160
|
* ```ts |
|
1161
|
* { |
|
1162
|
* id, // The ID of the inventory item |
|
1163
|
* } |
|
1164
|
* ``` |
|
1165
|
*/ |
|
1166
|
UPDATED: "inventory-item.updated", |
|
1167
|
/** |
|
1168
|
* Emitted when inventory items are deleted. |
|
1169
|
* |
|
1170
|
* @since 2.18.0 |
|
1171
|
* |
|
1172
|
* @eventPayload |
|
1173
|
* ```ts |
|
1174
|
* { |
|
1175
|
* id, // The ID of the inventory item |
|
1176
|
* } |
|
1177
|
* ``` |
|
1178
|
*/ |
|
1179
|
DELETED: "inventory-item.deleted", |
|
1180
|
} as const |
|
1181
|
|
|
1182
|
/** |
|
1183
|
* @category Inventory Level |
|
1184
|
* @customNamespace Inventory |
|
1185
|
*/ |
|
1186
|
export const InventoryLevelWorkflowEvents = { |
|
1187
|
/** |
|
1188
|
* Emitted when inventory levels are created. |
|
1189
|
* |
|
1190
|
* @since 2.18.0 |
|
1191
|
* |
|
1192
|
* @eventPayload |
|
1193
|
* ```ts |
|
1194
|
* { |
|
1195
|
* id, // The ID of the inventory level |
|
1196
|
* } |
|
1197
|
* ``` |
|
1198
|
*/ |
|
1199
|
CREATED: "inventory-level.created", |
|
1200
|
/** |
|
1201
|
* Emitted when inventory levels are updated. This includes adjustments to |
|
1202
|
* the stocked or reserved quantity, such as during order fulfillment. |
|
1203
|
* |
|
1204
|
* @since 2.18.0 |
|
1205
|
* |
|
1206
|
* @eventPayload |
|
1207
|
* ```ts |
|
1208
|
* { |
|
1209
|
* id, // The ID of the inventory level |
|
1210
|
* order_id, // (optional) The ID of the order, if the update was triggered by an order flow |
|
1211
|
* } |
|
1212
|
* ``` |
|
1213
|
*/ |
|
1214
|
UPDATED: "inventory-level.updated", |
|
1215
|
/** |
|
1216
|
* Emitted when inventory levels are deleted. |
|
1217
|
* |
|
1218
|
* @since 2.18.0 |
|
1219
|
* |
|
1220
|
* @eventPayload |
|
1221
|
* ```ts |
|
1222
|
* { |
|
1223
|
* id, // The ID of the inventory level |
|
1224
|
* } |
|
1225
|
* ``` |
|
1226
|
*/ |
|
1227
|
DELETED: "inventory-level.deleted", |
|
1228
|
} as const |
|
1229
|
|
|
1230
|
/** |
|
1231
|
* @category Reservation Item |
|
1232
|
* @customNamespace Inventory |
|
1233
|
*/ |
|
1234
|
export const ReservationItemWorkflowEvents = { |
|
1235
|
/** |
|
1236
|
* Emitted when reservations are created. |
|
1237
|
* |
|
1238
|
* @since 2.18.0 |
|
1239
|
* |
|
1240
|
* @eventPayload |
|
1241
|
* ```ts |
|
1242
|
* { |
|
1243
|
* id, // The ID of the reservation |
|
1244
|
* order_id, // (optional) The ID of the order, if the reservation was created by an order flow |
|
1245
|
* } |
|
1246
|
* ``` |
|
1247
|
*/ |
|
1248
|
CREATED: "reservation-item.created", |
|
1249
|
/** |
|
1250
|
* Emitted when reservations are updated. |
|
1251
|
* |
|
1252
|
* @since 2.18.0 |
|
1253
|
* |
|
1254
|
* @eventPayload |
|
1255
|
* ```ts |
|
1256
|
* { |
|
1257
|
* id, // The ID of the reservation |
|
1258
|
* order_id, // (optional) The ID of the order, if the reservation was updated by an order flow |
|
1259
|
* } |
|
1260
|
* ``` |
|
1261
|
*/ |
|
1262
|
UPDATED: "reservation-item.updated", |
|
1263
|
/** |
|
1264
|
* Emitted when reservations are deleted. |
|
1265
|
* |
|
1266
|
* @since 2.18.0 |
|
1267
|
* |
|
1268
|
* @eventPayload |
|
1269
|
* ```ts |
|
1270
|
* { |
|
1271
|
* id, // The ID of the reservation |
|
1272
|
* order_id, // (optional) The ID of the order, if the reservation was deleted by an order flow |
|
1273
|
* } |
|
1274
|
* ``` |
|
1275
|
*/ |
|
1276
|
DELETED: "reservation-item.deleted", |
|
1277
|
} as const |
|
1278
|
|
|
1279
|
// TODO: Comment temporarely and we will re enable it in the near future #14478 |
|
1280
|
// declare module "@medusajs/types" { |
|
1281
|
// export interface EventBusEventsOptions { |
|
1282
|
// // Cart events |
|
1283
|
// [CartWorkflowEvents.CREATED]?: EventOptions |
|
1284
|
// [CartWorkflowEvents.UPDATED]?: EventOptions |
|
1285
|
// [CartWorkflowEvents.CUSTOMER_UPDATED]?: EventOptions |
|
1286
|
// [CartWorkflowEvents.REGION_UPDATED]?: EventOptions |
|
1287
|
// [CartWorkflowEvents.CUSTOMER_TRANSFERRED]?: EventOptions |
|
1288
|
|
|
1289
|
// // Customer events |
|
1290
|
// [CustomerWorkflowEvents.CREATED]?: EventOptions |
|
1291
|
// [CustomerWorkflowEvents.UPDATED]?: EventOptions |
|
1292
|
// [CustomerWorkflowEvents.DELETED]?: EventOptions |
|
1293
|
|
|
1294
|
// // Order events |
|
1295
|
// [OrderWorkflowEvents.UPDATED]?: EventOptions |
|
1296
|
// [OrderWorkflowEvents.PLACED]?: EventOptions |
|
1297
|
// [OrderWorkflowEvents.CANCELED]?: EventOptions |
|
1298
|
// [OrderWorkflowEvents.COMPLETED]?: EventOptions |
|
1299
|
// [OrderWorkflowEvents.ARCHIVED]?: EventOptions |
|
1300
|
// [OrderWorkflowEvents.FULFILLMENT_CREATED]?: EventOptions |
|
1301
|
// [OrderWorkflowEvents.FULFILLMENT_CANCELED]?: EventOptions |
|
1302
|
// [OrderWorkflowEvents.RETURN_REQUESTED]?: EventOptions |
|
1303
|
// [OrderWorkflowEvents.RETURN_RECEIVED]?: EventOptions |
|
1304
|
// [OrderWorkflowEvents.CLAIM_CREATED]?: EventOptions |
|
1305
|
// [OrderWorkflowEvents.EXCHANGE_CREATED]?: EventOptions |
|
1306
|
// [OrderWorkflowEvents.TRANSFER_REQUESTED]?: EventOptions |
|
1307
|
|
|
1308
|
// // Order Edit events |
|
1309
|
// [OrderEditWorkflowEvents.REQUESTED]?: EventOptions |
|
1310
|
// [OrderEditWorkflowEvents.CONFIRMED]?: EventOptions |
|
1311
|
// [OrderEditWorkflowEvents.CANCELED]?: EventOptions |
|
1312
|
|
|
1313
|
// // User events |
|
1314
|
// [UserWorkflowEvents.CREATED]?: EventOptions |
|
1315
|
// [UserWorkflowEvents.UPDATED]?: EventOptions |
|
1316
|
// [UserWorkflowEvents.DELETED]?: EventOptions |
|
1317
|
|
|
1318
|
// // Auth events |
|
1319
|
// [AuthWorkflowEvents.PASSWORD_RESET]?: EventOptions |
|
1320
|
|
|
1321
|
// // Sales Channel events |
|
1322
|
// [SalesChannelWorkflowEvents.CREATED]?: EventOptions |
|
1323
|
// [SalesChannelWorkflowEvents.UPDATED]?: EventOptions |
|
1324
|
// [SalesChannelWorkflowEvents.DELETED]?: EventOptions |
|
1325
|
|
|
1326
|
// // Product Category events |
|
1327
|
// [ProductCategoryWorkflowEvents.CREATED]?: EventOptions |
|
1328
|
// [ProductCategoryWorkflowEvents.UPDATED]?: EventOptions |
|
1329
|
// [ProductCategoryWorkflowEvents.DELETED]?: EventOptions |
|
1330
|
|
|
1331
|
// // Product Collection events |
|
1332
|
// [ProductCollectionWorkflowEvents.CREATED]?: EventOptions |
|
1333
|
// [ProductCollectionWorkflowEvents.UPDATED]?: EventOptions |
|
1334
|
// [ProductCollectionWorkflowEvents.DELETED]?: EventOptions |
|
1335
|
|
|
1336
|
// // Product Variant events |
|
1337
|
// [ProductVariantWorkflowEvents.CREATED]?: EventOptions |
|
1338
|
// [ProductVariantWorkflowEvents.UPDATED]?: EventOptions |
|
1339
|
// [ProductVariantWorkflowEvents.DELETED]?: EventOptions |
|
1340
|
|
|
1341
|
// // Product events |
|
1342
|
// [ProductWorkflowEvents.CREATED]?: EventOptions |
|
1343
|
// [ProductWorkflowEvents.UPDATED]?: EventOptions |
|
1344
|
// [ProductWorkflowEvents.DELETED]?: EventOptions |
|
1345
|
|
|
1346
|
// // Product Type events |
|
1347
|
// [ProductTypeWorkflowEvents.CREATED]?: EventOptions |
|
1348
|
// [ProductTypeWorkflowEvents.UPDATED]?: EventOptions |
|
1349
|
// [ProductTypeWorkflowEvents.DELETED]?: EventOptions |
|
1350
|
|
|
1351
|
// // Product Tag events |
|
1352
|
// [ProductTagWorkflowEvents.CREATED]?: EventOptions |
|
1353
|
// [ProductTagWorkflowEvents.UPDATED]?: EventOptions |
|
1354
|
// [ProductTagWorkflowEvents.DELETED]?: EventOptions |
|
1355
|
|
|
1356
|
// // Product Option events |
|
1357
|
// [ProductOptionWorkflowEvents.CREATED]?: EventOptions |
|
1358
|
// [ProductOptionWorkflowEvents.UPDATED]?: EventOptions |
|
1359
|
// [ProductOptionWorkflowEvents.DELETED]?: EventOptions |
|
1360
|
|
|
1361
|
// // Invite events |
|
1362
|
// [InviteWorkflowEvents.ACCEPTED]?: EventOptions |
|
1363
|
// [InviteWorkflowEvents.CREATED]?: EventOptions |
|
1364
|
// [InviteWorkflowEvents.DELETED]?: EventOptions |
|
1365
|
// [InviteWorkflowEvents.RESENT]?: EventOptions |
|
1366
|
|
|
1367
|
// // Region events |
|
1368
|
// [RegionWorkflowEvents.CREATED]?: EventOptions |
|
1369
|
// [RegionWorkflowEvents.UPDATED]?: EventOptions |
|
1370
|
// [RegionWorkflowEvents.DELETED]?: EventOptions |
|
1371
|
|
|
1372
|
// // Fulfillment events |
|
1373
|
// [FulfillmentWorkflowEvents.SHIPMENT_CREATED]?: EventOptions |
|
1374
|
// [FulfillmentWorkflowEvents.DELIVERY_CREATED]?: EventOptions |
|
1375
|
|
|
1376
|
// // Shipping Option Type events |
|
1377
|
// [ShippingOptionTypeWorkflowEvents.CREATED]?: EventOptions |
|
1378
|
// [ShippingOptionTypeWorkflowEvents.UPDATED]?: EventOptions |
|
1379
|
// [ShippingOptionTypeWorkflowEvents.DELETED]?: EventOptions |
|
1380
|
|
|
1381
|
// // Shipping Option events |
|
1382
|
// [ShippingOptionWorkflowEvents.CREATED]?: EventOptions |
|
1383
|
// [ShippingOptionWorkflowEvents.UPDATED]?: EventOptions |
|
1384
|
// [ShippingOptionWorkflowEvents.DELETED]?: EventOptions |
|
1385
|
|
|
1386
|
// // Payment events |
|
1387
|
// [PaymentEvents.CAPTURED]?: EventOptions |
|
1388
|
// [PaymentEvents.REFUNDED]?: EventOptions |
|
1389
|
|
|
1390
|
// // Translation events |
|
1391
|
// [TranslationWorkflowEvents.CREATED]?: EventOptions |
|
1392
|
// [TranslationWorkflowEvents.UPDATED]?: EventOptions |
|
1393
|
// [TranslationWorkflowEvents.DELETED]?: EventOptions |
|
1394
|
// } |
|
1395
|
// } |