Add action to update blocking all notifications flag

This commit is contained in:
Jonas L
2019-03-04 00:00:00 +00:00
parent f7500d19a3
commit a2b07e7b95
6 changed files with 123 additions and 0 deletions
+26
View File
@@ -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"
},