diff --git a/apps/api/v2/src/ee/gcal/gcal.controller.ts b/apps/api/v2/src/ee/gcal/gcal.controller.ts index 3e43006c8a53ea..1104de235882fb 100644 --- a/apps/api/v2/src/ee/gcal/gcal.controller.ts +++ b/apps/api/v2/src/ee/gcal/gcal.controller.ts @@ -26,7 +26,8 @@ import { Headers, } from "@nestjs/common"; import { ConfigService } from "@nestjs/config"; -import { ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger"; +import { ApiExcludeController } from "@nestjs/swagger"; +import { ApiOperation } from "@nestjs/swagger"; import { Request } from "express"; import { APPS_READ, GOOGLE_CALENDAR_TYPE, SUCCESS_STATUS } from "@calcom/platform-constants"; @@ -41,7 +42,7 @@ const CALENDAR_SCOPES = [ path: "/v2/gcal", version: API_VERSIONS_VALUES, }) -@DocsTags("Platform / Google Calendar") +@ApiExcludeController(true) export class GcalController { private readonly logger = new Logger("Platform Gcal Provider"); diff --git a/apps/api/v2/swagger/documentation.json b/apps/api/v2/swagger/documentation.json index 1b4ede56a8e5a1..1b93a304291ec4 100644 --- a/apps/api/v2/swagger/documentation.json +++ b/apps/api/v2/swagger/documentation.json @@ -63,98 +63,6 @@ ] } }, - "/v2/gcal/oauth/auth-url": { - "get": { - "operationId": "GcalController_redirect", - "summary": "Get auth URL", - "parameters": [ - { - "name": "Authorization", - "required": true, - "in": "header", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GcalAuthUrlOutput" - } - } - } - } - }, - "tags": [ - "Platform / Google Calendar" - ] - } - }, - "/v2/gcal/oauth/save": { - "get": { - "operationId": "GcalController_save", - "summary": "Connect a calendar", - "parameters": [ - { - "name": "state", - "required": true, - "in": "query", - "schema": { - "type": "string" - } - }, - { - "name": "code", - "required": true, - "in": "query", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GcalSaveRedirectOutput" - } - } - } - } - }, - "tags": [ - "Platform / Google Calendar" - ] - } - }, - "/v2/gcal/check": { - "get": { - "operationId": "GcalController_check", - "summary": "Check a calendar connection status", - "parameters": [], - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GcalCheckOutput" - } - } - } - } - }, - "tags": [ - "Platform / Google Calendar" - ] - } - }, "/v2/oauth-clients/{clientId}/users": { "get": { "operationId": "OAuthClientUsersController_getManagedUsers", @@ -14304,64 +14212,6 @@ "data" ] }, - "AuthUrlData": { - "type": "object", - "properties": { - "authUrl": { - "type": "string" - } - }, - "required": [ - "authUrl" - ] - }, - "GcalAuthUrlOutput": { - "type": "object", - "properties": { - "status": { - "type": "string", - "example": "success", - "enum": [ - "success", - "error" - ] - }, - "data": { - "$ref": "#/components/schemas/AuthUrlData" - } - }, - "required": [ - "status", - "data" - ] - }, - "GcalSaveRedirectOutput": { - "type": "object", - "properties": { - "url": { - "type": "string" - } - }, - "required": [ - "url" - ] - }, - "GcalCheckOutput": { - "type": "object", - "properties": { - "status": { - "type": "string", - "example": "success", - "enum": [ - "success", - "error" - ] - } - }, - "required": [ - "status" - ] - }, "ProviderVerifyClientData": { "type": "object", "properties": { diff --git a/docs/platform/atoms/availability-settings.mdx b/docs/platform/atoms/availability-settings.mdx index 75545e21c70f59..76230eb7505b3a 100644 --- a/docs/platform/atoms/availability-settings.mdx +++ b/docs/platform/atoms/availability-settings.mdx @@ -100,6 +100,10 @@ Below is a list of props that can be passed to the availability settings atom. | onDeleteSuccess | No | A callback function that gets triggered when the user availability is deleted successfully | | onDeleteError | No | A callback function that gets triggered when the user availability fails to delete | | enableOverrides | No | Allows user to enable or disable date overrides display in the atom; defaults to disabled | +| disableEditableHeading | No | Prevents users from editing the heading | +| allowDelete | No | When set to false, this prop hides the delete button | +| allowSetToDefault | No | When set to false, this prop hides the set to default toggle | +| disableToasts | No | Allows users to enable or disable toast notifications, with the default setting being disabled. | Along with the props, Availability settings atom accepts custom styles via the **customClassNames** prop. Below is a list of props that fall under this **customClassNames** prop.
diff --git a/docs/platform/atoms/booker.mdx b/docs/platform/atoms/booker.mdx index 38d81c26437e79..c62c43a57f216d 100644 --- a/docs/platform/atoms/booker.mdx +++ b/docs/platform/atoms/booker.mdx @@ -116,7 +116,10 @@ Below is a list of props that can be passed to the booker atom. | onReserveSlotSuccess | No | Callback function for successful slot reservation | | onReserveSlotError | No | Callback function triggered on slot reservation failure | | onDeleteSlotSuccess | No | Callback function for successful slot deletion | -| onDeleteSlotError | No | Callback function triggered on slot deletion failure +| onDeleteSlotError | No | Callback function triggered on slot deletion failure +| view | No | Specifies the layout of the booker atom into column, week, or month view | +| metadata | No | Used to pass custom metadata values into the booker. Metadata should be an object eg: `{ bookingSource: "website", userRole: "admin" }` | +| bannerUrl | No | Adds custom banner to the booker atom | Along with the props, booker atom accepts custom styles via the **customClassNames** prop. Below is a list of props that fall under this **customClassNames** prop. diff --git a/docs/platform/atoms/calendar-settings.mdx b/docs/platform/atoms/calendar-settings.mdx index c004c6e6df0696..82c3cae1f727ae 100644 --- a/docs/platform/atoms/calendar-settings.mdx +++ b/docs/platform/atoms/calendar-settings.mdx @@ -85,12 +85,12 @@ Customizations can be done to the destination calendar settings atom via props. The selected calendar settings atom lets you select which calendars you want to check for conflicts to prevent double bookings. Below code snippet can be used to render the selected calendar settings atom. ```js -import { SelectedCalendarSettings } from "@calcom/atoms"; +import { SelectedCalendarsSettings } from "@calcom/atoms"; export default function SelectedCalendars( props : SelectedCalendarsProps ) { return ( <> -