From be1377e9afbcdb0f5356d24ed65d550e681e0b38 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Wed, 5 Mar 2025 09:29:11 -0500 Subject: [PATCH] fix: typos in apps/api (#19762) Found via codespell Co-authored-by: Tushar Bhatt <95581504+TusharBhatt1@users.noreply.github.com> --- apps/api/v1/README.md | 4 ++-- apps/api/v1/lib/validations/user.ts | 4 ++-- apps/api/v1/next.config.js | 2 +- apps/api/v1/pages/api/bookings/[id]/_patch.ts | 2 +- apps/api/v1/pages/api/event-types/_get.ts | 2 +- apps/api/v1/pages/api/memberships/[id]/_delete.ts | 2 +- apps/api/v1/pages/api/users/[userId]/_delete.ts | 2 +- .../controllers/e2e/api-key-bookings.e2e-spec.ts | 4 ++-- .../controllers/e2e/booking-fields.e2e-spec.ts | 6 +++--- .../controllers/e2e/confirm-bookings.e2e-spec.ts | 4 ++-- .../controllers/e2e/emails/confirm-emails.e2e-spec.ts | 8 ++++---- .../controllers/e2e/emails/team-emails.e2e-spec.ts | 8 ++++---- .../controllers/e2e/emails/user-emails.e2e-spec.ts | 4 ++-- .../controllers/e2e/recurring-bookings.e2e-spec.ts | 2 +- .../controllers/e2e/team-bookings.e2e-spec.ts | 6 +++--- .../controllers/e2e/user-bookings.e2e-spec.ts | 10 +++++----- .../e2e/variable-length-bookings.e2e-spec.ts | 4 ++-- .../inputs/destination-calendars.input.ts | 2 +- .../event-types-webhooks.controller.e2e-spec.ts | 4 ++-- apps/api/v2/src/modules/jwt/jwt.service.ts | 2 +- .../oauth-client-webhooks.controller.e2e-spec.ts | 2 +- .../schedules/organizations-schedules.e2e-spec.ts | 2 +- ...organizations-teams-bookings.controller.e2e-spec.ts | 2 +- .../controllers/organizations-webhooks.e2e-spec.ts | 4 ++-- .../controllers/webhooks.controller.e2e-spec.ts | 4 ++-- apps/api/v2/swagger/documentation.json | 2 +- 26 files changed, 49 insertions(+), 49 deletions(-) diff --git a/apps/api/v1/README.md b/apps/api/v1/README.md index a31dec468b..27828f8cae 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 schema We 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 variables diff --git a/apps/api/v1/lib/validations/user.ts b/apps/api/v1/lib/validations/user.ts index 2b86addd21..1c53556eca 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.js index e58eba76c7..d2d5c311f5 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.ts index c979216d8e..0b3ab22691 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) { 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 name throw 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.ts index c6bbfa14f9..e8a80b399b 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({ }, {} 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.ts index d3dec0ef3c..17fae079db 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.ts index 7b61eb61ec..8ed534c49d 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.ts index 61fb209749..a2cb4fcee5 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.ts index a4916fd555..2b47e54c18 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.ts index 541f4a47c0..43b2c5d6f8 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.ts index 2d9e7b3f7b..4697080f70 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.ts index d386680d3a..739adc73a9 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.ts index b45fe865d2..30d5ee3f5a 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.ts index cd17ec46be..f803f1cc7c 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.ts index 23769c9949..29cc819304 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.ts index a8ef67f965..f8fa68c0c2 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.ts index 3c316aed5c..66cd544e84 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.ts index dc584c4ad8..2f067d602a 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.ts index 868e76d5cf..25a832fc9e 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.ts index c50e53ddb4..b197636ad9 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 specification return 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.ts index fafc5792df..7979017dec 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.ts index 0a9b6b0147..7cb7b5e75b 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.ts index 590f8c6bdd..d55112637f 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.ts index 7edf39e965..2ac01a5780 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.ts index bb8e1b9e61..43c70152d1 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.json index dffaaa520d..c224b0f67b 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"