@@ -24,10 +24,8 @@ import {
2424} from '../utilities/tsUtils'
2525import { AsyncCollection , toCollection } from '../utilities/asyncCollection'
2626import { joinAll , pageableToCollection } from '../utilities/collectionUtils'
27- import { CodeCatalyst } from 'aws-sdk'
2827import { ToolkitError } from '../errors'
2928import { Uri } from 'vscode'
30- import { GetSourceRepositoryCloneUrlsRequest } from 'aws-sdk/clients/codecatalyst'
3129import {
3230 CodeCatalystClient as CodeCatalystSDKClient ,
3331 CreateAccessTokenCommand ,
@@ -53,15 +51,18 @@ import {
5351 GetProjectCommandOutput ,
5452 GetProjectRequest ,
5553 GetSourceRepositoryCloneUrlsCommand ,
54+ GetSourceRepositoryCloneUrlsRequest ,
5655 GetSourceRepositoryCloneUrlsResponse ,
5756 GetSpaceCommand ,
5857 GetSpaceCommandOutput ,
5958 GetSpaceRequest ,
6059 GetSubscriptionCommand ,
6160 GetSubscriptionRequest ,
61+ GetSubscriptionResponse ,
6262 GetUserDetailsCommand ,
6363 GetUserDetailsCommandOutput ,
6464 GetUserDetailsRequest ,
65+ GetUserDetailsResponse ,
6566 ListDevEnvironmentsCommand ,
6667 ListDevEnvironmentsRequest ,
6768 ListDevEnvironmentsResponse ,
@@ -73,6 +74,7 @@ import {
7374 ListSourceRepositoriesRequest ,
7475 ListSourceRepositoriesResponse ,
7576 ListSourceRepositoryBranchesCommand ,
77+ ListSourceRepositoryBranchesItem ,
7678 ListSourceRepositoryBranchesRequest ,
7779 ListSpacesCommand ,
7880 ListSpacesRequest ,
@@ -152,14 +154,14 @@ export interface DevEnvironment extends CodeCatalystDevEnvironmentSummary {
152154
153155/** CodeCatalyst developer environment session. */
154156// eslint-disable-next-line @typescript-eslint/no-empty-interface
155- export interface CodeCatalystDevEnvSession extends CodeCatalyst . StartDevEnvironmentResponse { }
157+ export interface CodeCatalystDevEnvSession extends StartDevEnvironmentResponse { }
156158
157159export interface CodeCatalystOrg extends SpaceSummary {
158160 readonly type : 'org'
159161 readonly name : string
160162}
161163
162- export interface CodeCatalystProject extends CodeCatalyst . ProjectSummary {
164+ export interface CodeCatalystProject extends ProjectSummary {
163165 readonly type : 'project'
164166 readonly name : string
165167 readonly org : Pick < CodeCatalystOrg , 'name' >
@@ -172,7 +174,7 @@ export interface CodeCatalystRepo extends ListSourceRepositoriesItem {
172174 readonly project : Pick < CodeCatalystProject , 'name' >
173175}
174176
175- export interface CodeCatalystBranch extends CodeCatalyst . ListSourceRepositoryBranchesItem {
177+ export interface CodeCatalystBranch extends ListSourceRepositoryBranchesItem {
176178 readonly type : 'branch'
177179 readonly name : string
178180 readonly repo : Pick < CodeCatalystRepo , 'name' >
@@ -200,7 +202,7 @@ function toBranch(
200202 org : string ,
201203 project : string ,
202204 repo : string ,
203- branch : CodeCatalyst . ListSourceRepositoryBranchesItem
205+ branch : ListSourceRepositoryBranchesItem
204206) : CodeCatalystBranch {
205207 assertHasProps ( branch , 'name' )
206208
@@ -229,10 +231,7 @@ function createCodeCatalystClient(
229231 } )
230232}
231233
232- export type UserDetails = RequiredProps <
233- CodeCatalyst . GetUserDetailsResponse ,
234- 'userId' | 'userName' | 'displayName' | 'primaryEmail'
235- >
234+ export type UserDetails = RequiredProps < GetUserDetailsResponse , 'userId' | 'userName' | 'displayName' | 'primaryEmail' >
236235
237236// CodeCatalyst client has two variants: 'logged-in' and 'not logged-in'
238237// The 'not logged-in' variant is a subtype and has restricted functionality
@@ -421,7 +420,7 @@ class CodeCatalystClientInternal extends ClientWrapper<CodeCatalystSDKClient> {
421420 }
422421 }
423422
424- public async getSubscription ( request : GetSubscriptionRequest ) : Promise < CodeCatalyst . GetSubscriptionResponse > {
423+ public async getSubscription ( request : GetSubscriptionRequest ) : Promise < GetSubscriptionResponse > {
425424 return this . call ( GetSubscriptionCommand , request , false )
426425 }
427426
0 commit comments