File tree Expand file tree Collapse file tree 2 files changed +38
-2
lines changed
services/web/server/src/simcore_service_webserver Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -12471,6 +12471,22 @@ components:
1247112471 read :
1247212472 title : Read
1247312473 type : boolean
12474+ resource_id :
12475+ title : Resource ID
12476+ anyOf :
12477+ - enum :
12478+ - " "
12479+ type : string
12480+ - type : string
12481+ default : " "
12482+ user_from_id :
12483+ title : User ID of the one creating it
12484+ anyOf :
12485+ - enum :
12486+ - None
12487+ type : integer
12488+ - type : integer
12489+ default : None
1247412490 UserNotificationCreate :
1247512491 title : UserNotificationCreate
1247612492 required :
@@ -12510,6 +12526,22 @@ components:
1251012526 type : string
1251112527 - type : string
1251212528 default : UNDEFINED
12529+ resource_id :
12530+ title : Resource ID
12531+ anyOf :
12532+ - enum :
12533+ - " "
12534+ type : string
12535+ - type : string
12536+ default : " "
12537+ user_from_id :
12538+ title : User ID of the one creating it
12539+ anyOf :
12540+ - enum :
12541+ - None
12542+ type : integer
12543+ - type : integer
12544+ default : None
1251312545 UserNotificationPatch :
1251412546 title : UserNotificationPatch
1251512547 required :
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ class NotificationCategory(StrAutoEnum):
2626
2727class BaseUserNotification (BaseModel ):
2828 user_id : UserID
29- user_from_id : Literal [None ] | UserID = None
3029 category : NotificationCategory
3130 actionable_path : str
32- resource_id : Literal ["" ] | str = ""
3331 title : str
3432 text : str
3533 date : datetime
3634 product : Literal ["UNDEFINED" ] | ProductName = "UNDEFINED"
35+ resource_id : Literal ["" ] | str = ""
36+ user_from_id : Literal [None ] | UserID = None
3737
3838 @validator ("category" , pre = True )
3939 @classmethod
@@ -108,6 +108,8 @@ class Config:
108108 "date" : "2023-02-23T16:28:13.122Z" ,
109109 "product" : "s4l" ,
110110 "read" : False ,
111+ "resource_id" : "3fb96d89-ff5d-4d27-b5aa-d20d46e20e12" ,
112+ "user_from_id" : "2" ,
111113 },
112114 {
113115 "id" : "390053c9-3931-40e1-839f-585268f6fd3e" ,
@@ -119,6 +121,8 @@ class Config:
119121 "date" : "2023-09-29T16:28:13.122Z" ,
120122 "product" : "tis" ,
121123 "read" : False ,
124+ "resource_id" : "3fb96d89-ff5d-4d27-b5aa-d20d46e20e13" ,
125+ "user_from_id" : "2" ,
122126 },
123127 ]
124128 }
You can’t perform that action at this time.
0 commit comments