@forge/cli-shared 6.4.0-next.8 → 6.4.0
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 +60 -0
- package/out/graphql/graphql-types.d.ts +817 -71
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +89 -48
- package/out/service/statsig-service.d.ts +1 -1
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +9 -5
- package/out/ui/text.d.ts +38 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +51 -0
- package/package.json +2 -2
package/out/ui/text.js
CHANGED
|
@@ -79,6 +79,18 @@ exports.Text = {
|
|
|
79
79
|
prodSupport: 'License is not supported in production environments',
|
|
80
80
|
invalid: 'Invalid license value. Supported values are active, inactive, and trial',
|
|
81
81
|
empty: '--license argument requires a value. Supported values are active, inactive, and trial'
|
|
82
|
+
},
|
|
83
|
+
licenseModesOverrideErrors: {
|
|
84
|
+
prodEnvNotSupported: '--license-modes and --users-with-access options are not supported in production environments',
|
|
85
|
+
empty: '--license-modes option list is empty. Provide a space-separated list of license mode. Supported value is user_access. \nFor example: install --license-modes user_access --users-with-access aaid1',
|
|
86
|
+
invalid: 'Invalid --license-modes option value. Supported value is user_access',
|
|
87
|
+
userWithAccessRequired: '--users-with-access option is required when specifying --license-modes option'
|
|
88
|
+
},
|
|
89
|
+
userWithAccessOverrideErrors: {
|
|
90
|
+
prodEnvNotSupported: '--license-modes and --users-with-access options are not supported in production environments',
|
|
91
|
+
empty: '--users-with-access option list is empty. Provide a space-separated list of Atlassian Account IDs(aaid). \nFor example: install --license-modes user_access --users-with-access aaid1 aaid2',
|
|
92
|
+
countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`,
|
|
93
|
+
licenseModeRequired: '--license-modes option is required when specifying --users-with-access option'
|
|
82
94
|
}
|
|
83
95
|
},
|
|
84
96
|
warning: {
|
|
@@ -88,6 +100,7 @@ exports.Text = {
|
|
|
88
100
|
unsupportedNodeVersion: (_userNodeVersion, supportedNodeVersions) => log_color_1.LogColor.warn(`Warning: Forge CLI supports Node.js ${supportedNodeVersions}.` +
|
|
89
101
|
`\nUnsupported Node.js versions are not guaranteed to work correctly.\n`)
|
|
90
102
|
},
|
|
103
|
+
maxSizeOfUsersWithAccess: 10,
|
|
91
104
|
installationContext: {
|
|
92
105
|
overviewProduct: 'Select the product your app uses.\n',
|
|
93
106
|
promptProduct: 'Select a product:',
|
|
@@ -417,6 +430,40 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
417
430
|
status: (status, responseBody) => `Upload failed with status ${status} and body:\n${responseBody}`
|
|
418
431
|
}
|
|
419
432
|
},
|
|
433
|
+
eligibility: {
|
|
434
|
+
cmd: {
|
|
435
|
+
cmdName: 'eligibility',
|
|
436
|
+
desc: 'check if your app is eligible for certain programs like Runs on Atlassian',
|
|
437
|
+
option: {
|
|
438
|
+
majorVersion: 'specify a major version'
|
|
439
|
+
},
|
|
440
|
+
error: {
|
|
441
|
+
invalidMajorVersion: 'Invalid major version number'
|
|
442
|
+
},
|
|
443
|
+
start: 'Checking eligibility...',
|
|
444
|
+
end: 'Checking eligibility...',
|
|
445
|
+
status: {
|
|
446
|
+
notEligible: (envKey, envType, version, reason) => `${log_symbols_1.default.info} App [${version}] in [${exports.Text.env.displayEnvironment(envKey, envType)}] is not eligible for Runs on Atlassian.\n${log_color_1.LogColor.warn(itemList(reason))}`,
|
|
447
|
+
eligible: (envKey, envType, version) => `${log_symbols_1.default.info} App [${version}] in [${exports.Text.env.displayEnvironment(envKey, envType)}] is eligible for Runs on Atlassian.`
|
|
448
|
+
},
|
|
449
|
+
rule: {
|
|
450
|
+
conversion: (rule) => {
|
|
451
|
+
switch (rule) {
|
|
452
|
+
case 'HAS_REMOTES':
|
|
453
|
+
return 'App is using remote services';
|
|
454
|
+
case 'HAS_CONNECT_MODULES':
|
|
455
|
+
return 'App has Connect modules';
|
|
456
|
+
case 'HAS_DEFINED_EGRESS':
|
|
457
|
+
return 'App is egressing data';
|
|
458
|
+
case 'HAS_EXPOSED_CREDENTIALS':
|
|
459
|
+
return 'App is exposing credentials';
|
|
460
|
+
default:
|
|
461
|
+
return rule;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
},
|
|
420
467
|
deploy: {
|
|
421
468
|
cmd: {
|
|
422
469
|
desc: 'deploy your app to an environment',
|
|
@@ -478,6 +525,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
478
525
|
},
|
|
479
526
|
outdatedInstallations: `We've detected new scopes or egress URLs in your app.\n` +
|
|
480
527
|
`Run ${forge('install', '--upgrade')} and restart your tunnel to put them into effect.`,
|
|
528
|
+
postDeploymentRoaEligibilityFailure: (appVersion, envKey, envType) => `${log_symbols_1.default.info} This app [${appVersion}] on [${exports.Text.env.displayEnvironment(envKey, envType)}] is not eligible for Runs on Atlassian. Run ${forge('eligibility')} to know more.\n\nTo know more about Runs on Atlassian, go to https://go.atlassian.com/runs-on-atlassian`,
|
|
529
|
+
postDeploymentRoaEligibilitySuccess: (appVersion, envKey, envType) => `${log_symbols_1.default.info} This app [${appVersion}] on [${exports.Text.env.displayEnvironment(envKey, envType)}] is eligible for Runs on Atlassian.\n\nTo know more about Runs on Atlassian, go to https://go.atlassian.com/runs-on-atlassian`,
|
|
481
530
|
listIndexes: (environment) => `Run ${forge('storage', 'entities', 'indexes', 'list', '-e', (0, environment_1.environmentToOption)(environment))} to check the status of the indexes.`,
|
|
482
531
|
reindexingInProgress: {
|
|
483
532
|
continueDeployment: 'Reindexing is currently in progress. Are you sure you want to deploy?',
|
|
@@ -501,6 +550,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
501
550
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
502
551
|
optionUpgrade: 'upgrade an existing installation',
|
|
503
552
|
optionLicense: 'specify the license value for the app (allowed values: active, inactive, and trial)',
|
|
553
|
+
optionLicenseModes: '[This feature is under development] specify the list of license mode value for the app (allowed values: user-access)',
|
|
554
|
+
optionUsersWithAccess: '[This feature is under development] specify the list of Atlassian Account IDs(aaid) for users who have access to the app',
|
|
504
555
|
listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
|
|
505
556
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
|
|
506
557
|
.join('\n')}\n`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.4.0
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "8.1.0
|
|
15
|
+
"@forge/manifest": "8.1.0",
|
|
16
16
|
"@forge/util": "1.4.5",
|
|
17
17
|
"@forge/i18n": "0.0.2",
|
|
18
18
|
"@sentry/node": "7.106.0",
|