Scheduling infrastructure for absolutely everyone.
chore: improve ooo reason documentation apiv2 (#18582)
Morgandabd3b0fc300
diff --git a/apps/api/v2/src/modules/ooo/inputs/ooo.input.ts b/apps/api/v2/src/modules/ooo/inputs/ooo.input.tsindex 1e67a9bb50c..f29e935e5a0 100644--- a/apps/api/v2/src/modules/ooo/inputs/ooo.input.ts+++ b/apps/api/v2/src/modules/ooo/inputs/ooo.input.ts@@ -74,6 +74,7 @@ export class CreateOutOfOfficeEntryDto {@ApiPropertyOptional({description: "the reason for the out of office entry, if applicable",example: "vacation",+ enum: OutOfOfficeReason,})reason?: OutOfOfficeReasonType;}diff --git a/apps/api/v2/src/modules/ooo/outputs/ooo.output.ts b/apps/api/v2/src/modules/ooo/outputs/ooo.output.tsindex 48a62e40016..7cb39c1d93c 100644--- a/apps/api/v2/src/modules/ooo/outputs/ooo.output.ts+++ b/apps/api/v2/src/modules/ooo/outputs/ooo.output.ts@@ -69,6 +69,7 @@ export class UserOooOutputDto {@ApiPropertyOptional({description: "the reason for the out of office entry, if applicable",example: "vacation",+ enum: OutOfOfficeReason,})@Expose()reason?: OutOfOfficeReason;diff --git a/apps/api/v2/swagger/documentation.json b/apps/api/v2/swagger/documentation.jsonindex f04d0a9cc84..d3ef3223296 100644--- a/apps/api/v2/swagger/documentation.json+++ b/apps/api/v2/swagger/documentation.json@@ -13620,9 +13620,16 @@"example": 2},"reason": {- "type": "object",+ "type": "string","description": "the reason for the out of office entry, if applicable",- "example": "vacation"+ "example": "vacation",+ "enum": [+ "unspecified",+ "vacation",+ "travel",+ "sick",+ "public_holiday"+ ]}},"required": [@@ -13656,9 +13663,16 @@"example": 2},"reason": {- "type": "object",+ "type": "string","description": "the reason for the out of office entry, if applicable",- "example": "vacation"+ "example": "vacation",+ "enum": [+ "unspecified",+ "vacation",+ "travel",+ "sick",+ "public_holiday"+ ]}}},diff --git a/docs/api-reference/v2/openapi.json b/docs/api-reference/v2/openapi.jsonindex dc0446dd312..f2c7847f8a3 100644--- a/docs/api-reference/v2/openapi.json+++ b/docs/api-reference/v2/openapi.json@@ -12315,9 +12315,10 @@"example": 2},"reason": {- "type": "object",+ "type": "string","description": "the reason for the out of office entry, if applicable",- "example": "vacation"+ "example": "vacation",+ "enum": ["unspecified", "vacation", "travel", "sick", "public_holiday"]}},"required": ["start", "end"]@@ -12348,9 +12349,10 @@"example": 2},"reason": {- "type": "object",+ "type": "string","description": "the reason for the out of office entry, if applicable",- "example": "vacation"+ "example": "vacation",+ "enum": ["unspecified", "vacation", "travel", "sick", "public_holiday"]}}},