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`.",