mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1864 from omnivore-app/feature/webhook-label-event
Add LABEL_ADDED as event type in webhooks
This commit is contained in:
commit
78f8fa1726
4 changed files with 14 additions and 6 deletions
|
|
@ -17,12 +17,12 @@
|
|||
"deploy:web": "vercel --prod"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ardatan/aggregate-error": "^0.0.6",
|
||||
"@graphql-codegen/cli": "^2.6.2",
|
||||
"@graphql-codegen/introspection": "^2.1.1",
|
||||
"@graphql-codegen/schema-ast": "^2.1.1",
|
||||
"@graphql-codegen/typescript": "^2.1.1",
|
||||
"@graphql-codegen/typescript-resolvers": "^2.1.1",
|
||||
"@ardatan/aggregate-error": "^0.0.6",
|
||||
"@tsconfig/node14": "^1.0.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
||||
"@typescript-eslint/parser": "^5.9.0",
|
||||
|
|
@ -38,5 +38,6 @@
|
|||
"volta": {
|
||||
"node": "14.18.1",
|
||||
"yarn": "1.22.19"
|
||||
}
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ export type WebhookEvent =
|
|||
| 'HIGHLIGHT_CREATED'
|
||||
| 'HIGHLIGHT_UPDATED'
|
||||
| 'HIGHLIGHT_DELETED'
|
||||
| 'LABEL_CREATED'
|
||||
| 'LABEL_UPDATED'
|
||||
| 'LABEL_DELETED'
|
||||
|
||||
export interface Webhook {
|
||||
id: string
|
||||
|
|
|
|||
|
|
@ -31,7 +31,11 @@ export default function Webhooks(): JSX.Element {
|
|||
const [addModelOpen, setAddModelOpen] = useState(false)
|
||||
const [onEditWebhook, setOnEditWebhook] = useState<Webhook | null>(null)
|
||||
const [url, setUrl] = useState('')
|
||||
const eventTypeOptions = ['PAGE_CREATED', 'HIGHLIGHT_CREATED']
|
||||
const eventTypeOptions = [
|
||||
'PAGE_CREATED',
|
||||
'HIGHLIGHT_CREATED',
|
||||
'LABEL_CREATED',
|
||||
]
|
||||
const [eventTypes, setEventTypes] = useState<WebhookEvent[]>([])
|
||||
const [contentType, setContentType] = useState('application/json')
|
||||
const [method, setMethod] = useState('POST')
|
||||
|
|
|
|||
|
|
@ -11255,9 +11255,9 @@ camelcase@^6.0.0, camelcase@^6.2.0:
|
|||
integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==
|
||||
|
||||
caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001251, caniuse-lite@^1.0.30001286, caniuse-lite@^1.0.30001317, caniuse-lite@^1.0.30001332:
|
||||
version "1.0.30001357"
|
||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001357.tgz#dec7fc4158ef6ad24690d0eec7b91f32b8cb1b5d"
|
||||
integrity sha512-b+KbWHdHePp+ZpNj+RDHFChZmuN+J5EvuQUlee9jOQIUAdhv9uvAZeEtUeLAknXbkiu1uxjQ9NLp1ie894CuWg==
|
||||
version "1.0.30001462"
|
||||
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001462.tgz"
|
||||
integrity sha512-PDd20WuOBPiasZ7KbFnmQRyuLE7cFXW2PVd7dmALzbkUXEP46upAuCDm9eY9vho8fgNMGmbAX92QBZHzcnWIqw==
|
||||
|
||||
capital-case@^1.0.4:
|
||||
version "1.0.4"
|
||||
|
|
|
|||
Loading…
Reference in a new issue