@forge/cli 6.18.0-next.33 → 6.18.0-next.34
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/CHANGELOG.md +14 -0
- package/npm-shrinkwrap.json +23 -23
- package/out/autocomplete/autocomplete-config.json +0 -8
- package/out/command-line/dependency-injection.d.ts +0 -6
- package/out/command-line/dependency-injection.d.ts.map +1 -1
- package/out/command-line/dependency-injection.js +8 -19
- package/out/command-line/index.d.ts.map +1 -1
- package/out/command-line/index.js +0 -2
- package/package.json +5 -5
- package/out/command-line/register-contributors-commands.d.ts +0 -3
- package/out/command-line/register-contributors-commands.d.ts.map +0 -1
- package/out/command-line/register-contributors-commands.js +0 -137
- package/out/contributors/add-contributor.d.ts +0 -17
- package/out/contributors/add-contributor.d.ts.map +0 -1
- package/out/contributors/add-contributor.js +0 -14
- package/out/contributors/graphql-client.d.ts +0 -12
- package/out/contributors/graphql-client.d.ts.map +0 -1
- package/out/contributors/graphql-client.js +0 -121
- package/out/contributors/list-contributors.d.ts +0 -18
- package/out/contributors/list-contributors.d.ts.map +0 -1
- package/out/contributors/list-contributors.js +0 -14
- package/out/contributors/remove-contributors.d.ts +0 -18
- package/out/contributors/remove-contributors.d.ts.map +0 -1
- package/out/contributors/remove-contributors.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @forge/cli
|
|
2
2
|
|
|
3
|
+
## 6.18.0-next.34
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7aba0598: Remove contributor-related commands
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [7aba0598]
|
|
12
|
+
- @forge/cli-shared@3.19.0-next.22
|
|
13
|
+
- @forge/bundler@4.12.1-next.28
|
|
14
|
+
- @forge/lint@3.6.7-next.22
|
|
15
|
+
- @forge/tunnel@3.8.0-next.29
|
|
16
|
+
|
|
3
17
|
## 6.18.0-next.33
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "6.18.0-next.
|
|
3
|
+
"version": "6.18.0-next.34",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@forge/cli",
|
|
9
|
-
"version": "6.18.0-next.
|
|
9
|
+
"version": "6.18.0-next.34",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@forge/bundler": "4.12.1-next.
|
|
14
|
-
"@forge/cli-shared": "3.19.0-next.
|
|
13
|
+
"@forge/bundler": "4.12.1-next.28",
|
|
14
|
+
"@forge/cli-shared": "3.19.0-next.22",
|
|
15
15
|
"@forge/egress": "1.2.5-next.2",
|
|
16
|
-
"@forge/lint": "3.6.7-next.
|
|
16
|
+
"@forge/lint": "3.6.7-next.22",
|
|
17
17
|
"@forge/manifest": "4.20.1-next.10",
|
|
18
18
|
"@forge/node-runtime": "0.2.0-next.8",
|
|
19
19
|
"@forge/runtime": "5.1.0-next.7",
|
|
20
|
-
"@forge/tunnel": "3.8.0-next.
|
|
20
|
+
"@forge/tunnel": "3.8.0-next.29",
|
|
21
21
|
"@forge/util": "1.3.1",
|
|
22
22
|
"@sentry/node": "^7.70.0",
|
|
23
23
|
"ajv": "^8.12.0",
|
|
@@ -861,9 +861,9 @@
|
|
|
861
861
|
"integrity": "sha512-U6fmVRFuZihG6i+PnGMkX0U9EfElvSVWJ1ga3nSIHU7RnuFc42W9bcHHogyps22NDHYVPdtGehnloiIItdOnxQ=="
|
|
862
862
|
},
|
|
863
863
|
"node_modules/@forge/bundler": {
|
|
864
|
-
"version": "4.12.1-next.
|
|
865
|
-
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.12.1-next.
|
|
866
|
-
"integrity": "sha512-
|
|
864
|
+
"version": "4.12.1-next.28",
|
|
865
|
+
"resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.12.1-next.28.tgz",
|
|
866
|
+
"integrity": "sha512-z5vCYtnHf6+Cky7aoMnGT0WFV078Mfc9Mz+Xsr7McdFYVhAkJKMtzQ23p3diJChg5xKs+3Qa87Cx4tfJ4U7L4A==",
|
|
867
867
|
"dependencies": {
|
|
868
868
|
"@babel/core": "^7.22.20",
|
|
869
869
|
"@babel/plugin-transform-class-properties": "^7.22.5",
|
|
@@ -874,8 +874,8 @@
|
|
|
874
874
|
"@babel/preset-typescript": "^7.22.15",
|
|
875
875
|
"@forge/api": "2.19.1-next.3",
|
|
876
876
|
"@forge/babel-plugin-transform-ui": "1.1.8-next.1",
|
|
877
|
-
"@forge/cli-shared": "3.19.0-next.
|
|
878
|
-
"@forge/lint": "3.6.7-next.
|
|
877
|
+
"@forge/cli-shared": "3.19.0-next.22",
|
|
878
|
+
"@forge/lint": "3.6.7-next.22",
|
|
879
879
|
"@forge/node-runtime": "0.2.0-next.8",
|
|
880
880
|
"@forge/util": "1.3.1",
|
|
881
881
|
"assert": "^2.1.0",
|
|
@@ -933,9 +933,9 @@
|
|
|
933
933
|
"integrity": "sha512-TMRJnVgilZA47BqJQetc1VOmttkHg8YzbfRtvVcIVSwzg3WJYOAgRrQEDvkgD5xwJlhk3Iz3HvuBMKN1KB39GA=="
|
|
934
934
|
},
|
|
935
935
|
"node_modules/@forge/cli-shared": {
|
|
936
|
-
"version": "3.19.0-next.
|
|
937
|
-
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.19.0-next.
|
|
938
|
-
"integrity": "sha512-
|
|
936
|
+
"version": "3.19.0-next.22",
|
|
937
|
+
"resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.19.0-next.22.tgz",
|
|
938
|
+
"integrity": "sha512-sdLXnBn4hTqQCRp2hlDqBWQN3eB7EOqmxneEDbSSw/eysf+cqfFLBEE3UbFpPfrHpddanoEH7c8Wrsnj+t+kGw==",
|
|
939
939
|
"dependencies": {
|
|
940
940
|
"@forge/manifest": "4.20.1-next.10",
|
|
941
941
|
"@forge/util": "1.3.1",
|
|
@@ -989,11 +989,11 @@
|
|
|
989
989
|
}
|
|
990
990
|
},
|
|
991
991
|
"node_modules/@forge/lint": {
|
|
992
|
-
"version": "3.6.7-next.
|
|
993
|
-
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.6.7-next.
|
|
994
|
-
"integrity": "sha512-
|
|
992
|
+
"version": "3.6.7-next.22",
|
|
993
|
+
"resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.6.7-next.22.tgz",
|
|
994
|
+
"integrity": "sha512-TyT3EhjU1X1iUoBQybudvJaeRwrLOFJMl84GdgVe1UYKgkhIB0QnO8bHO+TyHAXsvZlI8HZs1tKJED7agHY/XQ==",
|
|
995
995
|
"dependencies": {
|
|
996
|
-
"@forge/cli-shared": "3.19.0-next.
|
|
996
|
+
"@forge/cli-shared": "3.19.0-next.22",
|
|
997
997
|
"@forge/egress": "1.2.5-next.2",
|
|
998
998
|
"@forge/manifest": "4.20.1-next.10",
|
|
999
999
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
@@ -1063,12 +1063,12 @@
|
|
|
1063
1063
|
}
|
|
1064
1064
|
},
|
|
1065
1065
|
"node_modules/@forge/tunnel": {
|
|
1066
|
-
"version": "3.8.0-next.
|
|
1067
|
-
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.8.0-next.
|
|
1068
|
-
"integrity": "sha512-
|
|
1066
|
+
"version": "3.8.0-next.29",
|
|
1067
|
+
"resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.8.0-next.29.tgz",
|
|
1068
|
+
"integrity": "sha512-1mqLkN+/pjSB2/xfVdcYWqBjmt+lG497sSLp95Wf6oLVLYOhmC3n0TeBcZ31GzIM4FDw23QwibdCY9EZAGQKHQ==",
|
|
1069
1069
|
"dependencies": {
|
|
1070
|
-
"@forge/bundler": "4.12.1-next.
|
|
1071
|
-
"@forge/cli-shared": "3.19.0-next.
|
|
1070
|
+
"@forge/bundler": "4.12.1-next.28",
|
|
1071
|
+
"@forge/cli-shared": "3.19.0-next.22",
|
|
1072
1072
|
"@forge/csp": "2.2.2-next.3",
|
|
1073
1073
|
"@forge/runtime": "5.1.0-next.7",
|
|
1074
1074
|
"express": "^4.18.2",
|
|
@@ -5,9 +5,6 @@ import { DeleteEnvironmentVariableCommand } from '../environment-variables/delet
|
|
|
5
5
|
import { ListEnvironmentVariablesCommand } from '../environment-variables/list-environment-variables';
|
|
6
6
|
import { SetEnvironmentVariableCommand } from '../environment-variables/set-environment-variable';
|
|
7
7
|
import { ConfigureProviderCommand } from '../providers/configure-provider';
|
|
8
|
-
import { AddContributorCommand } from '../contributors/add-contributor';
|
|
9
|
-
import { ListContributorsCommand } from '../contributors/list-contributors';
|
|
10
|
-
import { RemoveContributorsCommand } from '../contributors/remove-contributors';
|
|
11
8
|
import { ListEntitiesIndexesCommand } from '../entities/list-indexes';
|
|
12
9
|
import { CreateEnvironmentCommand } from '../environment/create-environment';
|
|
13
10
|
import { ListEnvironmentCommand } from '../environment/list-environment';
|
|
@@ -53,9 +50,6 @@ export declare const getDependencies: (cliDetails: CLIDetails | undefined) => Pr
|
|
|
53
50
|
deleteEnvironmentVariableCommand: DeleteEnvironmentVariableCommand;
|
|
54
51
|
listEnvironmentVariablesCommand: ListEnvironmentVariablesCommand;
|
|
55
52
|
configureProviderCommand: ConfigureProviderCommand;
|
|
56
|
-
addContributorCommand: AddContributorCommand;
|
|
57
|
-
listContributorCommand: ListContributorsCommand;
|
|
58
|
-
removeContributorsCommand: RemoveContributorsCommand;
|
|
59
53
|
createEnvironmentCommand: CreateEnvironmentCommand;
|
|
60
54
|
listEnvironmentCommand: ListEnvironmentCommand;
|
|
61
55
|
deleteEnvironmentCommand: DeleteEnvironmentCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependency-injection.d.ts","sourceRoot":"","sources":["../../src/command-line/dependency-injection.ts"],"names":[],"mappings":"AAIA,OAAO,EASL,UAAU,EACV,aAAa,EAEb,UAAU,EAGV,gBAAgB,EAGhB,kBAAkB,EAGlB,gBAAgB,EAQhB,YAAY,EACZ,aAAa,EAOb,kBAAkB,EAIlB,kBAAkB,EAGnB,MAAM,mBAAmB,CAAC;AAc3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAML,0BAA0B,EAG3B,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAIlG,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dependency-injection.d.ts","sourceRoot":"","sources":["../../src/command-line/dependency-injection.ts"],"names":[],"mappings":"AAIA,OAAO,EASL,UAAU,EACV,aAAa,EAEb,UAAU,EAGV,gBAAgB,EAGhB,kBAAkB,EAGlB,gBAAgB,EAQhB,YAAY,EACZ,aAAa,EAOb,kBAAkB,EAIlB,kBAAkB,EAGnB,MAAM,mBAAmB,CAAC;AAc3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAML,0BAA0B,EAG3B,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAIlG,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAM7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAQtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAI3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAUlE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAIhF,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAE3F,eAAO,MAAM,eAAe,eAAsB,UAAU,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuVvE,CAAC;AAGF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC"}
|
|
@@ -17,17 +17,13 @@ const set_environment_variable_1 = require("../environment-variables/set-environ
|
|
|
17
17
|
const graphql_client_2 = require("../migration-keys/graphql-client");
|
|
18
18
|
const configure_provider_1 = require("../providers/configure-provider");
|
|
19
19
|
const graphql_client_3 = require("../providers/graphql-client");
|
|
20
|
-
const add_contributor_1 = require("../contributors/add-contributor");
|
|
21
|
-
const list_contributors_1 = require("../contributors/list-contributors");
|
|
22
|
-
const remove_contributors_1 = require("../contributors/remove-contributors");
|
|
23
|
-
const graphql_client_4 = require("../contributors/graphql-client");
|
|
24
20
|
const list_indexes_1 = require("../entities/list-indexes");
|
|
25
|
-
const
|
|
21
|
+
const graphql_client_4 = require("../entities/graphql-client");
|
|
26
22
|
const create_environment_1 = require("../environment/create-environment");
|
|
27
23
|
const list_environment_1 = require("../environment/list-environment");
|
|
28
24
|
const delete_environment_1 = require("../environment/delete-environment");
|
|
29
|
-
const
|
|
30
|
-
const
|
|
25
|
+
const graphql_client_5 = require("../environment/graphql-client");
|
|
26
|
+
const graphql_client_6 = require("../installations/graphql-client");
|
|
31
27
|
const site_translation_1 = require("../installations/site-translation");
|
|
32
28
|
const install_app_site_1 = require("../installations/install-app-site");
|
|
33
29
|
const uninstall_app_1 = require("../installations/uninstall-app");
|
|
@@ -63,7 +59,7 @@ const lint_view_1 = require("./view/lint-view");
|
|
|
63
59
|
const lite_lint_view_1 = require("./view/lite-lint-view");
|
|
64
60
|
const settings_view_1 = require("./view/settings-view");
|
|
65
61
|
const tunnel_view_1 = require("./view/tunnel-view");
|
|
66
|
-
const
|
|
62
|
+
const graphql_client_7 = require("../webtrigger/graphql-client");
|
|
67
63
|
const stubController_1 = require("./controller/stubController");
|
|
68
64
|
const prerequisites_controller_1 = require("./controller/prerequisites-controller");
|
|
69
65
|
const runtime_bundler_1 = require("../deploy/packager/runtime-bundler");
|
|
@@ -121,11 +117,7 @@ const getDependencies = async (cliDetails) => {
|
|
|
121
117
|
const listEnvironmentVariablesCommand = new list_environment_variables_1.ListEnvironmentVariablesCommand(environmentVariablesClient, assertiveAppConfigReader);
|
|
122
118
|
const providerClient = new graphql_client_3.GraphqlClient(graphQLClient);
|
|
123
119
|
const configureProviderCommand = new configure_provider_1.ConfigureProviderCommand(providerClient, assertiveAppConfigReader);
|
|
124
|
-
const
|
|
125
|
-
const addContributorCommand = new add_contributor_1.AddContributorCommand(contributorClient, assertiveAppConfigReader);
|
|
126
|
-
const listContributorCommand = new list_contributors_1.ListContributorsCommand(contributorClient, assertiveAppConfigReader);
|
|
127
|
-
const removeContributorsCommand = new remove_contributors_1.RemoveContributorsCommand(contributorClient, assertiveAppConfigReader);
|
|
128
|
-
const environmentClient = new graphql_client_6.GraphqlClient(graphQLClient);
|
|
120
|
+
const environmentClient = new graphql_client_5.GraphqlClient(graphQLClient);
|
|
129
121
|
const createEnvironmentCommand = new create_environment_1.CreateEnvironmentCommand(environmentClient, assertiveAppConfigReader);
|
|
130
122
|
const listEnvironmentCommand = new list_environment_1.ListEnvironmentCommand(environmentClient, assertiveAppConfigReader);
|
|
131
123
|
const deleteEnvironmentCommand = new delete_environment_1.DeleteEnvironmentCommand(environmentClient, assertiveAppConfigReader);
|
|
@@ -137,16 +129,16 @@ const getDependencies = async (cliDetails) => {
|
|
|
137
129
|
const logsClient = new cli_shared_1.LogsGraphQLClient(graphQLClient);
|
|
138
130
|
const viewAppLogsCommand = new cli_shared_1.ViewAppLogsCommand(assertiveAppConfigReader, appEnvironmentClient, globalEdgeClient, logsClient);
|
|
139
131
|
const appOauthClientGraphql = new cli_shared_1.AppOauthClientGraphqlClient(graphQLClient);
|
|
140
|
-
const entitiesClient = new
|
|
132
|
+
const entitiesClient = new graphql_client_4.EntitiesGraphqlClient(graphQLClient);
|
|
141
133
|
const customEntitiesService = new custom_entities_service_1.CustomEntitiesService(assertiveAppConfigReader, appOauthClientGraphql, entitiesClient);
|
|
142
134
|
const listEntitiesIndexesCommand = new list_indexes_1.ListEntitiesIndexesCommand(customEntitiesService);
|
|
143
135
|
const bitbucketTranslation = new site_translation_1.BitbucketTranslator();
|
|
144
136
|
const cloudProductTranslation = new site_translation_1.CloudIdTranslator(graphQLClient);
|
|
145
|
-
const installationsClient = new
|
|
137
|
+
const installationsClient = new graphql_client_6.InstallationsGraphqlClient(graphQLClient, cloudProductTranslation, bitbucketTranslation, cli_shared_1.pause);
|
|
146
138
|
const installAppSiteCommand = new install_app_site_1.InstallAppSiteCommand(assertiveAppConfigReader, installationsClient);
|
|
147
139
|
const uninstallAppCommand = new uninstall_app_1.UninstallAppCommand(assertiveAppConfigReader, installationsClient);
|
|
148
140
|
const deployMonitorClient = new deploy_1.DeployMonitorGraphqlClient(graphQLClient);
|
|
149
|
-
const webTriggerGraphqlClient = new
|
|
141
|
+
const webTriggerGraphqlClient = new graphql_client_7.WebTriggerGraphQLClient(graphQLClient);
|
|
150
142
|
const archiverFactory = () => new deploy_1.ZipArchiver(ui);
|
|
151
143
|
const uploaderArtifactClient = new deploy_1.ArtifactGraphQLClient(graphQLClient);
|
|
152
144
|
const triggerDeployClient = new deploy_1.TriggerDeployGraphQLClient(graphQLClient);
|
|
@@ -214,9 +206,6 @@ const getDependencies = async (cliDetails) => {
|
|
|
214
206
|
deleteEnvironmentVariableCommand,
|
|
215
207
|
listEnvironmentVariablesCommand,
|
|
216
208
|
configureProviderCommand,
|
|
217
|
-
addContributorCommand,
|
|
218
|
-
listContributorCommand,
|
|
219
|
-
removeContributorsCommand,
|
|
220
209
|
createEnvironmentCommand,
|
|
221
210
|
listEnvironmentCommand,
|
|
222
211
|
deleteEnvironmentCommand,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-line/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-line/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAmBvE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,QAgBlD;AAQD,eAAO,MAAM,IAAI,QAAa,QAAQ,IAAI,CAUzC,CAAC"}
|
|
@@ -17,14 +17,12 @@ const register_webtrigger_commands_1 = require("./register-webtrigger-commands")
|
|
|
17
17
|
const register_feedback_commands_1 = require("./register-feedback-commands");
|
|
18
18
|
const register_settings_commands_1 = require("./register-settings-commands");
|
|
19
19
|
const register_providers_commands_1 = require("./register-providers-commands");
|
|
20
|
-
const register_contributors_commands_1 = require("./register-contributors-commands");
|
|
21
20
|
const register_environments_commands_1 = require("./register-environments-commands");
|
|
22
21
|
const register_storage_commands_1 = require("./register-storage-commands");
|
|
23
22
|
function registerCommands(deps) {
|
|
24
23
|
(0, register_autocomplete_commands_1.registerCommands)(deps);
|
|
25
24
|
(0, register_authentication_command_1.registerCommands)(deps);
|
|
26
25
|
(0, register_app_commands_1.registerCommands)(deps);
|
|
27
|
-
(0, register_contributors_commands_1.registerCommands)(deps);
|
|
28
26
|
(0, register_deployment_commands_1.registerCommands)(deps);
|
|
29
27
|
(0, register_installation_commands_1.registerCommands)(deps);
|
|
30
28
|
(0, register_environments_commands_1.registerCommands)(deps);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli",
|
|
3
|
-
"version": "6.18.0-next.
|
|
3
|
+
"version": "6.18.0-next.34",
|
|
4
4
|
"description": "A command line interface for managing Atlassian-hosted apps",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"postinstall": "node -e \"fs.existsSync('./out/bin/postinstall.js') && require('./out/bin/postinstall.js')\""
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@forge/bundler": "4.12.1-next.
|
|
22
|
-
"@forge/cli-shared": "3.19.0-next.
|
|
21
|
+
"@forge/bundler": "4.12.1-next.28",
|
|
22
|
+
"@forge/cli-shared": "3.19.0-next.22",
|
|
23
23
|
"@forge/egress": "1.2.5-next.2",
|
|
24
|
-
"@forge/lint": "3.6.7-next.
|
|
24
|
+
"@forge/lint": "3.6.7-next.22",
|
|
25
25
|
"@forge/manifest": "4.20.1-next.10",
|
|
26
26
|
"@forge/node-runtime": "0.2.0-next.8",
|
|
27
27
|
"@forge/runtime": "5.1.0-next.7",
|
|
28
|
-
"@forge/tunnel": "3.8.0-next.
|
|
28
|
+
"@forge/tunnel": "3.8.0-next.29",
|
|
29
29
|
"@forge/util": "1.3.1",
|
|
30
30
|
"@sentry/node": "^7.70.0",
|
|
31
31
|
"ajv": "^8.12.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-contributors-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-contributors-commands.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAgLtD,eAAO,MAAM,gBAAgB,SAAU,YAAY,KAAG,IAOrD,CAAC"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerCommands = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const cli_shared_1 = require("@forge/cli-shared");
|
|
6
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
-
const COMMAND_NAME = 'contributors';
|
|
8
|
-
const registerAddContributorCommand = (parent, { ui, commands: { addContributorCommand } }) => {
|
|
9
|
-
parent
|
|
10
|
-
.command('add')
|
|
11
|
-
.requireAppId()
|
|
12
|
-
.description(cli_shared_1.Text.addContributor.cmd.desc)
|
|
13
|
-
.option('-u, --email [email]', cli_shared_1.Text.addContributor.optionContributorEmail)
|
|
14
|
-
.option('--confirm-add-contributor', cli_shared_1.Text.addContributor.optionSkipConfirmation)
|
|
15
|
-
.nonInteractiveOption('--email')
|
|
16
|
-
.action(async ({ email, confirmAddContributor, nonInteractive }) => {
|
|
17
|
-
ui.info(cli_shared_1.Text.addContributor.overview);
|
|
18
|
-
ui.info(cli_shared_1.Text.ctrlC);
|
|
19
|
-
ui.emptyLine();
|
|
20
|
-
if (!email) {
|
|
21
|
-
ui.info(cli_shared_1.Text.addContributor.contributorEmailInfo);
|
|
22
|
-
ui.emptyLine();
|
|
23
|
-
email = await ui.promptForText(cli_shared_1.Text.addContributor.promptContributorEmail);
|
|
24
|
-
ui.emptyLine();
|
|
25
|
-
}
|
|
26
|
-
if (nonInteractive) {
|
|
27
|
-
confirmAddContributor = true;
|
|
28
|
-
}
|
|
29
|
-
if (!confirmAddContributor) {
|
|
30
|
-
ui.info(cli_shared_1.Text.addContributor.confirmationInfo);
|
|
31
|
-
ui.emptyLine();
|
|
32
|
-
ui.info(cli_shared_1.Text.addContributor.learnMore);
|
|
33
|
-
ui.emptyLine();
|
|
34
|
-
confirmAddContributor = await ui.confirm(cli_shared_1.Text.addContributor.promptConfirmation);
|
|
35
|
-
if (confirmAddContributor)
|
|
36
|
-
ui.emptyLine();
|
|
37
|
-
}
|
|
38
|
-
const args = { email };
|
|
39
|
-
if (confirmAddContributor) {
|
|
40
|
-
await ui.displayProgress(() => addContributorCommand.execute(args), cli_shared_1.Text.addContributor.cmd.start, cli_shared_1.Text.addContributor.cmd.success);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
const registerListContributorsCommand = (parent, { ui, commands: { listContributorCommand } }) => {
|
|
45
|
-
parent
|
|
46
|
-
.command('list')
|
|
47
|
-
.requireAppId()
|
|
48
|
-
.description(cli_shared_1.Text.listContributors.cmd.desc)
|
|
49
|
-
.action(async () => {
|
|
50
|
-
const contributors = await listContributorCommand.execute();
|
|
51
|
-
ui.table([
|
|
52
|
-
['name', 'Name'],
|
|
53
|
-
['email', 'Email']
|
|
54
|
-
], contributors.map((contributor) => {
|
|
55
|
-
var _a;
|
|
56
|
-
const name = [contributor.publicName];
|
|
57
|
-
if (contributor.isOwner) {
|
|
58
|
-
name.push(cli_shared_1.Text.listContributors.appOwner);
|
|
59
|
-
}
|
|
60
|
-
if (contributor.accountStatus !== 'active') {
|
|
61
|
-
name.push(cli_shared_1.Text.listContributors.userInactive);
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
name: name.join(' '),
|
|
65
|
-
email: (_a = contributor.email) !== null && _a !== void 0 ? _a : 'Email Not Visible'
|
|
66
|
-
};
|
|
67
|
-
}), {
|
|
68
|
-
emptyMessage: cli_shared_1.Text.listContributors.noContributors,
|
|
69
|
-
preMessage: cli_shared_1.Text.listContributors.banner
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
const registerRemoveContributorsCommand = (parent, { ui, commands: { listContributorCommand, removeContributorsCommand } }) => {
|
|
74
|
-
parent
|
|
75
|
-
.command('remove')
|
|
76
|
-
.requireAppId()
|
|
77
|
-
.description(cli_shared_1.Text.removeContributors.cmd.desc)
|
|
78
|
-
.option('-u, --email [emails...]', cli_shared_1.Text.removeContributors.optionContributorEmail)
|
|
79
|
-
.option('--confirm-remove-contributors', cli_shared_1.Text.removeContributors.optionSkipConfirmation)
|
|
80
|
-
.nonInteractiveOption('--email')
|
|
81
|
-
.action(async ({ email, confirmRemoveContributors, nonInteractive }) => {
|
|
82
|
-
let accountIds;
|
|
83
|
-
let accountReferences = email;
|
|
84
|
-
if (!email) {
|
|
85
|
-
const contributors = await listContributorCommand.execute();
|
|
86
|
-
const nonOwners = contributors.filter((contributor) => !contributor.isOwner);
|
|
87
|
-
if (nonOwners.length === 0) {
|
|
88
|
-
ui.info(cli_shared_1.Text.removeContributors.addContributorMessage);
|
|
89
|
-
ui.emptyLine();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
const selectedContributorsIndexes = await ui.promptForTable(cli_shared_1.Text.removeContributors.promptContributorEmail, cli_shared_1.Text.removeContributors.overview, ['Name', 'Email'], nonOwners.map((contributor) => {
|
|
93
|
-
var _a;
|
|
94
|
-
const name = [contributor.publicName];
|
|
95
|
-
if (contributor.accountStatus !== 'active') {
|
|
96
|
-
name.push(cli_shared_1.Text.listContributors.userInactive);
|
|
97
|
-
}
|
|
98
|
-
return {
|
|
99
|
-
names: [name.join(' '), (_a = contributor.email) !== null && _a !== void 0 ? _a : 'Email Not Visible'],
|
|
100
|
-
value: contributor.accountId
|
|
101
|
-
};
|
|
102
|
-
}));
|
|
103
|
-
accountIds = selectedContributorsIndexes.map((index) => nonOwners[index].accountId);
|
|
104
|
-
accountReferences = selectedContributorsIndexes.map((index) => nonOwners[index].publicName);
|
|
105
|
-
}
|
|
106
|
-
if (!accountReferences) {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
if (nonInteractive) {
|
|
110
|
-
confirmRemoveContributors = true;
|
|
111
|
-
}
|
|
112
|
-
if (!confirmRemoveContributors) {
|
|
113
|
-
ui.info(cli_shared_1.Text.removeContributors.confirmationInfo);
|
|
114
|
-
ui.emptyLine();
|
|
115
|
-
accountReferences.forEach((name) => {
|
|
116
|
-
ui.info(chalk_1.default.grey(name));
|
|
117
|
-
});
|
|
118
|
-
ui.emptyLine();
|
|
119
|
-
confirmRemoveContributors = await ui.confirm(cli_shared_1.Text.removeContributors.promptConfirmation);
|
|
120
|
-
if (confirmRemoveContributors)
|
|
121
|
-
ui.emptyLine();
|
|
122
|
-
}
|
|
123
|
-
if (confirmRemoveContributors) {
|
|
124
|
-
await ui.displayProgress(() => removeContributorsCommand.execute({ emails: email, accountIds }), cli_shared_1.Text.removeContributors.cmd.start, cli_shared_1.Text.removeContributors.cmd.success);
|
|
125
|
-
ui.emptyLine();
|
|
126
|
-
ui.info(cli_shared_1.Text.removeContributors.commandSuccessMessage(accountReferences));
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
const registerCommands = (deps) => {
|
|
131
|
-
const { cmd } = deps;
|
|
132
|
-
const contributors = cmd.command(COMMAND_NAME).description(cli_shared_1.Text.contributors.desc);
|
|
133
|
-
registerAddContributorCommand(contributors, deps);
|
|
134
|
-
registerListContributorsCommand(contributors, deps);
|
|
135
|
-
registerRemoveContributorsCommand(contributors, deps);
|
|
136
|
-
};
|
|
137
|
-
exports.registerCommands = registerCommands;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AppConfigProvider } from '@forge/cli-shared';
|
|
2
|
-
export interface ContributorDetails {
|
|
3
|
-
email: string;
|
|
4
|
-
}
|
|
5
|
-
export interface AppContributorDetails extends ContributorDetails {
|
|
6
|
-
appId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface AddContributorClient {
|
|
9
|
-
addContributor(details: AppContributorDetails): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export declare class AddContributorCommand {
|
|
12
|
-
private readonly client;
|
|
13
|
-
private readonly getAppConfig;
|
|
14
|
-
constructor(client: AddContributorClient, getAppConfig: AppConfigProvider);
|
|
15
|
-
execute(details: ContributorDetails): Promise<void>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=add-contributor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-contributor.d.ts","sourceRoot":"","sources":["../../src/contributors/add-contributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,MAAM,EAAE,oBAAoB,EAC5B,YAAY,EAAE,iBAAiB;IAGrC,OAAO,CAAC,OAAO,EAAE,kBAAkB;CAOjD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddContributorCommand = void 0;
|
|
4
|
-
class AddContributorCommand {
|
|
5
|
-
constructor(client, getAppConfig) {
|
|
6
|
-
this.client = client;
|
|
7
|
-
this.getAppConfig = getAppConfig;
|
|
8
|
-
}
|
|
9
|
-
async execute(details) {
|
|
10
|
-
const { id: appId } = await this.getAppConfig();
|
|
11
|
-
await this.client.addContributor(Object.assign(Object.assign({}, details), { appId }));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.AddContributorCommand = AddContributorCommand;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GraphQLClient } from '@forge/cli-shared';
|
|
2
|
-
import { AppContributorDetails, AddContributorClient } from './add-contributor';
|
|
3
|
-
import { Contributor, ListContributorsClient } from './list-contributors';
|
|
4
|
-
import { RemoveContributorsDetails, RemoveContributorsClient } from './remove-contributors';
|
|
5
|
-
export declare class GraphqlClient implements AddContributorClient, ListContributorsClient, RemoveContributorsClient {
|
|
6
|
-
private readonly graphqlClient;
|
|
7
|
-
constructor(graphqlClient: GraphQLClient);
|
|
8
|
-
addContributor(details: AppContributorDetails): Promise<void>;
|
|
9
|
-
listContributors(appId: string): Promise<Contributor[]>;
|
|
10
|
-
removeContributors(details: RemoveContributorsDetails): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=graphql-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/contributors/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,aAAc,YAAW,oBAAoB,EAAE,sBAAsB,EAAE,wBAAwB;IAC9F,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,cAAc,CAAC,OAAO,EAAE,qBAAqB;IAoD7C,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAkCvD,kBAAkB,CAAC,OAAO,EAAE,yBAAyB;CAmDnE"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GraphqlClient = void 0;
|
|
4
|
-
const cli_shared_1 = require("@forge/cli-shared");
|
|
5
|
-
class GraphqlClient {
|
|
6
|
-
constructor(graphqlClient) {
|
|
7
|
-
this.graphqlClient = graphqlClient;
|
|
8
|
-
}
|
|
9
|
-
async addContributor(details) {
|
|
10
|
-
const mutation = `
|
|
11
|
-
mutation forge_cli_addContributor($input: AddAppContributorInput!) {
|
|
12
|
-
ecosystem {
|
|
13
|
-
addAppContributor(input: $input) {
|
|
14
|
-
success
|
|
15
|
-
errors {
|
|
16
|
-
message
|
|
17
|
-
extensions {
|
|
18
|
-
errorType
|
|
19
|
-
statusCode
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
const { response: { ecosystem: { addAppContributor } }, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
27
|
-
input: {
|
|
28
|
-
appId: details.appId,
|
|
29
|
-
newContributorEmail: details.email,
|
|
30
|
-
role: cli_shared_1.AppContributorRole.Admin
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
if (!addAppContributor) {
|
|
34
|
-
throw new cli_shared_1.GraphQlMutationError(`Unable to get a response (requestId: ${requestId || 'unknown'})`, { requestId });
|
|
35
|
-
}
|
|
36
|
-
const { success, errors } = addAppContributor;
|
|
37
|
-
const error = (0, cli_shared_1.getError)(errors);
|
|
38
|
-
if (!success) {
|
|
39
|
-
if (error.code === cli_shared_1.APP_NOT_IN_EAP) {
|
|
40
|
-
throw new cli_shared_1.AppNotInMUAOEAPError(requestId);
|
|
41
|
-
}
|
|
42
|
-
throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
43
|
-
requestId,
|
|
44
|
-
code: error.code,
|
|
45
|
-
statusCode: error.statusCode
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async listContributors(appId) {
|
|
50
|
-
const query = `
|
|
51
|
-
query forge_cli_listContributors($id: ID!) {
|
|
52
|
-
appContributors(id: $id) {
|
|
53
|
-
accountId
|
|
54
|
-
email
|
|
55
|
-
status
|
|
56
|
-
isOwner
|
|
57
|
-
publicName
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
`;
|
|
61
|
-
try {
|
|
62
|
-
const { appContributors } = await this.graphqlClient.query(query, {
|
|
63
|
-
id: appId
|
|
64
|
-
});
|
|
65
|
-
return appContributors.map((contributor) => ({
|
|
66
|
-
accountId: contributor.accountId,
|
|
67
|
-
email: contributor.email,
|
|
68
|
-
isOwner: contributor.isOwner,
|
|
69
|
-
publicName: contributor.publicName,
|
|
70
|
-
accountStatus: contributor.status
|
|
71
|
-
}));
|
|
72
|
-
}
|
|
73
|
-
catch (e) {
|
|
74
|
-
if (e instanceof cli_shared_1.GraphQLProviderServiceError && e.getCode() === cli_shared_1.APP_NOT_IN_EAP) {
|
|
75
|
-
throw new cli_shared_1.AppNotInMUAOEAPError(e.requestId);
|
|
76
|
-
}
|
|
77
|
-
throw e;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
async removeContributors(details) {
|
|
81
|
-
const mutation = `
|
|
82
|
-
mutation forge_cli_removeContributors($input: RemoveAppContributorsInput!) {
|
|
83
|
-
ecosystem {
|
|
84
|
-
removeAppContributors(input: $input) {
|
|
85
|
-
success
|
|
86
|
-
errors {
|
|
87
|
-
message
|
|
88
|
-
extensions {
|
|
89
|
-
errorType
|
|
90
|
-
statusCode
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
97
|
-
const { response: { ecosystem: { removeAppContributors } }, requestId } = await this.graphqlClient.mutate(mutation, {
|
|
98
|
-
input: {
|
|
99
|
-
appId: details.appId,
|
|
100
|
-
emails: details.emails,
|
|
101
|
-
accountIds: details.accountIds
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
if (!removeAppContributors) {
|
|
105
|
-
throw new cli_shared_1.GraphQlMutationError(`Unable to get a response (requestId: ${requestId || 'unknown'})`, { requestId });
|
|
106
|
-
}
|
|
107
|
-
const { success, errors } = removeAppContributors;
|
|
108
|
-
const error = (0, cli_shared_1.getError)(errors);
|
|
109
|
-
if (!success) {
|
|
110
|
-
if (error.code === cli_shared_1.APP_NOT_IN_EAP) {
|
|
111
|
-
throw new cli_shared_1.AppNotInMUAOEAPError(requestId);
|
|
112
|
-
}
|
|
113
|
-
throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
|
|
114
|
-
requestId,
|
|
115
|
-
code: error.code,
|
|
116
|
-
statusCode: error.statusCode
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.GraphqlClient = GraphqlClient;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AppConfigProvider } from '@forge/cli-shared';
|
|
2
|
-
export interface Contributor {
|
|
3
|
-
accountId: string;
|
|
4
|
-
email?: string | null;
|
|
5
|
-
accountStatus: string;
|
|
6
|
-
publicName: string;
|
|
7
|
-
isOwner?: boolean | null;
|
|
8
|
-
}
|
|
9
|
-
export interface ListContributorsClient {
|
|
10
|
-
listContributors(appId: string): Promise<Contributor[]>;
|
|
11
|
-
}
|
|
12
|
-
export declare class ListContributorsCommand {
|
|
13
|
-
private readonly client;
|
|
14
|
-
private readonly getAppConfig;
|
|
15
|
-
constructor(client: ListContributorsClient, getAppConfig: AppConfigProvider);
|
|
16
|
-
execute(): Promise<Contributor[]>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=list-contributors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-contributors.d.ts","sourceRoot":"","sources":["../../src/contributors/list-contributors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CACzD;AAED,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,MAAM,EAAE,sBAAsB,EAC9B,YAAY,EAAE,iBAAiB;IAGrC,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAI/C"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListContributorsCommand = void 0;
|
|
4
|
-
class ListContributorsCommand {
|
|
5
|
-
constructor(client, getAppConfig) {
|
|
6
|
-
this.client = client;
|
|
7
|
-
this.getAppConfig = getAppConfig;
|
|
8
|
-
}
|
|
9
|
-
async execute() {
|
|
10
|
-
const { id: appId } = await this.getAppConfig();
|
|
11
|
-
return await this.client.listContributors(appId);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.ListContributorsCommand = ListContributorsCommand;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AppConfigProvider } from '@forge/cli-shared';
|
|
2
|
-
export interface ContributorDetails {
|
|
3
|
-
emails?: string[];
|
|
4
|
-
accountIds?: string[];
|
|
5
|
-
}
|
|
6
|
-
export interface RemoveContributorsDetails extends ContributorDetails {
|
|
7
|
-
appId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface RemoveContributorsClient {
|
|
10
|
-
removeContributors(details: RemoveContributorsDetails): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
export declare class RemoveContributorsCommand {
|
|
13
|
-
private readonly client;
|
|
14
|
-
private readonly getAppConfig;
|
|
15
|
-
constructor(client: RemoveContributorsClient, getAppConfig: AppConfigProvider);
|
|
16
|
-
execute(details: ContributorDetails): Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=remove-contributors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-contributors.d.ts","sourceRoot":"","sources":["../../src/contributors/remove-contributors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE;AAED,qBAAa,yBAAyB;IAElC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,MAAM,EAAE,wBAAwB,EAChC,YAAY,EAAE,iBAAiB;IAGrC,OAAO,CAAC,OAAO,EAAE,kBAAkB;CAOjD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RemoveContributorsCommand = void 0;
|
|
4
|
-
class RemoveContributorsCommand {
|
|
5
|
-
constructor(client, getAppConfig) {
|
|
6
|
-
this.client = client;
|
|
7
|
-
this.getAppConfig = getAppConfig;
|
|
8
|
-
}
|
|
9
|
-
async execute(details) {
|
|
10
|
-
const { id: appId } = await this.getAppConfig();
|
|
11
|
-
await this.client.removeContributors(Object.assign(Object.assign({}, details), { appId }));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.RemoveContributorsCommand = RemoveContributorsCommand;
|