Scheduling infrastructure for absolutely everyone.
Fix: Improve docs and mobile style of api docs (#2635)
Agusti Fernandez Pardo71e67b50b2d0
diff --git a/apps/api b/apps/apiindex 6124577bc21..be2d4338ee1 160000--- a/apps/api+++ b/apps/api@@ -1 +1 @@-Subproject commit 6124577bc21502c018378a299e50fc96bff14b99+Subproject commit be2d4338ee1023a2d2862978ccf91554d47ff51fdiff --git a/apps/docs/lib/useWindowSize.ts b/apps/docs/lib/useWindowSize.tsnew file mode 100644index 00000000000..1987e6f3630--- /dev/null+++ b/apps/docs/lib/useWindowSize.ts@@ -0,0 +1,33 @@+import { useState, useEffect } from "react";++// Define general type for useWindowSize hook, which includes width and height+export interface Size {+ width: number | undefined;+ height: number | undefined;+}+// Hook from: https://usehooks.com/useWindowSize/+export function useWindowSize(): Size {+ // Initialize state with undefined width/height so server and client renders match+ // Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/+ const [windowSize, setWindowSize] = useState<Size>({+ width: undefined,+ height: undefined,+ });+ useEffect(() => {+ // Handler to call on window resize+ function handleResize() {+ // Set window width/height to state+ setWindowSize({+ width: window.innerWidth,+ height: window.innerHeight,+ });+ }+ // Add event listener+ window.addEventListener("resize", handleResize);+ // Call handler right away so state gets updated with initial window size+ handleResize();+ // Remove event listener on cleanup+ return () => window.removeEventListener("resize", handleResize);+ }, []); // Empty array ensures that effect is only run on mount+ return windowSize;+}diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex c8381960b3f..b006c560e1b 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -15,6 +15,7 @@"author": "Cal.com, Inc.","license": "MIT","dependencies": {+ "iframe-resizer-react": "^1.1.0","next": "^12.1.0","nextra": "^1.1.0","nextra-theme-docs": "^1.2.2",diff --git a/apps/docs/pages/public-api.mdx b/apps/docs/pages/public-api.mdxindex 12eb944e932..a5a2fa62a41 100644--- a/apps/docs/pages/public-api.mdx+++ b/apps/docs/pages/public-api.mdx@@ -1,11 +1,20 @@import Bleed from 'nextra-theme-docs/bleed'import Head from "next/head";+import IframeResizer from "iframe-resizer-react";+import {useWindowSize} from "../lib/useWindowSize";+<Bleed full>-<Head><title>Public API | Cal.com</title></Head>- <iframe src="https://developer.cal.com"- width="100%"- height="900px"- title="Public API | Cal.com"- ></iframe>+ <Head><title>Public API | Cal.com</title></Head>+ <IframeResizer+ autoResize+ src={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://developer.cal.com"}+ frameBorder="0"+ style={{+ width: useWindowSize().width > 768 ? "calc(100vw - 16rem)": "100vw",+ minHeight: useWindowSize().width > 768 ? "100vh" : "200vh",+ height: "auto",+ border: 0,+ }}+ /></Bleed>diff --git a/apps/swagger/.env.example b/apps/swagger/.env.exampleindex 2bef25166cb..0b62b0bcebf 100644--- a/apps/swagger/.env.example+++ b/apps/swagger/.env.example@@ -1 +1 @@-NEXT_PUBLIC_SWAGGER_DOCS_URL=http://localhost:3002/docs\ No newline at end of file+NEXT_PUBLIC_SWAGGER_DOCS_URL=http://localhost:3002/api/docs\ No newline at end of filediff --git a/apps/swagger/lib/snippets.ts b/apps/swagger/lib/snippets.tsindex b1ec3fc3055..fdeb5ead3a2 100644--- a/apps/swagger/lib/snippets.ts+++ b/apps/swagger/lib/snippets.ts@@ -20,7 +20,7 @@ export const requestSnippets = {},},defaultExpanded: true,- languages: ["node"],+ languages: ["node", "curl_bash"],};// Since swagger-ui-react was not configured to change the request snippets some workarounds required// configuration will be added programaticallydiff --git a/apps/swagger/package.json b/apps/swagger/package.jsonindex 129452adfb1..4879680cf23 100644--- a/apps/swagger/package.json+++ b/apps/swagger/package.json@@ -5,7 +5,7 @@"scripts": {"dev": "PORT=4200 next dev","build": "next build",- "start": "next start"+ "start": "PORT=4200 next start"},"dependencies": {"highlight.js": "^11.5.1",diff --git a/apps/swagger/pages/index.tsx b/apps/swagger/pages/index.tsxindex 0631433672c..6fc36fe4519 100644--- a/apps/swagger/pages/index.tsx+++ b/apps/swagger/pages/index.tsx@@ -1,20 +1,25 @@import dynamic from "next/dynamic";+import { SwaggerUI } from "swagger-ui-react";import { SnippedGenerator, requestSnippets } from "@lib/snippets";-const SwaggerUI: any = dynamic(() => import("swagger-ui-react"), { ssr: false });+const SwaggerUIDynamic: SwaggerUI & { url: string } = dynamic(() => import("swagger-ui-react"), {+ ssr: false,+});export default function APIDocs() {return (- <SwaggerUI+ <SwaggerUIDynamicurl={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://api.cal.com/docs"}- supportedSubmitMethods={["get", "post", "delete", "patch"]}+ persistAuthorization={true}+ supportedSubmitMethods={["get", "post", "delete", "put", "options", "patch"]}requestSnippetsEnabled={true}requestSnippets={requestSnippets}plugins={[SnippedGenerator]}tryItOutEnabled={true}syntaxHighlight={true}- docExpansion="none"+ enableCORS={false} // Doesn't seem to work either+ docExpansion="list"filter={true}/>);diff --git a/apps/swagger/styles/globals.css b/apps/swagger/styles/globals.cssindex e5e2dcc23ba..52d33738c5e 100644--- a/apps/swagger/styles/globals.css+++ b/apps/swagger/styles/globals.css@@ -14,3 +14,89 @@ a {* {box-sizing: border-box;}++@media (max-width: 768px) {+ .swagger-ui .opblock-tag {+ font-size: 90% !important;+ }+ .swagger-ui .opblock .opblock-summary {+ display: grid;+ flex-direction: column;+ }+ .opblock-summary-path {+ flex-shrink: 0;+ max-width: 100% !important;+ padding: 10px 5px !important;+ }+ .opblock-summary-description {+ font-size: 16px !important;+ padding: 0px 5px;+ }+ .swagger-ui .scheme-container .schemes {+ align-items: center;+ display: flex;+ flex-direction: column;+ }+ .swagger-ui .info .title {+ color: #3b4151;+ font-family: sans-serif;+ font-size: 22px;+ }+ .swagger-ui .scheme-container {+ padding: 14px 0;+ }+ .swagger-ui .info {+ margin: 10px 0;+ }+ .swagger-ui .auth-wrapper {+ margin: 10px 0;+ }+ .swagger-ui .authorization__btn {+ display: none;+ }+ .swagger-ui .opblock {+ margin: 0 0 5px;+ }+ button.opblock-summary-control > svg {+ display: none;+ }+ .swagger-ui .filter .operation-filter-input {+ border: 2px solid #d8dde7;+ margin: 5px 5px;+ padding: 5px;+ width: 100vw;+ }+ .swagger-ui .wrapper {+ padding: 0 4px;+ width: 100%;+ }+ .swagger-ui .info .title small {+ top: 5px;+ }+ .swagger-ui a.nostyle, .swagger-ui a.nostyle:visited {+ width: 100%;+ }+ div.request-snippets > div.curl-command > div:nth-child(1) {+ overscroll-behavior: contain;+ overflow-x: scroll;+ }+ .swagger-ui .opblock-body pre.microlight {+ font-size: 9px;+ }+ .swagger-ui table tbody tr td {+ padding: 0px 0 0;+ vertical-align: none;+ }+ td.response-col_description > div > div > p {+ font-size: 12px;+ }+ div.no-margin > div > div.responses-wrapper > div.responses-inner > div > div > table > tbody > tr {+ display: flex;+ width: 100vw;+ flex-direction: column;+ font-size: 60%;+ }+ div.no-margin > div > div.responses-wrapper > div.responses-inner > div > div > table > thead > tr {+ display: none;+ }+}\ No newline at end of filediff --git a/apps/website b/apps/websiteindex 797f725d982..b86553c8497 160000--- a/apps/website+++ b/apps/website@@ -1 +1 @@-Subproject commit 797f725d982988ec7c2767ee2250b6fb83a82086+Subproject commit b86553c8497b25a347fa8e8efcabd30f981506acdiff --git a/package.json b/package.jsonindex fa80e14e151..f8bbfc62009 100644--- a/package.json+++ b/package.json@@ -17,7 +17,7 @@"deploy": "turbo run deploy","dev": "turbo run dev --scope=\"@calcom/web\"","dev:website": "yarn predev && turbo run dev --scope=\"@calcom/web\" --scope=\"@calcom/website\"",- "dev:api": "yarn predev && turbo run dev --scope=\"@calcom/web\" --scope=\"@calcom/api\"",+ "dev:api": "yarn predev && turbo run dev --scope=\"@calcom/api\"","dev:swagger": "yarn predev && turbo run dev --scope=\"@calcom/api\" --scope=\"@calcom/swagger\"","dev:console": "yarn predev && turbo run dev --scope=\"@calcom/web\" --scope=\"@calcom/console\"","docs-dev": "yarn predev && turbo run dev --scope=\"@calcom/docs\"",diff --git a/packages/prisma/json-schema/json-schema.json b/packages/prisma/json-schema/json-schema.jsondeleted file mode 100644index 1ae113fddfe..00000000000--- a/packages/prisma/json-schema/json-schema.json+++ /dev/null@@ -1,1064 +0,0 @@-{- "$schema": "http://json-schema.org/draft-07/schema#",- "definitions": {- "EventType": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "title": {- "type": "string",- "description": "@zod.nonempty()"- },- "slug": {- "type": "string",- "description": "@zod.custom(imports.eventTypeSlug)"- },- "description": {- "type": ["string", "null"]- },- "position": {- "type": "integer",- "default": 0- },- "locations": {- "type": ["number", "string", "boolean", "object", "array", "null"],- "description": "@zod.custom(imports.eventTypeLocations)"- },- "length": {- "type": "integer"- },- "hidden": {- "type": "boolean",- "default": false- },- "users": {- "type": "array",- "items": {- "$ref": "#/definitions/User"- }- },- "userId": {- "type": ["integer", "null"]- },- "team": {- "anyOf": [- {- "$ref": "#/definitions/Team"- },- {- "type": "null"- }- ]- },- "bookings": {- "type": "array",- "items": {- "$ref": "#/definitions/Booking"- }- },- "availability": {- "type": "array",- "items": {- "$ref": "#/definitions/Availability"- }- },- "webhooks": {- "type": "array",- "items": {- "$ref": "#/definitions/Webhook"- }- },- "destinationCalendar": {- "anyOf": [- {- "$ref": "#/definitions/DestinationCalendar"- },- {- "type": "null"- }- ]- },- "eventName": {- "type": ["string", "null"]- },- "customInputs": {- "type": "array",- "items": {- "$ref": "#/definitions/EventTypeCustomInput"- }- },- "timeZone": {- "type": ["string", "null"]- },- "periodType": {- "type": "string",- "default": "UNLIMITED",- "enum": ["UNLIMITED", "ROLLING", "RANGE"]- },- "periodStartDate": {- "type": ["string", "null"],- "format": "date-time"- },- "periodEndDate": {- "type": ["string", "null"],- "format": "date-time"- },- "periodDays": {- "type": ["integer", "null"]- },- "periodCountCalendarDays": {- "type": ["boolean", "null"]- },- "requiresConfirmation": {- "type": "boolean",- "default": false- },- "disableGuests": {- "type": "boolean",- "default": false- },- "minimumBookingNotice": {- "type": "integer",- "default": 120- },- "beforeEventBuffer": {- "type": "integer",- "default": 0- },- "afterEventBuffer": {- "type": "integer",- "default": 0- },- "schedulingType": {- "type": ["string", "null"],- "enum": ["ROUND_ROBIN", "COLLECTIVE"]- },- "schedule": {- "anyOf": [- {- "$ref": "#/definitions/Schedule"- },- {- "type": "null"- }- ]- },- "price": {- "type": "integer",- "default": 0- },- "currency": {- "type": "string",- "default": "usd"- },- "slotInterval": {- "type": ["integer", "null"]- },- "metadata": {- "type": ["number", "string", "boolean", "object", "array", "null"]- }- }- },- "Credential": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "type": {- "type": "string"- },- "key": {- "type": ["number", "string", "boolean", "object", "array", "null"]- },- "user": {- "anyOf": [- {- "$ref": "#/definitions/User"- },- {- "type": "null"- }- ]- }- }- },- "DestinationCalendar": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "integration": {- "type": "string"- },- "externalId": {- "type": "string"- },- "user": {- "anyOf": [- {- "$ref": "#/definitions/User"- },- {- "type": "null"- }- ]- },- "booking": {- "anyOf": [- {- "$ref": "#/definitions/Booking"- },- {- "type": "null"- }- ]- },- "eventType": {- "anyOf": [- {- "$ref": "#/definitions/EventType"- },- {- "type": "null"- }- ]- }- }- },- "User": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "username": {- "type": ["string", "null"]- },- "name": {- "type": ["string", "null"]- },- "email": {- "type": "string",- "description": "@zod.email()"- },- "emailVerified": {- "type": ["string", "null"],- "format": "date-time"- },- "password": {- "type": ["string", "null"]- },- "bio": {- "type": ["string", "null"]- },- "avatar": {- "type": ["string", "null"]- },- "timeZone": {- "type": "string",- "default": "Europe/London"- },- "weekStart": {- "type": "string",- "default": "Sunday"- },- "startTime": {- "type": "integer",- "default": 0- },- "endTime": {- "type": "integer",- "default": 1440- },- "bufferTime": {- "type": "integer",- "default": 0- },- "hideBranding": {- "type": "boolean",- "default": false- },- "theme": {- "type": ["string", "null"]- },- "createdDate": {- "type": "string",- "format": "date-time"- },- "trialEndsAt": {- "type": ["string", "null"],- "format": "date-time"- },- "eventTypes": {- "type": "array",- "items": {- "$ref": "#/definitions/EventType"- }- },- "credentials": {- "type": "array",- "items": {- "$ref": "#/definitions/Credential"- }- },- "teams": {- "type": "array",- "items": {- "$ref": "#/definitions/Membership"- }- },- "bookings": {- "type": "array",- "items": {- "$ref": "#/definitions/Booking"- }- },- "schedules": {- "type": "array",- "items": {- "$ref": "#/definitions/Schedule"- }- },- "defaultScheduleId": {- "type": ["integer", "null"]- },- "selectedCalendars": {- "type": "array",- "items": {- "$ref": "#/definitions/SelectedCalendar"- }- },- "completedOnboarding": {- "type": "boolean",- "default": false- },- "locale": {- "type": ["string", "null"]- },- "timeFormat": {- "type": ["integer", "null"],- "default": 12- },- "twoFactorSecret": {- "type": ["string", "null"]- },- "twoFactorEnabled": {- "type": "boolean",- "default": false- },- "identityProvider": {- "type": "string",- "default": "CAL",- "enum": ["CAL", "GOOGLE", "SAML"]- },- "identityProviderId": {- "type": ["string", "null"]- },- "availability": {- "type": "array",- "items": {- "$ref": "#/definitions/Availability"- }- },- "invitedTo": {- "type": ["integer", "null"]- },- "plan": {- "type": "string",- "default": "TRIAL",- "enum": ["FREE", "TRIAL", "PRO"]- },- "webhooks": {- "type": "array",- "items": {- "$ref": "#/definitions/Webhook"- }- },- "brandColor": {- "type": "string",- "default": "#292929"- },- "darkBrandColor": {- "type": "string",- "default": "#fafafa"- },- "destinationCalendar": {- "anyOf": [- {- "$ref": "#/definitions/DestinationCalendar"- },- {- "type": "null"- }- ]- },- "away": {- "type": "boolean",- "default": false- },- "metadata": {- "type": ["number", "string", "boolean", "object", "array", "null"]- },- "verified": {- "type": ["boolean", "null"],- "default": false- },- "apiKeys": {- "type": "array",- "items": {- "$ref": "#/definitions/ApiKey"- }- }- }- },- "Team": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "name": {- "type": ["string", "null"]- },- "slug": {- "type": ["string", "null"]- },- "logo": {- "type": ["string", "null"]- },- "bio": {- "type": ["string", "null"]- },- "hideBranding": {- "type": "boolean",- "default": false- },- "members": {- "type": "array",- "items": {- "$ref": "#/definitions/Membership"- }- },- "eventTypes": {- "type": "array",- "items": {- "$ref": "#/definitions/EventType"- }- }- }- },- "Membership": {- "type": "object",- "properties": {- "accepted": {- "type": "boolean",- "default": false- },- "role": {- "type": "string",- "enum": ["MEMBER", "ADMIN", "OWNER"]- },- "team": {- "$ref": "#/definitions/Team"- },- "user": {- "$ref": "#/definitions/User"- }- }- },- "VerificationRequest": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "identifier": {- "type": "string"- },- "token": {- "type": "string"- },- "expires": {- "type": "string",- "format": "date-time"- },- "createdAt": {- "type": "string",- "format": "date-time"- },- "updatedAt": {- "type": "string",- "format": "date-time"- }- }- },- "BookingReference": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "type": {- "type": "string"- },- "uid": {- "type": "string"- },- "meetingId": {- "type": ["string", "null"]- },- "meetingPassword": {- "type": ["string", "null"]- },- "meetingUrl": {- "type": ["string", "null"]- },- "booking": {- "anyOf": [- {- "$ref": "#/definitions/Booking"- },- {- "type": "null"- }- ]- }- }- },- "Attendee": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "email": {- "type": "string"- },- "name": {- "type": "string"- },- "timeZone": {- "type": "string"- },- "locale": {- "type": ["string", "null"],- "default": "en"- },- "booking": {- "anyOf": [- {- "$ref": "#/definitions/Booking"- },- {- "type": "null"- }- ]- }- }- },- "DailyEventReference": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "dailyurl": {- "type": "string",- "default": "dailycallurl"- },- "dailytoken": {- "type": "string",- "default": "dailytoken"- },- "booking": {- "anyOf": [- {- "$ref": "#/definitions/Booking"- },- {- "type": "null"- }- ]- }- }- },- "Booking": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "uid": {- "type": "string"- },- "user": {- "anyOf": [- {- "$ref": "#/definitions/User"- },- {- "type": "null"- }- ]- },- "references": {- "type": "array",- "items": {- "$ref": "#/definitions/BookingReference"- }- },- "eventType": {- "anyOf": [- {- "$ref": "#/definitions/EventType"- },- {- "type": "null"- }- ]- },- "title": {- "type": "string"- },- "description": {- "type": ["string", "null"]- },- "startTime": {- "type": "string",- "format": "date-time"- },- "endTime": {- "type": "string",- "format": "date-time"- },- "attendees": {- "type": "array",- "items": {- "$ref": "#/definitions/Attendee"- }- },- "location": {- "type": ["string", "null"]- },- "dailyRef": {- "anyOf": [- {- "$ref": "#/definitions/DailyEventReference"- },- {- "type": "null"- }- ]- },- "createdAt": {- "type": "string",- "format": "date-time"- },- "updatedAt": {- "type": ["string", "null"],- "format": "date-time"- },- "confirmed": {- "type": "boolean",- "default": true- },- "rejected": {- "type": "boolean",- "default": false- },- "status": {- "type": "string",- "default": "ACCEPTED",- "enum": ["CANCELLED", "ACCEPTED", "REJECTED", "PENDING"]- },- "paid": {- "type": "boolean",- "default": false- },- "payment": {- "type": "array",- "items": {- "$ref": "#/definitions/Payment"- }- },- "destinationCalendar": {- "anyOf": [- {- "$ref": "#/definitions/DestinationCalendar"- },- {- "type": "null"- }- ]- },- "cancellationReason": {- "type": ["string", "null"]- },- "rejectionReason": {- "type": ["string", "null"]- }- }- },- "Schedule": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "user": {- "$ref": "#/definitions/User"- },- "eventType": {- "anyOf": [- {- "$ref": "#/definitions/EventType"- },- {- "type": "null"- }- ]- },- "name": {- "type": "string"- },- "timeZone": {- "type": ["string", "null"]- },- "availability": {- "type": "array",- "items": {- "$ref": "#/definitions/Availability"- }- }- }- },- "Availability": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "user": {- "anyOf": [- {- "$ref": "#/definitions/User"- },- {- "type": "null"- }- ]- },- "eventType": {- "anyOf": [- {- "$ref": "#/definitions/EventType"- },- {- "type": "null"- }- ]- },- "days": {- "type": "array",- "items": {- "type": "integer"- }- },- "startTime": {- "type": "string",- "format": "date-time"- },- "endTime": {- "type": "string",- "format": "date-time"- },- "date": {- "type": ["string", "null"],- "format": "date-time"- },- "Schedule": {- "anyOf": [- {- "$ref": "#/definitions/Schedule"- },- {- "type": "null"- }- ]- }- }- },- "SelectedCalendar": {- "type": "object",- "properties": {- "user": {- "$ref": "#/definitions/User"- },- "integration": {- "type": "string"- },- "externalId": {- "type": "string"- }- }- },- "EventTypeCustomInput": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "eventType": {- "$ref": "#/definitions/EventType"- },- "label": {- "type": "string"- },- "type": {- "type": "string",- "enum": ["TEXT", "TEXTLONG", "NUMBER", "BOOL"]- },- "required": {- "type": "boolean"- },- "placeholder": {- "type": "string",- "default": ""- }- }- },- "ResetPasswordRequest": {- "type": "object",- "properties": {- "id": {- "type": "string"- },- "createdAt": {- "type": "string",- "format": "date-time"- },- "updatedAt": {- "type": "string",- "format": "date-time"- },- "email": {- "type": "string"- },- "expires": {- "type": "string",- "format": "date-time"- }- }- },- "ReminderMail": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "referenceId": {- "type": "integer"- },- "reminderType": {- "type": "string",- "enum": ["PENDING_BOOKING_CONFIRMATION"]- },- "elapsedMinutes": {- "type": "integer"- },- "createdAt": {- "type": "string",- "format": "date-time"- }- }- },- "Payment": {- "type": "object",- "properties": {- "id": {- "type": "integer"- },- "uid": {- "type": "string"- },- "type": {- "type": "string",- "enum": ["STRIPE"]- },- "booking": {- "anyOf": [- {- "$ref": "#/definitions/Booking"- },- {- "type": "null"- }- ]- },- "amount": {- "type": "integer"- },- "fee": {- "type": "integer"- },- "currency": {- "type": "string"- },- "success": {- "type": "boolean"- },- "refunded": {- "type": "boolean"- },- "data": {- "type": ["number", "string", "boolean", "object", "array", "null"]- },- "externalId": {- "type": "string"- }- }- },- "Webhook": {- "type": "object",- "properties": {- "id": {- "type": "string"- },- "subscriberUrl": {- "type": "string"- },- "payloadTemplate": {- "type": ["string", "null"]- },- "createdAt": {- "type": "string",- "format": "date-time"- },- "active": {- "type": "boolean",- "default": true- },- "eventTriggers": {- "type": "array",- "enum": ["BOOKING_CREATED", "BOOKING_RESCHEDULED", "BOOKING_CANCELLED"]- },- "user": {- "anyOf": [- {- "$ref": "#/definitions/User"- },- {- "type": "null"- }- ]- },- "eventType": {- "anyOf": [- {- "$ref": "#/definitions/EventType"- },- {- "type": "null"- }- ]- }- }- },- "ApiKey": {- "type": "object",- "properties": {- "id": {- "type": "string"- },- "user": {- "anyOf": [- {- "$ref": "#/definitions/User"- },- {- "type": "null"- }- ]- },- "createdAt": {- "type": "string",- "format": "date-time"- },- "expiresAt": {- "type": "string",- "format": "date-time"- },- "note": {- "type": ["string", "null"]- }- }- }- },- "type": "object",- "properties": {- "eventType": {- "$ref": "#/definitions/EventType"- },- "credential": {- "$ref": "#/definitions/Credential"- },- "destinationCalendar": {- "$ref": "#/definitions/DestinationCalendar"- },- "user": {- "$ref": "#/definitions/User"- },- "team": {- "$ref": "#/definitions/Team"- },- "membership": {- "$ref": "#/definitions/Membership"- },- "verificationRequest": {- "$ref": "#/definitions/VerificationRequest"- },- "bookingReference": {- "$ref": "#/definitions/BookingReference"- },- "attendee": {- "$ref": "#/definitions/Attendee"- },- "dailyEventReference": {- "$ref": "#/definitions/DailyEventReference"- },- "booking": {- "$ref": "#/definitions/Booking"- },- "schedule": {- "$ref": "#/definitions/Schedule"- },- "availability": {- "$ref": "#/definitions/Availability"- },- "selectedCalendar": {- "$ref": "#/definitions/SelectedCalendar"- },- "eventTypeCustomInput": {- "$ref": "#/definitions/EventTypeCustomInput"- },- "resetPasswordRequest": {- "$ref": "#/definitions/ResetPasswordRequest"- },- "reminderMail": {- "$ref": "#/definitions/ReminderMail"- },- "payment": {- "$ref": "#/definitions/Payment"- },- "webhook": {- "$ref": "#/definitions/Webhook"- },- "apiKey": {- "$ref": "#/definitions/ApiKey"- }- }-}diff --git a/yarn.lock b/yarn.lockindex a9c1dee6c2c..fe46d75d731 100644--- a/yarn.lock+++ b/yarn.lock@@ -758,14 +758,6 @@resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-6.0.0.tgz#fe364f025ba74f6de6c837a84ef44bdb1d61e68f"integrity sha512-mgmE7XBYY/21erpzhexk4Cj1cyTQ9LzvnTxtzM17BJ7ERMNE6W72mQRo0I1Ud8eFJ+RVVIcBNhLFZ3GX4XFz5w==-"@calcom/embed-react@^1.0.2":- version "1.0.2"- resolved "https://registry.yarnpkg.com/@calcom/embed-react/-/embed-react-1.0.2.tgz#b27230f333893573c02cb2aa35a162b5ca976705"- integrity sha512-6E8m9A6XW9nY7V0Ey54IAqbr5mABx0f5y9GYHXwBdLu8Pqq0f1H/JFmiVvlvs+DIgdMRMFa0qwQF7iM8QNkNxQ==- dependencies:- playwright "^1.21.1"- typescript "^4.6.3"-"@cnakazawa/watch@^1.0.3":version "1.0.4"resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a"