Merge branch 'main' into MED-85

This commit is contained in:
2025-08-27 08:31:26 +03:00
55 changed files with 1356 additions and 547 deletions

View File

@@ -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
@@ -204,6 +231,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"
}
@@ -574,6 +607,7 @@ export type Database = {
analysis_element_original_id: string
analysis_name: string | null
analysis_response_id: number
comment: string | null
created_at: string
id: number
norm_lower: number | null
@@ -591,6 +625,7 @@ export type Database = {
analysis_element_original_id: string
analysis_name?: string | null
analysis_response_id: number
comment?: string | null
created_at?: string
id?: number
norm_lower?: number | null
@@ -608,6 +643,7 @@ export type Database = {
analysis_element_original_id?: string
analysis_name?: string | null
analysis_response_id?: number
comment?: string | null
created_at?: string
id?: number
norm_lower?: number | null
@@ -1748,7 +1784,9 @@ export type Database = {
Returns: Json
}
create_team_account: {
Args: { account_name: string; new_personal_code: string }
Args:
| { account_name: string }
| { account_name: string; new_personal_code: string }
Returns: {
application_role: Database["medreport"]["Enums"]["application_role"]
city: string | null
@@ -1935,6 +1973,22 @@ export type Database = {
}
Returns: undefined
}
update_analysis_order_status: {
Args: {
order_id: number
medusa_order_id_param: string
status_param: Database["medreport"]["Enums"]["analysis_order_status"]
}
Returns: {
analysis_element_ids: number[] | null
analysis_ids: number[] | null
created_at: string
id: number
medusa_order_id: string
status: Database["medreport"]["Enums"]["analysis_order_status"]
user_id: string
}
}
upsert_order: {
Args: {
target_account_id: string
@@ -7905,6 +7959,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"],
},

View File

@@ -21,6 +21,7 @@ export function useSignUpWithEmailAndPassword() {
const response = await client.auth.signUp({
...credentials,
options: {
emailRedirectTo,
captchaToken,
},
});