Skip to content

Commit 8e055ba

Browse files
authoredFeb 15, 2025
Merge branch 'main' into fix/remove-add-all-team-members-toggle-for-fixed-hosts
2 parents 9704ffe + 0e9e3e5 commit 8e055ba

File tree

164 files changed

+18827
-13237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+18827
-13237
lines changed
 

‎.yarn/versions/97a32d13.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
undecided:
2+
- "@calcom/app-store-cli"
3+
- "@calcom/platform-constants"
4+
- "@calcom/platform-enums"
5+
- "@calcom/platform-types"
6+
- "@calcom/platform-utils"

‎apps/api/v2/src/ee/calendars/controllers/calendars.controller.ts

+28-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
Post,
3535
Body,
3636
} from "@nestjs/common";
37-
import { ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
37+
import { ApiOperation, ApiParam, ApiTags as DocsTags } from "@nestjs/swagger";
3838
import { User } from "@prisma/client";
3939
import { plainToClass } from "class-transformer";
4040
import { Request } from "express";
@@ -123,10 +123,15 @@ export class CalendarsController {
123123
};
124124
}
125125

126+
@ApiParam({
127+
enum: [OFFICE_365_CALENDAR, GOOGLE_CALENDAR],
128+
type: String,
129+
name: "calendar",
130+
})
126131
@UseGuards(ApiAuthGuard)
127132
@Get("/:calendar/connect")
128133
@HttpCode(HttpStatus.OK)
129-
@ApiOperation({ summary: "Get connect URL" })
134+
@ApiOperation({ summary: "Get oAuth connect URL" })
130135
async redirect(
131136
@Req() req: Request,
132137
@Headers("Authorization") authorization: string,
@@ -146,10 +151,15 @@ export class CalendarsController {
146151
}
147152
}
148153

154+
@ApiParam({
155+
enum: [OFFICE_365_CALENDAR, GOOGLE_CALENDAR],
156+
type: String,
157+
name: "calendar",
158+
})
149159
@Get("/:calendar/save")
150160
@HttpCode(HttpStatus.OK)
151161
@Redirect(undefined, 301)
152-
@ApiOperation({ summary: "Save a calendar" })
162+
@ApiOperation({ summary: "Save an oAuth calendar credentials" })
153163
async save(
154164
@Query("state") state: string,
155165
@Query("code") code: string,
@@ -177,6 +187,11 @@ export class CalendarsController {
177187
}
178188
}
179189

190+
@ApiParam({
191+
enum: [APPLE_CALENDAR],
192+
type: String,
193+
name: "calendar",
194+
})
180195
@UseGuards(ApiAuthGuard)
181196
@Post("/:calendar/credentials")
182197
@ApiOperation({ summary: "Sync credentials" })
@@ -198,6 +213,11 @@ export class CalendarsController {
198213
}
199214
}
200215

216+
@ApiParam({
217+
enum: [APPLE_CALENDAR, GOOGLE_CALENDAR, OFFICE_365_CALENDAR],
218+
type: String,
219+
name: "calendar",
220+
})
201221
@Get("/:calendar/check")
202222
@HttpCode(HttpStatus.OK)
203223
@UseGuards(ApiAuthGuard, PermissionsGuard)
@@ -219,6 +239,11 @@ export class CalendarsController {
219239
}
220240
}
221241

242+
@ApiParam({
243+
enum: [APPLE_CALENDAR, GOOGLE_CALENDAR, OFFICE_365_CALENDAR],
244+
type: String,
245+
name: "calendar",
246+
})
222247
@UseGuards(ApiAuthGuard)
223248
@Post("/:calendar/disconnect")
224249
@HttpCode(HttpStatus.OK)

0 commit comments

Comments
 (0)