Add action to configure category time warnings

This commit is contained in:
Jonas L
2019-06-03 00:00:00 +00:00
parent 46af33f2cd
commit 7cfed5ed4f
7 changed files with 151 additions and 1 deletions
+30
View File
@@ -815,6 +815,33 @@ const definitions = {
"type"
]
},
"SerializedUpdateCategoryTimeWarningsAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"UPDATE_CATEGORY_TIME_WARNINGS"
]
},
"categoryId": {
"type": "string"
},
"enable": {
"type": "boolean"
},
"flags": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"categoryId",
"enable",
"flags",
"type"
]
},
"SerializedUpdateCategoryTitleAction": {
"type": "object",
"properties": {
@@ -1567,6 +1594,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
{
"$ref": "#/definitions/SerializedUpdateCategoryTemporarilyBlockedAction"
},
{
"$ref": "#/definitions/SerializedUpdateCategoryTimeWarningsAction"
},
{
"$ref": "#/definitions/SerializedUpdateCategoryTitleAction"
},