@forge/cli-shared 0.0.0-experimental-9fff5da → 0.0.0-experimental-7c72fec
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 +565 -2
- package/out/apps/template.d.ts +11 -5
- package/out/apps/template.d.ts.map +1 -1
- package/out/apps/template.js +25 -18
- package/out/config/config-file.d.ts +3 -1
- package/out/config/config-file.d.ts.map +1 -1
- package/out/config/config-file.js +20 -6
- package/out/graphql/graphql-types.d.ts +8018 -3367
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +492 -24
- package/out/graphql/mutation-aware-graphql-client.d.ts +1 -1
- package/out/graphql/mutation-aware-graphql-client.d.ts.map +1 -1
- package/out/ui/text.js +6 -6
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ export declare class MutationAwareGraphQLClient implements GraphQLClient {
|
|
|
11
11
|
private readonly runner;
|
|
12
12
|
constructor(runner: GraphQLRunner);
|
|
13
13
|
mutate<TLabel extends keyof AvailableMutations, TVariables>(query: string, variables: TVariables): Promise<{
|
|
14
|
-
response: Record<TLabel, NonNullable<Required<Pick<import("./graphql-types").Mutation, "customerSupport" | "jira" | "ecosystem" | "compass" | "createApp" | "updateAppDetails" | "deleteApp" | "updateAtlassianOAuthClient" | "createColumn" | "setColumnName" | "rankColumn" | "setColumnLimit" | "deleteColumn" | "startSprint" | "createSprint" | "completeSprint" | "deleteSprint" | "moveSprintUp" | "moveSprintDown" | "editSprint" | "setUserSwimlaneStrategy" | "setSwimlaneStrategy" | "setEstimationType" | "createCustomFilter" | "updateCustomFilter" | "deleteCustomFilter" | "boardCardMove" | "assignIssueParent" | "unassignIssueParent" | "createDevOpsServiceAndOpsgenieTeamRelationship" | "updateDevOpsServiceAndOpsgenieTeamRelationship" | "deleteDevOpsServiceAndOpsgenieTeamRelationship" | "updateDevOpsContainerRelationshipEntityProperties" | "deleteDevOpsContainerRelationshipEntityProperties" | "createDevOpsServiceAndJiraProjectRelationship" | "updateDevOpsServiceAndJiraProjectRelationship" | "deleteDevOpsServiceAndJiraProjectRelationship" | "createDevOpsServiceAndRepositoryRelationship" | "updateDevOpsServiceAndRepositoryRelationship" | "deleteDevOpsServiceAndRepositoryRelationship" | "createJiraProjectAndOpsgenieTeamRelationship" | "updateJiraProjectAndOpsgenieTeamRelationship" | "deleteJiraProjectAndOpsgenieTeamRelationship" | "createJiraProjectAndRepositoryRelationship" | "updateJiraProjectAndRepositoryRelationship" | "deleteJiraProjectAndRepositoryRelationship" | "createDevOpsService" | "updateDevOpsService" | "deleteDevOpsService" | "createDevOpsServiceRelationship" | "updateDevOpsServiceRelationship" | "deleteDevOpsServiceRelationship" | "updateDevOpsServiceEntityProperties" | "deleteDevOpsServiceEntityProperties" | "updateDeveloperLogAccess" | "appStorage" | "
|
|
14
|
+
response: Record<TLabel, NonNullable<Required<Pick<import("./graphql-types").Mutation, "customerSupport" | "confluence" | "shepherd" | "jsw" | "jira" | "roadmaps" | "polaris" | "ecosystem" | "jiraOAuthApps" | "compass" | "createReleaseNote" | "publishReleaseNote" | "updateReleaseNote" | "createApp" | "updateAppDetails" | "deleteApp" | "updateAtlassianOAuthClient" | "createColumn" | "setColumnName" | "rankColumn" | "setColumnLimit" | "deleteColumn" | "startSprint" | "createSprint" | "completeSprint" | "deleteSprint" | "moveSprintUp" | "moveSprintDown" | "editSprint" | "setUserSwimlaneStrategy" | "setSwimlaneStrategy" | "setEstimationType" | "createCustomFilter" | "updateCustomFilter" | "deleteCustomFilter" | "boardCardMove" | "assignIssueParent" | "unassignIssueParent" | "createCardParent" | "rankCardParent" | "setIssueMediaVisibility" | "updateNavbarConnectionStateTabSeen" | "createDevOpsServiceAndOpsgenieTeamRelationship" | "updateDevOpsServiceAndOpsgenieTeamRelationship" | "deleteDevOpsServiceAndOpsgenieTeamRelationship" | "updateDevOpsContainerRelationshipEntityProperties" | "deleteDevOpsContainerRelationshipEntityProperties" | "createDevOpsServiceAndJiraProjectRelationship" | "updateDevOpsServiceAndJiraProjectRelationship" | "deleteDevOpsServiceAndJiraProjectRelationship" | "createDevOpsServiceAndRepositoryRelationship" | "updateDevOpsServiceAndRepositoryRelationship" | "deleteDevOpsServiceAndRepositoryRelationship" | "createJiraProjectAndOpsgenieTeamRelationship" | "updateJiraProjectAndOpsgenieTeamRelationship" | "deleteJiraProjectAndOpsgenieTeamRelationship" | "createJiraProjectAndRepositoryRelationship" | "updateJiraProjectAndRepositoryRelationship" | "deleteJiraProjectAndRepositoryRelationship" | "createDevOpsService" | "updateDevOpsService" | "deleteDevOpsService" | "createDevOpsServiceRelationship" | "updateDevOpsServiceRelationship" | "deleteDevOpsServiceRelationship" | "updateDevOpsServiceEntityProperties" | "deleteDevOpsServiceEntityProperties" | "updateDeveloperLogAccess" | "appStorage" | "updatePolarisTermsConsent" | "createPolarisAnonymousVisitorHash" | "deletePolarisAnonymousVisitorHash" | "resolvePolarisObject" | "invokePolarisObject" | "createPolarisComment" | "updatePolarisComment" | "createPolarisStandardField" | "createPolarisCalculatedField" | "updatePolarisCalculatedField" | "updatePolarisFieldDescription" | "updatePolarisFieldEmoji" | "deletePolarisField" | "updatePolarisFieldOptionWeight" | "deletePolarisFieldOption" | "createPolarisDecoration" | "updatePolarisDecoration" | "deletePolarisDecoration" | "updatePolarisIdea" | "createPolarisInsight" | "updatePolarisInsight" | "deletePolarisInsight" | "copyPolarisInsights" | "archivePolarisInsights" | "unarchivePolarisInsights" | "createPolarisPlay" | "createPolarisPlayContribution" | "updatePolarisPlayContribution" | "deletePolarisPlayContribution" | "createPolarisInsightFromPlayContribution" | "configurePolarisRefresh" | "applyPolarisProjectTemplate" | "setPolarisProjectOnboarded" | "setPolarisSelectedDeliveryProject" | "refreshPolarisSnippets" | "setPolarisSnippetPropertiesConfig" | "createPolarisView" | "updatePolarisView" | "updatePolarisViewRankV2" | "deletePolarisView" | "updatePolarisViewLastViewedTimestamp" | "createPolarisViewSet" | "updatePolarisViewSet" | "deletePolarisViewSet" | "createAppTunnels" | "deleteAppTunnels" | "invokeExtension" | "invokeAuxEffects" | "userAuthTokenForExtension" | "createWebTriggerUrl" | "deleteWebTriggerUrl" | "installApp" | "uninstallApp" | "upgradeApp" | "subscribeToApp" | "unsubscribeFromApp" | "watchMarketplaceApp" | "unwatchMarketplaceApp" | "createAppDeploymentUrl" | "createHostedResourceUploadUrl" | "setExternalAuthCredentials" | "setAppEnvironmentVariable" | "deleteAppEnvironmentVariable" | "createAppDeployment" | "deleteConfluenceSpaceRelationshipsForJiraProject">>[TLabel]>>;
|
|
15
15
|
requestId: string | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
query<TVariables, TResponse>(query: string, variables: TVariables): Promise<TResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-aware-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/mutation-aware-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAErF,qBAAa,8BAA+B,SAAQ,KAAK;CAAG;AAC5D,qBAAa,oBAAqB,SAAQ,8BAA8B;IACtE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;gBAElB,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAK1C,OAAO,QAAO,MAAM,CAElB;CACH;AAED,qBAAa,0BAA2B,YAAW,aAAa;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAErC,MAAM,CAAC,MAAM,SAAS,MAAM,kBAAkB,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU;;;;
|
|
1
|
+
{"version":3,"file":"mutation-aware-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/mutation-aware-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAErF,qBAAa,8BAA+B,SAAQ,KAAK;CAAG;AAC5D,qBAAa,oBAAqB,SAAQ,8BAA8B;IACtE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAS;gBAElB,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAK1C,OAAO,QAAO,MAAM,CAElB;CACH;AAED,qBAAa,0BAA2B,YAAW,aAAa;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAErC,MAAM,CAAC,MAAM,SAAS,MAAM,kBAAkB,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU;;;;IAuBhG,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU;CAI/E"}
|
package/out/ui/text.js
CHANGED
|
@@ -85,8 +85,8 @@ exports.Text = {
|
|
|
85
85
|
`\n`
|
|
86
86
|
},
|
|
87
87
|
snapshot: {
|
|
88
|
-
error: (errorCode, errorMessage) => `Error thrown in the snapshot context.\n${errorCode}: ${errorMessage}\nLearn more about the snapshot context at
|
|
89
|
-
timeout: `A timeout error occurred in the snapshot context.\nLearn more about the snapshot context at
|
|
88
|
+
error: (errorCode, errorMessage) => `Error thrown in the snapshot context.\n${errorCode}: ${errorMessage}\nLearn more about the snapshot context at https://go.atlassian.com/forge-snapshot-context.`,
|
|
89
|
+
timeout: `A timeout error occurred in the snapshot context.\nLearn more about the snapshot context at https://go.atlassian.com/forge-snapshot-context.`
|
|
90
90
|
},
|
|
91
91
|
hostedResources: {
|
|
92
92
|
error: (errorMessage) => `Failed to deploy hosted resources. ${errorMessage}`,
|
|
@@ -326,10 +326,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
326
326
|
mpacAppConnectKeyChangeAnalyticsError: 'Cannot change app.connect.key for an app with an Atlassian Marketplace listing.',
|
|
327
327
|
mpacAppConnectKeyChangeError: (mpacAppKey, connectKey) => log_color_1.LogColor.error(`Cannot change the app.connect.key from \'${mpacAppKey}\' to \'${connectKey}\'. The app's Connect key must match the Atlassian Marketplace key.\n`),
|
|
328
328
|
connectKeyChangeWarning: (environment, migrationKey, connectKey) => `WARNING: Changing the app.connect.key in ${environment} from \'${migrationKey}\' to \'${connectKey}\' affects features using the Connect key as an identifier. ` +
|
|
329
|
-
`\nLearn more about the impact of this change at
|
|
329
|
+
`\nLearn more about the impact of this change at https://go.atlassian.com/forge-connect-key-changes.\n`,
|
|
330
330
|
connectKeyDeleteWarning: (environment) => `WARNING: You're about to delete the app.connect.key of the app in ${environment}. ` +
|
|
331
331
|
`\nIf you proceed, non-Forge Connect installations using the Connect key will no longer be replaced by future Forge installations of the app, and will co-exist. ` +
|
|
332
|
-
`\nLearn more at
|
|
332
|
+
`\nLearn more at https://go.atlassian.com/forge-connect-key-deletion.\n`
|
|
333
333
|
},
|
|
334
334
|
taskPackage: {
|
|
335
335
|
title: 'Packaging app files',
|
|
@@ -379,7 +379,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
379
379
|
message = `${urls.join(', ')}, and ${lastElem}`;
|
|
380
380
|
break;
|
|
381
381
|
}
|
|
382
|
-
return `Invalid URL${plurality} detected for the egress permissions object${plurality} ${message}\nLearn more at
|
|
382
|
+
return `Invalid URL${plurality} detected for the egress permissions object${plurality} ${message}\nLearn more at https://go.atlassian.com/forge-content-security-and-egress-controls`;
|
|
383
383
|
},
|
|
384
384
|
tooManyURLCharactersError: (cause) => {
|
|
385
385
|
const urlMaxLength = cause.replace(/[^0-9]/g, '');
|
|
@@ -510,7 +510,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
510
510
|
fileServed: (filename, resourceKey) => `Serving file ${filename} for resource ${resourceKey}`,
|
|
511
511
|
fileProxied: (filename, resourceKey, tunnelPort) => `Received proxy request. ${exports.Text.tunnel.customUI.fileServed(filename, resourceKey)} from specified address http://localhost:${tunnelPort}`,
|
|
512
512
|
warning: {
|
|
513
|
-
cspViolation: (localUrl, violation) => `CSP violation detected for '${violation}' while serving content at ${localUrl}\nFor an app to share data with external resources or use custom CSP, follow the steps in:
|
|
513
|
+
cspViolation: (localUrl, violation) => `CSP violation detected for '${violation}' while serving content at ${localUrl}\nFor an app to share data with external resources or use custom CSP, follow the steps in: https://go.atlassian.com/forge-content-security-and-egress-controls\n`
|
|
514
514
|
}
|
|
515
515
|
},
|
|
516
516
|
pullDockerProgress: (percentCompleted) => `Checking Docker image... ${percentCompleted}%`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-7c72fec",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "0.0.0-experimental-
|
|
16
|
-
"@forge/util": "1.0.
|
|
15
|
+
"@forge/manifest": "0.0.0-experimental-7c72fec",
|
|
16
|
+
"@forge/util": "1.0.1",
|
|
17
17
|
"array.prototype.flatmap": "^1.2.3",
|
|
18
18
|
"case": "^1.6.2",
|
|
19
19
|
"chalk": "^2.4.2",
|