Add setWebhook resolver

This commit is contained in:
Hongbo Wu
2022-05-25 22:20:13 +08:00
parent 5528d1d349
commit 6d0ce30a44
6 changed files with 95 additions and 6 deletions

View File

@ -1625,6 +1625,7 @@ export type SetWebhookError = {
export enum SetWebhookErrorCode {
AlreadyExists = 'ALREADY_EXISTS',
BadRequest = 'BAD_REQUEST',
NotFound = 'NOT_FOUND',
Unauthorized = 'UNAUTHORIZED'
}
@ -1632,6 +1633,7 @@ export type SetWebhookInput = {
contentType?: InputMaybe<Scalars['String']>;
enabled?: InputMaybe<Scalars['Boolean']>;
eventTypes: Array<WebhookEvent>;
id?: InputMaybe<Scalars['ID']>;
method?: InputMaybe<Scalars['String']>;
url: Scalars['String'];
};

View File

@ -1193,6 +1193,7 @@ type SetWebhookError {
enum SetWebhookErrorCode {
ALREADY_EXISTS
BAD_REQUEST
NOT_FOUND
UNAUTHORIZED
}
@ -1200,6 +1201,7 @@ input SetWebhookInput {
contentType: String
enabled: Boolean
eventTypes: [WebhookEvent!]!
id: ID
method: String
url: String!
}