MED-147: add doctor actions logging (#59)
* MED-147: add doctor actions logging * enum casing
This commit is contained in:
@@ -41,6 +41,7 @@ export const selectJobAction = doctorAction(
|
||||
} catch (e) {
|
||||
logger.error('Failed to select job', e);
|
||||
if (e instanceof Error) {
|
||||
revalidateDoctorAnalysis();
|
||||
return {
|
||||
success: false,
|
||||
reason:
|
||||
|
||||
@@ -42,6 +42,33 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
doctor_page_views: {
|
||||
Row: {
|
||||
action: Database["audit"]["Enums"]["doctor_page_view_action"]
|
||||
created_at: string
|
||||
data_owner_user_id: string | null
|
||||
id: number
|
||||
viewed_record_key: string | null
|
||||
viewer_user_id: string
|
||||
}
|
||||
Insert: {
|
||||
action: Database["audit"]["Enums"]["doctor_page_view_action"]
|
||||
created_at?: string
|
||||
data_owner_user_id?: string | null
|
||||
id?: number
|
||||
viewed_record_key?: string | null
|
||||
viewer_user_id: string
|
||||
}
|
||||
Update: {
|
||||
action?: Database["audit"]["Enums"]["doctor_page_view_action"]
|
||||
created_at?: string
|
||||
data_owner_user_id?: string | null
|
||||
id?: number
|
||||
viewed_record_key?: string | null
|
||||
viewer_user_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
log_entries: {
|
||||
Row: {
|
||||
changed_at: string
|
||||
@@ -182,6 +209,12 @@ export type Database = {
|
||||
[_ in never]: never
|
||||
}
|
||||
Enums: {
|
||||
doctor_page_view_action:
|
||||
| "VIEW_ANALYSIS_RESULTS"
|
||||
| "VIEW_DASHBOARD"
|
||||
| "VIEW_OPEN_JOBS"
|
||||
| "VIEW_OWN_JOBS"
|
||||
| "VIEW_DONE_JOBS"
|
||||
request_status: "SUCCESS" | "FAIL"
|
||||
sync_status: "SUCCESS" | "FAIL"
|
||||
}
|
||||
@@ -1778,7 +1811,6 @@ export type Database = {
|
||||
primary_owner_user_id: string
|
||||
name: string
|
||||
email: string
|
||||
personal_code: string
|
||||
picture_url: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
@@ -7887,6 +7919,13 @@ export type CompositeTypes<
|
||||
export const Constants = {
|
||||
audit: {
|
||||
Enums: {
|
||||
doctor_page_view_action: [
|
||||
"VIEW_ANALYSIS_RESULTS",
|
||||
"VIEW_DASHBOARD",
|
||||
"VIEW_OPEN_JOBS",
|
||||
"VIEW_OWN_JOBS",
|
||||
"VIEW_DONE_JOBS",
|
||||
],
|
||||
request_status: ["SUCCESS", "FAIL"],
|
||||
sync_status: ["SUCCESS", "FAIL"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user