## API Report File for "@angular-devkit/architect" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts import { BaseException } from '@angular-devkit/core'; import { json } from '@angular-devkit/core'; import { JsonObject } from '@angular-devkit/core'; import { JsonValue } from '@angular-devkit/core'; import { logging } from '@angular-devkit/core'; import { Observable } from 'rxjs'; import { ObservableInput } from 'rxjs'; import { Observer } from 'rxjs'; import { schema } from '@angular-devkit/core'; // @public (undocumented) export class Architect { constructor(_host: ArchitectHost, registry?: json.schema.SchemaRegistry, additionalJobRegistry?: Registry); // (undocumented) has(name: JobName): Observable; // (undocumented) scheduleBuilder(name: string, options: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise; // (undocumented) scheduleTarget(target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions): Promise; } // @public export interface Builder { // (undocumented) [BuilderSymbol]: true; // (undocumented) [BuilderVersionSymbol]: string; // (undocumented) __OptionT: OptionT; // (undocumented) handler: JobHandler; } // @public export interface BuilderContext { addTeardown(teardown: () => Promise | void): void; builder: BuilderInfo; currentDirectory: string; getBuilderNameForTarget(target: Target): Promise; // (undocumented) getProjectMetadata(projectName: string): Promise; // (undocumented) getProjectMetadata(target: Target): Promise; getTargetOptions(target: Target): Promise; id: number; logger: logging.LoggerApi; reportProgress(current: number, total?: number, status?: string): void; reportRunning(): void; reportStatus(status: string): void; scheduleBuilder(builderName: string, options?: json.JsonObject, scheduleOptions?: ScheduleOptions_2): Promise; scheduleTarget(target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions_2): Promise; target?: Target; validateOptions(options: json.JsonObject, builderName: string): Promise; workspaceRoot: string; } // @public export interface BuilderHandlerFn { (input: A, context: BuilderContext): BuilderOutputLike; } // @public export type BuilderInfo = json.JsonObject & { builderName: string; description: string; optionSchema: json.schema.JsonSchema; }; // @public export type BuilderInput = json.JsonObject & Schema; // @public (undocumented) export type BuilderOutput = json.JsonObject & Schema_2; // @public export type BuilderOutputLike = ObservableInput | BuilderOutput; // @public (undocumented) export type BuilderProgress = json.JsonObject & Schema_3 & TypedBuilderProgress; // @public export type BuilderProgressReport = BuilderProgress & { target?: Target; builder: BuilderInfo; }; // @public (undocumented) export enum BuilderProgressState { // (undocumented) Error = "error", // (undocumented) Running = "running", // (undocumented) Stopped = "stopped", // (undocumented) Waiting = "waiting" } // @public (undocumented) export type BuilderRegistry = Registry; // @public export interface BuilderRun { id: number; info: BuilderInfo; lastOutput: Promise; output: Observable; progress: Observable; result: Promise; stop(): Promise; } // @public (undocumented) class ChannelAlreadyExistException extends BaseException { constructor(name: string); } // @public (undocumented) export function createBuilder(fn: BuilderHandlerFn): Builder; // @public function createDispatcher(options?: Partial>): JobDispatcher; // @public function createJobFactory(loader: () => Promise>, options?: Partial): JobHandler; // @public function createJobHandler(fn: SimpleJobHandlerFn, options?: Partial): JobHandler; // @public function createLoggerJob(job: JobHandler, logger: logging.LoggerApi): JobHandler; // @public class FallbackRegistry implements Registry { constructor(_fallbacks?: Registry[]); // (undocumented) addFallback(registry: Registry): void; // (undocumented) protected _fallbacks: Registry[]; // (undocumented) get(name: JobName): Observable | null>; } // @public (undocumented) export function fromAsyncIterable(iterable: AsyncIterable): Observable; // @public (undocumented) export function isBuilderOutput(obj: any): obj is BuilderOutput; // @public (undocumented) function isJobHandler(value: unknown): value is JobHandler; // @public interface Job { readonly argument: ArgumentT; readonly description: Observable; getChannel(name: string, schema?: schema.JsonSchema): Observable; readonly inboundBus: Observer>; readonly input: Observer; readonly outboundBus: Observable>; readonly output: Observable; ping(): Observable; readonly state: JobState; stop(): void; } // @public (undocumented) class JobArgumentSchemaValidationError extends schema.SchemaValidationException { constructor(errors?: schema.SchemaValidatorError[]); } // @public interface JobDescription extends JsonObject { // (undocumented) readonly argument: DeepReadonly; // (undocumented) readonly input: DeepReadonly; // (undocumented) readonly name: JobName; // (undocumented) readonly output: DeepReadonly; } // @public interface JobDispatcher extends JobHandler { addConditionalJob(predicate: (args: A) => boolean, name: string): void; setDefaultJob(name: JobName | null | JobHandler): void; } // @public (undocumented) class JobDoesNotExistException extends BaseException { constructor(name: JobName); } // @public interface JobHandler { // (undocumented) (argument: ArgT, context: JobHandlerContext): Observable>; // (undocumented) jobDescription: Partial; } // @public interface JobHandlerContext { // (undocumented) readonly dependencies: Job[]; // (undocumented) readonly description: JobDescription; // (undocumented) readonly inboundBus: Observable>; // (undocumented) readonly scheduler: Scheduler_2; } // @public (undocumented) type JobInboundMessage = JobInboundMessagePing | JobInboundMessageStop | JobInboundMessageInput; // @public interface JobInboundMessageBase extends JsonObject { readonly kind: JobInboundMessageKind; } // @public interface JobInboundMessageInput extends JobInboundMessageBase { // (undocumented) readonly kind: JobInboundMessageKind.Input; readonly value: InputT; } // @public enum JobInboundMessageKind { // (undocumented) Input = "in", // (undocumented) Ping = "ip", // (undocumented) Stop = "is" } // @public interface JobInboundMessagePing extends JobInboundMessageBase { readonly id: number; // (undocumented) readonly kind: JobInboundMessageKind.Ping; } // @public (undocumented) class JobInboundMessageSchemaValidationError extends schema.SchemaValidationException { constructor(errors?: schema.SchemaValidatorError[]); } // @public interface JobInboundMessageStop extends JobInboundMessageBase { // (undocumented) readonly kind: JobInboundMessageKind.Stop; } // @public type JobName = string; // @public (undocumented) class JobNameAlreadyRegisteredException extends BaseException { constructor(name: JobName); } // @public type JobOutboundMessage = JobOutboundMessageOnReady | JobOutboundMessageStart | JobOutboundMessageOutput | JobOutboundMessageChannelCreate | JobOutboundMessageChannelMessage | JobOutboundMessageChannelError | JobOutboundMessageChannelComplete | JobOutboundMessageEnd | JobOutboundMessagePong; // @public interface JobOutboundMessageBase { readonly description: JobDescription; readonly kind: JobOutboundMessageKind; } // @public interface JobOutboundMessageChannelBase extends JobOutboundMessageBase { readonly name: string; } // @public interface JobOutboundMessageChannelComplete extends JobOutboundMessageChannelBase { // (undocumented) readonly kind: JobOutboundMessageKind.ChannelComplete; } // @public interface JobOutboundMessageChannelCreate extends JobOutboundMessageChannelBase { // (undocumented) readonly kind: JobOutboundMessageKind.ChannelCreate; } // @public interface JobOutboundMessageChannelError extends JobOutboundMessageChannelBase { readonly error: JsonValue; // (undocumented) readonly kind: JobOutboundMessageKind.ChannelError; } // @public interface JobOutboundMessageChannelMessage extends JobOutboundMessageChannelBase { // (undocumented) readonly kind: JobOutboundMessageKind.ChannelMessage; readonly message: JsonValue; } // @public interface JobOutboundMessageEnd extends JobOutboundMessageBase { // (undocumented) readonly kind: JobOutboundMessageKind.End; } // @public enum JobOutboundMessageKind { // (undocumented) ChannelComplete = "cc", // (undocumented) ChannelCreate = "cn", // (undocumented) ChannelError = "ce", // (undocumented) ChannelMessage = "cm", // (undocumented) End = "e", // (undocumented) OnReady = "c", // (undocumented) Output = "o", // (undocumented) Pong = "p", // (undocumented) Start = "s" } // @public interface JobOutboundMessageOnReady extends JobOutboundMessageBase { // (undocumented) readonly kind: JobOutboundMessageKind.OnReady; } // @public interface JobOutboundMessageOutput extends JobOutboundMessageBase { // (undocumented) readonly kind: JobOutboundMessageKind.Output; readonly value: OutputT; } // @public interface JobOutboundMessagePong extends JobOutboundMessageBase { readonly id: number; // (undocumented) readonly kind: JobOutboundMessageKind.Pong; } // @public interface JobOutboundMessageStart extends JobOutboundMessageBase { // (undocumented) readonly kind: JobOutboundMessageKind.Start; } // @public (undocumented) class JobOutputSchemaValidationError extends schema.SchemaValidationException { constructor(errors?: schema.SchemaValidatorError[]); } declare namespace jobs { export { strategy, isJobHandler, JobName, JobHandler, JobHandlerContext, JobDescription, JobInboundMessageKind, JobInboundMessageBase, JobInboundMessagePing, JobInboundMessageStop, JobInboundMessageInput, JobInboundMessage, JobOutboundMessageKind, JobOutboundMessageBase, JobOutboundMessageOnReady, JobOutboundMessageStart, JobOutboundMessageOutput, JobOutboundMessageChannelBase, JobOutboundMessageChannelMessage, JobOutboundMessageChannelError, JobOutboundMessageChannelCreate, JobOutboundMessageChannelComplete, JobOutboundMessageEnd, JobOutboundMessagePong, JobOutboundMessage, JobState, Job, ScheduleJobOptions, Registry, Scheduler_2 as Scheduler, createJobHandler, createJobFactory, createLoggerJob, ChannelAlreadyExistException, SimpleJobHandlerContext, SimpleJobHandlerFn, JobNameAlreadyRegisteredException, JobDoesNotExistException, createDispatcher, JobDispatcher, FallbackRegistry, RegisterJobOptions, SimpleJobRegistry, JobArgumentSchemaValidationError, JobInboundMessageSchemaValidationError, JobOutputSchemaValidationError, SimpleScheduler } } export { jobs } // @public enum JobState { Ended = "ended", Errored = "errored", Queued = "queued", Ready = "ready", Started = "started" } // @public (undocumented) type JobStrategy = (handler: JobHandler, options?: Partial>) => JobHandler; // @public function memoize(replayMessages?: boolean): JobStrategy; // @public interface RegisterJobOptions extends Partial { } // @public (undocumented) interface Registry { get(name: JobName): Observable | null>; } // @public function reuse(replayMessages?: boolean): JobStrategy; // @public interface ScheduleJobOptions { dependencies?: Job | Job[]; } // @public (undocumented) export interface ScheduleOptions { // (undocumented) logger?: logging.Logger; } // @public interface Scheduler_2 { getDescription(name: JobName): Observable; has(name: JobName): Observable; pause(): () => void; schedule(name: JobName, argument: A, options?: ScheduleJobOptions): Job; } // @public export function scheduleTargetAndForget(context: BuilderContext, target: Target, overrides?: json.JsonObject, scheduleOptions?: ScheduleOptions_2): Observable; // @public function serialize(): JobStrategy; // @public interface SimpleJobHandlerContext extends JobHandlerContext { // (undocumented) addTeardown(teardown: () => Promise | void): void; // (undocumented) createChannel: (name: string) => Observer; // (undocumented) input: Observable; } // @public type SimpleJobHandlerFn = (input: A, context: SimpleJobHandlerContext) => O | Promise | Observable; // @public class SimpleJobRegistry implements Registry { // (undocumented) get(name: JobName): Observable | null>; getJobNames(): JobName[]; register(name: JobName, handler: JobHandler, options?: RegisterJobOptions): void; register(handler: JobHandler, options?: RegisterJobOptions & { name: string; }): void; // (undocumented) protected _register(name: JobName, handler: JobHandler, options: RegisterJobOptions): void; } // @public class SimpleScheduler implements Scheduler_2 { constructor(_jobRegistry: Registry, _schemaRegistry?: schema.SchemaRegistry); getDescription(name: JobName): Observable; has(name: JobName): Observable; // (undocumented) protected _jobRegistry: Registry; pause(): () => void; schedule(name: JobName, argument: A, options?: ScheduleJobOptions): Job; // (undocumented) protected _scheduleJob(name: JobName, argument: A, options: ScheduleJobOptions, waitable: Observable): Job; // (undocumented) protected _schemaRegistry: schema.SchemaRegistry; } declare namespace strategy { export { serialize, reuse, memoize, JobStrategy } } // @public (undocumented) export type Target = json.JsonObject & Target_2; // @public export function targetFromTargetString(specifier: string, abbreviatedProjectName?: string, abbreviatedTargetName?: string): Target; // @public export function targetStringFromTarget(input: Target): string; // @public export type TypedBuilderProgress = { state: BuilderProgressState.Stopped; } | { state: BuilderProgressState.Error; error: json.JsonValue; } | { state: BuilderProgressState.Waiting; status?: string; } | { state: BuilderProgressState.Running; status?: string; current: number; total?: number; }; // (No @packageDocumentation comment for this package) ```