From 5f897837f2ca5847bc1daf30349ab4f1e9241ce4 Mon Sep 17 00:00:00 2001 From: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Date: Wed, 5 Feb 2025 21:39:16 +0200 Subject: [PATCH] chore: create event-type input lengthInMinutesOptions (#19114) --- apps/api/v2/swagger/documentation.json | 2 -- docs/api-reference/v2/openapi.json | 22 +++++++++++++++++-- .../inputs/create-event-type.input.ts | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/apps/api/v2/swagger/documentation.json b/apps/api/v2/swagger/documentation.json index 1d8781c5e9..1b4ede56a8 100644 --- a/apps/api/v2/swagger/documentation.json +++ b/apps/api/v2/swagger/documentation.json @@ -8692,7 +8692,6 @@ }, "required": [ "lengthInMinutes", - "lengthInMinutesOptions", "title", "slug" ] @@ -12186,7 +12185,6 @@ }, "required": [ "lengthInMinutes", - "lengthInMinutesOptions", "title", "slug", "schedulingType", diff --git a/docs/api-reference/v2/openapi.json b/docs/api-reference/v2/openapi.json index c49022c31d..378c3f481c 100644 --- a/docs/api-reference/v2/openapi.json +++ b/docs/api-reference/v2/openapi.json @@ -1189,6 +1189,15 @@ "schema": { "type": "string" } + }, + { + "name": "hostsLimit", + "required": false, + "in": "query", + "description": "Specifies the maximum number of hosts to include in the response. This limit helps optimize performance. If not provided, all Hosts will be fetched.", + "schema": { + "type": "number" + } } ], "responses": { @@ -5741,6 +5750,15 @@ "schema": { "type": "string" } + }, + { + "name": "hostsLimit", + "required": false, + "in": "query", + "description": "Specifies the maximum number of hosts to include in the response. This limit helps optimize performance. If not provided, all Hosts will be fetched.", + "schema": { + "type": "number" + } } ], "responses": { @@ -8027,7 +8045,7 @@ "example": "https://masterchief.com/argentina/flan/video/9129412" } }, - "required": ["lengthInMinutes", "lengthInMinutesOptions", "title", "slug"] + "required": ["lengthInMinutes", "title", "slug"] }, "OutputAddressLocation_2024_06_14": { "type": "object", @@ -11087,7 +11105,7 @@ "description": "If true, all current and future team members will be assigned to this event type" } }, - "required": ["lengthInMinutes", "lengthInMinutesOptions", "title", "slug", "schedulingType", "hosts"] + "required": ["lengthInMinutes", "title", "slug", "schedulingType", "hosts"] }, "CreateTeamEventTypeOutput": { "type": "object", diff --git a/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts b/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts index b373ccc940..6f4b8735bf 100644 --- a/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts +++ b/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.ts @@ -129,7 +129,7 @@ export class CreateEventTypeInput_2024_06_14 { @ArrayUnique() @IsInt({ each: true }) @Min(1, { each: true }) - @DocsProperty({ + @DocsPropertyOptional({ 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`.",