add typegen and minor style fixes
This commit is contained in:
@@ -341,6 +341,7 @@ export type Database = {
|
||||
Row: {
|
||||
account_id: string
|
||||
amount: number
|
||||
benefit_distribution_schedule_id: string | null
|
||||
created_at: string
|
||||
created_by: string | null
|
||||
description: string | null
|
||||
@@ -348,14 +349,15 @@ export type Database = {
|
||||
expires_at: string | null
|
||||
id: string
|
||||
is_active: boolean
|
||||
is_analysis_order: boolean
|
||||
is_analysis_package_order: boolean
|
||||
is_analysis_order: boolean | null
|
||||
is_analysis_package_order: boolean | null
|
||||
reference_id: string | null
|
||||
source_company_id: string | null
|
||||
}
|
||||
Insert: {
|
||||
account_id: string
|
||||
amount: number
|
||||
benefit_distribution_schedule_id?: string | null
|
||||
created_at?: string
|
||||
created_by?: string | null
|
||||
description?: string | null
|
||||
@@ -363,14 +365,15 @@ export type Database = {
|
||||
expires_at?: string | null
|
||||
id?: string
|
||||
is_active?: boolean
|
||||
is_analysis_order?: boolean
|
||||
is_analysis_package_order?: boolean
|
||||
is_analysis_order?: boolean | null
|
||||
is_analysis_package_order?: boolean | null
|
||||
reference_id?: string | null
|
||||
source_company_id?: string | null
|
||||
}
|
||||
Update: {
|
||||
account_id?: string
|
||||
amount?: number
|
||||
benefit_distribution_schedule_id?: string | null
|
||||
created_at?: string
|
||||
created_by?: string | null
|
||||
description?: string | null
|
||||
@@ -378,8 +381,8 @@ export type Database = {
|
||||
expires_at?: string | null
|
||||
id?: string
|
||||
is_active?: boolean
|
||||
is_analysis_order?: boolean
|
||||
is_analysis_package_order?: boolean
|
||||
is_analysis_order?: boolean | null
|
||||
is_analysis_package_order?: boolean | null
|
||||
reference_id?: string | null
|
||||
source_company_id?: string | null
|
||||
}
|
||||
@@ -2214,6 +2217,8 @@ export type Database = {
|
||||
p_account_id: string
|
||||
p_amount: number
|
||||
p_description: string
|
||||
p_is_analysis_order?: boolean
|
||||
p_is_analysis_package_order?: boolean
|
||||
p_reference_id?: string
|
||||
}
|
||||
Returns: boolean
|
||||
@@ -2271,14 +2276,6 @@ export type Database = {
|
||||
updated_by: string | null
|
||||
}
|
||||
}
|
||||
distribute_health_benefits: {
|
||||
Args: {
|
||||
p_benefit_amount: number
|
||||
p_benefit_occurrence?: string
|
||||
p_company_id: string
|
||||
}
|
||||
Returns: undefined
|
||||
}
|
||||
get_account_balance: {
|
||||
Args: { p_account_id: string }
|
||||
Returns: number
|
||||
@@ -2317,14 +2314,12 @@ export type Database = {
|
||||
}[]
|
||||
}
|
||||
get_benefits_usages_for_company_members: {
|
||||
Args: {
|
||||
p_account_id: string
|
||||
}
|
||||
Args: { p_account_id: string }
|
||||
Returns: {
|
||||
personal_account_id: string
|
||||
benefit_amount: number
|
||||
benefit_unused_amount: number
|
||||
}
|
||||
personal_account_id: string
|
||||
}[]
|
||||
}
|
||||
get_config: {
|
||||
Args: Record<PropertyKey, never>
|
||||
@@ -2530,6 +2525,10 @@ export type Database = {
|
||||
p_benefit_occurrence: string
|
||||
p_company_id: string
|
||||
}
|
||||
Returns: string
|
||||
}
|
||||
upsert_health_benefits: {
|
||||
Args: { p_benefit_distribution_schedule_id: string }
|
||||
Returns: undefined
|
||||
}
|
||||
upsert_order: {
|
||||
@@ -2619,6 +2618,7 @@ export type Database = {
|
||||
| "settings.manage"
|
||||
| "members.manage"
|
||||
| "invites.manage"
|
||||
| "benefit.manage"
|
||||
application_role: "user" | "doctor" | "super_admin"
|
||||
billing_provider: "stripe" | "lemon-squeezy" | "paddle" | "montonio"
|
||||
connected_online_order_status:
|
||||
@@ -8540,6 +8540,7 @@ export const Constants = {
|
||||
"settings.manage",
|
||||
"members.manage",
|
||||
"invites.manage",
|
||||
"benefit.manage",
|
||||
],
|
||||
application_role: ["user", "doctor", "super_admin"],
|
||||
billing_provider: ["stripe", "lemon-squeezy", "paddle", "montonio"],
|
||||
|
||||
Reference in New Issue
Block a user