mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Allow adding category network ids
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user