Merge branch 'main' into MED-85
This commit is contained in:
@@ -108,6 +108,90 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
medipost_dispatch: {
|
||||
Row: {
|
||||
changed_by: string | null
|
||||
created_at: string
|
||||
error_message: string | null
|
||||
id: number
|
||||
is_medipost_error: boolean
|
||||
is_success: boolean
|
||||
medusa_order_id: string
|
||||
}
|
||||
Insert: {
|
||||
changed_by?: string | null
|
||||
created_at?: string
|
||||
error_message?: string | null
|
||||
id?: number
|
||||
is_medipost_error: boolean
|
||||
is_success: boolean
|
||||
medusa_order_id: string
|
||||
}
|
||||
Update: {
|
||||
changed_by?: string | null
|
||||
created_at?: string
|
||||
error_message?: string | null
|
||||
id?: number
|
||||
is_medipost_error?: boolean
|
||||
is_success?: boolean
|
||||
medusa_order_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
medusa_action: {
|
||||
Row: {
|
||||
action: string
|
||||
created_at: string
|
||||
id: number
|
||||
medusa_user_id: string
|
||||
page: string | null
|
||||
user_email: string
|
||||
}
|
||||
Insert: {
|
||||
action: string
|
||||
created_at?: string
|
||||
id?: number
|
||||
medusa_user_id: string
|
||||
page?: string | null
|
||||
user_email: string
|
||||
}
|
||||
Update: {
|
||||
action?: string
|
||||
created_at?: string
|
||||
id?: number
|
||||
medusa_user_id?: string
|
||||
page?: string | null
|
||||
user_email?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
notification_entries: {
|
||||
Row: {
|
||||
action: string
|
||||
comment: string | null
|
||||
created_at: string
|
||||
id: number
|
||||
related_record_key: string | null
|
||||
status: Database["audit"]["Enums"]["action_status"]
|
||||
}
|
||||
Insert: {
|
||||
action: string
|
||||
comment?: string | null
|
||||
created_at?: string
|
||||
id?: number
|
||||
related_record_key?: string | null
|
||||
status: Database["audit"]["Enums"]["action_status"]
|
||||
}
|
||||
Update: {
|
||||
action?: string
|
||||
comment?: string | null
|
||||
created_at?: string
|
||||
id?: number
|
||||
related_record_key?: string | null
|
||||
status?: Database["audit"]["Enums"]["action_status"]
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
page_views: {
|
||||
Row: {
|
||||
account_id: string
|
||||
@@ -204,28 +288,6 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
medusa_action: {
|
||||
Row: {
|
||||
id: number
|
||||
medusa_user_id: string
|
||||
user_email: string
|
||||
action: string
|
||||
page: string
|
||||
created_at: string
|
||||
}
|
||||
Insert: {
|
||||
medusa_user_id: string
|
||||
user_email: string
|
||||
action: string
|
||||
page: string
|
||||
}
|
||||
Update: {
|
||||
medusa_user_id?: string
|
||||
user_email?: string
|
||||
action?: string
|
||||
page?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
Views: {
|
||||
[_ in never]: never
|
||||
@@ -234,6 +296,7 @@ export type Database = {
|
||||
[_ in never]: never
|
||||
}
|
||||
Enums: {
|
||||
action_status: "SUCCESS" | "FAIL"
|
||||
doctor_page_view_action:
|
||||
| "VIEW_ANALYSIS_RESULTS"
|
||||
| "VIEW_DASHBOARD"
|
||||
@@ -332,14 +395,14 @@ export type Database = {
|
||||
id: string
|
||||
is_personal_account: boolean
|
||||
last_name: string | null
|
||||
medusa_account_id: string | null
|
||||
name: string
|
||||
personal_code: string | null
|
||||
phone: string | null
|
||||
picture_url: string | null
|
||||
preferred_locale: Database["medreport"]["Enums"]["locale"] | null
|
||||
primary_owner_user_id: string
|
||||
public_data: Json
|
||||
slug: string | null
|
||||
medusa_account_id: string | null
|
||||
updated_at: string | null
|
||||
updated_by: string | null
|
||||
}
|
||||
@@ -354,14 +417,14 @@ export type Database = {
|
||||
id?: string
|
||||
is_personal_account?: boolean
|
||||
last_name?: string | null
|
||||
medusa_account_id?: string | null
|
||||
name: string
|
||||
personal_code?: string | null
|
||||
phone?: string | null
|
||||
picture_url?: string | null
|
||||
preferred_locale?: Database["medreport"]["Enums"]["locale"] | null
|
||||
primary_owner_user_id?: string
|
||||
public_data?: Json
|
||||
slug?: string | null
|
||||
medusa_account_id?: string | null
|
||||
updated_at?: string | null
|
||||
updated_by?: string | null
|
||||
}
|
||||
@@ -376,14 +439,14 @@ export type Database = {
|
||||
id?: string
|
||||
is_personal_account?: boolean
|
||||
last_name?: string | null
|
||||
medusa_account_id?: string | null
|
||||
name?: string
|
||||
personal_code?: string | null
|
||||
phone?: string | null
|
||||
picture_url?: string | null
|
||||
preferred_locale?: Database["medreport"]["Enums"]["locale"] | null
|
||||
primary_owner_user_id?: string
|
||||
public_data?: Json
|
||||
slug?: string | null
|
||||
medusa_account_id?: string | null
|
||||
updated_at?: string | null
|
||||
updated_by?: string | null
|
||||
}
|
||||
@@ -396,6 +459,7 @@ export type Database = {
|
||||
created_at: string
|
||||
created_by: string | null
|
||||
has_seen_confirmation: boolean
|
||||
id: string
|
||||
updated_at: string
|
||||
updated_by: string | null
|
||||
user_id: string
|
||||
@@ -406,6 +470,7 @@ export type Database = {
|
||||
created_at?: string
|
||||
created_by?: string | null
|
||||
has_seen_confirmation?: boolean
|
||||
id?: string
|
||||
updated_at?: string
|
||||
updated_by?: string | null
|
||||
user_id: string
|
||||
@@ -416,6 +481,7 @@ export type Database = {
|
||||
created_at?: string
|
||||
created_by?: string | null
|
||||
has_seen_confirmation?: boolean
|
||||
id?: string
|
||||
updated_at?: string
|
||||
updated_by?: string | null
|
||||
user_id?: string
|
||||
@@ -1829,12 +1895,13 @@ export type Database = {
|
||||
id: string
|
||||
is_personal_account: boolean
|
||||
last_name: string | null
|
||||
medusa_account_id: string | null
|
||||
name: string
|
||||
personal_code: string | null
|
||||
phone: string | null
|
||||
picture_url: string | null
|
||||
preferred_locale: Database["medreport"]["Enums"]["locale"] | null
|
||||
primary_owner_user_id: string
|
||||
public_data: Json
|
||||
slug: string | null
|
||||
updated_at: string | null
|
||||
updated_by: string | null
|
||||
@@ -1867,6 +1934,7 @@ export type Database = {
|
||||
primary_owner_user_id: string
|
||||
name: string
|
||||
email: string
|
||||
personal_code: string
|
||||
picture_url: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
@@ -1884,10 +1952,27 @@ export type Database = {
|
||||
account_id: string
|
||||
}[]
|
||||
}
|
||||
get_latest_medipost_dispatch_state_for_order: {
|
||||
Args: {
|
||||
medusa_order_id: string
|
||||
}
|
||||
Returns: {
|
||||
has_success: boolean
|
||||
action_date: string
|
||||
}
|
||||
}
|
||||
get_medipost_dispatch_tries: {
|
||||
Args: { p_medusa_order_id: string }
|
||||
Returns: number
|
||||
}
|
||||
get_nonce_status: {
|
||||
Args: { p_id: string }
|
||||
Returns: Json
|
||||
}
|
||||
get_order_possible_actions: {
|
||||
Args: { p_medusa_order_id: string }
|
||||
Returns: Json
|
||||
}
|
||||
get_upper_system_role: {
|
||||
Args: Record<PropertyKey, never>
|
||||
Returns: string
|
||||
@@ -1968,6 +2053,10 @@ export type Database = {
|
||||
Args: { account_id: string; user_id: string }
|
||||
Returns: boolean
|
||||
}
|
||||
medipost_retry_dispatch: {
|
||||
Args: { order_id: string }
|
||||
Returns: Json
|
||||
}
|
||||
revoke_nonce: {
|
||||
Args: { p_id: string; p_reason?: string }
|
||||
Returns: boolean
|
||||
@@ -2088,21 +2177,6 @@ export type Database = {
|
||||
}
|
||||
Returns: Json
|
||||
}
|
||||
medipost_retry_dispatch: {
|
||||
Args: {
|
||||
order_id: string
|
||||
}
|
||||
Returns: {
|
||||
success: boolean
|
||||
error: string | null
|
||||
}
|
||||
}
|
||||
get_medipost_dispatch_tries: {
|
||||
Args: {
|
||||
p_medusa_order_id: string
|
||||
}
|
||||
Returns: number
|
||||
}
|
||||
sync_analysis_results: {
|
||||
}
|
||||
send_medipost_test_response_for_order: {
|
||||
@@ -2118,15 +2192,6 @@ export type Database = {
|
||||
success: boolean
|
||||
}
|
||||
}
|
||||
get_latest_medipost_dispatch_state_for_order: {
|
||||
Args: {
|
||||
medusa_order_id: string
|
||||
}
|
||||
Returns: {
|
||||
has_success: boolean
|
||||
action_date: string
|
||||
}
|
||||
}
|
||||
}
|
||||
Enums: {
|
||||
analysis_feedback_status: "STARTED" | "DRAFT" | "COMPLETED"
|
||||
@@ -2148,6 +2213,7 @@ export type Database = {
|
||||
| "invites.manage"
|
||||
application_role: "user" | "doctor" | "super_admin"
|
||||
billing_provider: "stripe" | "lemon-squeezy" | "paddle" | "montonio"
|
||||
locale: "en" | "et" | "ru"
|
||||
notification_channel: "in_app" | "email"
|
||||
notification_type: "info" | "warning" | "error"
|
||||
payment_status: "pending" | "succeeded" | "failed"
|
||||
@@ -8014,6 +8080,7 @@ export type CompositeTypes<
|
||||
export const Constants = {
|
||||
audit: {
|
||||
Enums: {
|
||||
action_status: ["SUCCESS", "FAIL"],
|
||||
doctor_page_view_action: [
|
||||
"VIEW_ANALYSIS_RESULTS",
|
||||
"VIEW_DASHBOARD",
|
||||
@@ -8051,6 +8118,7 @@ export const Constants = {
|
||||
],
|
||||
application_role: ["user", "doctor", "super_admin"],
|
||||
billing_provider: ["stripe", "lemon-squeezy", "paddle", "montonio"],
|
||||
locale: ["en", "et", "ru"],
|
||||
notification_channel: ["in_app", "email"],
|
||||
notification_type: ["info", "warning", "error"],
|
||||
payment_status: ["pending", "succeeded", "failed"],
|
||||
|
||||
Reference in New Issue
Block a user