@capraconsulting/cals-cli 2.25.22 → 2.25.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/lib/cache.d.ts +27 -27
  2. package/lib/cals-cli.d.ts +1 -1
  3. package/lib/cals-cli.js +2748 -2748
  4. package/lib/cli/commands/definition/dump-setup.d.ts +3 -3
  5. package/lib/cli/commands/definition/util.d.ts +6 -6
  6. package/lib/cli/commands/definition/util.test.d.ts +1 -1
  7. package/lib/cli/commands/definition/validate.d.ts +3 -3
  8. package/lib/cli/commands/definition.d.ts +3 -3
  9. package/lib/cli/commands/delete-cache.d.ts +3 -3
  10. package/lib/cli/commands/getting-started.d.ts +3 -3
  11. package/lib/cli/commands/github/analyze-directory.d.ts +3 -3
  12. package/lib/cli/commands/github/configure.d.ts +3 -3
  13. package/lib/cli/commands/github/generate-clone-commands.d.ts +3 -3
  14. package/lib/cli/commands/github/list-pull-requests-stats.d.ts +3 -3
  15. package/lib/cli/commands/github/list-repos.d.ts +3 -3
  16. package/lib/cli/commands/github/list-webhooks.d.ts +3 -3
  17. package/lib/cli/commands/github/set-token.d.ts +3 -3
  18. package/lib/cli/commands/github/sync.d.ts +9 -9
  19. package/lib/cli/commands/github/util.d.ts +3 -3
  20. package/lib/cli/commands/github.d.ts +3 -3
  21. package/lib/cli/commands/snyk/report.d.ts +3 -3
  22. package/lib/cli/commands/snyk/set-token.d.ts +3 -3
  23. package/lib/cli/commands/snyk/sync.d.ts +3 -3
  24. package/lib/cli/commands/snyk.d.ts +3 -3
  25. package/lib/cli/index.d.ts +1 -1
  26. package/lib/cli/index.test.d.ts +1 -1
  27. package/lib/cli/reporter.d.ts +27 -27
  28. package/lib/cli/util.d.ts +11 -11
  29. package/lib/config.d.ts +14 -14
  30. package/lib/definition/definition.d.ts +13 -13
  31. package/lib/definition/definition.test.d.ts +1 -1
  32. package/lib/definition/index.d.ts +2 -2
  33. package/lib/definition/types.d.ts +78 -78
  34. package/lib/git/GitRepo.d.ts +31 -31
  35. package/lib/git/util.d.ts +16 -16
  36. package/lib/git/util.test.d.ts +1 -1
  37. package/lib/github/changeset/changeset.d.ts +21 -21
  38. package/lib/github/changeset/execute.d.ts +10 -10
  39. package/lib/github/changeset/types.d.ts +93 -93
  40. package/lib/github/index.d.ts +2 -2
  41. package/lib/github/service.d.ts +91 -91
  42. package/lib/github/token.d.ts +11 -11
  43. package/lib/github/types.d.ts +85 -85
  44. package/lib/github/util.d.ts +8 -8
  45. package/lib/index.d.ts +14 -14
  46. package/lib/index.es.js +1519 -1519
  47. package/lib/index.js +1519 -1519
  48. package/lib/load-secrets/index.d.ts +2 -2
  49. package/lib/load-secrets/load-secrets.d.ts +7 -7
  50. package/lib/load-secrets/types.d.ts +22 -22
  51. package/lib/snyk/index.d.ts +3 -3
  52. package/lib/snyk/service.d.ts +21 -21
  53. package/lib/snyk/token.d.ts +11 -11
  54. package/lib/snyk/types.d.ts +27 -27
  55. package/lib/snyk/util.d.ts +3 -3
  56. package/lib/snyk/util.test.d.ts +1 -1
  57. package/lib/sonarcloud/index.d.ts +2 -2
  58. package/lib/sonarcloud/service.d.ts +33 -33
  59. package/lib/sonarcloud/token.d.ts +8 -8
  60. package/lib/testing/executor.d.ts +25 -25
  61. package/lib/testing/index.d.ts +2 -2
  62. package/lib/testing/lib.d.ts +64 -64
  63. package/package.json +7 -7
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,6 +1,6 @@
1
- /**
2
- * Reorder a list to preserve same order as it had previously.
3
- *
4
- * Not a very pretty algorithm but it works for us.
5
- */
6
- export declare function reorderListToSimilarAsBefore<T>(oldList: T[], updatedList: T[], selector: (item: T) => string, insertLast?: boolean): T[];
1
+ /**
2
+ * Reorder a list to preserve same order as it had previously.
3
+ *
4
+ * Not a very pretty algorithm but it works for us.
5
+ */
6
+ export declare function reorderListToSimilarAsBefore<T>(oldList: T[], updatedList: T[], selector: (item: T) => string, insertLast?: boolean): T[];
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,9 +1,9 @@
1
- import { CommandModule } from "yargs";
2
- import { DefinitionRepo } from "../../../definition/types";
3
- interface Alias {
4
- group: string;
5
- name: string;
6
- }
7
- export declare function getAliases(repo: DefinitionRepo): Alias[];
8
- declare const command: CommandModule;
9
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ import { DefinitionRepo } from "../../../definition/types";
3
+ interface Alias {
4
+ group: string;
5
+ name: string;
6
+ }
7
+ export declare function getAliases(repo: DefinitionRepo): Alias[];
8
+ declare const command: CommandModule;
9
+ export default command;
@@ -1,3 +1,3 @@
1
- import { GitHubService } from "../../../github/service";
2
- import { Reporter } from "../../reporter";
3
- export declare function reportRateLimit(reporter: Reporter, github: GitHubService, block: () => Promise<void>): Promise<void>;
1
+ import { GitHubService } from "../../../github/service";
2
+ import { Reporter } from "../../reporter";
3
+ export declare function reportRateLimit(reporter: Reporter, github: GitHubService, block: () => Promise<void>): Promise<void>;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1,3 +1,3 @@
1
- import { CommandModule } from "yargs";
2
- declare const command: CommandModule;
3
- export default command;
1
+ import { CommandModule } from "yargs";
2
+ declare const command: CommandModule;
3
+ export default command;
@@ -1 +1 @@
1
- export declare function main(): Promise<void>;
1
+ export declare function main(): Promise<void>;
@@ -1 +1 @@
1
- import "./";
1
+ import "./";
@@ -1,27 +1,27 @@
1
- /// <reference types="node" />
2
- import chalk from "chalk";
3
- export declare class Reporter {
4
- constructor(opts?: {
5
- nonInteractive?: boolean;
6
- verbose?: boolean;
7
- });
8
- stdout: NodeJS.WriteStream & {
9
- fd: 1;
10
- };
11
- stderr: NodeJS.WriteStream & {
12
- fd: 2;
13
- };
14
- stdin: NodeJS.ReadStream & {
15
- fd: 0;
16
- };
17
- isTTY: boolean;
18
- nonInteractive: boolean;
19
- isVerbose: boolean;
20
- format: typeof chalk;
21
- startTime: number;
22
- error(msg: string): void;
23
- log(msg: string): void;
24
- warn(msg: string): void;
25
- success(msg: string): void;
26
- info(msg: string): void;
27
- }
1
+ /// <reference types="node" />
2
+ import chalk from "chalk";
3
+ export declare class Reporter {
4
+ constructor(opts?: {
5
+ nonInteractive?: boolean;
6
+ verbose?: boolean;
7
+ });
8
+ stdout: NodeJS.WriteStream & {
9
+ fd: 1;
10
+ };
11
+ stderr: NodeJS.WriteStream & {
12
+ fd: 2;
13
+ };
14
+ stdin: NodeJS.ReadStream & {
15
+ fd: 0;
16
+ };
17
+ isTTY: boolean;
18
+ nonInteractive: boolean;
19
+ isVerbose: boolean;
20
+ format: typeof chalk;
21
+ startTime: number;
22
+ error(msg: string): void;
23
+ log(msg: string): void;
24
+ warn(msg: string): void;
25
+ success(msg: string): void;
26
+ info(msg: string): void;
27
+ }
package/lib/cli/util.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { Arguments, Options } from "yargs";
2
- import { CacheProvider } from "../cache";
3
- import { Config } from "../config";
4
- import { DefinitionFile } from "../definition/definition";
5
- import { Reporter } from "./reporter";
6
- export declare function createReporter(argv: Record<string, unknown>): Reporter;
7
- export declare function createCacheProvider(config: Config, argv: Record<string, unknown>): CacheProvider;
8
- export declare function createConfig(): Config;
9
- export declare const definitionFileOptionName = "definition-file";
10
- export declare const definitionFileOptionValue: Options;
11
- export declare function getDefinitionFile(argv: Arguments): DefinitionFile;
1
+ import { Arguments, Options } from "yargs";
2
+ import { CacheProvider } from "../cache";
3
+ import { Config } from "../config";
4
+ import { DefinitionFile } from "../definition/definition";
5
+ import { Reporter } from "./reporter";
6
+ export declare function createReporter(argv: Record<string, unknown>): Reporter;
7
+ export declare function createCacheProvider(config: Config, argv: Record<string, unknown>): CacheProvider;
8
+ export declare function createConfig(): Config;
9
+ export declare const definitionFileOptionName = "definition-file";
10
+ export declare const definitionFileOptionValue: Options;
11
+ export declare function getDefinitionFile(argv: Arguments): DefinitionFile;
package/lib/config.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- /// <reference types="node" />
2
- import https from "https";
3
- export declare class Config {
4
- cwd: string;
5
- configFile: string;
6
- cacheDir: string;
7
- agent: https.Agent;
8
- private configCached?;
9
- private get config();
10
- private readConfig;
11
- getConfig(key: string): string | undefined;
12
- requireConfig(key: string): string;
13
- updateConfig(key: string, value?: string): void;
14
- }
1
+ /// <reference types="node" />
2
+ import https from "https";
3
+ export declare class Config {
4
+ cwd: string;
5
+ configFile: string;
6
+ cacheDir: string;
7
+ agent: https.Agent;
8
+ private configCached?;
9
+ private get config();
10
+ private readConfig;
11
+ getConfig(key: string): string | undefined;
12
+ requireConfig(key: string): string;
13
+ updateConfig(key: string, value?: string): void;
14
+ }
@@ -1,13 +1,13 @@
1
- import schema from "../definition-schema.json";
2
- import { Definition, GetReposResponse } from "./types";
3
- export { schema };
4
- export declare function getRepoId(orgName: string, repoName: string): string;
5
- export declare class DefinitionFile {
6
- private path;
7
- constructor(path: string);
8
- getContents(): Promise<string>;
9
- getDefinition(): Promise<Definition>;
10
- }
11
- export declare function parseDefinition(value: string): Definition;
12
- export declare function getRepos(definition: Definition): GetReposResponse[];
13
- export declare function getGitHubOrgs(definition: Definition): string[];
1
+ import schema from "../definition-schema.json";
2
+ import { Definition, GetReposResponse } from "./types";
3
+ export { schema };
4
+ export declare function getRepoId(orgName: string, repoName: string): string;
5
+ export declare class DefinitionFile {
6
+ private path;
7
+ constructor(path: string);
8
+ getContents(): Promise<string>;
9
+ getDefinition(): Promise<Definition>;
10
+ }
11
+ export declare function parseDefinition(value: string): Definition;
12
+ export declare function getRepos(definition: Definition): GetReposResponse[];
13
+ export declare function getGitHubOrgs(definition: Definition): string[];
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,2 +1,2 @@
1
- export { DefinitionFile, getGitHubOrgs, getRepoId, getRepos, parseDefinition, } from "./definition";
2
- export { Definition, DefinitionRepo, GetReposResponse, Project, RepoTeam, } from "./types";
1
+ export { DefinitionFile, getGitHubOrgs, getRepoId, getRepos, parseDefinition, } from "./definition";
2
+ export { Definition, DefinitionRepo, GetReposResponse, Project, RepoTeam, } from "./types";
@@ -1,78 +1,78 @@
1
- import { Permission } from "../github/types";
2
- export interface Definition {
3
- snyk?: {
4
- accountId: string;
5
- };
6
- github: {
7
- users: User[];
8
- teams: {
9
- organization: string;
10
- teams: Team[];
11
- }[];
12
- };
13
- projects: Project[];
14
- }
15
- export interface Project {
16
- name: string;
17
- github: {
18
- organization: string;
19
- repos?: DefinitionRepo[];
20
- teams?: RepoTeam[];
21
- }[];
22
- tags?: string[];
23
- /**
24
- * Some external-defined entity being responsible for the project.
25
- */
26
- responsible?: string;
27
- }
28
- export type User = UserBot | UserEmployee | UserExternal;
29
- export interface UserBot {
30
- type: "bot";
31
- login: string;
32
- name: string;
33
- }
34
- export interface UserEmployee {
35
- type: "employee";
36
- login: string;
37
- capraUsername: string;
38
- name: string;
39
- }
40
- export interface UserExternal {
41
- type: "external";
42
- login: string;
43
- name: string;
44
- }
45
- export interface DefinitionRepo {
46
- name: string;
47
- previousNames?: DefinitionRepoPreviousName[];
48
- archived?: boolean;
49
- issues?: boolean;
50
- wiki?: boolean;
51
- teams?: RepoTeam[];
52
- snyk?: boolean;
53
- public?: boolean;
54
- /**
55
- * Some external-defined entity being responsible for the repository.
56
- *
57
- * Will override the project-defined responsible.
58
- */
59
- responsible?: string;
60
- }
61
- export interface DefinitionRepoPreviousName {
62
- name: string;
63
- project: string;
64
- }
65
- export interface RepoTeam {
66
- name: string;
67
- permission: Permission;
68
- }
69
- export interface Team {
70
- name: string;
71
- members: string[];
72
- }
73
- export interface GetReposResponse {
74
- id: string;
75
- orgName: string;
76
- project: Project;
77
- repo: DefinitionRepo;
78
- }
1
+ import { Permission } from "../github/types";
2
+ export interface Definition {
3
+ snyk?: {
4
+ accountId: string;
5
+ };
6
+ github: {
7
+ users: User[];
8
+ teams: {
9
+ organization: string;
10
+ teams: Team[];
11
+ }[];
12
+ };
13
+ projects: Project[];
14
+ }
15
+ export interface Project {
16
+ name: string;
17
+ github: {
18
+ organization: string;
19
+ repos?: DefinitionRepo[];
20
+ teams?: RepoTeam[];
21
+ }[];
22
+ tags?: string[];
23
+ /**
24
+ * Some external-defined entity being responsible for the project.
25
+ */
26
+ responsible?: string;
27
+ }
28
+ export type User = UserBot | UserEmployee | UserExternal;
29
+ export interface UserBot {
30
+ type: "bot";
31
+ login: string;
32
+ name: string;
33
+ }
34
+ export interface UserEmployee {
35
+ type: "employee";
36
+ login: string;
37
+ capraUsername: string;
38
+ name: string;
39
+ }
40
+ export interface UserExternal {
41
+ type: "external";
42
+ login: string;
43
+ name: string;
44
+ }
45
+ export interface DefinitionRepo {
46
+ name: string;
47
+ previousNames?: DefinitionRepoPreviousName[];
48
+ archived?: boolean;
49
+ issues?: boolean;
50
+ wiki?: boolean;
51
+ teams?: RepoTeam[];
52
+ snyk?: boolean;
53
+ public?: boolean;
54
+ /**
55
+ * Some external-defined entity being responsible for the repository.
56
+ *
57
+ * Will override the project-defined responsible.
58
+ */
59
+ responsible?: string;
60
+ }
61
+ export interface DefinitionRepoPreviousName {
62
+ name: string;
63
+ project: string;
64
+ }
65
+ export interface RepoTeam {
66
+ name: string;
67
+ permission: Permission;
68
+ }
69
+ export interface Team {
70
+ name: string;
71
+ members: string[];
72
+ }
73
+ export interface GetReposResponse {
74
+ id: string;
75
+ orgName: string;
76
+ project: Project;
77
+ repo: DefinitionRepo;
78
+ }
@@ -1,31 +1,31 @@
1
- import { ExecaReturnValue } from "execa";
2
- export declare enum CloneType {
3
- HTTPS = 0,
4
- SSH = 1
5
- }
6
- export interface UpdateResult {
7
- dirty: boolean;
8
- updated: boolean;
9
- updatedRange?: {
10
- from: string;
11
- to: string;
12
- };
13
- }
14
- export declare class GitRepo {
15
- private readonly path;
16
- private readonly logCommand;
17
- constructor(path: string, logCommand: (result: ExecaReturnValue) => Promise<void>);
18
- cloneGitHubRepo(org: string, name: string, cloneType: CloneType): Promise<void>;
19
- private git;
20
- getCurrentBranch(): Promise<string>;
21
- hasChangesInProgress(): Promise<boolean>;
22
- hasUnpushedCommits(): Promise<boolean>;
23
- getAuthorsForRange(range: {
24
- from: string;
25
- to: string;
26
- }): Promise<{
27
- name: string;
28
- count: number;
29
- }[]>;
30
- update(): Promise<UpdateResult>;
31
- }
1
+ import { ExecaReturnValue } from "execa";
2
+ export declare enum CloneType {
3
+ HTTPS = 0,
4
+ SSH = 1
5
+ }
6
+ export interface UpdateResult {
7
+ dirty: boolean;
8
+ updated: boolean;
9
+ updatedRange?: {
10
+ from: string;
11
+ to: string;
12
+ };
13
+ }
14
+ export declare class GitRepo {
15
+ private readonly path;
16
+ private readonly logCommand;
17
+ constructor(path: string, logCommand: (result: ExecaReturnValue) => Promise<void>);
18
+ cloneGitHubRepo(org: string, name: string, cloneType: CloneType): Promise<void>;
19
+ private git;
20
+ getCurrentBranch(): Promise<string>;
21
+ hasChangesInProgress(): Promise<boolean>;
22
+ hasUnpushedCommits(): Promise<boolean>;
23
+ getAuthorsForRange(range: {
24
+ from: string;
25
+ to: string;
26
+ }): Promise<{
27
+ name: string;
28
+ count: number;
29
+ }[]>;
30
+ update(): Promise<UpdateResult>;
31
+ }
package/lib/git/util.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- export declare function wasUpdated(output: string): boolean;
2
- export declare function getUpdateRange(output: string): {
3
- from: string;
4
- to: string;
5
- } | null;
6
- export declare function getCompareLink(range: {
7
- from: string;
8
- to: string;
9
- }, owner: string, name: string): string;
10
- /**
11
- * Parse output from `git shortlog -c`.
12
- */
13
- export declare function parseShortlogSummary(value: string): {
14
- name: string;
15
- count: number;
16
- }[];
1
+ export declare function wasUpdated(output: string): boolean;
2
+ export declare function getUpdateRange(output: string): {
3
+ from: string;
4
+ to: string;
5
+ } | null;
6
+ export declare function getCompareLink(range: {
7
+ from: string;
8
+ to: string;
9
+ }, owner: string, name: string): string;
10
+ /**
11
+ * Parse output from `git shortlog -c`.
12
+ */
13
+ export declare function parseShortlogSummary(value: string): {
14
+ name: string;
15
+ count: number;
16
+ }[];
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,21 +1,21 @@
1
- import { Definition } from "../../definition/types";
2
- import { GitHubService } from "../service";
3
- import { OrgsGetResponse } from "../types";
4
- import { ChangeSetItem } from "./types";
5
- /**
6
- * Generate change set items for projects.
7
- */
8
- export declare function createChangeSetItemsForProjects(github: GitHubService, definition: Definition, limitToOrg: string | undefined): Promise<ChangeSetItem[]>;
9
- /**
10
- * Generate change set items for organization members.
11
- */
12
- export declare function createChangeSetItemsForMembers(github: GitHubService, definition: Definition, org: OrgsGetResponse): Promise<ChangeSetItem[]>;
13
- /**
14
- * Generate change set items for organization teams.
15
- */
16
- export declare function createChangeSetItemsForTeams(github: GitHubService, definition: Definition, org: OrgsGetResponse): Promise<ChangeSetItem[]>;
17
- /**
18
- * Remove redundant change set items due to effects by other
19
- * change set items.
20
- */
21
- export declare function cleanupChangeSetItems(items: ChangeSetItem[]): ChangeSetItem[];
1
+ import { Definition } from "../../definition/types";
2
+ import { GitHubService } from "../service";
3
+ import { OrgsGetResponse } from "../types";
4
+ import { ChangeSetItem } from "./types";
5
+ /**
6
+ * Generate change set items for projects.
7
+ */
8
+ export declare function createChangeSetItemsForProjects(github: GitHubService, definition: Definition, limitToOrg: string | undefined): Promise<ChangeSetItem[]>;
9
+ /**
10
+ * Generate change set items for organization members.
11
+ */
12
+ export declare function createChangeSetItemsForMembers(github: GitHubService, definition: Definition, org: OrgsGetResponse): Promise<ChangeSetItem[]>;
13
+ /**
14
+ * Generate change set items for organization teams.
15
+ */
16
+ export declare function createChangeSetItemsForTeams(github: GitHubService, definition: Definition, org: OrgsGetResponse): Promise<ChangeSetItem[]>;
17
+ /**
18
+ * Remove redundant change set items due to effects by other
19
+ * change set items.
20
+ */
21
+ export declare function cleanupChangeSetItems(items: ChangeSetItem[]): ChangeSetItem[];