Allow adding category network ids

This commit is contained in:
Jonas Lochmann
2020-08-24 02:00:00 +02:00
parent 9730d13b2e
commit eb6f668b43
34 changed files with 1257 additions and 62 deletions
+75
View File
@@ -119,6 +119,33 @@ const definitions = {
"type"
]
},
"SerializedAddCategoryNetworkIdAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"ADD_CATEGORY_NETWORK_ID"
]
},
"categoryId": {
"type": "string"
},
"itemId": {
"type": "string"
},
"hashedNetworkId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"categoryId",
"hashedNetworkId",
"itemId",
"type"
]
},
"SerializedAddUserAction": {
"type": "object",
"properties": {
@@ -468,6 +495,25 @@ const definitions = {
"type"
]
},
"SerializeResetCategoryNetworkIdsAction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"RESET_CATEGORY_NETWORK_IDS"
]
},
"categoryId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"categoryId",
"type"
]
},
"SerializedResetParentBlockedTimesAction": {
"type": "object",
"properties": {
@@ -1835,6 +1881,12 @@ const definitions = {
},
"sort": {
"type": "number"
},
"networks": {
"type": "array",
"items": {
"$ref": "#/definitions/ServerCategoryNetworkId"
}
}
},
"additionalProperties": false,
@@ -1847,6 +1899,7 @@ const definitions = {
"extraTimeDay",
"mblCharging",
"mblMobile",
"networks",
"parentCategoryId",
"sort",
"tempBlockTime",
@@ -1856,6 +1909,22 @@ const definitions = {
"version"
]
},
"ServerCategoryNetworkId": {
"type": "object",
"properties": {
"itemId": {
"type": "string"
},
"hashedNetworkId": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"hashedNetworkId",
"itemId"
]
},
"ServerUpdatedCategoryAssignedApps": {
"type": "object",
"properties": {
@@ -2327,6 +2396,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
{
"$ref": "#/definitions/SerializedAddCategoryAppsAction"
},
{
"$ref": "#/definitions/SerializedAddCategoryNetworkIdAction"
},
{
"$ref": "#/definitions/SerializedAddUserAction"
},
@@ -2360,6 +2432,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
{
"$ref": "#/definitions/SerializedRenameChildAction"
},
{
"$ref": "#/definitions/SerializeResetCategoryNetworkIdsAction"
},
{
"$ref": "#/definitions/SerializedResetParentBlockedTimesAction"
},