File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
services/web/server/src/simcore_service_webserver Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -13519,6 +13519,7 @@ components:
1351913519 - NEW_ORGANIZATION
1352013520 - STUDY_SHARED
1352113521 - TEMPLATE_SHARED
13522+ - CONVERSATION_NOTIFICATION
1352213523 - ANNOTATION_NOTE
1352313524 - WALLET_SHARED
1352413525 title : NotificationCategory
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class NotificationCategory(StrAutoEnum):
2020 NEW_ORGANIZATION = auto ()
2121 STUDY_SHARED = auto ()
2222 TEMPLATE_SHARED = auto ()
23+ CONVERSATION_NOTIFICATION = auto ()
2324 ANNOTATION_NOTE = auto ()
2425 WALLET_SHARED = auto ()
2526
@@ -41,8 +42,7 @@ def category_to_upper(cls, value: str) -> str:
4142 return value .upper ()
4243
4344
44- class UserNotificationCreate (BaseUserNotification ):
45- ...
45+ class UserNotificationCreate (BaseUserNotification ): ...
4646
4747
4848class UserNotificationPatch (BaseModel ):
@@ -100,6 +100,19 @@ def create_from_request_data(
100100 "product" : "osparc" ,
101101 "read" : False ,
102102 },
103+ {
104+ "id" : "390053c9-3931-40e1-839f-585268f6fd3d" ,
105+ "user_id" : "1" ,
106+ "category" : "CONVERSATION_NOTIFICATION" ,
107+ "actionable_path" : "study/27edd65c-b360-11ed-93d7-02420a000014" ,
108+ "title" : "New notification" ,
109+ "text" : "You were notified in a conversation" ,
110+ "date" : "2023-02-23T16:28:13.122Z" ,
111+ "product" : "s4l" ,
112+ "read" : False ,
113+ "resource_id" : "3fb96d89-ff5d-4d27-b5aa-d20d46e20e12" ,
114+ "user_from_id" : "2" ,
115+ },
103116 {
104117 "id" : "390053c9-3931-40e1-839f-585268f6fd3d" ,
105118 "user_id" : "1" ,
You can’t perform that action at this time.
0 commit comments