@forge/cli-shared 6.6.0-next.7 → 6.6.0-next.9
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/out/ari/ari.d.ts +4 -9
- package/out/ari/ari.d.ts.map +1 -1
- package/out/ari/ari.js +8 -22
- package/out/graphql/graphql-types.d.ts +48 -1
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +16 -8
- package/out/service/index.d.ts +1 -0
- package/out/service/index.d.ts.map +1 -1
- package/out/service/index.js +1 -0
- package/out/service/statsig-service.d.ts +2 -1
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +3 -0
- package/out/service/supported-products-service.d.ts +28 -0
- package/out/service/supported-products-service.d.ts.map +1 -0
- package/out/service/supported-products-service.js +112 -0
- package/out/shared/index.d.ts +0 -1
- package/out/shared/index.d.ts.map +1 -1
- package/out/shared/index.js +0 -1
- package/out/shared/product.d.ts +3 -11
- package/out/shared/product.d.ts.map +1 -1
- package/out/shared/product.js +18 -32
- package/out/ui/text.d.ts +1 -1
- package/out/ui/text.js +1 -1
- package/package.json +2 -2
- package/out/shared/validate.d.ts +0 -3
- package/out/shared/validate.d.ts.map +0 -1
- package/out/shared/validate.js +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 6.6.0-next.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 385907a: list secondary products in installations
|
|
8
|
+
- Updated dependencies [87ae208]
|
|
9
|
+
- @forge/manifest@8.6.1-next.2
|
|
10
|
+
|
|
11
|
+
## 6.6.0-next.8
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 1a76049: Added support for Teamwork Graph.
|
|
16
|
+
|
|
3
17
|
## 6.6.0-next.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/out/ari/ari.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ari, AnyAri, JiraWorkspaceAri, ConfluenceWorkspaceAri, CompassWorkspaceAri } from '@forge/util/packages/ari';
|
|
1
|
+
import { Ari, AnyAri, JiraWorkspaceAri, ConfluenceWorkspaceAri, CompassWorkspaceAri, GraphWorkspaceAri } from '@forge/util/packages/ari';
|
|
2
2
|
export declare const SITE_RESOURCE_TYPE = "site";
|
|
3
3
|
export declare const WORKSPACE_RESOURCE_TYPE = "workspace";
|
|
4
4
|
export declare const TRELLO_RESOURCE_OWNER = "trello";
|
|
@@ -10,19 +10,14 @@ export declare function encodeContext(context: Ari, extension: Ari): string;
|
|
|
10
10
|
export declare class UnknownSiteWithoutResourceIdError extends Error {
|
|
11
11
|
constructor();
|
|
12
12
|
}
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class UnknownWorkspaceWithoutResourceIdError extends Error {
|
|
14
14
|
constructor();
|
|
15
15
|
}
|
|
16
|
-
export declare
|
|
17
|
-
constructor();
|
|
18
|
-
}
|
|
19
|
-
export interface EnrichedAri extends AnyAri {
|
|
20
|
-
derivedCloudId: string;
|
|
21
|
-
}
|
|
22
|
-
export declare function parseInstallationContext(installationContext: string): EnrichedAri;
|
|
16
|
+
export declare function parseInstallationContext(installationContext: string): AnyAri;
|
|
23
17
|
export declare const createWorkspaceAriByProduct: {
|
|
24
18
|
jira: (siteId: string, activationId: string) => JiraWorkspaceAri;
|
|
25
19
|
confluence: (siteId: string, activationId: string) => ConfluenceWorkspaceAri;
|
|
26
20
|
compass: (siteId: string, workspaceId: string) => CompassWorkspaceAri;
|
|
21
|
+
graph: (_siteId: string, activationId: string) => GraphWorkspaceAri;
|
|
27
22
|
};
|
|
28
23
|
//# sourceMappingURL=ari.d.ts.map
|
package/out/ari/ari.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAIlC,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,wBAAwB,cAAc,CAAC;AAEpD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAID,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,GAAG,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,GAAG,CAMhG;AAGD,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM,CAKlE;AACD,qBAAa,iCAAkC,SAAQ,KAAK;;CAI3D;AACD,qBAAa,sCAAuC,SAAQ,KAAK;;CAIhE;AASD,wBAAgB,wBAAwB,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,CAoB5E;AAGD,eAAO,MAAM,2BAA2B;mBACvB,MAAM,gBAAgB,MAAM;yBACtB,MAAM,gBAAgB,MAAM;sBAC/B,MAAM,eAAe,MAAM;qBAC5B,MAAM,gBAAgB,MAAM;CAC9C,CAAC"}
|
package/out/ari/ari.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createWorkspaceAriByProduct = exports.parseInstallationContext = exports.
|
|
3
|
+
exports.createWorkspaceAriByProduct = exports.parseInstallationContext = exports.UnknownWorkspaceWithoutResourceIdError = exports.UnknownSiteWithoutResourceIdError = exports.encodeContext = exports.buildExtensionAri = exports.buildContextAri = exports.appIdToAriString = exports.BITBUCKET_RESOURCE_OWNER = exports.TRELLO_RESOURCE_OWNER = exports.WORKSPACE_RESOURCE_TYPE = exports.SITE_RESOURCE_TYPE = void 0;
|
|
4
4
|
const ari_1 = require("@forge/util/packages/ari");
|
|
5
5
|
const shared_1 = require("../shared");
|
|
6
6
|
const ui_1 = require("../ui");
|
|
@@ -39,18 +39,12 @@ class UnknownSiteWithoutResourceIdError extends Error {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.UnknownSiteWithoutResourceIdError = UnknownSiteWithoutResourceIdError;
|
|
42
|
-
class
|
|
42
|
+
class UnknownWorkspaceWithoutResourceIdError extends Error {
|
|
43
43
|
constructor() {
|
|
44
|
-
super(ui_1.Text.installList.
|
|
44
|
+
super(ui_1.Text.installList.noResourceIdInWorkspace);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
48
|
-
class UnknownBBWorkspaceWithoutResourceIdError extends Error {
|
|
49
|
-
constructor() {
|
|
50
|
-
super(ui_1.Text.installList.bbNoResourceId);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.UnknownBBWorkspaceWithoutResourceIdError = UnknownBBWorkspaceWithoutResourceIdError;
|
|
47
|
+
exports.UnknownWorkspaceWithoutResourceIdError = UnknownWorkspaceWithoutResourceIdError;
|
|
54
48
|
function parseInstallationContext(installationContext) {
|
|
55
49
|
const context = ari_1.AnyAri.parse(installationContext);
|
|
56
50
|
switch (context.resourceType) {
|
|
@@ -58,20 +52,11 @@ function parseInstallationContext(installationContext) {
|
|
|
58
52
|
if (!context.resourceId) {
|
|
59
53
|
throw new UnknownSiteWithoutResourceIdError();
|
|
60
54
|
}
|
|
61
|
-
context.derivedCloudId = context.resourceId;
|
|
62
55
|
break;
|
|
63
56
|
case exports.WORKSPACE_RESOURCE_TYPE:
|
|
64
|
-
if (context.
|
|
65
|
-
|
|
66
|
-
throw new UnknownBBWorkspaceWithoutResourceIdError();
|
|
67
|
-
}
|
|
68
|
-
context.derivedCloudId = context.resourceId;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
else if (!context.cloudId) {
|
|
72
|
-
throw new UnknownWorkspaceWithoutCloudIdError();
|
|
57
|
+
if (!context.resourceId) {
|
|
58
|
+
throw new UnknownWorkspaceWithoutResourceIdError();
|
|
73
59
|
}
|
|
74
|
-
context.derivedCloudId = context.cloudId;
|
|
75
60
|
break;
|
|
76
61
|
default:
|
|
77
62
|
throw new Error('Unknown resource type');
|
|
@@ -82,5 +67,6 @@ exports.parseInstallationContext = parseInstallationContext;
|
|
|
82
67
|
exports.createWorkspaceAriByProduct = {
|
|
83
68
|
jira: (siteId, activationId) => ari_1.JiraWorkspaceAri.create({ siteId, activationId }),
|
|
84
69
|
confluence: (siteId, activationId) => ari_1.ConfluenceWorkspaceAri.create({ siteId, activationId }),
|
|
85
|
-
compass: (siteId, workspaceId) => ari_1.CompassWorkspaceAri.create({ siteId, workspaceId })
|
|
70
|
+
compass: (siteId, workspaceId) => ari_1.CompassWorkspaceAri.create({ siteId, workspaceId }),
|
|
71
|
+
graph: (_siteId, activationId) => ari_1.GraphWorkspaceAri.create({ workspaceId: activationId })
|
|
86
72
|
};
|
|
@@ -22792,6 +22792,36 @@ export declare enum EcosystemLicenseMode {
|
|
|
22792
22792
|
Agent = "AGENT",
|
|
22793
22793
|
UserAccess = "USER_ACCESS"
|
|
22794
22794
|
}
|
|
22795
|
+
export declare type EcosystemMarketplaceAppVersion = {
|
|
22796
|
+
__typename?: 'EcosystemMarketplaceAppVersion';
|
|
22797
|
+
buildNumber: Scalars['Float']['output'];
|
|
22798
|
+
editionsEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
22799
|
+
isSupported?: Maybe<Scalars['Boolean']['output']>;
|
|
22800
|
+
version: Scalars['String']['output'];
|
|
22801
|
+
};
|
|
22802
|
+
export declare type EcosystemMarketplaceData = {
|
|
22803
|
+
__typename?: 'EcosystemMarketplaceData';
|
|
22804
|
+
appId?: Maybe<Scalars['ID']['output']>;
|
|
22805
|
+
appKey?: Maybe<Scalars['String']['output']>;
|
|
22806
|
+
cloudAppId: Scalars['ID']['output'];
|
|
22807
|
+
forumsUrl?: Maybe<Scalars['String']['output']>;
|
|
22808
|
+
issueTrackerUrl?: Maybe<Scalars['String']['output']>;
|
|
22809
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
22810
|
+
slug?: Maybe<Scalars['String']['output']>;
|
|
22811
|
+
supportTicketSystemUrl?: Maybe<Scalars['String']['output']>;
|
|
22812
|
+
versions?: Maybe<EcosystemMarketplaceVersionConnection>;
|
|
22813
|
+
wikiUrl?: Maybe<Scalars['String']['output']>;
|
|
22814
|
+
};
|
|
22815
|
+
export declare type EcosystemMarketplaceVersionConnection = {
|
|
22816
|
+
__typename?: 'EcosystemMarketplaceVersionConnection';
|
|
22817
|
+
edges?: Maybe<Array<EcosystemMarketplaceVersionEdge>>;
|
|
22818
|
+
totalCount?: Maybe<Scalars['Int']['output']>;
|
|
22819
|
+
};
|
|
22820
|
+
export declare type EcosystemMarketplaceVersionEdge = {
|
|
22821
|
+
__typename?: 'EcosystemMarketplaceVersionEdge';
|
|
22822
|
+
cursor?: Maybe<Scalars['String']['output']>;
|
|
22823
|
+
node: EcosystemMarketplaceAppVersion;
|
|
22824
|
+
};
|
|
22795
22825
|
export declare type EcosystemMutation = {
|
|
22796
22826
|
__typename?: 'EcosystemMutation';
|
|
22797
22827
|
addAppContributor?: Maybe<AddAppContributorResponsePayload>;
|
|
@@ -22903,6 +22933,7 @@ export declare type EcosystemQuery = {
|
|
|
22903
22933
|
forgeMetrics?: Maybe<ForgeMetricsQuery>;
|
|
22904
22934
|
fortifiedMetrics?: Maybe<FortifiedMetricsQuery>;
|
|
22905
22935
|
globalInstallationConfig?: Maybe<Array<Maybe<EcosystemGlobalInstallationOverride>>>;
|
|
22936
|
+
marketplaceData: EcosystemMarketplaceData;
|
|
22906
22937
|
userAccess?: Maybe<UserAccess>;
|
|
22907
22938
|
userGrants?: Maybe<UserGrantConnection>;
|
|
22908
22939
|
userInstallationRules?: Maybe<UserInstallationRules>;
|
|
@@ -22969,6 +23000,9 @@ export declare type EcosystemQueryGlobalInstallationConfigArgs = {
|
|
|
22969
23000
|
cloudId: Scalars['ID']['input'];
|
|
22970
23001
|
filter?: InputMaybe<GlobalInstallationConfigFilter>;
|
|
22971
23002
|
};
|
|
23003
|
+
export declare type EcosystemQueryMarketplaceDataArgs = {
|
|
23004
|
+
cloudAppId: Scalars['ID']['input'];
|
|
23005
|
+
};
|
|
22972
23006
|
export declare type EcosystemQueryUserAccessArgs = {
|
|
22973
23007
|
contextId: Scalars['ID']['input'];
|
|
22974
23008
|
definitionId: Scalars['ID']['input'];
|
|
@@ -50420,12 +50454,15 @@ export declare type JiraBulkOperationInput = {
|
|
|
50420
50454
|
bulkDeleteInput?: InputMaybe<JiraBulkDeleteInput>;
|
|
50421
50455
|
bulkEditInput?: InputMaybe<JiraBulkEditInput>;
|
|
50422
50456
|
bulkTransitionsInput?: InputMaybe<Array<JiraBulkTransitionsInput>>;
|
|
50457
|
+
bulkWatchOrUnwatchInput?: InputMaybe<JiraBulkWatchOrUnwatchInput>;
|
|
50423
50458
|
sendBulkNotification?: InputMaybe<Scalars['Boolean']['input']>;
|
|
50424
50459
|
};
|
|
50425
50460
|
export declare enum JiraBulkOperationType {
|
|
50426
50461
|
BulkDelete = "BULK_DELETE",
|
|
50427
50462
|
BulkEdit = "BULK_EDIT",
|
|
50428
|
-
BulkTransition = "BULK_TRANSITION"
|
|
50463
|
+
BulkTransition = "BULK_TRANSITION",
|
|
50464
|
+
BulkUnwatch = "BULK_UNWATCH",
|
|
50465
|
+
BulkWatch = "BULK_WATCH"
|
|
50429
50466
|
}
|
|
50430
50467
|
export declare type JiraBulkTransition = Node & {
|
|
50431
50468
|
__typename?: 'JiraBulkTransition';
|
|
@@ -50478,6 +50515,9 @@ export declare type JiraBulkTransitionsInput = {
|
|
|
50478
50515
|
transitionId: Scalars['String']['input'];
|
|
50479
50516
|
transitionScreenInput?: InputMaybe<JiraTransitionScreenInput>;
|
|
50480
50517
|
};
|
|
50518
|
+
export declare type JiraBulkWatchOrUnwatchInput = {
|
|
50519
|
+
selectedIssueIds: Array<Scalars['ID']['input']>;
|
|
50520
|
+
};
|
|
50481
50521
|
export declare type JiraCmdbField = JiraIssueField & JiraIssueFieldConfiguration & Node & {
|
|
50482
50522
|
__typename?: 'JiraCMDBField';
|
|
50483
50523
|
aliasFieldId?: Maybe<Scalars['ID']['output']>;
|
|
@@ -66697,6 +66737,7 @@ export declare type KnowledgeDiscoveryAdminhubBookmarkFailureMetadata = {
|
|
|
66697
66737
|
};
|
|
66698
66738
|
export declare type KnowledgeDiscoveryAdminhubBookmarkProperties = {
|
|
66699
66739
|
__typename?: 'KnowledgeDiscoveryAdminhubBookmarkProperties';
|
|
66740
|
+
bookmarkState?: Maybe<KnowledgeDiscoveryBookmarkState>;
|
|
66700
66741
|
cloudId: Scalars['String']['output'];
|
|
66701
66742
|
createdTimestamp: Scalars['String']['output'];
|
|
66702
66743
|
creator?: Maybe<User>;
|
|
@@ -66738,6 +66779,7 @@ export declare type KnowledgeDiscoveryBookmarkMutationErrorExtension = MutationE
|
|
|
66738
66779
|
};
|
|
66739
66780
|
export declare type KnowledgeDiscoveryBookmarkProperties = {
|
|
66740
66781
|
__typename?: 'KnowledgeDiscoveryBookmarkProperties';
|
|
66782
|
+
bookmarkState?: Maybe<KnowledgeDiscoveryBookmarkState>;
|
|
66741
66783
|
description?: Maybe<Scalars['String']['output']>;
|
|
66742
66784
|
keyPhrase: Scalars['String']['output'];
|
|
66743
66785
|
lastModifiedTimestamp: Scalars['String']['output'];
|
|
@@ -66746,6 +66788,10 @@ export declare type KnowledgeDiscoveryBookmarkProperties = {
|
|
|
66746
66788
|
url: Scalars['String']['output'];
|
|
66747
66789
|
};
|
|
66748
66790
|
export declare type KnowledgeDiscoveryBookmarkResult = KnowledgeDiscoveryBookmark | QueryError;
|
|
66791
|
+
export declare enum KnowledgeDiscoveryBookmarkState {
|
|
66792
|
+
Active = "ACTIVE",
|
|
66793
|
+
Suggested = "SUGGESTED"
|
|
66794
|
+
}
|
|
66749
66795
|
export declare type KnowledgeDiscoveryBookmarkValidationFailureMetadata = KnowledgeDiscoveryAdminhubBookmarkFailureMetadata & {
|
|
66750
66796
|
__typename?: 'KnowledgeDiscoveryBookmarkValidationFailureMetadata';
|
|
66751
66797
|
errorType?: Maybe<Scalars['String']['output']>;
|
|
@@ -67065,6 +67111,7 @@ export declare type KnowledgeDiscoveryRelatedEntityRequests = {
|
|
|
67065
67111
|
export declare enum KnowledgeDiscoverySearchQueryClassification {
|
|
67066
67112
|
KeywordOrAcronym = "KEYWORD_OR_ACRONYM",
|
|
67067
67113
|
NaturalLanguageQuery = "NATURAL_LANGUAGE_QUERY",
|
|
67114
|
+
Navigational = "NAVIGATIONAL",
|
|
67068
67115
|
None = "NONE",
|
|
67069
67116
|
Person = "PERSON",
|
|
67070
67117
|
Team = "TEAM"
|