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 authored and GitHub committed 2025-02-21 13:38:00 +05:30
1 parent 0b3aa4fd34
commit e6daed762b
19 files changed
+714

No files matched your search

+92
View File
@@ -2557,6 +2557,37 @@
]
}
},
"/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",
@@ -14323,6 +14354,67 @@
"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": {