mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add battery limit support
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user