import * as i0 from '@angular/core'; import { AfterViewInit, EventEmitter, ElementRef, ChangeDetectorRef, OnChanges, OnInit, OnDestroy, NgZone, SimpleChanges, PipeTransform, ViewContainerRef } from '@angular/core'; import * as i34 from 'ng-zorro-antd/select'; import { NzSelectComponent } from 'ng-zorro-antd/select'; import { HttpErrorResponse, HttpClient, HttpResponse } from '@angular/common/http'; import * as rxjs from 'rxjs'; import { Observable, Subject, Subscription } from 'rxjs'; import * as i41 from 'ng-zorro-antd/code-editor'; import { EditorOptions } from 'ng-zorro-antd/code-editor'; import * as i36 from 'ng-zorro-antd/modal'; import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal'; import { NzNotificationService } from 'ng-zorro-antd/notification'; import * as i28 from 'ng-zorro-antd/button'; import { NzButtonType } from 'ng-zorro-antd/button'; import * as i27 from 'ng-zorro-antd/table'; import { NzTableComponent } from 'ng-zorro-antd/table'; import { NzConfigService } from 'ng-zorro-antd/core/config'; import * as i38 from 'ng-zorro-antd/graph'; import { NzGraphData, NzRankDirection, NzGraphComponent, NzGraphZoomDirective, NzGraphLayoutConfig } from 'ng-zorro-antd/graph'; import * as i24 from '@angular/forms'; import { FormGroup, ControlValueAccessor, FormBuilder } from '@angular/forms'; import { OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types'; import * as i40 from 'ng-zorro-antd/collapse'; import { NzCollapsePanelComponent } from 'ng-zorro-antd/collapse'; import * as i23 from '@angular/common'; import * as i12 from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router'; import * as i26 from '@swimlane/ngx-charts'; import * as i29 from 'ng-zorro-antd/space'; import * as i30 from 'ng-zorro-antd/icon'; import * as i31 from 'ng-zorro-antd/divider'; import * as i32 from 'ng-zorro-antd/dropdown'; import * as i33 from 'ng-zorro-antd/input'; import * as i35 from 'ng-zorro-antd/auto-complete'; import * as i37 from 'ng-zorro-antd/grid'; import * as i39 from 'ng-zorro-antd/alert'; import * as i42 from 'ng-zorro-antd/form'; import * as i43 from 'ng-zorro-antd/checkbox'; import * as i44 from 'ng-zorro-antd/spin'; import * as i45 from 'ng-zorro-antd/descriptions'; import * as i46 from 'ng-zorro-antd/tooltip'; import * as i47 from 'ng-zorro-antd/comment'; import * as i48 from 'ng-zorro-antd/avatar'; import * as i49 from 'ng-zorro-antd/list'; import * as i50 from 'ng-zorro-antd/switch'; import * as i51 from 'ng-zorro-antd/page-header'; import * as i52 from 'ng-zorro-antd/result'; declare class InputTagsComponent implements AfterViewInit { private _cd; rawTags: string[]; set value(values: string[]); placeholder: string; update: EventEmitter>; selectComponent: NzSelectComponent; inputTag: ElementRef; filteredTags: string[]; currentTag: string; inputTagValid: boolean; values: string[]; constructor(_cd: ChangeDetectorRef); addItem(): void; onSelectedTagsChange(data: Array): void; emitValuesChanged(): void; onSelectOpen(state: boolean): void; onChangeTagInput(value: string): void; updateInputTagValidity(): void; onKeyDownTagInput(e: KeyboardEvent): void; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ErrorMessageComponent implements OnChanges { private _cd; data: HttpErrorResponse | string; text: string; constructor(_cd: ChangeDetectorRef); ngOnChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LoaderComponent { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class VMTaskState { label: string; color: string; value: number; key: string; } declare class ChartTaskStatesComponent implements OnChanges { data: VMTaskState[]; dataset: any[]; view: any[]; colorScheme: { domain: any[]; }; constructor(); ngOnChanges(): void; generateChart(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class Template { name: string; description: string; long_description: string; blocked: boolean; auto_runnable: boolean; allow_all_resolver_usernames: boolean; allow_task_start_over: boolean; allowed_resolver_usernames: string[]; allowed_resolver_groups: string[]; doc_link: string; inputs: any[]; resolver_inputs: any[]; steps?: any[]; } declare class ResolutionStep { action: any; children: any[]; children_steps: string[]; children_steps_map: { [map: string]: boolean; }; conditions: any[]; custom_states: string[]; dependencies: string[]; description: string; error: string; foreach: string; idempotent: boolean; json_schema: any[]; last_run: Date; max_retries: number; name: string; resources: string[]; retry_pattern: string; state: string; tags: { [tag: string]: boolean; }; try_count: number; } declare enum TaskType { all = "all", own = "own", resolvable = "resolvable" } declare enum TaskState { BLOCKED = "BLOCKED", CANCELLED = "CANCELLED", DONE = "DONE", RUNNING = "RUNNING", TODO = "TODO", WONTFIX = "WONTFIX", WAITING = "WAITING", DELAYED = "DELAYED" } declare class Comment { content: string; created: Date; id: string; updated: Date; username: string; } declare class Error { error: string; step: string; } declare class ResolverInput { name: string; description: string; regex: string; legal_values: any[]; collection: boolean; type: string; optional: boolean; default: any; } declare class Task { batch: string; comments: Comment[]; created: Date; errors: Error[]; id: string; input: any; last_activity: Date; last_start: Date; last_stop: Date; requester_username: string; resolver_usernames: string[]; resolver_groups: string[]; resolution: string; resolver_username: string; result: any; state: string; steps_done: number; steps_total: number; template_name: string; title: string; watcher_usernames: string[]; watcher_groups: string[]; tags: { [key: string]: string; }; resolver_inputs: ResolverInput[]; constructor(init?: Partial); } declare class Stats { task_states: { [state: string]: number; }; } declare class Function$1 { name: string; action: any; pre_hook: any; conditions: any; custom_states: any; } declare class Meta { application_name: string; user_is_admin: boolean; username: string; user_groups: string[]; constructor(init?: Partial); } declare class ParamsListTasks { page_size?: number; tag?: string[]; type: TaskType; last?: string; state?: TaskState; template?: string; static equals(a: ParamsListTasks, b: ParamsListTasks): boolean; } declare class NewTask { comment: string; delay: string; input: any; tags: { [key: string]: string; }; template_name: string; watcher_usernames: string[]; watcher_groups: string[]; } declare class UpdatedTask { input: any; tags: { [key: string]: string; }; watcher_usernames: string[]; watcher_groups: string[]; } declare class ApiServiceComment { private _http; private _base; constructor(_http: HttpClient, _base: string); add(taskId: string, content: string): Observable; } declare class ApiServiceTask { private http; private base; comment: ApiServiceComment; constructor(http: HttpClient, base: string); list(params: ParamsListTasks): Observable>>; add(body: NewTask): Observable; update(id: string, body: UpdatedTask): Observable; updateAsYaml(id: string, yaml: string): Observable; delete(id: string): Observable; reject(id: string): Observable; get(id: string): Observable; getAsYaml(id: string): Observable; } declare class ParamsListTemplates { page_size?: number; last?: string; } declare class ApiServiceTemplate { private _http; private _base; constructor(_http: HttpClient, _base: string); list(params: ParamsListTemplates): Observable>; get(name: string): Observable