docs: update events reference (#7321)

* change subscribers events

* add event references for modules
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-05-16 09:01:12 +02:00
1 parent 1160a34f3d
commit 9b1998b9b2
44 files changed
+2995 -3280

No files matched your search

@@ -0,0 +1,299 @@
import { Table } from "docs-ui"
<Table>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Event Name</Table.HeaderCell>
<Table.HeaderCell>Description</Table.HeaderCell>
<Table.HeaderCell>Data Payload</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table.Body>
<Table.Row className="bg-medusa-bg-base-hover">
<Table.Cell>
`product.created`
</Table.Cell>
<Table.Cell>
Triggered when a product is created.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the product
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product.updated`
</Table.Cell>
<Table.Cell>
Triggered when a product is updated.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the product
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product.deleted`
</Table.Cell>
<Table.Cell>
Triggered when a product is deleted.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the deleted product
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row className="bg-medusa-bg-base-hover">
<Table.Cell>
`product-collection.created`
</Table.Cell>
<Table.Cell>
Triggered when a product collection is created.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the product collection
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product-collection.updated`
</Table.Cell>
<Table.Cell>
Triggered when a product collection is updated.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the product collection
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product-collection.deleted`
</Table.Cell>
<Table.Cell>
Triggered when a product collection is deleted.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the deleted product collection
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row className="bg-medusa-bg-base-hover">
<Table.Cell>
`product-category.created`
</Table.Cell>
<Table.Cell>
Triggered when a product category is created.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the product category
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product-category.updated`
</Table.Cell>
<Table.Cell>
Triggered when a product category is updated.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the product category
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`product-category.deleted`
</Table.Cell>
<Table.Cell>
Triggered when a product category is deleted.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the deleted product category
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row className="bg-medusa-bg-base-hover">
<Table.Cell>
`product-option.deleted`
</Table.Cell>
<Table.Cell>
Triggered when a product option is deleted.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the deleted product option
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row className="bg-medusa-bg-base-hover">
<Table.Cell>
`product-tag.deleted`
</Table.Cell>
<Table.Cell>
Triggered when a product tag is deleted.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the deleted product tag
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row className="bg-medusa-bg-base-hover">
<Table.Cell>
`product-type.deleted`
</Table.Cell>
<Table.Cell>
Triggered when a product type is deleted.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the deleted product type
id,
}
```
</Table.Cell>
</Table.Row>
<Table.Row className="bg-medusa-bg-base-hover">
<Table.Cell>
`product-variant.deleted`
</Table.Cell>
<Table.Cell>
Triggered when a product variant is deleted.
</Table.Cell>
<Table.Cell>
```ts noCopy noReport
{
// the ID of the deleted product variant
id,
}
```
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
@@ -0,0 +1,11 @@
import EventsTable from "./_events-table/page.mdx"
export const metadata = {
title: `Product Module Events Reference`,
}
# {metadata.title}
Find in this reference the list of events emitted by the Product Module.
<EventsTable />