import { WorkflowLevelAdvancementAPI } from '@core/typings/api/workflow-level-advancement.typing'; import { WorkflowLevelAutomationAPI } from '@core/typings/api/workflow-level-automation.typing'; import { Automation } from '@core/typings/ui/automation.typing'; import { DebounceFactory, SimpleStringMap, TableDataFactory } from '@yourcause/common'; import { BaseYcState, RegisterYCState } from '@yourcause/common/state'; @RegisterYCState() export class WorkflowLevelAutomationState extends BaseYcState { readonly WorkflowObjects: Automation.ObjectConfig[]; readonly workflowAutomationDetail: { [id: number]: WorkflowLevelAutomationAPI.WorkflowLevelAutomationRuleSetDetailModel; } = {}; readonly workflowSequences: SimpleStringMap = {}; readonly assignmentTableDataFactory: TableDataFactory; readonly WorkflowAdvancementObjects: Automation.ObjectConfig[]; readonly workflowAdvancementDetail: { [id: number]: WorkflowLevelAdvancementAPI.WorkflowLevelRoutingAutomationRuleSetDetailModel; } = {}; readonly advancementWorkflowSequences: SimpleStringMap = {}; readonly advancementTableDataFactory: TableDataFactory; readonly workflowForms: { [workflowId: number]: WorkflowLevelAutomationAPI.WorkflowFormDisplay[]; } = {}; readonly assignmentHistoryTableDataFactory: DebounceFactory; readonly routingHistoryTableDataFactory: DebounceFactory; }