Add new API to increment the used time

This commit is contained in:
Jonas Lochmann
2020-01-27 01:00:00 +01:00
parent f4046e0fc3
commit b55c375506
8 changed files with 257 additions and 4 deletions
+46
View File
@@ -1152,6 +1152,49 @@ const definitions = {
"type"
]
},
"SerializedAddUsedTimeActionVersion2": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"ADD_USED_TIME_V2"
]
},
"d": {
"type": "number"
},
"i": {
"type": "array",
"items": {
"type": "object",
"properties": {
"categoryId": {
"type": "string"
},
"tta": {
"type": "number"
},
"etts": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"categoryId",
"etts",
"tta"
]
}
}
},
"additionalProperties": false,
"required": [
"d",
"i",
"type"
]
},
"SerializedRemoveInstalledAppsAction": {
"type": "object",
"properties": {
@@ -1692,6 +1735,9 @@ export const isSerializedAppLogicAction: (value: object) => value is SerializedA
{
"$ref": "#/definitions/SerializedAddUsedTimeAction"
},
{
"$ref": "#/definitions/SerializedAddUsedTimeActionVersion2"
},
{
"$ref": "#/definitions/SerializedRemoveInstalledAppsAction"
},