Dynamic Links re-integrate with availability logic (#3687)

* -re init dynamic links

* typing fix 001

* added missing div closing tag

* added necessary DB column pull to satisfy Type errors

* further type fixes

* WIP

* removed console logs

* some revert

* WIP

* another approach

* enabled dynamic links availability fetch

* Added users to eventTypeObject for consistency

* WIP: Moving user and changing map item name

* Fix user list call

* Removed explicit User type in map

* modify default user attributes

* adds explicit users to EventTypeObject in teams

* Updated availability page

* Updates Availability

* Futher availability change

* Remove explicit user type from slot router

* more fixes

* more fixes WIP

* cleaning up more errors WIP

* object assign used for typesafety

* added check if dynamic booking is allowed by all users

* cleaned up console logs

* clean up

* Improvement

* resolving suggestions by alex

* changes requested by Omar

* Filter out empty usernames instead of accepting null

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-08-12 19:29:29 +00:00
1 parent 870f70fc38
commit ee02112a7c
17 files changed
+197 -101

No files matched your search

+2 -2
View File
@@ -7,6 +7,7 @@ export const availabilityUserSelect = Prisma.validator<Prisma.UserSelect>()({
availability: true,
id: true,
startTime: true,
username: true,
endTime: true,
selectedCalendars: true,
schedules: {
@@ -22,7 +23,6 @@ export const availabilityUserSelect = Prisma.validator<Prisma.UserSelect>()({
export const baseUserSelect = Prisma.validator<Prisma.UserSelect>()({
email: true,
name: true,
username: true,
destinationCalendar: true,
locale: true,
plan: true,
@@ -38,7 +38,7 @@ export const userSelect = Prisma.validator<Prisma.UserArgs>()({
select: {
email: true,
name: true,
username: true,
allowDynamicBooking: true,
destinationCalendar: true,
locale: true,
plan: true,