UNPKG

1.16 kBTypeScriptView Raw
1import { OnEvent } from "@atomist/automation-client/lib/onEvent";
2import { OnAnySdmGoalSet } from "../../../typings/types";
3import { SoftwareDeliveryMachine } from "../../machine/SoftwareDeliveryMachine";
4import { SoftwareDeliveryMachineConfiguration } from "../../machine/SoftwareDeliveryMachineOptions";
5import { Goal, GoalDefinition } from "../Goal";
6import { FulfillableGoal, FulfillableGoalDetails } from "../GoalWithFulfillment";
7/**
8 * Options to configure the Queue goal
9 */
10export interface QueueOptions {
11 concurrent?: number;
12 fetch?: number;
13}
14export declare const DefaultQueueOptions: QueueOptions;
15/**
16 * Goal to queue current goal set until it is the first in the list and can execute
17 */
18export declare class Queue extends FulfillableGoal {
19 private readonly options;
20 constructor(options?: FulfillableGoalDetails & QueueOptions, ...dependsOn: Goal[]);
21 register(sdm: SoftwareDeliveryMachine): void;
22}
23export declare function handleSdmGoalSetEvent(options: QueueOptions, definition: GoalDefinition, configuration: SoftwareDeliveryMachineConfiguration): OnEvent<OnAnySdmGoalSet.Subscription>;
24//# sourceMappingURL=Queue.d.ts.map
\No newline at end of file