-
Notifications
You must be signed in to change notification settings - Fork 12k
refactor: Remove trpc/server dependency from @calcom/atoms #26717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
5d7d4a3
mv useTeamMembersWithSegment
hbjORbj 4d6ec0e
remove
hbjORbj f3fe6a1
fix ts error
hbjORbj 9650398
remove
hbjORbj 6aa695f
remove
hbjORbj d3d7935
Merge remote-tracking branch 'origin/main' into refactor/move-trpc-de…
hbjORbj 1d9c10d
remove
hbjORbj 47f9518
biome rule
hbjORbj e5c524c
wip
hbjORbj b1180b2
refactor: remove remaining @calcom/trpc/server imports from atoms
devin-ai-integration[bot] cec974e
Merge remote-tracking branch 'origin/main' into refactor/move-trpc-de…
hbjORbj e89867c
Merge remote-tracking branch 'origin/refactor/move-trpc-dependency-fr…
hbjORbj 2ac36ed
fix
hbjORbj 18f35a2
fix: add userId to Schedule type and create ScheduleForList type
devin-ai-integration[bot] 140f868
Merge branch 'refactor/move-trpc-dependency-from-atoms-2' of https://…
devin-ai-integration[bot] 8b206b3
fix
hbjORbj 435f6a4
fix
hbjORbj f0ba531
fix
hbjORbj 66b6762
fix
hbjORbj 2ce6798
Merge remote-tracking branch 'origin/main' into refactor/move-trpc-de…
hbjORbj 47255e1
fix: correct fromUser/toUser types in GetAvailableSlotsResponse
devin-ai-integration[bot] 1eaa663
Merge branch 'refactor/move-trpc-dependency-from-atoms-2' of https://…
devin-ai-integration[bot] c1d3bbb
fix: correct TypeScript operator precedence in GetAvailabilityListHan…
devin-ai-integration[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| type Schedule = { | ||
| id: number; | ||
| userId: number; | ||
| name: string; | ||
| timeZone: string | null; | ||
| }; | ||
|
|
||
| export type CreateScheduleHandlerReturn = { | ||
| schedule: Schedule; | ||
| }; | ||
|
|
||
| export type DuplicateScheduleHandlerReturn = { | ||
| schedule: Schedule; | ||
| }; | ||
|
|
||
| export type GetAvailabilityListHandlerReturn = { | ||
| schedules: (Omit<Schedule, "userId"> & { | ||
| availability: { | ||
| id: number; | ||
| userId: number | null; | ||
| eventTypeId: number | null; | ||
| days: number[]; | ||
| startTime: Date; | ||
| endTime: Date; | ||
| date: Date | null; | ||
| scheduleId: number | null; | ||
| }[]; | ||
| isDefault: boolean; | ||
| })[]; | ||
| }; | ||
|
|
||
| export type CreateScheduleInput = { | ||
| name: string; | ||
| schedule?: { start: Date; end: Date }[][]; | ||
| eventTypeId?: number; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,14 +76,6 @@ export const reserveSlotSchema = z | |
| "Either slotUtcStartDate, slotUtcEndDate or eventTypeId should be filled in." | ||
| ); | ||
|
|
||
| export type Slot = { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved to atoms/booker/types |
||
| time: string; | ||
| userIds?: number[]; | ||
| attendees?: number; | ||
| bookingUid?: string; | ||
| users?: string[]; | ||
| }; | ||
|
|
||
| export const removeSelectedSlotSchema = z.object({ | ||
| uid: z.string().nullable(), | ||
| }); | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index.ts file doesn't exist in
/bookerdirectory