import { Map } from '../utils/utils'; export interface WorkflowDefinition { id?: string; definitionId?: string; tenantId?: string; name?: string; displayName?: string; description?: string; version: number; variables?: string; customAttributes?: Variables; contextOptions?: WorkflowContextOptions; isSingleton?: boolean; persistenceBehavior?: WorkflowPersistenceBehavior; deleteCompletedInstances?: boolean; isPublished?: boolean; isLatest?: boolean; activities: Array; connections: Array; tag?: string; channel?: string; } export interface WorkflowDefinitionSummary { id?: string; definitionId?: string; tenantId?: string; name?: string; displayName?: string; description?: string; version: number; isSingleton?: boolean; persistenceBehavior?: WorkflowPersistenceBehavior; isPublished?: boolean; isLatest?: boolean; tag?: string; } export interface ActivityBlueprint { id: string; name?: string; displayName?: string; description?: string; type: string; parentId?: string; persistWorkflow: boolean; loadWorkflowContext: boolean; saveWorkflowContext: boolean; source?: string; inputProperties: Variables; outputProperties: Variables; propertyStorageProviders: Map; } export interface Connection { sourceActivityId: string; targetActivityId: string; outcome: string; } export interface CompositeActivityBlueprint extends ActivityBlueprint { activities: Array; connections: Array; } export interface WorkflowBlueprint extends CompositeActivityBlueprint { version: number; tenantId?: string; isSingleton: boolean; isPublished: boolean; isLatest: boolean; tag?: string; contextOptions?: WorkflowContextOptions; variables: Variables; customAttributes: Variables; persistenceBehavior: WorkflowPersistenceBehavior; } export interface WorkflowBlueprintSummary { id: string; versionId: string; name?: string; displayName?: string; description?: string; version: number; tenantId?: string; isSingleton: boolean; isPublished: boolean; isLatest: boolean; isDisabled: boolean; tag?: string; } export interface WorkflowInstance { id: string; definitionId: string; definitionVersionId: string; tenantId?: string; version: number; workflowStatus: WorkflowStatus; correlationId?: string; contextType?: string; contextId?: string; name?: string; createdAt?: Date; lastExecutedAt?: Date; finishedAt?: Date; faultedAt?: Date; variables: Variables; output?: any; activityData?: Map; activityOutput?: Map; blockingActivities: Array; fault?: WorkflowFault; scheduledActivities: Array; scopes: Array; currentActivity: ScheduledActivity; } export interface WorkflowInstanceSummary { id: string; definitionId: string; definitionVersionId: string; tenantId?: string; version: number; workflowStatus: WorkflowStatus; correlationId?: string; contextType?: string; contextId?: string; name?: string; createdAt?: Date; lastExecutedAt?: Date; finishedAt?: Date; cancelledAt?: Date; faultedAt?: Date; } export interface ActivityDefinition { activityId: string; type: string; name: string; displayName: string; description: string; persistWorkflow: boolean; loadWorkflowContext: boolean; saveWorkflowContext: boolean; properties: Array; propertyStorageProviders: Map; } export interface WorkflowExecutionLogRecord { id: string; workflowInstanceId: string; activityId: string; activityType: string; timestamp: Date; eventName: string; message?: string; source?: string; data?: any; } export interface ConnectionDefinition { sourceActivityId?: string; targetActivityId?: string; outcome?: string; } export interface ConnectionDefinitionMapped { sourceId: string; sourceActivityId: string; targetId: string; targetActivityId: string; outcome: string; } export interface ActivityDefinitionProperty { name: string; syntax?: string; expressions: Map; value?: any; } interface BlockingActivity { activityId: string; activityType: string; tag?: string; } interface ScheduledActivity { activityId: string; input?: any; } interface ActivityScope { activityId: string; variables: Variables; } export interface Variables { data: Map; } export interface WorkflowContextOptions { contextType: string; contextFidelity: WorkflowContextFidelity; } export declare enum WorkflowContextFidelity { Burst = "Burst", Activity = "Activity" } export declare enum WorkflowPersistenceBehavior { Suspended = "Suspended", WorkflowBurst = " WorkflowBurst", WorkflowPassCompleted = "WorkflowPassCompleted", ActivityExecuted = "ActivityExecuted" } export interface VersionOptions { isLatest?: boolean; isLatestOrPublished?: boolean; isPublished?: boolean; isDraft?: boolean; allVersions?: boolean; version?: number; } export declare enum WorkflowStatus { Idle = "Idle", Running = "Running", Finished = "Finished", Suspended = "Suspended", Faulted = "Faulted", Cancelled = "Cancelled" } export declare enum OrderBy { Started = "Started", LastExecuted = "LastExecuted", Finished = "Finished" } export interface SimpleException { type: string; message: string; stackTrace: string; innerException?: SimpleException; } export interface WorkflowFault { exception?: SimpleException; message: string; faultedActivityId?: string; activityInput?: any; resuming: boolean; } export interface ActivityDescriptor { type: string; displayName: string; description?: string; category: string; traits: ActivityTraits; outcomes: Array; browsable: boolean; inputProperties: Array; outputProperties: Array; customAttributes: any; } export interface ActivityPropertyDescriptor { name: string; uiHint: string; label?: string; hint?: string; options?: any; category?: string; defaultValue?: any; defaultSyntax?: string; supportedSyntaxes: Array; isReadOnly?: boolean; defaultWorkflowStorageProvider?: string; disableWorkflowProviderSelection: boolean; considerValuesAsOutcomes: boolean; } export interface WorkflowStorageDescriptor { name: string; displayName?: string; } export interface WorkflowProviderDescriptor { name: string; displayName?: string; } export interface PagedList { items: Array; page?: number; pageSize?: number; totalCount: number; } export interface ListModel { items: Array; } export declare enum ActivityTraits { Action = 1, Trigger = 2, Job = 4 } export interface SelectList { items: Array | Array; isFlagsEnum: boolean; } export interface SelectListItem { text: string; value: string; } export interface RuntimeSelectListProviderSettings { runtimeSelectListProviderType: string; context?: any; } export declare class SyntaxNames { static readonly Literal = "Literal"; static readonly JavaScript = "JavaScript"; static readonly Liquid = "Liquid"; static readonly Json = "Json"; static Variable: string; static Output: string; } export interface WorkflowTestActivityMessage { activityType: string; workflowInstanceId: string; correlationId: string; activityId: string; status: string; workflowStatus: string; data?: any; error?: string; activityData?: any; } export declare const getVersionOptionsString: (versionOptions?: VersionOptions) => string; export declare enum WorkflowTestActivityMessageStatus { Done = "Done", Waiting = "Waiting", Failed = "Failed", Modified = "Modified" } export interface IntellisenseContext { activityTypeName: string; propertyName: string; } export {};