1
0
mirror of synced 2025-12-20 02:19:14 -05:00
Files
docs/components/webhooks/types.ts
Robert Sese b2e5d14036 Automate + Reactify webhooks page (#29534)
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-11-15 22:12:16 +00:00

35 lines
763 B
TypeScript

import { Parameter, StatusCode, CodeSample, BodyParameter } from '../rest/types'
export interface WebhookT {
actions: string[]
webhookActions: WebhookAction[]
}
interface WebhookActionData {
verb: string
title: string
descriptionHtml: string
summaryHtml: string
previews: Array<string>
requestPath: string
serverUrl: string
statusCodes: Array<StatusCode>
parameters: Array<Parameter>
bodyParameters: Array<BodyParameter>
category: string
subcategory: string
codeExamples: Array<CodeSample>
availability: Array<string>
action: string
payloadExample?: Object
}
export interface WebhookAction {
name: string
actionTypes: string[]
data: WebhookActionData
}
export type WebhookData = {
[key: string]: WebhookActionData
}