Skip to content

Scheduling infrastructure for absolutely everyone.

feat: calendar-links API (#19777)

Hariom Balharab1bcbe9dfb95
diff --git a/PR_TODO.md b/PR_TODO.md
new file mode 100644
index 00000000000..dde9bb02beb
--- /dev/null
+++ b/PR_TODO.md
@@ -0,0 +1,9 @@
+- [x] Refactor individual calendar links functions to create the variables and just use the variables in the string literal instead of functions being called in the string literal
+- [x] Must ensure during review that logically there is no change in the functionality of booking-single-view.tsx
+
+
+- Testing
+- [x] Verify Google Calendar, Ics, Office 365 - Compare with Production
+ - [x] Event Description, Booking title, Booking location, Start time, End time - All correct
+ - [x] Recurring event?
+ - [x] Dynamic Group booking?
\ No newline at end of file
diff --git a/apps/api/v2/README.md b/apps/api/v2/README.md
index e67f17751e6..f8206c0d212 100644
--- a/apps/api/v2/README.md
+++ b/apps/api/v2/README.md
@@ -54,9 +54,29 @@ CALCOM_LICENSE_KEY=c4234812-12ab-42s6-a1e3-55bedd4a5bb
## Running the app
+# Development
+
```bash
-# development
$ yarn run start
+```
+
+OR if you don't want to use docker, you can run following command.
+
+```bash
+$ yarn dev:no-docker
+```
+
+Additionally you can run following command(in different terminal) to ensure that any change in any of the dependencies is rebuilt and detected. It watches platform-libraries, platform-constants, platform-enums, platform-utils, platform-types.
+
+```bash
+$ yarn run dev:build:watch
+```
+
+If you are making changes in packages/platform/libraries, you should run the following command too that would connect your local packages/platform/libraries to the api/v2
+
+```bash
+$ yarn local
+```
# watch mode
$ yarn run start:dev
@@ -65,6 +85,9 @@ $ yarn run start:dev
$ yarn run start:prod
```
+
+
+
## Test
```bash
@@ -74,6 +97,12 @@ $ yarn run test
# e2e tests
$ yarn run test:e2e
+# e2e tests in watch mode
+$ yarn test:e2e:watch
+
+# run specific e2e test file in watch mode
+$ yarn test:e2e:watch --testPathPattern=filePath
+
# test coverage
$ yarn run test:cov
```
diff --git a/apps/api/v2/package.json b/apps/api/v2/package.json
index 8be39dea7c4..e8337f1b41f 100644
--- a/apps/api/v2/package.json
+++ b/apps/api/v2/package.json
@@ -9,8 +9,14 @@
"build": "yarn dev:build && nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
- "dev:build:watch": "yarn workspace @calcom/platform-constants build:watch & yarn workspace @calcom/platform-utils build:watch & yarn workspace @calcom/platform-types build:watch",
- "dev:build": "yarn workspace @calcom/platform-constants build && yarn workspace @calcom/platform-enums build && yarn workspace @calcom/platform-utils build && yarn workspace @calcom/platform-types build ",
+ "dev:build:watch": "concurrently --names \"libraries,lru-fix,constants,enums,utils,types\" \"yarn _dev:build:watch:libraries\" \"yarn _dev:build:watch:libraries:lru-fix\" \"yarn _dev:build:watch:constants\" \"yarn _dev:build:watch:enums\" \"yarn _dev:build:watch:utils\" \"yarn _dev:build:watch:types\"",
+ "_dev:build:watch:libraries": "yarn workspace @calcom/platform-libraries build:watch",
+ "_dev:build:watch:libraries:lru-fix": "yarn workspace @calcom/platform-libraries watch-lru-fix",
+ "_dev:build:watch:constants": "yarn workspace @calcom/platform-constants build:watch",
+ "_dev:build:watch:enums": "yarn workspace @calcom/platform-enums build:watch",
+ "_dev:build:watch:utils": "yarn workspace @calcom/platform-utils build:watch",
+ "_dev:build:watch:types": "yarn workspace @calcom/platform-types build:watch",
+ "dev:build": "yarn workspace @calcom/platform-constants build && yarn workspace @calcom/platform-enums build && yarn workspace @calcom/platform-utils build && yarn workspace @calcom/platform-types build",
"dev": "yarn dev:build && ts-node scripts/docker-start.ts && yarn copy-swagger-module && yarn start --watch",
"dev:no-docker": "yarn dev:build && yarn copy-swagger-module && yarn start --watch",
"start:debug": "nest start --debug --watch",
@@ -32,7 +38,7 @@
"@axiomhq/winston": "^1.2.0",
"@calcom/platform-constants": "*",
"@calcom/platform-enums": "*",
- "@calcom/platform-libraries": "npm:@calcom/[email protected]",
+ "@calcom/platform-libraries": "npm:@calcom/[email protected]",
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]",
"@calcom/platform-types": "*",
"@calcom/platform-utils": "*",
@@ -57,6 +63,7 @@
"bull": "^4.12.4",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
+ "concurrently": "^9.1.2",
"cookie-parser": "^1.4.6",
"dotenv": "^16.3.1",
"fs-extra": "^11.2.0",
diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/bookings.repository.ts b/apps/api/v2/src/ee/bookings/2024-08-13/bookings.repository.ts
index 03b9d0410fc..c8c1d9aea54 100644
--- a/apps/api/v2/src/ee/bookings/2024-08-13/bookings.repository.ts
+++ b/apps/api/v2/src/ee/bookings/2024-08-13/bookings.repository.ts
@@ -1,7 +1,7 @@
import { PrismaReadService } from "@/modules/prisma/prisma-read.service";
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
import { Injectable } from "@nestjs/common";
-
+import type { Prisma } from "@prisma/client";
@Injectable()
export class BookingsRepository_2024_08_13 {
constructor(private readonly dbRead: PrismaReadService, private readonly dbWrite: PrismaWriteService) {}
@@ -98,7 +98,7 @@ export class BookingsRepository_2024_08_13 {
}
async getByUidWithAttendeesAndUserAndEvent(uid: string) {
- return this.dbRead.prisma.booking.findUnique({
+ const booking = await this.dbRead.prisma.booking.findUnique({
where: {
uid,
},
@@ -108,6 +108,15 @@ export class BookingsRepository_2024_08_13 {
eventType: true,
},
});
+ if (!booking) {
+ return null;
+ }
+
+ return {
+ ...booking,
+ responses: booking.responses as Prisma.JsonObject,
+ metadata: booking.metadata as Prisma.JsonObject | null,
+ };
}
async getByUidWithAttendeesWithBookingSeatAndUserAndEvent(uid: string) {
diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/bookings.controller.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/bookings.controller.ts
index 91d24e8d26f..1c1585abfab 100644
--- a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/bookings.controller.ts
+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/bookings.controller.ts
@@ -1,4 +1,5 @@
import { BookingUidGuard } from "@/ee/bookings/2024-08-13/guards/booking-uid.guard";
+import { CalendarLinksOutput_2024_08_13 } from "@/ee/bookings/2024-08-13/outputs/calendar-links.output";
import { CancelBookingOutput_2024_08_13 } from "@/ee/bookings/2024-08-13/outputs/cancel-booking.output";
import { CreateBookingOutput_2024_08_13 } from "@/ee/bookings/2024-08-13/outputs/create-booking.output";
import { MarkAbsentBookingOutput_2024_08_13 } from "@/ee/bookings/2024-08-13/outputs/mark-absent.output";
@@ -335,4 +336,22 @@ export class BookingsController_2024_08_13 {
data: booking,
};
}
+
+ @Get("/:bookingUid/calendar-links")
+ @UseGuards(ApiAuthGuard, BookingUidGuard)
+ @Permissions([BOOKING_READ])
+ @ApiOperation({
+ summary: "Get 'Add to Calendar' links for a booking",
+ description:
+ "Retrieve calendar links for a booking that can be used to add the event to various calendar services. Returns links for Google Calendar, Microsoft Office, Microsoft Outlook, and a downloadable ICS file.",
+ })
+ @HttpCode(HttpStatus.OK)
+ async getCalendarLinks(@Param("bookingUid") bookingUid: string): Promise<CalendarLinksOutput_2024_08_13> {
+ const calendarLinks = await this.bookingsService.getCalendarLinks(bookingUid);
+
+ return {
+ status: SUCCESS_STATUS,
+ data: calendarLinks,
+ };
+ }
}
diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/calendar-links.e2e-spec.ts b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/calendar-links.e2e-spec.ts
new file mode 100644
index 00000000000..1e8bdde13c9
--- /dev/null
+++ b/apps/api/v2/src/ee/bookings/2024-08-13/controllers/e2e/calendar-links.e2e-spec.ts
@@ -0,0 +1,180 @@
+import { bootstrap } from "@/app";
+import { AppModule } from "@/app.module";
+import { CreateScheduleInput_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/inputs/create-schedule.input";
+import { SchedulesModule_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/schedules.module";
+import { SchedulesService_2024_04_15 } from "@/ee/schedules/schedules_2024_04_15/services/schedules.service";
+import { PermissionsGuard } from "@/modules/auth/guards/permissions/permissions.guard";
+import { PrismaModule } from "@/modules/prisma/prisma.module";
+import { UsersModule } from "@/modules/users/users.module";
+import { INestApplication } from "@nestjs/common";
+import { NestExpressApplication } from "@nestjs/platform-express";
+import { Test } from "@nestjs/testing";
+import { User } from "@prisma/client";
+import * as request from "supertest";
+import { BookingsRepositoryFixture } from "test/fixtures/repository/bookings.repository.fixture";
+import { EventTypesRepositoryFixture } from "test/fixtures/repository/event-types.repository.fixture";
+import { OAuthClientRepositoryFixture } from "test/fixtures/repository/oauth-client.repository.fixture";
+import { TeamRepositoryFixture } from "test/fixtures/repository/team.repository.fixture";
+import { UserRepositoryFixture } from "test/fixtures/repository/users.repository.fixture";
+import { randomString } from "test/utils/randomString";
+import { withApiAuth } from "test/utils/withApiAuth";
+
+import { CAL_API_VERSION_HEADER, SUCCESS_STATUS, VERSION_2024_08_13 } from "@calcom/platform-constants";
+import { Booking, PlatformOAuthClient, Team } from "@calcom/prisma/client";
+
+describe("Bookings Endpoints 2024-08-13", () => {
+ describe("Calendar Links", () => {
+ let app: INestApplication;
+ let organization: Team;
+
+ let userRepositoryFixture: UserRepositoryFixture;
+ let bookingsRepositoryFixture: BookingsRepositoryFixture;
+ let schedulesService: SchedulesService_2024_04_15;
+ let eventTypesRepositoryFixture: EventTypesRepositoryFixture;
+ let oauthClientRepositoryFixture: OAuthClientRepositoryFixture;
+ let oAuthClient: PlatformOAuthClient;
+ let teamRepositoryFixture: TeamRepositoryFixture;
+
+ const userEmail = `calendar-links-2024-08-13-user-${randomString()}@api.com`;
+ let user: User;
+ let booking: Booking;
+
+ beforeAll(async () => {
+ const moduleRef = await withApiAuth(
+ userEmail,
+ Test.createTestingModule({
+ imports: [AppModule, PrismaModule, UsersModule, SchedulesModule_2024_04_15],
+ })
+ )
+ .overrideGuard(PermissionsGuard)
+ .useValue({
+ canActivate: () => true,
+ })
+ .compile();
+
+ userRepositoryFixture = new UserRepositoryFixture(moduleRef);
+ bookingsRepositoryFixture = new BookingsRepositoryFixture(moduleRef);
+ eventTypesRepositoryFixture = new EventTypesRepositoryFixture(moduleRef);
+ oauthClientRepositoryFixture = new OAuthClientRepositoryFixture(moduleRef);
+ teamRepositoryFixture = new TeamRepositoryFixture(moduleRef);
+ schedulesService = moduleRef.get<SchedulesService_2024_04_15>(SchedulesService_2024_04_15);
+
+ organization = await teamRepositoryFixture.create({
+ name: `confirm-bookings-2024-08-13-organization-${randomString()}`,
+ });
+ oAuthClient = await createOAuthClient(organization.id);
+
+ user = await userRepositoryFixture.create({
+ email: userEmail,
+ platformOAuthClients: {
+ connect: {
+ id: oAuthClient.id,
+ },
+ },
+ });
+
+ const userSchedule: CreateScheduleInput_2024_04_15 = {
+ name: `calendar-links-2024-08-13-${randomString()}-schedule`,
+ timeZone: "Europe/Rome",
+ isDefault: true,
+ };
+ await schedulesService.createUserSchedule(user.id, userSchedule);
+ const event = await eventTypesRepositoryFixture.create(
+ {
+ title: `calendar-links-2024-08-13-${randomString()}-event-type`,
+ slug: `calendar-links-2024-08-13-${randomString()}-event-type-slug`,
+ length: 60,
+ },
+ user.id
+ );
+
+ booking = await bookingsRepositoryFixture.create({
+ user: {
+ connect: {
+ id: user.id,
+ },
+ },
+ startTime: new Date(Date.UTC(2020, 0, 8, 12, 0, 0)),
+ endTime: new Date(Date.UTC(2020, 0, 8, 13, 0, 0)),
+ uid: `calendar-links-2024-08-13-booking-${randomString()}`,
+ title: "Test Booking",
+ eventType: {
+ connect: {
+ id: event.id,
+ },
+ },
+ location: "integrations:daily",
+ customInputs: {},
+ metadata: {},
+ attendees: {
+ create: {
+ email: "[email protected]",
+ name: "John Doe",
+ locale: "en",
+ timeZone: "America/New_York",
+ },
+ },
+ responses: {
+ create: {
+ name: "John Doe",
+ email: "[email protected]",
+ },
+ },
+ });
+
+
+ app = moduleRef.createNestApplication();
+ bootstrap(app as NestExpressApplication);
+
+ await app.init();
+ });
+
+ async function createOAuthClient(organizationId: number) {
+ const data = {
+ logo: "logo-url",
+ name: "name",
+ redirectUris: ["http://localhost:5555"],
+ permissions: 32,
+ };
+ const secret = "secret";
+
+ const client = await oauthClientRepositoryFixture.create(organizationId, data, secret);
+ return client;
+ }
+
+ it("should get calendar links for a booking", async () => {
+ const response = await request(app.getHttpServer())
+ .get(`/v2/bookings/${booking.uid}/calendar-links`)
+ .set(CAL_API_VERSION_HEADER, VERSION_2024_08_13)
+ .expect(200);
+
+ expect(response.body.status).toEqual(SUCCESS_STATUS);
+ expect(response.body.data).toBeDefined();
+
+ const googleCalendarLink = response.body.data.find((item: { id: string }) => item.id === 'googleCalendar').link;
+ const microsoftOfficeLink = response.body.data.find((item: { id: string }) => item.id === 'microsoftOffice').link;
+ const microsoftOutlookLink = response.body.data.find((item: { id: string }) => item.id === 'microsoftOutlook').link;
+ const icsLink = response.body.data.find((item: { id: string }) => item.id === 'ics').link;
+
+ expect(googleCalendarLink).toMatch(/^https:\/\/calendar\.google\.com\//);
+ expect(microsoftOfficeLink).toMatch(/^https:\/\/outlook\.office\.com\//);
+ expect(microsoftOutlookLink).toMatch(/^https:\/\/outlook\.live\.com\//);
+ expect(icsLink).toMatch(/^data:text\/calendar,/);
+ });
+
+ it("should return 404 for non-existent booking", async () => {
+ await request(app.getHttpServer())
+ .get(`/v2/bookings/non-existent-uid/calendar-links`)
+ .set(CAL_API_VERSION_HEADER, VERSION_2024_08_13)
+ .expect(404);
+ });
+
+ afterAll(async () => {
+ await oauthClientRepositoryFixture.delete(oAuthClient.id);
+ await teamRepositoryFixture.delete(organization.id);
+ await userRepositoryFixture.deleteByEmail(user.email);
+ await bookingsRepositoryFixture.deleteAllBookings(user.id, user.email);
+ await app.close();
+ });
+ });
+});
diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/outputs/calendar-links.output.ts b/apps/api/v2/src/ee/bookings/2024-08-13/outputs/calendar-links.output.ts
new file mode 100644
index 00000000000..5299269365e
--- /dev/null
+++ b/apps/api/v2/src/ee/bookings/2024-08-13/outputs/calendar-links.output.ts
@@ -0,0 +1,33 @@
+import { ApiProperty } from "@nestjs/swagger";
+import { IsEnum, IsString } from "class-validator";
+
+import { SUCCESS_STATUS, ERROR_STATUS } from "@calcom/platform-constants";
+
+export class CalendarLink {
+ @IsString()
+ @ApiProperty({
+ description: "The label of the calendar link",
+ })
+ label!: string;
+
+ @IsString()
+ @ApiProperty({
+ description: "The link to the calendar",
+ })
+ link!: string;
+}
+
+export class CalendarLinksOutput_2024_08_13 {
+ @ApiProperty({
+ description: "The status of the request, always 'success' for successful responses",
+ example: SUCCESS_STATUS,
+ })
+ @IsEnum([SUCCESS_STATUS, ERROR_STATUS])
+ status!: typeof SUCCESS_STATUS | typeof ERROR_STATUS;
+
+ @ApiProperty({
+ description: "Calendar links for the booking",
+ type: [CalendarLink],
+ })
+ data!: CalendarLink[];
+}
diff --git a/apps/api/v2/src/ee/bookings/2024-08-13/services/bookings.service.ts b/apps/api/v2/src/ee/bookings/2024-08-13/services/bookings.service.ts
index b5ff991699e..85e0b590b21 100644
--- a/apps/api/v2/src/ee/bookings/2024-08-13/services/bookings.service.ts
+++ b/apps/api/v2/src/ee/bookings/2024-08-13/services/bookings.service.ts
@@ -1,4 +1,5 @@
import { BookingsRepository_2024_08_13 } from "@/ee/bookings/2024-08-13/bookings.repository";
+import { CalendarLink } from "@/ee/bookings/2024-08-13/outputs/calendar-links.output";
import { InputBookingsService_2024_08_13 } from "@/ee/bookings/2024-08-13/services/input.service";
import { OutputBookingsService_2024_08_13 } from "@/ee/bookings/2024-08-13/services/output.service";
import { PlatformBookingsService } from "@/ee/bookings/shared/platform-bookings.service";
@@ -15,6 +16,7 @@ import { z } from "zod";
import {
handleNewRecurringBooking,
+ getTranslation,
getAllUserBookings,
handleInstantMeeting,
handleCancelBooking,
@@ -22,6 +24,7 @@ import {
roundRobinManualReassignment,
handleMarkNoShow,
confirmBookingHandler,
+ getCalendarLinks,
} from "@calcom/platform-libraries";
import { handleNewBooking } from "@calcom/platform-libraries";
import {
@@ -549,4 +552,32 @@ export class BookingsService_2024_08_13 {
return this.getBooking(bookingUid);
}
+
+ async getCalendarLinks(bookingUid: string): Promise<CalendarLink[]> {
+ const booking = await this.bookingsRepository.getByUidWithAttendeesAndUserAndEvent(bookingUid);
+
+ if (!booking) {
+ throw new NotFoundException(`Booking with uid ${bookingUid} not found`);
+ }
+
+ if (!booking.eventTypeId) {
+ throw new BadRequestException(`Booking with uid ${bookingUid} has no event type`);
+ }
+
+ const eventType = await this.eventTypesRepository.getEventTypeByIdIncludeUsersAndTeam(booking.eventTypeId);
+ if (!eventType) {
+ throw new BadRequestException(`Booking with uid ${bookingUid} has no event type`);
+ }
+ // TODO: Maybe we should get locale from query params?
+ return getCalendarLinks({
+ booking,
+ eventType: {
+ ...eventType,
+ // TODO: Support dynamic event bookings later. It would require a slug input it seems
+ isDynamic: false,
+ },
+ // It can be made customizable through the API endpoint later.
+ t: await getTranslation("en", "common"),
+ });
+ }
}
diff --git a/apps/api/v2/src/ee/event-types/event-types_2024_06_14/event-types.repository.ts b/apps/api/v2/src/ee/event-types/event-types_2024_06_14/event-types.repository.ts
index fedf04e4121..032de256d02 100644
--- a/apps/api/v2/src/ee/event-types/event-types_2024_06_14/event-types.repository.ts
+++ b/apps/api/v2/src/ee/event-types/event-types_2024_06_14/event-types.repository.ts
@@ -1,8 +1,7 @@
import { PrismaReadService } from "@/modules/prisma/prisma-read.service";
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
-import { UsersService } from "@/modules/users/services/users.service";
import { Injectable } from "@nestjs/common";
-
+import type { Prisma } from "@prisma/client";
import { InputEventTransformed_2024_06_14 } from "@calcom/platform-types";
@Injectable()
@@ -76,6 +75,22 @@ export class EventTypesRepository_2024_06_14 {
});
}
+ async getEventTypeByIdIncludeUsersAndTeam(eventTypeId: number) {
+ const eventType = await this.dbRead.prisma.eventType.findUnique({
+ where: { id: eventTypeId },
+ include: { users: true, team: true },
+ });
+
+ if (!eventType) {
+ return null;
+ }
+
+ return {
+ ...eventType,
+ recurringEvent: eventType.recurringEvent as Prisma.JsonObject | null | undefined,
+ };
+ }
+
async getEventTypeByIdWithOwnerAndTeam(eventTypeId: number) {
return this.dbRead.prisma.eventType.findUnique({
where: { id: eventTypeId },
diff --git a/apps/api/v2/swagger/documentation.json b/apps/api/v2/swagger/documentation.json
index 4b508fe47f4..76a605dfd00 100644
--- a/apps/api/v2/swagger/documentation.json
+++ b/apps/api/v2/swagger/documentation.json
@@ -4260,6 +4260,47 @@
]
}
},
+ "/v2/bookings/{bookingUid}/calendar-links": {
+ "get": {
+ "operationId": "BookingsController_2024_08_13_getCalendarLinks",
+ "summary": "Get 'Add to Calendar' links for a booking",
+ "description": "Retrieve calendar links for a booking that can be used to add the event to various calendar services. Returns links for Google Calendar, Microsoft Office, Microsoft Outlook, and a downloadable ICS file.",
+ "parameters": [
+ {
+ "name": "cal-api-version",
+ "in": "header",
+ "description": "Must be set to `2024-08-13`",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "bookingUid",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CalendarLinksOutput_2024_08_13"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Bookings"
+ ]
+ }
+ },
"/v2/calendars/ics-feed/save": {
"post": {
"operationId": "CalendarsController_createIcsFeed",
@@ -17803,6 +17844,44 @@
}
}
},
+ "CalendarLink": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string",
+ "description": "The label of the calendar link"
+ },
+ "link": {
+ "type": "string",
+ "description": "The link to the calendar"
+ }
+ },
+ "required": [
+ "label",
+ "link"
+ ]
+ },
+ "CalendarLinksOutput_2024_08_13": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "object",
+ "description": "The status of the request, always 'success' for successful responses",
+ "example": "success"
+ },
+ "data": {
+ "description": "Calendar links for the booking",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/CalendarLink"
+ }
+ }
+ },
+ "required": [
+ "status",
+ "data"
+ ]
+ },
"CreateTeamMembershipInput": {
"type": "object",
"properties": {
diff --git a/apps/api/v2/test/setEnvVars.ts b/apps/api/v2/test/setEnvVars.ts
index 76aa4dea239..64aa6e3853f 100644
--- a/apps/api/v2/test/setEnvVars.ts
+++ b/apps/api/v2/test/setEnvVars.ts
@@ -1,4 +1,5 @@
import type { Environment } from "@/env";
+import "dotenv/config";
const env: Partial<Omit<Environment, "NODE_ENV">> = {
API_URL: "http://localhost",
@@ -22,6 +23,7 @@ const env: Partial<Omit<Environment, "NODE_ENV">> = {
RATE_LIMIT_DEFAULT_BLOCK_DURATION_MS: 60000,
IS_TEAM_BILLING_ENABLED: false,
};
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
process.env = {
diff --git a/apps/web/modules/bookings/views/bookings-single-view.tsx b/apps/web/modules/bookings/views/bookings-single-view.tsx
index 8f0c95f0770..51532089017 100644
--- a/apps/web/modules/bookings/views/bookings-single-view.tsx
+++ b/apps/web/modules/bookings/views/bookings-single-view.tsx
@@ -2,12 +2,10 @@
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@radix-ui/react-collapsible";
import classNames from "classnames";
-import { createEvent } from "ics";
import { useSession } from "next-auth/react";
import Link from "next/link";
import { usePathname, useRouter } from "next/navigation";
import { Fragment, useEffect, useState } from "react";
-import { RRule } from "rrule";
import { Toaster } from "sonner";
import { z } from "zod";
@@ -28,6 +26,7 @@ import {
SystemField,
TITLE_FIELD,
} from "@calcom/features/bookings/lib/SystemField";
+import { getCalendarLinks, CalendarLinkType } from "@calcom/lib/bookings/getCalendarLinks";
import { APP_NAME } from "@calcom/lib/constants";
import {
formatToLocalizedDate,
@@ -133,9 +132,13 @@ export default function Success(props: PageProps) {
) {
rescheduleLocation = bookingInfo.responses.location.optionValue;
}
- const locationVideoCallUrl: string | undefined = bookingMetadataSchema.parse(
- bookingInfo?.metadata || {}
- )?.videoCallUrl;
+
+ const parsedBookingMetadata = bookingMetadataSchema.parse(bookingInfo?.metadata || {});
+ const bookingWithParsedMetadata = {
+ ...bookingInfo,
+ metadata: parsedBookingMetadata,
+ };
+ const locationVideoCallUrl = bookingWithParsedMetadata.metadata?.videoCallUrl;
const status = bookingInfo?.status;
const reschedule = bookingInfo.status === BookingStatus.ACCEPTED;
@@ -152,6 +155,21 @@ export default function Success(props: PageProps) {
const isHost = props.isLoggedInUserHost;
const [date, setDate] = useState(dayjs.utc(bookingInfo.startTime));
+ const calendarLinks = getCalendarLinks({
+ booking: bookingWithParsedMetadata,
+ eventType: eventType,
+ t,
+ });
+
+ // TODO: We could transform the JSX to just iterate over calendarLinks and render a link for each type
+ const icsLink = calendarLinks.find((link) => link.id === CalendarLinkType.ICS)?.link;
+ const microsoftOfficeLink = calendarLinks.find(
+ (link) => link.id === CalendarLinkType.MICROSOFT_OFFICE
+ )?.link;
+ const microsoftOutlookLink = calendarLinks.find(
+ (link) => link.id === CalendarLinkType.MICROSOFT_OUTLOOK
+ )?.link;
+ const googleCalendarLink = calendarLinks.find((link) => link.id === CalendarLinkType.GOOGLE_CALENDAR)?.link;
const isBackgroundTransparent = useIsBackgroundTransparent();
const isEmbed = useIsEmbed();
@@ -272,37 +290,6 @@ export default function Success(props: PageProps) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
- function eventLink(): string {
- const optional: { location?: string } = {};
- if (locationVideoCallUrl) {
- optional["location"] = locationVideoCallUrl;
- }
-
- const event = createEvent({
- start: [
- date.toDate().getUTCFullYear(),
- (date.toDate().getUTCMonth() as number) + 1,
- date.toDate().getUTCDate(),
- date.toDate().getUTCHours(),
- date.toDate().getUTCMinutes(),
- ],
- startInputType: "utc",
- title: eventName,
- description: eventType.description ? eventType.description : undefined,
- /** formatted to required type of description ^ */
- duration: {
- minutes: calculatedDuration,
- },
- ...optional,
- });
-
- if (event.error) {
- throw event.error;
- }
-
- return encodeURIComponent(event.value ? event.value : false);
- }
-
function getTitle(): string {
const titleSuffix = props.recurringBookings ? "_recurring" : "";
const titlePrefix = isRoundRobin ? "round_robin_" : "";
@@ -805,118 +792,67 @@ export default function Success(props: PageProps) {
{t("add_to_calendar")}
</span>
<div className="justify-left mt-1 flex text-left sm:mt-0">
- <Link
- href={`https://calendar.google.com/calendar/r/eventedit?dates=${date
- .utc()
- .format("YYYYMMDDTHHmmss[Z]")}/${date
- .add(calculatedDuration, "minute")
- .utc()
- .format("YYYYMMDDTHHmmss[Z]")}&text=${eventName}&details=${
- eventType.description
- }${
- typeof locationVideoCallUrl === "string"
- ? `&location=${encodeURIComponent(locationVideoCallUrl)}`
- : ""
- }${
- eventType.recurringEvent
- ? `&recur=${encodeURIComponent(
- new RRule(eventType.recurringEvent).toString()
- )}`
- : ""
- }`}
- className="text-default border-subtle h-10 w-10 rounded-sm border px-3 py-2 ltr:mr-2 rtl:ml-2"
- target="_blank">
- <svg
- className="-mt-1.5 inline-block h-4 w-4"
- fill="currentColor"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24">
- <title>Google</title>
- <path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z" />
- </svg>
- </Link>
- <Link
- href={
- encodeURI(
- `https://outlook.live.com/calendar/0/deeplink/compose?body=${
- eventType.description
- }&enddt=${date
- .add(calculatedDuration, "minute")
- .utc()
- .format()}&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=${date
- .utc()
- .format()}&subject=${eventName}`
- ) +
- (locationVideoCallUrl
- ? `&location=${encodeURIComponent(locationVideoCallUrl)}`
- : "")
- }
- className="border-subtle text-default mx-2 h-10 w-10 rounded-sm border px-3 py-2"
- target="_blank">
- <svg
- className="-mt-1.5 mr-1 inline-block h-4 w-4"
- fill="currentColor"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24">
- <title>Microsoft Outlook</title>
- <path d="M7.88 12.04q0 .45-.11.87-.1.41-.33.74-.22.33-.58.52-.37.2-.87.2t-.85-.2q-.35-.21-.57-.55-.22-.33-.33-.75-.1-.42-.1-.86t.1-.87q.1-.43.34-.76.22-.34.59-.54.36-.2.87-.2t.86.2q.35.21.57.55.22.34.31.77.1.43.1.88zM24 12v9.38q0 .46-.33.8-.33.32-.8.32H7.13q-.46 0-.8-.33-.32-.33-.32-.8V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h6.5V2.55q0-.44.3-.75.3-.3.75-.3h12.9q.44 0 .75.3.3.3.3.75V10.85l1.24.72h.01q.1.07.18.18.07.12.07.25zm-6-8.25v3h3v-3zm0 4.5v3h3v-3zm0 4.5v1.83l3.05-1.83zm-5.25-9v3h3.75v-3zm0 4.5v3h3.75v-3zm0 4.5v2.03l2.41 1.5 1.34-.8v-2.73zM9 3.75V6h2l.13.01.12.04v-2.3zM5.98 15.98q.9 0 1.6-.3.7-.32 1.19-.86.48-.55.73-1.28.25-.74.25-1.61 0-.83-.25-1.55-.24-.71-.71-1.24t-1.15-.83q-.68-.3-1.55-.3-.92 0-1.64.3-.71.3-1.2.85-.5.54-.75 1.3-.25.74-.25 1.63 0 .85.26 1.56.26.72.74 1.23.48.52 1.17.81.69.3 1.56.3zM7.5 21h12.39L12 16.08V17q0 .41-.3.7-.29.3-.7.3H7.5zm15-.13v-7.24l-5.9 3.54Z" />
- </svg>
- </Link>
- <Link
- href={
- encodeURI(
- `https://outlook.office.com/calendar/0/deeplink/compose?body=${
- eventType.description
- }&enddt=${date
- .add(calculatedDuration, "minute")
- .utc()
- .format()}&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=${date
- .utc()
- .format()}&subject=${eventName}`
- ) +
- (locationVideoCallUrl
- ? `&location=${encodeURIComponent(locationVideoCallUrl)}`
- : "")
- }
- className="text-default border-subtle mx-2 h-10 w-10 rounded-sm border px-3 py-2"
- target="_blank">
- <svg
- className="-mt-1.5 mr-1 inline-block h-4 w-4"
- fill="currentColor"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24">
- <title>Microsoft Office</title>
- <path d="M21.53 4.306v15.363q0 .807-.472 1.433-.472.627-1.253.85l-6.888 1.974q-.136.037-.29.055-.156.019-.293.019-.396 0-.72-.105-.321-.106-.656-.292l-4.505-2.544q-.248-.137-.391-.366-.143-.23-.143-.515 0-.434.304-.738.304-.305.739-.305h5.831V4.964l-4.38 1.563q-.533.187-.856.658-.322.472-.322 1.03v8.078q0 .496-.248.912-.25.416-.683.651l-2.072 1.13q-.286.148-.571.148-.497 0-.844-.347-.348-.347-.348-.844V6.563q0-.62.33-1.19.328-.571.874-.881L11.07.285q.248-.136.534-.21.285-.075.57-.075.211 0 .38.031.166.031.364.093l6.888 1.899q.384.11.7.329.317.217.547.52.23.305.353.67.125.367.125.764zm-1.588 15.363V4.306q0-.273-.16-.478-.163-.204-.423-.28l-3.388-.93q-.397-.111-.794-.23-.397-.117-.794-.216v19.68l4.976-1.427q.26-.074.422-.28.161-.204.161-.477z" />
- </svg>
- </Link>
- {(() => {
- try {
- const calendarLink = eventLink();
- if (!calendarLink) {
- return null;
- }
-
- return (
- <Link
- href={`data:text/calendar,${calendarLink}`}
- className="border-subtle text-default mx-2 h-10 w-10 rounded-sm border px-3 py-2"
- download={`${eventType.title}.ics`}>
- <svg
- version="1.1"
- fill="currentColor"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1000 1000"
- className="-mt-1.5 mr-1 inline-block h-4 w-4">
- <title>{t("other")}</title>
- <path d="M971.3,154.9c0-34.7-28.2-62.9-62.9-62.9H611.7c-1.3,0-2.6,0.1-3.9,0.2V10L28.7,87.3v823.4L607.8,990v-84.6c1.3,0.1,2.6,0.2,3.9,0.2h296.7c34.7,0,62.9-28.2,62.9-62.9V154.9z M607.8,636.1h44.6v-50.6h-44.6v-21.9h44.6v-50.6h-44.6v-92h277.9v230.2c0,3.8-3.1,7-7,7H607.8V636.1z M117.9,644.7l-50.6-2.4V397.5l50.6-2.2V644.7z M288.6,607.3c17.6,0.6,37.3-2.8,49.1-7.2l9.1,48c-11,5.1-35.6,9.9-66.9,8.3c-85.4-4.3-127.5-60.7-127.5-132.6c0-86.2,57.8-136.7,133.2-140.1c30.3-1.3,53.7,4,64.3,9.2l-12.2,48.9c-12.1-4.9-28.8-9.2-49.5-8.6c-45.3,1.2-79.5,30.1-79.5,87.4C208.8,572.2,237.8,605.7,288.6,607.3z M455.5,665.2c-32.4-1.6-63.7-11.3-79.1-20.5l12.6-50.7c16.8,9.1,42.9,18.5,70.4,19.4c30.1,1,46.3-10.7,46.3-29.3c0-17.8-14-28.1-48.8-40.6c-46.9-16.4-76.8-41.7-76.8-81.5c0-46.6,39.3-84.1,106.8-87.1c33.3-1.5,58.3,4.2,76.5,11.2l-15.4,53.3c-12.1-5.3-33.5-12.8-62.3-12c-28.3,0.8-41.9,13.6-41.9,28.1c0,17.8,16.1,25.5,53.6,39c52.9,18.5,78.4,45.3,78.4,86.4C575.6,629.7,536.2,669.2,455.5,665.2z M935.3,842.7c0,14.9-12.1,27-27,27H611.7c-1.3,0-2.6-0.2-3.9-0.4V686.2h270.9c19.2,0,34.9-15.6,34.9-34.9V398.4c0-19.2-15.6-34.9-34.9-34.9h-47.1v-32.3H808v32.3h-44.8v-32.3h-22.7v32.3h-43.3v-32.3h-22.7v32.3H628v-32.3h-20.2v-203c1.31.2,2.6-0.4,3.9-0.4h296.7c14.9,0,27,12.1,27,27L935.3,842.7L935.3,842.7z" />
- </svg>
- </Link>
- );
- } catch (error) {
- console.error("Failed to generate .ics download link:", error);
- return null;
- }
- })()}
+ {googleCalendarLink && (
+ <Link
+ href={googleCalendarLink}
+ className="text-default border-subtle h-10 w-10 rounded-sm border px-3 py-2 ltr:mr-2 rtl:ml-2"
+ target="_blank">
+ <svg
+ className="-mt-1.5 inline-block h-4 w-4"
+ fill="currentColor"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24">
+ <title>Google</title>
+ <path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z" />
+ </svg>
+ </Link>
+ )}
+ {microsoftOutlookLink && (
+ <Link
+ href={microsoftOutlookLink}
+ className="border-subtle text-default mx-2 h-10 w-10 rounded-sm border px-3 py-2"
+ target="_blank">
+ <svg
+ className="-mt-1.5 mr-1 inline-block h-4 w-4"
+ fill="currentColor"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24">
+ <title>Microsoft Outlook</title>
+ <path d="M7.88 12.04q0 .45-.11.87-.1.41-.33.74-.22.33-.58.52-.37.2-.87.2t-.85-.2q-.35-.21-.57-.55-.22-.33-.33-.75-.1-.42-.1-.86t.1-.87q.1-.43.34-.76.22-.34.59-.54.36-.2.87-.2t.86.2q.35.21.57.55.22.34.31.77.1.43.1.88zM24 12v9.38q0 .46-.33.8-.33.32-.8.32H7.13q-.46 0-.8-.33-.32-.33-.32-.8V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h6.5V2.55q0-.44.3-.75.3-.3.75-.3h12.9q.44 0 .75.3.3.3.3.75V10.85l1.24.72h.01q.1.07.18.18.07.12.07.25zm-6-8.25v3h3v-3zm0 4.5v3h3v-3zm0 4.5v1.83l3.05-1.83zm-5.25-9v3h3.75v-3zm0 4.5v3h3.75v-3zm0 4.5v2.03l2.41 1.5 1.34-.8v-2.73zM9 3.75V6h2l.13.01.12.04v-2.3zM5.98 15.98q.9 0 1.6-.3.7-.32 1.19-.86.48-.55.73-1.28.25-.74.25-1.61 0-.83-.25-1.55-.24-.71-.71-1.24t-1.15-.83q-.68-.3-1.55-.3-.92 0-1.64.3-.71.3-1.2.85-.5.54-.75 1.3-.25.74-.25 1.63 0 .85.26 1.56.26.72.74 1.23.48.52 1.17.81.69.3 1.56.3zM7.5 21h12.39L12 16.08V17q0 .41-.3.7-.29.3-.7.3H7.5zm15-.13v-7.24l-5.9 3.54Z" />
+ </svg>
+ </Link>
+ )}
+ {microsoftOfficeLink && (
+ <Link
+ href={microsoftOfficeLink}
+ className="text-default border-subtle mx-2 h-10 w-10 rounded-sm border px-3 py-2"
+ target="_blank">
+ <svg
+ className="-mt-1.5 mr-1 inline-block h-4 w-4"
+ fill="currentColor"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24">
+ <title>Microsoft Office</title>
+ <path d="M21.53 4.306v15.363q0 .807-.472 1.433-.472.627-1.253.85l-6.888 1.974q-.136.037-.29.055-.156.019-.293.019-.396 0-.72-.105-.321-.106-.656-.292l-4.505-2.544q-.248-.137-.391-.366-.143-.23-.143-.515 0-.434.304-.738.304-.305.739-.305h5.831V4.964l-4.38 1.563q-.533.187-.856.658-.322.472-.322 1.03v8.078q0 .496-.248.912-.25.416-.683.651l-2.072 1.13q-.286.148-.571.148-.497 0-.844-.347-.348-.347-.348-.844V6.563q0-.62.33-1.19.328-.571.874-.881L11.07.285q.248-.136.534-.21.285-.075.57-.075.211 0 .38.031.166.031.364.093l6.888 1.899q.384.11.7.329.317.217.547.52.23.305.353.67.125.367.125.764zm-1.588 15.363V4.306q0-.273-.16-.478-.163-.204-.423-.28l-3.388-.93q-.397-.111-.794-.23-.397-.117-.794-.216v19.68l4.976-1.427q.26-.074.422-.28.161-.204.161-.477z" />
+ </svg>
+ </Link>
+ )}
+ {icsLink && (
+ <Link
+ href={icsLink}
+ className="border-subtle text-default mx-2 h-10 w-10 rounded-sm border px-3 py-2"
+ download={`${eventType.title}.ics`}>
+ <svg
+ version="1.1"
+ fill="currentColor"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 1000 1000"
+ className="-mt-1.5 mr-1 inline-block h-4 w-4">
+ <title>{t("other")}</title>
+ <path d="M971.3,154.9c0-34.7-28.2-62.9-62.9-62.9H611.7c-1.3,0-2.6,0.1-3.9,0.2V10L28.7,87.3v823.4L607.8,990v-84.6c1.3,0.1,2.6,0.2,3.9,0.2h296.7c34.7,0,62.9-28.2,62.9-62.9V154.9z M607.8,636.1h44.6v-50.6h-44.6v-21.9h44.6v-50.6h-44.6v-92h277.9v230.2c0,3.8-3.1,7-7,7H607.8V636.1z M117.9,644.7l-50.6-2.4V397.5l50.6-2.2V644.7z M288.6,607.3c17.6,0.6,37.3-2.8,49.1-7.2l9.1,48c-11,5.1-35.6,9.9-66.9,8.3c-85.4-4.3-127.5-60.7-127.5-132.6c0-86.2,57.8-136.7,133.2-140.1c30.3-1.3,53.7,4,64.3,9.2l-12.2,48.9c-12.1-4.9-28.8-9.2-49.5-8.6c-45.3,1.2-79.5,30.1-79.5,87.4C208.8,572.2,237.8,605.7,288.6,607.3z M455.5,665.2c-32.4-1.6-63.7-11.3-79.1-20.5l12.6-50.7c16.8,9.1,42.9,18.5,70.4,19.4c30.1,1,46.3-10.7,46.3-29.3c0-17.8-14-28.1-48.8-40.6c-46.9-16.4-76.8-41.7-76.8-81.5c0-46.6,39.3-84.1,106.8-87.1c33.3-1.5,58.3,4.2,76.5,11.2l-15.4,53.3c-12.1-5.3-33.5-12.8-62.3-12c-28.3,0.8-41.9,13.6-41.9,28.1c0,17.8,16.1,25.5,53.6,39c52.9,18.5,78.4,45.3,78.4,86.4C575.6,629.7,536.2,669.2,455.5,665.2z M935.3,842.7c0,14.9-12.1,27-27,27H611.7c-1.3,0-2.6-0.2-3.9-0.4V686.2h270.9c19.2,0,34.9-15.6,34.9-34.9V398.4c0-19.2-15.6-34.9-34.9-34.9h-47.1v-32.3H808v32.3h-44.8v-32.3h-22.7v32.3h-43.3v-32.3h-22.7v32.3H628v-32.3h-20.2v-203c1.31.2,2.6-0.4,3.9-0.4h296.7c14.9,0,27,12.1,27,27L935.3,842.7L935.3,842.7z" />
+ </svg>
+ </Link>
+ )}
</div>
</div>
</>
diff --git a/docs/api-reference/v2/openapi.json b/docs/api-reference/v2/openapi.json
index a23c3bdce29..76a605dfd00 100644
--- a/docs/api-reference/v2/openapi.json
+++ b/docs/api-reference/v2/openapi.json
@@ -27,7 +27,9 @@
}
}
},
- "tags": ["Platform / Cal Provider"]
+ "tags": [
+ "Platform / Cal Provider"
+ ]
}
},
"/v2/provider/{clientId}/access-token": {
@@ -56,7 +58,9 @@
}
}
},
- "tags": ["Platform / Cal Provider"]
+ "tags": [
+ "Platform / Cal Provider"
+ ]
}
},
"/v2/oauth-clients/{clientId}/users": {
@@ -95,7 +99,9 @@
}
}
},
- "tags": ["Platform / Managed Users"]
+ "tags": [
+ "Platform / Managed Users"
+ ]
},
"post": {
"operationId": "OAuthClientUsersController_createUser",
@@ -132,7 +138,9 @@
}
}
},
- "tags": ["Platform / Managed Users"]
+ "tags": [
+ "Platform / Managed Users"
+ ]
}
},
"/v2/oauth-clients/{clientId}/users/{userId}": {
@@ -169,7 +177,9 @@
}
}
},
- "tags": ["Platform / Managed Users"]
+ "tags": [
+ "Platform / Managed Users"
+ ]
},
"patch": {
"operationId": "OAuthClientUsersController_updateUser",
@@ -214,7 +224,9 @@
}
}
},
- "tags": ["Platform / Managed Users"]
+ "tags": [
+ "Platform / Managed Users"
+ ]
},
"delete": {
"operationId": "OAuthClientUsersController_deleteUser",
@@ -249,7 +261,9 @@
}
}
},
- "tags": ["Platform / Managed Users"]
+ "tags": [
+ "Platform / Managed Users"
+ ]
}
},
"/v2/oauth-clients/{clientId}/users/{userId}/force-refresh": {
@@ -287,7 +301,9 @@
}
}
},
- "tags": ["Platform / Managed Users"]
+ "tags": [
+ "Platform / Managed Users"
+ ]
}
},
"/v2/oauth/{clientId}/refresh": {
@@ -336,7 +352,9 @@
}
}
},
- "tags": ["Platform / Managed Users"]
+ "tags": [
+ "Platform / Managed Users"
+ ]
}
},
"/v2/oauth-clients/{clientId}/webhooks": {
@@ -375,7 +393,9 @@
}
}
},
- "tags": ["Platform / Webhooks"]
+ "tags": [
+ "Platform / Webhooks"
+ ]
},
"get": {
"operationId": "OAuthClientWebhooksController_getOAuthClientWebhooks",
@@ -422,7 +442,9 @@
}
}
},
- "tags": ["Platform / Webhooks"]
+ "tags": [
+ "Platform / Webhooks"
+ ]
},
"delete": {
"operationId": "OAuthClientWebhooksController_deleteAllOAuthClientWebhooks",
@@ -449,7 +471,9 @@
}
}
},
- "tags": ["Platform / Webhooks"]
+ "tags": [
+ "Platform / Webhooks"
+ ]
}
},
"/v2/oauth-clients/{clientId}/webhooks/{webhookId}": {
@@ -488,7 +512,9 @@
}
}
},
- "tags": ["Platform / Webhooks"]
+ "tags": [
+ "Platform / Webhooks"
+ ]
},
"get": {
"operationId": "OAuthClientWebhooksController_getOAuthClientWebhook",
@@ -506,7 +532,9 @@
}
}
},
- "tags": ["Platform / Webhooks"]
+ "tags": [
+ "Platform / Webhooks"
+ ]
},
"delete": {
"operationId": "OAuthClientWebhooksController_deleteOAuthClientWebhook",
@@ -524,7 +552,9 @@
}
}
},
- "tags": ["Platform / Webhooks"]
+ "tags": [
+ "Platform / Webhooks"
+ ]
}
},
"/v2/organizations/{orgId}/attributes": {
@@ -573,7 +603,9 @@
}
}
},
- "tags": ["Orgs / Attributes"]
+ "tags": [
+ "Orgs / Attributes"
+ ]
},
"post": {
"operationId": "OrganizationsAttributesController_createOrganizationAttribute",
@@ -610,7 +642,9 @@
}
}
},
- "tags": ["Orgs / Attributes"]
+ "tags": [
+ "Orgs / Attributes"
+ ]
}
},
"/v2/organizations/{orgId}/attributes/{attributeId}": {
@@ -647,7 +681,9 @@
}
}
},
- "tags": ["Orgs / Attributes"]
+ "tags": [
+ "Orgs / Attributes"
+ ]
},
"patch": {
"operationId": "OrganizationsAttributesController_updateOrganizationAttribute",
@@ -692,7 +728,9 @@
}
}
},
- "tags": ["Orgs / Attributes"]
+ "tags": [
+ "Orgs / Attributes"
+ ]
},
"delete": {
"operationId": "OrganizationsAttributesController_deleteOrganizationAttribute",
@@ -727,7 +765,9 @@
}
}
},
- "tags": ["Orgs / Attributes"]
+ "tags": [
+ "Orgs / Attributes"
+ ]
}
},
"/v2/organizations/{orgId}/attributes/{attributeId}/options": {
@@ -774,7 +814,9 @@
}
}
},
- "tags": ["Orgs / Attributes / Options"]
+ "tags": [
+ "Orgs / Attributes / Options"
+ ]
},
"get": {
"operationId": "OrganizationsAttributesOptionsController_getOrganizationAttributeOptions",
@@ -809,7 +851,9 @@
}
}
},
- "tags": ["Orgs / Attributes / Options"]
+ "tags": [
+ "Orgs / Attributes / Options"
+ ]
}
},
"/v2/organizations/{orgId}/attributes/{attributeId}/options/{optionId}": {
@@ -854,7 +898,9 @@
}
}
},
- "tags": ["Orgs / Attributes / Options"]
+ "tags": [
+ "Orgs / Attributes / Options"
+ ]
},
"patch": {
"operationId": "OrganizationsAttributesOptionsController_updateOrganizationAttributeOption",
@@ -907,7 +953,9 @@
}
}
},
- "tags": ["Orgs / Attributes / Options"]
+ "tags": [
+ "Orgs / Attributes / Options"
+ ]
}
},
"/v2/organizations/{orgId}/attributes/options/{userId}": {
@@ -954,7 +1002,9 @@
}
}
},
- "tags": ["Orgs / Attributes / Options"]
+ "tags": [
+ "Orgs / Attributes / Options"
+ ]
},
"get": {
"operationId": "OrganizationsAttributesOptionsController_getOrganizationAttributeOptionsForUser",
@@ -989,7 +1039,9 @@
}
}
},
- "tags": ["Orgs / Attributes / Options"]
+ "tags": [
+ "Orgs / Attributes / Options"
+ ]
}
},
"/v2/organizations/{orgId}/attributes/options/{userId}/{attributeOptionId}": {
@@ -1034,7 +1086,9 @@
}
}
},
- "tags": ["Orgs / Attributes / Options"]
+ "tags": [
+ "Orgs / Attributes / Options"
+ ]
}
},
"/v2/organizations/{orgId}/delegation-credentials": {
@@ -1073,7 +1127,9 @@
}
}
},
- "tags": ["Orgs / Delegation Credentials"]
+ "tags": [
+ "Orgs / Delegation Credentials"
+ ]
}
},
"/v2/organizations/{orgId}/delegation-credentials/{credentialId}": {
@@ -1120,7 +1176,9 @@
}
}
},
- "tags": ["Orgs / Delegation Credentials"]
+ "tags": [
+ "Orgs / Delegation Credentials"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/event-types": {
@@ -1167,7 +1225,9 @@
}
}
},
- "tags": ["Orgs / Event Types"]
+ "tags": [
+ "Orgs / Event Types"
+ ]
},
"get": {
"operationId": "OrganizationsEventTypesController_getTeamEventTypes",
@@ -1212,7 +1272,9 @@
}
}
},
- "tags": ["Orgs / Event Types"]
+ "tags": [
+ "Orgs / Event Types"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}": {
@@ -1249,7 +1311,9 @@
}
}
},
- "tags": ["Orgs / Event Types"]
+ "tags": [
+ "Orgs / Event Types"
+ ]
},
"patch": {
"operationId": "OrganizationsEventTypesController_updateTeamEventType",
@@ -1294,7 +1358,9 @@
}
}
},
- "tags": ["Orgs / Event Types"]
+ "tags": [
+ "Orgs / Event Types"
+ ]
},
"delete": {
"operationId": "OrganizationsEventTypesController_deleteTeamEventType",
@@ -1329,7 +1395,9 @@
}
}
},
- "tags": ["Orgs / Event Types"]
+ "tags": [
+ "Orgs / Event Types"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/event-types/{eventTypeId}/create-phone-call": {
@@ -1376,7 +1444,9 @@
}
}
},
- "tags": ["Orgs / Event Types"]
+ "tags": [
+ "Orgs / Event Types"
+ ]
}
},
"/v2/organizations/{orgId}/teams/event-types": {
@@ -1425,7 +1495,9 @@
}
}
},
- "tags": ["Orgs / Event Types"]
+ "tags": [
+ "Orgs / Event Types"
+ ]
}
},
"/v2/organizations/{orgId}/memberships": {
@@ -1474,7 +1546,9 @@
}
}
},
- "tags": ["Orgs / Memberships"]
+ "tags": [
+ "Orgs / Memberships"
+ ]
},
"post": {
"operationId": "OrganizationsMembershipsController_createMembership",
@@ -1511,7 +1585,9 @@
}
}
},
- "tags": ["Orgs / Memberships"]
+ "tags": [
+ "Orgs / Memberships"
+ ]
}
},
"/v2/organizations/{orgId}/memberships/{membershipId}": {
@@ -1548,7 +1624,9 @@
}
}
},
- "tags": ["Orgs / Memberships"]
+ "tags": [
+ "Orgs / Memberships"
+ ]
},
"delete": {
"operationId": "OrganizationsMembershipsController_deleteMembership",
@@ -1583,7 +1661,9 @@
}
}
},
- "tags": ["Orgs / Memberships"]
+ "tags": [
+ "Orgs / Memberships"
+ ]
},
"patch": {
"operationId": "OrganizationsMembershipsController_updateMembership",
@@ -1628,7 +1708,9 @@
}
}
},
- "tags": ["Orgs / Memberships"]
+ "tags": [
+ "Orgs / Memberships"
+ ]
}
},
"/v2/organizations/{orgId}/organizations": {
@@ -1668,7 +1750,9 @@
}
}
},
- "tags": ["Orgs / Orgs"]
+ "tags": [
+ "Orgs / Orgs"
+ ]
},
"get": {
"operationId": "OrganizationsOrganizationsController_getOrganizations",
@@ -1696,7 +1780,9 @@
}
}
},
- "tags": ["Orgs / Orgs"]
+ "tags": [
+ "Orgs / Orgs"
+ ]
}
},
"/v2/organizations/{orgId}/organizations/{managedOrganizationId}": {
@@ -1726,7 +1812,9 @@
}
}
},
- "tags": ["Orgs / Orgs"]
+ "tags": [
+ "Orgs / Orgs"
+ ]
},
"patch": {
"operationId": "OrganizationsOrganizationsController_updateOrganization",
@@ -1772,7 +1860,9 @@
}
}
},
- "tags": ["Orgs / Orgs"]
+ "tags": [
+ "Orgs / Orgs"
+ ]
},
"delete": {
"operationId": "OrganizationsOrganizationsController_deleteOrganization",
@@ -1800,7 +1890,9 @@
}
}
},
- "tags": ["Orgs / Orgs"]
+ "tags": [
+ "Orgs / Orgs"
+ ]
}
},
"/v2/organizations/{orgId}/schedules": {
@@ -1849,7 +1941,9 @@
}
}
},
- "tags": ["Orgs / Schedules"]
+ "tags": [
+ "Orgs / Schedules"
+ ]
}
},
"/v2/organizations/{orgId}/users/{userId}/schedules": {
@@ -1888,7 +1982,10 @@
}
}
},
- "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"]
+ "tags": [
+ "Orgs / Schedules",
+ "Orgs / Users / Schedules"
+ ]
},
"get": {
"operationId": "OrganizationsSchedulesController_getUserSchedules",
@@ -1915,7 +2012,10 @@
}
}
},
- "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"]
+ "tags": [
+ "Orgs / Schedules",
+ "Orgs / Users / Schedules"
+ ]
}
},
"/v2/organizations/{orgId}/users/{userId}/schedules/{scheduleId}": {
@@ -1952,7 +2052,10 @@
}
}
},
- "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"]
+ "tags": [
+ "Orgs / Schedules",
+ "Orgs / Users / Schedules"
+ ]
},
"patch": {
"operationId": "OrganizationsSchedulesController_updateUserSchedule",
@@ -1997,7 +2100,10 @@
}
}
},
- "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"]
+ "tags": [
+ "Orgs / Schedules",
+ "Orgs / Users / Schedules"
+ ]
},
"delete": {
"operationId": "OrganizationsSchedulesController_deleteUserSchedule",
@@ -2032,7 +2138,10 @@
}
}
},
- "tags": ["Orgs / Schedules", "Orgs / Users / Schedules"]
+ "tags": [
+ "Orgs / Schedules",
+ "Orgs / Users / Schedules"
+ ]
}
},
"/v2/organizations/{orgId}/teams": {
@@ -2081,7 +2190,10 @@
}
}
},
- "tags": ["Orgs / Teams", "Teams"]
+ "tags": [
+ "Orgs / Teams",
+ "Teams"
+ ]
},
"post": {
"operationId": "OrganizationsTeamsController_createTeam",
@@ -2126,7 +2238,9 @@
}
}
},
- "tags": ["Orgs / Teams"]
+ "tags": [
+ "Orgs / Teams"
+ ]
}
},
"/v2/organizations/{orgId}/teams/me": {
@@ -2175,7 +2289,9 @@
}
}
},
- "tags": ["Orgs / Teams"]
+ "tags": [
+ "Orgs / Teams"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}": {
@@ -2195,7 +2311,9 @@
}
}
},
- "tags": ["Orgs / Teams"]
+ "tags": [
+ "Orgs / Teams"
+ ]
},
"delete": {
"operationId": "OrganizationsTeamsController_deleteTeam",
@@ -2230,7 +2348,9 @@
}
}
},
- "tags": ["Orgs / Teams"]
+ "tags": [
+ "Orgs / Teams"
+ ]
},
"patch": {
"operationId": "OrganizationsTeamsController_updateTeam",
@@ -2275,7 +2395,9 @@
}
}
},
- "tags": ["Orgs / Teams"]
+ "tags": [
+ "Orgs / Teams"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/bookings": {
@@ -2293,7 +2415,13 @@
"type": "array",
"items": {
"type": "string",
- "enum": ["upcoming", "recurring", "past", "cancelled", "unconfirmed"]
+ "enum": [
+ "upcoming",
+ "recurring",
+ "past",
+ "cancelled",
+ "unconfirmed"
+ ]
}
}
},
@@ -2364,7 +2492,10 @@
"description": "Sort results by their start time in ascending or descending order.",
"example": "?sortStart=asc OR ?sortStart=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -2375,7 +2506,10 @@
"description": "Sort results by their end time in ascending or descending order.",
"example": "?sortEnd=asc OR ?sortEnd=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -2386,7 +2520,10 @@
"description": "Sort results by their creation time (when booking was made) in ascending or descending order.",
"example": "?sortCreated=asc OR ?sortCreated=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -2434,7 +2571,9 @@
}
}
},
- "tags": ["Orgs / Teams / Bookings"]
+ "tags": [
+ "Orgs / Teams / Bookings"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/memberships": {
@@ -2491,7 +2630,9 @@
}
}
},
- "tags": ["Orgs / Teams / Memberships"]
+ "tags": [
+ "Orgs / Teams / Memberships"
+ ]
},
"post": {
"operationId": "OrganizationsTeamsMembershipsController_createOrgTeamMembership",
@@ -2536,7 +2677,9 @@
}
}
},
- "tags": ["Orgs / Teams / Memberships"]
+ "tags": [
+ "Orgs / Teams / Memberships"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/memberships/{membershipId}": {
@@ -2581,7 +2724,9 @@
}
}
},
- "tags": ["Orgs / Teams / Memberships"]
+ "tags": [
+ "Orgs / Teams / Memberships"
+ ]
},
"delete": {
"operationId": "OrganizationsTeamsMembershipsController_deleteOrgTeamMembership",
@@ -2624,7 +2769,9 @@
}
}
},
- "tags": ["Orgs / Teams / Memberships"]
+ "tags": [
+ "Orgs / Teams / Memberships"
+ ]
},
"patch": {
"operationId": "OrganizationsTeamsMembershipsController_updateOrgTeamMembership",
@@ -2677,7 +2824,9 @@
}
}
},
- "tags": ["Orgs / Teams / Memberships"]
+ "tags": [
+ "Orgs / Teams / Memberships"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routingFormId}/responses": {
@@ -2706,7 +2855,9 @@
}
}
},
- "tags": ["Orgs / Teams / Routing forms / Responses"]
+ "tags": [
+ "Orgs / Teams / Routing forms / Responses"
+ ]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/users/{userId}/schedules": {
@@ -2735,7 +2886,10 @@
}
}
},
- "tags": ["Orgs / Teams / Schedules", "Orgs / Teams / Users / Schedules"]
+ "tags": [
+ "Orgs / Teams / Schedules",
+ "Orgs / Teams / Users / Schedules"
+ ]
}
},
"/v2/organizations/{orgId}/users": {
@@ -2799,7 +2953,9 @@
}
}
},
- "tags": ["Orgs / Users"]
+ "tags": [
+ "Orgs / Users"
+ ]
},
"post": {
"operationId": "OrganizationsUsersController_createOrganizationUser",
@@ -2836,7 +2992,9 @@
}
}
},
- "tags": ["Orgs / Users"]
+ "tags": [
+ "Orgs / Users"
+ ]
}
},
"/v2/organizations/{orgId}/users/{userId}": {
@@ -2883,7 +3041,9 @@
}
}
},
- "tags": ["Orgs / Users"]
+ "tags": [
+ "Orgs / Users"
+ ]
},
"delete": {
"operationId": "OrganizationsUsersController_deleteOrganizationUser",
@@ -2918,7 +3078,9 @@
}
}
},
- "tags": ["Orgs / Users"]
+ "tags": [
+ "Orgs / Users"
+ ]
}
},
"/v2/organizations/{orgId}/users/{userId}/ooo": {
@@ -2961,7 +3123,10 @@
"description": "Sort results by their start time in ascending or descending order.",
"example": "?sortStart=asc OR ?sortStart=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -2972,7 +3137,10 @@
"description": "Sort results by their end time in ascending or descending order.",
"example": "?sortEnd=asc OR ?sortEnd=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
}
@@ -2982,7 +3150,9 @@
"description": ""
}
},
- "tags": ["Orgs / Users / OOO"]
+ "tags": [
+ "Orgs / Users / OOO"
+ ]
},
"post": {
"operationId": "OrganizationsUsersOOOController_createOrganizationUserOOO",
@@ -3012,7 +3182,9 @@
"description": ""
}
},
- "tags": ["Orgs / Users / OOO"]
+ "tags": [
+ "Orgs / Users / OOO"
+ ]
}
},
"/v2/organizations/{orgId}/users/{userId}/ooo/{oooId}": {
@@ -3052,7 +3224,9 @@
"description": ""
}
},
- "tags": ["Orgs / Users / OOO"]
+ "tags": [
+ "Orgs / Users / OOO"
+ ]
},
"delete": {
"operationId": "OrganizationsUsersOOOController_deleteOrganizationUserOOO",
@@ -3072,7 +3246,9 @@
"description": ""
}
},
- "tags": ["Orgs / Users / OOO"]
+ "tags": [
+ "Orgs / Users / OOO"
+ ]
}
},
"/v2/organizations/{orgId}/ooo": {
@@ -3115,7 +3291,10 @@
"description": "Sort results by their start time in ascending or descending order.",
"example": "?sortStart=asc OR ?sortStart=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -3126,7 +3305,10 @@
"description": "Sort results by their end time in ascending or descending order.",
"example": "?sortEnd=asc OR ?sortEnd=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -3146,7 +3328,9 @@
"description": ""
}
},
- "tags": ["Orgs / Users / OOO"]
+ "tags": [
+ "Orgs / Users / OOO"
+ ]
}
},
"/v2/organizations/{orgId}/webhooks": {
@@ -3195,7 +3379,9 @@
}
}
},
- "tags": ["Orgs / Webhooks"]
+ "tags": [
+ "Orgs / Webhooks"
+ ]
},
"post": {
"operationId": "OrganizationsWebhooksController_createOrganizationWebhook",
@@ -3232,7 +3418,9 @@
}
}
},
- "tags": ["Orgs / Webhooks"]
+ "tags": [
+ "Orgs / Webhooks"
+ ]
}
},
"/v2/organizations/{orgId}/webhooks/{webhookId}": {
@@ -3261,7 +3449,9 @@
}
}
},
- "tags": ["Orgs / Webhooks"]
+ "tags": [
+ "Orgs / Webhooks"
+ ]
},
"delete": {
"operationId": "OrganizationsWebhooksController_deleteWebhook",
@@ -3288,7 +3478,9 @@
}
}
},
- "tags": ["Orgs / Webhooks"]
+ "tags": [
+ "Orgs / Webhooks"
+ ]
},
"patch": {
"operationId": "OrganizationsWebhooksController_updateOrgWebhook",
@@ -3325,7 +3517,9 @@
}
}
},
- "tags": ["Orgs / Webhooks"]
+ "tags": [
+ "Orgs / Webhooks"
+ ]
}
},
"/v2/api-keys/refresh": {
@@ -3366,7 +3560,9 @@
}
}
},
- "tags": ["Api Keys"]
+ "tags": [
+ "Api Keys"
+ ]
}
},
"/v2/bookings": {
@@ -3418,7 +3614,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
},
"get": {
"operationId": "BookingsController_2024_08_13_getBookings",
@@ -3443,7 +3641,13 @@
"type": "array",
"items": {
"type": "string",
- "enum": ["upcoming", "recurring", "past", "cancelled", "unconfirmed"]
+ "enum": [
+ "upcoming",
+ "recurring",
+ "past",
+ "cancelled",
+ "unconfirmed"
+ ]
}
}
},
@@ -3554,7 +3758,10 @@
"description": "Sort results by their start time in ascending or descending order.",
"example": "?sortStart=asc OR ?sortStart=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -3565,7 +3772,10 @@
"description": "Sort results by their end time in ascending or descending order.",
"example": "?sortEnd=asc OR ?sortEnd=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -3576,7 +3786,10 @@
"description": "Sort results by their creation time (when booking was made) in ascending or descending order.",
"example": "?sortCreated=asc OR ?sortCreated=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -3587,7 +3800,10 @@
"description": "Sort results by their updated time (for example when booking status changes) in ascending or descending order.",
"example": "?sortUpdated=asc OR ?sortUpdated=desc",
"schema": {
- "enum": ["asc", "desc"],
+ "enum": [
+ "asc",
+ "desc"
+ ],
"type": "string"
}
},
@@ -3633,7 +3849,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}": {
@@ -3672,7 +3890,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}/reschedule": {
@@ -3711,7 +3931,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}/cancel": {
@@ -3750,7 +3972,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}/mark-absent": {
@@ -3807,7 +4031,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}/reassign": {
@@ -3854,7 +4080,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}/reassign/{userId}": {
@@ -3919,7 +4147,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}/confirm": {
@@ -3966,7 +4196,9 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/bookings/{bookingUid}/decline": {
@@ -4023,7 +4255,50 @@
}
}
},
- "tags": ["Bookings"]
+ "tags": [
+ "Bookings"
+ ]
+ }
+ },
+ "/v2/bookings/{bookingUid}/calendar-links": {
+ "get": {
+ "operationId": "BookingsController_2024_08_13_getCalendarLinks",
+ "summary": "Get 'Add to Calendar' links for a booking",
+ "description": "Retrieve calendar links for a booking that can be used to add the event to various calendar services. Returns links for Google Calendar, Microsoft Office, Microsoft Outlook, and a downloadable ICS file.",
+ "parameters": [
+ {
+ "name": "cal-api-version",
+ "in": "header",
+ "description": "Must be set to `2024-08-13`",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "bookingUid",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CalendarLinksOutput_2024_08_13"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Bookings"
+ ]
}
},
"/v2/calendars/ics-feed/save": {
@@ -4053,7 +4328,9 @@
}
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars/ics-feed/check": {
@@ -4073,7 +4350,9 @@
}
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars/busy-times": {
@@ -4141,7 +4420,9 @@
}
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars": {
@@ -4161,7 +4442,9 @@
}
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars/{calendar}/connect": {
@@ -4182,7 +4465,10 @@
"required": true,
"in": "path",
"schema": {
- "enum": ["office365", "google"],
+ "enum": [
+ "office365",
+ "google"
+ ],
"type": "string"
}
}
@@ -4199,7 +4485,9 @@
}
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars/{calendar}/save": {
@@ -4228,7 +4516,10 @@
"required": true,
"in": "path",
"schema": {
- "enum": ["office365", "google"],
+ "enum": [
+ "office365",
+ "google"
+ ],
"type": "string"
}
}
@@ -4238,7 +4529,9 @@
"description": ""
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars/{calendar}/credentials": {
@@ -4251,7 +4544,9 @@
"required": true,
"in": "path",
"schema": {
- "enum": ["apple"],
+ "enum": [
+ "apple"
+ ],
"type": "string"
}
}
@@ -4261,7 +4556,9 @@
"description": ""
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars/{calendar}/check": {
@@ -4274,7 +4571,11 @@
"required": true,
"in": "path",
"schema": {
- "enum": ["apple", "google", "office365"],
+ "enum": [
+ "apple",
+ "google",
+ "office365"
+ ],
"type": "string"
}
}
@@ -4291,7 +4592,9 @@
}
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/calendars/{calendar}/disconnect": {
@@ -4304,7 +4607,11 @@
"required": true,
"in": "path",
"schema": {
- "enum": ["apple", "google", "office365"],
+ "enum": [
+ "apple",
+ "google",
+ "office365"
+ ],
"type": "string"
}
}
@@ -4331,7 +4638,9 @@
}
}
},
- "tags": ["Calendars"]
+ "tags": [
+ "Calendars"
+ ]
}
},
"/v2/conferencing/{app}/connect": {
@@ -4360,7 +4669,9 @@
}
}
},
- "tags": ["Conferencing"]
+ "tags": [
+ "Conferencing"
+ ]
}
},
"/v2/conferencing/{app}/oauth/auth-url": {
@@ -4413,7 +4724,9 @@
}
}
},
- "tags": ["Conferencing"]
+ "tags": [
+ "Conferencing"
+ ]
}
},
"/v2/conferencing/{app}/oauth/callback": {
@@ -4451,7 +4764,9 @@
"description": ""
}
},
- "tags": ["Conferencing"]
+ "tags": [
+ "Conferencing"
+ ]
}
},
"/v2/conferencing": {
@@ -4471,7 +4786,9 @@
}
}
},
- "tags": ["Conferencing"]
+ "tags": [
+ "Conferencing"
+ ]
}
},
"/v2/conferencing/{app}/default": {
@@ -4500,7 +4817,9 @@
}
}
},
- "tags": ["Conferencing"]
+ "tags": [
+ "Conferencing"
+ ]
}
},
"/v2/conferencing/default": {
@@ -4520,7 +4839,9 @@
}
}
},
- "tags": ["Conferencing"]
+ "tags": [
+ "Conferencing"
+ ]
}
},
"/v2/conferencing/{app}/disconnect": {
@@ -4549,7 +4870,9 @@
}
}
},
- "tags": ["Conferencing"]
+ "tags": [
+ "Conferencing"
+ ]
}
},
"/v2/destination-calendars": {
@@ -4579,7 +4902,9 @@
}
}
},
- "tags": ["Destination Calendars"]
+ "tags": [
+ "Destination Calendars"
+ ]
}
},
"/v2/event-types": {
@@ -4628,7 +4953,9 @@
}
}
},
- "tags": ["Event Types"]
+ "tags": [
+ "Event Types"
+ ]
},
"get": {
"operationId": "EventTypesController_2024_06_14_getEventTypes",
@@ -4701,7 +5028,9 @@
}
}
},
- "tags": ["Event Types"]
+ "tags": [
+ "Event Types"
+ ]
}
},
"/v2/event-types/{eventTypeId}": {
@@ -4748,7 +5077,9 @@
}
}
},
- "tags": ["Event Types"]
+ "tags": [
+ "Event Types"
+ ]
},
"patch": {
"operationId": "EventTypesController_2024_06_14_updateEventType",
@@ -4803,7 +5134,9 @@
}
}
},
- "tags": ["Event Types"]
+ "tags": [
+ "Event Types"
+ ]
},
"delete": {
"operationId": "EventTypesController_2024_06_14_deleteEventType",
@@ -4848,7 +5181,9 @@
}
}
},
- "tags": ["Event Types"]
+ "tags": [
+ "Event Types"
+ ]
}
},
"/v2/event-types/{eventTypeId}/webhooks": {
@@ -4887,7 +5222,9 @@
}
}
},
- "tags": ["Event Types / Webhooks"]
+ "tags": [
+ "Event Types / Webhooks"
+ ]
},
"get": {
"operationId": "EventTypeWebhooksController_getEventTypeWebhooks",
@@ -4934,7 +5271,9 @@
}
}
},
- "tags": ["Event Types / Webhooks"]
+ "tags": [
+ "Event Types / Webhooks"
+ ]
},
"delete": {
"operationId": "EventTypeWebhooksController_deleteAllEventTypeWebhooks",
@@ -4961,7 +5300,9 @@
}
}
},
- "tags": ["Event Types / Webhooks"]
+ "tags": [
+ "Event Types / Webhooks"
+ ]
}
},
"/v2/event-types/{eventTypeId}/webhooks/{webhookId}": {
@@ -5000,7 +5341,9 @@
}
}
},
- "tags": ["Event Types / Webhooks"]
+ "tags": [
+ "Event Types / Webhooks"
+ ]
},
"get": {
"operationId": "EventTypeWebhooksController_getEventTypeWebhook",
@@ -5018,7 +5361,9 @@
}
}
},
- "tags": ["Event Types / Webhooks"]
+ "tags": [
+ "Event Types / Webhooks"
+ ]
},
"delete": {
"operationId": "EventTypeWebhooksController_deleteEventTypeWebhook",
@@ -5036,7 +5381,9 @@
}
}
},
- "tags": ["Event Types / Webhooks"]
+ "tags": [
+ "Event Types / Webhooks"
+ ]
}
},
"/v2/me": {
@@ -5056,7 +5403,9 @@
}
}
},
- "tags": ["Me"]
+ "tags": [
+ "Me"
+ ]
},
"patch": {
"operationId": "MeController_updateMe",
@@ -5084,7 +5433,9 @@
}
}
},
- "tags": ["Me"]
+ "tags": [
+ "Me"
+ ]
}
},
"/v2/oauth-clients": {
@@ -5115,7 +5466,9 @@
}
}
},
- "tags": ["OAuth Clients"]
+ "tags": [
+ "OAuth Clients"
+ ]
},
"get": {
"operationId": "OAuthClientsController_getOAuthClients",
@@ -5134,7 +5487,9 @@
}
}
},
- "tags": ["OAuth Clients"]
+ "tags": [
+ "OAuth Clients"
+ ]
}
},
"/v2/oauth-clients/{clientId}": {
@@ -5164,7 +5519,9 @@
}
}
},
- "tags": ["OAuth Clients"]
+ "tags": [
+ "OAuth Clients"
+ ]
},
"patch": {
"operationId": "OAuthClientsController_updateOAuthClient",
@@ -5202,7 +5559,9 @@
}
}
},
- "tags": ["OAuth Clients"]
+ "tags": [
+ "OAuth Clients"
+ ]
},
"delete": {
"operationId": "OAuthClientsController_deleteOAuthClient",
@@ -5230,7 +5589,9 @@
}
}
},
- "tags": ["OAuth Clients"]
+ "tags": [
+ "OAuth Clients"
+ ]
}
},
"/v2/oauth-clients/{clientId}/managed-users": {
@@ -5270,7 +5631,9 @@
}
}
},
- "tags": ["OAuth Clients"]
+ "tags": [
+ "OAuth Clients"
+ ]
}
},
"/v2/schedules": {
@@ -5320,7 +5683,9 @@
}
}
},
- "tags": ["Schedules"]
+ "tags": [
+ "Schedules"
+ ]
},
"get": {
"operationId": "SchedulesController_2024_06_11_getSchedules",
@@ -5358,7 +5723,9 @@
}
}
},
- "tags": ["Schedules"]
+ "tags": [
+ "Schedules"
+ ]
}
},
"/v2/schedules/default": {
@@ -5398,7 +5765,9 @@
}
}
},
- "tags": ["Schedules"]
+ "tags": [
+ "Schedules"
+ ]
}
},
"/v2/schedules/{scheduleId}": {
@@ -5445,7 +5814,9 @@
}
}
},
- "tags": ["Schedules"]
+ "tags": [
+ "Schedules"
+ ]
},
"patch": {
"operationId": "SchedulesController_2024_06_11_updateSchedule",
@@ -5500,7 +5871,9 @@
}
}
},
- "tags": ["Schedules"]
+ "tags": [
+ "Schedules"
+ ]
},
"delete": {
"operationId": "SchedulesController_2024_06_11_deleteSchedule",
@@ -5545,7 +5918,9 @@
}
}
},
- "tags": ["Schedules"]
+ "tags": [
+ "Schedules"
+ ]
}
},
"/v2/selected-calendars": {
@@ -5575,7 +5950,9 @@
}
}
},
- "tags": ["Selected Calendars"]
+ "tags": [
+ "Selected Calendars"
+ ]
},
"delete": {
"operationId": "SelectedCalendarsController_deleteSelectedCalendar",
@@ -5626,7 +6003,9 @@
}
}
},
- "tags": ["Selected Calendars"]
+ "tags": [
+ "Selected Calendars"
+ ]
}
},
"/v2/slots": {
@@ -5804,7 +6183,9 @@
}
}
},
- "tags": ["Slots"]
+ "tags": [
+ "Slots"
+ ]
}
},
"/v2/slots/reservations": {
@@ -5845,7 +6226,9 @@
}
}
},
- "tags": ["Slots"]
+ "tags": [
+ "Slots"
+ ]
}
},
"/v2/slots/reservations/{uid}": {
@@ -5883,7 +6266,9 @@
}
}
},
- "tags": ["Slots"]
+ "tags": [
+ "Slots"
+ ]
},
"patch": {
"operationId": "SlotsController_2024_09_04_updateReservedSlot",
@@ -5929,7 +6314,9 @@
}
}
},
- "tags": ["Slots"]
+ "tags": [
+ "Slots"
+ ]
},
"delete": {
"operationId": "SlotsController_2024_09_04_deleteReservedSlot",
@@ -5967,7 +6354,9 @@
}
}
},
- "tags": ["Slots"]
+ "tags": [
+ "Slots"
+ ]
}
},
"/v2/stripe/connect": {
@@ -5996,7 +6385,9 @@
}
}
},
- "tags": ["Stripe"]
+ "tags": [
+ "Stripe"
+ ]
}
},
"/v2/stripe/save": {
@@ -6033,7 +6424,9 @@
}
}
},
- "tags": ["Stripe"]
+ "tags": [
+ "Stripe"
+ ]
}
},
"/v2/stripe/check": {
@@ -6053,7 +6446,9 @@
}
}
},
- "tags": ["Stripe"]
+ "tags": [
+ "Stripe"
+ ]
}
},
"/v2/stripe/check/{teamId}": {
@@ -6082,7 +6477,9 @@
}
}
},
- "tags": ["Stripe"]
+ "tags": [
+ "Stripe"
+ ]
}
},
"/v2/teams": {
@@ -6112,7 +6509,9 @@
}
}
},
- "tags": ["Teams"]
+ "tags": [
+ "Teams"
+ ]
},
"get": {
"operationId": "TeamsController_getTeams",
@@ -6130,7 +6529,9 @@
}
}
},
- "tags": ["Teams"]
+ "tags": [
+ "Teams"
+ ]
}
},
"/v2/teams/{teamId}": {
@@ -6159,7 +6560,9 @@
}
}
},
- "tags": ["Teams"]
+ "tags": [
+ "Teams"
+ ]
},
"patch": {
"operationId": "TeamsController_updateTeam",
@@ -6196,7 +6599,9 @@
}
}
},
- "tags": ["Teams"]
+ "tags": [
+ "Teams"
+ ]
},
"delete": {
"operationId": "TeamsController_deleteTeam",
@@ -6223,7 +6628,9 @@
}
}
},
- "tags": ["Teams"]
+ "tags": [
+ "Teams"
+ ]
}
},
"/v2/teams/{teamId}/event-types": {
@@ -6262,7 +6669,9 @@
}
}
},
- "tags": ["Teams / Event Types"]
+ "tags": [
+ "Teams / Event Types"
+ ]
},
"get": {
"operationId": "TeamsEventTypesController_getTeamEventTypes",
@@ -6307,7 +6716,9 @@
}
}
},
- "tags": ["Teams / Event Types"]
+ "tags": [
+ "Teams / Event Types"
+ ]
}
},
"/v2/teams/{teamId}/event-types/{eventTypeId}": {
@@ -6344,7 +6755,9 @@
}
}
},
- "tags": ["Teams / Event Types"]
+ "tags": [
+ "Teams / Event Types"
+ ]
},
"patch": {
"operationId": "TeamsEventTypesController_updateTeamEventType",
@@ -6389,7 +6802,9 @@
}
}
},
- "tags": ["Teams / Event Types"]
+ "tags": [
+ "Teams / Event Types"
+ ]
},
"delete": {
"operationId": "TeamsEventTypesController_deleteTeamEventType",
@@ -6424,7 +6839,9 @@
}
}
},
- "tags": ["Teams / Event Types"]
+ "tags": [
+ "Teams / Event Types"
+ ]
}
},
"/v2/teams/{teamId}/event-types/{eventTypeId}/create-phone-call": {
@@ -6471,7 +6888,9 @@
}
}
},
- "tags": ["Teams / Event Types"]
+ "tags": [
+ "Teams / Event Types"
+ ]
}
},
"/v2/teams/{teamId}/memberships": {
@@ -6510,7 +6929,9 @@
}
}
},
- "tags": ["Teams / Memberships"]
+ "tags": [
+ "Teams / Memberships"
+ ]
},
"get": {
"operationId": "TeamsMembershipsController_getTeamMemberships",
@@ -6557,7 +6978,9 @@
}
}
},
- "tags": ["Teams / Memberships"]
+ "tags": [
+ "Teams / Memberships"
+ ]
}
},
"/v2/teams/{teamId}/memberships/{membershipId}": {
@@ -6594,7 +7017,9 @@
}
}
},
- "tags": ["Teams / Memberships"]
+ "tags": [
+ "Teams / Memberships"
+ ]
},
"patch": {
"operationId": "TeamsMembershipsController_updateTeamMembership",
@@ -6639,7 +7064,9 @@
}
}
},
- "tags": ["Teams / Memberships"]
+ "tags": [
+ "Teams / Memberships"
+ ]
},
"delete": {
"operationId": "TeamsMembershipsController_deleteTeamMembership",
@@ -6674,7 +7101,9 @@
}
}
},
- "tags": ["Teams / Memberships"]
+ "tags": [
+ "Teams / Memberships"
+ ]
}
},
"/v2/timezones": {
@@ -6694,7 +7123,9 @@
}
}
},
- "tags": ["Timezones"]
+ "tags": [
+ "Timezones"
+ ]
}
},
"/v2/webhooks": {
@@ -6724,7 +7155,9 @@
}
}
},
- "tags": ["Webhooks"]
+ "tags": [
+ "Webhooks"
+ ]
},
"get": {
"operationId": "WebhooksController_getWebhooks",
@@ -6764,7 +7197,9 @@
}
}
},
- "tags": ["Webhooks"]
+ "tags": [
+ "Webhooks"
+ ]
}
},
"/v2/webhooks/{webhookId}": {
@@ -6803,7 +7238,9 @@
}
}
},
- "tags": ["Webhooks"]
+ "tags": [
+ "Webhooks"
+ ]
},
"get": {
"operationId": "WebhooksController_getWebhook",
@@ -6821,7 +7258,9 @@
}
}
},
- "tags": ["Webhooks"]
+ "tags": [
+ "Webhooks"
+ ]
},
"delete": {
"operationId": "WebhooksController_deleteWebhook",
@@ -6848,7 +7287,9 @@
}
}
},
- "tags": ["Webhooks"]
+ "tags": [
+ "Webhooks"
+ ]
}
}
},
@@ -6978,7 +7419,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -6987,7 +7431,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateManagedUserInput": {
"type": "object",
@@ -7003,14 +7450,25 @@
},
"timeFormat": {
"type": "number",
- "enum": [12, 24],
+ "enum": [
+ 12,
+ 24
+ ],
"example": 12,
"description": "Must be a number 12 or 24"
},
"weekStart": {
"type": "string",
"example": "Monday",
- "enum": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
+ "enum": [
+ "Monday",
+ "Tuesday",
+ "Wednesday",
+ "Thursday",
+ "Friday",
+ "Saturday",
+ "Sunday"
+ ]
},
"timeZone": {
"type": "string",
@@ -7071,7 +7529,10 @@
"description": "URL of the user's avatar image"
}
},
- "required": ["email", "name"]
+ "required": [
+ "email",
+ "name"
+ ]
},
"CreateManagedUserData": {
"type": "object",
@@ -7089,7 +7550,12 @@
"type": "number"
}
},
- "required": ["user", "accessToken", "refreshToken", "accessTokenExpiresAt"]
+ "required": [
+ "user",
+ "accessToken",
+ "refreshToken",
+ "accessTokenExpiresAt"
+ ]
},
"CreateManagedUserOutput": {
"type": "object",
@@ -7097,7 +7563,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/CreateManagedUserData"
@@ -7106,7 +7575,10 @@
"type": "object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetManagedUserOutput": {
"type": "object",
@@ -7114,13 +7586,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ManagedUserOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateManagedUserInput": {
"type": "object",
@@ -7133,7 +7611,10 @@
},
"timeFormat": {
"type": "number",
- "enum": [12, 24],
+ "enum": [
+ 12,
+ 24
+ ],
"example": 12,
"description": "Must be 12 or 24"
},
@@ -7142,7 +7623,15 @@
},
"weekStart": {
"type": "string",
- "enum": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
+ "enum": [
+ "Monday",
+ "Tuesday",
+ "Wednesday",
+ "Thursday",
+ "Friday",
+ "Saturday",
+ "Sunday"
+ ],
"example": "Monday"
},
"timeZone": {
@@ -7218,7 +7707,11 @@
"type": "number"
}
},
- "required": ["accessToken", "refreshToken", "accessTokenExpiresAt"]
+ "required": [
+ "accessToken",
+ "refreshToken",
+ "accessTokenExpiresAt"
+ ]
},
"KeysResponseDto": {
"type": "object",
@@ -7226,13 +7719,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/KeysDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateOAuthClientInput": {
"type": "object",
@@ -7287,10 +7786,14 @@
"description": "If true, when creating a managed user the managed user will have 4 default event types: 30 and 60 minutes without Cal video, 30 and 60 minutes with Cal video. Set this as false if you want to create a managed user and then manually create event types for the user."
}
},
- "required": ["name", "redirectUris", "permissions"]
- },
- "CreateOAuthClientOutput": {
- "type": "object",
+ "required": [
+ "name",
+ "redirectUris",
+ "permissions"
+ ]
+ },
+ "CreateOAuthClientOutput": {
+ "type": "object",
"properties": {
"clientId": {
"type": "string",
@@ -7301,14 +7804,20 @@
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoib2F1dGgtY2xpZW50Iiwi"
}
},
- "required": ["clientId", "clientSecret"]
+ "required": [
+ "clientId",
+ "clientSecret"
+ ]
},
"CreateOAuthClientResponseDto": {
"type": "object",
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"],
+ "enum": [
+ "success",
+ "error"
+ ],
"example": "success"
},
"data": {
@@ -7323,7 +7832,10 @@
]
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"PlatformOAuthClientDto": {
"type": "object",
@@ -7358,14 +7870,19 @@
"PROFILE_WRITE"
]
},
- "example": ["BOOKING_READ", "BOOKING_WRITE"]
+ "example": [
+ "BOOKING_READ",
+ "BOOKING_WRITE"
+ ]
},
"logo": {
"type": "object",
"example": "https://example.com/logo.png"
},
"redirectUris": {
- "example": ["https://example.com/callback"],
+ "example": [
+ "https://example.com/callback"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -7420,7 +7937,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -7429,7 +7949,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetOAuthClientResponseDto": {
"type": "object",
@@ -7437,13 +7960,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/PlatformOAuthClientDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOAuthClientInput": {
"type": "object",
@@ -7486,7 +8015,9 @@
"description": "Managed user's refresh token."
}
},
- "required": ["refreshToken"]
+ "required": [
+ "refreshToken"
+ ]
},
"RefreshApiKeyInput": {
"type": "object",
@@ -7512,7 +8043,9 @@
"type": "string"
}
},
- "required": ["apiKey"]
+ "required": [
+ "apiKey"
+ ]
},
"RefreshApiKeyOutput": {
"type": "object",
@@ -7520,13 +8053,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ApiKeyOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"InputAddressLocation_2024_06_14": {
"type": "object",
@@ -7544,7 +8083,11 @@
"type": "boolean"
}
},
- "required": ["type", "address", "public"]
+ "required": [
+ "type",
+ "address",
+ "public"
+ ]
},
"InputLinkLocation_2024_06_14": {
"type": "object",
@@ -7562,7 +8105,11 @@
"type": "boolean"
}
},
- "required": ["type", "link", "public"]
+ "required": [
+ "type",
+ "link",
+ "public"
+ ]
},
"InputIntegrationLocation_2024_06_14": {
"type": "object",
@@ -7575,10 +8122,18 @@
"integration": {
"type": "string",
"example": "cal-video",
- "enum": ["cal-video", "google-meet", "office365-video", "zoom"]
+ "enum": [
+ "cal-video",
+ "google-meet",
+ "office365-video",
+ "zoom"
+ ]
}
},
- "required": ["type", "integration"]
+ "required": [
+ "type",
+ "integration"
+ ]
},
"InputPhoneLocation_2024_06_14": {
"type": "object",
@@ -7596,7 +8151,11 @@
"type": "boolean"
}
},
- "required": ["type", "phone", "public"]
+ "required": [
+ "type",
+ "phone",
+ "public"
+ ]
},
"PhoneFieldInput_2024_06_14": {
"type": "object",
@@ -7629,7 +8188,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "hidden"
+ ]
},
"AddressFieldInput_2024_06_14": {
"type": "object",
@@ -7664,7 +8230,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "hidden"
+ ]
},
"TextFieldInput_2024_06_14": {
"type": "object",
@@ -7699,7 +8272,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "hidden"
+ ]
},
"NumberFieldInput_2024_06_14": {
"type": "object",
@@ -7734,7 +8314,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "hidden"
+ ]
},
"TextAreaFieldInput_2024_06_14": {
"type": "object",
@@ -7769,7 +8356,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "hidden"
+ ]
},
"SelectFieldInput_2024_06_14": {
"type": "object",
@@ -7796,7 +8390,10 @@
"example": "Select..."
},
"options": {
- "example": ["Option 1", "Option 2"],
+ "example": [
+ "Option 1",
+ "Option 2"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -7811,7 +8408,15 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "options", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "options",
+ "hidden"
+ ]
},
"MultiSelectFieldInput_2024_06_14": {
"type": "object",
@@ -7834,7 +8439,10 @@
"type": "boolean"
},
"options": {
- "example": ["Option 1", "Option 2"],
+ "example": [
+ "Option 1",
+ "Option 2"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -7849,7 +8457,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "options", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "options",
+ "hidden"
+ ]
},
"MultiEmailFieldInput_2024_06_14": {
"type": "object",
@@ -7884,7 +8499,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "hidden"
+ ]
},
"CheckboxGroupFieldInput_2024_06_14": {
"type": "object",
@@ -7907,7 +8529,10 @@
"type": "boolean"
},
"options": {
- "example": ["Checkbox 1", "Checkbox 2"],
+ "example": [
+ "Checkbox 1",
+ "Checkbox 2"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -7922,7 +8547,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "options", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "options",
+ "hidden"
+ ]
},
"RadioGroupFieldInput_2024_06_14": {
"type": "object",
@@ -7945,7 +8577,10 @@
"type": "boolean"
},
"options": {
- "example": ["Radio 1", "Radio 2"],
+ "example": [
+ "Radio 1",
+ "Radio 2"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -7960,7 +8595,14 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "options", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "options",
+ "hidden"
+ ]
},
"BooleanFieldInput_2024_06_14": {
"type": "object",
@@ -7990,7 +8632,13 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden"
+ ]
},
"UrlFieldInput_2024_06_14": {
"type": "object",
@@ -8025,14 +8673,25 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["type", "slug", "label", "required", "placeholder", "hidden"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "placeholder",
+ "hidden"
+ ]
},
"BusinessDaysWindow_2024_06_14": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "enum": ["businessDays", "calendarDays", "range"],
+ "enum": [
+ "businessDays",
+ "calendarDays",
+ "range"
+ ],
"description": "Whether the window should be business days, calendar days or a range of dates"
},
"value": {
@@ -8046,14 +8705,21 @@
"description": "\n Determines the behavior of the booking window:\n - If **true**, the window is rolling. This means the number of available days will always be equal the specified 'value' \n and adjust dynamically as bookings are made. For example, if 'value' is 3 and availability is only on Mondays, \n a booker attempting to schedule on November 10 will see slots on November 11, 18, and 25. As one of these days \n becomes fully booked, a new day (e.g., December 2) will open up to ensure 3 available days are always visible.\n - If **false**, the window is fixed. This means the booking window only considers the next 'value' days from the\n moment someone is trying to book. For example, if 'value' is 3, availability is only on Mondays, and the current \n date is November 10, the booker will only see slots on November 11 because the window is restricted to the next \n 3 calendar days (November 10–12).\n "
}
},
- "required": ["type", "value"]
+ "required": [
+ "type",
+ "value"
+ ]
},
"CalendarDaysWindow_2024_06_14": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "enum": ["businessDays", "calendarDays", "range"],
+ "enum": [
+ "businessDays",
+ "calendarDays",
+ "range"
+ ],
"description": "Whether the window should be business days, calendar days or a range of dates"
},
"value": {
@@ -8067,18 +8733,28 @@
"description": "\n Determines the behavior of the booking window:\n - If **true**, the window is rolling. This means the number of available days will always be equal the specified 'value' \n and adjust dynamically as bookings are made. For example, if 'value' is 3 and availability is only on Mondays, \n a booker attempting to schedule on November 10 will see slots on November 11, 18, and 25. As one of these days \n becomes fully booked, a new day (e.g., December 2) will open up to ensure 3 available days are always visible.\n - If **false**, the window is fixed. This means the booking window only considers the next 'value' days from the\n moment someone is trying to book. For example, if 'value' is 3, availability is only on Mondays, and the current \n date is November 10, the booker will only see slots on November 11 because the window is restricted to the next \n 3 calendar days (November 10–12).\n "
}
},
- "required": ["type", "value"]
+ "required": [
+ "type",
+ "value"
+ ]
},
"RangeWindow_2024_06_14": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "enum": ["businessDays", "calendarDays", "range"],
+ "enum": [
+ "businessDays",
+ "calendarDays",
+ "range"
+ ],
"description": "Whether the window should be business days, calendar days or a range of dates"
},
"value": {
- "example": ["2030-09-05", "2030-09-09"],
+ "example": [
+ "2030-09-05",
+ "2030-09-09"
+ ],
"description": "Date range for when this event can be booked.",
"type": "array",
"items": {
@@ -8086,7 +8762,10 @@
}
}
},
- "required": ["type", "value"]
+ "required": [
+ "type",
+ "value"
+ ]
},
"BaseBookingLimitsCount_2024_06_14": {
"type": "object",
@@ -8127,7 +8806,9 @@
"default": false
}
},
- "required": ["disabled"]
+ "required": [
+ "disabled"
+ ]
},
"BaseBookingLimitsDuration_2024_06_14": {
"type": "object",
@@ -8169,10 +8850,18 @@
},
"frequency": {
"type": "string",
- "enum": ["yearly", "monthly", "weekly"]
+ "enum": [
+ "yearly",
+ "monthly",
+ "weekly"
+ ]
}
},
- "required": ["interval", "occurrences", "frequency"]
+ "required": [
+ "interval",
+ "occurrences",
+ "frequency"
+ ]
},
"NoticeThreshold_2024_06_14": {
"type": "object",
@@ -8188,7 +8877,10 @@
"example": 30
}
},
- "required": ["unit", "count"]
+ "required": [
+ "unit",
+ "count"
+ ]
},
"BaseConfirmationPolicy_2024_06_14": {
"type": "object",
@@ -8196,7 +8888,10 @@
"type": {
"type": "string",
"description": "The policy that determines when confirmation is required",
- "enum": ["always", "time"],
+ "enum": [
+ "always",
+ "time"
+ ],
"example": "always"
},
"noticeThreshold": {
@@ -8212,7 +8907,10 @@
"description": "Unconfirmed bookings still block calendar slots."
}
},
- "required": ["type", "blockUnconfirmedBookingsInBooker"]
+ "required": [
+ "type",
+ "blockUnconfirmedBookingsInBooker"
+ ]
},
"Seats_2024_06_14": {
"type": "object",
@@ -8233,7 +8931,11 @@
"example": true
}
},
- "required": ["seatsPerTimeSlot", "showAttendeeInfo", "showAvailabilityCount"]
+ "required": [
+ "seatsPerTimeSlot",
+ "showAttendeeInfo",
+ "showAvailabilityCount"
+ ]
},
"InputAttendeeAddressLocation_2024_06_14": {
"type": "object",
@@ -8244,7 +8946,9 @@
"description": "only allowed value for type is `attendeeAddress`"
}
},
- "required": ["type"]
+ "required": [
+ "type"
+ ]
},
"InputAttendeePhoneLocation_2024_06_14": {
"type": "object",
@@ -8255,7 +8959,9 @@
"description": "only allowed value for type is `attendeePhone`"
}
},
- "required": ["type"]
+ "required": [
+ "type"
+ ]
},
"InputAttendeeDefinedLocation_2024_06_14": {
"type": "object",
@@ -8266,7 +8972,9 @@
"description": "only allowed value for type is `attendeeDefined`"
}
},
- "required": ["type"]
+ "required": [
+ "type"
+ ]
},
"NameDefaultFieldInput_2024_06_14": {
"type": "object",
@@ -8287,7 +8995,11 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&name=bob`, the name field will be prefilled with this value and disabled."
}
},
- "required": ["type", "label", "placeholder"]
+ "required": [
+ "type",
+ "label",
+ "placeholder"
+ ]
},
"EmailDefaultFieldInput_2024_06_14": {
"type": "object",
@@ -8311,7 +9023,12 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&[email protected]`, the email field will be prefilled with this value and disabled."
}
},
- "required": ["type", "label", "required", "placeholder"]
+ "required": [
+ "type",
+ "label",
+ "required",
+ "placeholder"
+ ]
},
"TitleDefaultFieldInput_2024_06_14": {
"type": "object",
@@ -8339,7 +9056,9 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&title=journey`, the title field will be prefilled with this value and disabled."
}
},
- "required": ["slug"]
+ "required": [
+ "slug"
+ ]
},
"NotesDefaultFieldInput_2024_06_14": {
"type": "object",
@@ -8367,7 +9086,9 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&notes=journey`, the notes field will be prefilled with this value and disabled."
}
},
- "required": ["slug"]
+ "required": [
+ "slug"
+ ]
},
"GuestsDefaultFieldInput_2024_06_14": {
"type": "object",
@@ -8395,7 +9116,9 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&[email protected]`, the guests field will be prefilled with this value and disabled."
}
},
- "required": ["slug"]
+ "required": [
+ "slug"
+ ]
},
"RescheduleReasonDefaultFieldInput_2024_06_14": {
"type": "object",
@@ -8423,7 +9146,9 @@
"description": "Disable this booking field if the URL contains query parameter with key equal to the slug and prefill it with the provided value. For example, if URL contains query parameter `&rescheduleReason=travel`, the rescheduleReason field will be prefilled with this value and disabled."
}
},
- "required": ["slug"]
+ "required": [
+ "slug"
+ ]
},
"InputOrganizersDefaultApp_2024_06_14": {
"type": "object",
@@ -8434,24 +9159,37 @@
"description": "only allowed value for type is `organizersDefaultApp`"
}
},
- "required": ["type"]
+ "required": [
+ "type"
+ ]
},
"BookerLayouts_2024_06_14": {
"type": "object",
"properties": {
"defaultLayout": {
"type": "string",
- "enum": ["month", "week", "column"]
+ "enum": [
+ "month",
+ "week",
+ "column"
+ ]
},
"enabledLayouts": {
"type": "array",
"items": {
"type": "string",
- "enum": ["month", "week", "column"]
+ "enum": [
+ "month",
+ "week",
+ "column"
+ ]
}
}
},
- "required": ["defaultLayout", "enabledLayouts"]
+ "required": [
+ "defaultLayout",
+ "enabledLayouts"
+ ]
},
"EventTypeColor_2024_06_14": {
"type": "object",
@@ -8467,7 +9205,10 @@
"example": "#fafafa"
}
},
- "required": ["lightThemeHex", "darkThemeHex"]
+ "required": [
+ "lightThemeHex",
+ "darkThemeHex"
+ ]
},
"DestinationCalendar_2024_06_14": {
"type": "object",
@@ -8481,7 +9222,10 @@
"description": "The external ID of the destination calendar. Refer to the /api/v2/calendars endpoint to retrieve the external IDs of your connected calendars."
}
},
- "required": ["integration", "externalId"]
+ "required": [
+ "integration",
+ "externalId"
+ ]
},
"CreateEventTypeInput_2024_06_14": {
"type": "object",
@@ -8491,7 +9235,11 @@
"example": 60
},
"lengthInMinutesOptions": {
- "example": [15, 30, 60],
+ "example": [
+ 15,
+ 30,
+ 60
+ ],
"description": "If you want that user can choose between different lengths of the event you can specify them here. Must include the provided `lengthInMinutes`.",
"type": "array",
"items": {
@@ -8745,7 +9493,11 @@
}
}
},
- "required": ["lengthInMinutes", "title", "slug"]
+ "required": [
+ "lengthInMinutes",
+ "title",
+ "slug"
+ ]
},
"OutputAddressLocation_2024_06_14": {
"type": "object",
@@ -8773,7 +9525,11 @@
"type": "boolean"
}
},
- "required": ["type", "address", "public"]
+ "required": [
+ "type",
+ "address",
+ "public"
+ ]
},
"OutputLinkLocation_2024_06_14": {
"type": "object",
@@ -8801,7 +9557,11 @@
"type": "boolean"
}
},
- "required": ["type", "link", "public"]
+ "required": [
+ "type",
+ "link",
+ "public"
+ ]
},
"OutputIntegrationLocation_2024_06_14": {
"type": "object",
@@ -8869,7 +9629,10 @@
"description": "Credential ID associated with the integration"
}
},
- "required": ["type", "integration"]
+ "required": [
+ "type",
+ "integration"
+ ]
},
"OutputPhoneLocation_2024_06_14": {
"type": "object",
@@ -8897,7 +9660,11 @@
"type": "boolean"
}
},
- "required": ["type", "phone", "public"]
+ "required": [
+ "type",
+ "phone",
+ "public"
+ ]
},
"OutputOrganizersDefaultAppLocation_2024_06_14": {
"type": "object",
@@ -8920,7 +9687,9 @@
"description": "only allowed value for type is `organizersDefaultApp`"
}
},
- "required": ["type"]
+ "required": [
+ "type"
+ ]
},
"OutputUnknownLocation_2024_06_14": {
"type": "object",
@@ -8946,7 +9715,10 @@
"type": "string"
}
},
- "required": ["type", "location"]
+ "required": [
+ "type",
+ "location"
+ ]
},
"EmailDefaultFieldOutput_2024_06_14": {
"type": "object",
@@ -8998,7 +9770,12 @@
"default": "email"
}
},
- "required": ["type", "required", "isDefault", "slug"]
+ "required": [
+ "type",
+ "required",
+ "isDefault",
+ "slug"
+ ]
},
"NameDefaultFieldOutput_2024_06_14": {
"type": "object",
@@ -9049,7 +9826,12 @@
"type": "boolean"
}
},
- "required": ["type", "isDefault", "slug", "required"]
+ "required": [
+ "type",
+ "isDefault",
+ "slug",
+ "required"
+ ]
},
"LocationDefaultFieldOutput_2024_06_14": {
"type": "object",
@@ -9077,14 +9859,26 @@
"description": "If true show under event type settings but don't show this booking field in the Booker. If false show in both."
}
},
- "required": ["isDefault", "slug", "type", "required", "hidden"]
+ "required": [
+ "isDefault",
+ "slug",
+ "type",
+ "required",
+ "hidden"
+ ]
},
"RescheduleReasonDefaultFieldOutput_2024_06_14": {
"type": "object",
"properties": {
"slug": {
"type": "string",
- "enum": ["name", "email", "title", "notes", "guests"],
+ "enum": [
+ "name",
+ "email",
+ "title",
+ "notes",
+ "guests"
+ ],
"example": "rescheduleReason",
"description": "only allowed value for type is `rescheduleReason`",
"default": "rescheduleReason"
@@ -9117,14 +9911,24 @@
"default": "textarea"
}
},
- "required": ["slug", "isDefault", "type"]
+ "required": [
+ "slug",
+ "isDefault",
+ "type"
+ ]
},
"TitleDefaultFieldOutput_2024_06_14": {
"type": "object",
"properties": {
"slug": {
"type": "string",
- "enum": ["name", "email", "title", "notes", "guests"],
+ "enum": [
+ "name",
+ "email",
+ "title",
+ "notes",
+ "guests"
+ ],
"example": "title",
"description": "only allowed value for type is `title`",
"default": "title"
@@ -9157,14 +9961,24 @@
"default": "text"
}
},
- "required": ["slug", "isDefault", "type"]
+ "required": [
+ "slug",
+ "isDefault",
+ "type"
+ ]
},
"NotesDefaultFieldOutput_2024_06_14": {
"type": "object",
"properties": {
"slug": {
"type": "string",
- "enum": ["name", "email", "title", "notes", "guests"],
+ "enum": [
+ "name",
+ "email",
+ "title",
+ "notes",
+ "guests"
+ ],
"example": "notes",
"description": "only allowed value for type is `notes`",
"default": "notes"
@@ -9197,14 +10011,24 @@
"default": "textarea"
}
},
- "required": ["slug", "isDefault", "type"]
+ "required": [
+ "slug",
+ "isDefault",
+ "type"
+ ]
},
"GuestsDefaultFieldOutput_2024_06_14": {
"type": "object",
"properties": {
"slug": {
"type": "string",
- "enum": ["name", "email", "title", "notes", "guests"],
+ "enum": [
+ "name",
+ "email",
+ "title",
+ "notes",
+ "guests"
+ ],
"example": "guests",
"description": "only allowed value for type is `guests`",
"default": "guests"
@@ -9237,7 +10061,11 @@
"default": "multiemail"
}
},
- "required": ["slug", "isDefault", "type"]
+ "required": [
+ "slug",
+ "isDefault",
+ "type"
+ ]
},
"AddressFieldOutput_2024_06_14": {
"type": "object",
@@ -9294,7 +10122,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"BooleanFieldOutput_2024_06_14": {
"type": "object",
@@ -9346,7 +10181,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"CheckboxGroupFieldOutput_2024_06_14": {
"type": "object",
@@ -9385,7 +10227,10 @@
"type": "boolean"
},
"options": {
- "example": ["Checkbox 1", "Checkbox 2"],
+ "example": [
+ "Checkbox 1",
+ "Checkbox 2"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -9406,7 +10251,15 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "options", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "options",
+ "hidden",
+ "isDefault"
+ ]
},
"MultiEmailFieldOutput_2024_06_14": {
"type": "object",
@@ -9463,7 +10316,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"MultiSelectFieldOutput_2024_06_14": {
"type": "object",
@@ -9502,8 +10362,11 @@
"type": "boolean"
},
"options": {
- "example": ["Option 1", "Option 2"],
- "type": "array",
+ "example": [
+ "Option 1",
+ "Option 2"
+ ],
+ "type": "array",
"items": {
"type": "string"
}
@@ -9523,7 +10386,15 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "options", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "options",
+ "hidden",
+ "isDefault"
+ ]
},
"UrlFieldOutput_2024_06_14": {
"type": "object",
@@ -9580,7 +10451,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"NumberFieldOutput_2024_06_14": {
"type": "object",
@@ -9637,7 +10515,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"PhoneFieldOutput_2024_06_14": {
"type": "object",
@@ -9692,7 +10577,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"RadioGroupFieldOutput_2024_06_14": {
"type": "object",
@@ -9731,7 +10623,10 @@
"type": "boolean"
},
"options": {
- "example": ["Radio 1", "Radio 2"],
+ "example": [
+ "Radio 1",
+ "Radio 2"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -9752,7 +10647,15 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "options", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "options",
+ "hidden",
+ "isDefault"
+ ]
},
"SelectFieldOutput_2024_06_14": {
"type": "object",
@@ -9795,7 +10698,10 @@
"example": "Select..."
},
"options": {
- "example": ["Option 1", "Option 2"],
+ "example": [
+ "Option 1",
+ "Option 2"
+ ],
"type": "array",
"items": {
"type": "string"
@@ -9816,7 +10722,15 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "options", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "options",
+ "hidden",
+ "isDefault"
+ ]
},
"TextAreaFieldOutput_2024_06_14": {
"type": "object",
@@ -9873,7 +10787,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"TextFieldOutput_2024_06_14": {
"type": "object",
@@ -9930,7 +10851,14 @@
"example": false
}
},
- "required": ["type", "slug", "label", "required", "hidden", "isDefault"]
+ "required": [
+ "type",
+ "slug",
+ "label",
+ "required",
+ "hidden",
+ "isDefault"
+ ]
},
"EventTypeOutput_2024_06_14": {
"type": "object",
@@ -9944,7 +10872,11 @@
"example": 60
},
"lengthInMinutesOptions": {
- "example": [15, 30, 60],
+ "example": [
+ 15,
+ 30,
+ 60
+ ],
"description": "If you want that user can choose between different lengths of the event you can specify them here. Must include the provided `lengthInMinutes`.",
"type": "array",
"items": {
@@ -10212,21 +11144,30 @@
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"],
+ "enum": [
+ "success",
+ "error"
+ ],
"example": "success"
},
"data": {
"$ref": "#/components/schemas/EventTypeOutput_2024_06_14"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetEventTypeOutput_2024_06_14": {
"type": "object",
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"],
+ "enum": [
+ "success",
+ "error"
+ ],
"example": "success"
},
"data": {
@@ -10238,14 +11179,20 @@
]
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetEventTypesOutput_2024_06_14": {
"type": "object",
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"],
+ "enum": [
+ "success",
+ "error"
+ ],
"example": "success"
},
"data": {
@@ -10255,7 +11202,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateEventTypeInput_2024_06_14": {
"type": "object",
@@ -10265,7 +11215,11 @@
"example": 60
},
"lengthInMinutesOptions": {
- "example": [15, 30, 60],
+ "example": [
+ 15,
+ 30,
+ 60
+ ],
"description": "If you want that user can choose between different lengths of the event you can specify them here. Must include the provided `lengthInMinutes`.",
"type": "array",
"items": {
@@ -10522,14 +11476,20 @@
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"],
+ "enum": [
+ "success",
+ "error"
+ ],
"example": "success"
},
"data": {
"$ref": "#/components/schemas/EventTypeOutput_2024_06_14"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteData_2024_06_14": {
"type": "object",
@@ -10550,21 +11510,32 @@
"type": "string"
}
},
- "required": ["id", "lengthInMinutes", "title", "slug"]
+ "required": [
+ "id",
+ "lengthInMinutes",
+ "title",
+ "slug"
+ ]
},
"DeleteEventTypeOutput_2024_06_14": {
"type": "object",
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"],
+ "enum": [
+ "success",
+ "error"
+ ],
"example": "success"
},
"data": {
"$ref": "#/components/schemas/DeleteData_2024_06_14"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"SelectedCalendarsInputDto": {
"type": "object",
@@ -10582,7 +11553,11 @@
"type": "string"
}
},
- "required": ["integration", "externalId", "credentialId"]
+ "required": [
+ "integration",
+ "externalId",
+ "credentialId"
+ ]
},
"SelectedCalendarOutputDto": {
"type": "object",
@@ -10601,7 +11576,12 @@
"nullable": true
}
},
- "required": ["userId", "integration", "externalId", "credentialId"]
+ "required": [
+ "userId",
+ "integration",
+ "externalId",
+ "credentialId"
+ ]
},
"SelectedCalendarOutputResponseDto": {
"type": "object",
@@ -10609,13 +11589,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/SelectedCalendarOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"OrgTeamOutputDto": {
"type": "object",
@@ -10688,7 +11674,11 @@
"default": "Sunday"
}
},
- "required": ["id", "name", "isOrganization"]
+ "required": [
+ "id",
+ "name",
+ "isOrganization"
+ ]
},
"OrgTeamsOutputResponseDto": {
"type": "object",
@@ -10696,7 +11686,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -10705,7 +11698,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"OrgMeTeamsOutputResponseDto": {
"type": "object",
@@ -10713,7 +11709,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -10722,7 +11721,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"OrgTeamOutputResponseDto": {
"type": "object",
@@ -10730,13 +11732,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OrgTeamOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOrgTeamDto": {
"type": "object",
@@ -10892,19 +11900,40 @@
"default": true
}
},
- "required": ["name"]
+ "required": [
+ "name"
+ ]
},
"ScheduleAvailabilityInput_2024_06_11": {
"type": "object",
"properties": {
"days": {
"type": "array",
- "enum": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
- "example": ["Monday", "Tuesday"],
+ "enum": [
+ "Monday",
+ "Tuesday",
+ "Wednesday",
+ "Thursday",
+ "Friday",
+ "Saturday",
+ "Sunday"
+ ],
+ "example": [
+ "Monday",
+ "Tuesday"
+ ],
"description": "Array of days when schedule is active.",
"items": {
"type": "string",
- "enum": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
+ "enum": [
+ "Monday",
+ "Tuesday",
+ "Wednesday",
+ "Thursday",
+ "Friday",
+ "Saturday",
+ "Sunday"
+ ]
}
},
"startTime": {
@@ -10920,7 +11949,11 @@
"description": "endTime must be a valid time in format HH:MM e.g. 15:00"
}
},
- "required": ["days", "startTime", "endTime"]
+ "required": [
+ "days",
+ "startTime",
+ "endTime"
+ ]
},
"ScheduleOverrideInput_2024_06_11": {
"type": "object",
@@ -10942,7 +11975,11 @@
"description": "endTime must be a valid time in format HH:MM e.g. 13:00"
}
},
- "required": ["date", "startTime", "endTime"]
+ "required": [
+ "date",
+ "startTime",
+ "endTime"
+ ]
},
"ScheduleOutput_2024_06_11": {
"type": "object",
@@ -10966,12 +12003,18 @@
"availability": {
"example": [
{
- "days": ["Monday", "Tuesday"],
+ "days": [
+ "Monday",
+ "Tuesday"
+ ],
"startTime": "17:00",
"endTime": "19:00"
},
{
- "days": ["Wednesday", "Thursday"],
+ "days": [
+ "Wednesday",
+ "Thursday"
+ ],
"startTime": "16:00",
"endTime": "20:00"
}
@@ -10999,7 +12042,15 @@
}
}
},
- "required": ["id", "ownerId", "name", "timeZone", "availability", "isDefault", "overrides"]
+ "required": [
+ "id",
+ "ownerId",
+ "name",
+ "timeZone",
+ "availability",
+ "isDefault",
+ "overrides"
+ ]
},
"GetSchedulesOutput_2024_06_11": {
"type": "object",
@@ -11007,7 +12058,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -11019,7 +12073,10 @@
"type": "object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateScheduleInput_2024_06_11": {
"type": "object",
@@ -11037,12 +12094,18 @@
"description": "Each object contains days and times when the user is available. If not passed, the default availability is Monday to Friday from 09:00 to 17:00.",
"example": [
{
- "days": ["Monday", "Tuesday"],
+ "days": [
+ "Monday",
+ "Tuesday"
+ ],
"startTime": "17:00",
"endTime": "19:00"
},
{
- "days": ["Wednesday", "Thursday"],
+ "days": [
+ "Wednesday",
+ "Thursday"
+ ],
"startTime": "16:00",
"endTime": "20:00"
}
@@ -11072,7 +12135,11 @@
}
}
},
- "required": ["name", "timeZone", "isDefault"]
+ "required": [
+ "name",
+ "timeZone",
+ "isDefault"
+ ]
},
"CreateScheduleOutput_2024_06_11": {
"type": "object",
@@ -11080,13 +12147,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ScheduleOutput_2024_06_11"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetScheduleOutput_2024_06_11": {
"type": "object",
@@ -11094,7 +12167,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"nullable": true,
@@ -11108,7 +12184,10 @@
"type": "object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateScheduleInput_2024_06_11": {
"type": "object",
@@ -11124,7 +12203,10 @@
"availability": {
"example": [
{
- "days": ["Monday", "Tuesday"],
+ "days": [
+ "Monday",
+ "Tuesday"
+ ],
"startTime": "09:00",
"endTime": "10:00"
}
@@ -11159,7 +12241,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ScheduleOutput_2024_06_11"
@@ -11168,7 +12253,10 @@
"type": "object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteScheduleOutput_2024_06_11": {
"type": "object",
@@ -11176,10 +12264,15 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
}
},
- "required": ["status"]
+ "required": [
+ "status"
+ ]
},
"ProfileOutput": {
"type": "object",
@@ -11206,7 +12299,11 @@
"example": "john_doe"
}
},
- "required": ["id", "organizationId", "userId"]
+ "required": [
+ "id",
+ "organizationId",
+ "userId"
+ ]
},
"GetOrgUsersWithProfileOutput": {
"type": "object",
@@ -11342,7 +12439,15 @@
]
}
},
- "required": ["id", "email", "timeZone", "weekStart", "hideBranding", "createdDate", "profile"]
+ "required": [
+ "id",
+ "email",
+ "timeZone",
+ "weekStart",
+ "hideBranding",
+ "createdDate",
+ "profile"
+ ]
},
"GetOrganizationUsersResponseDTO": {
"type": "object",
@@ -11350,7 +12455,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -11359,7 +12467,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateOrganizationUserInput": {
"type": "object",
@@ -11437,14 +12548,20 @@
"organizationRole": {
"type": "string",
"default": "MEMBER",
- "enum": ["MEMBER", "ADMIN", "OWNER"]
+ "enum": [
+ "MEMBER",
+ "ADMIN",
+ "OWNER"
+ ]
},
"autoAccept": {
"type": "boolean",
"default": true
}
},
- "required": ["email"]
+ "required": [
+ "email"
+ ]
},
"GetOrganizationUserOutput": {
"type": "object",
@@ -11452,13 +12569,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/GetOrgUsersWithProfileOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOrganizationUserInput": {
"type": "object",
@@ -11481,13 +12604,23 @@
},
"role": {
"type": "string",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean"
}
},
- "required": ["id", "userId", "teamId", "accepted", "role"]
+ "required": [
+ "id",
+ "userId",
+ "teamId",
+ "accepted",
+ "role"
+ ]
},
"GetAllOrgMemberships": {
"type": "object",
@@ -11495,13 +12628,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OrgMembershipOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateOrgMembershipDto": {
"type": "object",
@@ -11516,14 +12655,21 @@
"role": {
"type": "string",
"default": "MEMBER",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean",
"default": false
}
},
- "required": ["userId", "role"]
+ "required": [
+ "userId",
+ "role"
+ ]
},
"CreateOrgMembershipOutput": {
"type": "object",
@@ -11531,13 +12677,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OrgMembershipOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetOrgMembership": {
"type": "object",
@@ -11545,13 +12697,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OrgMembershipOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteOrgMembership": {
"type": "object",
@@ -11559,13 +12717,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OrgMembershipOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOrgMembershipDto": {
"type": "object",
@@ -11575,7 +12739,11 @@
},
"role": {
"type": "string",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean"
@@ -11588,13 +12756,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OrgMembershipOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"Host": {
"type": "object",
@@ -11609,10 +12783,18 @@
},
"priority": {
"type": "string",
- "enum": ["lowest", "low", "medium", "high", "highest"]
+ "enum": [
+ "lowest",
+ "low",
+ "medium",
+ "high",
+ "highest"
+ ]
}
},
- "required": ["userId"]
+ "required": [
+ "userId"
+ ]
},
"CreateTeamEventTypeInput_2024_06_14": {
"type": "object",
@@ -11622,7 +12804,11 @@
"example": 60
},
"lengthInMinutesOptions": {
- "example": [15, 30, 60],
+ "example": [
+ 15,
+ 30,
+ 60
+ ],
"description": "If you want that user can choose between different lengths of the event you can specify them here. Must include the provided `lengthInMinutes`.",
"type": "array",
"items": {
@@ -11892,7 +13078,13 @@
}
}
},
- "required": ["lengthInMinutes", "title", "slug", "schedulingType", "hosts"]
+ "required": [
+ "lengthInMinutes",
+ "title",
+ "slug",
+ "schedulingType",
+ "hosts"
+ ]
},
"CreateTeamEventTypeOutput": {
"type": "object",
@@ -11900,7 +13092,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -11916,7 +13111,10 @@
]
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"TeamEventTypeResponseHost": {
"type": "object",
@@ -11933,7 +13131,13 @@
"priority": {
"type": "string",
"default": "medium",
- "enum": ["lowest", "low", "medium", "high", "highest"]
+ "enum": [
+ "lowest",
+ "low",
+ "medium",
+ "high",
+ "highest"
+ ]
},
"name": {
"type": "string",
@@ -11945,7 +13149,10 @@
"example": "https://cal.com/api/avatar/d95949bc-ccb1-400f-acf6-045c51a16856.png"
}
},
- "required": ["userId", "name"]
+ "required": [
+ "userId",
+ "name"
+ ]
},
"EventTypeTeam": {
"type": "object",
@@ -11978,7 +13185,9 @@
"type": "string"
}
},
- "required": ["id"]
+ "required": [
+ "id"
+ ]
},
"TeamEventTypeOutput_2024_06_14": {
"type": "object",
@@ -11993,7 +13202,11 @@
"example": 60
},
"lengthInMinutesOptions": {
- "example": [15, 30, 60],
+ "example": [
+ 15,
+ 30,
+ 60
+ ],
"description": "If you want that user can choose between different lengths of the event you can specify them here. Must include the provided `lengthInMinutes`.",
"type": "array",
"items": {
@@ -12252,7 +13465,11 @@
"schedulingType": {
"type": "string",
"nullable": true,
- "enum": ["ROUND_ROBIN", "COLLECTIVE", "MANAGED"]
+ "enum": [
+ "ROUND_ROBIN",
+ "COLLECTIVE",
+ "MANAGED"
+ ]
},
"team": {
"$ref": "#/components/schemas/EventTypeTeam"
@@ -12288,13 +13505,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamEventTypeOutput_2024_06_14"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreatePhoneCallInput": {
"type": "object",
@@ -12320,7 +13543,10 @@
},
"templateType": {
"default": "CUSTOM_TEMPLATE",
- "enum": ["CHECK_IN_APPOINTMENT", "CUSTOM_TEMPLATE"],
+ "enum": [
+ "CHECK_IN_APPOINTMENT",
+ "CUSTOM_TEMPLATE"
+ ],
"type": "string",
"description": "Template type"
},
@@ -12349,7 +13575,13 @@
"description": "General prompt"
}
},
- "required": ["yourPhoneNumber", "numberToCall", "calApiKey", "enabled", "templateType"]
+ "required": [
+ "yourPhoneNumber",
+ "numberToCall",
+ "calApiKey",
+ "enabled",
+ "templateType"
+ ]
},
"Data": {
"type": "object",
@@ -12361,7 +13593,9 @@
"type": "string"
}
},
- "required": ["callId"]
+ "required": [
+ "callId"
+ ]
},
"CreatePhoneCallOutput": {
"type": "object",
@@ -12369,13 +13603,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/Data"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetTeamEventTypesOutput": {
"type": "object",
@@ -12383,7 +13623,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -12392,7 +13635,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateTeamEventTypeInput_2024_06_14": {
"type": "object",
@@ -12402,7 +13648,11 @@
"example": 60
},
"lengthInMinutesOptions": {
- "example": [15, 30, 60],
+ "example": [
+ 15,
+ 30,
+ 60
+ ],
"description": "If you want that user can choose between different lengths of the event you can specify them here. Must include the provided `lengthInMinutes`.",
"type": "array",
"items": {
@@ -12673,7 +13923,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -12689,7 +13942,10 @@
]
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteTeamEventTypeOutput": {
"type": "object",
@@ -12697,13 +13953,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"MembershipUserOutputDto": {
"type": "object",
@@ -12721,7 +13983,9 @@
"type": "string"
}
},
- "required": ["email"]
+ "required": [
+ "email"
+ ]
},
"OrgTeamMembershipOutputDto": {
"type": "object",
@@ -12740,7 +14004,11 @@
},
"role": {
"type": "string",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean"
@@ -12749,7 +14017,14 @@
"$ref": "#/components/schemas/MembershipUserOutputDto"
}
},
- "required": ["id", "userId", "teamId", "accepted", "role", "user"]
+ "required": [
+ "id",
+ "userId",
+ "teamId",
+ "accepted",
+ "role",
+ "user"
+ ]
},
"OrgTeamMembershipsOutputResponseDto": {
"type": "object",
@@ -12757,7 +14032,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -12766,7 +14044,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"OrgTeamMembershipOutputResponseDto": {
"type": "object",
@@ -12774,13 +14055,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OrgTeamMembershipOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOrgTeamMembershipDto": {
"type": "object",
@@ -12790,7 +14077,11 @@
},
"role": {
"type": "string",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean"
@@ -12810,14 +14101,21 @@
"role": {
"type": "string",
"default": "MEMBER",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean",
"default": false
}
},
- "required": ["userId", "role"]
+ "required": [
+ "userId",
+ "role"
+ ]
},
"Attribute": {
"type": "object",
@@ -12835,7 +14133,12 @@
"type": {
"type": "string",
"description": "The type of the attribute",
- "enum": ["TEXT", "NUMBER", "SINGLE_SELECT", "MULTI_SELECT"]
+ "enum": [
+ "TEXT",
+ "NUMBER",
+ "SINGLE_SELECT",
+ "MULTI_SELECT"
+ ]
},
"name": {
"type": "string",
@@ -12858,7 +14161,14 @@
"example": true
}
},
- "required": ["id", "teamId", "type", "name", "slug", "enabled"]
+ "required": [
+ "id",
+ "teamId",
+ "type",
+ "name",
+ "slug",
+ "enabled"
+ ]
},
"GetOrganizationAttributesOutput": {
"type": "object",
@@ -12866,7 +14176,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -12875,7 +14188,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetSingleAttributeOutput": {
"type": "object",
@@ -12883,7 +14199,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"nullable": true,
@@ -12894,7 +14213,10 @@
]
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateOrganizationAttributeOptionInput": {
"type": "object",
@@ -12906,7 +14228,10 @@
"type": "string"
}
},
- "required": ["value", "slug"]
+ "required": [
+ "value",
+ "slug"
+ ]
},
"CreateOrganizationAttributeInput": {
"type": "object",
@@ -12919,7 +14244,12 @@
},
"type": {
"type": "string",
- "enum": ["TEXT", "NUMBER", "SINGLE_SELECT", "MULTI_SELECT"]
+ "enum": [
+ "TEXT",
+ "NUMBER",
+ "SINGLE_SELECT",
+ "MULTI_SELECT"
+ ]
},
"options": {
"type": "array",
@@ -12931,7 +14261,12 @@
"type": "boolean"
}
},
- "required": ["name", "slug", "type", "options"]
+ "required": [
+ "name",
+ "slug",
+ "type",
+ "options"
+ ]
},
"CreateOrganizationAttributesOutput": {
"type": "object",
@@ -12939,13 +14274,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/Attribute"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOrganizationAttributeInput": {
"type": "object",
@@ -12958,7 +14299,12 @@
},
"type": {
"type": "string",
- "enum": ["TEXT", "NUMBER", "SINGLE_SELECT", "MULTI_SELECT"]
+ "enum": [
+ "TEXT",
+ "NUMBER",
+ "SINGLE_SELECT",
+ "MULTI_SELECT"
+ ]
},
"enabled": {
"type": "boolean"
@@ -12971,13 +14317,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/Attribute"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteOrganizationAttributesOutput": {
"type": "object",
@@ -12985,13 +14337,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/Attribute"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"OptionOutput": {
"type": "object",
@@ -13017,7 +14375,12 @@
"example": "option-slug"
}
},
- "required": ["id", "attributeId", "value", "slug"]
+ "required": [
+ "id",
+ "attributeId",
+ "value",
+ "slug"
+ ]
},
"CreateAttributeOptionOutput": {
"type": "object",
@@ -13025,13 +14388,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OptionOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteAttributeOptionOutput": {
"type": "object",
@@ -13039,13 +14408,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OptionOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOrganizationAttributeOptionInput": {
"type": "object",
@@ -13064,13 +14439,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OptionOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetAllAttributeOptionOutput": {
"type": "object",
@@ -13078,7 +14459,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -13087,7 +14471,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"AssignOrganizationAttributeOptionToUserInput": {
"type": "object",
@@ -13102,7 +14489,9 @@
"type": "string"
}
},
- "required": ["attributeId"]
+ "required": [
+ "attributeId"
+ ]
},
"AssignOptionUserOutputData": {
"type": "object",
@@ -13120,7 +14509,11 @@
"description": "The value of the option"
}
},
- "required": ["id", "memberId", "attributeOptionId"]
+ "required": [
+ "id",
+ "memberId",
+ "attributeOptionId"
+ ]
},
"AssignOptionUserOutput": {
"type": "object",
@@ -13128,13 +14521,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/AssignOptionUserOutputData"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UnassignOptionUserOutput": {
"type": "object",
@@ -13142,13 +14541,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/AssignOptionUserOutputData"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetOptionUserOutputData": {
"type": "object",
@@ -13170,7 +14575,12 @@
"description": "The slug of the option"
}
},
- "required": ["id", "attributeId", "value", "slug"]
+ "required": [
+ "id",
+ "attributeId",
+ "value",
+ "slug"
+ ]
},
"GetOptionUserOutput": {
"type": "object",
@@ -13178,7 +14588,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -13187,7 +14600,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"TeamWebhookOutputDto": {
"type": "object",
@@ -13219,7 +14635,14 @@
"type": "string"
}
},
- "required": ["payloadTemplate", "teamId", "id", "triggers", "subscriberUrl", "active"]
+ "required": [
+ "payloadTemplate",
+ "teamId",
+ "id",
+ "triggers",
+ "subscriberUrl",
+ "active"
+ ]
},
"TeamWebhooksOutputResponseDto": {
"type": "object",
@@ -13227,7 +14650,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -13236,7 +14662,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateWebhookInputDto": {
"type": "object",
@@ -13289,7 +14718,11 @@
"type": "string"
}
},
- "required": ["active", "subscriberUrl", "triggers"]
+ "required": [
+ "active",
+ "subscriberUrl",
+ "triggers"
+ ]
},
"TeamWebhookOutputResponseDto": {
"type": "object",
@@ -13297,13 +14730,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamWebhookOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateWebhookInputDto": {
"type": "object",
@@ -13386,10 +14825,19 @@
"type": "string",
"description": "the reason for the out of office entry, if applicable",
"example": "vacation",
- "enum": ["unspecified", "vacation", "travel", "sick", "public_holiday"]
+ "enum": [
+ "unspecified",
+ "vacation",
+ "travel",
+ "sick",
+ "public_holiday"
+ ]
}
},
- "required": ["start", "end"]
+ "required": [
+ "start",
+ "end"
+ ]
},
"UpdateOutOfOfficeEntryDto": {
"type": "object",
@@ -13420,7 +14868,13 @@
"type": "string",
"description": "the reason for the out of office entry, if applicable",
"example": "vacation",
- "enum": ["unspecified", "vacation", "travel", "sick", "public_holiday"]
+ "enum": [
+ "unspecified",
+ "vacation",
+ "travel",
+ "sick",
+ "public_holiday"
+ ]
}
}
},
@@ -13431,7 +14885,9 @@
"type": "string"
}
},
- "required": ["authUrl"]
+ "required": [
+ "authUrl"
+ ]
},
"StripConnectOutputResponseDto": {
"type": "object",
@@ -13439,13 +14895,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/StripConnectOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"StripCredentialsSaveOutputResponseDto": {
"type": "object",
@@ -13454,7 +14916,9 @@
"type": "string"
}
},
- "required": ["url"]
+ "required": [
+ "url"
+ ]
},
"StripCredentialsCheckOutputResponseDto": {
"type": "object",
@@ -13464,7 +14928,9 @@
"example": "success"
}
},
- "required": ["status"]
+ "required": [
+ "status"
+ ]
},
"GetDefaultScheduleOutput_2024_06_11": {
"type": "object",
@@ -13472,13 +14938,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ScheduleOutput_2024_06_11"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateTeamInput": {
"type": "object",
@@ -13557,7 +15029,9 @@
"default": true
}
},
- "required": ["name"]
+ "required": [
+ "name"
+ ]
},
"CreateTeamOutput": {
"type": "object",
@@ -13565,7 +15039,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -13579,7 +15056,10 @@
"description": "Either an Output object or a TeamOutputDto."
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"TeamOutputDto": {
"type": "object",
@@ -13652,7 +15132,11 @@
"default": "Sunday"
}
},
- "required": ["id", "name", "isOrganization"]
+ "required": [
+ "id",
+ "name",
+ "isOrganization"
+ ]
},
"GetTeamOutput": {
"type": "object",
@@ -13660,13 +15144,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetTeamsOutput": {
"type": "object",
@@ -13674,7 +15164,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -13683,7 +15176,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateTeamOutput": {
"type": "object",
@@ -13691,13 +15187,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GoogleServiceAccountKeyInput": {
"type": "object",
@@ -13712,7 +15214,11 @@
"type": "string"
}
},
- "required": ["private_key", "client_email", "client_id"]
+ "required": [
+ "private_key",
+ "client_email",
+ "client_id"
+ ]
},
"CreateDelegationCredentialInput": {
"type": "object",
@@ -13737,7 +15243,11 @@
}
}
},
- "required": ["workspacePlatformSlug", "domain", "serviceAccountKey"]
+ "required": [
+ "workspacePlatformSlug",
+ "domain",
+ "serviceAccountKey"
+ ]
},
"WorkspacePlatformDto": {
"type": "object",
@@ -13749,7 +15259,10 @@
"type": "string"
}
},
- "required": ["name", "slug"]
+ "required": [
+ "name",
+ "slug"
+ ]
},
"DelegationCredentialOutput": {
"type": "object",
@@ -13794,13 +15307,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/DelegationCredentialOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateDelegationCredentialInput": {
"type": "object",
@@ -13829,13 +15348,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/DelegationCredentialOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateOrganizationInput": {
"type": "object",
@@ -13862,7 +15387,9 @@
"type": "object"
}
},
- "required": ["name"]
+ "required": [
+ "name"
+ ]
},
"ManagedOrganizationWithApiKeyOutput": {
"type": "object",
@@ -13881,7 +15408,11 @@
"type": "string"
}
},
- "required": ["id", "name", "apiKey"]
+ "required": [
+ "id",
+ "name",
+ "apiKey"
+ ]
},
"CreateManagedOrganizationOutput": {
"type": "object",
@@ -13889,13 +15420,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ManagedOrganizationWithApiKeyOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"ManagedOrganizationOutput": {
"type": "object",
@@ -13911,7 +15448,10 @@
"type": "object"
}
},
- "required": ["id", "name"]
+ "required": [
+ "id",
+ "name"
+ ]
},
"GetManagedOrganizationOutput": {
"type": "object",
@@ -13919,13 +15459,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ManagedOrganizationOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetManagedOrganizationsOutput": {
"type": "object",
@@ -13933,7 +15479,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -13942,7 +15491,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateOrganizationInput": {
"type": "object",
@@ -13987,7 +15539,14 @@
"type": "string"
}
},
- "required": ["id", "formId", "formFillerId", "routedToBookingUid", "response", "createdAt"]
+ "required": [
+ "id",
+ "formId",
+ "formFillerId",
+ "routedToBookingUid",
+ "response",
+ "createdAt"
+ ]
},
"GetRoutingFormResponsesOutput": {
"type": "object",
@@ -13995,7 +15554,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -14004,7 +15566,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"ProviderVerifyClientData": {
"type": "object",
@@ -14019,7 +15584,11 @@
"type": "string"
}
},
- "required": ["clientId", "organizationId", "name"]
+ "required": [
+ "clientId",
+ "organizationId",
+ "name"
+ ]
},
"ProviderVerifyClientOutput": {
"type": "object",
@@ -14027,13 +15596,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ProviderVerifyClientData"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"ProviderVerifyAccessTokenOutput": {
"type": "object",
@@ -14041,10 +15616,15 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
}
},
- "required": ["status"]
+ "required": [
+ "status"
+ ]
},
"MeOrgOutput": {
"type": "object",
@@ -14056,7 +15636,10 @@
"type": "number"
}
},
- "required": ["isPlatform", "id"]
+ "required": [
+ "isPlatform",
+ "id"
+ ]
},
"MeOutput": {
"type": "object",
@@ -14108,13 +15691,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/MeOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateMeOutput": {
"type": "object",
@@ -14122,20 +15711,29 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/MeOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CreateIcsFeedInputDto": {
"type": "object",
"properties": {
"urls": {
"type": "array",
- "example": ["https://cal.com/ics/feed.ics", "http://cal.com/ics/feed.ics"],
+ "example": [
+ "https://cal.com/ics/feed.ics",
+ "http://cal.com/ics/feed.ics"
+ ],
"description": "An array of ICS URLs",
"items": {
"type": "string",
@@ -14149,7 +15747,9 @@
"description": "Whether to allowing writing to the calendar or not"
}
},
- "required": ["urls"]
+ "required": [
+ "urls"
+ ]
},
"CreateIcsFeedOutput": {
"type": "object",
@@ -14189,7 +15789,14 @@
"description": "Whether the calendar credentials are valid or not"
}
},
- "required": ["id", "type", "userId", "teamId", "appId", "invalid"]
+ "required": [
+ "id",
+ "type",
+ "userId",
+ "teamId",
+ "appId",
+ "invalid"
+ ]
},
"CreateIcsFeedOutputResponseDto": {
"type": "object",
@@ -14197,13 +15804,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/CreateIcsFeedOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"BusyTimesOutput": {
"type": "object",
@@ -14221,7 +15834,10 @@
"nullable": true
}
},
- "required": ["start", "end"]
+ "required": [
+ "start",
+ "end"
+ ]
},
"GetBusyTimesOutput": {
"type": "object",
@@ -14229,7 +15845,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -14238,7 +15857,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"Integration": {
"type": "object",
@@ -14347,7 +15969,13 @@
"nullable": true
}
},
- "required": ["externalId", "primary", "readOnly", "isSelected", "credentialId"]
+ "required": [
+ "externalId",
+ "primary",
+ "readOnly",
+ "isSelected",
+ "credentialId"
+ ]
},
"Calendar": {
"type": "object",
@@ -14382,7 +16010,12 @@
"nullable": true
}
},
- "required": ["externalId", "readOnly", "isSelected", "credentialId"]
+ "required": [
+ "externalId",
+ "readOnly",
+ "isSelected",
+ "credentialId"
+ ]
},
"ConnectedCalendar": {
"type": "object",
@@ -14407,7 +16040,10 @@
}
}
},
- "required": ["integration", "credentialId"]
+ "required": [
+ "integration",
+ "credentialId"
+ ]
},
"DestinationCalendar": {
"type": "object",
@@ -14481,7 +16117,10 @@
"$ref": "#/components/schemas/DestinationCalendar"
}
},
- "required": ["connectedCalendars", "destinationCalendar"]
+ "required": [
+ "connectedCalendars",
+ "destinationCalendar"
+ ]
},
"ConnectedCalendarsOutput": {
"type": "object",
@@ -14489,13 +16128,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ConnectedCalendarsData"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteCalendarCredentialsInputBodyDto": {
"type": "object",
@@ -14506,7 +16151,9 @@
"description": "Credential ID of the calendar to delete, as returned by the /calendars endpoint"
}
},
- "required": ["id"]
+ "required": [
+ "id"
+ ]
},
"DeletedCalendarCredentialsOutputDto": {
"type": "object",
@@ -14534,7 +16181,14 @@
"nullable": true
}
},
- "required": ["id", "type", "userId", "teamId", "appId", "invalid"]
+ "required": [
+ "id",
+ "type",
+ "userId",
+ "teamId",
+ "appId",
+ "invalid"
+ ]
},
"DeletedCalendarCredentialsOutputResponseDto": {
"type": "object",
@@ -14542,13 +16196,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/DeletedCalendarCredentialsOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"Attendee": {
"type": "object",
@@ -14624,7 +16284,10 @@
"default": "en"
}
},
- "required": ["name", "timeZone"]
+ "required": [
+ "name",
+ "timeZone"
+ ]
},
"CreateBookingInput_2024_08_13": {
"type": "object",
@@ -14654,7 +16317,10 @@
},
"guests": {
"description": "An optional list of guest emails attending the event.",
+ "example": [
+ ],
"type": "array",
"items": {
"type": "string"
@@ -14686,7 +16352,11 @@
}
}
},
- "required": ["start", "eventTypeId", "attendee"]
+ "required": [
+ "start",
+ "eventTypeId",
+ "attendee"
+ ]
},
"CreateInstantBookingInput_2024_08_13": {
"type": "object",
@@ -14716,7 +16386,10 @@
},
"guests": {
"description": "An optional list of guest emails attending the event.",
+ "example": [
+ ],
"type": "array",
"items": {
"type": "string"
@@ -14753,7 +16426,12 @@
"example": true
}
},
- "required": ["start", "eventTypeId", "attendee", "instant"]
+ "required": [
+ "start",
+ "eventTypeId",
+ "attendee",
+ "instant"
+ ]
},
"CreateRecurringBookingInput_2024_08_13": {
"type": "object",
@@ -14783,7 +16461,10 @@
},
"guests": {
"description": "An optional list of guest emails attending the event.",
+ "example": [
+ ],
"type": "array",
"items": {
"type": "string"
@@ -14820,7 +16501,11 @@
"example": 5
}
},
- "required": ["start", "eventTypeId", "attendee"]
+ "required": [
+ "start",
+ "eventTypeId",
+ "attendee"
+ ]
},
"BookingHost": {
"type": "object",
@@ -14846,7 +16531,13 @@
"example": "America/Los_Angeles"
}
},
- "required": ["id", "name", "email", "username", "timeZone"]
+ "required": [
+ "id",
+ "name",
+ "email",
+ "username",
+ "timeZone"
+ ]
},
"EventType": {
"type": "object",
@@ -14860,7 +16551,10 @@
"example": "some-event"
}
},
- "required": ["id", "slug"]
+ "required": [
+ "id",
+ "slug"
+ ]
},
"BookingOutput_2024_08_13": {
"type": "object",
@@ -14889,7 +16583,12 @@
},
"status": {
"type": "string",
- "enum": ["cancelled", "accepted", "rejected", "pending"],
+ "enum": [
+ "cancelled",
+ "accepted",
+ "rejected",
+ "pending"
+ ],
"example": "accepted"
},
"cancellationReason": {
@@ -14972,7 +16671,10 @@
}
},
"guests": {
+ "example": [
+ ],
"type": "array",
"items": {
"type": "string"
@@ -15033,7 +16735,12 @@
},
"status": {
"type": "string",
- "enum": ["cancelled", "accepted", "rejected", "pending"],
+ "enum": [
+ "cancelled",
+ "accepted",
+ "rejected",
+ "pending"
+ ],
"example": "accepted"
},
"cancellationReason": {
@@ -15116,7 +16823,10 @@
}
},
"guests": {
+ "example": [
+ ],
"type": "array",
"items": {
"type": "string"
@@ -15244,7 +16954,14 @@
}
}
},
- "required": ["name", "email", "timeZone", "absent", "seatUid", "bookingFieldsResponses"]
+ "required": [
+ "name",
+ "email",
+ "timeZone",
+ "absent",
+ "seatUid",
+ "bookingFieldsResponses"
+ ]
},
"CreateSeatedBookingOutput_2024_08_13": {
"type": "object",
@@ -15273,7 +16990,12 @@
},
"status": {
"type": "string",
- "enum": ["cancelled", "accepted", "rejected", "pending"],
+ "enum": [
+ "cancelled",
+ "accepted",
+ "rejected",
+ "pending"
+ ],
"example": "accepted"
},
"cancellationReason": {
@@ -15407,7 +17129,12 @@
},
"status": {
"type": "string",
- "enum": ["cancelled", "accepted", "rejected", "pending"],
+ "enum": [
+ "cancelled",
+ "accepted",
+ "rejected",
+ "pending"
+ ],
"example": "accepted"
},
"cancellationReason": {
@@ -15525,7 +17252,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -15551,7 +17281,10 @@
"description": "Booking data, which can be either a BookingOutput object or an array of RecurringBookingOutput objects"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetSeatedBookingOutput_2024_08_13": {
"type": "object",
@@ -15580,7 +17313,12 @@
},
"status": {
"type": "string",
- "enum": ["cancelled", "accepted", "rejected", "pending"],
+ "enum": [
+ "cancelled",
+ "accepted",
+ "rejected",
+ "pending"
+ ],
"example": "accepted"
},
"cancellationReason": {
@@ -15709,7 +17447,12 @@
},
"status": {
"type": "string",
- "enum": ["cancelled", "accepted", "rejected", "pending"],
+ "enum": [
+ "cancelled",
+ "accepted",
+ "rejected",
+ "pending"
+ ],
"example": "accepted"
},
"cancellationReason": {
@@ -15822,7 +17565,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -15857,7 +17603,10 @@
"type": "object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetBookingsOutput_2024_08_13": {
"type": "object",
@@ -15865,7 +17614,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -15891,7 +17643,10 @@
"type": "object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"RescheduleBookingOutput_2024_08_13": {
"type": "object",
@@ -15899,7 +17654,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -15919,7 +17677,10 @@
"description": "Booking data, which can be either a BookingOutput object or a RecurringBookingOutput object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"CancelBookingOutput_2024_08_13": {
"type": "object",
@@ -15927,7 +17688,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -15959,7 +17723,10 @@
"description": "Booking data, which can be either a BookingOutput object, a RecurringBookingOutput object, or an array of RecurringBookingOutput objects"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"MarkAbsentBookingInput_2024_08_13": {
"type": "object",
@@ -15983,7 +17750,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -15997,7 +17767,10 @@
"description": "Booking data, which can be either a BookingOutput object or a RecurringBookingOutput object"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"ReassignedToDto": {
"type": "object",
@@ -16015,7 +17788,11 @@
"example": "[email protected]"
}
},
- "required": ["id", "name", "email"]
+ "required": [
+ "id",
+ "name",
+ "email"
+ ]
},
"ReassignBookingOutput_2024_08_13": {
"type": "object",
@@ -16023,7 +17800,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"oneOf": [
@@ -16039,7 +17819,10 @@
]
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"ReassignToUserBookingInput_2024_08_13": {
"type": "object",
@@ -16061,6 +17844,44 @@
}
}
},
+ "CalendarLink": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string",
+ "description": "The label of the calendar link"
+ },
+ "link": {
+ "type": "string",
+ "description": "The link to the calendar"
+ }
+ },
+ "required": [
+ "label",
+ "link"
+ ]
+ },
+ "CalendarLinksOutput_2024_08_13": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "object",
+ "description": "The status of the request, always 'success' for successful responses",
+ "example": "success"
+ },
+ "data": {
+ "description": "Calendar links for the booking",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/CalendarLink"
+ }
+ }
+ },
+ "required": [
+ "status",
+ "data"
+ ]
+ },
"CreateTeamMembershipInput": {
"type": "object",
"properties": {
@@ -16074,14 +17895,20 @@
"role": {
"type": "string",
"default": "MEMBER",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean",
"default": false
}
},
- "required": ["userId"]
+ "required": [
+ "userId"
+ ]
},
"TeamMembershipOutput": {
"type": "object",
@@ -16100,13 +17927,23 @@
},
"role": {
"type": "string",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean"
}
},
- "required": ["id", "userId", "teamId", "accepted", "role"]
+ "required": [
+ "id",
+ "userId",
+ "teamId",
+ "accepted",
+ "role"
+ ]
},
"CreateTeamMembershipOutput": {
"type": "object",
@@ -16114,13 +17951,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamMembershipOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetTeamMembershipOutput": {
"type": "object",
@@ -16128,13 +17971,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamMembershipOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetTeamMembershipsOutput": {
"type": "object",
@@ -16142,13 +17991,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamMembershipOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UpdateTeamMembershipInput": {
"type": "object",
@@ -16158,7 +18013,11 @@
},
"role": {
"type": "string",
- "enum": ["MEMBER", "OWNER", "ADMIN"]
+ "enum": [
+ "MEMBER",
+ "OWNER",
+ "ADMIN"
+ ]
},
"disableImpersonation": {
"type": "boolean"
@@ -16171,13 +18030,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamMembershipOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteTeamMembershipOutput": {
"type": "object",
@@ -16185,13 +18050,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/TeamMembershipOutput"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"ReserveSlotInput_2024_09_04": {
"type": "object",
@@ -16217,7 +18088,10 @@
"description": "ONLY for authenticated requests with api key, access token or OAuth credentials (ID + secret).\n \n For how many minutes the slot should be reserved - for this long time noone else can book this event type at `start` time. If not provided, defaults to 5 minutes."
}
},
- "required": ["eventTypeId", "slotStart"]
+ "required": [
+ "eventTypeId",
+ "slotStart"
+ ]
},
"ReserveSlotOutput_2024_09_04": {
"type": "object",
@@ -16274,13 +18148,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ReserveSlotOutput_2024_09_04"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetReservedSlotOutput_2024_09_04": {
"type": "object",
@@ -16288,7 +18168,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"nullable": true,
@@ -16299,7 +18182,10 @@
]
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UserWebhookOutputDto": {
"type": "object",
@@ -16331,7 +18217,14 @@
"type": "string"
}
},
- "required": ["payloadTemplate", "userId", "id", "triggers", "subscriberUrl", "active"]
+ "required": [
+ "payloadTemplate",
+ "userId",
+ "id",
+ "triggers",
+ "subscriberUrl",
+ "active"
+ ]
},
"UserWebhookOutputResponseDto": {
"type": "object",
@@ -16339,13 +18232,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/UserWebhookOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"UserWebhooksOutputResponseDto": {
"type": "object",
@@ -16353,7 +18252,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -16362,7 +18264,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"EventTypeWebhookOutputDto": {
"type": "object",
@@ -16394,7 +18299,14 @@
"type": "string"
}
},
- "required": ["payloadTemplate", "eventTypeId", "id", "triggers", "subscriberUrl", "active"]
+ "required": [
+ "payloadTemplate",
+ "eventTypeId",
+ "id",
+ "triggers",
+ "subscriberUrl",
+ "active"
+ ]
},
"EventTypeWebhookOutputResponseDto": {
"type": "object",
@@ -16402,13 +18314,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/EventTypeWebhookOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"EventTypeWebhooksOutputResponseDto": {
"type": "object",
@@ -16416,7 +18334,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -16425,7 +18346,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DeleteManyWebhooksOutputResponseDto": {
"type": "object",
@@ -16433,13 +18357,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "string"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"OAuthClientWebhookOutputDto": {
"type": "object",
@@ -16471,7 +18401,14 @@
"type": "string"
}
},
- "required": ["payloadTemplate", "oAuthClientId", "id", "triggers", "subscriberUrl", "active"]
+ "required": [
+ "payloadTemplate",
+ "oAuthClientId",
+ "id",
+ "triggers",
+ "subscriberUrl",
+ "active"
+ ]
},
"OAuthClientWebhookOutputResponseDto": {
"type": "object",
@@ -16479,13 +18416,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/OAuthClientWebhookOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"OAuthClientWebhooksOutputResponseDto": {
"type": "object",
@@ -16493,7 +18436,10 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -16502,7 +18448,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"DestinationCalendarsInputBodyDto": {
"type": "object",
@@ -16511,7 +18460,11 @@
"type": "string",
"example": "apple_calendar",
"description": "The calendar service you want to integrate, as returned by the /calendars endpoint",
- "enum": ["apple_calendar", "google_calendar", "office365_calendar"]
+ "enum": [
+ "apple_calendar",
+ "google_calendar",
+ "office365_calendar"
+ ]
},
"externalId": {
"type": "string",
@@ -16522,7 +18475,10 @@
"type": "string"
}
},
- "required": ["integration", "externalId"]
+ "required": [
+ "integration",
+ "externalId"
+ ]
},
"DestinationCalendarsOutputDto": {
"type": "object",
@@ -16541,7 +18497,12 @@
"nullable": true
}
},
- "required": ["userId", "integration", "externalId", "credentialId"]
+ "required": [
+ "userId",
+ "integration",
+ "externalId",
+ "credentialId"
+ ]
},
"DestinationCalendarsOutputResponseDto": {
"type": "object",
@@ -16549,13 +18510,19 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/DestinationCalendarsOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"ConferencingAppsOutputDto": {
"type": "object",
@@ -16580,20 +18547,30 @@
"description": "Whether if the connection is working or not."
}
},
- "required": ["id", "type", "userId"]
+ "required": [
+ "id",
+ "type",
+ "userId"
+ ]
},
"ConferencingAppOutputResponseDto": {
"type": "object",
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/ConferencingAppsOutputDto"
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"GetConferencingAppsOauthUrlResponseDto": {
"type": "object",
@@ -16601,17 +18578,25 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
}
},
- "required": ["status"]
+ "required": [
+ "status"
+ ]
},
"ConferencingAppsOutputResponseDto": {
"type": "object",
"properties": {
"status": {
"type": "string",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"type": "array",
@@ -16620,7 +18605,10 @@
}
}
},
- "required": ["status", "data"]
+ "required": [
+ "status",
+ "data"
+ ]
},
"SetDefaultConferencingAppOutputResponseDto": {
"type": "object",
@@ -16628,10 +18616,15 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
}
},
- "required": ["status"]
+ "required": [
+ "status"
+ ]
},
"DefaultConferencingAppsOutputDto": {
"type": "object",
@@ -16650,13 +18643,18 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
},
"data": {
"$ref": "#/components/schemas/DefaultConferencingAppsOutputDto"
}
},
- "required": ["status"]
+ "required": [
+ "status"
+ ]
},
"DisconnectConferencingAppOutputResponseDto": {
"type": "object",
@@ -16664,11 +18662,16 @@
"status": {
"type": "string",
"example": "success",
- "enum": ["success", "error"]
+ "enum": [
+ "success",
+ "error"
+ ]
}
},
- "required": ["status"]
+ "required": [
+ "status"
+ ]
}
}
}
-}
+}
\ No newline at end of file
diff --git a/packages/lib/bookings/getCalendarLinks.test.ts b/packages/lib/bookings/getCalendarLinks.test.ts
new file mode 100644
index 00000000000..7131703adfd
--- /dev/null
+++ b/packages/lib/bookings/getCalendarLinks.test.ts
@@ -0,0 +1,214 @@
+import type { TFunction } from "i18next";
+import { createEvent } from "ics";
+import { RRule } from "rrule";
+import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
+
+import dayjs from "@calcom/dayjs";
+import { parseRecurringEvent } from "@calcom/lib/isRecurringEvent";
+
+import { getCalendarLinks, CalendarLinkType } from "./getCalendarLinks";
+
+// Mock dependencies
+vi.mock("ics", () => ({
+ createEvent: vi.fn(),
+}));
+
+vi.mock("@calcom/lib/isRecurringEvent", () => ({
+ parseRecurringEvent: vi.fn(),
+}));
+
+describe("getCalendarLinks", () => {
+ // Mock data for tests
+ const mockStartTime = new Date("2023-01-15T10:00:00Z");
+ const mockEndTime = new Date("2023-01-15T11:00:00Z");
+ const mockDayjsStartTime = dayjs(mockStartTime);
+ const mockDayjsEndTime = dayjs(mockEndTime);
+
+ // Mock translation function
+ const mockT = ((key: string) => key) as TFunction;
+
+ // Mock createEvent implementation
+ const mockIcsValue = "BEGIN:VCALENDAR\nVERSION:2.0\nEND:VCALENDAR";
+
+ // Baseline mock objects that can be reused across tests
+ const baseMockBooking = {
+ startTime: mockStartTime,
+ endTime: mockEndTime,
+ location: "Test Location",
+ title: "Test Title",
+ responses: {},
+ metadata: {},
+ };
+
+ const baseMockEventType = {
+ recurringEvent: {},
+ description: "Test Description",
+ eventName: "Test Event",
+ isDynamic: false,
+ length: 60,
+ team: null,
+ users: [{ name: "Test User" }],
+ title: "Test Title",
+ };
+
+ beforeEach(() => {
+ // Reset mocks before each test
+ vi.resetAllMocks();
+
+ // Default mock implementations
+ (createEvent as jest.Mock).mockReturnValue({ value: mockIcsValue });
+ (parseRecurringEvent as jest.Mock).mockReturnValue(null);
+ });
+
+ afterEach(() => {
+ vi.clearAllMocks();
+ });
+
+ it("should return all calendar links", async () => {
+ const result = getCalendarLinks({ booking: baseMockBooking, eventType: baseMockEventType, t: mockT });
+ const googleLink = result.find((link) => link.id === CalendarLinkType.GOOGLE_CALENDAR);
+ const microsoftOfficeLink = result.find((link) => link.id === CalendarLinkType.MICROSOFT_OFFICE);
+ const microsoftOutlookLink = result.find((link) => link.id === CalendarLinkType.MICROSOFT_OUTLOOK);
+ const icsLink = result.find((link) => link.id === CalendarLinkType.ICS);
+
+ expect(result).toHaveLength(4);
+ expect(googleLink).toBeDefined();
+ expect(microsoftOfficeLink).toBeDefined();
+ expect(microsoftOutlookLink).toBeDefined();
+ expect(icsLink).toBeDefined();
+
+ (function verifyGoogleLink() {
+ expect(googleLink?.link).toContain("https://calendar.google.com/calendar/r/eventedit");
+ expect(googleLink?.link).toContain("dates=");
+ expect(googleLink?.link).toContain(
+ `${mockDayjsStartTime.utc().format("YYYYMMDDTHHmmss[Z]")}/${mockDayjsEndTime
+ .utc()
+ .format("YYYYMMDDTHHmmss[Z]")}`
+ );
+ expect(googleLink?.link).toContain(`details=${encodeURIComponent(baseMockEventType.description)}`);
+ })();
+
+ (function verifyMicrosoftOfficeLink() {
+ expect(microsoftOfficeLink?.link).toContain("https://outlook.office.com/calendar/0/deeplink/compose");
+ expect(microsoftOfficeLink?.link).toContain("enddt=");
+ expect(microsoftOfficeLink?.link).toContain("startdt=");
+ expect(microsoftOfficeLink?.link).toContain("body=Test%20Description");
+ })();
+
+ (function verifymicrosoftOutlookLink() {
+ expect(microsoftOutlookLink?.link).toContain("https://outlook.live.com/calendar/0/deeplink/compose");
+ expect(microsoftOutlookLink?.link).toContain("enddt=");
+ expect(microsoftOutlookLink?.link).toContain("startdt=");
+ expect(microsoftOutlookLink?.link).toContain("body=Test%20Description");
+ })();
+
+ (function verifyIcsLink() {
+ expect(icsLink).toBeDefined();
+ expect(icsLink?.link).toContain("data:text/calendar");
+ expect(icsLink?.link).toContain(encodeURIComponent(mockIcsValue));
+ expect(createEvent).toHaveBeenCalled();
+ expect(createEvent).toHaveBeenCalledWith(
+ expect.objectContaining({
+ description: baseMockEventType.description,
+ })
+ );
+ })();
+ });
+
+ it("should use videoCallUrl from metadata when available", async () => {
+ const videoCallUrl = "https://zoom.com/test";
+ const booking = {
+ ...baseMockBooking,
+ metadata: { videoCallUrl },
+ };
+
+ const result = getCalendarLinks({ booking, eventType: baseMockEventType, t: mockT });
+
+ // Check that all links contain the videoCallUrl
+ const googleLink = result.find((link) => link.id === CalendarLinkType.GOOGLE_CALENDAR);
+ const microsoftOfficeLink = result.find((link) => link.id === CalendarLinkType.MICROSOFT_OFFICE);
+ const microsoftOutlookLink = result.find((link) => link.id === CalendarLinkType.MICROSOFT_OUTLOOK);
+
+ expect(googleLink?.link).toContain(`location=${encodeURIComponent(videoCallUrl)}`);
+ expect(microsoftOfficeLink?.link).toContain(`location=${encodeURIComponent(videoCallUrl)}`);
+ expect(microsoftOutlookLink?.link).toContain(`location=${encodeURIComponent(videoCallUrl)}`);
+ });
+
+ it("should handle custom title from dynamic event", async () => {
+ const customTitle = "Custom Dynamic Title";
+ const booking = {
+ ...baseMockBooking,
+ responses: { title: customTitle, name: "Test Attendee" },
+ };
+
+ const eventType = {
+ ...baseMockEventType,
+ isDynamic: true, // This makes it use the custom title
+ };
+
+ const result = getCalendarLinks({ booking, eventType, t: mockT });
+
+ const googleLink = result.find((link) => link.id === CalendarLinkType.GOOGLE_CALENDAR);
+ expect(googleLink?.link).toContain(`details=${encodeURIComponent(eventType.description)}`);
+ expect(googleLink?.link).toContain(`text=${customTitle}`);
+
+ // Check Office 365 link
+ const microsoftOfficeLink = result.find((link) => link.id === CalendarLinkType.MICROSOFT_OFFICE);
+ expect(microsoftOfficeLink?.link).toContain("body=Test%20Description");
+ expect(microsoftOfficeLink?.link).toContain(`subject=${customTitle}`);
+
+ // Check Outlook link
+ const microsoftOutlookLink = result.find((link) => link.id === CalendarLinkType.MICROSOFT_OUTLOOK);
+ expect(microsoftOutlookLink?.link).toContain("body=Test%20Description");
+ expect(microsoftOutlookLink?.link).toContain(`subject=${encodeURIComponent(customTitle)}`);
+ });
+
+ it("should handle recurring events - Only Google Calendar supports at the moment", async () => {
+ // Mock a recurring event rule
+ const mockRecurringRule = {
+ freq: 2, // WEEKLY
+ interval: 1,
+ count: 5,
+ };
+
+ (parseRecurringEvent as jest.Mock).mockReturnValue(mockRecurringRule);
+
+ const eventType = {
+ ...baseMockEventType,
+ recurringEvent: { count: 5, freq: 2, interval: 1 },
+ };
+
+ const mockRRuleString = "FREQ=WEEKLY;INTERVAL=1;COUNT=5";
+ vi.spyOn(RRule.prototype, "toString").mockReturnValue(mockRRuleString);
+
+ const result = getCalendarLinks({ booking: baseMockBooking, eventType, t: mockT });
+ const googleLink = result.find((link) => link.id === "googleCalendar");
+
+ expect(googleLink).toBeDefined();
+ expect(googleLink?.link).toContain(`recur=${encodeURIComponent(mockRRuleString)}`);
+ });
+
+ it("should handle error in ICS generation", async () => {
+ // Mock createEvent to return an error
+ (createEvent as jest.Mock).mockReturnValue({ error: new Error("ICS generation failed") });
+
+ // Mock console.error to avoid test output noise
+ const consoleErrorSpy = vi.spyOn(console, "error").mockImplementation(() => undefined);
+
+ const result = getCalendarLinks({ booking: baseMockBooking, eventType: baseMockEventType, t: mockT });
+ const icsLink = result.find((link) => link.id === "ics");
+
+ expect(icsLink).toBeDefined();
+ expect(icsLink?.link).toBe("");
+ expect(consoleErrorSpy).toHaveBeenCalled();
+
+ // Verify createEvent was called with the correct description
+ expect(createEvent).toHaveBeenCalledWith(
+ expect.objectContaining({
+ description: baseMockEventType.description,
+ })
+ );
+
+ consoleErrorSpy.mockRestore();
+ });
+});
diff --git a/packages/lib/bookings/getCalendarLinks.ts b/packages/lib/bookings/getCalendarLinks.ts
new file mode 100644
index 00000000000..746cc0aaa5e
--- /dev/null
+++ b/packages/lib/bookings/getCalendarLinks.ts
@@ -0,0 +1,255 @@
+import type { Prisma } from "@prisma/client";
+import type { TFunction } from "i18next";
+import { createEvent } from "ics";
+import { RRule } from "rrule";
+import type { z } from "zod";
+
+import type { Dayjs } from "@calcom/dayjs";
+import dayjs from "@calcom/dayjs";
+import type { nameObjectSchema } from "@calcom/lib/event";
+import { bookingMetadataSchema } from "@calcom/prisma/zod-utils";
+import type { RecurringEvent } from "@calcom/types/Calendar";
+
+import { getEventName } from "../event";
+
+type RecurringEventOrPrismaJsonObject = RecurringEvent | Prisma.JsonObject | null | undefined;
+export const enum CalendarLinkType {
+ GOOGLE_CALENDAR = "googleCalendar",
+ MICROSOFT_OFFICE = "microsoftOffice",
+ MICROSOFT_OUTLOOK = "microsoftOutlook",
+ ICS = "ics",
+}
+
+const buildICalLink = ({
+ startTime,
+ endTime,
+ title,
+ description,
+ location,
+}: {
+ startTime: Dayjs;
+ endTime: Dayjs;
+ title: string;
+ description: string | null;
+ location: string | null;
+}) => {
+ const durationInMinutes = endTime.diff(startTime, "minutes");
+
+ const iCalEvent = createEvent({
+ start: [
+ startTime.toDate().getUTCFullYear(),
+ (startTime.toDate().getUTCMonth() as number) + 1,
+ startTime.toDate().getUTCDate(),
+ startTime.toDate().getUTCHours(),
+ startTime.toDate().getUTCMinutes(),
+ ],
+ startInputType: "utc",
+ title,
+ duration: {
+ minutes: durationInMinutes,
+ },
+ ...(description ? { description } : {}),
+ ...(location ? { location } : {}),
+ });
+
+ if (iCalEvent.error) {
+ throw iCalEvent.error;
+ }
+
+ return `data:text/calendar,${encodeURIComponent(iCalEvent.value ? iCalEvent.value : false)}`;
+};
+
+const buildGoogleCalendarLink = ({
+ startTime,
+ endTime,
+ eventName,
+ eventDescription,
+ bookingLocation,
+ recurringEvent,
+}: {
+ startTime: Dayjs;
+ endTime: Dayjs;
+ eventName: string;
+ eventDescription: string | null;
+ bookingLocation: string | null;
+ recurringEvent: RecurringEventOrPrismaJsonObject;
+}) => {
+ const startTimeInUtcFormat = startTime.utc().format("YYYYMMDDTHHmmss[Z]");
+ const endTimeInUtcFormat = endTime.utc().format("YYYYMMDDTHHmmss[Z]");
+ const recurrence = recurringEvent ? encodeURIComponent(new RRule(recurringEvent).toString()) : "";
+
+ const location = bookingLocation ? encodeURIComponent(bookingLocation) : "";
+ const description = encodeURIComponent(eventDescription ?? "");
+
+ const googleCalendarLink = `https://calendar.google.com/calendar/r/eventedit?dates=${startTimeInUtcFormat}/${endTimeInUtcFormat}&text=${eventName}&details=${description}${
+ location ? `&location=${location}` : ""
+ }${recurrence ? `&recur=${recurrence}` : ""}`;
+
+ return googleCalendarLink;
+};
+
+const buildMicrosoftOfficeLink = ({
+ startTime,
+ endTime,
+ eventName,
+ eventDescription,
+ bookingLocation,
+}: {
+ startTime: Dayjs;
+ endTime: Dayjs;
+ eventName: string;
+ eventDescription: string | null;
+ bookingLocation: string | null;
+}) => {
+ const startTimeInUtcFormat = startTime.utc().format();
+ const endTimeInUtcFormat = endTime.utc().format();
+ const location = bookingLocation ? encodeURIComponent(bookingLocation) : "";
+ const description = encodeURIComponent(eventDescription ?? "");
+
+ // TODO: Why do we need to encode URI this href but not the google calendar link?
+ const microsoftOfficeLink = `https://outlook.office.com/calendar/0/deeplink/compose?body=${description}&enddt=${endTimeInUtcFormat}&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=${startTimeInUtcFormat}&subject=${eventName}${
+ location ? `&location=${location}` : ""
+ }`;
+ return microsoftOfficeLink;
+};
+
+const buildMicrosoftOutlookLink = ({
+ startTime,
+ endTime,
+ eventName,
+ eventDescription,
+ bookingLocation,
+}: {
+ startTime: Dayjs;
+ endTime: Dayjs;
+ eventName: string;
+ eventDescription: string | null;
+ bookingLocation: string | null;
+}) => {
+ const startTimeInUtcFormat = startTime.utc().format();
+ const endTimeInUtcFormat = endTime.utc().format();
+ const location = bookingLocation ? encodeURIComponent(bookingLocation) : "";
+ const microsoftOutlookLink =
+ encodeURI(
+ `https://outlook.live.com/calendar/0/deeplink/compose?body=${eventDescription}&enddt=${endTimeInUtcFormat}&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=${startTimeInUtcFormat}&subject=${eventName}`
+ ) + (location ? `&location=${location}` : "");
+ return microsoftOutlookLink;
+};
+
+export const getCalendarLinks = ({
+ booking,
+ eventType,
+ t,
+}: {
+ booking: {
+ startTime: Date;
+ endTime: Date;
+ location: string | null;
+ title: string;
+ responses: Prisma.JsonObject;
+ metadata: Prisma.JsonObject | null;
+ };
+ eventType: {
+ recurringEvent: RecurringEventOrPrismaJsonObject;
+ description?: string | null;
+ eventName?: string | null;
+ isDynamic: boolean;
+ length: number;
+ team?: {
+ name: string;
+ } | null;
+ users: {
+ name: string | null;
+ }[];
+ title: string;
+ };
+ t: TFunction;
+}) => {
+ let evtName = eventType.eventName;
+ const videoCallUrl = bookingMetadataSchema.parse(booking?.metadata || {})?.videoCallUrl ?? null;
+
+ if (eventType.isDynamic && booking.responses.title) {
+ evtName = booking.responses.title as string;
+ }
+ const eventNameObject = {
+ attendeeName: booking.responses.name as z.infer<typeof nameObjectSchema> | string,
+ eventType: eventType.title,
+ eventName: evtName,
+ host: eventType.team?.name || eventType.users[0]?.name || "Nameless",
+ location: booking.location,
+ bookingFields: booking.responses,
+ eventDuration: eventType.length,
+ t,
+ };
+
+ // Create event name and description
+ const eventName = getEventName(eventNameObject, true);
+ const eventDescription = eventType.description || "";
+
+ // Calculate start and end times
+ const startTime = dayjs(booking.startTime);
+ const endTime = dayjs(booking.endTime);
+ const recurringEvent = eventType.recurringEvent;
+
+ const googleCalendarLink = buildGoogleCalendarLink({
+ startTime,
+ endTime,
+ eventName,
+ eventDescription,
+ bookingLocation: videoCallUrl ?? null,
+ recurringEvent,
+ });
+
+ const microsoftOfficeLink = buildMicrosoftOfficeLink({
+ startTime,
+ endTime,
+ eventName,
+ eventDescription,
+ bookingLocation: videoCallUrl,
+ });
+
+ const microsoftOutlookLink = buildMicrosoftOutlookLink({
+ startTime,
+ endTime,
+ eventName,
+ eventDescription,
+ bookingLocation: videoCallUrl,
+ });
+
+ // Generate ICS file link
+ let icsFileLink = "";
+ try {
+ icsFileLink = buildICalLink({
+ startTime,
+ endTime,
+ title: eventName,
+ description: eventDescription ?? null,
+ location: videoCallUrl ?? null,
+ });
+ } catch (error) {
+ console.error("Error generating ICS file", error);
+ }
+
+ return [
+ {
+ label: "Google Calendar",
+ id: CalendarLinkType.GOOGLE_CALENDAR,
+ link: googleCalendarLink,
+ },
+ {
+ label: "Microsoft Office",
+ id: CalendarLinkType.MICROSOFT_OFFICE,
+ link: microsoftOfficeLink,
+ },
+ {
+ label: "Microsoft Outlook",
+ id: CalendarLinkType.MICROSOFT_OUTLOOK,
+ link: microsoftOutlookLink,
+ },
+ {
+ label: "ICS",
+ id: CalendarLinkType.ICS,
+ link: icsFileLink,
+ },
+ ];
+};
diff --git a/packages/lib/event.ts b/packages/lib/event.ts
index 9bc17065b0b..d65c0e68e70 100644
--- a/packages/lib/event.ts
+++ b/packages/lib/event.ts
@@ -22,9 +22,9 @@ export type EventNameObjectType = {
eventName?: string | null;
teamName?: string | null;
host: string;
- location?: string;
+ location?: string | null;
eventDuration: number;
- bookingFields?: Prisma.JsonObject;
+ bookingFields?: Prisma.JsonObject | null;
t: TFunction;
};
@@ -106,7 +106,7 @@ export function getEventName(eventNameObj: EventNameObjectType, forAttendeeView
return dynamicEventName;
}
-export const validateCustomEventName = (value: string, bookingFields?: Prisma.JsonObject) => {
+export const validateCustomEventName = (value: string, bookingFields?: Prisma.JsonObject | null) => {
let customInputVariables: string[] = [];
if (bookingFields) {
customInputVariables = Object.keys(bookingFields).map((customInput) => {
diff --git a/packages/platform/libraries/index.ts b/packages/platform/libraries/index.ts
index 4f698c0f5b0..f32d7f93126 100644
--- a/packages/platform/libraries/index.ts
+++ b/packages/platform/libraries/index.ts
@@ -113,3 +113,4 @@ export { getTeamMemberEmailForResponseOrContactUsingUrlQuery };
export { SelectedCalendarRepository } from "@calcom/lib/server/repository/selectedCalendar";
export { encryptServiceAccountKey } from "@calcom/lib/server/serviceAccountKey";
export { createHandler as createApiKeyHandler } from "@calcom/trpc/server/routers/viewer/apiKeys/create.handler";
+export { getCalendarLinks } from "@calcom/lib/bookings/getCalendarLinks";
diff --git a/packages/platform/libraries/package.json b/packages/platform/libraries/package.json
index 9a26d515489..fc60ec0863c 100644
--- a/packages/platform/libraries/package.json
+++ b/packages/platform/libraries/package.json
@@ -11,6 +11,7 @@
"scripts": {
"build": "yarn vite build",
"build:watch": "yarn vite build --watch",
+ "watch-lru-fix": "watch -n 1 'sed -i'' -e \"s/const CACHE = new lruCache\\.LRUCache({ max: 1e3 });/const CACHE = new lruCache({ max: 1e3 });/g\" ./dist/index.cjs'",
"build:dev": "yarn vite build && sed -i'' -e 's/const CACHE = new lruCache\\.LRUCache({ max: 1e3 });/const CACHE = new lruCache({ max: 1e3 });/g' ./dist/index.cjs",
"local": "node scripts/local.js && rm -rf dist && yarn build:dev && cd ../../.. && yarn",
"publish": "yarn && node scripts/prepublish.js && rm -rf dist && yarn build && npm publish --access public",
diff --git a/yarn.lock b/yarn.lock
index 7dd779ed222..5e7fb2cebe7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2295,7 +2295,7 @@ __metadata:
"@axiomhq/winston": ^1.2.0
"@calcom/platform-constants": "*"
"@calcom/platform-enums": "*"
- "@calcom/platform-libraries": "npm:@calcom/[email protected]"
+ "@calcom/platform-libraries": "npm:@calcom/[email protected]"
"@calcom/platform-libraries-0.0.2": "npm:@calcom/[email protected]"
"@calcom/platform-types": "*"
"@calcom/platform-utils": "*"
@@ -2330,6 +2330,7 @@ __metadata:
bull: ^4.12.4
class-transformer: ^0.5.1
class-validator: ^0.14.0
+ concurrently: ^9.1.2
cookie-parser: ^1.4.6
dotenv: ^16.3.1
fs-extra: ^11.2.0
@@ -3341,13 +3342,13 @@ __metadata:
languageName: node
linkType: hard
-"@calcom/platform-libraries@npm:@calcom/[email protected]":
- version: 0.0.144
- resolution: "@calcom/platform-libraries@npm:0.0.144"
+"@calcom/platform-libraries@npm:@calcom/[email protected]":
+ version: 0.0.145
+ resolution: "@calcom/platform-libraries@npm:0.0.145"
dependencies:
"@calcom/features": "*"
"@calcom/lib": "*"
- checksum: 2b4ac2ca7bf343baf34106fdc68cece3fac9e9281112d05fb3a1ba1cd3c6357b4d1db9f844588908535fccc093ece36f295f4889ad868b3848030b9f3000b0d8
+ checksum: 437d56504b989be8de50e98f30c0f154d7103bb1d28ff1df1cb37fae84ce27c2cf5eb93a80fdbd2b971ba935cf20e0341dc1047c2b8403b2e1831353ace1c742
languageName: node
linkType: hard
@@ -18671,6 +18672,24 @@ __metadata:
languageName: node
linkType: hard
+"concurrently@npm:^9.1.2":
+ version: 9.1.2
+ resolution: "concurrently@npm:9.1.2"
+ dependencies:
+ chalk: ^4.1.2
+ lodash: ^4.17.21
+ rxjs: ^7.8.1
+ shell-quote: ^1.8.1
+ supports-color: ^8.1.1
+ tree-kill: ^1.2.2
+ yargs: ^17.7.2
+ bin:
+ conc: dist/bin/concurrently.js
+ concurrently: dist/bin/concurrently.js
+ checksum: 9e25e8ee6272ada26739aff1fb43e96ac458fafca82f45b8360bdd9115d60bbc679d282dfc52001b861b6e9f32b3063aed975691d8dec9e62807a9679763a1d8
+ languageName: node
+ linkType: hard
+
"conf@npm:10.2.0":
version: 10.2.0
resolution: "conf@npm:10.2.0"
@@ -34936,6 +34955,13 @@ __metadata:
languageName: node
linkType: hard
+"shell-quote@npm:^1.8.1":
+ version: 1.8.2
+ resolution: "shell-quote@npm:1.8.2"
+ checksum: 1e97b62ced1c4c5135015978ebf273bed1f425a68cf84163e83fbb0f34b3ff9471e656720dab2b7cbb4ae0f58998e686d17d166c28dfb3662acd009e8bd7faed
+ languageName: node
+ linkType: hard
+
"shelljs@npm:0.8.5":
version: 0.8.5
resolution: "shelljs@npm:0.8.5"
@@ -36999,7 +37025,7 @@ __metadata:
languageName: node
linkType: hard
-"tree-kill@npm:1.2.2":
+"tree-kill@npm:1.2.2, tree-kill@npm:^1.2.2":
version: 1.2.2
resolution: "tree-kill@npm:1.2.2"
bin: