Circle V2 API Docs
Preparing search index...
@repo/legacy
chart-review
ProfilesRepo
Class ProfilesRepo
Hierarchy (
View Summary
)
DbRepo
ProfilesRepo
Index
Constructors
constructor
Properties
supabase
Methods
get
By
Email
upsert
with
Db
Constructors
constructor
new
ProfilesRepo
(
options
:
DbRepoOptions
)
:
ProfilesRepo
Parameters
options
:
DbRepoOptions
Returns
ProfilesRepo
Properties
Protected
Readonly
supabase
supabase
:
SupabaseClient
<
Database
>
Methods
get
By
Email
getByEmail
(
email
:
string
,
)
:
Promise
<
{
clinic_size
:
string
|
null
;
created_at
:
string
|
null
;
customer_id
:
string
|
null
;
email
:
string
|
null
;
expectations
:
string
|
null
;
external_system
:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
:
string
|
null
;
first_name
:
string
|
null
;
hear_about_us
:
string
|
null
;
id
:
number
;
is_superadmin
:
boolean
;
last_name
:
string
|
null
;
last_updated
:
string
|
null
;
price_id
:
string
|
null
;
profile_type
:
"user"
|
"external"
;
session_limit
:
number
|
null
;
subscription_status
:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
:
string
|
null
;
user_id
:
string
|
null
;
vertical
:
string
|
null
;
}
,
>
Parameters
email
:
string
Returns
Promise
<
{
clinic_size
:
string
|
null
;
created_at
:
string
|
null
;
customer_id
:
string
|
null
;
email
:
string
|
null
;
expectations
:
string
|
null
;
external_system
:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
:
string
|
null
;
first_name
:
string
|
null
;
hear_about_us
:
string
|
null
;
id
:
number
;
is_superadmin
:
boolean
;
last_name
:
string
|
null
;
last_updated
:
string
|
null
;
price_id
:
string
|
null
;
profile_type
:
"user"
|
"external"
;
session_limit
:
number
|
null
;
subscription_status
:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
:
string
|
null
;
user_id
:
string
|
null
;
vertical
:
string
|
null
;
}
,
>
upsert
upsert
(
params
:
{
clinic_size
?:
string
|
null
;
created_at
?:
string
|
null
;
customer_id
?:
string
|
null
;
email
?:
string
|
null
;
expectations
?:
string
|
null
;
external_system
?:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
?:
string
|
null
;
first_name
?:
string
|
null
;
hear_about_us
?:
string
|
null
;
id
?:
number
;
is_superadmin
?:
boolean
;
last_name
?:
string
|
null
;
last_updated
?:
string
|
null
;
price_id
?:
string
|
null
;
profile_type
?:
"user"
|
"external"
;
session_limit
?:
number
|
null
;
subscription_status
?:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
?:
string
|
null
;
user_id
?:
string
|
null
;
vertical
?:
string
|
null
;
}
,
)
:
Promise
<
{
clinic_size
:
string
|
null
;
created_at
:
string
|
null
;
customer_id
:
string
|
null
;
email
:
string
|
null
;
expectations
:
string
|
null
;
external_system
:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
:
string
|
null
;
first_name
:
string
|
null
;
hear_about_us
:
string
|
null
;
id
:
number
;
is_superadmin
:
boolean
;
last_name
:
string
|
null
;
last_updated
:
string
|
null
;
price_id
:
string
|
null
;
profile_type
:
"user"
|
"external"
;
session_limit
:
number
|
null
;
subscription_status
:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
:
string
|
null
;
user_id
:
string
|
null
;
vertical
:
string
|
null
;
}
,
>
Parameters
params
:
{
clinic_size
?:
string
|
null
;
created_at
?:
string
|
null
;
customer_id
?:
string
|
null
;
email
?:
string
|
null
;
expectations
?:
string
|
null
;
external_system
?:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
?:
string
|
null
;
first_name
?:
string
|
null
;
hear_about_us
?:
string
|
null
;
id
?:
number
;
is_superadmin
?:
boolean
;
last_name
?:
string
|
null
;
last_updated
?:
string
|
null
;
price_id
?:
string
|
null
;
profile_type
?:
"user"
|
"external"
;
session_limit
?:
number
|
null
;
subscription_status
?:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
?:
string
|
null
;
user_id
?:
string
|
null
;
vertical
?:
string
|
null
;
}
Returns
Promise
<
{
clinic_size
:
string
|
null
;
created_at
:
string
|
null
;
customer_id
:
string
|
null
;
email
:
string
|
null
;
expectations
:
string
|
null
;
external_system
:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
:
string
|
null
;
first_name
:
string
|
null
;
hear_about_us
:
string
|
null
;
id
:
number
;
is_superadmin
:
boolean
;
last_name
:
string
|
null
;
last_updated
:
string
|
null
;
price_id
:
string
|
null
;
profile_type
:
"user"
|
"external"
;
session_limit
:
number
|
null
;
subscription_status
:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
:
string
|
null
;
user_id
:
string
|
null
;
vertical
:
string
|
null
;
}
,
>
upsert
(
params
:
{
clinic_size
?:
string
|
null
;
created_at
?:
string
|
null
;
customer_id
?:
string
|
null
;
email
?:
string
|
null
;
expectations
?:
string
|
null
;
external_system
?:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
?:
string
|
null
;
first_name
?:
string
|
null
;
hear_about_us
?:
string
|
null
;
id
?:
number
;
is_superadmin
?:
boolean
;
last_name
?:
string
|
null
;
last_updated
?:
string
|
null
;
price_id
?:
string
|
null
;
profile_type
?:
"user"
|
"external"
;
session_limit
?:
number
|
null
;
subscription_status
?:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
?:
string
|
null
;
user_id
?:
string
|
null
;
vertical
?:
string
|
null
;
}
[]
,
)
:
Promise
<
{
clinic_size
:
string
|
null
;
created_at
:
string
|
null
;
customer_id
:
string
|
null
;
email
:
string
|
null
;
expectations
:
string
|
null
;
external_system
:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
:
string
|
null
;
first_name
:
string
|
null
;
hear_about_us
:
string
|
null
;
id
:
number
;
is_superadmin
:
boolean
;
last_name
:
string
|
null
;
last_updated
:
string
|
null
;
price_id
:
string
|
null
;
profile_type
:
"user"
|
"external"
;
session_limit
:
number
|
null
;
subscription_status
:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
:
string
|
null
;
user_id
:
string
|
null
;
vertical
:
string
|
null
;
}
[]
,
>
Parameters
params
:
{
clinic_size
?:
string
|
null
;
created_at
?:
string
|
null
;
customer_id
?:
string
|
null
;
email
?:
string
|
null
;
expectations
?:
string
|
null
;
external_system
?:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
?:
string
|
null
;
first_name
?:
string
|
null
;
hear_about_us
?:
string
|
null
;
id
?:
number
;
is_superadmin
?:
boolean
;
last_name
?:
string
|
null
;
last_updated
?:
string
|
null
;
price_id
?:
string
|
null
;
profile_type
?:
"user"
|
"external"
;
session_limit
?:
number
|
null
;
subscription_status
?:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
?:
string
|
null
;
user_id
?:
string
|
null
;
vertical
?:
string
|
null
;
}
[]
Returns
Promise
<
{
clinic_size
:
string
|
null
;
created_at
:
string
|
null
;
customer_id
:
string
|
null
;
email
:
string
|
null
;
expectations
:
string
|
null
;
external_system
:
|
"kipu"
|
"lightningstep"
|
"sunwave"
|
"qualifacts_insync"
|
null
;
external_system_id
:
string
|
null
;
first_name
:
string
|
null
;
hear_about_us
:
string
|
null
;
id
:
number
;
is_superadmin
:
boolean
;
last_name
:
string
|
null
;
last_updated
:
string
|
null
;
price_id
:
string
|
null
;
profile_type
:
"user"
|
"external"
;
session_limit
:
number
|
null
;
subscription_status
:
|
"trial_ended"
|
"trial_running"
|
"active"
|
"inactive"
|
null
;
title
:
string
|
null
;
user_id
:
string
|
null
;
vertical
:
string
|
null
;
}
[]
,
>
with
Db
withDb
(
options
:
{
supabase
:
SupabaseClient
<
Database
>
}
)
:
this
Parameters
options
:
{
supabase
:
SupabaseClient
<
Database
>
}
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
supabase
Methods
get
By
Email
upsert
with
Db
Circle V2 API Docs
Loading...