From 2413e30c6980bd79b80475b7a61343952b5ca3ea Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 20 May 2022 19:25:38 +0200 Subject: [PATCH 1/4] fix: update jest, add zod as dep --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 33dd0c54a7..e08d7881f9 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,9 @@ "@calcom/tsconfig": "*", "@typescript-eslint/eslint-plugin": "^5.25.0", "babel-jest": "^28.1.0", - "jest": "^28.0.3", + "jest": "^28.1.0", "node-mocks-http": "^1.11.0" - }, + }, "dependencies": { "@calcom/prisma": "*", "@sentry/nextjs": "^6.19.7", @@ -34,6 +34,7 @@ "next-transpile-modules": "^9.0.0", "next-validations": "^0.2.0", "typescript": "^4.6.4", - "tzdata": "^1.0.30" + "tzdata": "^1.0.30", + "zod": "^3.16.0" } } From 2fdeb2fc5e21f0c642607283b56b0624b3825aac Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 20 May 2022 19:43:23 +0200 Subject: [PATCH 2/4] fix: no strict in baseparams attendee --- lib/validations/attendee.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validations/attendee.ts b/lib/validations/attendee.ts index cf73bdb4d0..66ae50b2f1 100644 --- a/lib/validations/attendee.ts +++ b/lib/validations/attendee.ts @@ -9,7 +9,7 @@ export const schemaAttendeeBaseBodyParams = Attendee.pick({ email: true, name: true, timeZone: true, -}).partial(); +}); const schemaAttendeeCreateParams = z .object({ From 656ceefe252c351c0a44296de164554d06fdde3d Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 20 May 2022 20:31:15 +0200 Subject: [PATCH 3/4] fix: zod same version as webwebsite --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e08d7881f9..cc5455ed48 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,6 @@ "next-validations": "^0.2.0", "typescript": "^4.6.4", "tzdata": "^1.0.30", - "zod": "^3.16.0" + "zod": "^3.14.4" } } From 496328b03509b87e27ab428fcb3f57ada98d4bdc Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 20 May 2022 20:48:30 +0200 Subject: [PATCH 4/4] fix: add strict true to tsconfig --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 5622a85041..26060017f9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@calcom/tsconfig/nextjs.json", "compilerOptions": { + "strict": true, "baseUrl": ".", "paths": { "@api/*": ["pages/api/*"],