* init bookings endpoint * abstracting functions * e2e tests for bookings * hooks for bookings endpoint * bookings respository fixtures * typings for booking input * fixup * abstract booking info code and use it as handler * import handlers for bookings endpoint * add cancel booking input * add handleCancelBooking handler in platform libraries * cancel booking endpoint * abstract call into its own separate fn * cancel booking hook * e2e test for cancel booking endpoint * fix import * export getBookings function * move getAllUserBookings into lib * add bookings folder to package exports * use getAllUserBookings from lib * fix import path * fix: hooks, endpoint and example for cancel / reschedule / list / booking success page * fix: unit test mock classNames import from lib * fix: unit test mock classNames import from lib --------- Co-authored-by: Morgan Vernay <morgan@cal.com> Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
35 lines
918 B
JSON
35 lines
918 B
JSON
{
|
|
"extends": "@calcom/tsconfig/nextjs.json",
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"~/*": ["modules/*"],
|
|
"@components/*": ["components/*"],
|
|
"@pages/*": ["pages/*"],
|
|
"@lib/*": ["lib/*"],
|
|
"@server/*": ["server/*"],
|
|
"@prisma/client/*": ["@calcom/prisma/client/*"]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"strictNullChecks": true,
|
|
"experimentalDecorators": true
|
|
},
|
|
"include": [
|
|
/* Find a way to not require this - App files don't belong here. */
|
|
"../../packages/app-store/routing-forms/env.d.ts",
|
|
"next-env.d.ts",
|
|
"../../packages/types/*.d.ts",
|
|
"../../packages/types/next-auth.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
".next/types/**/*.ts",
|
|
"../../packages/features/bookings/lib/getBookingInfo.ts",
|
|
"../../packages/features/bookings/lib/getUserBooking.ts"
|
|
],
|
|
"exclude": ["node_modules"]
|
|
}
|