@forge/cli-shared 3.17.3-next.1 → 3.17.3-next.3
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 +13 -0
- package/out/auth/instruction.d.ts +1 -1
- package/out/auth/instruction.d.ts.map +1 -1
- package/out/auth/instruction.js +9 -4
- package/out/auth/personal/credential-store.d.ts.map +1 -1
- package/out/auth/personal/credential-store.js +2 -1
- package/out/graphql/gateway.d.ts +5 -3
- package/out/graphql/gateway.d.ts.map +1 -1
- package/out/graphql/gateway.js +5 -0
- package/out/graphql/graphql-types.d.ts +1 -1
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/service/feature-flag-service.d.ts.map +1 -1
- package/out/service/feature-flag-service.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 3.17.3-next.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a4cc20b6]
|
|
8
|
+
- @forge/manifest@4.19.2-next.2
|
|
9
|
+
|
|
10
|
+
## 3.17.3-next.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- d8672a7: FedRAMP sandbox environment support
|
|
15
|
+
|
|
3
16
|
## 3.17.3-next.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getInstructionsUrl(
|
|
1
|
+
export declare function getInstructionsUrl(): string;
|
|
2
2
|
//# sourceMappingURL=instruction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../src/auth/instruction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../src/auth/instruction.ts"],"names":[],"mappings":"AAcA,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
|
package/out/auth/instruction.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInstructionsUrl = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const gateway_1 = require("../graphql/gateway");
|
|
5
|
+
const INSTRUCTION_URLS = {
|
|
6
|
+
DEV: 'https://id.stg.internal.atlassian.com/manage/api-tokens',
|
|
7
|
+
STG: 'https://id.stg.internal.atlassian.com/manage/api-tokens',
|
|
8
|
+
PROD: 'https://id.atlassian.com/manage/api-tokens',
|
|
9
|
+
FEDRAMP_SANDBOX: 'https://id.atlassian-fex.com/manage/api-tokens'
|
|
10
|
+
};
|
|
11
|
+
function getInstructionsUrl() {
|
|
12
|
+
return (0, gateway_1.getEnvironment)(INSTRUCTION_URLS);
|
|
8
13
|
}
|
|
9
14
|
exports.getInstructionsUrl = getInstructionsUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/credential-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAQ,MAAM,UAAU,CAAC;AACxC,OAAO,EAAuB,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,SAAS,EAAa,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,SAAS,gBAAgB,CAAC;AACvC,eAAO,MAAM,aAAa,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/credential-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAQ,MAAM,UAAU,CAAC;AACxC,OA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,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAN/B,OAAO,CAAC,aAAa,CAAS;gBAGX,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,YAAY,EAAE,UAAU;IAK3C,OAAO,CAAC,eAAe;IAoBvB,iBAAiB,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,+BAA+B;IAoB9E,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,+BAA+B,GAAG,SAAS,CAAC;IAehG,+BAA+B,IAAI,+BAA+B,GAAG,SAAS;IAS9E,kCAAkC,IAAI,IAAI;IAIpC,cAAc,IAAI,OAAO,CAAC,+BAA+B,CAAC;IA6B1D,cAAc,CAAC,WAAW,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;IAY3E,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYxC,0BAA0B,IAAI,MAAM;CAMrC;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAKlE"}
|
|
@@ -20,6 +20,7 @@ var KeytarAccount;
|
|
|
20
20
|
KeytarAccount["DEV"] = "Ecosystem-staging";
|
|
21
21
|
KeytarAccount["STG"] = "Ecosystem-staging";
|
|
22
22
|
KeytarAccount["PROD"] = "Ecosystem";
|
|
23
|
+
KeytarAccount["FEDRAMP_SANDBOX"] = "Ecosystem-fex";
|
|
23
24
|
})(KeytarAccount || (KeytarAccount = {}));
|
|
24
25
|
function getKeytar() {
|
|
25
26
|
try {
|
|
@@ -181,7 +182,7 @@ exports.CredentialStoreImpl = CredentialStoreImpl;
|
|
|
181
182
|
function getCredentialStore(logger) {
|
|
182
183
|
const keytar = getKeytar();
|
|
183
184
|
const cachedConfig = cache_1.CachedConf.getCache(cache_1.CONFIG_PROJECT_NAME);
|
|
184
|
-
const instructionsUrl = (0, instruction_1.getInstructionsUrl)(
|
|
185
|
+
const instructionsUrl = (0, instruction_1.getInstructionsUrl)();
|
|
185
186
|
return new CredentialStoreImpl(logger, instructionsUrl, keytar, cachedConfig);
|
|
186
187
|
}
|
|
187
188
|
exports.getCredentialStore = getCredentialStore;
|
package/out/graphql/gateway.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ export declare const getGraphqlGateway: () => string;
|
|
|
3
3
|
declare enum Environments {
|
|
4
4
|
DEV = "dev",
|
|
5
5
|
STG = "staging",
|
|
6
|
-
PROD = "prod"
|
|
6
|
+
PROD = "prod",
|
|
7
|
+
FEDRAMP_SANDBOX = "fex"
|
|
7
8
|
}
|
|
8
|
-
type EnvironmentOptions = Record<keyof typeof Environments, string>;
|
|
9
|
+
export type EnvironmentOptions = Record<keyof typeof Environments, string>;
|
|
9
10
|
export declare enum CDNEnvironments {
|
|
10
11
|
DEV = "dev",
|
|
11
12
|
STG = "stg",
|
|
12
|
-
PROD = "prod"
|
|
13
|
+
PROD = "prod",
|
|
14
|
+
FEDRAMP_SANDBOX = "fex"
|
|
13
15
|
}
|
|
14
16
|
export declare const getEnvironment: (envOptions?: EnvironmentOptions) => string;
|
|
15
17
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/graphql/gateway.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAAO,MAEpC,CAAC;AAEF,aAAK,YAAY;IACf,GAAG,QAAQ;IACX,GAAG,YAAY;IACf,IAAI,SAAS;
|
|
1
|
+
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/graphql/gateway.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAAO,MAEpC,CAAC;AAEF,aAAK,YAAY;IACf,GAAG,QAAQ;IACX,GAAG,YAAY;IACf,IAAI,SAAS;IACb,eAAe,QAAQ;CACxB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;AAE3E,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,eAAe,QAAQ;CACxB;AAED,eAAO,MAAM,cAAc,gBAAgB,kBAAkB,KAAkB,MAc9E,CAAC"}
|
package/out/graphql/gateway.js
CHANGED
|
@@ -11,12 +11,14 @@ var Environments;
|
|
|
11
11
|
Environments["DEV"] = "dev";
|
|
12
12
|
Environments["STG"] = "staging";
|
|
13
13
|
Environments["PROD"] = "prod";
|
|
14
|
+
Environments["FEDRAMP_SANDBOX"] = "fex";
|
|
14
15
|
})(Environments || (Environments = {}));
|
|
15
16
|
var CDNEnvironments;
|
|
16
17
|
(function (CDNEnvironments) {
|
|
17
18
|
CDNEnvironments["DEV"] = "dev";
|
|
18
19
|
CDNEnvironments["STG"] = "stg";
|
|
19
20
|
CDNEnvironments["PROD"] = "prod";
|
|
21
|
+
CDNEnvironments["FEDRAMP_SANDBOX"] = "fex";
|
|
20
22
|
})(CDNEnvironments = exports.CDNEnvironments || (exports.CDNEnvironments = {}));
|
|
21
23
|
const getEnvironment = (envOptions = Environments) => {
|
|
22
24
|
const graphqlGateway = (0, exports.getGraphqlGateway)();
|
|
@@ -26,6 +28,9 @@ const getEnvironment = (envOptions = Environments) => {
|
|
|
26
28
|
if (graphqlGateway.includes('.stg.')) {
|
|
27
29
|
return envOptions.STG;
|
|
28
30
|
}
|
|
31
|
+
if (graphqlGateway.includes('-fed-sandbox-')) {
|
|
32
|
+
return envOptions.FEDRAMP_SANDBOX;
|
|
33
|
+
}
|
|
29
34
|
return envOptions.PROD;
|
|
30
35
|
};
|
|
31
36
|
exports.getEnvironment = getEnvironment;
|
|
@@ -9347,7 +9347,7 @@ export type ForgeAuditLogsContributorActivity = {
|
|
|
9347
9347
|
publicName: Scalars['String'];
|
|
9348
9348
|
status: Scalars['String'];
|
|
9349
9349
|
lastActive?: Maybe<Scalars['String']>;
|
|
9350
|
-
|
|
9350
|
+
roles?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
9351
9351
|
};
|
|
9352
9352
|
export type ForgeAuditLogsContributorsActivityData = {
|
|
9353
9353
|
__typename?: 'ForgeAuditLogsContributorsActivityData';
|