Add support for sorting categories

This commit is contained in:
Jonas Lochmann
2020-02-10 01:00:00 +01:00
parent 62d39a8fdd
commit 6fc9597d20
11 changed files with 213 additions and 7 deletions
+25
View File
@@ -839,6 +839,28 @@ const definitions = {
"type"
]
},
"SerializedUpdateCategorySortingAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"UPDATE_CATEGORY_SORTING"
]
},
"categoryIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"categoryIds",
"type"
]
},
"SerializedUpdateCategoryTemporarilyBlockedAction": {
"type": "object",
"properties": {
@@ -1699,6 +1721,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
{
"$ref": "#/definitions/SerializedUpdateCategoryBlockedTimesAction"
},
{
"$ref": "#/definitions/SerializedUpdateCategorySortingAction"
},
{
"$ref": "#/definitions/SerializedUpdateCategoryTemporarilyBlockedAction"
},