docs: fix events payloads (#14131)

This commit is contained in:
Shahed Nasser
2025-11-26 16:12:00 +02:00
committed by GitHub
parent c1ede88a7e
commit c3cebdfe80
139 changed files with 1057 additions and 904 deletions
@@ -9823,9 +9823,9 @@ paths:
- name: product-collection.created
payload: |-
```ts
[{
{
id, // The ID of the product collection
}]
}
```
description: Emitted when product collections are created.
deprecated: false
@@ -10007,9 +10007,9 @@ paths:
- name: product-collection.updated
payload: |-
```ts
[{
{
id, // The ID of the product collection
}]
}
```
description: Emitted when product collections are updated.
deprecated: false
@@ -10078,9 +10078,9 @@ paths:
- name: product-collection.deleted
payload: |-
```ts
[{
{
id, // The ID of the product collection
}]
}
```
description: Emitted when product collections are deleted.
deprecated: false
@@ -15221,9 +15221,9 @@ paths:
- name: customer.created
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is created.
deprecated: false
@@ -15430,9 +15430,9 @@ paths:
- name: customer.updated
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is updated.
deprecated: false
@@ -15519,9 +15519,9 @@ paths:
- name: customer.deleted
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is deleted.
deprecated: false
@@ -25607,9 +25607,9 @@ paths:
- name: invite.created
payload: |-
```ts
[{
{
id, // The ID of the invite
}]
}
```
description: |-
Emitted when invites are created. You can listen to this event
@@ -25711,9 +25711,9 @@ paths:
- name: user.created
payload: |-
```ts
[{
{
id, // The ID of the user
}]
}
```
description: Emitted when users are created.
deprecated: false
@@ -25877,9 +25877,9 @@ paths:
- name: invite.deleted
payload: |-
```ts
[{
{
id, // The ID of the invite
}]
}
```
description: Emitted when invites are deleted.
deprecated: false
@@ -25957,9 +25957,9 @@ paths:
- name: invite.resent
payload: |-
```ts
[{
{
id, // The ID of the invite
}]
}
```
description: |-
Emitted when invites should be resent because their token was
@@ -27957,9 +27957,9 @@ paths:
- name: order.archived
payload: |-
```ts
[{
{
id, // The ID of the order
}]
}
```
description: Emitted when an order is archived.
deprecated: false
@@ -29022,9 +29022,9 @@ paths:
- name: order.completed
payload: |-
```ts
[{
{
id, // The ID of the order
}]
}
```
description: Emitted when orders are completed.
deprecated: false
@@ -33779,9 +33779,9 @@ paths:
- name: product-category.created
payload: |-
```ts
[{
{
id, // The ID of the product category
}]
}
```
description: Emitted when product categories are created.
deprecated: false
@@ -34820,9 +34820,9 @@ paths:
- name: product-category.updated
payload: |-
```ts
[{
{
id, // The ID of the product category
}]
}
```
description: Emitted when product categories are updated.
deprecated: false
@@ -34891,9 +34891,9 @@ paths:
- name: product-category.deleted
payload: |-
```ts
[{
{
id, // The ID of the product category
}]
}
```
description: Emitted when product categories are deleted.
deprecated: false
@@ -35588,9 +35588,9 @@ paths:
- name: product-tag.created
payload: |-
```ts
[{
{
id, // The ID of the product tag
}]
}
```
description: Emitted when product tags are created.
deprecated: false
@@ -35751,9 +35751,9 @@ paths:
- name: product-tag.updated
payload: |-
```ts
[{
{
id, // The ID of the product tag
}]
}
```
description: Emitted when product tags are updated.
deprecated: false
@@ -35822,9 +35822,9 @@ paths:
- name: product-tag.deleted
payload: |-
```ts
[{
{
id, // The ID of the product tag
}]
}
```
description: Emitted when product tags are deleted.
deprecated: false
@@ -36421,9 +36421,9 @@ paths:
- name: product-type.created
payload: |-
```ts
[{
{
id, // The ID of the product type
}]
}
```
description: Emitted when product types are created.
deprecated: false
@@ -36584,9 +36584,9 @@ paths:
- name: product-type.updated
payload: |-
```ts
[{
{
id, // The ID of the product type
}]
}
```
description: Emitted when product types are updated.
deprecated: false
@@ -36655,9 +36655,9 @@ paths:
- name: product-type.deleted
payload: |-
```ts
[{
{
id, // The ID of the product type
}]
}
```
description: Emitted when product types are deleted.
deprecated: false
@@ -38458,18 +38458,18 @@ paths:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product.created
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are created.
deprecated: false
@@ -38577,36 +38577,36 @@ paths:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product.updated
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are updated.
deprecated: false
- name: product.created
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are created.
deprecated: false
- name: product.deleted
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are deleted.
deprecated: false
@@ -39351,36 +39351,36 @@ paths:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product.updated
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are updated.
deprecated: false
- name: product.created
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are created.
deprecated: false
- name: product.deleted
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are deleted.
deprecated: false
@@ -39736,9 +39736,9 @@ paths:
- name: product.updated
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are updated.
deprecated: false
@@ -39807,9 +39807,9 @@ paths:
- name: product.deleted
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are deleted.
deprecated: false
@@ -40191,9 +40191,9 @@ paths:
- name: product-option.created
payload: |-
```ts
[{
{
id, // The ID of the product option
}]
}
```
description: Emitted when product options are created.
deprecated: false
@@ -40379,9 +40379,9 @@ paths:
- name: product-option.updated
payload: |-
```ts
[{
{
id, // The ID of the product option
}]
}
```
description: Emitted when product options are updated.
deprecated: false
@@ -40470,9 +40470,9 @@ paths:
- name: product-option.deleted
payload: |-
```ts
[{
{
id, // The ID of the product option
}]
}
```
description: Emitted when product options are deleted.
deprecated: false
@@ -41175,9 +41175,9 @@ paths:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
@@ -41280,27 +41280,27 @@ paths:
- name: product-variant.updated
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are updated.
deprecated: false
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product-variant.deleted
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are deleted.
deprecated: false
@@ -41645,9 +41645,9 @@ paths:
- name: product-variant.updated
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are updated.
deprecated: false
@@ -41733,9 +41733,9 @@ paths:
- name: product-variant.deleted
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are deleted.
deprecated: false
@@ -45412,9 +45412,9 @@ paths:
- name: region.created
payload: |-
```ts
[{
{
id, // The ID of the region
}]
}
```
description: Emitted when regions are created.
deprecated: false
@@ -45575,9 +45575,9 @@ paths:
- name: region.updated
payload: |-
```ts
[{
{
id, // The ID of the region
}]
}
```
description: Emitted when regions are updated.
deprecated: false
@@ -45665,9 +45665,9 @@ paths:
- name: region.deleted
payload: |-
```ts
[{
{
id, // The ID of the region
}]
}
```
description: Emitted when regions are deleted.
deprecated: false
@@ -52456,9 +52456,9 @@ paths:
- name: sales-channel.created
payload: |-
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
description: Emitted when sales channels are created.
deprecated: false
@@ -52623,9 +52623,9 @@ paths:
- name: sales-channel.updated
payload: |-
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
description: Emitted when sales channels are updated.
deprecated: false
@@ -52694,9 +52694,9 @@ paths:
- name: sales-channel.deleted
payload: |-
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
description: Emitted when sales channels are deleted.
deprecated: false
@@ -53402,9 +53402,9 @@ paths:
- name: shipping-option-type.created
payload: |-
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
description: Emitted when shipping option types are created.
deprecated: false
@@ -53570,9 +53570,9 @@ paths:
- name: shipping-option-type.updated
payload: |-
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
description: Emitted when shipping option types are updated.
deprecated: false
@@ -53644,9 +53644,9 @@ paths:
- name: shipping-option-type.deleted
payload: |-
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
description: Emitted when shipping option types are deleted.
deprecated: false
@@ -62249,9 +62249,9 @@ paths:
- name: user.updated
payload: |-
```ts
[{
{
id, // The ID of the user
}]
}
```
description: Emitted when users are updated.
deprecated: false
@@ -62317,9 +62317,9 @@ paths:
- name: user.deleted
payload: |-
```ts
[{
{
id, // The ID of the user
}]
}
```
description: Emitted when users are deleted.
deprecated: false
@@ -1078,9 +1078,9 @@ post:
- name: product-collection.created
payload: |-
```ts
[{
{
id, // The ID of the product collection
}]
}
```
description: Emitted when product collections are created.
deprecated: false
@@ -162,9 +162,9 @@ post:
- name: product-collection.updated
payload: |-
```ts
[{
{
id, // The ID of the product collection
}]
}
```
description: Emitted when product collections are updated.
deprecated: false
@@ -219,9 +219,9 @@ delete:
- name: product-collection.deleted
payload: |-
```ts
[{
{
id, // The ID of the product collection
}]
}
```
description: Emitted when product collections are deleted.
deprecated: false
@@ -4349,9 +4349,9 @@ post:
- name: customer.created
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is created.
deprecated: false
@@ -198,9 +198,9 @@ post:
- name: customer.updated
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is updated.
deprecated: false
@@ -273,9 +273,9 @@ delete:
- name: customer.deleted
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is deleted.
deprecated: false
@@ -685,9 +685,9 @@ post:
- name: invite.created
payload: |-
```ts
[{
{
id, // The ID of the invite
}]
}
```
description: |-
Emitted when invites are created. You can listen to this event
@@ -68,9 +68,9 @@ post:
- name: user.created
payload: |-
```ts
[{
{
id, // The ID of the user
}]
}
```
description: Emitted when users are created.
deprecated: false
@@ -134,9 +134,9 @@ delete:
- name: invite.deleted
payload: |-
```ts
[{
{
id, // The ID of the invite
}]
}
```
description: Emitted when invites are deleted.
deprecated: false
@@ -67,9 +67,9 @@ post:
- name: invite.resent
payload: |-
```ts
[{
{
id, // The ID of the invite
}]
}
```
description: >-
Emitted when invites should be resent because their token was
@@ -67,9 +67,9 @@ post:
- name: order.archived
payload: |-
```ts
[{
{
id, // The ID of the order
}]
}
```
description: Emitted when an order is archived.
deprecated: false
@@ -82,9 +82,9 @@ post:
- name: order.completed
payload: |-
```ts
[{
{
id, // The ID of the order
}]
}
```
description: Emitted when orders are completed.
deprecated: false
@@ -801,9 +801,9 @@ post:
- name: product-category.created
payload: |-
```ts
[{
{
id, // The ID of the product category
}]
}
```
description: Emitted when product categories are created.
deprecated: false
@@ -1206,9 +1206,9 @@ post:
- name: product-category.updated
payload: |-
```ts
[{
{
id, // The ID of the product category
}]
}
```
description: Emitted when product categories are updated.
deprecated: false
@@ -1263,9 +1263,9 @@ delete:
- name: product-category.deleted
payload: |-
```ts
[{
{
id, // The ID of the product category
}]
}
```
description: Emitted when product categories are deleted.
deprecated: false
@@ -642,9 +642,9 @@ post:
- name: product-tag.created
payload: |-
```ts
[{
{
id, // The ID of the product tag
}]
}
```
description: Emitted when product tags are created.
deprecated: false
@@ -138,9 +138,9 @@ post:
- name: product-tag.updated
payload: |-
```ts
[{
{
id, // The ID of the product tag
}]
}
```
description: Emitted when product tags are updated.
deprecated: false
@@ -195,9 +195,9 @@ delete:
- name: product-tag.deleted
payload: |-
```ts
[{
{
id, // The ID of the product tag
}]
}
```
description: Emitted when product tags are deleted.
deprecated: false
@@ -642,9 +642,9 @@ post:
- name: product-type.created
payload: |-
```ts
[{
{
id, // The ID of the product type
}]
}
```
description: Emitted when product types are created.
deprecated: false
@@ -138,9 +138,9 @@ post:
- name: product-type.updated
payload: |-
```ts
[{
{
id, // The ID of the product type
}]
}
```
description: Emitted when product types are updated.
deprecated: false
@@ -195,9 +195,9 @@ delete:
- name: product-type.deleted
payload: |-
```ts
[{
{
id, // The ID of the product type
}]
}
```
description: Emitted when product types are deleted.
deprecated: false
@@ -1368,18 +1368,18 @@ post:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product.created
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are created.
deprecated: false
@@ -66,36 +66,36 @@ post:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product.updated
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are updated.
deprecated: false
- name: product.created
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are created.
deprecated: false
- name: product.deleted
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are deleted.
deprecated: false
@@ -50,36 +50,36 @@ post:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product.updated
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are updated.
deprecated: false
- name: product.created
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are created.
deprecated: false
- name: product.deleted
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are deleted.
deprecated: false
@@ -149,9 +149,9 @@ post:
- name: product.updated
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are updated.
deprecated: false
@@ -206,9 +206,9 @@ delete:
- name: product.deleted
payload: |-
```ts
[{
{
id, // The ID of the product
}]
}
```
description: Emitted when products are deleted.
deprecated: false
@@ -285,9 +285,9 @@ post:
- name: product-option.created
payload: |-
```ts
[{
{
id, // The ID of the product option
}]
}
```
description: Emitted when product options are created.
deprecated: false
@@ -163,9 +163,9 @@ post:
- name: product-option.updated
payload: |-
```ts
[{
{
id, // The ID of the product option
}]
}
```
description: Emitted when product options are updated.
deprecated: false
@@ -250,9 +250,9 @@ delete:
- name: product-option.deleted
payload: |-
```ts
[{
{
id, // The ID of the product option
}]
}
```
description: Emitted when product options are deleted.
deprecated: false
@@ -746,9 +746,9 @@ post:
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
@@ -73,27 +73,27 @@ post:
- name: product-variant.updated
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are updated.
deprecated: false
- name: product-variant.created
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are created.
deprecated: false
- name: product-variant.deleted
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are deleted.
deprecated: false
@@ -164,9 +164,9 @@ post:
- name: product-variant.updated
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are updated.
deprecated: false
@@ -248,9 +248,9 @@ delete:
- name: product-variant.deleted
payload: |-
```ts
[{
{
id, // The ID of the product variant
}]
}
```
description: Emitted when product variants are deleted.
deprecated: false
@@ -687,9 +687,9 @@ post:
- name: region.created
payload: |-
```ts
[{
{
id, // The ID of the region
}]
}
```
description: Emitted when regions are created.
deprecated: false
@@ -138,9 +138,9 @@ post:
- name: region.updated
payload: |-
```ts
[{
{
id, // The ID of the region
}]
}
```
description: Emitted when regions are updated.
deprecated: false
@@ -214,9 +214,9 @@ delete:
- name: region.deleted
payload: |-
```ts
[{
{
id, // The ID of the region
}]
}
```
description: Emitted when regions are deleted.
deprecated: false
@@ -725,9 +725,9 @@ post:
- name: sales-channel.created
payload: |-
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
description: Emitted when sales channels are created.
deprecated: false
@@ -138,9 +138,9 @@ post:
- name: sales-channel.updated
payload: |-
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
description: Emitted when sales channels are updated.
deprecated: false
@@ -195,9 +195,9 @@ delete:
- name: sales-channel.deleted
payload: |-
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
description: Emitted when sales channels are deleted.
deprecated: false
@@ -674,9 +674,9 @@ post:
- name: shipping-option-type.created
payload: |-
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
description: Emitted when shipping option types are created.
deprecated: false
@@ -143,9 +143,9 @@ post:
- name: shipping-option-type.updated
payload: |-
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
description: Emitted when shipping option types are updated.
deprecated: false
@@ -203,9 +203,9 @@ delete:
- name: shipping-option-type.deleted
payload: |-
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
description: Emitted when shipping option types are deleted.
deprecated: false
@@ -136,9 +136,9 @@ post:
- name: user.updated
payload: |-
```ts
[{
{
id, // The ID of the user
}]
}
```
description: Emitted when users are updated.
deprecated: false
@@ -192,9 +192,9 @@ delete:
- name: user.deleted
payload: |-
```ts
[{
{
id, // The ID of the user
}]
}
```
description: Emitted when users are deleted.
deprecated: false
@@ -3411,9 +3411,9 @@ paths:
- name: customer.created
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is created.
deprecated: false
@@ -3598,9 +3598,9 @@ paths:
- name: customer.updated
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is updated.
deprecated: false
@@ -84,9 +84,9 @@ post:
- name: customer.created
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is created.
deprecated: false
@@ -161,9 +161,9 @@ post:
- name: customer.updated
payload: |-
```ts
[{
{
id, // The ID of the customer
}]
}
```
description: Emitted when a customer is updated.
deprecated: false
@@ -85,6 +85,39 @@ If you execute the workflow, the event is emitted and you can see it in your app
Any subscribers listening to the event are executed.
### Emit Event Multiple Times
You can also emit the event multiple times with `emitEventStep` by passing an array of objects to the `data` property. The event is emitted once per each object in the array.
For example:
```ts highlights={highlights}
import {
createWorkflow,
} from "@medusajs/framework/workflows-sdk"
import {
emitEventStep,
} from "@medusajs/medusa/core-flows"
const helloWorldWorkflow = createWorkflow(
"hello-world",
() => {
// ...
emitEventStep({
eventName: "custom.created",
data: [
{ id: "123" },
{ id: "456" },
{ id: "789" },
]
})
}
)
```
The event `custom.created` will be emitted three times, once per each object in the array passed to the `data` property. The subscriber listening to the event will be executed three times, each time receiving one of the objects in the array as the event's payload.
---
## Emit Event in a Service
+1 -1
View File
@@ -26,7 +26,7 @@ export const generatedEditDates = {
"app/learn/fundamentals/workflows/add-workflow-hook/page.mdx": "2025-07-18T11:33:15.959Z",
"app/learn/fundamentals/events-and-subscribers/data-payload/page.mdx": "2025-05-01T15:30:08.421Z",
"app/learn/fundamentals/workflows/advanced-example/page.mdx": "2024-09-11T10:46:59.975Z",
"app/learn/fundamentals/events-and-subscribers/emit-event/page.mdx": "2025-06-02T14:47:54.394Z",
"app/learn/fundamentals/events-and-subscribers/emit-event/page.mdx": "2025-11-26T13:00:24.625Z",
"app/learn/fundamentals/workflows/conditions/page.mdx": "2025-09-04T15:57:00.934Z",
"app/learn/fundamentals/modules/module-link-directions/page.mdx": "2024-07-24T09:16:01+02:00",
"app/learn/fundamentals/admin/page.mdx": "2025-07-25T12:46:15.466Z",
+187 -83
View File
@@ -13183,6 +13183,39 @@ If you execute the workflow, the event is emitted and you can see it in your app
Any subscribers listening to the event are executed.
### Emit Event Multiple Times
You can also emit the event multiple times with `emitEventStep` by passing an array of objects to the `data` property. The event is emitted once per each object in the array.
For example:
```ts highlights={highlights}
import {
createWorkflow,
} from "@medusajs/framework/workflows-sdk"
import {
emitEventStep,
} from "@medusajs/medusa/core-flows"
const helloWorldWorkflow = createWorkflow(
"hello-world",
() => {
// ...
emitEventStep({
eventName: "custom.created",
data: [
{ id: "123" },
{ id: "456" },
{ id: "789" },
]
})
}
)
```
The event `custom.created` will be emitted three times, once per each object in the array passed to the `data` property. The subscriber listening to the event will be executed three times, each time receiving one of the objects in the array as the event's payload.
***
## Emit Event in a Service
@@ -42988,6 +43021,77 @@ Avoid caching data that is updated frequently, such as inventory levels or order
Caching such data increases the overhead of cache invalidation and may lead to performance degradation.
# How to Clear Cached Data
In this guide, you'll learn how to clear cached data in Medusa.
## Why Clear Cache?
You should mainly cache data that isn't frequently changing, such as product details or categories. However, there are scenarios where you might need to clear the cache.
For example, if you've integrated a third-party system that updates product information outside of Medusa, or if you've cached data from the third-party system, Medusa won't be aware of these changes.
In such cases, clearing the cache ensures that Medusa fetches the most up-to-date information from the source rather than relying on outdated cached data.
***
## How to Clear Cache
This section explains how to clear data cached by the Caching Module in Medusa.
### Identify Cache Tags
Before clearing the cache, identify the specific cache tags associated with the data you want to clear.
When you cache entities with the [Query](https://docs.medusajs.com/docs/learn/fundamentals/module-links/query/index.html.md) or [Index Module](https://docs.medusajs.com/docs/learn/fundamentals/module-links/index-module/index.html.md), the Caching Module automatically generates tags based on the entity type and its ID:
- `Entity:id`: Cache tag for a single record of an entity. For example, `Product:prod_123` caches a single product with the ID `prod_123`.
- `Entity:list:*`: Cache tag for a list of records of an entity. For example, `Product:list:*` caches a list of products.
To clear the cache for a specific product, use the `Product:{id}` tag. To clear the cache for all products, use the `Product:list:*` tag.
Refer to the [Caching Module Concepts guide](https://docs.medusajs.com/Users/shahednasser/medusa/www/apps/resources/app/infrastructure-modules/caching/concepts#caching-tags-convention/index.html.md) to learn more about cache tags.
### Clear Cache with Caching Module Service
To clear cached data, use the [clear](https://docs.medusajs.com/references/caching-service#clear/index.html.md) method of the Caching Module's service. You can resolve the service in a workflow step, API route, subscriber, or scheduled job, then call the `clear` method with the identified cache tags.
For example, to clear the cache for specific products in a workflow step:
```ts
import { createStep, StepResponse } from "@medusajs/framework/workflows-sdk"
import { Modules } from "@medusajs/framework/utils"
type ClearProductCacheInput = {
productId: string | string[]
}
export const clearProductCacheStep = createStep(
"clear-product-cache",
async ({ productId }: ClearProductCacheInput, { container }) => {
const cachingModuleService = container.resolve(Modules.CACHING)
const productIds = Array.isArray(productId) ? productId : [productId]
// Clear cache for all specified products
for (const id of productIds) {
if (id) {
await cachingModuleService.clear({
tags: [`Product:${id}`],
})
}
}
return new StepResponse({})
}
)
```
In this example, the `clearProductCacheStep` step takes a `productId` (or an array of IDs) as input and clears the cache for each specified product using its cache tag.
You can then use this step in a workflow to clear the cache whenever necessary, such as after receiving a webhook from a third-party system indicating that product data has changed.
# Create Memcached Caching Module Provider
In this tutorial, you'll learn how to create a Memcached [Caching Module Provider](https://docs.medusajs.com/Users/shahednasser/medusa/www/apps/resources/app/infrastructure-modules/caching/providers/index.html.md) for your Medusa application.
@@ -45323,7 +45427,7 @@ For example:
### Workflow
```ts title="src/workflows/charge-customer.ts" highlights={workflowLockHighlights}
```ts title="src/workflows/charge-customer.ts"
import { createWorkflow } from "@medusajs/framework/workflows-sdk"
import { acquireLockStep, releaseLockStep } from "@medusajs/medusa/core-flows"
import { chargeCustomerStep } from "./steps/charge-customer-step"
@@ -47487,9 +47591,9 @@ Emitted when a customer is created.
#### Payload
```ts
[{
{
id, // The ID of the customer
}]
}
```
#### Workflows Emitting this Event
@@ -47508,9 +47612,9 @@ Emitted when a customer is updated.
#### Payload
```ts
[{
{
id, // The ID of the customer
}]
}
```
#### Workflows Emitting this Event
@@ -47528,9 +47632,9 @@ Emitted when a customer is deleted.
#### Payload
```ts
[{
{
id, // The ID of the customer
}]
}
```
#### Workflows Emitting this Event
@@ -47634,9 +47738,9 @@ to send an email to the invited users, for example.
#### Payload
```ts
[{
{
id, // The ID of the invite
}]
}
```
#### Workflows Emitting this Event
@@ -47654,9 +47758,9 @@ Emitted when invites are deleted.
#### Payload
```ts
[{
{
id, // The ID of the invite
}]
}
```
#### Workflows Emitting this Event
@@ -47676,9 +47780,9 @@ for example.
#### Payload
```ts
[{
{
id, // The ID of the invite
}]
}
```
#### Workflows Emitting this Event
@@ -47855,9 +47959,9 @@ Emitted when orders are completed.
#### Payload
```ts
[{
{
id, // The ID of the order
}]
}
```
#### Workflows Emitting this Event
@@ -47875,9 +47979,9 @@ Emitted when an order is archived.
#### Payload
```ts
[{
{
id, // The ID of the order
}]
}
```
#### Workflows Emitting this Event
@@ -48108,9 +48212,9 @@ Emitted when product categories are created.
#### Payload
```ts
[{
{
id, // The ID of the product category
}]
}
```
#### Workflows Emitting this Event
@@ -48128,9 +48232,9 @@ Emitted when product categories are updated.
#### Payload
```ts
[{
{
id, // The ID of the product category
}]
}
```
#### Workflows Emitting this Event
@@ -48148,9 +48252,9 @@ Emitted when product categories are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product category
}]
}
```
#### Workflows Emitting this Event
@@ -48178,9 +48282,9 @@ Emitted when product collections are created.
#### Payload
```ts
[{
{
id, // The ID of the product collection
}]
}
```
#### Workflows Emitting this Event
@@ -48198,9 +48302,9 @@ Emitted when product collections are updated.
#### Payload
```ts
[{
{
id, // The ID of the product collection
}]
}
```
#### Workflows Emitting this Event
@@ -48218,9 +48322,9 @@ Emitted when product collections are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product collection
}]
}
```
#### Workflows Emitting this Event
@@ -48248,9 +48352,9 @@ Emitted when product options are updated.
#### Payload
```ts
[{
{
id, // The ID of the product option
}]
}
```
#### Workflows Emitting this Event
@@ -48268,9 +48372,9 @@ Emitted when product options are created.
#### Payload
```ts
[{
{
id, // The ID of the product option
}]
}
```
#### Workflows Emitting this Event
@@ -48288,9 +48392,9 @@ Emitted when product options are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product option
}]
}
```
#### Workflows Emitting this Event
@@ -48318,9 +48422,9 @@ Emitted when product tags are updated.
#### Payload
```ts
[{
{
id, // The ID of the product tag
}]
}
```
#### Workflows Emitting this Event
@@ -48338,9 +48442,9 @@ Emitted when product tags are created.
#### Payload
```ts
[{
{
id, // The ID of the product tag
}]
}
```
#### Workflows Emitting this Event
@@ -48358,9 +48462,9 @@ Emitted when product tags are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product tag
}]
}
```
#### Workflows Emitting this Event
@@ -48388,9 +48492,9 @@ Emitted when product types are updated.
#### Payload
```ts
[{
{
id, // The ID of the product type
}]
}
```
#### Workflows Emitting this Event
@@ -48408,9 +48512,9 @@ Emitted when product types are created.
#### Payload
```ts
[{
{
id, // The ID of the product type
}]
}
```
#### Workflows Emitting this Event
@@ -48428,9 +48532,9 @@ Emitted when product types are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product type
}]
}
```
#### Workflows Emitting this Event
@@ -48458,9 +48562,9 @@ Emitted when product variants are updated.
#### Payload
```ts
[{
{
id, // The ID of the product variant
}]
}
```
#### Workflows Emitting this Event
@@ -48479,9 +48583,9 @@ Emitted when product variants are created.
#### Payload
```ts
[{
{
id, // The ID of the product variant
}]
}
```
#### Workflows Emitting this Event
@@ -48503,9 +48607,9 @@ Emitted when product variants are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product variant
}]
}
```
#### Workflows Emitting this Event
@@ -48534,9 +48638,9 @@ Emitted when products are updated.
#### Payload
```ts
[{
{
id, // The ID of the product
}]
}
```
#### Workflows Emitting this Event
@@ -48556,9 +48660,9 @@ Emitted when products are created.
#### Payload
```ts
[{
{
id, // The ID of the product
}]
}
```
#### Workflows Emitting this Event
@@ -48578,9 +48682,9 @@ Emitted when products are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product
}]
}
```
#### Workflows Emitting this Event
@@ -48610,9 +48714,9 @@ Emitted when regions are updated.
#### Payload
```ts
[{
{
id, // The ID of the region
}]
}
```
#### Workflows Emitting this Event
@@ -48630,9 +48734,9 @@ Emitted when regions are created.
#### Payload
```ts
[{
{
id, // The ID of the region
}]
}
```
#### Workflows Emitting this Event
@@ -48650,9 +48754,9 @@ Emitted when regions are deleted.
#### Payload
```ts
[{
{
id, // The ID of the region
}]
}
```
#### Workflows Emitting this Event
@@ -48680,9 +48784,9 @@ Emitted when sales channels are created.
#### Payload
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
#### Workflows Emitting this Event
@@ -48700,9 +48804,9 @@ Emitted when sales channels are updated.
#### Payload
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
#### Workflows Emitting this Event
@@ -48720,9 +48824,9 @@ Emitted when sales channels are deleted.
#### Payload
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
#### Workflows Emitting this Event
@@ -48750,9 +48854,9 @@ Emitted when shipping option types are updated.
#### Payload
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
#### Workflows Emitting this Event
@@ -48770,9 +48874,9 @@ Emitted when shipping option types are created.
#### Payload
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
#### Workflows Emitting this Event
@@ -48790,9 +48894,9 @@ Emitted when shipping option types are deleted.
#### Payload
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
#### Workflows Emitting this Event
@@ -48820,9 +48924,9 @@ Emitted when users are created.
#### Payload
```ts
[{
{
id, // The ID of the user
}]
}
```
#### Workflows Emitting this Event
@@ -48842,9 +48946,9 @@ Emitted when users are updated.
#### Payload
```ts
[{
{
id, // The ID of the user
}]
}
```
#### Workflows Emitting this Event
@@ -48862,9 +48966,9 @@ Emitted when users are deleted.
#### Payload
```ts
[{
{
id, // The ID of the user
}]
}
```
#### Workflows Emitting this Event
@@ -234,12 +234,12 @@ export default async function inviteCreatedHandler({
export const config: SubscriberConfig = {
event: [
"invite.created",
"invite.resend",
"invite.resent",
],
}
```
This subscriber listens for the `invite.created` and `invite.resend` events. When triggered, it:
This subscriber listens for the `invite.created` and `invite.resent` events. When triggered, it:
1. Retrieves the store name and invite details.
2. Constructs the invite URL. Invites to the admin dashboard are at the `/admin/invite` path and include the invite token as a `token` query parameter.
+51 -51
View File
@@ -722,33 +722,33 @@ export const generatedEditDates = {
"references/core_flows/Cart/Steps_Cart/functions/core_flows.Cart.Steps_Cart.validateCartShippingOptionsStep/page.mdx": "2025-09-18T17:04:38.450Z",
"references/core_flows/Cart/Workflows_Cart/functions/core_flows.Cart.Workflows_Cart.validateExistingPaymentCollectionStep/page.mdx": "2025-05-20T07:51:40.757Z",
"references/core_flows/Customer/Steps_Customer/functions/core_flows.Customer.Steps_Customer.createCustomersStep/page.mdx": "2025-05-20T07:51:40.758Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.createCustomerAccountWorkflow/page.mdx": "2025-11-05T12:22:17.723Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.createCustomersWorkflow/page.mdx": "2025-11-05T12:22:17.730Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.deleteCustomersWorkflow/page.mdx": "2025-11-05T12:22:17.739Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.updateCustomersWorkflow/page.mdx": "2025-11-05T12:22:17.768Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.createCustomerAccountWorkflow/page.mdx": "2025-11-26T13:22:42.056Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.createCustomersWorkflow/page.mdx": "2025-11-26T13:22:51.530Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.deleteCustomersWorkflow/page.mdx": "2025-11-26T13:23:00.421Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.updateCustomersWorkflow/page.mdx": "2025-11-26T13:23:13.743Z",
"references/core_flows/Customer/core_flows.Customer.Steps_Customer/page.mdx": "2024-12-23T12:30:23.718Z",
"references/core_flows/Customer/core_flows.Customer.Workflows_Customer/page.mdx": "2024-12-23T12:30:23.763Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.acceptInviteWorkflow/page.mdx": "2025-11-05T12:22:18.586Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.createInvitesWorkflow/page.mdx": "2025-11-05T12:22:18.591Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.deleteInvitesWorkflow/page.mdx": "2025-11-05T12:22:18.595Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.acceptInviteWorkflow/page.mdx": "2025-11-26T13:27:11.147Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.createInvitesWorkflow/page.mdx": "2025-11-26T13:27:15.235Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.deleteInvitesWorkflow/page.mdx": "2025-11-26T13:27:18.869Z",
"references/core_flows/Invite/core_flows.Invite.Workflows_Invite/page.mdx": "2024-12-23T12:30:24.034Z",
"references/core_flows/Line_Item/Steps_Line_Item/functions/core_flows.Line_Item.Steps_Line_Item.listLineItemsStep/page.mdx": "2025-06-25T10:11:29.536Z",
"references/core_flows/Line_Item/Steps_Line_Item/functions/core_flows.Line_Item.Steps_Line_Item.updateLineItemsStepWithSelector/page.mdx": "2025-06-25T10:11:29.566Z",
"references/core_flows/Line_Item/core_flows.Line_Item.Steps_Line_Item/page.mdx": "2024-12-23T12:30:24.048Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductsWorkflow/page.mdx": "2025-11-05T12:22:20.844Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductsWorkflow/page.mdx": "2025-11-26T13:31:58.341Z",
"references/core_flows/Product/core_flows.Product.Workflows_Product/page.mdx": "2025-05-22T12:22:27.103Z",
"references/core_flows/Region/Workflows_Region/functions/core_flows.Region.Workflows_Region.createRegionsWorkflow/page.mdx": "2025-11-05T12:22:21.050Z",
"references/core_flows/Region/Workflows_Region/functions/core_flows.Region.Workflows_Region.deleteRegionsWorkflow/page.mdx": "2025-11-05T12:22:21.053Z",
"references/core_flows/Region/Workflows_Region/functions/core_flows.Region.Workflows_Region.updateRegionsWorkflow/page.mdx": "2025-11-05T12:22:21.060Z",
"references/core_flows/Region/Workflows_Region/functions/core_flows.Region.Workflows_Region.createRegionsWorkflow/page.mdx": "2025-11-26T13:32:45.974Z",
"references/core_flows/Region/Workflows_Region/functions/core_flows.Region.Workflows_Region.deleteRegionsWorkflow/page.mdx": "2025-11-26T13:32:49.399Z",
"references/core_flows/Region/Workflows_Region/functions/core_flows.Region.Workflows_Region.updateRegionsWorkflow/page.mdx": "2025-11-26T13:32:53.350Z",
"references/core_flows/Region/core_flows.Region.Workflows_Region/page.mdx": "2024-12-23T12:30:26.377Z",
"references/core_flows/Sales_Channel/Workflows_Sales_Channel/functions/core_flows.Sales_Channel.Workflows_Sales_Channel.createSalesChannelsWorkflow/page.mdx": "2025-11-05T12:22:21.182Z",
"references/core_flows/Sales_Channel/Workflows_Sales_Channel/functions/core_flows.Sales_Channel.Workflows_Sales_Channel.deleteSalesChannelsWorkflow/page.mdx": "2025-11-05T12:22:21.186Z",
"references/core_flows/Sales_Channel/Workflows_Sales_Channel/functions/core_flows.Sales_Channel.Workflows_Sales_Channel.updateSalesChannelsWorkflow/page.mdx": "2025-11-05T12:22:21.190Z",
"references/core_flows/Sales_Channel/Workflows_Sales_Channel/functions/core_flows.Sales_Channel.Workflows_Sales_Channel.createSalesChannelsWorkflow/page.mdx": "2025-11-26T13:33:07.127Z",
"references/core_flows/Sales_Channel/Workflows_Sales_Channel/functions/core_flows.Sales_Channel.Workflows_Sales_Channel.deleteSalesChannelsWorkflow/page.mdx": "2025-11-26T13:33:10.589Z",
"references/core_flows/Sales_Channel/Workflows_Sales_Channel/functions/core_flows.Sales_Channel.Workflows_Sales_Channel.updateSalesChannelsWorkflow/page.mdx": "2025-11-26T13:33:17.484Z",
"references/core_flows/Sales_Channel/core_flows.Sales_Channel.Workflows_Sales_Channel/page.mdx": "2024-12-23T12:30:26.435Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.createUserAccountWorkflow/page.mdx": "2025-11-05T12:22:21.487Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.createUsersWorkflow/page.mdx": "2025-11-05T12:22:21.492Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.deleteUsersWorkflow/page.mdx": "2025-11-05T12:22:21.497Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.updateUsersWorkflow/page.mdx": "2025-11-05T12:22:21.506Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.createUserAccountWorkflow/page.mdx": "2025-11-26T13:34:01.773Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.createUsersWorkflow/page.mdx": "2025-11-26T13:34:04.965Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.deleteUsersWorkflow/page.mdx": "2025-11-26T13:34:08.131Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.updateUsersWorkflow/page.mdx": "2025-11-26T13:34:16.136Z",
"references/core_flows/User/core_flows.User.Workflows_User/page.mdx": "2024-12-23T12:30:26.574Z",
"references/core_flows/core_flows.Steps_Customer/page.mdx": "2024-12-09T13:21:38.061Z",
"references/core_flows/core_flows.Steps_Line_Item/page.mdx": "2024-12-09T13:21:39.005Z",
@@ -789,7 +789,7 @@ export const generatedEditDates = {
"references/core_flows/Order/Steps_Order/functions/core_flows.Order.Steps_Order.completeOrdersStep/page.mdx": "2025-09-12T14:10:31.641Z",
"references/core_flows/Order/Steps_Order/functions/core_flows.Order.Steps_Order.createOrdersStep/page.mdx": "2025-09-12T14:10:31.677Z",
"references/core_flows/Order/Steps_Order/functions/core_flows.Order.Steps_Order.setOrderTaxLinesForItemsStep/page.mdx": "2025-10-25T20:13:59.110Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.archiveOrderWorkflow/page.mdx": "2025-11-05T12:22:18.941Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.archiveOrderWorkflow/page.mdx": "2025-11-26T13:27:40.080Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.beginClaimOrderValidationStep/page.mdx": "2025-09-12T14:10:31.862Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.beginOrderEditValidationStep/page.mdx": "2025-09-12T14:10:32.464Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.beginOrderExchangeValidationStep/page.mdx": "2025-09-12T14:10:32.256Z",
@@ -797,7 +797,7 @@ export const generatedEditDates = {
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.beginReturnOrderValidationStep/page.mdx": "2025-09-12T14:10:32.666Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.cancelReturnValidateOrder/page.mdx": "2025-05-20T07:51:40.797Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.cancelValidateOrder/page.mdx": "2025-09-12T14:10:31.855Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.completeOrderWorkflow/page.mdx": "2025-11-05T12:22:19.220Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.completeOrderWorkflow/page.mdx": "2025-11-26T13:28:10.022Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.createFulfillmentValidateOrder/page.mdx": "2025-09-12T14:10:32.119Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.createShipmentValidateOrder/page.mdx": "2025-09-12T14:10:32.225Z",
"references/core_flows/Payment/Workflows_Payment/functions/core_flows.Payment.Workflows_Payment.refundPaymentWorkflow/page.mdx": "2025-11-05T12:22:20.225Z",
@@ -838,7 +838,7 @@ export const generatedEditDates = {
"references/auth/IAuthModuleService/methods/auth.IAuthModuleService.validateCallback/page.mdx": "2025-01-07T12:54:18.948Z",
"references/auth/interfaces/auth.AuthenticationResponse/page.mdx": "2024-12-09T13:21:36.233Z",
"references/auth_provider/classes/auth_provider.AbstractAuthModuleProvider/page.mdx": "2025-10-15T15:45:41.565Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.refreshInviteTokensWorkflow/page.mdx": "2025-11-05T12:22:18.600Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.refreshInviteTokensWorkflow/page.mdx": "2025-11-26T13:27:23.092Z",
"references/types/CommonTypes/types/types.CommonTypes.BatchMethodResponse/page.mdx": "2024-12-09T13:21:32.849Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminAddReturnShipping/page.mdx": "2025-04-11T09:04:47.540Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminClaimAddInboundShipping/page.mdx": "2024-12-09T13:21:33.433Z",
@@ -948,13 +948,13 @@ export const generatedEditDates = {
"references/api_key/types/api_key.Query/page.mdx": "2024-09-17T00:10:59.563Z",
"references/api_key/types/api_key.ReadonlyPrimary/page.mdx": "2024-09-17T00:10:59.567Z",
"references/api_key/types/api_key.Scalar/page.mdx": "2024-09-17T00:10:59.567Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.removeCustomerAccountWorkflow/page.mdx": "2025-11-05T12:22:17.747Z",
"references/core_flows/Customer/Workflows_Customer/functions/core_flows.Customer.Workflows_Customer.removeCustomerAccountWorkflow/page.mdx": "2025-11-26T13:23:07.158Z",
"references/core_flows/Fulfillment/Workflows_Fulfillment/functions/core_flows.Fulfillment.Workflows_Fulfillment.markFulfillmentAsDeliveredWorkflow/page.mdx": "2025-11-05T12:22:18.427Z",
"references/core_flows/Fulfillment/Workflows_Fulfillment/functions/core_flows.Fulfillment.Workflows_Fulfillment.validateFulfillmentDeliverabilityStep/page.mdx": "2025-05-20T07:51:40.773Z",
"references/core_flows/Inventory/Workflows_Inventory/functions/core_flows.Inventory.Workflows_Inventory.validateInventoryLevelsDelete/page.mdx": "2025-01-20T08:25:20.641Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.markOrderFulfillmentAsDeliveredWorkflow/page.mdx": "2025-11-05T12:22:19.547Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.orderFulfillmentDeliverablilityValidationStep/page.mdx": "2025-09-12T14:10:32.447Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.removeUserAccountWorkflow/page.mdx": "2025-11-05T12:22:21.502Z",
"references/core_flows/User/Workflows_User/functions/core_flows.User.Workflows_User.removeUserAccountWorkflow/page.mdx": "2025-11-26T13:34:11.284Z",
"references/core_flows/types/core_flows.RemoveCustomerAccountWorkflowInput/page.mdx": "2024-12-09T13:21:50.344Z",
"references/core_flows/types/core_flows.RemoveUserAccountWorkflowInput/page.mdx": "2024-12-09T13:21:55.016Z",
"references/customer/ICustomerModuleService/methods/customer.ICustomerModuleService.createCustomerAddresses/page.mdx": "2025-10-21T08:10:43.818Z",
@@ -1067,23 +1067,23 @@ export const generatedEditDates = {
"references/core_flows/Order/Steps_Order/functions/core_flows.Order.Steps_Order.updateReturnsStep/page.mdx": "2025-11-05T12:22:18.872Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.addOrderLineItemsWorkflow/page.mdx": "2025-11-05T12:22:18.925Z",
"references/core_flows/Order/Workflows_Order/functions/core_flows.Order.Workflows_Order.cancelOrderWorkflow/page.mdx": "2025-11-05T12:22:18.961Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createCollectionsWorkflow/page.mdx": "2025-11-05T12:22:20.679Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductOptionsWorkflow/page.mdx": "2025-11-05T12:22:20.687Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductTagsWorkflow/page.mdx": "2025-11-05T12:22:20.694Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductTypesWorkflow/page.mdx": "2025-11-05T12:22:20.699Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductVariantsWorkflow/page.mdx": "2025-11-05T12:22:20.713Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductsWorkflow/page.mdx": "2025-11-05T12:22:20.727Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteCollectionsWorkflow/page.mdx": "2025-11-05T12:22:20.732Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductOptionsWorkflow/page.mdx": "2025-11-05T12:22:20.736Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductTagsWorkflow/page.mdx": "2025-11-05T12:22:20.749Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductTypesWorkflow/page.mdx": "2025-11-05T12:22:20.743Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductVariantsWorkflow/page.mdx": "2025-11-05T12:22:20.755Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductsWorkflow/page.mdx": "2025-11-05T12:22:20.760Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateCollectionsWorkflow/page.mdx": "2025-11-05T12:22:20.768Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductOptionsWorkflow/page.mdx": "2025-11-05T12:22:20.776Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductTagsWorkflow/page.mdx": "2025-11-05T12:22:20.793Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductTypesWorkflow/page.mdx": "2025-11-05T12:22:20.782Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductVariantsWorkflow/page.mdx": "2025-11-05T12:22:20.806Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createCollectionsWorkflow/page.mdx": "2025-11-26T13:30:35.963Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductOptionsWorkflow/page.mdx": "2025-11-26T13:30:41.294Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductTagsWorkflow/page.mdx": "2025-11-26T13:30:55.232Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductTypesWorkflow/page.mdx": "2025-11-26T13:31:03.783Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductVariantsWorkflow/page.mdx": "2025-11-26T13:31:07.686Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.createProductsWorkflow/page.mdx": "2025-11-26T13:30:47.577Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteCollectionsWorkflow/page.mdx": "2025-11-26T13:31:14.197Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductOptionsWorkflow/page.mdx": "2025-11-26T13:31:19.594Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductTagsWorkflow/page.mdx": "2025-11-26T13:31:27.377Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductTypesWorkflow/page.mdx": "2025-11-26T13:31:30.668Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductVariantsWorkflow/page.mdx": "2025-11-26T13:31:34.725Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.deleteProductsWorkflow/page.mdx": "2025-11-26T13:31:23.454Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateCollectionsWorkflow/page.mdx": "2025-11-26T13:31:47.094Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductOptionsWorkflow/page.mdx": "2025-11-26T13:31:51.289Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductTagsWorkflow/page.mdx": "2025-11-26T13:32:02.117Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductTypesWorkflow/page.mdx": "2025-11-26T13:32:06.661Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.updateProductVariantsWorkflow/page.mdx": "2025-11-26T13:32:10.695Z",
"references/core_flows/Promotion/Workflows_Promotion/functions/core_flows.Promotion.Workflows_Promotion.createCampaignsWorkflow/page.mdx": "2025-11-05T12:22:20.972Z",
"references/core_flows/Promotion/Workflows_Promotion/functions/core_flows.Promotion.Workflows_Promotion.createPromotionsWorkflow/page.mdx": "2025-11-05T12:22:20.987Z",
"references/core_flows/Promotion/Workflows_Promotion/functions/core_flows.Promotion.Workflows_Promotion.deleteCampaignsWorkflow/page.mdx": "2025-11-05T12:22:20.991Z",
@@ -1669,7 +1669,7 @@ export const generatedEditDates = {
"references/medusa/types/medusa.MedusaRequestHandler/page.mdx": "2025-10-21T08:10:52.824Z",
"references/medusa/types/medusa.SubscriberArgs/page.mdx": "2025-05-22T12:22:40.885Z",
"references/workflows/types/workflows.ReturnWorkflow/page.mdx": "2025-09-12T14:10:46.930Z",
"references/core_flows/Common/Steps_Common/functions/core_flows.Common.Steps_Common.emitEventStep/page.mdx": "2025-01-13T17:30:23.152Z",
"references/core_flows/Common/Steps_Common/functions/core_flows.Common.Steps_Common.emitEventStep/page.mdx": "2025-11-26T13:20:37.801Z",
"references/core_flows/Common/Steps_Common/functions/core_flows.Common.Steps_Common.removeRemoteLinkStep/page.mdx": "2025-01-13T17:30:23.154Z",
"references/dml/Model_Methods/methods/dml.Model_Methods.indexes/page.mdx": "2024-12-10T14:55:08.596Z",
"references/dml/Property_Configuration_Methods/methods/dml.Property_Configuration_Methods.default/page.mdx": "2024-12-10T14:55:08.599Z",
@@ -1878,17 +1878,17 @@ export const generatedEditDates = {
"references/core_flows/Product/Steps_Product/functions/core_flows.Product.Steps_Product.waitConfirmationProductImportStep/page.mdx": "2025-01-13T17:30:25.739Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.batchLinkProductsToCategoryWorkflow/page.mdx": "2025-11-05T12:22:20.657Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.batchLinkProductsToCollectionWorkflow/page.mdx": "2025-11-05T12:22:20.643Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.batchProductVariantsWorkflow/page.mdx": "2025-11-05T12:22:20.653Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.batchProductsWorkflow/page.mdx": "2025-11-05T12:22:20.664Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.batchProductVariantsWorkflow/page.mdx": "2025-11-26T13:30:27.755Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.batchProductsWorkflow/page.mdx": "2025-11-26T13:30:20.881Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.exportProductsWorkflow/page.mdx": "2025-11-05T12:22:20.814Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.importProductsWorkflow/page.mdx": "2025-11-05T12:22:20.827Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.importProductsWorkflow/page.mdx": "2025-11-26T13:31:42.738Z",
"references/core_flows/Product/Workflows_Product/functions/core_flows.Product.Workflows_Product.upsertVariantPricesWorkflow/page.mdx": "2025-11-05T12:22:20.849Z",
"references/core_flows/Product_Category/Steps_Product_Category/functions/core_flows.Product_Category.Steps_Product_Category.createProductCategoriesStep/page.mdx": "2025-10-31T09:41:23.647Z",
"references/core_flows/Product_Category/Steps_Product_Category/functions/core_flows.Product_Category.Steps_Product_Category.deleteProductCategoriesStep/page.mdx": "2025-01-13T17:30:25.836Z",
"references/core_flows/Product_Category/Steps_Product_Category/functions/core_flows.Product_Category.Steps_Product_Category.updateProductCategoriesStep/page.mdx": "2025-10-31T09:41:23.660Z",
"references/core_flows/Product_Category/Workflows_Product_Category/functions/core_flows.Product_Category.Workflows_Product_Category.createProductCategoriesWorkflow/page.mdx": "2025-11-05T12:22:20.888Z",
"references/core_flows/Product_Category/Workflows_Product_Category/functions/core_flows.Product_Category.Workflows_Product_Category.deleteProductCategoriesWorkflow/page.mdx": "2025-11-05T12:22:20.896Z",
"references/core_flows/Product_Category/Workflows_Product_Category/functions/core_flows.Product_Category.Workflows_Product_Category.updateProductCategoriesWorkflow/page.mdx": "2025-11-05T12:22:20.907Z",
"references/core_flows/Product_Category/Workflows_Product_Category/functions/core_flows.Product_Category.Workflows_Product_Category.createProductCategoriesWorkflow/page.mdx": "2025-11-26T13:32:19.484Z",
"references/core_flows/Product_Category/Workflows_Product_Category/functions/core_flows.Product_Category.Workflows_Product_Category.deleteProductCategoriesWorkflow/page.mdx": "2025-11-26T13:32:22.976Z",
"references/core_flows/Product_Category/Workflows_Product_Category/functions/core_flows.Product_Category.Workflows_Product_Category.updateProductCategoriesWorkflow/page.mdx": "2025-11-26T13:32:26.429Z",
"references/core_flows/Promotion/Steps_Promotion/functions/core_flows.Promotion.Steps_Promotion.addCampaignPromotionsStep/page.mdx": "2025-02-11T11:36:44.164Z",
"references/core_flows/Promotion/Steps_Promotion/functions/core_flows.Promotion.Steps_Promotion.createCampaignsStep/page.mdx": "2025-10-21T08:10:40.071Z",
"references/core_flows/Promotion/Steps_Promotion/functions/core_flows.Promotion.Steps_Promotion.createPromotionsStep/page.mdx": "2025-10-21T08:10:40.076Z",
@@ -6189,7 +6189,7 @@ export const generatedEditDates = {
"app/commerce-modules/product/guides/variant-inventory/page.mdx": "2025-04-25T14:22:42.329Z",
"app/troubleshooting/validation-error/page.mdx": "2025-04-25T14:14:57.568Z",
"app/integrations/guides/contentful/page.mdx": "2025-10-31T16:38:10.351Z",
"references/modules/events/page.mdx": "2025-06-27T07:31:07.646Z",
"references/modules/events/page.mdx": "2025-11-26T13:20:45.710Z",
"references/module_events/module_events.Auth/page.mdx": "2025-05-20T07:51:40.956Z",
"references/module_events/module_events.Cart/page.mdx": "2025-05-20T07:51:40.956Z",
"references/module_events/module_events.Customer/page.mdx": "2025-05-20T07:51:40.956Z",
@@ -6590,9 +6590,9 @@ export const generatedEditDates = {
"references/core_flows/Settings/Steps_Settings/functions/core_flows.Settings.Steps_Settings.setActiveViewConfigurationStep/page.mdx": "2025-11-05T12:22:21.204Z",
"references/core_flows/Settings/Steps_Settings/functions/core_flows.Settings.Steps_Settings.updateViewConfigurationStep/page.mdx": "2025-11-05T12:22:21.200Z",
"references/core_flows/Settings/Workflows_Settings/functions/core_flows.Settings.Workflows_Settings.updateViewConfigurationWorkflow/page.mdx": "2025-11-05T12:22:21.218Z",
"references/core_flows/Shipping_Options/Workflows_Shipping_Options/functions/core_flows.Shipping_Options.Workflows_Shipping_Options.createShippingOptionTypesWorkflow/page.mdx": "2025-11-05T12:22:21.259Z",
"references/core_flows/Shipping_Options/Workflows_Shipping_Options/functions/core_flows.Shipping_Options.Workflows_Shipping_Options.deleteShippingOptionTypesWorkflow/page.mdx": "2025-11-05T12:22:21.263Z",
"references/core_flows/Shipping_Options/Workflows_Shipping_Options/functions/core_flows.Shipping_Options.Workflows_Shipping_Options.updateShippingOptionTypesWorkflow/page.mdx": "2025-11-05T12:22:21.273Z",
"references/core_flows/Shipping_Options/Workflows_Shipping_Options/functions/core_flows.Shipping_Options.Workflows_Shipping_Options.createShippingOptionTypesWorkflow/page.mdx": "2025-11-26T13:33:27.103Z",
"references/core_flows/Shipping_Options/Workflows_Shipping_Options/functions/core_flows.Shipping_Options.Workflows_Shipping_Options.deleteShippingOptionTypesWorkflow/page.mdx": "2025-11-26T13:33:30.400Z",
"references/core_flows/Shipping_Options/Workflows_Shipping_Options/functions/core_flows.Shipping_Options.Workflows_Shipping_Options.updateShippingOptionTypesWorkflow/page.mdx": "2025-11-26T13:33:35.068Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminCreateViewConfiguration/page.mdx": "2025-09-12T14:10:40.836Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminUpdateViewConfiguration/page.mdx": "2025-09-12T14:10:40.837Z",
"references/core_flows/Locking/Steps_Locking/functions/core_flows.Locking.Steps_Locking.acquireLockStep/page.mdx": "2025-09-15T09:52:14.219Z",
@@ -20,6 +20,8 @@ If the workflow fails, it won't emit the event at all.
## Example
To emit a single event with a data payload:
```ts
emitEventStep({
eventName: "custom.created",
@@ -29,6 +31,20 @@ emitEventStep({
})
```
To emit an event multiple times with different data payloads, pass an array of objects to the `data` property:
```ts
emitEventStep({
eventName: "custom.created",
data: [
// emit will be emitted three times, once per each object in the array
{ id: "123" },
{ id: "456" },
{ id: "789" }
]
})
```
## Input
<TypeList types={[{"name":"Input","type":"`Input`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" openedLevel={1} sectionTitle="emitEventStep"/>
@@ -202,18 +202,18 @@ Emitted when a customer is created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the customer
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "customer.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -234,18 +234,18 @@ Emitted when a customer is created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the customer
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "customer.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -210,18 +210,18 @@ Emitted when a customer is deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the customer
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "customer.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -187,18 +187,18 @@ Emitted when a customer is deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the customer
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "customer.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -228,18 +228,18 @@ Emitted when a customer is updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the customer
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "customer.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -207,18 +207,18 @@ Emitted when users are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the user
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "user.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -187,18 +187,18 @@ to send an email to the invited users, for example.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the invite
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "invite.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the invite
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -174,18 +174,18 @@ Emitted when invites are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the invite
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "invite.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the invite
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -184,18 +184,18 @@ for example.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the invite
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "invite.resent",
payload: `\`\`\`ts
[{
{
id, // The ID of the invite
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -177,18 +177,18 @@ Emitted when an order is archived.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the order
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "order.archived",
payload: `\`\`\`ts
[{
{
id, // The ID of the order
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -219,18 +219,18 @@ Emitted when orders are completed.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the order
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "order.completed",
payload: `\`\`\`ts
[{
{
id, // The ID of the order
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -243,18 +243,18 @@ Emitted when product variants are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -268,18 +268,18 @@ Emitted when product variants are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -293,18 +293,18 @@ Emitted when product variants are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -256,18 +256,18 @@ Emitted when product variants are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -281,18 +281,18 @@ Emitted when products are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -306,18 +306,18 @@ Emitted when products are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -331,18 +331,18 @@ Emitted when products are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -228,18 +228,18 @@ Emitted when product collections are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product collection
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-collection.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product collection
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -251,18 +251,18 @@ Emitted when product options are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product option
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-option.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product option
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -228,18 +228,18 @@ Emitted when product tags are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product tag
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-tag.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product tag
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -228,18 +228,18 @@ Emitted when product types are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product type
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-type.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product type
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -274,18 +274,18 @@ Emitted when product variants are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -306,18 +306,18 @@ Emitted when product variants are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -331,18 +331,18 @@ Emitted when products are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -205,18 +205,18 @@ Emitted when product collections are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product collection
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-collection.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product collection
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -205,18 +205,18 @@ Emitted when product options are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product option
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-option.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product option
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -204,18 +204,18 @@ Emitted when product tags are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product tag
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-tag.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product tag
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -205,18 +205,18 @@ Emitted when product types are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product type
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-type.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product type
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -207,18 +207,18 @@ Emitted when product variants are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -207,18 +207,18 @@ Emitted when products are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -240,18 +240,18 @@ Emitted when product variants are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -265,18 +265,18 @@ Emitted when products are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -290,18 +290,18 @@ Emitted when products are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -315,18 +315,18 @@ Emitted when products are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -240,18 +240,18 @@ Emitted when product collections are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product collection
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-collection.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product collection
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -239,18 +239,18 @@ Emitted when product options are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product option
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-option.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product option
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -240,18 +240,18 @@ Emitted when product tags are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product tag
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-tag.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product tag
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -240,18 +240,18 @@ Emitted when product types are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product type
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-type.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product type
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -422,18 +422,18 @@ Emitted when product variants are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product variant
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-variant.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -420,18 +420,18 @@ Emitted when products are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -214,18 +214,18 @@ Emitted when product categories are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product category
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-category.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the product category
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -195,18 +195,18 @@ Emitted when product categories are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product category
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-category.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the product category
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -226,18 +226,18 @@ Emitted when product categories are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the product category
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "product-category.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the product category
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -198,18 +198,18 @@ Emitted when regions are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the region
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "region.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the region
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -175,18 +175,18 @@ Emitted when regions are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the region
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "region.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the region
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -202,18 +202,18 @@ Emitted when regions are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the region
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "region.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the region
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -186,18 +186,18 @@ Emitted when sales channels are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the sales channel
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "sales-channel.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the sales channel
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -175,18 +175,18 @@ Emitted when sales channels are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the sales channel
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "sales-channel.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the sales channel
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -198,18 +198,18 @@ Emitted when sales channels are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the sales channel
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "sales-channel.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the sales channel
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -245,18 +245,18 @@ Emitted when shipping option types are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the shipping option type
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "shipping-option-type.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the shipping option type
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -214,18 +214,18 @@ Emitted when shipping option types are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the shipping option type
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "shipping-option-type.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the shipping option type
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -249,18 +249,18 @@ Emitted when shipping option types are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the shipping option type
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "shipping-option-type.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the shipping option type
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -201,18 +201,18 @@ Emitted when users are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the user
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "user.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -198,18 +198,18 @@ Emitted when users are created.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the user
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "user.created",
payload: `\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -178,18 +178,18 @@ Emitted when users are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the user
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "user.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -181,18 +181,18 @@ Emitted when users are deleted.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the user
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "user.deleted",
payload: `\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -190,18 +190,18 @@ Emitted when users are updated.
</Table.Cell>
<Table.Cell>
```ts blockStyle="inline"
[{
{
id, // The ID of the user
}]
}
```
</Table.Cell>
<Table.Cell>
<CopyGeneratedSnippetButton tooltipText="Copy subscriber for event" type="subscriber" options={{
event: "user.updated",
payload: `\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``
}}/>
</Table.Cell>
@@ -269,9 +269,9 @@ Emitted when a customer is deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "customercreated", children: (<>customer.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="customer.created" payload={`\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``} />
Emitted when a customer is created.
@@ -279,9 +279,9 @@ Emitted when a customer is created.
#### Payload
```ts
[{
{
id, // The ID of the customer
}]
}
```
#### Workflows Emitting this Event
@@ -294,9 +294,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "customerupdated", children: (<>customer.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="customer.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``} />
Emitted when a customer is updated.
@@ -304,9 +304,9 @@ Emitted when a customer is updated.
#### Payload
```ts
[{
{
id, // The ID of the customer
}]
}
```
#### Workflows Emitting this Event
@@ -318,9 +318,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "customerdeleted", children: (<>customer.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="customer.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the customer
}]
}
\`\`\``} />
Emitted when a customer is deleted.
@@ -328,9 +328,9 @@ Emitted when a customer is deleted.
#### Payload
```ts
[{
{
id, // The ID of the customer
}]
}
```
#### Workflows Emitting this Event
@@ -506,9 +506,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "invitecreated", children: (<>invite.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="invite.created" payload={`\`\`\`ts
[{
{
id, // The ID of the invite
}]
}
\`\`\``} />
Emitted when invites are created. You can listen to this event
@@ -517,9 +517,9 @@ to send an email to the invited users, for example.
#### Payload
```ts
[{
{
id, // The ID of the invite
}]
}
```
#### Workflows Emitting this Event
@@ -531,9 +531,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "invitedeleted", children: (<>invite.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="invite.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the invite
}]
}
\`\`\``} />
Emitted when invites are deleted.
@@ -541,9 +541,9 @@ Emitted when invites are deleted.
#### Payload
```ts
[{
{
id, // The ID of the invite
}]
}
```
#### Workflows Emitting this Event
@@ -555,9 +555,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "inviteresent", children: (<>invite.resent</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="invite.resent" payload={`\`\`\`ts
[{
{
id, // The ID of the invite
}]
}
\`\`\``} />
Emitted when invites should be resent because their token was
@@ -567,9 +567,9 @@ for example.
#### Payload
```ts
[{
{
id, // The ID of the invite
}]
}
```
#### Workflows Emitting this Event
@@ -908,9 +908,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "ordercompleted", children: (<>order.completed</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="order.completed" payload={`\`\`\`ts
[{
{
id, // The ID of the order
}]
}
\`\`\``} />
Emitted when orders are completed.
@@ -918,9 +918,9 @@ Emitted when orders are completed.
#### Payload
```ts
[{
{
id, // The ID of the order
}]
}
```
#### Workflows Emitting this Event
@@ -932,9 +932,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "orderarchived", children: (<>order.archived</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="order.archived" payload={`\`\`\`ts
[{
{
id, // The ID of the order
}]
}
\`\`\``} />
Emitted when an order is archived.
@@ -942,9 +942,9 @@ Emitted when an order is archived.
#### Payload
```ts
[{
{
id, // The ID of the order
}]
}
```
#### Workflows Emitting this Event
@@ -1273,9 +1273,9 @@ Emitted when product categories are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "product-categorycreated", children: (<>product-category.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-category.created" payload={`\`\`\`ts
[{
{
id, // The ID of the product category
}]
}
\`\`\``} />
Emitted when product categories are created.
@@ -1283,9 +1283,9 @@ Emitted when product categories are created.
#### Payload
```ts
[{
{
id, // The ID of the product category
}]
}
```
#### Workflows Emitting this Event
@@ -1297,9 +1297,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-categoryupdated", children: (<>product-category.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-category.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the product category
}]
}
\`\`\``} />
Emitted when product categories are updated.
@@ -1307,9 +1307,9 @@ Emitted when product categories are updated.
#### Payload
```ts
[{
{
id, // The ID of the product category
}]
}
```
#### Workflows Emitting this Event
@@ -1321,9 +1321,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-categorydeleted", children: (<>product-category.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-category.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the product category
}]
}
\`\`\``} />
Emitted when product categories are deleted.
@@ -1331,9 +1331,9 @@ Emitted when product categories are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product category
}]
}
```
#### Workflows Emitting this Event
@@ -1388,9 +1388,9 @@ Emitted when product collections are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "product-collectioncreated", children: (<>product-collection.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-collection.created" payload={`\`\`\`ts
[{
{
id, // The ID of the product collection
}]
}
\`\`\``} />
Emitted when product collections are created.
@@ -1398,9 +1398,9 @@ Emitted when product collections are created.
#### Payload
```ts
[{
{
id, // The ID of the product collection
}]
}
```
#### Workflows Emitting this Event
@@ -1412,9 +1412,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-collectionupdated", children: (<>product-collection.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-collection.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the product collection
}]
}
\`\`\``} />
Emitted when product collections are updated.
@@ -1422,9 +1422,9 @@ Emitted when product collections are updated.
#### Payload
```ts
[{
{
id, // The ID of the product collection
}]
}
```
#### Workflows Emitting this Event
@@ -1436,9 +1436,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-collectiondeleted", children: (<>product-collection.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-collection.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the product collection
}]
}
\`\`\``} />
Emitted when product collections are deleted.
@@ -1446,9 +1446,9 @@ Emitted when product collections are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product collection
}]
}
```
#### Workflows Emitting this Event
@@ -1503,9 +1503,9 @@ Emitted when product options are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "product-optionupdated", children: (<>product-option.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-option.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the product option
}]
}
\`\`\``} />
Emitted when product options are updated.
@@ -1513,9 +1513,9 @@ Emitted when product options are updated.
#### Payload
```ts
[{
{
id, // The ID of the product option
}]
}
```
#### Workflows Emitting this Event
@@ -1527,9 +1527,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-optioncreated", children: (<>product-option.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-option.created" payload={`\`\`\`ts
[{
{
id, // The ID of the product option
}]
}
\`\`\``} />
Emitted when product options are created.
@@ -1537,9 +1537,9 @@ Emitted when product options are created.
#### Payload
```ts
[{
{
id, // The ID of the product option
}]
}
```
#### Workflows Emitting this Event
@@ -1551,9 +1551,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-optiondeleted", children: (<>product-option.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-option.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the product option
}]
}
\`\`\``} />
Emitted when product options are deleted.
@@ -1561,9 +1561,9 @@ Emitted when product options are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product option
}]
}
```
#### Workflows Emitting this Event
@@ -1618,9 +1618,9 @@ Emitted when product tags are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "product-tagupdated", children: (<>product-tag.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-tag.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the product tag
}]
}
\`\`\``} />
Emitted when product tags are updated.
@@ -1628,9 +1628,9 @@ Emitted when product tags are updated.
#### Payload
```ts
[{
{
id, // The ID of the product tag
}]
}
```
#### Workflows Emitting this Event
@@ -1642,9 +1642,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-tagcreated", children: (<>product-tag.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-tag.created" payload={`\`\`\`ts
[{
{
id, // The ID of the product tag
}]
}
\`\`\``} />
Emitted when product tags are created.
@@ -1652,9 +1652,9 @@ Emitted when product tags are created.
#### Payload
```ts
[{
{
id, // The ID of the product tag
}]
}
```
#### Workflows Emitting this Event
@@ -1666,9 +1666,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-tagdeleted", children: (<>product-tag.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-tag.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the product tag
}]
}
\`\`\``} />
Emitted when product tags are deleted.
@@ -1676,9 +1676,9 @@ Emitted when product tags are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product tag
}]
}
```
#### Workflows Emitting this Event
@@ -1733,9 +1733,9 @@ Emitted when product types are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "product-typeupdated", children: (<>product-type.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-type.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the product type
}]
}
\`\`\``} />
Emitted when product types are updated.
@@ -1743,9 +1743,9 @@ Emitted when product types are updated.
#### Payload
```ts
[{
{
id, // The ID of the product type
}]
}
```
#### Workflows Emitting this Event
@@ -1757,9 +1757,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-typecreated", children: (<>product-type.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-type.created" payload={`\`\`\`ts
[{
{
id, // The ID of the product type
}]
}
\`\`\``} />
Emitted when product types are created.
@@ -1767,9 +1767,9 @@ Emitted when product types are created.
#### Payload
```ts
[{
{
id, // The ID of the product type
}]
}
```
#### Workflows Emitting this Event
@@ -1781,9 +1781,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-typedeleted", children: (<>product-type.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-type.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the product type
}]
}
\`\`\``} />
Emitted when product types are deleted.
@@ -1791,9 +1791,9 @@ Emitted when product types are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product type
}]
}
```
#### Workflows Emitting this Event
@@ -1848,9 +1848,9 @@ Emitted when product variants are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "product-variantupdated", children: (<>product-variant.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-variant.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``} />
Emitted when product variants are updated.
@@ -1858,9 +1858,9 @@ Emitted when product variants are updated.
#### Payload
```ts
[{
{
id, // The ID of the product variant
}]
}
```
#### Workflows Emitting this Event
@@ -1873,9 +1873,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-variantcreated", children: (<>product-variant.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-variant.created" payload={`\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``} />
Emitted when product variants are created.
@@ -1883,9 +1883,9 @@ Emitted when product variants are created.
#### Payload
```ts
[{
{
id, // The ID of the product variant
}]
}
```
#### Workflows Emitting this Event
@@ -1901,9 +1901,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "product-variantdeleted", children: (<>product-variant.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product-variant.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the product variant
}]
}
\`\`\``} />
Emitted when product variants are deleted.
@@ -1911,9 +1911,9 @@ Emitted when product variants are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product variant
}]
}
```
#### Workflows Emitting this Event
@@ -1969,9 +1969,9 @@ Emitted when products are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "productupdated", children: (<>product.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``} />
Emitted when products are updated.
@@ -1979,9 +1979,9 @@ Emitted when products are updated.
#### Payload
```ts
[{
{
id, // The ID of the product
}]
}
```
#### Workflows Emitting this Event
@@ -1995,9 +1995,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "productcreated", children: (<>product.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product.created" payload={`\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``} />
Emitted when products are created.
@@ -2005,9 +2005,9 @@ Emitted when products are created.
#### Payload
```ts
[{
{
id, // The ID of the product
}]
}
```
#### Workflows Emitting this Event
@@ -2021,9 +2021,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "productdeleted", children: (<>product.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="product.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the product
}]
}
\`\`\``} />
Emitted when products are deleted.
@@ -2031,9 +2031,9 @@ Emitted when products are deleted.
#### Payload
```ts
[{
{
id, // The ID of the product
}]
}
```
#### Workflows Emitting this Event
@@ -2090,9 +2090,9 @@ Emitted when regions are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "regionupdated", children: (<>region.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="region.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the region
}]
}
\`\`\``} />
Emitted when regions are updated.
@@ -2100,9 +2100,9 @@ Emitted when regions are updated.
#### Payload
```ts
[{
{
id, // The ID of the region
}]
}
```
#### Workflows Emitting this Event
@@ -2114,9 +2114,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "regioncreated", children: (<>region.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="region.created" payload={`\`\`\`ts
[{
{
id, // The ID of the region
}]
}
\`\`\``} />
Emitted when regions are created.
@@ -2124,9 +2124,9 @@ Emitted when regions are created.
#### Payload
```ts
[{
{
id, // The ID of the region
}]
}
```
#### Workflows Emitting this Event
@@ -2138,9 +2138,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "regiondeleted", children: (<>region.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="region.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the region
}]
}
\`\`\``} />
Emitted when regions are deleted.
@@ -2148,9 +2148,9 @@ Emitted when regions are deleted.
#### Payload
```ts
[{
{
id, // The ID of the region
}]
}
```
#### Workflows Emitting this Event
@@ -2205,9 +2205,9 @@ Emitted when sales channels are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "sales-channelcreated", children: (<>sales-channel.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="sales-channel.created" payload={`\`\`\`ts
[{
{
id, // The ID of the sales channel
}]
}
\`\`\``} />
Emitted when sales channels are created.
@@ -2215,9 +2215,9 @@ Emitted when sales channels are created.
#### Payload
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
#### Workflows Emitting this Event
@@ -2229,9 +2229,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "sales-channelupdated", children: (<>sales-channel.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="sales-channel.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the sales channel
}]
}
\`\`\``} />
Emitted when sales channels are updated.
@@ -2239,9 +2239,9 @@ Emitted when sales channels are updated.
#### Payload
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
#### Workflows Emitting this Event
@@ -2253,9 +2253,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "sales-channeldeleted", children: (<>sales-channel.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="sales-channel.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the sales channel
}]
}
\`\`\``} />
Emitted when sales channels are deleted.
@@ -2263,9 +2263,9 @@ Emitted when sales channels are deleted.
#### Payload
```ts
[{
{
id, // The ID of the sales channel
}]
}
```
#### Workflows Emitting this Event
@@ -2326,9 +2326,9 @@ Emitted when shipping option types are deleted.
<Tooltip text="This event was added in version v2.10.0">
<Badge variant="blue">v2.10.0</Badge>
</Tooltip></>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="shipping-option-type.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the shipping option type
}]
}
\`\`\``} />
Emitted when shipping option types are updated.
@@ -2336,9 +2336,9 @@ Emitted when shipping option types are updated.
#### Payload
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
#### Workflows Emitting this Event
@@ -2353,9 +2353,9 @@ The following workflows emit this event when they're executed. These workflows a
<Tooltip text="This event was added in version v2.10.0">
<Badge variant="blue">v2.10.0</Badge>
</Tooltip></>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="shipping-option-type.created" payload={`\`\`\`ts
[{
{
id, // The ID of the shipping option type
}]
}
\`\`\``} />
Emitted when shipping option types are created.
@@ -2363,9 +2363,9 @@ Emitted when shipping option types are created.
#### Payload
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
#### Workflows Emitting this Event
@@ -2380,9 +2380,9 @@ The following workflows emit this event when they're executed. These workflows a
<Tooltip text="This event was added in version v2.10.0">
<Badge variant="blue">v2.10.0</Badge>
</Tooltip></>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="shipping-option-type.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the shipping option type
}]
}
\`\`\``} />
Emitted when shipping option types are deleted.
@@ -2390,9 +2390,9 @@ Emitted when shipping option types are deleted.
#### Payload
```ts
[{
{
id, // The ID of the shipping option type
}]
}
```
#### Workflows Emitting this Event
@@ -2447,9 +2447,9 @@ Emitted when users are deleted.
</Table>
<EventHeader headerLvl="3" headerProps={{ id: "usercreated", children: (<>user.created</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="user.created" payload={`\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``} />
Emitted when users are created.
@@ -2457,9 +2457,9 @@ Emitted when users are created.
#### Payload
```ts
[{
{
id, // The ID of the user
}]
}
```
#### Workflows Emitting this Event
@@ -2473,9 +2473,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "userupdated", children: (<>user.updated</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="user.updated" payload={`\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``} />
Emitted when users are updated.
@@ -2483,9 +2483,9 @@ Emitted when users are updated.
#### Payload
```ts
[{
{
id, // The ID of the user
}]
}
```
#### Workflows Emitting this Event
@@ -2497,9 +2497,9 @@ The following workflows emit this event when they're executed. These workflows a
---
<EventHeader headerLvl="3" headerProps={{ id: "userdeleted", children: (<>user.deleted</>), className: "flex flex-wrap justify-center gap-docs_0.25" }} eventName="user.deleted" payload={`\`\`\`ts
[{
{
id, // The ID of the user
}]
}
\`\`\``} />
Emitted when users are deleted.
@@ -2507,9 +2507,9 @@ Emitted when users are deleted.
#### Payload
```ts
[{
{
id, // The ID of the user
}]
}
```
#### Workflows Emitting this Event
+41 -41
View File
@@ -51,7 +51,7 @@
"name": "customer.created",
"parentName": "CustomerWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the customer\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the customer\n}\n```",
"description": "Emitted when a customer is created.",
"workflows": [
"createCustomersWorkflow",
@@ -63,7 +63,7 @@
"name": "customer.updated",
"parentName": "CustomerWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the customer\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the customer\n}\n```",
"description": "Emitted when a customer is updated.",
"workflows": [
"updateCustomersWorkflow"
@@ -74,7 +74,7 @@
"name": "customer.deleted",
"parentName": "CustomerWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the customer\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the customer\n}\n```",
"description": "Emitted when a customer is deleted.",
"workflows": [
"deleteCustomersWorkflow",
@@ -121,7 +121,7 @@
"name": "order.completed",
"parentName": "OrderWorkflowEvents",
"propertyName": "COMPLETED",
"payload": "```ts\n[{\n id, // The ID of the order\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the order\n}\n```",
"description": "Emitted when orders are completed.",
"workflows": [
"completeOrderWorkflow"
@@ -132,7 +132,7 @@
"name": "order.archived",
"parentName": "OrderWorkflowEvents",
"propertyName": "ARCHIVED",
"payload": "```ts\n[{\n id, // The ID of the order\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the order\n}\n```",
"description": "Emitted when an order is archived.",
"workflows": [
"archiveOrderWorkflow"
@@ -258,7 +258,7 @@
"name": "user.created",
"parentName": "UserWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the user\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the user\n}\n```",
"description": "Emitted when users are created.",
"workflows": [
"createUsersWorkflow",
@@ -271,7 +271,7 @@
"name": "user.updated",
"parentName": "UserWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the user\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the user\n}\n```",
"description": "Emitted when users are updated.",
"workflows": [
"updateUsersWorkflow"
@@ -282,7 +282,7 @@
"name": "user.deleted",
"parentName": "UserWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the user\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the user\n}\n```",
"description": "Emitted when users are deleted.",
"workflows": [
"deleteUsersWorkflow",
@@ -305,7 +305,7 @@
"name": "sales-channel.created",
"parentName": "SalesChannelWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the sales channel\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the sales channel\n}\n```",
"description": "Emitted when sales channels are created.",
"workflows": [
"createSalesChannelsWorkflow"
@@ -316,7 +316,7 @@
"name": "sales-channel.updated",
"parentName": "SalesChannelWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the sales channel\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the sales channel\n}\n```",
"description": "Emitted when sales channels are updated.",
"workflows": [
"updateSalesChannelsWorkflow"
@@ -327,7 +327,7 @@
"name": "sales-channel.deleted",
"parentName": "SalesChannelWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the sales channel\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the sales channel\n}\n```",
"description": "Emitted when sales channels are deleted.",
"workflows": [
"deleteSalesChannelsWorkflow"
@@ -338,7 +338,7 @@
"name": "product-category.created",
"parentName": "ProductCategoryWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the product category\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product category\n}\n```",
"description": "Emitted when product categories are created.",
"workflows": [
"createProductCategoriesWorkflow"
@@ -349,7 +349,7 @@
"name": "product-category.updated",
"parentName": "ProductCategoryWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the product category\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product category\n}\n```",
"description": "Emitted when product categories are updated.",
"workflows": [
"updateProductCategoriesWorkflow"
@@ -360,7 +360,7 @@
"name": "product-category.deleted",
"parentName": "ProductCategoryWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the product category\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product category\n}\n```",
"description": "Emitted when product categories are deleted.",
"workflows": [
"deleteProductCategoriesWorkflow"
@@ -371,7 +371,7 @@
"name": "product-collection.created",
"parentName": "ProductCollectionWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the product collection\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product collection\n}\n```",
"description": "Emitted when product collections are created.",
"workflows": [
"createCollectionsWorkflow"
@@ -382,7 +382,7 @@
"name": "product-collection.updated",
"parentName": "ProductCollectionWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the product collection\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product collection\n}\n```",
"description": "Emitted when product collections are updated.",
"workflows": [
"updateCollectionsWorkflow"
@@ -393,7 +393,7 @@
"name": "product-collection.deleted",
"parentName": "ProductCollectionWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the product collection\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product collection\n}\n```",
"description": "Emitted when product collections are deleted.",
"workflows": [
"deleteCollectionsWorkflow"
@@ -404,7 +404,7 @@
"name": "product-variant.updated",
"parentName": "ProductVariantWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the product variant\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product variant\n}\n```",
"description": "Emitted when product variants are updated.",
"workflows": [
"updateProductVariantsWorkflow",
@@ -416,7 +416,7 @@
"name": "product-variant.created",
"parentName": "ProductVariantWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the product variant\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product variant\n}\n```",
"description": "Emitted when product variants are created.",
"workflows": [
"createProductVariantsWorkflow",
@@ -431,7 +431,7 @@
"name": "product-variant.deleted",
"parentName": "ProductVariantWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the product variant\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product variant\n}\n```",
"description": "Emitted when product variants are deleted.",
"workflows": [
"deleteProductVariantsWorkflow",
@@ -443,7 +443,7 @@
"name": "product.updated",
"parentName": "ProductWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the product\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product\n}\n```",
"description": "Emitted when products are updated.",
"workflows": [
"updateProductsWorkflow",
@@ -456,7 +456,7 @@
"name": "product.created",
"parentName": "ProductWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the product\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product\n}\n```",
"description": "Emitted when products are created.",
"workflows": [
"createProductsWorkflow",
@@ -469,7 +469,7 @@
"name": "product.deleted",
"parentName": "ProductWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the product\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product\n}\n```",
"description": "Emitted when products are deleted.",
"workflows": [
"deleteProductsWorkflow",
@@ -482,7 +482,7 @@
"name": "product-type.updated",
"parentName": "ProductTypeWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the product type\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product type\n}\n```",
"description": "Emitted when product types are updated.",
"workflows": [
"updateProductTypesWorkflow"
@@ -493,7 +493,7 @@
"name": "product-type.created",
"parentName": "ProductTypeWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the product type\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product type\n}\n```",
"description": "Emitted when product types are created.",
"workflows": [
"createProductTypesWorkflow"
@@ -504,7 +504,7 @@
"name": "product-type.deleted",
"parentName": "ProductTypeWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the product type\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product type\n}\n```",
"description": "Emitted when product types are deleted.",
"workflows": [
"deleteProductTypesWorkflow"
@@ -515,7 +515,7 @@
"name": "product-tag.updated",
"parentName": "ProductTagWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the product tag\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product tag\n}\n```",
"description": "Emitted when product tags are updated.",
"workflows": [
"updateProductTagsWorkflow"
@@ -526,7 +526,7 @@
"name": "product-tag.created",
"parentName": "ProductTagWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the product tag\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product tag\n}\n```",
"description": "Emitted when product tags are created.",
"workflows": [
"createProductTagsWorkflow"
@@ -537,7 +537,7 @@
"name": "product-tag.deleted",
"parentName": "ProductTagWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the product tag\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product tag\n}\n```",
"description": "Emitted when product tags are deleted.",
"workflows": [
"deleteProductTagsWorkflow"
@@ -548,7 +548,7 @@
"name": "product-option.updated",
"parentName": "ProductOptionWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the product option\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product option\n}\n```",
"description": "Emitted when product options are updated.",
"workflows": [
"updateProductOptionsWorkflow"
@@ -559,7 +559,7 @@
"name": "product-option.created",
"parentName": "ProductOptionWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the product option\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product option\n}\n```",
"description": "Emitted when product options are created.",
"workflows": [
"createProductOptionsWorkflow"
@@ -570,7 +570,7 @@
"name": "product-option.deleted",
"parentName": "ProductOptionWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the product option\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the product option\n}\n```",
"description": "Emitted when product options are deleted.",
"workflows": [
"deleteProductOptionsWorkflow"
@@ -592,7 +592,7 @@
"name": "invite.created",
"parentName": "InviteWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the invite\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the invite\n}\n```",
"description": "Emitted when invites are created. You can listen to this event\nto send an email to the invited users, for example.",
"workflows": [
"createInvitesWorkflow"
@@ -603,7 +603,7 @@
"name": "invite.deleted",
"parentName": "InviteWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the invite\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the invite\n}\n```",
"description": "Emitted when invites are deleted.",
"workflows": [
"deleteInvitesWorkflow"
@@ -614,7 +614,7 @@
"name": "invite.resent",
"parentName": "InviteWorkflowEvents",
"propertyName": "RESENT",
"payload": "```ts\n[{\n id, // The ID of the invite\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the invite\n}\n```",
"description": "Emitted when invites should be resent because their token was\nrefreshed. You can listen to this event to send an email to the invited users,\nfor example.",
"workflows": [
"refreshInviteTokensWorkflow"
@@ -625,7 +625,7 @@
"name": "region.updated",
"parentName": "RegionWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the region\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the region\n}\n```",
"description": "Emitted when regions are updated.",
"workflows": [
"updateRegionsWorkflow"
@@ -636,7 +636,7 @@
"name": "region.created",
"parentName": "RegionWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the region\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the region\n}\n```",
"description": "Emitted when regions are created.",
"workflows": [
"createRegionsWorkflow"
@@ -647,7 +647,7 @@
"name": "region.deleted",
"parentName": "RegionWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the region\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the region\n}\n```",
"description": "Emitted when regions are deleted.",
"workflows": [
"deleteRegionsWorkflow"
@@ -680,7 +680,7 @@
"name": "shipping-option-type.updated",
"parentName": "ShippingOptionTypeWorkflowEvents",
"propertyName": "UPDATED",
"payload": "```ts\n[{\n id, // The ID of the shipping option type\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the shipping option type\n}\n```",
"description": "Emitted when shipping option types are updated.",
"workflows": [
"updateShippingOptionTypesWorkflow"
@@ -692,7 +692,7 @@
"name": "shipping-option-type.created",
"parentName": "ShippingOptionTypeWorkflowEvents",
"propertyName": "CREATED",
"payload": "```ts\n[{\n id, // The ID of the shipping option type\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the shipping option type\n}\n```",
"description": "Emitted when shipping option types are created.",
"workflows": [
"createShippingOptionTypesWorkflow"
@@ -704,7 +704,7 @@
"name": "shipping-option-type.deleted",
"parentName": "ShippingOptionTypeWorkflowEvents",
"propertyName": "DELETED",
"payload": "```ts\n[{\n id, // The ID of the shipping option type\n}]\n```",
"payload": "```ts\n{\n id, // The ID of the shipping option type\n}\n```",
"description": "Emitted when shipping option types are deleted.",
"workflows": [
"deleteShippingOptionTypesWorkflow"
@@ -64,9 +64,9 @@
* - name: product-collection.deleted
* payload: |-
* ```ts
* [{
* {
* id, // The ID of the product collection
* }]
* }
* ```
* description: Emitted when product collections are deleted.
* deprecated: false
@@ -82,9 +82,9 @@
* - name: customer.deleted
* payload: |-
* ```ts
* [{
* {
* id, // The ID of the customer
* }]
* }
* ```
* description: Emitted when a customer is deleted.
* deprecated: false
@@ -81,9 +81,9 @@
* - name: invite.deleted
* payload: |-
* ```ts
* [{
* {
* id, // The ID of the invite
* }]
* }
* ```
* description: Emitted when invites are deleted.
* deprecated: false
@@ -64,9 +64,9 @@
* - name: product-category.deleted
* payload: |-
* ```ts
* [{
* {
* id, // The ID of the product category
* }]
* }
* ```
* description: Emitted when product categories are deleted.
* deprecated: false
@@ -64,9 +64,9 @@
* - name: product-tag.deleted
* payload: |-
* ```ts
* [{
* {
* id, // The ID of the product tag
* }]
* }
* ```
* description: Emitted when product tags are deleted.
* deprecated: false
@@ -64,9 +64,9 @@
* - name: product-type.deleted
* payload: |-
* ```ts
* [{
* {
* id, // The ID of the product type
* }]
* }
* ```
* description: Emitted when product types are deleted.
* deprecated: false
@@ -64,9 +64,9 @@
* - name: product.deleted
* payload: |-
* ```ts
* [{
* {
* id, // The ID of the product
* }]
* }
* ```
* description: Emitted when products are deleted.
* deprecated: false

Some files were not shown because too many files have changed in this diff Show More