Commit 048e568
feat: useApiV2AvailableSlots (#21138)
* feat: useApiV2AvailableSlots
* feat: useApiV2AvailableSlots
* fix type check
* remove log
* fix unit tests
* simplify
* feat: add missing params to the slots endpoint
* updated documentation
* _shouldServeCache is correct
* fix types
* fix enabled prop
* fix type
* add embedConnectVersion to query key
* add teamId to slot type
* fix
* add fallback to trpc query if apiv2 fails
* add comment
* remove logs
* fix
* refactor: default to isTeamEvent in query params
* fix: only return v2 slots once fetch is success
* fix last e2e failing test
* add feature flag
* add migration sql
* Update packages/prisma/migrations/20250512153630_add_use_api_v2_for_team_slots_feature_flag/migration.sql
---------
Co-authored-by: hbjORbj <sldisek783@gmail.com>
Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
Co-authored-by: supalarry <laurisskraucis@gmail.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>1 parent ade64c0 commit 048e568
16 files changed
Lines changed: 218 additions & 46 deletions
File tree
- apps
- api/v2
- src/modules/slots/slots-2024-04-15/controllers
- swagger
- web
- lib/team/[slug]/[type]
- modules/team
- docs/api-reference/v2
- packages
- features
- bookings/Booker
- utils
- embed
- flags
- hooks
- schedules/lib/use-schedule
- platform
- atoms
- booker
- hooks
- types/slots/slots-2024-04-15/inputs
- prisma/migrations/20250512153630_add_use_api_v2_for_team_slots_feature_flag
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18293 | 18293 | | |
18294 | 18294 | | |
18295 | 18295 | | |
18296 | | - | |
| 18296 | + | |
18297 | 18297 | | |
18298 | 18298 | | |
18299 | | - | |
| 18299 | + | |
18300 | 18300 | | |
18301 | 18301 | | |
18302 | 18302 | | |
18303 | 18303 | | |
18304 | 18304 | | |
18305 | 18305 | | |
18306 | 18306 | | |
18307 | | - | |
18308 | | - | |
| 18307 | + | |
| 18308 | + | |
18309 | 18309 | | |
18310 | 18310 | | |
18311 | 18311 | | |
| |||
18320 | 18320 | | |
18321 | 18321 | | |
18322 | 18322 | | |
18323 | | - | |
| 18323 | + | |
18324 | 18324 | | |
18325 | 18325 | | |
18326 | | - | |
| 18326 | + | |
18327 | 18327 | | |
18328 | 18328 | | |
18329 | 18329 | | |
18330 | 18330 | | |
18331 | 18331 | | |
18332 | 18332 | | |
18333 | 18333 | | |
18334 | | - | |
18335 | | - | |
| 18334 | + | |
| 18335 | + | |
18336 | 18336 | | |
18337 | 18337 | | |
18338 | 18338 | | |
| |||
18347 | 18347 | | |
18348 | 18348 | | |
18349 | 18349 | | |
18350 | | - | |
| 18350 | + | |
18351 | 18351 | | |
18352 | 18352 | | |
18353 | | - | |
| 18353 | + | |
18354 | 18354 | | |
18355 | 18355 | | |
18356 | 18356 | | |
18357 | 18357 | | |
18358 | 18358 | | |
18359 | 18359 | | |
18360 | 18360 | | |
18361 | | - | |
18362 | | - | |
| 18361 | + | |
| 18362 | + | |
18363 | 18363 | | |
18364 | 18364 | | |
18365 | | - | |
| 18365 | + | |
18366 | 18366 | | |
18367 | 18367 | | |
18368 | | - | |
| 18368 | + | |
18369 | 18369 | | |
18370 | 18370 | | |
18371 | | - | |
| 18371 | + | |
18372 | 18372 | | |
18373 | 18373 | | |
18374 | 18374 | | |
18375 | 18375 | | |
18376 | | - | |
18377 | | - | |
| 18376 | + | |
| 18377 | + | |
18378 | 18378 | | |
18379 | 18379 | | |
18380 | 18380 | | |
| |||
18389 | 18389 | | |
18390 | 18390 | | |
18391 | 18391 | | |
18392 | | - | |
| 18392 | + | |
18393 | 18393 | | |
18394 | 18394 | | |
18395 | | - | |
| 18395 | + | |
18396 | 18396 | | |
18397 | 18397 | | |
18398 | 18398 | | |
18399 | 18399 | | |
18400 | 18400 | | |
18401 | 18401 | | |
18402 | 18402 | | |
18403 | | - | |
| 18403 | + | |
18404 | 18404 | | |
18405 | 18405 | | |
18406 | 18406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
| 122 | + | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16992 | 16992 | | |
16993 | 16993 | | |
16994 | 16994 | | |
16995 | | - | |
| 16995 | + | |
16996 | 16996 | | |
16997 | 16997 | | |
16998 | | - | |
| 16998 | + | |
16999 | 16999 | | |
17000 | 17000 | | |
17001 | 17001 | | |
17002 | | - | |
| 17002 | + | |
17003 | 17003 | | |
17004 | 17004 | | |
17005 | 17005 | | |
| |||
17013 | 17013 | | |
17014 | 17014 | | |
17015 | 17015 | | |
17016 | | - | |
| 17016 | + | |
17017 | 17017 | | |
17018 | 17018 | | |
17019 | | - | |
| 17019 | + | |
17020 | 17020 | | |
17021 | 17021 | | |
17022 | 17022 | | |
17023 | | - | |
| 17023 | + | |
17024 | 17024 | | |
17025 | 17025 | | |
17026 | 17026 | | |
| |||
17034 | 17034 | | |
17035 | 17035 | | |
17036 | 17036 | | |
17037 | | - | |
| 17037 | + | |
17038 | 17038 | | |
17039 | 17039 | | |
17040 | | - | |
| 17040 | + | |
17041 | 17041 | | |
17042 | 17042 | | |
17043 | 17043 | | |
17044 | | - | |
| 17044 | + | |
17045 | 17045 | | |
17046 | | - | |
| 17046 | + | |
17047 | 17047 | | |
17048 | 17048 | | |
17049 | | - | |
| 17049 | + | |
17050 | 17050 | | |
17051 | 17051 | | |
17052 | | - | |
| 17052 | + | |
17053 | 17053 | | |
17054 | 17054 | | |
17055 | 17055 | | |
17056 | | - | |
| 17056 | + | |
17057 | 17057 | | |
17058 | 17058 | | |
17059 | 17059 | | |
| |||
17067 | 17067 | | |
17068 | 17068 | | |
17069 | 17069 | | |
17070 | | - | |
| 17070 | + | |
17071 | 17071 | | |
17072 | 17072 | | |
17073 | | - | |
| 17073 | + | |
17074 | 17074 | | |
17075 | 17075 | | |
17076 | 17076 | | |
17077 | | - | |
| 17077 | + | |
17078 | 17078 | | |
17079 | 17079 | | |
17080 | 17080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
115 | 141 | | |
116 | 142 | | |
117 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments