1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { logging } from '@angular-devkit/core';
|
9 | import { Observable } from 'rxjs';
|
10 | export interface RequiredWorkflowExecutionContext {
|
11 | collection: string;
|
12 | schematic: string;
|
13 | options: object;
|
14 | }
|
15 | export interface WorkflowExecutionContext extends RequiredWorkflowExecutionContext {
|
16 | debug: boolean;
|
17 | logger: logging.Logger;
|
18 | parentContext?: Readonly<WorkflowExecutionContext>;
|
19 | allowPrivate?: boolean;
|
20 | }
|
21 | export interface LifeCycleEvent {
|
22 | kind: 'start' | 'end' | 'workflow-start' | 'workflow-end' | 'post-tasks-start' | 'post-tasks-end';
|
23 | }
|
24 | export interface Workflow {
|
25 | readonly context: Readonly<WorkflowExecutionContext>;
|
26 | execute(options: Partial<WorkflowExecutionContext> & RequiredWorkflowExecutionContext): Observable<void>;
|
27 | }
|