@forge/cli-shared 6.10.0-next.4 → 6.10.0-next.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/CHANGELOG.md +18 -0
- package/out/graphql/graphql-types.d.ts +849 -13
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +82 -25
- package/out/ui/text.d.ts +63 -23
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +86 -24
- package/package.json +2 -2
package/out/ui/text.js
CHANGED
|
@@ -607,33 +607,92 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
607
607
|
}
|
|
608
608
|
},
|
|
609
609
|
upgrade: {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
outFile: 'specify a file to output the results',
|
|
614
|
-
version1: 'source version to upgrade in a non-interactive mode',
|
|
615
|
-
version2: 'target version to upgrade to in a non-interactive mode'
|
|
610
|
+
cmd: {
|
|
611
|
+
cmdName: 'bulk-upgrade',
|
|
612
|
+
desc: 'upgrades installations from one major version to another version.'
|
|
616
613
|
},
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
614
|
+
start: {
|
|
615
|
+
cmdName: 'start',
|
|
616
|
+
option: {
|
|
617
|
+
json: 'output results in JSON format',
|
|
618
|
+
outFile: 'specify a file to output the results',
|
|
619
|
+
version1: 'source version to upgrade in a non-interactive mode',
|
|
620
|
+
version2: 'target version to upgrade to in a non-interactive mode'
|
|
621
|
+
},
|
|
622
|
+
desc: `upgrades installations using one major version to another version. The version selection list displays:\n${itemList(['major version number', 'deployment date', 'number of installations'])}`,
|
|
623
|
+
overViewVersionTable: (versions, environment) => `\nDetails for a total of [${versions} major versions] in [${environment}] can be seen below.\nWhere there are no upgrade paths available, use \`forge version compare\` to compare versions and see more information:\n`,
|
|
624
|
+
promptVersionTable: 'Getting app version list...',
|
|
625
|
+
selectTargetVersionToUpgrade: (installations) => `Please select version to upgrade existing ${installations} installations to:`,
|
|
626
|
+
error: {
|
|
627
|
+
missingVersionUpgradeParameters: `Missing parameters:\nError: [version bulk-upgrade start --non-interactive] requires --from-version and --to-version`,
|
|
628
|
+
appVersionRolloutRunning: `App version rollout for this app environment is already running. Use \`forge version bulk-upgrade list\` to identify the running upgrade and \`forge version bulk-upgrade cancel\` to cancel.`,
|
|
629
|
+
permissionDeniedError: (fromVersion, toVersion, environmentKey) => `User does not have required permissions: \nError: [version bulk-upgrade start --non-interactive --from-version ${fromVersion} --to-version ${toVersion}] requires Admin or Deployer permissions in the [${environmentKey}] environment.`,
|
|
630
|
+
noUpgradePathAvailable: (fromVersion, toVersion) => `From and to versions specify a combination for which an update is not available:\nError: [version bulk-upgrade start --non-interactive --from-version ${fromVersion} --to-version ${toVersion}] does not specify a valid to and from combination. Run \`forge version bulk-upgrade start\` interactively to see available versions.`,
|
|
631
|
+
inValidVersionNumberSpecified: (fromVersion, toVersion) => `Invalid version number specified:\nError: [version bulk-upgrade start --non-interactive --from-version ${fromVersion} --to-version ${toVersion}] specifies a [to-version|from-version] that does not exist. Run \`forge version bulk-upgrade start\` interactively to see available versions.`,
|
|
632
|
+
inValidMajorVersionNumberSpecified: (majorVersion) => `Invalid version number specified:\nError: [version bulk-upgrade start --non-interactive] specifies a [major version: ${majorVersion}] that does not exist. Run \`forge version bulk-upgrade start\` interactively to see available versions.`,
|
|
633
|
+
noTargetVersionAvailable: 'There are no upgrade paths available, use `forge version compare` to compare versions and see more information:',
|
|
634
|
+
tooManyRequestsFromAccount: `The capacity for concurrent app rollout requests from your account has been breached. Please try again after some time.`,
|
|
635
|
+
tooManyRequestsGlobally: `System is unavailable for app rollout requests due to breach in capacity. Please try again after some time.`
|
|
636
|
+
},
|
|
637
|
+
appVersionRolloutSuccess(appRolloutVersionId) {
|
|
638
|
+
return `Your upgrade has been queued with upgrade ID ${appRolloutVersionId}. To view that status of your update please use the \`forge version bulk-upgrade list\` command.`;
|
|
639
|
+
},
|
|
640
|
+
warningMessage: (sourceVersionId, targetVersionId, installations) => `${chalk_1.default.bold('Warning:')} You are planning to move ${installations} installations from version ${sourceVersionId} to version ${targetVersionId}.`,
|
|
641
|
+
promptConfirmation: 'Do you want to continue?'
|
|
631
642
|
},
|
|
632
|
-
|
|
633
|
-
|
|
643
|
+
list: {
|
|
644
|
+
cmdName: 'list',
|
|
645
|
+
option: {
|
|
646
|
+
outFile: 'specify a file to output the results',
|
|
647
|
+
majorVersion: 'specify a major version'
|
|
648
|
+
},
|
|
649
|
+
desc: `returns a summary of version update requests. Details include:\n${itemList([
|
|
650
|
+
'upgrade ID',
|
|
651
|
+
'upgrade request status',
|
|
652
|
+
'start date',
|
|
653
|
+
'completed date',
|
|
654
|
+
'from version',
|
|
655
|
+
'to version',
|
|
656
|
+
'number of updates completed',
|
|
657
|
+
'number of updates pending',
|
|
658
|
+
'number of updates failed'
|
|
659
|
+
])}`,
|
|
660
|
+
start: 'Getting app version upgrade list...',
|
|
661
|
+
end: 'Getting app version upgrade list...',
|
|
662
|
+
details: {
|
|
663
|
+
banner: (envKey, envType, updates) => {
|
|
664
|
+
if (!envType) {
|
|
665
|
+
return `${log_symbols_1.default.info} Details of a total of [${updates} updates] can be seen below:`;
|
|
666
|
+
}
|
|
667
|
+
const envDisplay = exports.Text.env.displayEnvironment(envKey, envType);
|
|
668
|
+
return `${log_symbols_1.default.info} Details of a total of [${updates} updates] in [${envDisplay}] can be seen below:`;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
634
671
|
},
|
|
635
|
-
|
|
636
|
-
|
|
672
|
+
cancel: {
|
|
673
|
+
cmdName: 'cancel',
|
|
674
|
+
option: {
|
|
675
|
+
json: 'output results in JSON format',
|
|
676
|
+
outFile: 'specify a file to output the results',
|
|
677
|
+
appRolloutId: 'app rollout version Id to cancel'
|
|
678
|
+
},
|
|
679
|
+
desc: `cancels a version upgrade that is in progress.`,
|
|
680
|
+
error: {
|
|
681
|
+
missingCancelVersionUpgradeParameters: `\nMissing parameters:\nError: [version bulk-upgrade cancel] requires --app-upgrade-id`,
|
|
682
|
+
permissionDeniedError(environmentKey) {
|
|
683
|
+
return `User does not have permission to cancel the upgrade:\nError: [version bulk-upgrade cancel] requires Admin or Deployer permissions in the [${environmentKey}] environment.`;
|
|
684
|
+
},
|
|
685
|
+
noUpdateInProgress(environmentKey) {
|
|
686
|
+
return `No updates are in progress for this app/environment:\nError: [version bulk-upgrade cancel] did not succeed. No upgrades are in progress for this app in the [${environmentKey}] environment.`;
|
|
687
|
+
},
|
|
688
|
+
inValidRolloutIdSpecified: `Invalid rollout id specified:\nError: [version bulk-upgrade cancel] specifies a rollout id that does not exist. Run \`forge version bulk-upgrade list\` to see rollouts running.`
|
|
689
|
+
},
|
|
690
|
+
appVersionRolloutCancelSuccess(appRolloutVersionId) {
|
|
691
|
+
return `Your upgrade with upgrade ID ${appRolloutVersionId} has been cancelled.`;
|
|
692
|
+
},
|
|
693
|
+
warningMessage: (appRolloutVersionId, sourceVersionId, targetVersionId, installationComplete, totalInstallations) => `${chalk_1.default.bold('Warning:')} You are planning to cancel the upgrade with upgrade ID ${appRolloutVersionId} from version ${sourceVersionId} to version ${targetVersionId} that is in progress. ${installationComplete} of ${totalInstallations} installations have already been upgraded.`,
|
|
694
|
+
promptConfirmation: 'Do you want to continue?'
|
|
695
|
+
}
|
|
637
696
|
}
|
|
638
697
|
},
|
|
639
698
|
build: {
|
|
@@ -684,6 +743,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
684
743
|
confirm: `Continue?`,
|
|
685
744
|
invalidMajorVersionError: 'Invalid major version number'
|
|
686
745
|
},
|
|
746
|
+
buildTag: {
|
|
747
|
+
description: 'specify a build tag to deploy (from forge build)'
|
|
748
|
+
},
|
|
687
749
|
connectKeyChange: {
|
|
688
750
|
continueChange: `Do you wish to continue with changing the Connect key?`,
|
|
689
751
|
continueDelete: `Do you wish to continue with deleting the Connect key?`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.10.0-next.
|
|
3
|
+
"version": "6.10.0-next.6",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "9.2.0-next.
|
|
15
|
+
"@forge/manifest": "9.2.0-next.2",
|
|
16
16
|
"@forge/util": "1.4.8",
|
|
17
17
|
"@forge/i18n": "0.0.5",
|
|
18
18
|
"@sentry/node": "7.106.0",
|