mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add support for parent blocked times
This commit is contained in:
@@ -450,6 +450,25 @@ const definitions = {
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedResetParentBlockedTimesAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"RESET_PARENT_BLOCKED_TIMES"
|
||||
]
|
||||
},
|
||||
"parentId": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"parentId",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedSetCategoryExtraTimeAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -942,6 +961,29 @@ const definitions = {
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedUpdateParentBlockedTimesAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"UPDATE_PARENT_BLOCKED_TIMES"
|
||||
]
|
||||
},
|
||||
"parentId": {
|
||||
"type": "string"
|
||||
},
|
||||
"times": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"parentId",
|
||||
"times",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"SerializedUpdateParentNotificationFlagsAction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1535,6 +1577,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
|
||||
{
|
||||
"$ref": "#/definitions/SerializedRenameChildAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedResetParentBlockedTimesAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedSetCategoryExtraTimeAction"
|
||||
},
|
||||
@@ -1598,6 +1643,9 @@ export const isSerializedParentAction: (value: object) => value is SerializedPar
|
||||
{
|
||||
"$ref": "#/definitions/SerialiizedUpdateNetworkTimeVerificationAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedUpdateParentBlockedTimesAction"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/SerializedUpdateParentNotificationFlagsAction"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user