@forge/cli-shared 7.1.0-next.2 → 7.1.0-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 +8 -0
- package/out/auth/personal/me-graphql-client.d.ts +3 -0
- package/out/auth/personal/me-graphql-client.d.ts.map +1 -1
- package/out/auth/personal/me-graphql-client.js +10 -1
- package/out/graphql/graphql-types.d.ts +18 -2
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/ui/text.d.ts +3 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +4 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@ import { UserError } from '../../shared';
|
|
|
3
3
|
import { Logger } from '../../ui';
|
|
4
4
|
export declare class UserNotFoundError extends UserError {
|
|
5
5
|
}
|
|
6
|
+
export declare class ScopedTokenError extends UserError {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
6
9
|
export declare class MeGraphqlClient {
|
|
7
10
|
private readonly graphqlClient;
|
|
8
11
|
private readonly logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,MAAM,EAAQ,MAAM,UAAU,CAAC;AAEtD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,qBAAa,gBAAiB,SAAQ,SAAS;;CAI9C;AAED,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADN,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM;IAGpB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CA6BtC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MeGraphqlClient = exports.UserNotFoundError = void 0;
|
|
3
|
+
exports.MeGraphqlClient = exports.ScopedTokenError = exports.UserNotFoundError = void 0;
|
|
4
4
|
const shared_1 = require("../../shared");
|
|
5
5
|
const ui_1 = require("../../ui");
|
|
6
6
|
class UserNotFoundError extends shared_1.UserError {
|
|
7
7
|
}
|
|
8
8
|
exports.UserNotFoundError = UserNotFoundError;
|
|
9
|
+
class ScopedTokenError extends shared_1.UserError {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(ui_1.Text.login.scopedToken.error);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ScopedTokenError = ScopedTokenError;
|
|
9
15
|
class MeGraphqlClient {
|
|
10
16
|
graphqlClient;
|
|
11
17
|
logger;
|
|
@@ -32,6 +38,9 @@ class MeGraphqlClient {
|
|
|
32
38
|
}
|
|
33
39
|
catch (error) {
|
|
34
40
|
this.logger.debug((0, ui_1.errorMessage)(error));
|
|
41
|
+
if ((0, ui_1.errorMessage)(error).includes('This request does not contain the right authorisation scopes')) {
|
|
42
|
+
throw new ScopedTokenError();
|
|
43
|
+
}
|
|
35
44
|
}
|
|
36
45
|
throw new UserNotFoundError();
|
|
37
46
|
}
|
|
@@ -78094,7 +78094,7 @@ export declare type MarketplaceConsoleForgeAgcAppError = MarketplaceConsoleError
|
|
|
78094
78094
|
export declare type MarketplaceConsoleForgeAgcAppValidationResponse = MarketplaceConsoleForgeAgcApp | MarketplaceConsoleForgeAgcAppError;
|
|
78095
78095
|
export declare type MarketplaceConsoleForgeFrameworkAttributes = {
|
|
78096
78096
|
__typename?: 'MarketplaceConsoleForgeFrameworkAttributes';
|
|
78097
|
-
appAccess
|
|
78097
|
+
appAccess?: Maybe<Array<Scalars['String']['output']>>;
|
|
78098
78098
|
appId: Scalars['ID']['output'];
|
|
78099
78099
|
envId: Scalars['ID']['output'];
|
|
78100
78100
|
scopes: Array<Scalars['String']['output']>;
|
|
@@ -85400,6 +85400,7 @@ export declare type OAuthClientsAccountGrant = {
|
|
|
85400
85400
|
accountId?: Maybe<Scalars['String']['output']>;
|
|
85401
85401
|
appEnvironment?: Maybe<AppEnvironment>;
|
|
85402
85402
|
clientId?: Maybe<Scalars['String']['output']>;
|
|
85403
|
+
clientInfo?: Maybe<OAuthClientsClientInfo>;
|
|
85403
85404
|
scopeDetails?: Maybe<Array<Maybe<OAuthClientsScopeDetails>>>;
|
|
85404
85405
|
scopes?: Maybe<Array<Scalars['String']['output']>>;
|
|
85405
85406
|
};
|
|
@@ -85421,6 +85422,13 @@ export declare type OAuthClientsAccountGrantPageInfo = {
|
|
|
85421
85422
|
hasPreviousPage: Scalars['Boolean']['output'];
|
|
85422
85423
|
startCursor?: Maybe<Scalars['String']['output']>;
|
|
85423
85424
|
};
|
|
85425
|
+
export declare type OAuthClientsClientInfo = {
|
|
85426
|
+
__typename?: 'OAuthClientsClientInfo';
|
|
85427
|
+
clientId: Scalars['String']['output'];
|
|
85428
|
+
clientName?: Maybe<Scalars['String']['output']>;
|
|
85429
|
+
customerName?: Maybe<Scalars['String']['output']>;
|
|
85430
|
+
profileName?: Maybe<Scalars['String']['output']>;
|
|
85431
|
+
};
|
|
85424
85432
|
export declare type OAuthClientsQuery = {
|
|
85425
85433
|
__typename?: 'OAuthClientsQuery';
|
|
85426
85434
|
allAccountGrantsForUser?: Maybe<OAuthClientsAccountGrantConnection>;
|
|
@@ -88457,6 +88465,7 @@ export declare type Query = {
|
|
|
88457
88465
|
searchesWithZeroCTR?: Maybe<SearchesWithZeroCtr>;
|
|
88458
88466
|
settings_navigationCustomisation?: Maybe<SettingsNavigationCustomisation>;
|
|
88459
88467
|
shepherd?: Maybe<ShepherdQuery>;
|
|
88468
|
+
shepherdTeamworkGraph?: Maybe<ShepherdTeamworkGraphQueries>;
|
|
88460
88469
|
signUpProperties?: Maybe<SignUpProperties>;
|
|
88461
88470
|
signup?: Maybe<SignupQueryApi>;
|
|
88462
88471
|
singleContent?: Maybe<Content>;
|
|
@@ -96072,6 +96081,13 @@ export declare type ShepherdSuspiciousSearchTerm = {
|
|
|
96072
96081
|
endPosition: Scalars['Int']['output'];
|
|
96073
96082
|
startPosition: Scalars['Int']['output'];
|
|
96074
96083
|
};
|
|
96084
|
+
export declare type ShepherdTeamworkGraphQueries = {
|
|
96085
|
+
__typename?: 'ShepherdTeamworkGraphQueries';
|
|
96086
|
+
workspaces?: Maybe<Array<Maybe<ShepherdWorkspace>>>;
|
|
96087
|
+
};
|
|
96088
|
+
export declare type ShepherdTeamworkGraphQueriesWorkspacesArgs = {
|
|
96089
|
+
ids: Array<Scalars['ID']['input']>;
|
|
96090
|
+
};
|
|
96075
96091
|
export declare type ShepherdTime = {
|
|
96076
96092
|
__typename?: 'ShepherdTime';
|
|
96077
96093
|
end?: Maybe<Scalars['DateTime']['output']>;
|
|
@@ -96154,7 +96170,7 @@ export declare enum ShepherdWebhookType {
|
|
|
96154
96170
|
MicrosoftTeams = "MICROSOFT_TEAMS",
|
|
96155
96171
|
Slack = "SLACK"
|
|
96156
96172
|
}
|
|
96157
|
-
export declare type ShepherdWorkspace = {
|
|
96173
|
+
export declare type ShepherdWorkspace = Node & {
|
|
96158
96174
|
__typename?: 'ShepherdWorkspace';
|
|
96159
96175
|
bitbucketWorkspaces?: Maybe<Array<ShepherdBitbucketWorkspace>>;
|
|
96160
96176
|
cloudId: Scalars['ID']['output'];
|