Update async webhook enum (#249)
* Add new async webhook types to events enum * Add changeset
This commit is contained in:
parent
194745c02a
commit
9056e7617a
2 changed files with 13 additions and 3 deletions
8
.changeset/gorgeous-coats-rule.md
Normal file
8
.changeset/gorgeous-coats-rule.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
"@saleor/app-sdk": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Added definitions for new async events:
|
||||||
|
|
||||||
|
- `CHECKOUT_FULLY_PAID`
|
||||||
|
- `GIFT_CARD_SENT`
|
|
@ -49,7 +49,7 @@ export type Permission =
|
||||||
export type AppPermission = Exclude<Permission, "MANAGE_APPS">;
|
export type AppPermission = Exclude<Permission, "MANAGE_APPS">;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://github.com/saleor/saleor/blob/main/saleor/graphql/schema.graphql#L1505
|
* @see https://docs.saleor.io/docs/3.x/api-reference/webhooks/enums/webhook-event-type-async-enum
|
||||||
*/
|
*/
|
||||||
export type AsyncWebhookEventType =
|
export type AsyncWebhookEventType =
|
||||||
| "ADDRESS_CREATED"
|
| "ADDRESS_CREATED"
|
||||||
|
@ -75,6 +75,7 @@ export type AsyncWebhookEventType =
|
||||||
| "GIFT_CARD_CREATED"
|
| "GIFT_CARD_CREATED"
|
||||||
| "GIFT_CARD_UPDATED"
|
| "GIFT_CARD_UPDATED"
|
||||||
| "GIFT_CARD_DELETED"
|
| "GIFT_CARD_DELETED"
|
||||||
|
| "GIFT_CARD_SENT"
|
||||||
| "GIFT_CARD_STATUS_CHANGED"
|
| "GIFT_CARD_STATUS_CHANGED"
|
||||||
| "GIFT_CARD_METADATA_UPDATED"
|
| "GIFT_CARD_METADATA_UPDATED"
|
||||||
| "MENU_CREATED"
|
| "MENU_CREATED"
|
||||||
|
@ -127,8 +128,9 @@ export type AsyncWebhookEventType =
|
||||||
| "PRODUCT_VARIANT_BACK_IN_STOCK"
|
| "PRODUCT_VARIANT_BACK_IN_STOCK"
|
||||||
| "PRODUCT_VARIANT_STOCK_UPDATED"
|
| "PRODUCT_VARIANT_STOCK_UPDATED"
|
||||||
| "CHECKOUT_CREATED"
|
| "CHECKOUT_CREATED"
|
||||||
| "CHECKOUT_UPDATED"
|
| "CHECKOUT_FULLY_PAID"
|
||||||
| "CHECKOUT_METADATA_UPDATED"
|
| "CHECKOUT_METADATA_UPDATED"
|
||||||
|
| "CHECKOUT_UPDATED"
|
||||||
| "NOTIFY_USER"
|
| "NOTIFY_USER"
|
||||||
| "PAGE_CREATED"
|
| "PAGE_CREATED"
|
||||||
| "PAGE_UPDATED"
|
| "PAGE_UPDATED"
|
||||||
|
@ -272,7 +274,7 @@ export interface AppManifest {
|
||||||
* ">=3.10 <4 || 4.0.0" - 3.10 and newer, less than 4, but allow exactly 4.0.0
|
* ">=3.10 <4 || 4.0.0" - 3.10 and newer, less than 4, but allow exactly 4.0.0
|
||||||
*/
|
*/
|
||||||
requiredSaleorVersion?: string;
|
requiredSaleorVersion?: string;
|
||||||
/**
|
/**
|
||||||
* App author name displayed in the dashboard
|
* App author name displayed in the dashboard
|
||||||
*
|
*
|
||||||
* In Saleor versions lower than 3.13, this field will be ignored
|
* In Saleor versions lower than 3.13, this field will be ignored
|
||||||
|
|
Loading…
Reference in a new issue