architect.d.ts 1.0 KB

12345678910111213141516171819202122232425
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import { json, logging } from '@angular-devkit/core';
  9. import { Observable } from 'rxjs';
  10. import { BuilderRun, Target } from './api';
  11. import { ArchitectHost } from './internal';
  12. import { JobName, Registry } from './jobs';
  13. export interface ScheduleOptions {
  14. logger?: logging.Logger;
  15. }
  16. export declare class Architect {
  17. private _host;
  18. private readonly _scheduler;
  19. private readonly _jobCache;
  20. private readonly _infoCache;
  21. constructor(_host: ArchitectHost, registry?: json.schema.SchemaRegistry, additionalJobRegistry?: Registry);
  22. has(name: JobName): Observable<boolean>;
  23. scheduleBuilder(name: string, options: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<BuilderRun>;
  24. scheduleTarget(target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise<BuilderRun>;
  25. }