feat: booking references api type filter (#21179)

* feat: add `type` filter for booking references API endpointa

* Update openapi.json

* feat: add enum validation for booking reference types in filter input

* refactor: rename externalUid to eventUid and add destinationCalendarId in booking references

* refactor: replace enum with const array for BookingReferenceType

* fix: type safety for booking references where clause using Prisma types

* refactor: rename BookingReferenceType to BookingReferences
This commit is contained in:
Somay Chauhan authored and GitHub committed 2025-05-08 17:23:09 +00:00
1 parent f047799299
commit 8ad62d183c
9 files changed
+162 -27

No files matched your search

+49 -7
View File
@@ -3321,6 +3321,24 @@
"schema": {
"type": "string"
}
},
{
"name": "type",
"required": false,
"in": "query",
"description": "Filter booking references by type",
"example": "google_calendar",
"schema": {
"enum": [
"google_calendar",
"office365_calendar",
"daily_video",
"google_video",
"office365_video",
"zoom_video"
],
"type": "string"
}
}
],
"responses": {
@@ -7529,6 +7547,24 @@
"type": "string"
}
},
{
"name": "type",
"required": false,
"in": "query",
"description": "Filter booking references by type",
"example": "google_calendar",
"schema": {
"enum": [
"google_calendar",
"office365_calendar",
"daily_video",
"google_video",
"office365_video",
"zoom_video"
],
"type": "string"
}
},
{
"name": "Authorization",
"in": "header",
@@ -15063,7 +15099,7 @@
"eightxeight-video",
"discord-video",
"demodesk-video",
"campfire-video",
"campfire-video"
],
"example": "cal-video"
},
@@ -21743,7 +21779,7 @@
"type": "object",
"properties": {
"id": {
"type": "string"
"type": "number"
},
"formId": {
"type": "string"
@@ -22296,7 +22332,7 @@
"eightxeight-video",
"discord-video",
"demodesk-video",
"campfire-video",
"campfire-video"
]
}
},
@@ -24257,9 +24293,14 @@
"type": "string",
"description": "The type of the booking reference"
},
"externalUid": {
"eventUid": {
"type": "string",
"description": "The external uid of the booking reference"
"description": "The event uid of the booking"
},
"destinationCalendarId": {
"type": "string",
"nullable": true,
"description": "The id of the calendar the event is created in"
},
"id": {
"type": "number",
@@ -24268,7 +24309,8 @@
},
"required": [
"type",
"externalUid",
"eventUid",
"destinationCalendarId",
"id"
]
},
@@ -25168,4 +25210,4 @@
}
}
}
}
}