feat: v2 routing forms responses endpoints (#19319)

* wip: routing forms responses

* refactor structure

* Revert "refactor structure"

This reverts commit b641c06592cd9314008e81c4584039bd42393ac7.

* routing forms

* remove unused file
This commit is contained in:
Lauris Skraucis
2025-02-21 13:38:00 +05:30
committed by GitHub
parent 0b3aa4fd34
commit e6daed762b
19 changed files with 714 additions and 0 deletions
+101
View File
@@ -2422,6 +2422,35 @@
"tags": ["Orgs / Teams / Memberships"]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/routing-forms/{routing}-formId/responses": {
"get": {
"operationId": "OrganizationsTeamsRoutingFormsResponsesController_getRoutingFormResponses",
"summary": "Get routing form responses",
"parameters": [
{
"name": "routing-formId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetRoutingFormResponsesOutput"
}
}
}
}
},
"tags": ["Orgs / Teams / Routing forms / Responses"]
}
},
"/v2/organizations/{orgId}/teams/{teamId}/users/{userId}/schedules": {
"get": {
"operationId": "OrganizationsTeamsSchedulesController_getUserSchedules",
@@ -12917,6 +12946,54 @@
},
"required": ["status", "data"]
},
"RoutingFormResponseOutput": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"formId": {
"type": "string"
},
"formFillerId": {
"type": "string"
},
"routedToBookingUid": {
"type": "string"
},
"response": {
"type": "object",
"example": {
"f00b26df-f54b-4985-8d98-17c5482c6a24": {
"label": "participant",
"value": "mamut"
}
}
},
"createdAt": {
"format": "date-time",
"type": "string"
}
},
"required": ["id", "formId", "formFillerId", "routedToBookingUid", "response", "createdAt"]
},
"GetRoutingFormResponsesOutput": {
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "success",
"enum": ["success", "error"]
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RoutingFormResponseOutput"
}
}
},
"required": ["status", "data"]
},
"ProviderVerifyClientData": {
"type": "object",
"properties": {
@@ -13856,6 +13933,10 @@
"key": "value"
}
},
"rating": {
"type": "number",
"example": 4
},
"attendees": {
"type": "array",
"items": {
@@ -13996,6 +14077,10 @@
"key": "value"
}
},
"rating": {
"type": "number",
"example": 4
},
"attendees": {
"type": "array",
"items": {
@@ -14232,6 +14317,10 @@
"key": "value"
}
},
"rating": {
"type": "number",
"example": 4
},
"seatUid": {
"type": "string",
"example": "3be561a9-31f1-4b8e-aefc-9d9a085f0dd1"
@@ -14362,6 +14451,10 @@
"key": "value"
}
},
"rating": {
"type": "number",
"example": 4
},
"seatUid": {
"type": "string",
"example": "3be561a9-31f1-4b8e-aefc-9d9a085f0dd1"
@@ -14531,6 +14624,10 @@
"key": "value"
}
},
"rating": {
"type": "number",
"example": 4
},
"attendees": {
"type": "array",
"items": {
@@ -14656,6 +14753,10 @@
"key": "value"
}
},
"rating": {
"type": "number",
"example": 4
},
"attendees": {
"type": "array",
"items": {