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:
@@ -3184,6 +3184,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": {
|
||||
@@ -7197,6 +7215,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",
|
||||
@@ -19940,7 +19976,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
"type": "number"
|
||||
},
|
||||
"formId": {
|
||||
"type": "string"
|
||||
@@ -22237,16 +22273,21 @@
|
||||
"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",
|
||||
"description": "The id of the booking reference"
|
||||
}
|
||||
},
|
||||
"required": ["type", "externalUid", "id"]
|
||||
"required": ["type", "eventUid", "destinationCalendarId", "id"]
|
||||
},
|
||||
"BookingReferencesOutput_2024_08_13": {
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user