Add new actions for activity level blocking

This commit is contained in:
Jonas L
2019-04-15 00:00:00 +00:00
parent 7fb3f9fb5b
commit 0af0ff961e
11 changed files with 408 additions and 0 deletions
+97
View File
@@ -861,6 +861,29 @@ const definitions = {
"type"
]
},
"SerializedUpdateEnableActivityLevelBlockingAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"UPDATE_ENABLE_ACTIVITY_LEVEL_BLOCKING"
]
},
"deviceId": {
"type": "string"
},
"enable": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"deviceId",
"enable",
"type"
]
},
"SerialiizedUpdateNetworkTimeVerificationAction": {
"type": "object",
"properties": {
@@ -1084,6 +1107,74 @@ const definitions = {
"type"
]
},
"SerializedUpdateAppActivitiesAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"UPDATE_APP_ACTIVITIES"
]
},
"removed": {
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
}
],
"minItems": 2,
"additionalItems": {
"anyOf": [
{
"type": "string"
},
{
"type": "string"
}
]
}
}
},
"updatedOrAdded": {
"type": "array",
"items": {
"$ref": "#/definitions/SerializedAppActivityItem"
}
}
},
"additionalProperties": false,
"required": [
"removed",
"type",
"updatedOrAdded"
]
},
"SerializedAppActivityItem": {
"type": "object",
"properties": {
"p": {
"type": "string"
},
"c": {
"type": "string"
},
"t": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"c",
"p",
"t"
]
},
"SerializedUpdateDeviceStatusAction": {
"type": "object",
"properties": {
@@ -1479,6 +1570,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
{
"$ref": "#/definitions/SerializedUpdateDeviceNameAction"
},
{
"$ref": "#/definitions/SerializedUpdateEnableActivityLevelBlockingAction"
},
{
"$ref": "#/definitions/SerialiizedUpdateNetworkTimeVerificationAction"
},
@@ -1509,6 +1603,9 @@ export const isSerializedAppLogicAction: (value: object) => value is SerializedA
{
"$ref": "#/definitions/SerialiezdTriedDisablingDeviceAdminAction"
},
{
"$ref": "#/definitions/SerializedUpdateAppActivitiesAction"
},
{
"$ref": "#/definitions/SerializedUpdateDeviceStatusAction"
}