Add battery limit support

This commit is contained in:
Jonas Lochmann
2020-01-13 17:28:14 +01:00
parent dd18b015f6
commit 50766e804a
10 changed files with 248 additions and 11 deletions
+28
View File
@@ -768,6 +768,31 @@ const definitions = {
"userId"
]
},
"SerializedUpdateCategoryBatteryLimitAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"UPDATE_CATEGORY_BATTERY_LIMIT"
]
},
"categoryId": {
"type": "string"
},
"chargeLimit": {
"type": "number"
},
"mobileLimit": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"categoryId",
"type"
]
},
"SerializedUpdateCategoryBlockAllNotificationsAction": {
"type": "object",
"properties": {
@@ -1619,6 +1644,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
{
"$ref": "#/definitions/SerializedSetUserTimezoneAction"
},
{
"$ref": "#/definitions/SerializedUpdateCategoryBatteryLimitAction"
},
{
"$ref": "#/definitions/SerializedUpdateCategoryBlockAllNotificationsAction"
},