2024-01-10 12:32:25 -05:00
|
|
|
from app.enums import NotificationType
|
2024-01-10 11:18:33 -05:00
|
|
|
|
2018-07-11 17:02:49 +01:00
|
|
|
add_service_data_retention_request = {
|
2022-04-08 17:05:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2018-07-11 17:02:49 +01:00
|
|
|
"description": "POST service data retention schema",
|
|
|
|
|
"title": "Add service data retention for notification type api",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"days_of_retention": {"type": "integer"},
|
2024-02-21 12:35:18 -05:00
|
|
|
"notification_type": {"enum": [NotificationType.SMS, NotificationType.EMAIL]},
|
2018-07-11 17:02:49 +01:00
|
|
|
},
|
2023-08-29 14:54:30 -07:00
|
|
|
"required": ["days_of_retention", "notification_type"],
|
2018-07-11 17:02:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
update_service_data_retention_request = {
|
2022-04-08 17:05:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2018-07-11 17:02:49 +01:00
|
|
|
"description": "POST service data retention schema",
|
|
|
|
|
"title": "Update service data retention for notification type api",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"days_of_retention": {"type": "integer"},
|
|
|
|
|
},
|
2023-08-29 14:54:30 -07:00
|
|
|
"required": ["days_of_retention"],
|
2018-07-11 17:02:49 +01:00
|
|
|
}
|