Manta Developers
GitHub
Menu

@manta-eu/react/screens/operator

Reference for @manta-eu/react/screens/operator as it is on main.

Type Aliases

AccountFact

AccountFact = object

Properties

grantExpiresAt?

optional grantExpiresAt?: string | null

integration

integration: GQLIntegration

revokedAt?

optional revokedAt?: string | null


Attention

Attention = object

Properties

integrations?

optional integrations?: readonly string[]

kind

kind: AttentionKind

label

label: string


AttentionKind

AttentionKind = "building" | "lost-access" | "waiting" | "no-sources" | "no-goals" | "unreadable"


ClientAttentionOptions

ClientAttentionOptions = object

Properties

lastActivity?

optional lastActivity?: boolean

only?

optional only?: readonly string[]


ClientAttentionState

ClientAttentionState = object

Properties

error

error: string | undefined

isLoading

isLoading: boolean

pending

pending: number

rows

rows: ClientRow[]


ClientFacts

ClientFacts = object

Properties

accounts

accounts: readonly AccountFact[] | undefined

goals

goals: number | undefined

id

id: string

name

name: string

ready

ready: boolean

unreadable

unreadable: boolean

waitingPlans

waitingPlans: number | undefined


ClientRow

ClientRow = ClientFacts & object

Type Declaration

attention

attention: Attention[]

lastActivityAt?

optional lastActivityAt?: string | null

When its latest action plan run started; null when it has none, undefined until read or when not asked for.

sources

sources: number | undefined


ClientStatusTone

ClientStatusTone = "success" | "warning" | "error" | "neutral"


OperatorHomeHostProps

OperatorHomeHostProps = object

Properties

children

children: ReactNode

Variables

operatorChatBasePath

const operatorChatBasePath: "/operator" = operatorPath


operatorChatPath

const operatorChatPath: "/operator/chat" = "/operator/chat"


operatorCustomAppsPath

const operatorCustomAppsPath: "/custom-apps" = "/custom-apps"


operatorPath

const operatorPath: "/operator" = "/operator"


operatorTeamPath

const operatorTeamPath: "/operator/team" = "/operator/team"

Functions

clientStatus()

clientStatus(attention): object

Parameters

attention

readonly Attention[]

Returns

object

label

label: string

tone

tone: ClientStatusTone


OperatorAskRoute()

OperatorAskRoute(): Element

Returns

Element


OperatorHomeHost()

OperatorHomeHost(props): Element

Parameters

props

OperatorHomeHostProps

Returns

Element


operatorLanding()

operatorLanding(isOperator, sessionDatastoreId, realmDatastoreId): "datastore" | "dashboard"

Parameters

isOperator

boolean

sessionDatastoreId

string | undefined

realmDatastoreId

string

Returns

"datastore" | "dashboard"


OperatorOverviewRoute()

OperatorOverviewRoute(): Element

Returns

Element


useClientAttention()

useClientAttention(options?): ClientAttentionState

Parameters

options?

ClientAttentionOptions = {}

Returns

ClientAttentionState


usesOperatorChats()

usesOperatorChats(isOperator, datastoreId, pathname, search): boolean

Parameters

isOperator

boolean | undefined

datastoreId

string | undefined

pathname

string

string

Returns

boolean