Manta Developers
GitHub
Menu

@manta-eu/react/hooks/useActionPlans

Reference for @manta-eu/react/hooks/useActionPlans as it is on main.

Type Aliases

ActionPlan

ActionPlan = object

Properties

actionCount

actionCount: number

actionCountByType

actionCountByType: object[]

count

count: number

typeName

typeName: string

brief?

optional brief?: PlanBrief

completedActionCount

completedActionCount: number

description

description: string | null

dryRun

dryRun: boolean

duration

duration: string | null

estimatedReturn?

optional estimatedReturn?: ActionPlanQuantitativeValue

goalMeasure?

optional goalMeasure?: string

hasCurrentFacts

hasCurrentFacts: boolean

held?

optional held?: ActionPlanHold

iri

iri: string

lastRunAt

lastRunAt: string | null

primaryIntegration

primaryIntegration: GQLIntegration | null

state

state: GQLActionPlanState

statements

statements: number

subjects

subjects: number

updatedAt

updatedAt: string | null


ActionPlans

ActionPlans = ActionPlan[]


ActionPlansVariables

ActionPlansVariables = GQLActionPlansQueryVariables & object

Type Declaration

approval?

optional approval?: ActionPlansApprovalFilter

availability?

optional availability?: ActionPlansAvailabilityFilter

goalMeasure?

optional goalMeasure?: string

goalMeasures?

optional goalMeasures?: string[]

None match when it is empty.

graphIris?

optional graphIris?: string[]

integrations?

optional integrations?: ActionPlanIntegrationFilter[]

lastRunFrom?

optional lastRunFrom?: string

lastRunTo?

optional lastRunTo?: string

states?

optional states?: GQLActionPlanState[]


PlanAmount

PlanAmount = object

Properties

high?

optional high?: number

low?

optional low?: number

unitCode?

optional unitCode?: string

unitText?

optional unitText?: string

value

value: number


PlanBreakdownColumn

PlanBreakdownColumn = object

Properties

heading

heading: string

id

id: string

position

position: number

unitCode?

optional unitCode?: string


PlanBreakdownRow

PlanBreakdownRow = object

Properties

cells

cells: ReadonlyMap<string, number>

id

id: string

label

label: string

position

position: number

variant?

optional variant?: object

included

included: boolean

never?

optional never?: string


PlanBreakdownTable

PlanBreakdownTable = object

Properties

columns

columns: PlanBreakdownColumn[]

rowHeading?

optional rowHeading?: string

rows

rows: PlanBreakdownRow[]

title

title: string


PlanBrief

PlanBrief = object

Properties

approvalPhrase?

optional approvalPhrase?: string

approveBy?

optional approveBy?: string

breakdown?

optional breakdown?: PlanBreakdownTable

confidence?

optional confidence?: PlanLevel

extraSpend?

optional extraSpend?: PlanAmount

figures

figures: PlanBriefFigure[]

goalEffect?

optional goalEffect?: PlanGoalEffect

goalMeasure?

optional goalMeasure?: string

measurement?

optional measurement?: PlanMeasurementPlan

priority?

optional priority?: PlanLevel

reasoning?

optional reasoning?: PlanReasoning

steps

steps: PlanBriefStep[]

title?

optional title?: string

worth?

optional worth?: PlanAmount


PlanBriefFigure

PlanBriefFigure = PlanAmount & object

Type Declaration

id

id: string

label

label: string

position

position: number


PlanBriefStep

PlanBriefStep = object

Properties

actionIri?

optional actionIri?: string

day?

optional day?: number

id

id: string

name

name: string

owner?

optional owner?: string

position

position: number

system?

optional system?: string


PlanChange

PlanChange = object

Properties

after

after: string

before

before: string

id

id: string

name

name: string

position

position: number

system

system: string


PlanFinding

PlanFinding = object

Properties

id

id: string

label

label: string

position

position: number

sourceIds

sourceIds: string[]

value

value: string


PlanGoalEffect

PlanGoalEffect = object

Properties

measuredBy?

optional measuredBy?: string

unitText?

optional unitText?: string

value

value: number


PlanLevel

PlanLevel = "high" | "medium" | "low"


PlanLimit

PlanLimit = object

Properties

amount?

optional amount?: PlanLimitAmount

id

id: string

label

label: string

position

position: number

value

value: string


PlanLimitAmount

PlanLimitAmount = object

Properties

high

high: number

low

low: number

note?

optional note?: string

step?

optional step?: number

unitCode?

optional unitCode?: string

unitText?

optional unitText?: string

value

value: number


PlanMeasurementPlan

PlanMeasurementPlan = object

Properties

against?

optional against?: string

green?

optional green?: string

measure

measure: string

reads

reads: PlanMeasurementRead[]

red?

optional red?: string

startsDay?

optional startsDay?: number


PlanMeasurementRead

PlanMeasurementRead = object

Properties

day

day: number

id

id: string

name

name: string

position

position: number


PlanReasoning

PlanReasoning = object

Properties

changes

changes: PlanChange[]

findings

findings: PlanFinding[]

limits

limits: PlanLimit[]

rule?

optional rule?: string

sources

sources: PlanSource[]


PlanSource

PlanSource = object

Properties

gives?

optional gives?: string

id

id: string

integration?

optional integration?: string

name

name: string

position

position: number

Variables

useActionPlansQueryKeyRoot

const useActionPlansQueryKeyRoot: readonly ["ldo-ui", "action-plans-list"] = actionPlansListQueryKeyRoot

Functions

useActionPlans()

useActionPlans(_client, variables?, options?): object

Parameters

_client

GraphQLClient

variables?

ActionPlansVariables

options?
enabled?

boolean

refetchInterval?

number | false

Returns

object

count

count: number

error

error: string | null

isLoading

isLoading: boolean = result.isLoading

isPlaceholderData

isPlaceholderData: boolean = result.isPlaceholderData

plans

plans: ActionPlan[]

refetch

refetch: (options?) => Promise<QueryObserverResult<ActionPlansListResult, Error>> = result.refetch

Parameters
options?

RefetchOptions

Returns

Promise<QueryObserverResult<ActionPlansListResult, Error>>