refactor: Update time planning feature

- Update checksums for browser compatibility
- Add script to kill running server process
- Refactor time planning structure and handling
- Adjust database schema and type definitions accordingly
This commit is contained in:
Aron Malcher 2024-03-15 10:59:41 +01:00
parent faa42f0899
commit 3c404ab5fa
Signed by: aronmal
GPG key ID: 816B7707426FC612
8 changed files with 130 additions and 146 deletions

View file

@ -569,54 +569,7 @@
"required": ["timePlanning"],
"properties": {
"timePlanning": {
"type": "object",
"required": [
"enabled",
"channelId",
"targetMinute",
"targetHour",
"targetDay",
"roles"
],
"properties": {
"enabled": {
"type": "boolean"
},
"channelId": {
"$ref": "#/components/schemas/idOrNull"
},
"targetMinute": {
"type": "number",
"example": 0
},
"targetHour": {
"type": "number",
"example": 1
},
"targetDay": {
"type": "number",
"example": 1
},
"roles": {
"type": "object",
"required": [
"enabled",
"isAvailableRoleId",
"wantsToBeNotifieRoledId"
],
"properties": {
"enabled": {
"type": "boolean"
},
"isAvailableRoleId": {
"$ref": "#/components/schemas/idOrNull"
},
"wantsToBeNotifieRoledId": {
"$ref": "#/components/schemas/idOrNull"
}
}
}
}
"$ref": "#/components/schemas/timePlanning"
}
}
},
@ -674,28 +627,47 @@
"timePlanning": {
"type": "object",
"required": [
"enabled",
"channelId",
"rolesEnabled",
"isAvailableRoleId",
"wantsToBeNotifieRoledId",
"targetMinute",
"targetHour",
"targetDay",
"roles",
"messageIds"
],
"properties": {
"enabled": {
"type": "boolean"
},
"channelId": {
"$ref": "#/components/schemas/idOrNull"
},
"rolesEnabled": {
"type": "boolean"
"targetMinute": {
"type": "number",
"example": 0
},
"isAvailableRoleId": {
"$ref": "#/components/schemas/idOrNull"
"targetHour": {
"type": "number",
"example": 1
},
"wantsToBeNotifieRoledId": {
"$ref": "#/components/schemas/idOrNull"
"targetDay": {
"type": "number",
"example": 1
},
"roles": {
"type": "object",
"required": [
"enabled",
"isAvailableRoleId",
"wantsToBeNotifieRoledId"
],
"properties": {
"enabled": {
"type": "boolean"
},
"isAvailableRoleId": {
"$ref": "#/components/schemas/idOrNull"
},
"wantsToBeNotifieRoledId": {
"$ref": "#/components/schemas/idOrNull"
}
}
},
"messageIds": {
"type": "object",