@@ -451,7 +451,9 @@ export class IntegrationService implements Disposable {
451451 return key == null ? this . _connectedCache . size !== 0 : this . _connectedCache . has ( key ) ;
452452 }
453453
454- get ( id : SupportedHostingIntegrationIds ) : Promise < HostingIntegration > ;
454+ get (
455+ id : SupportedHostingIntegrationIds | SelfHostedIntegrationId . CloudGitHubEnterprise ,
456+ ) : Promise < HostingIntegration > ;
455457 get ( id : SupportedIssueIntegrationIds ) : Promise < IssueIntegration > ;
456458 get ( id : SupportedSelfHostedIntegrationIds , domain : string ) : Promise < HostingIntegration > ;
457459 get ( id : SupportedIntegrationIds , domain ?: string ) : Promise < Integration > ;
@@ -758,8 +760,10 @@ export class IntegrationService implements Disposable {
758760 @log < IntegrationService [ 'getMyCurrentAccounts' ] > ( {
759761 args : { 0 : integrationIds => ( integrationIds ?. length ? integrationIds . join ( ',' ) : '<undefined>' ) } ,
760762 } )
761- async getMyCurrentAccounts ( integrationIds : HostingIntegrationId [ ] ) : Promise < Map < HostingIntegrationId , Account > > {
762- const accounts = new Map < HostingIntegrationId , Account > ( ) ;
763+ async getMyCurrentAccounts (
764+ integrationIds : ( HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise ) [ ] ,
765+ ) : Promise < Map < HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise , Account > > {
766+ const accounts = new Map < HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise , Account > ( ) ;
763767 await Promise . allSettled (
764768 integrationIds . map ( async integrationId => {
765769 const integration = await this . get ( integrationId ) ;
@@ -778,7 +782,7 @@ export class IntegrationService implements Disposable {
778782 args : { 0 : integrationIds => ( integrationIds ?. length ? integrationIds . join ( ',' ) : '<undefined>' ) , 1 : false } ,
779783 } )
780784 async getMyPullRequests (
781- integrationIds ?: HostingIntegrationId [ ] ,
785+ integrationIds ?: ( HostingIntegrationId | SelfHostedIntegrationId . CloudGitHubEnterprise ) [ ] ,
782786 cancellation ?: CancellationToken ,
783787 silent ?: boolean ,
784788 ) : Promise < IntegrationResult < SearchedPullRequest [ ] | undefined > > {
0 commit comments