1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { schema, virtualFs } from '@angular-devkit/core';
|
9 | import { Observable, Subject } from 'rxjs';
|
10 | import { Engine, EngineHost } from '../engine';
|
11 | import { DryRunEvent } from '../sink/dryrun';
|
12 | import { Sink } from '../sink/sink';
|
13 | import { LifeCycleEvent, RequiredWorkflowExecutionContext, Workflow, WorkflowExecutionContext } from './interface';
|
14 | export interface BaseWorkflowOptions {
|
15 | host: virtualFs.Host;
|
16 | engineHost: EngineHost<{}, {}>;
|
17 | registry?: schema.CoreSchemaRegistry;
|
18 | force?: boolean;
|
19 | dryRun?: boolean;
|
20 | }
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare abstract class BaseWorkflow implements Workflow {
|
33 | protected _engine: Engine<{}, {}>;
|
34 | protected _engineHost: EngineHost<{}, {}>;
|
35 | protected _registry: schema.CoreSchemaRegistry;
|
36 | protected _host: virtualFs.Host;
|
37 | protected _reporter: Subject<DryRunEvent>;
|
38 | protected _lifeCycle: Subject<LifeCycleEvent>;
|
39 | protected _context: WorkflowExecutionContext[];
|
40 | protected _force: boolean;
|
41 | protected _dryRun: boolean;
|
42 | constructor(options: BaseWorkflowOptions);
|
43 | get context(): Readonly<WorkflowExecutionContext>;
|
44 | get engine(): Engine<{}, {}>;
|
45 | get engineHost(): EngineHost<{}, {}>;
|
46 | get registry(): schema.SchemaRegistry;
|
47 | get reporter(): Observable<DryRunEvent>;
|
48 | get lifeCycle(): Observable<LifeCycleEvent>;
|
49 | protected _createSinks(): Sink[];
|
50 | execute(options: Partial<WorkflowExecutionContext> & RequiredWorkflowExecutionContext): Observable<void>;
|
51 | }
|