Skip to content

Commit

Permalink
resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryukemeister committed Dec 17, 2024
1 parent 0b3df44 commit e0c5146
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 89 deletions.
42 changes: 1 addition & 41 deletions apps/api/v2/swagger/documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -10884,41 +10884,6 @@
"name"
]
},
"EventTypeTeam": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"slug": {
"type": "string"
},
"bannerUrl": {
"type": "string"
},
"name": {
"type": "string"
},
"logoUrl": {
"type": "string"
},
"weekStart": {
"type": "string"
},
"brandColor": {
"type": "string"
},
"darkBrandColor": {
"type": "string"
},
"theme": {
"type": "string"
}
},
"required": [
"id"
]
},
"TeamEventTypeOutput_2024_06_14": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -11196,9 +11161,6 @@
"COLLECTIVE",
"MANAGED"
]
},
"team": {
"$ref": "#/components/schemas/EventTypeTeam"
}
},
"required": [
Expand All @@ -11219,10 +11181,8 @@
"successRedirectUrl",
"isInstantEvent",
"scheduleId",
"teamId",
"hosts",
"schedulingType",
"team"
"schedulingType"
]
},
"GetTeamEventTypeOutput": {
Expand Down
40 changes: 1 addition & 39 deletions docs/api-reference/v2/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -9919,39 +9919,6 @@
},
"required": ["userId", "name"]
},
"EventTypeTeam": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"slug": {
"type": "string"
},
"bannerUrl": {
"type": "string"
},
"name": {
"type": "string"
},
"logoUrl": {
"type": "string"
},
"weekStart": {
"type": "string"
},
"brandColor": {
"type": "string"
},
"darkBrandColor": {
"type": "string"
},
"theme": {
"type": "string"
}
},
"required": ["id"]
},
"TeamEventTypeOutput_2024_06_14": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -10221,9 +10188,6 @@
"type": "string",
"nullable": true,
"enum": ["ROUND_ROBIN", "COLLECTIVE", "MANAGED"]
},
"team": {
"$ref": "#/components/schemas/EventTypeTeam"
}
},
"required": [
Expand All @@ -10244,10 +10208,8 @@
"successRedirectUrl",
"isInstantEvent",
"scheduleId",
"teamId",
"hosts",
"schedulingType",
"team"
"schedulingType"
]
},
"GetTeamEventTypeOutput": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { ApiProperty as DocsProperty, ApiExtraModels, getSchemaPath } from "@nestjs/swagger";
import {
ApiProperty as DocsProperty,
ApiPropertyOptional,
ApiExtraModels,
getSchemaPath,
} from "@nestjs/swagger";
import { Type } from "class-transformer";
import {
ArrayNotEmpty,
Expand Down Expand Up @@ -427,9 +432,9 @@ export class EventTypeOutput_2024_06_14 extends BaseEventTypeOutput_2024_06_14 {
}

export class TeamEventTypeOutput_2024_06_14 extends BaseEventTypeOutput_2024_06_14 {
@IsInt()
@DocsProperty()
teamId!: number;
@IsOptional()
@ApiPropertyOptional({ nullable: true })
teamId?: number | null;

@IsInt()
@IsOptional()
Expand Down Expand Up @@ -463,9 +468,4 @@ export class TeamEventTypeOutput_2024_06_14 extends BaseEventTypeOutput_2024_06_
@IsBoolean()
@DocsProperty()
hideCalendarEventDetails?: boolean;

@ValidateNested()
@Type(() => EventTypeTeam)
@DocsProperty()
team!: EventTypeTeam;
}

0 comments on commit e0c5146

Please sign in to comment.