From a7684b45f6450ff0f1fecbd83b69f4fd0b16c9eb Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 13 Sep 2024 10:22:09 +0300 Subject: [PATCH] docs: add new events to reference (#9121) --- .../resources/app/events-reference/page.mdx | 237 ++++++++++++++++++ 1 file changed, 237 insertions(+) diff --git a/www/apps/resources/app/events-reference/page.mdx b/www/apps/resources/app/events-reference/page.mdx index 3f04862232..29e910d74c 100644 --- a/www/apps/resources/app/events-reference/page.mdx +++ b/www/apps/resources/app/events-reference/page.mdx @@ -505,6 +505,243 @@ Events are still in development and may change. --- +## Product Option Events + + + + + Event Name + Description + Payload + + + + + + + `product-option.created` + + + + + Emitted when product options are created. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the option +}] +``` + + + + + + + `product-option.updated` + + + + + Emitted when product options are updated. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the option +}] +``` + + + + + + + `product-option.deleted` + + + + + Emitted when product options are deleted. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the option +}] +``` + + + + +
+ +--- + +## Product Tag Events + + + + + Event Name + Description + Payload + + + + + + + `product-tag.created` + + + + + Emitted when product tags are created. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the tag +}] +``` + + + + + + + `product-tag.updated` + + + + + Emitted when product tags are updated. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the tag +}] +``` + + + + + + + `product-tag.deleted` + + + + + Emitted when product tags are deleted. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the tag +}] +``` + + + + +
+ +--- + +## Product Type Events + + + + + Event Name + Description + Payload + + + + + + + `product-type.created` + + + + + Emitted when product types are created. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the type +}] +``` + + + + + + + `product-type.updated` + + + + + Emitted when product types are updated. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the type +}] +``` + + + + + + + `product-type.deleted` + + + + + Emitted when product types are deleted. + + + + +```ts blockStyle="inline" +[{ + id, // The ID of the type +}] +``` + + + + +
+ +--- + ## Product Variant Events