Merge branch 'main' into B2B-30
This commit is contained in:
@@ -48,6 +48,48 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
request_entries: {
|
||||
Row: {
|
||||
comment: string | null
|
||||
created_at: string
|
||||
id: number
|
||||
personal_code: number | null
|
||||
request_api: string
|
||||
request_api_method: string
|
||||
requested_end_date: string | null
|
||||
requested_start_date: string | null
|
||||
service_id: number | null
|
||||
service_provider_id: number | null
|
||||
status: Database["audit"]["Enums"]["request_status"]
|
||||
}
|
||||
Insert: {
|
||||
comment?: string | null
|
||||
created_at?: string
|
||||
id?: number
|
||||
personal_code?: number | null
|
||||
request_api: string
|
||||
request_api_method: string
|
||||
requested_end_date?: string | null
|
||||
requested_start_date?: string | null
|
||||
service_id?: number | null
|
||||
service_provider_id?: number | null
|
||||
status: Database["audit"]["Enums"]["request_status"]
|
||||
}
|
||||
Update: {
|
||||
comment?: string | null
|
||||
created_at?: string
|
||||
id?: number
|
||||
personal_code?: number | null
|
||||
request_api?: string
|
||||
request_api_method?: string
|
||||
requested_end_date?: string | null
|
||||
requested_start_date?: string | null
|
||||
service_id?: number | null
|
||||
service_provider_id?: number | null
|
||||
status?: Database["audit"]["Enums"]["request_status"]
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
sync_entries: {
|
||||
Row: {
|
||||
changed_by_role: string
|
||||
@@ -83,6 +125,7 @@ export type Database = {
|
||||
[_ in never]: never
|
||||
}
|
||||
Enums: {
|
||||
request_status: "SUCCESS" | "FAIL"
|
||||
sync_status: "SUCCESS" | "FAIL"
|
||||
}
|
||||
CompositeTypes: {
|
||||
@@ -116,15 +159,43 @@ export type Database = {
|
||||
}
|
||||
public: {
|
||||
Tables: {
|
||||
account_params: {
|
||||
Row: {
|
||||
account_id: string
|
||||
height: number | null
|
||||
id: string
|
||||
recorded_at: string
|
||||
weight: number | null
|
||||
}
|
||||
Insert: {
|
||||
account_id?: string
|
||||
height?: number | null
|
||||
id?: string
|
||||
recorded_at?: string
|
||||
weight?: number | null
|
||||
}
|
||||
Update: {
|
||||
account_id?: string
|
||||
height?: number | null
|
||||
id?: string
|
||||
recorded_at?: string
|
||||
weight?: number | null
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
accounts: {
|
||||
Row: {
|
||||
city: string | null
|
||||
created_at: string | null
|
||||
created_by: string | null
|
||||
email: string | null
|
||||
has_consent_personal_data: boolean | null
|
||||
id: string
|
||||
is_personal_account: boolean
|
||||
last_name: string | null
|
||||
name: string
|
||||
personal_code: string | null
|
||||
phone: string | null
|
||||
picture_url: string | null
|
||||
primary_owner_user_id: string
|
||||
public_data: Json
|
||||
@@ -133,13 +204,17 @@ export type Database = {
|
||||
updated_by: string | null
|
||||
}
|
||||
Insert: {
|
||||
city?: string | null
|
||||
created_at?: string | null
|
||||
created_by?: string | null
|
||||
email?: string | null
|
||||
has_consent_personal_data?: boolean | null
|
||||
id?: string
|
||||
is_personal_account?: boolean
|
||||
last_name?: string | null
|
||||
name: string
|
||||
personal_code?: string | null
|
||||
phone?: string | null
|
||||
picture_url?: string | null
|
||||
primary_owner_user_id?: string
|
||||
public_data?: Json
|
||||
@@ -148,13 +223,17 @@ export type Database = {
|
||||
updated_by?: string | null
|
||||
}
|
||||
Update: {
|
||||
city?: string | null
|
||||
created_at?: string | null
|
||||
created_by?: string | null
|
||||
email?: string | null
|
||||
has_consent_personal_data?: boolean | null
|
||||
id?: string
|
||||
is_personal_account?: boolean
|
||||
last_name?: string | null
|
||||
name?: string
|
||||
personal_code?: string | null
|
||||
phone?: string | null
|
||||
picture_url?: string | null
|
||||
primary_owner_user_id?: string
|
||||
public_data?: Json
|
||||
@@ -200,20 +279,6 @@ export type Database = {
|
||||
referencedRelation: "accounts"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "accounts_memberships_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "accounts_memberships_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_personal_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "accounts_memberships_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
@@ -515,20 +580,6 @@ export type Database = {
|
||||
referencedRelation: "accounts"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "billing_customers_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "billing_customers_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_personal_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "billing_customers_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
@@ -627,6 +678,158 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
connected_online_providers: {
|
||||
Row: {
|
||||
can_select_worker: boolean
|
||||
created_at: string
|
||||
email: string | null
|
||||
id: number
|
||||
name: string
|
||||
personal_code_required: boolean
|
||||
phone_number: string | null
|
||||
updated_at: string | null
|
||||
}
|
||||
Insert: {
|
||||
can_select_worker: boolean
|
||||
created_at?: string
|
||||
email?: string | null
|
||||
id: number
|
||||
name: string
|
||||
personal_code_required: boolean
|
||||
phone_number?: string | null
|
||||
updated_at?: string | null
|
||||
}
|
||||
Update: {
|
||||
can_select_worker?: boolean
|
||||
created_at?: string
|
||||
email?: string | null
|
||||
id?: number
|
||||
name?: string
|
||||
personal_code_required?: boolean
|
||||
phone_number?: string | null
|
||||
updated_at?: string | null
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
connected_online_reservation: {
|
||||
Row: {
|
||||
booking_code: string
|
||||
clinic_id: number
|
||||
comments: string | null
|
||||
created_at: string
|
||||
discount_code: string | null
|
||||
id: number
|
||||
lang: string
|
||||
requires_payment: boolean
|
||||
service_id: number
|
||||
service_user_id: number | null
|
||||
start_time: string
|
||||
sync_user_id: number
|
||||
updated_at: string | null
|
||||
user_id: string
|
||||
}
|
||||
Insert: {
|
||||
booking_code: string
|
||||
clinic_id: number
|
||||
comments?: string | null
|
||||
created_at?: string
|
||||
discount_code?: string | null
|
||||
id?: number
|
||||
lang: string
|
||||
requires_payment: boolean
|
||||
service_id: number
|
||||
service_user_id?: number | null
|
||||
start_time: string
|
||||
sync_user_id: number
|
||||
updated_at?: string | null
|
||||
user_id: string
|
||||
}
|
||||
Update: {
|
||||
booking_code?: string
|
||||
clinic_id?: number
|
||||
comments?: string | null
|
||||
created_at?: string
|
||||
discount_code?: string | null
|
||||
id?: number
|
||||
lang?: string
|
||||
requires_payment?: boolean
|
||||
service_id?: number
|
||||
service_user_id?: number | null
|
||||
start_time?: string
|
||||
sync_user_id?: number
|
||||
updated_at?: string | null
|
||||
user_id?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
connected_online_services: {
|
||||
Row: {
|
||||
clinic_id: number
|
||||
code: string
|
||||
created_at: string
|
||||
description: string | null
|
||||
display: string | null
|
||||
duration: number
|
||||
has_free_codes: boolean
|
||||
id: number
|
||||
name: string
|
||||
neto_duration: number | null
|
||||
online_hide_duration: number | null
|
||||
online_hide_price: number | null
|
||||
price: number
|
||||
price_periods: string | null
|
||||
requires_payment: boolean
|
||||
sync_id: number
|
||||
updated_at: string | null
|
||||
}
|
||||
Insert: {
|
||||
clinic_id: number
|
||||
code: string
|
||||
created_at?: string
|
||||
description?: string | null
|
||||
display?: string | null
|
||||
duration: number
|
||||
has_free_codes: boolean
|
||||
id: number
|
||||
name: string
|
||||
neto_duration?: number | null
|
||||
online_hide_duration?: number | null
|
||||
online_hide_price?: number | null
|
||||
price: number
|
||||
price_periods?: string | null
|
||||
requires_payment: boolean
|
||||
sync_id: number
|
||||
updated_at?: string | null
|
||||
}
|
||||
Update: {
|
||||
clinic_id?: number
|
||||
code?: string
|
||||
created_at?: string
|
||||
description?: string | null
|
||||
display?: string | null
|
||||
duration?: number
|
||||
has_free_codes?: boolean
|
||||
id?: number
|
||||
name?: string
|
||||
neto_duration?: number | null
|
||||
online_hide_duration?: number | null
|
||||
online_hide_price?: number | null
|
||||
price?: number
|
||||
price_periods?: string | null
|
||||
requires_payment?: boolean
|
||||
sync_id?: number
|
||||
updated_at?: string | null
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "connected_online_services_clinic_id_fkey"
|
||||
columns: ["clinic_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "connected_online_providers"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
invitations: {
|
||||
Row: {
|
||||
account_id: string
|
||||
@@ -672,20 +875,6 @@ export type Database = {
|
||||
referencedRelation: "accounts"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "invitations_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "invitations_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_personal_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "invitations_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
@@ -709,6 +898,129 @@ export type Database = {
|
||||
},
|
||||
]
|
||||
}
|
||||
medreport_product_groups: {
|
||||
Row: {
|
||||
created_at: string
|
||||
id: number
|
||||
name: string
|
||||
updated_at: string | null
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string
|
||||
id?: number
|
||||
name: string
|
||||
updated_at?: string | null
|
||||
}
|
||||
Update: {
|
||||
created_at?: string
|
||||
id?: number
|
||||
name?: string
|
||||
updated_at?: string | null
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
medreport_products: {
|
||||
Row: {
|
||||
created_at: string
|
||||
id: number
|
||||
name: string
|
||||
product_group_id: number | null
|
||||
updated_at: string | null
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string
|
||||
id?: number
|
||||
name: string
|
||||
product_group_id?: number | null
|
||||
updated_at?: string | null
|
||||
}
|
||||
Update: {
|
||||
created_at?: string
|
||||
id?: number
|
||||
name?: string
|
||||
product_group_id?: number | null
|
||||
updated_at?: string | null
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "medreport_products_product_groups_id_fkey"
|
||||
columns: ["product_group_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "medreport_product_groups"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
medreport_products_analyses_relations: {
|
||||
Row: {
|
||||
analysis_element_id: number | null
|
||||
analysis_id: number | null
|
||||
product_id: number
|
||||
}
|
||||
Insert: {
|
||||
analysis_element_id?: number | null
|
||||
analysis_id?: number | null
|
||||
product_id: number
|
||||
}
|
||||
Update: {
|
||||
analysis_element_id?: number | null
|
||||
analysis_id?: number | null
|
||||
product_id?: number
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "medreport_products_analyses_analysis_element_id_fkey"
|
||||
columns: ["analysis_element_id"]
|
||||
isOneToOne: true
|
||||
referencedRelation: "analysis_elements"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "medreport_products_analyses_analysis_id_fkey"
|
||||
columns: ["analysis_id"]
|
||||
isOneToOne: true
|
||||
referencedRelation: "analyses"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "medreport_products_analyses_product_id_fkey"
|
||||
columns: ["product_id"]
|
||||
isOneToOne: true
|
||||
referencedRelation: "medreport_products"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
medreport_products_external_services_relations: {
|
||||
Row: {
|
||||
connected_online_service_id: number
|
||||
product_id: number
|
||||
}
|
||||
Insert: {
|
||||
connected_online_service_id: number
|
||||
product_id: number
|
||||
}
|
||||
Update: {
|
||||
connected_online_service_id?: number
|
||||
product_id?: number
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "medreport_products_connected_online_services_id_fkey"
|
||||
columns: ["connected_online_service_id"]
|
||||
isOneToOne: true
|
||||
referencedRelation: "connected_online_services"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "medreport_products_connected_online_services_product_id_fkey"
|
||||
columns: ["product_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "medreport_products"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
nonces: {
|
||||
Row: {
|
||||
client_token: string
|
||||
@@ -808,20 +1120,6 @@ export type Database = {
|
||||
referencedRelation: "accounts"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "notifications_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "notifications_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_personal_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "notifications_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
@@ -921,20 +1219,6 @@ export type Database = {
|
||||
referencedRelation: "accounts"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "orders_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "orders_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_personal_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "orders_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
@@ -1106,20 +1390,6 @@ export type Database = {
|
||||
referencedRelation: "accounts"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "subscriptions_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "subscriptions_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "invitations_with_personal_accounts"
|
||||
referencedColumns: ["account_id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "subscriptions_account_id_fkey"
|
||||
columns: ["account_id"]
|
||||
@@ -1145,23 +1415,6 @@ export type Database = {
|
||||
}
|
||||
}
|
||||
Views: {
|
||||
invitations_with_accounts: {
|
||||
Row: {
|
||||
account_id: string | null
|
||||
invite_token: string | null
|
||||
personal_code: string | null
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
invitations_with_personal_accounts: {
|
||||
Row: {
|
||||
account_id: string | null
|
||||
account_slug: string | null
|
||||
invite_token: string | null
|
||||
personal_code: string | null
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
user_account_workspace: {
|
||||
Row: {
|
||||
id: string | null
|
||||
@@ -1241,13 +1494,17 @@ export type Database = {
|
||||
create_team_account: {
|
||||
Args: { account_name: string }
|
||||
Returns: {
|
||||
city: string | null
|
||||
created_at: string | null
|
||||
created_by: string | null
|
||||
email: string | null
|
||||
has_consent_personal_data: boolean | null
|
||||
id: string
|
||||
is_personal_account: boolean
|
||||
last_name: string | null
|
||||
name: string
|
||||
personal_code: string | null
|
||||
phone: string | null
|
||||
picture_url: string | null
|
||||
primary_owner_user_id: string
|
||||
public_data: Json
|
||||
@@ -1329,6 +1586,10 @@ export type Database = {
|
||||
}
|
||||
Returns: boolean
|
||||
}
|
||||
has_personal_code: {
|
||||
Args: { account_id: string }
|
||||
Returns: boolean
|
||||
}
|
||||
has_role_on_account: {
|
||||
Args: { account_id: string; account_role?: string }
|
||||
Returns: boolean
|
||||
@@ -1395,6 +1656,18 @@ export type Database = {
|
||||
Args: { target_account_id: string; new_owner_id: string }
|
||||
Returns: undefined
|
||||
}
|
||||
update_account: {
|
||||
Args: {
|
||||
p_name: string
|
||||
p_last_name: string
|
||||
p_personal_code: string
|
||||
p_phone: string
|
||||
p_city: string
|
||||
p_has_consent_personal_data: boolean
|
||||
p_uid: string
|
||||
}
|
||||
Returns: undefined
|
||||
}
|
||||
upsert_order: {
|
||||
Args: {
|
||||
target_account_id: string
|
||||
@@ -1611,6 +1884,7 @@ export type CompositeTypes<
|
||||
export const Constants = {
|
||||
audit: {
|
||||
Enums: {
|
||||
request_status: ["SUCCESS", "FAIL"],
|
||||
sync_status: ["SUCCESS", "FAIL"],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user