@capraconsulting/cals-cli 2.25.4 → 2.25.6
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.
- package/lib/cals-cli.js +2 -2
- package/lib/definition/types.d.ts +1 -1
- package/lib/github/changeset/execute.d.ts +1 -1
- package/lib/github/changeset/types.d.ts +1 -1
- package/lib/github/service.d.ts +1 -1
- package/lib/github/types.d.ts +13 -13
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/load-secrets/types.d.ts +2 -2
- package/package.json +9 -9
package/lib/cals-cli.js
CHANGED
|
@@ -47,7 +47,7 @@ var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
|
47
47
|
var findUp__default = /*#__PURE__*/_interopDefaultLegacy(findUp);
|
|
48
48
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
49
49
|
|
|
50
|
-
var version = "2.25.
|
|
50
|
+
var version = "2.25.6";
|
|
51
51
|
var engines = {
|
|
52
52
|
node: ">=12.0.0"
|
|
53
53
|
};
|
|
@@ -3494,7 +3494,7 @@ async function main() {
|
|
|
3494
3494
|
/ /___/ ___ |/ /______/ /
|
|
3495
3495
|
\\____/_/ |_/_____/____/
|
|
3496
3496
|
cli ${version}
|
|
3497
|
-
built ${"2023-03-
|
|
3497
|
+
built ${"2023-03-20T08:30:49+0000"}
|
|
3498
3498
|
|
|
3499
3499
|
https://github.com/capralifecycle/cals-cli/
|
|
3500
3500
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Reporter } from "../../cli/reporter";
|
|
2
2
|
import { GitHubService } from "../service";
|
|
3
3
|
import { ChangeSetItem, RepoCreateItem, RepoDeleteItem } from "./types";
|
|
4
|
-
|
|
4
|
+
type NotImplementedChangeSetItem = RepoCreateItem | RepoDeleteItem;
|
|
5
5
|
export declare function isNotImplementedChangeSetItem(changeItem: ChangeSetItem): changeItem is NotImplementedChangeSetItem;
|
|
6
6
|
/**
|
|
7
7
|
* Execute a change set.
|
|
@@ -90,4 +90,4 @@ export interface TeamMemberPermissionItem {
|
|
|
90
90
|
* A change set item describes a transition on the end
|
|
91
91
|
* service to become in sync with the desired definition.
|
|
92
92
|
*/
|
|
93
|
-
export
|
|
93
|
+
export type ChangeSetItem = RepoCreateItem | RepoDeleteItem | RepoAttribUpdateItem | RepoTeamPermissionItem | RepoTeamAddItem | RepoTeamRemoveItem | MemberAddItem | MemberRemoveItem | TeamRemoveItem | TeamAddItem | TeamMemberRemoveItem | TeamMemberAddItem | TeamMemberPermissionItem;
|
package/lib/github/service.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ interface SearchedPullRequestListQueryResult {
|
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type SearchedPullRequestListItem = SearchedPullRequestListQueryResult["search"]["edges"][0]["node"];
|
|
43
43
|
interface GitHubServiceProps {
|
|
44
44
|
config: Config;
|
|
45
45
|
octokit: Octokit;
|
package/lib/github/types.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Endpoints } from "@octokit/types";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
2
|
+
export type OrgsGetResponse = Endpoints["GET /orgs/{org}"]["response"]["data"];
|
|
3
|
+
export type OrgsListMembersResponseItem = Exclude<Endpoints["GET /orgs/{org}/members"]["response"]["data"][0], null>;
|
|
4
|
+
export type OrgsListPendingInvitationsResponseItem = Endpoints["GET /orgs/{org}/invitations"]["response"]["data"][0];
|
|
5
|
+
export type ReposGetResponse = Endpoints["GET /repos/{owner}/{repo}"]["response"]["data"];
|
|
6
|
+
export type ReposListTeamsResponseItem = Endpoints["GET /repos/{owner}/{repo}/teams"]["response"]["data"][0];
|
|
7
|
+
export type ReposListHooksResponseItem = Endpoints["GET /repos/{owner}/{repo}/hooks"]["response"]["data"][0];
|
|
8
|
+
export type ReposUpdateParams = Endpoints["PATCH /repos/{owner}/{repo}"]["parameters"];
|
|
9
|
+
export type TeamsListMembersResponseItem = Exclude<Endpoints["GET /teams/{team_id}/members"]["response"]["data"][0], null>;
|
|
10
|
+
export type TeamsListPendingInvitationsResponseItem = Endpoints["GET /teams/{team_id}/invitations"]["response"]["data"][0];
|
|
11
|
+
export type TeamsListResponseItem = Endpoints["GET /orgs/{org}/teams"]["response"]["data"][0];
|
|
12
12
|
export interface Repo {
|
|
13
13
|
name: string;
|
|
14
14
|
owner: {
|
|
@@ -59,8 +59,8 @@ export interface VulnerabilityAlert {
|
|
|
59
59
|
vulnerableVersionRange: string;
|
|
60
60
|
} | null;
|
|
61
61
|
}
|
|
62
|
-
export
|
|
63
|
-
export
|
|
62
|
+
export type Permission = "admin" | "push" | "pull";
|
|
63
|
+
export type TeamMemberOrInvited = {
|
|
64
64
|
type: "member";
|
|
65
65
|
login: string;
|
|
66
66
|
data: TeamsListMembersResponseItem;
|
|
@@ -69,7 +69,7 @@ export declare type TeamMemberOrInvited = {
|
|
|
69
69
|
login: string;
|
|
70
70
|
data: TeamsListPendingInvitationsResponseItem;
|
|
71
71
|
};
|
|
72
|
-
export
|
|
72
|
+
export type OrgMemberOrInvited = {
|
|
73
73
|
type: "member";
|
|
74
74
|
login: string;
|
|
75
75
|
data: OrgsListMembersResponseItem;
|
package/lib/index.es.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var keytar__default = /*#__PURE__*/_interopDefaultLegacy(keytar);
|
|
|
44
44
|
var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
45
45
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
46
46
|
|
|
47
|
-
var version = "2.25.
|
|
47
|
+
var version = "2.25.6";
|
|
48
48
|
|
|
49
49
|
class CacheProvider {
|
|
50
50
|
constructor(config) {
|
|
@@ -2,7 +2,7 @@ export interface BaseSecret {
|
|
|
2
2
|
name: string;
|
|
3
3
|
description?: string;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type JsonSecretSimpleField = string;
|
|
6
6
|
export interface JsonSecretDescribedField {
|
|
7
7
|
key: string;
|
|
8
8
|
description?: string;
|
|
@@ -12,7 +12,7 @@ export interface JsonSecret extends BaseSecret {
|
|
|
12
12
|
type: "json";
|
|
13
13
|
fields: (JsonSecretSimpleField | JsonSecretDescribedField)[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type Secret = JsonSecret;
|
|
16
16
|
export interface SecretGroup {
|
|
17
17
|
accountId: string;
|
|
18
18
|
region: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.6",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "node scripts/create-definition-schema.js && husky install",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"yargs": "^17.5.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@commitlint/cli": "17.
|
|
46
|
-
"@commitlint/config-conventional": "17.
|
|
45
|
+
"@commitlint/cli": "17.4.4",
|
|
46
|
+
"@commitlint/config-conventional": "17.4.4",
|
|
47
47
|
"@octokit/types": "6.41.0",
|
|
48
48
|
"@rollup/plugin-alias": "3.1.9",
|
|
49
49
|
"@rollup/plugin-json": "4.1.0",
|
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
"@types/semver": "7.3.13",
|
|
59
59
|
"@types/sprintf-js": "1.1.2",
|
|
60
60
|
"@types/yargs": "17.0.22",
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
62
|
-
"@typescript-eslint/parser": "5.
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "5.55.0",
|
|
62
|
+
"@typescript-eslint/parser": "5.55.0",
|
|
63
63
|
"dateformat": "4.6.3",
|
|
64
64
|
"del": "6.1.1",
|
|
65
|
-
"eslint": "8.
|
|
66
|
-
"eslint-config-prettier": "8.
|
|
65
|
+
"eslint": "8.36.0",
|
|
66
|
+
"eslint-config-prettier": "8.7.0",
|
|
67
67
|
"eslint-plugin-prettier": "4.2.1",
|
|
68
68
|
"husky": "7.0.4",
|
|
69
69
|
"jest": "27.5.1",
|
|
70
|
-
"prettier": "2.
|
|
70
|
+
"prettier": "2.8.4",
|
|
71
71
|
"rollup": "2.79.1",
|
|
72
72
|
"rollup-plugin-typescript2": "0.34.1",
|
|
73
73
|
"semantic-release": "19.0.5",
|
|
74
74
|
"tempy": "1.0.1",
|
|
75
75
|
"ts-jest": "27.1.5",
|
|
76
|
-
"typescript": "4.
|
|
76
|
+
"typescript": "4.9.5",
|
|
77
77
|
"typescript-json-schema": "0.54.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {},
|