Omar López
d81b905ad7
refactor: replace timeZone string validation with timeZoneSchema ( #20719 )
...
* refactor: replace timeZone string validation with timeZoneSchema - Replace all instances of timeZone: z.string() with timeZoneSchema - Preserve modifiers (.optional(), .default(), .nullish()) where present - Fix VideoApiAdapter to use organizer's timezone value - Remove redundant isSupportedTimeZone import from booking.ts - Add timeZoneSchema import where needed
* Update index.ts
* fix: conflicts
Signed-off-by: Omar López <zomars@me.com >
* Update yarn.lock
* Discard changes to yarn.lock
* Update booking.ts
* Discard changes to packages/platform/types/me.ts
* Discard changes to packages/platform/types/me/outputs/me.ts
* Discard changes to packages/platform/types/schedules/schedules-2024-04-15/schedules.ts
* Discard changes to packages/features/ee/cal-ai-phone/zod-utils.ts
---------
Signed-off-by: Omar López <zomars@me.com >
2025-04-21 14:37:07 +01:00
Keith Williams
df55dec553
chore: Rename @calcom/lib/date-fns to @calcom/lib/dayjs ( #19870 )
...
* chore: Rename date-fns to dayjs
* Fixed types
2025-04-16 16:26:42 +00:00
0968fc56eb
feat: add utm tracking on booking ( #19965 )
...
* add tracking to booking + pass to handleNewBooking
* save tracking to booking
* return undefined if no utm params
* add test for handleNewBooking
* fix type error in test
* refactor code
* code clean up
* code clean up
* add missing import
* fix type import
* add utm params to insights (#20063 )
* add utm params to insights
* remove duplicates
* remove duplicate columns
---------
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
---------
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
Co-authored-by: Omar López <zomars@me.com >
2025-03-14 08:21:55 -07:00
Keith Williams
7ed32d3c77
perf: Reduce imports by moving bookings zod out of utils ( #19869 )
2025-03-10 13:54:05 +00:00
395381ddcc
feat: automatic no show ( #16727 )
...
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com >
Co-authored-by: Alex van Andel <me@alexvanandel.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
Co-authored-by: zomars <zomars@me.com >
2024-10-10 10:57:04 -07:00
25ae1493c3
fix: Duplicating org team event types not working #16199 ( #16204 )
...
* fix: Duplicating org team event types not working #16199
* fix type error
* Update eventtype.ts
---------
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com >
Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com >
2024-08-16 12:24:26 +02:00
Morgan and Peer Richelsen
dda4b17a7c
feat: Platform OAuthClient Webhooks ( #16134 )
...
* wip
* fixup! Merge branch 'main' into platform-oauth-client-webhooks
* wip
* fixup! Merge branch 'main' into platform-oauth-client-webhooks
* fixup! fixup! Merge branch 'main' into platform-oauth-client-webhooks
* fixup! fixup! fixup! Merge branch 'main' into platform-oauth-client-webhooks
* fixup! fixup! fixup! fixup! Merge branch 'main' into platform-oauth-client-webhooks
* fixup! fixup! fixup! fixup! fixup! Merge branch 'main' into platform-oauth-client-webhooks
* fixup! fixup! fixup! fixup! fixup! fixup! Merge branch 'main' into platform-oauth-client-webhooks
* fixup! fixup! fixup! fixup! fixup! fixup! fixup! Merge branch 'main' into platform-oauth-client-webhooks
* fixup! Merge branch 'platform-oauth-client-webhooks' of github.com:calcom/cal.com into platform-oauth-client-webhooks
* fixup! fixup! Merge branch 'platform-oauth-client-webhooks' of github.com:calcom/cal.com into platform-oauth-client-webhooks
---------
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
2024-08-09 17:02:39 +02:00
Lauris Skraucis
de2f51e104
feat: v2 API enable updating event type schedule ( #15803 )
...
* refactor: event-types CREATE, UPDATE accept scheduleId and return scheduleId
* chore: enable passing scheduleId to event-types create handler
* chore: use platform-libraries at version 0.0.20
* fix: remove team output schedule
* finish merge main into this branch
* fix: dont allow adding scheduleId to event-type if user does not own schedule
2024-07-22 20:09:54 +03:00
Morgan
b3fab3aacd
chore: api-v2 slotInterval, afterEventBuffer, beforeEventBuffer min 0 ( #15039 )
2024-05-17 22:22:19 +01:00
Morgan
0a0c5ef61e
chore: more fields event-types apiv2 ( #15031 )
2024-05-14 22:51:21 +01:00
Morgan
3942df369d
chore: open disableGuests for event-types apiv2 ( #15001 )
...
* chore: open disableGuests for eventtypes apiv2
* fixup! chore: open disableGuests for eventtypes apiv2
* fixup! fixup! chore: open disableGuests for eventtypes apiv2
* chore: add disableGuests to create handler
2024-05-14 10:50:12 +00:00
Carina Wollendorfer and CarinaWolli
ed0cd30092
fix: improve api/cron/webhookTriggers endpoint ( #14188 )
...
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
2024-04-04 10:01:57 -07:00
3b263e9282
feat: v2 event-types POST, PATCH, DELETE endpoints ( #14237 )
...
* create event type: use createEventType from trpc handler
* create event type: simplify handler input and create e2e test
* update event type + test
* delete end point
* check if owner owns event type
* fix: starting v2
* fixes
* remove unused enum
* fix TS issue for update input
* docs refresh
* docs
* docs
* simplify event types docs
* docs refactor
* fix: check if user already has event type with existing slug
* refactor update into a service
* fix tests
* remove unused import
* update create event link
* refactor: create event handler process passed locations
* move input out of folder
* reuse eventtype location for inputs
* docs: example POST event-type return
---------
Co-authored-by: Rajiv Sahal <sahalrajiv-extc@atharvacoe.ac.in >
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com >
2024-04-02 15:50:12 +02:00
Somay Chauhan and Joe Au-Yeung
7e557889b6
feat: support for platform wide webhooks ( #14092 )
...
* db migration
* adjusted ui to include `platform` in dropdown for admin webhooks
* adjusted webhook/create.handler for platform
* adjusted `edit.handler` so that only ADMIN can update `platform` webhooks
* update `getWebhooks` for platform wide webhooks
* list platform webhooks if admin
* createFunction refactor
* update subscriberUrlReserved for platform webhooks
* fix delete webhook handler
* fix: added readOnly to WebhookListItem
* fix: admin cannot delete its own webhooks
* fix: ts error
---------
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2024-03-18 13:42:28 -04:00
Udit Takkar
1482d9a9af
fix: duplicate dialog ( #14055 )
2024-03-11 15:16:32 +00:00
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
Julius Marminge and Alex van Andel
53748eb380
add an enum generator, stop importing from @prisma/client ( #8548 )
...
* add an enum generator and start importing from it
* keep moving imports
* fix remaining
* Header simplified
* Removed generated file from repo
* Updated .gitignore to exclude enums directory
* Add eslint rule to check for @prisma/client Prisma enum import
* Added another enum import + exclude PrismaClient
---------
Co-authored-by: Alex van Andel <me@alexvanandel.com >
2023-05-02 13:44:05 +02:00
5170fc2424
Managed event-types ( #6876 )
...
* WIP
* Locked fields manager
* Leftovers
* Bad merge fix
* Type import fix
* Moving away from classes
* Progress refactoring locked logic
* Covering apps, webhooks and workflows
* Supporting webhooks and workflows (TBT)
* Restoring yarn.lock
* Progress
* Refactoring code, adding default values
* Fixing CRUD for children
* Connect app link and case-sensitive lib renaming
* Translation missing
* Locked indicators, empty screens, locations
* Member card and hidden status + missing i18n
* Missing existent children shown
* Showing preview for already created children
* Email notification almost in place
* Making progress over notif email
* Fixing nodemailer by mixed FE/BE mixup
* Delete dialog
* Adding tests
* New test
* Reverting unneeded change
* Removed console.log
* Tweaking email
* Reverting not applicable webhook changes
* Reverting dev email api
* Fixing last changes due to tests
* Changing user-evType relationship
* Availability and slug replacement tweaks
* Fixing event type delete
* Sometimes slug is not there...
* Removing old webhooks references
Changed slug hint
* Fixing types
* Fixing hiding event types actions
* Changing delete dialog text
* Removing unneeded code
* Applying feedback
* Update yarn.lock
* Making sure locked fields values are static
* Applying feedback
* Feedback + relying on children list, not users
* Removing console.log
* PR Feedback
* Telemetry for slug replacement action
* More unit tests
* Relying on schedule and editor tweaks
* Fixing conteiner classname
* PR Feedback
* PR Feedback
* Updating unit tests
* Moving stuff to ee, added feature flag
* type fix
* Including e2e
* Reverting unneeded changes in EmptyScreen
* Fixing some UI issues after merging tokens
* Fixing missing disabled locked fields
* Theme fixes + e2e potential fix
* Fixing e2e
* Fixing login relying on network
* Tweaking e2e
* Removing unneeded code
---------
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: zomars <zomars@me.com >
2023-04-12 23:10:23 -03:00
zomars
a0709fac88
Circular dependecy hotfix
2023-01-06 13:15:34 -07:00
4086a666ae
fix: add location query variable ( #5540 )
...
* fix: add location query variable
* chore: remove logs
* fix: remove required location
* fix: make locations option
* fix: get location
* Update packages/prisma/zod/custom/eventtype.ts
Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com >
Co-authored-by: alannnc <alannnc@gmail.com >
2022-11-23 12:18:00 -07:00
Peer Richelsen and Hariom Balhara
44ef1f80e9
added QR code app, needs eventType.URL ( #4701 )
...
* wip added QR code app, needs settings
* added QR code settings, needs eventType.URL
* Make URL prop available to apps
* Add recurringEvent in available. It was missing earlier
* added autoAnimate to AppSettings
* Remove isSunrise demo prop
* Simplify schema even more
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com >
2022-10-17 16:38:43 +00:00
Syed Ali Shahbaz
6253216484
Webhook polishing ( #2987 )
2022-06-16 17:21:48 +01:00
02b935bcde
Feat/zapier app ( #2623 )
...
* create basic app structure
* add zapierSubscription model to prisma.schema
* change column name triggerEvent to lower case
* add zapier functionality + enpoints + adjust prisma.schema
* add subscriptionType + refactor code
* add app store information
* create setup page to generate api key
* clean code
* add copy functionality in setup page
* clean code
* add apiKeyType and delte key when uninstalled or new key generated
* clean code
* use Promise.all
* only approve zapier api key
* clean code
* fix findValidApiKey for api keys that don't expire
* fix migrations
* clean code
* small fixes
* add i18n
* add README.md file
* add setup guide to README.md
* fix yarn.lock
* Renames zapierother to zapier
* Typo
* Updates package name
* Rename fixes
* Adds zapier to the App Store seeder
* Adds missing zapier to apiHandlers
* Adds credential relationship to App
* Rename fixes
* Allows tailwind to pick up custom app-store components
* Consolidates zapier_setup_instructions
* Webhook fixes
* Uses app relationship instead of custom type
* Refactors sendPayload to accept webhook object
Instead of individual parameters
* refactoring
* Removes unused zapier check
* Update cancel.ts
* Refactoring
* Removes example comments
* Update InstallAppButton.tsx
* Type fixes
* E2E fixes
* Deletes all user zapier webhooks on integration removal
Co-authored-by: CarinaWolli <wollencarina@gmail.com >
Co-authored-by: zomars <zomars@me.com >
2022-05-03 23:16:59 +00:00
Demian Caldelas and zomars
55587e92c1
Fix a set of E2E bugs causing several CI failures ( #2177 )
...
* Fix E2E bugs causing CI failutes
* Revert setup in dx
Co-authored-by: zomars <zomars@me.com >
2022-03-17 12:36:11 -07:00
sean-brydon and Peer Richelsen
91b732ff1c
Fixing Mobile UI - Event Types ( #2065 )
...
* Event Types - Mobile Ui
* Removing Daily video from default list
Added this for testing purposes
* Removing ZOD + mt on clock
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
2022-03-05 14:42:43 +00:00
Omar López
382d56ab54
Revert "Revert "Webhooks to support event type association"" ( #2033 )
...
* Revert "Revert "Webhooks to support event type association (#1889 )" (#2032 )"
This reverts commit 71e74b8320 .
* Fixes turbo DB deploy
* Update turbo.json
2022-03-02 09:24:57 -07:00
Omar López
71e74b8320
Revert "Webhooks to support event type association ( #1889 )" ( #2032 )
...
This reverts commit d338504856 .
2022-03-02 08:49:35 -07:00
d338504856
Webhooks to support event type association ( #1889 )
...
* --init database and queries
* fixed type check
* added webhook api for event types
* added webhook list in team event
* delete, edit webhook in team event
* updated webhook subtext for event type
* added discord integration to event type webhook
* check fix
* consistency
* minor code improvement
* lint fix
* Adds missing zod schemas
* requested changes pt1 --WIP
* requested changes pt2 --WIP
Co-authored-by: zomars <zomars@me.com >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-02 08:30:13 -07:00
alannnc and Bailey Pumfleet
9851c8f526
fix/secret-premade-event-hidden ( #1999 )
...
* fix/secret-premade-event-hidden
* fix/secret-premade-event-hidden: change hidden to partial in zod custom
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com >
2022-02-28 21:23:17 +00:00
Alex van Andel
652c2e342f
Second go at removing Zod generated classes from our repo ( #1946 )
...
* Second go at removing Zod generated classes from our repo
* Directly reference the _EventTypeModel
2022-02-22 23:19:22 +00:00
Omar López
d702bcf0a3
Regenerates zod files ( #1896 )
2022-02-17 11:26:53 -07:00
Omar López
fe35cf6570
Extract prisma to it's own package ( #1823 )
...
* Moved prisma to packages
* Add missing prisma configs
* Extracts common libs and types
* Build and pipeline fixes
* Adds missing package
* Prisma scripts cleanup
* Updates lint staged
* Type fixes
* Sort imports
* Updates yarn lock file
* Fixes for yarn dx
* Revert "Sort imports"
This reverts commit 076109decab9b9ba307fc03696c3b0da5c4896f3.
* Formatting
* Prevent double TS version
* Fix conflict
* Extracted e2e configs
2022-02-15 13:30:52 -07:00