fix: rename OOO controller file to match NestJS Swagger plugin convention (#28342)

* fix: rename OOO controller file to match NestJS Swagger plugin convention for type generation

* fix: update organization module import

* feat: generate openapi docs
This commit is contained in:
Romit
2026-03-09 22:07:58 -03:00
committed by GitHub
parent b539adf47b
commit d6741a1e2b
3 changed files with 121 additions and 6 deletions
+120 -5
View File
@@ -8036,7 +8036,14 @@
],
"responses": {
"200": {
"description": ""
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserOoosOutputResponseDto"
}
}
}
}
},
"tags": ["Orgs / Users / OOO"]
@@ -8093,7 +8100,14 @@
},
"responses": {
"201": {
"description": ""
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserOooOutputResponseDto"
}
}
}
}
},
"tags": ["Orgs / Users / OOO"]
@@ -8160,7 +8174,14 @@
},
"responses": {
"200": {
"description": ""
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserOooOutputResponseDto"
}
}
}
}
},
"tags": ["Orgs / Users / OOO"]
@@ -8207,7 +8228,14 @@
],
"responses": {
"200": {
"description": ""
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserOooOutputResponseDto"
}
}
}
}
},
"tags": ["Orgs / Users / OOO"]
@@ -8313,7 +8341,14 @@
],
"responses": {
"200": {
"description": ""
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserOoosOutputResponseDto"
}
}
}
}
},
"tags": ["Orgs / Users / OOO"]
@@ -24599,6 +24634,72 @@
}
}
},
"UserOooOutputDto": {
"type": "object",
"properties": {
"userId": {
"type": "number",
"description": "The ID of the user.",
"example": 2
},
"toUserId": {
"type": "number",
"description": "The ID of the user covering for the out of office period, if applicable.",
"example": 2
},
"id": {
"type": "number",
"description": "The ID of the ooo entry.",
"example": 2
},
"uuid": {
"type": "string",
"description": "The UUID of the ooo entry.",
"example": 2
},
"start": {
"format": "date-time",
"type": "string",
"description": "The start date and time of the out of office period in ISO 8601 format in UTC timezone.",
"example": "2023-05-01T00:00:00.000Z"
},
"end": {
"format": "date-time",
"type": "string",
"description": "The end date and time of the out of office period in ISO 8601 format in UTC timezone.",
"example": "2023-05-10T23:59:59.999Z"
},
"notes": {
"type": "string",
"description": "Optional notes for the out of office entry.",
"example": "Vacation in Hawaii"
},
"reason": {
"enum": ["unspecified", "vacation", "travel", "sick", "public_holiday"],
"type": "string",
"description": "the reason for the out of office entry, if applicable",
"example": "vacation"
}
},
"required": ["userId", "id", "uuid", "start", "end"]
},
"UserOoosOutputResponseDto": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "success",
"enum": ["success", "error"]
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserOooOutputDto"
}
}
},
"required": ["status", "data"]
},
"CreateOutOfOfficeEntryDto": {
"type": "object",
"properties": {
@@ -24633,6 +24734,20 @@
},
"required": ["start", "end"]
},
"UserOooOutputResponseDto": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "success",
"enum": ["success", "error"]
},
"data": {
"$ref": "#/components/schemas/UserOooOutputDto"
}
},
"required": ["status", "data"]
},
"UpdateOutOfOfficeEntryDto": {
"type": "object",
"properties": {