From 386ad87e641b2424ccd1df0cb7c69e38b80ac8c0 Mon Sep 17 00:00:00 2001 From: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com> Date: Tue, 21 Mar 2023 23:02:48 +0530 Subject: [PATCH] Event type swagger update for location type (#252) Updates Location Type documentation in swagger for event type _post and _patch --- pages/api/event-types/[id]/_patch.ts | 32 +++++++++++++++++++++++++++- pages/api/event-types/_post.ts | 32 +++++++++++++++++++++++++++- 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/pages/api/event-types/[id]/_patch.ts b/pages/api/event-types/[id]/_patch.ts index d44908b2b1..83bdf156ad 100644 --- a/pages/api/event-types/[id]/_patch.ts +++ b/pages/api/event-types/[id]/_patch.ts @@ -147,7 +147,37 @@ import checkTeamEventEditPermission from "../_utils/checkTeamEventEditPermission * type: array * description: A list of all available locations for the event type * items: - * type: object + * type: array + * items: + * oneOf: + * - type: object + * properties: + * type: + * type: string + * enum: ['integrations:daily'] + * - type: object + * properties: + * type: + * type: string + * enum: ['attendeeInPerson'] + * - type: object + * properties: + * type: + * type: string + * enum: ['inPerson'] + * address: + * type: string + * displayLocationPublicly: + * type: boolean + * - type: object + * properties: + * type: + * type: string + * enum: ['link'] + * link: + * type: string + * displayLocationPublicly: + * type: boolean * example: * event-type: * summary: An example of event type PATCH request diff --git a/pages/api/event-types/_post.ts b/pages/api/event-types/_post.ts index 687f4f220c..488a15e6b9 100644 --- a/pages/api/event-types/_post.ts +++ b/pages/api/event-types/_post.ts @@ -137,7 +137,37 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts"; * type: array * description: A list of all available locations for the event type * items: - * type: object + * type: array + * items: + * oneOf: + * - type: object + * properties: + * type: + * type: string + * enum: ['integrations:daily'] + * - type: object + * properties: + * type: + * type: string + * enum: ['attendeeInPerson'] + * - type: object + * properties: + * type: + * type: string + * enum: ['inPerson'] + * address: + * type: string + * displayLocationPublicly: + * type: boolean + * - type: object + * properties: + * type: + * type: string + * enum: ['link'] + * link: + * type: string + * displayLocationPublicly: + * type: boolean * example: * event-type: * summary: An example of event type POST request