add real data to ai

This commit is contained in:
Danel Kungla
2025-09-23 14:27:41 +03:00
parent 258e18e6a6
commit 4962ba8ec2
10 changed files with 152 additions and 87 deletions

View File

@@ -764,8 +764,8 @@ export type Database = {
norm_upper?: number | null
norm_upper_included?: boolean | null
original_response_element: Json
response_time: string | null
response_value: number | null
response_time?: string | null
response_value?: number | null
response_value_is_negative?: boolean | null
response_value_is_within_norm?: boolean | null
status?: string | null
@@ -1335,6 +1335,7 @@ export type Database = {
medipost_private_message_id: string | null
medusa_order_id: string | null
response_xml: string | null
updated_at: string | null
xml: string | null
}
Insert: {
@@ -1347,6 +1348,7 @@ export type Database = {
medipost_private_message_id?: string | null
medusa_order_id?: string | null
response_xml?: string | null
updated_at?: string | null
xml?: string | null
}
Update: {
@@ -1359,6 +1361,7 @@ export type Database = {
medipost_private_message_id?: string | null
medusa_order_id?: string | null
response_xml?: string | null
updated_at?: string | null
xml?: string | null
}
Relationships: []
@@ -2030,6 +2033,18 @@ export type Database = {
personal_code: string
}[]
}
get_latest_analysis_response_elements_for_current_user: {
Args: { p_user_id: string }
Returns: {
analysis_name: string
analysis_name_lab: string
norm_lower: number
norm_status: number
norm_upper: number
response_time: string
response_value: number
}[]
}
get_latest_medipost_dispatch_state_for_order: {
Args: { medusa_order_id: string }
Returns: {