mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add action to update blocking all notifications flag
This commit is contained in:
@@ -740,6 +740,29 @@ const definitions = {
|
||||
"userId"
|
||||
]
|
||||
},
|
||||
"SerializedUpdateCategoryBlockAllNotificationsAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"UPDATE_CATEGORY_BLOCK_ALL_NOTIFICATIONS"
|
||||
]
|
||||
},
|
||||
"categoryId": {
|
||||
"type": "string"
|
||||
},
|
||||
"blocked": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"blocked",
|
||||
"categoryId",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedUpdateCategoryBlockedTimesAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1424,6 +1447,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
|
||||
{
|
||||
"$ref": "#/definitions/SerializedSetUserTimezoneAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedUpdateCategoryBlockAllNotificationsAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedUpdateCategoryBlockedTimesAction"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user