Scheduling infrastructure for absolutely everyone.
fix: typos in apps/api (#19762)
luzpazbe1377e9afbc
diff --git a/apps/api/v1/README.md b/apps/api/v1/README.mdindex a31dec468b4..27828f8caee 100644--- a/apps/api/v1/README.md+++ b/apps/api/v1/README.md@@ -113,7 +113,7 @@ We use it in several ways, but mainly, we first import the auto-generated schemaWe have some shared validations which several resources require, like baseApiParams which parses apiKey in all requests, or querIdAsString or TransformParseInt which deal with the id's coming from req.query.-- **[*]BaseBodyParams** that omits any values from the model that are too sensitive or we don't want to pick when creating a new resource like id, userId, etc.. (those are gotten from context or elswhere)+- **[*]BaseBodyParams** that omits any values from the model that are too sensitive or we don't want to pick when creating a new resource like id, userId, etc.. (those are gotten from context or elsewhere)- **[*]Public** that also omits any values that we don't want to expose when returning the model as a response, which we parse against before returning all resources.@@ -208,7 +208,7 @@ Add this command: `./scripts/vercel-deploy.sh`See `scripts/vercel-deploy.sh` for more info on how the deployment is done.-> _❗ IMORTANT: If you're forking the API repo you will need to update the URLs in both the main repo [`.gitmodules`](https://github.com/calcom/cal.com/blob/main/.gitmodules#L7) and this repo [`./scripts/vercel-deploy.sh`](https://github.com/calcom/api/blob/main/scripts/vercel-deploy.sh#L3) ❗_+> _❗ IMPORTANT: If you're forking the API repo you will need to update the URLs in both the main repo [`.gitmodules`](https://github.com/calcom/cal.com/blob/main/.gitmodules#L7) and this repo [`./scripts/vercel-deploy.sh`](https://github.com/calcom/api/blob/main/scripts/vercel-deploy.sh#L3) ❗_## Environment variablesdiff --git a/apps/api/v1/lib/validations/user.ts b/apps/api/v1/lib/validations/user.tsindex 2b86addd213..1c53556eca4 100644--- a/apps/api/v1/lib/validations/user.ts+++ b/apps/api/v1/lib/validations/user.ts@@ -113,7 +113,7 @@ const schemaUserEditParams = z.object({});// @note: These are the values that are editable via PATCH method on the user Model,-// merging both BaseBodyParams with RequiredParams, and omiting whatever we want at the end.+// merging both BaseBodyParams with RequiredParams, and omitting whatever we want at the end.const schemaUserCreateParams = z.object({email: emailSchema.toLowerCase(),@@ -137,7 +137,7 @@ const schemaUserCreateParams = z.object({});// @note: These are the values that are editable via PATCH method on the user Model,-// merging both BaseBodyParams with RequiredParams, and omiting whatever we want at the end.+// merging both BaseBodyParams with RequiredParams, and omitting whatever we want at the end.export const schemaUserEditBodyParams = schemaUserBaseBodyParams.merge(schemaUserEditParams).omit({})diff --git a/apps/api/v1/next.config.js b/apps/api/v1/next.config.jsindex e58eba76c77..d2d5c311f5d 100644--- a/apps/api/v1/next.config.js+++ b/apps/api/v1/next.config.js@@ -46,7 +46,7 @@ const nextConfig = {async rewrites() {return {afterFiles: [- // This redirects requests recieved at / the root to the /api/ folder.+ // This redirects requests received at / the root to the /api/ folder.{source: "/v:version/:rest*",destination: "/api/v:version/:rest*",diff --git a/apps/api/v1/pages/api/bookings/[id]/_patch.ts b/apps/api/v1/pages/api/bookings/[id]/_patch.tsindex c979216d8ee..0b3ab226917 100644--- a/apps/api/v1/pages/api/bookings/[id]/_patch.ts+++ b/apps/api/v1/pages/api/bookings/[id]/_patch.ts@@ -112,7 +112,7 @@ export async function patchHandler(req: NextApiRequest) {async function checkPermissions(req: NextApiRequest, body: z.infer<typeof schemaBookingEditBodyParams>) {const { userId, isSystemWideAdmin, isOrganizationOwnerOrAdmin } = req;if (body.userId && !isSystemWideAdmin && !isOrganizationOwnerOrAdmin) {- // Organizer has to be a cal user and we can't allow a booking to be transfered to some other cal user's name+ // Organizer has to be a cal user and we can't allow a booking to be transferred to some other cal user's namethrow new HttpError({statusCode: 403,message: "Only admin can change the organizer of a booking",diff --git a/apps/api/v1/pages/api/event-types/_get.ts b/apps/api/v1/pages/api/event-types/_get.tsindex c6bbfa14f95..e8a80b399b6 100644--- a/apps/api/v1/pages/api/event-types/_get.ts+++ b/apps/api/v1/pages/api/event-types/_get.ts@@ -124,7 +124,7 @@ async function defaultScheduleId<T extends DefaultScheduleIdEventTypeBase>({}, {} as { [x: number]: number | null });return eventTypes.map((eventType) => {- // realistically never happens, userId should't be null on personal event types.+ // realistically never happens, userId shouldn't be null on personal event types.if (!eventType.userId) return eventType;return {...eventType,diff --git a/apps/api/v1/pages/api/memberships/[id]/_delete.ts b/apps/api/v1/pages/api/memberships/[id]/_delete.tsindex d3dec0ef3c7..17fae079dbb 100644--- a/apps/api/v1/pages/api/memberships/[id]/_delete.ts+++ b/apps/api/v1/pages/api/memberships/[id]/_delete.ts@@ -28,7 +28,7 @@ import { membershipIdSchema } from "~/lib/validations/membership";* - memberships* responses:* 201:- * description: OK, membership removed successfuly+ * description: OK, membership removed successfully* 400:* description: Bad request. Membership id is invalid.* 401:diff --git a/apps/api/v1/pages/api/users/[userId]/_delete.ts b/apps/api/v1/pages/api/users/[userId]/_delete.tsindex 7b61eb61ec8..8ed534c49d0 100644--- a/apps/api/v1/pages/api/users/[userId]/_delete.ts+++ b/apps/api/v1/pages/api/users/[userId]/_delete.ts@@ -31,7 +31,7 @@ import { schemaQueryUserId } from "~/lib/validations/shared/queryUserId";* - users* responses:* 201:- * description: OK, user removed successfuly+ * description: OK, user removed successfully* 400:* description: Bad request. User id is invalid.* 401:diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/api-key-bookings.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/api-key-bookings.e2e-spec.tsindex 61fb2097491..a2cb4fcee54 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/api-key-bookings.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/api-key-bookings.e2e-spec.ts@@ -189,7 +189,7 @@ describe("Bookings Endpoints 2024-08-13", () => {createdBooking = data;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -238,7 +238,7 @@ describe("Bookings Endpoints 2024-08-13", () => {rescheduledBooking = data;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/booking-fields.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/booking-fields.e2e-spec.tsindex a4916fd555e..2b47e54c184 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/booking-fields.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/booking-fields.e2e-spec.ts@@ -451,7 +451,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.bookingFieldsResponses.name).toEqual(splitName);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -476,7 +476,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.attendees[0].bookingFieldsResponses.name).toEqual(splitName);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -536,7 +536,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.bookingFieldsResponses["video-url"]).toEqual("http://video-url.com");} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/confirm-bookings.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/confirm-bookings.e2e-spec.tsindex 541f4a47c04..43b2c5d6f88 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/confirm-bookings.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/confirm-bookings.e2e-spec.ts@@ -174,7 +174,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(dbBooking?.status).toEqual("ACCEPTED");} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -235,7 +235,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(dbBooking?.status).toEqual("REJECTED");} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.tsindex 2d9e7b3f7b6..4697080f706 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/confirm-emails.e2e-spec.ts@@ -265,7 +265,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => {emailsDisabledSetup.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -322,7 +322,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => {emailsDisabledSetup.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -385,7 +385,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => {emailsEnabledSetup.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -442,7 +442,7 @@ describe("Bookings Endpoints 2024-08-13 confirm emails", () => {emailsEnabledSetup.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/team-emails.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/team-emails.e2e-spec.tsindex d386680d3a7..739adc73a94 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/team-emails.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/team-emails.e2e-spec.ts@@ -570,7 +570,7 @@ describe("Bookings Endpoints 2024-08-13 team emails", () => {emailsDisabledSetup.collectiveEventType.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -610,7 +610,7 @@ describe("Bookings Endpoints 2024-08-13 team emails", () => {emailsDisabledSetup.roundRobinEventType.currentHostId = responseBody.data.hosts[0].id;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -787,7 +787,7 @@ describe("Bookings Endpoints 2024-08-13 team emails", () => {emailsEnabledSetup.collectiveEventType.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -827,7 +827,7 @@ describe("Bookings Endpoints 2024-08-13 team emails", () => {emailsEnabledSetup.roundRobinEventType.currentHostId = responseBody.data.hosts[0].id;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/user-emails.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/user-emails.e2e-spec.tsindex b45fe865d2a..30d5ee3f5a9 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/user-emails.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/emails/user-emails.e2e-spec.ts@@ -261,7 +261,7 @@ describe("Bookings Endpoints 2024-08-13 user emails", () => {emailsDisabledSetup.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -381,7 +381,7 @@ describe("Bookings Endpoints 2024-08-13 user emails", () => {emailsEnabledSetup.createdBookingUid = responseBody.data.uid;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/recurring-bookings.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/recurring-bookings.e2e-spec.tsindex cd17ec46beb..f803f1cc7c1 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/recurring-bookings.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/recurring-bookings.e2e-spec.ts@@ -684,7 +684,7 @@ describe("Bookings Endpoints 2024-08-13", () => {});});- it("should cancel all remaning recurrences", async () => {+ it("should cancel all remaining recurrences", async () => {const recurringBookingUid = recurringBooking[0].recurringBookingUid;return request(app.getHttpServer())diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/team-bookings.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/team-bookings.e2e-spec.tsindex 23769c99499..29cc819304b 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/team-bookings.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/team-bookings.e2e-spec.ts@@ -401,7 +401,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.absentHost).toEqual(false);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -455,7 +455,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.absentHost).toEqual(false);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -515,7 +515,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.absentHost).toEqual(false);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.tsindex a8ef67f9651..f8fa68c0c24 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/user-bookings.e2e-spec.ts@@ -407,7 +407,7 @@ describe("Bookings Endpoints 2024-08-13", () => {createdBooking = data;} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -547,7 +547,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.createdAt).toEqual(createdBooking.createdAt);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -607,7 +607,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.absentHost).toEqual(createdRecurringBooking[0].absentHost);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -1480,7 +1480,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.cancelledByEmail).toEqual(cancelledByEmail);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -1530,7 +1530,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.rescheduledByEmail).toEqual(rescheduledByEmail);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/variable-length-bookings.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/variable-length-bookings.e2e-spec.tsindex 3c316aed5c1..66cd544e846 100644--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/variable-length-bookings.e2e-spec.ts+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/variable-length-bookings.e2e-spec.ts@@ -194,7 +194,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.duration).toEqual(variableLengthEventType.length);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});@@ -239,7 +239,7 @@ describe("Bookings Endpoints 2024-08-13", () => {expect(data.duration).toEqual(lengthInMinutes);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/modules/destination-calendars/inputs/destination-calendars.input.ts b/apps/api/v2/src/modules/destination-calendars/inputs/destination-calendars.input.tsindex dc584c4ad8a..2f067d602a7 100644--- a/apps/api/v2/src/modules/destination-calendars/inputs/destination-calendars.input.ts+++ b/apps/api/v2/src/modules/destination-calendars/inputs/destination-calendars.input.ts@@ -28,7 +28,7 @@ export class DestinationCalendarsInputBodyDto {@ApiProperty({example: "https://caldav.icloud.com/26962146906/calendars/1644422A-1945-4438-BBC0-4F0Q23A57R7S/",description:- "Unique identifier used to represent the specfic calendar, as returned by the /calendars endpoint",+ "Unique identifier used to represent the specific calendar, as returned by the /calendars endpoint",type: "string",required: true,})diff --git a/apps/api/v2/src/modules/event-types/controllers/event-types-webhooks.controller.e2e-spec.ts b/apps/api/v2/src/modules/event-types/controllers/event-types-webhooks.controller.e2e-spec.tsindex 868e76d5cf4..25a832fc9ee 100644--- a/apps/api/v2/src/modules/event-types/controllers/event-types-webhooks.controller.e2e-spec.ts+++ b/apps/api/v2/src/modules/event-types/controllers/event-types-webhooks.controller.e2e-spec.ts@@ -282,13 +282,13 @@ describe("EventTypes WebhooksController (e2e)", () => {});});- it("/event-types/:eventTypeId/webhooks/:webhookId (DELETE) shoud fail to delete a webhook that does not exist", () => {+ it("/event-types/:eventTypeId/webhooks/:webhookId (DELETE) should fail to delete a webhook that does not exist", () => {return request(app.getHttpServer()).delete(`/v2/event-types/${eventType.id}/webhooks/1234453`).expect(404);});- it("/event-types/:eventTypeId/webhooks/:webhookId (DELETE) shoud fail to delete a webhook that does not belong to user", () => {+ it("/event-types/:eventTypeId/webhooks/:webhookId (DELETE) should fail to delete a webhook that does not belong to user", () => {return request(app.getHttpServer()).delete(`/v2/event-types/${otherEventType.id}/webhooks/${otherWebhook.id}`).expect(403);diff --git a/apps/api/v2/src/modules/jwt/jwt.service.ts b/apps/api/v2/src/modules/jwt/jwt.service.tsindex c50e53ddb4d..b197636ad97 100644--- a/apps/api/v2/src/modules/jwt/jwt.service.ts+++ b/apps/api/v2/src/modules/jwt/jwt.service.ts@@ -23,7 +23,7 @@ export class JwtService {}getIssuedAtTime() {- // divided by 1000 because iat (issued at time) is in seconds (not milliseconds) as informed by JWT speficication+ // divided by 1000 because iat (issued at time) is in seconds (not milliseconds) as informed by JWT specificationreturn Math.floor(Date.now() / 1000);}}diff --git a/apps/api/v2/src/modules/oauth-clients/controllers/oauth-client-webhooks/oauth-client-webhooks.controller.e2e-spec.ts b/apps/api/v2/src/modules/oauth-clients/controllers/oauth-client-webhooks/oauth-client-webhooks.controller.e2e-spec.tsindex fafc5792df3..7979017decf 100644--- a/apps/api/v2/src/modules/oauth-clients/controllers/oauth-client-webhooks/oauth-client-webhooks.controller.e2e-spec.ts+++ b/apps/api/v2/src/modules/oauth-clients/controllers/oauth-client-webhooks/oauth-client-webhooks.controller.e2e-spec.ts@@ -274,7 +274,7 @@ describe("OAuth client WebhooksController (e2e)", () => {.expect(403);});- it("/oauth-clients/:oAuthClientId/webhooks/:webhookId (DELETE) shoud fail to delete a webhook that does not exist", () => {+ it("/oauth-clients/:oAuthClientId/webhooks/:webhookId (DELETE) should fail to delete a webhook that does not exist", () => {return request(app.getHttpServer()).delete(`/v2/oauth-clients/${oAuthClient.id}/webhooks/1234453`).expect(404);diff --git a/apps/api/v2/src/modules/organizations/schedules/organizations-schedules.e2e-spec.ts b/apps/api/v2/src/modules/organizations/schedules/organizations-schedules.e2e-spec.tsindex 0a9b6b01477..7cb7b5e75b2 100644--- a/apps/api/v2/src/modules/organizations/schedules/organizations-schedules.e2e-spec.ts+++ b/apps/api/v2/src/modules/organizations/schedules/organizations-schedules.e2e-spec.ts@@ -94,7 +94,7 @@ describe("Organizations Schedules Endpoints", () => {return request(app.getHttpServer()).get(`/v2/organizations/${org.id}/schedules`).expect(403);});- it("should mot be able to get user schedules", async () => {+ it("should not be able to get user schedules", async () => {return request(app.getHttpServer()).get(`/v2/organizations/${org.id}/users/${user.id}/schedules/`).expect(403);diff --git a/apps/api/v2/src/modules/organizations/teams/bookings/organizations-teams-bookings.controller.e2e-spec.ts b/apps/api/v2/src/modules/organizations/teams/bookings/organizations-teams-bookings.controller.e2e-spec.tsindex 590f8c6bdd8..d55112637f2 100644--- a/apps/api/v2/src/modules/organizations/teams/bookings/organizations-teams-bookings.controller.e2e-spec.ts+++ b/apps/api/v2/src/modules/organizations/teams/bookings/organizations-teams-bookings.controller.e2e-spec.ts@@ -257,7 +257,7 @@ describe("Organizations TeamsBookings Endpoints 2024-08-13", () => {expect(data.absentHost).toEqual(false);} else {throw new Error(- "Invalid response data - expected booking but received array of possibily recurring bookings"+ "Invalid response data - expected booking but received array of possibly recurring bookings");}});diff --git a/apps/api/v2/src/modules/organizations/webhooks/controllers/organizations-webhooks.e2e-spec.ts b/apps/api/v2/src/modules/organizations/webhooks/controllers/organizations-webhooks.e2e-spec.tsindex 7edf39e965c..2ac01a57801 100644--- a/apps/api/v2/src/modules/organizations/webhooks/controllers/organizations-webhooks.e2e-spec.ts+++ b/apps/api/v2/src/modules/organizations/webhooks/controllers/organizations-webhooks.e2e-spec.ts@@ -200,11 +200,11 @@ describe("WebhooksController (e2e)", () => {});});- it("/organizations/:orgId/webhooks/:webhookId (DELETE) shoud fail to delete a webhook that does not exist", () => {+ it("/organizations/:orgId/webhooks/:webhookId (DELETE) should fail to delete a webhook that does not exist", () => {return request(app.getHttpServer()).delete(`/v2/organizations/${org.id}/webhooks/12993`).expect(403);});- it("/organizations/:orgId/webhooks/:webhookId (DELETE) shoud fail to delete a webhook that does not belong to org", () => {+ it("/organizations/:orgId/webhooks/:webhookId (DELETE) should fail to delete a webhook that does not belong to org", () => {return request(app.getHttpServer()).delete(`/v2/organizations/${org.id}/webhooks/${otherWebhook.id}`).expect(403);diff --git a/apps/api/v2/src/modules/webhooks/controllers/webhooks.controller.e2e-spec.ts b/apps/api/v2/src/modules/webhooks/controllers/webhooks.controller.e2e-spec.tsindex bb8e1b9e618..43c70152d16 100644--- a/apps/api/v2/src/modules/webhooks/controllers/webhooks.controller.e2e-spec.ts+++ b/apps/api/v2/src/modules/webhooks/controllers/webhooks.controller.e2e-spec.ts@@ -180,11 +180,11 @@ describe("WebhooksController (e2e)", () => {});});- it("/webhooks/:webhookId (DELETE) shoud fail to delete a webhook that does not exist", () => {+ it("/webhooks/:webhookId (DELETE) should fail to delete a webhook that does not exist", () => {return request(app.getHttpServer()).delete(`/v2/webhooks/12993`).expect(404);});- it("/webhooks/:webhookId (DELETE) shoud fail to delete a webhook that does not belong to user", () => {+ it("/webhooks/:webhookId (DELETE) should fail to delete a webhook that does not belong to user", () => {return request(app.getHttpServer()).delete(`/v2/webhooks/${otherWebhook.id}`).expect(403);});});diff --git a/apps/api/v2/swagger/documentation.json b/apps/api/v2/swagger/documentation.jsonindex dffaaa520d8..c224b0f67b5 100644--- a/apps/api/v2/swagger/documentation.json+++ b/apps/api/v2/swagger/documentation.json@@ -18381,7 +18381,7 @@"externalId": {"type": "string","example": "https://caldav.icloud.com/26962146906/calendars/1644422A-1945-4438-BBC0-4F0Q23A57R7S/",- "description": "Unique identifier used to represent the specfic calendar, as returned by the /calendars endpoint"+ "description": "Unique identifier used to represent the specific calendar, as returned by the /calendars endpoint"},"delegationCredentialId": {"type": "string"