@atomist/sdm
Version:
Atomist Software Delivery Machine SDK
21 lines • 934 B
TypeScript
import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
import { SoftwareDeliveryMachine } from "../../api/machine/SoftwareDeliveryMachine";
import { CommandHandlerRegistration } from "../../api/registration/CommandHandlerRegistration";
import { InProcessSdmGoalSets } from "../../typings/types";
/**
* List all pending goal sets and allow to cancel
* @param sdm
*/
export declare function listPendingGoalSetsCommand(sdm: SoftwareDeliveryMachine): CommandHandlerRegistration<{
msgId: string;
}>;
/**
* Cancel one or all pending goal sets
* @param sdm
*/
export declare function cancelGoalSetsCommand(sdm: SoftwareDeliveryMachine): CommandHandlerRegistration<{
goalSetId: string;
msgId: string;
}>;
export declare function pendingGoalSets(ctx: HandlerContext, name: string, offset?: number, fetch?: number): Promise<InProcessSdmGoalSets.SdmGoalSet[]>;
//# sourceMappingURL=cancelGoals.d.ts.map