ref: Refactoring

This commit is contained in:
Maksim Eltyshev
2025-11-27 18:24:55 +01:00
parent 7be2343076
commit 54e230d4c1
80 changed files with 252 additions and 159 deletions
+2 -2
View File
@@ -23,10 +23,10 @@
* - name: before
* in: query
* required: false
* description: Pagination cursor (JSON object with id and listChangedAt)
* description: Pagination cursor (JSON object with listChangedAt and id)
* schema:
* type: string
* example: '{"id": "1357158568008091269", "listChangedAt": "2024-01-01T00:00:00.000Z"}'
* example: '{"listChangedAt": "2024-01-01T00:00:00.000Z", "id": "1357158568008091269"}'
* - name: search
* in: query
* required: false
+1 -1
View File
@@ -87,7 +87,7 @@ module.exports = {
},
type: {
type: 'string',
isIn: List.FINITE_TYPES,
isIn: List.KANBAN_TYPES,
required: true,
},
position: {
+1 -1
View File
@@ -100,7 +100,7 @@ module.exports = {
throw Errors.LIST_NOT_FOUND; // Forbidden
}
if (!sails.helpers.lists.isFinite(list)) {
if (!sails.helpers.lists.isKanban(list)) {
throw Errors.NOT_ENOUGH_RIGHTS;
}
+2 -2
View File
@@ -97,7 +97,7 @@ module.exports = {
boardId: idInput,
type: {
type: 'string',
isIn: List.FINITE_TYPES,
isIn: List.KANBAN_TYPES,
},
position: {
type: 'number',
@@ -146,7 +146,7 @@ module.exports = {
throw Errors.LIST_NOT_FOUND; // Forbidden
}
if (!sails.helpers.lists.isFinite(list)) {
if (!sails.helpers.lists.isKanban(list)) {
throw Errors.NOT_ENOUGH_RIGHTS;
}
+1 -1
View File
@@ -14,7 +14,7 @@
* operationId: getUsers
* responses:
* 200:
* description: List of users retrieved successfully
* description: Users retrieved successfully
* content:
* application/json:
* schema:
+1 -1
View File
@@ -14,7 +14,7 @@
* operationId: getWebhooks
* responses:
* 200:
* description: List of webhooks retrieved successfully
* description: Webhooks retrieved successfully
* content:
* application/json:
* schema: