Membrane React - v0.29.2
Console
SDK
REST API
Preparing search index...
useCustomer
Function useCustomer
useCustomer
(
selector
:
string
|
{
id
:
string
}
|
undefined
,
)
:
{
customer
:
|
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
|
undefined
;
accessor
:
CustomerAccessor
|
undefined
;
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refresh
:
()
=>
Promise
<
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
,
>
;
refreshing
:
boolean
;
create
:
(
data
:
{
name
:
string
;
internalId
?:
string
;
fields
?:
any
;
credentials
?:
any
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
}
,
)
=>
Promise
<
|
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
|
undefined
,
>
;
patch
:
(
data
:
Partial
<
UpdateRequest
>
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
put
:
(
data
:
{
name
?:
string
;
internalId
?:
string
;
fields
?:
any
;
credentials
?:
any
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
}
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
}
Parameters
selector
:
string
|
{
id
:
string
}
|
undefined
Returns
{
customer
:
|
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
|
undefined
;
accessor
:
CustomerAccessor
|
undefined
;
loading
:
boolean
;
saving
:
boolean
;
error
:
any
;
refresh
:
()
=>
Promise
<
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
,
>
;
refreshing
:
boolean
;
create
:
(
data
:
{
name
:
string
;
internalId
?:
string
;
fields
?:
any
;
credentials
?:
any
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
}
,
)
=>
Promise
<
|
{
id
:
string
;
name
:
string
;
meta
?:
Record
<
string
,
any
>
;
internalId
:
string
;
fields
?:
Record
<
string
,
any
>
;
credentials
?:
any
;
lastActiveAt
?:
string
;
isTest
?:
boolean
;
isBillable
?:
boolean
;
isActive
?:
boolean
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
createdAt
?:
string
;
archivedAt
?:
string
;
}
|
undefined
,
>
;
patch
:
(
data
:
Partial
<
UpdateRequest
>
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
put
:
(
data
:
{
name
?:
string
;
internalId
?:
string
;
fields
?:
any
;
credentials
?:
any
;
aiCreditsRolling30DayLimit
?:
number
|
null
;
}
,
options
?:
MutatorConfig
,
)
=>
Promise
<
void
>
;
archive
:
()
=>
Promise
<
void
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Console
SDK
REST API
Membrane React - v0.29.2
Loading...