@manta-eu/react/routes/integrations/connection-view
Reference for @manta-eu/react/routes/integrations/connection-view as it is on main.
Type Aliases
ConnectionIdentifier
ConnectionIdentifier =
object
Properties
copyLabel
copyLabel:
string
value
value:
string
ConnectionSubItem
ConnectionSubItem =
object
A resource an account was limited to at connect time, such as a Meta Page under an ad account.
Properties
id
id:
string
kind
kind:
string
name
name:
string
ConnectionView
ConnectionView =
object
Properties
detail?
optionaldetail?:string
id
id:
string
identifier?
optionalidentifier?:ConnectionIdentifier
namedAccount?
optionalnamedAccount?:NamedAccount
noun?
optionalnoun?:string
primaryLabel
primaryLabel:
string
secondaryLabel?
optionalsecondaryLabel?:string
source
source:
ProviderConnection["kind"]
status
status:
Status
subItems?
optionalsubItems?:ConnectionSubItem[]
syncedLabel?
optionalsyncedLabel?:string
title?
optionaltitle?:string
The row heading: the account’s name, or its identifier when it has none.
when?
optionalwhen?:ConnectionWhen
ConnectionWhen
ConnectionWhen =
object
A short relative time for the status, and the exact moment behind it.
Properties
label
label:
string
title
title:
string
GrantFacts
GrantFacts =
Pick<OAuthConnection,"revokedAt"|"grantExpiresAt">
NamedAccount
NamedAccount =
object
The display projection of a ProviderConnection. It retains the source only so
row-level actions can dispatch correctly; rendering otherwise uses normalized fields.
Properties
entityIri?
optionalentityIri?:string
externalId
externalId:
string
graphConnections?
optionalgraphConnections?:object
count
count:
number
href
href:
string
name
name:
string
noun?
optionalnoun?:string
typeIri?
optionaltypeIri?:string
Functions
connectionProblems()
connectionProblems<
T>(connections):T[]
The accounts whose grant a person has to renew: revoked, expired, or inside the warning window.
Type Parameters
T
T extends GrantFacts
Parameters
connections
readonly T[]
Returns
T[]
connectionWhen()
connectionWhen(
event,at):ConnectionWhen|undefined
Parameters
event
string
at
string | Date | null | undefined
Returns
ConnectionWhen | undefined
shortTimeAgo()
shortTimeAgo(
date,now?):string
A compact relative time, such as “3 h ago” or “1 mo ago”.
Parameters
date
Date
now?
Date = ...
Returns
string
toConnectionView()
toConnectionView(
connection):ConnectionView