1 | import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
|
2 | import { ParameterType } from "@atomist/automation-client/lib/SmartParameters";
|
3 | import { CommandRegistration } from "../../../api/registration/CommandRegistration";
|
4 | export declare enum JobTaskType {
|
5 | Command = "command"
|
6 | }
|
7 | export interface JobTask<T extends ParameterType> {
|
8 | type: JobTaskType;
|
9 | parameters: T;
|
10 | }
|
11 |
|
12 |
|
13 |
|
14 | export interface JobDetails<T extends ParameterType> {
|
15 | command: string | CommandRegistration<T>;
|
16 | registration?: string;
|
17 | parameters: T | T[];
|
18 | name?: string;
|
19 | description?: string;
|
20 |
|
21 | concurrentTasks?: number;
|
22 | }
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare function createJob<T extends ParameterType>(details: JobDetails<T>, ctx: HandlerContext): Promise<{
|
35 | id: string;
|
36 | }>;
|
37 |
|
\ | No newline at end of file |