mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 07:21:13 -05:00
Made enums.py for all the enums to avoid cyclic imports.
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
@@ -6,7 +6,8 @@ from app.dao.service_sms_sender_dao import dao_get_service_sms_senders_by_id
|
||||
from app.dao.services_dao import dao_fetch_service_by_id
|
||||
from app.dao.templates_dao import dao_get_template_by_id_and_service_id
|
||||
from app.dao.users_dao import get_user_by_id
|
||||
from app.models import KEY_TYPE_NORMAL, PRIORITY, NotificationType
|
||||
from app.enums import NotificationType
|
||||
from app.models import KEY_TYPE_NORMAL, PRIORITY
|
||||
from app.notifications.process_notifications import (
|
||||
persist_notification,
|
||||
send_notification_to_queue,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from app.models import NotificationType
|
||||
from app.enums import NotificationType
|
||||
|
||||
add_service_data_retention_request = {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
@@ -7,7 +7,9 @@ add_service_data_retention_request = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"days_of_retention": {"type": "integer"},
|
||||
"notification_type": {"enum": [NotificationType.SMS.value, NotificationType.EMAIL.value]},
|
||||
"notification_type": {
|
||||
"enum": [NotificationType.SMS.value, NotificationType.EMAIL.value]
|
||||
},
|
||||
},
|
||||
"required": ["days_of_retention", "notification_type"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user