Update async webhook enum (#249)

* Add new async webhook types to events enum

* Add changeset
This commit is contained in:
Krzysztof Wolski 2023-06-06 14:41:25 +02:00 committed by GitHub
parent 194745c02a
commit 9056e7617a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -0,0 +1,8 @@
---
"@saleor/app-sdk": patch
---
Added definitions for new async events:
- `CHECKOUT_FULLY_PAID`
- `GIFT_CARD_SENT`

View file

@ -49,7 +49,7 @@ export type Permission =
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 =
| "ADDRESS_CREATED"
@ -75,6 +75,7 @@ export type AsyncWebhookEventType =
| "GIFT_CARD_CREATED"
| "GIFT_CARD_UPDATED"
| "GIFT_CARD_DELETED"
| "GIFT_CARD_SENT"
| "GIFT_CARD_STATUS_CHANGED"
| "GIFT_CARD_METADATA_UPDATED"
| "MENU_CREATED"
@ -127,8 +128,9 @@ export type AsyncWebhookEventType =
| "PRODUCT_VARIANT_BACK_IN_STOCK"
| "PRODUCT_VARIANT_STOCK_UPDATED"
| "CHECKOUT_CREATED"
| "CHECKOUT_UPDATED"
| "CHECKOUT_FULLY_PAID"
| "CHECKOUT_METADATA_UPDATED"
| "CHECKOUT_UPDATED"
| "NOTIFY_USER"
| "PAGE_CREATED"
| "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
*/
requiredSaleorVersion?: string;
/**
/**
* App author name displayed in the dashboard
*
* In Saleor versions lower than 3.13, this field will be ignored