Add child task support

This commit is contained in:
Jonas Lochmann
2020-11-16 01:00:00 +01:00
parent 020fe0aea6
commit d67b7a7619
73 changed files with 2864 additions and 88 deletions
@@ -21,6 +21,9 @@
{
"$ref": "#/definitions/SerializedDeleteCategoryAction"
},
{
"$ref": "#/definitions/SerializedDeleteChildTaskAction"
},
{
"$ref": "#/definitions/SerializedDeleteTimeLimitRuleAction"
},
@@ -45,6 +48,9 @@
{
"$ref": "#/definitions/SerializedResetParentBlockedTimesAction"
},
{
"$ref": "#/definitions/SerializedReviewChildTaskAction"
},
{
"$ref": "#/definitions/SerializedSetCategoryExtraTimeAction"
},
@@ -108,6 +114,9 @@
{
"$ref": "#/definitions/SerializedUpdateCategoryTitleAction"
},
{
"$ref": "#/definitions/SerializedUpdateChildTaskAction"
},
{
"$ref": "#/definitions/SerializedUpdateDeviceNameAction"
},
@@ -394,6 +403,26 @@
],
"title": "SerializedDeleteCategoryAction"
},
"SerializedDeleteChildTaskAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"DELETE_CHILD_TASK"
]
},
"taskId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"taskId",
"type"
],
"title": "SerializedDeleteChildTaskAction"
},
"SerializedDeleteTimeLimitRuleAction": {
"type": "object",
"properties": {
@@ -611,6 +640,34 @@
],
"title": "SerializedResetParentBlockedTimesAction"
},
"SerializedReviewChildTaskAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"REVIEW_CHILD_TASK"
]
},
"taskId": {
"type": "string"
},
"ok": {
"type": "boolean"
},
"time": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"ok",
"taskId",
"time",
"type"
],
"title": "SerializedReviewChildTaskAction"
},
"SerializedSetCategoryExtraTimeAction": {
"type": "object",
"properties": {
@@ -1126,6 +1183,42 @@
],
"title": "SerializedUpdateCategoryTitleAction"
},
"SerializedUpdateChildTaskAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"UPDATE_CHILD_TASK"
]
},
"isNew": {
"type": "boolean"
},
"taskId": {
"type": "string"
},
"categoryId": {
"type": "string"
},
"taskTitle": {
"type": "string"
},
"extraTimeDuration": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"categoryId",
"extraTimeDuration",
"isNew",
"taskId",
"taskTitle",
"type"
],
"title": "SerializedUpdateChildTaskAction"
},
"SerializedUpdateDeviceNameAction": {
"type": "object",
"properties": {