cal/packages/prisma
Carina Wollendorfer 84efda07e9
Team webhooks (#8917)
* allow event type specific webhooks for all event types

* first version of team webhooks

* add empty view

* design fixes when no teams + invalidate query on delete/update

* linke to new webhooks page with teamId in query

* make one button with dropdown instead of a button for every team

* add subtitle to dropdown

* add avatar fallback

* authorization when editing webhook

* fix event type webhooks

* fix authorization for delete handler

* code clean up

* fix disabled switch

* add migration

* fix subscriberUrlReservered function and fix authorization

* fix type error

* fix type error

* fix switch not updating

* make sure webhooks are triggered for the correct even types

* code clean up

* only show teams were user has write access

* make webhooks read-only for members

* fix comment

* fix type error

* fix webhook tests for team event types

* implement feedback

* code clean up from feedback

* code clean up (feedback)

* throw error if param missing in subscriberUrlReservered

* handle null/undefined values in getWebhooks itself

* better variable naming

* better check if webhook is readonly

* create assertPartOfTeamWithRequiredAccessLevel to remove duplicate code

---------

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: alannnc <alannnc@gmail.com>
2023-05-23 01:15:29 +00:00
..
client add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
middleware Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
migrations Team webhooks (#8917) 2023-05-23 01:15:29 +00:00
selects Add feature to offset start times for event types (#8506) 2023-05-17 11:56:55 +00:00
zod Team webhooks (#8917) 2023-05-23 01:15:29 +00:00
.env Adds symlink to use DATABASE_URL from root 2022-08-12 11:23:30 -06:00
delete-app.ts One jest to rule them all (#3957) 2022-08-29 22:33:53 +00:00
docker-compose.yml Revert "Matches postgres image across projects" 2022-12-22 17:11:31 -07:00
enum-generator.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
index.ts Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
package.json add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
schema.prisma Team webhooks (#8917) 2023-05-23 01:15:29 +00:00
seed-app-store.config.json Improvement/AppStore: Remove seeding from app-store-cli. (#8486) 2023-05-12 04:59:15 +00:00
seed-app-store.ts Improvement/AppStore: Remove seeding from app-store-cli. (#8486) 2023-05-12 04:59:15 +00:00
seed-insights.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
seed.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
zod-utils.ts Add feature to offset start times for event types (#8506) 2023-05-17 11:56:55 +00:00