1 | import { Configuration } from "@atomist/automation-client/lib/configuration";
|
2 | import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
|
3 | import { ProjectOperationCredentials } from "@atomist/automation-client/lib/operations/common/ProjectOperationCredentials";
|
4 | import { RemoteRepoRef } from "@atomist/automation-client/lib/operations/common/RepoId";
|
5 | import { AddressChannels } from "../../api/context/addressChannels";
|
6 | import { ParameterPromptFactory } from "../../api/context/parameterPrompt";
|
7 | import { PreferenceStore, PreferenceStoreFactory } from "../../api/context/preferenceStore";
|
8 | import { EnrichGoal } from "../../api/goal/enrichGoal";
|
9 | import { Goals } from "../../api/goal/Goals";
|
10 | import { SdmGoalMessage } from "../../api/goal/SdmGoalMessage";
|
11 | import { GoalImplementationMapper } from "../../api/goal/support/GoalImplementationMapper";
|
12 | import { GoalSetTag, TagGoalSet } from "../../api/goal/tagGoalSet";
|
13 | import { GoalsSetListener } from "../../api/listener/GoalsSetListener";
|
14 | import { PushListenerInvocation } from "../../api/listener/PushListener";
|
15 | import { GoalSetter } from "../../api/mapping/GoalSetter";
|
16 | import { ProjectLoader } from "../../spi/project/ProjectLoader";
|
17 | import { RepoRefResolver } from "../../spi/repo-ref/RepoRefResolver";
|
18 | import { PushFields } from "../../typings/types";
|
19 |
|
20 |
|
21 |
|
22 | export interface ChooseAndSetGoalsRules {
|
23 | projectLoader: ProjectLoader;
|
24 | repoRefResolver: RepoRefResolver;
|
25 | goalsListeners: GoalsSetListener[];
|
26 | goalSetter: GoalSetter;
|
27 | implementationMapping: GoalImplementationMapper;
|
28 | enrichGoal?: EnrichGoal;
|
29 | tagGoalSet?: TagGoalSet;
|
30 | preferencesFactory?: PreferenceStoreFactory;
|
31 | parameterPromptFactory?: ParameterPromptFactory<any>;
|
32 | }
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | export declare function chooseAndSetGoals(rules: ChooseAndSetGoalsRules, parameters: {
|
40 | context: HandlerContext;
|
41 | credentials: ProjectOperationCredentials;
|
42 | push: PushFields.Fragment;
|
43 | }): Promise<Goals | undefined>;
|
44 | export declare function determineGoals(rules: {
|
45 | projectLoader: ProjectLoader;
|
46 | repoRefResolver: RepoRefResolver;
|
47 | goalSetter: GoalSetter;
|
48 | implementationMapping: GoalImplementationMapper;
|
49 | enrichGoal: EnrichGoal;
|
50 | tagGoalSet?: TagGoalSet;
|
51 | }, circumstances: {
|
52 | credentials: ProjectOperationCredentials;
|
53 | id: RemoteRepoRef;
|
54 | context: HandlerContext;
|
55 | configuration: Configuration;
|
56 | push: PushFields.Fragment;
|
57 | addressChannels: AddressChannels;
|
58 | preferences?: PreferenceStore;
|
59 | goalSetId: string;
|
60 | }): Promise<{
|
61 | determinedGoals: Goals | undefined;
|
62 | goalsToSave: SdmGoalMessage[];
|
63 | tags: GoalSetTag[];
|
64 | }>;
|
65 | export declare function planGoals(goals: Goals, pli: PushListenerInvocation): Promise<Goals>;
|
66 |
|
\ | No newline at end of file |