@@ -14,14 +14,9 @@ import { AuthenticationError, CancellationError, RequestClientError } from '../.
1414import type { PagedResult } from '../../git/gitProvider' ;
1515import type { Account , UnidentifiedAuthor } from '../../git/models/author' ;
1616import type { DefaultBranch } from '../../git/models/defaultBranch' ;
17- import type { Issue , SearchedIssue } from '../../git/models/issue' ;
17+ import type { Issue , IssueShape } from '../../git/models/issue' ;
1818import type { IssueOrPullRequest } from '../../git/models/issueOrPullRequest' ;
19- import type {
20- PullRequest ,
21- PullRequestMergeMethod ,
22- PullRequestState ,
23- SearchedPullRequest ,
24- } from '../../git/models/pullRequest' ;
19+ import type { PullRequest , PullRequestMergeMethod , PullRequestState } from '../../git/models/pullRequest' ;
2520import type { RepositoryMetadata } from '../../git/models/repositoryMetadata' ;
2621import type { PullRequestUrlIdentity } from '../../git/utils/pullRequest.utils' ;
2722import { showIntegrationDisconnectedTooManyFailedRequestsWarningMessage } from '../../messages' ;
@@ -418,16 +413,16 @@ export abstract class IntegrationBase<
418413 async searchMyIssues (
419414 resource ?: ResourceDescriptor ,
420415 cancellation ?: CancellationToken ,
421- ) : Promise < SearchedIssue [ ] | undefined > ;
416+ ) : Promise < IssueShape [ ] | undefined > ;
422417 async searchMyIssues (
423418 resources ?: ResourceDescriptor [ ] ,
424419 cancellation ?: CancellationToken ,
425- ) : Promise < SearchedIssue [ ] | undefined > ;
420+ ) : Promise < IssueShape [ ] | undefined > ;
426421 @debug ( )
427422 async searchMyIssues (
428423 resources ?: ResourceDescriptor | ResourceDescriptor [ ] ,
429424 cancellation ?: CancellationToken ,
430- ) : Promise < SearchedIssue [ ] | undefined > {
425+ ) : Promise < IssueShape [ ] | undefined > {
431426 const scope = getLogScope ( ) ;
432427 const connected = this . maybeConnected ?? ( await this . isConnected ( ) ) ;
433428 if ( ! connected ) return undefined ;
@@ -441,15 +436,15 @@ export abstract class IntegrationBase<
441436 this . resetRequestExceptionCount ( ) ;
442437 return issues ;
443438 } catch ( ex ) {
444- return this . handleProviderException < SearchedIssue [ ] | undefined > ( ex , scope , undefined ) ;
439+ return this . handleProviderException < IssueShape [ ] | undefined > ( ex , scope , undefined ) ;
445440 }
446441 }
447442
448443 protected abstract searchProviderMyIssues (
449444 session : ProviderAuthenticationSession ,
450445 resources ?: ResourceDescriptor [ ] ,
451446 cancellation ?: CancellationToken ,
452- ) : Promise < SearchedIssue [ ] | undefined > ;
447+ ) : Promise < IssueShape [ ] | undefined > ;
453448
454449 @debug ( )
455450 async getIssueOrPullRequest (
@@ -660,7 +655,7 @@ export abstract class IssueIntegration<
660655 async getIssuesForProject (
661656 project : T ,
662657 options ?: { user ?: string ; filters ?: IssueFilter [ ] } ,
663- ) : Promise < SearchedIssue [ ] | undefined > {
658+ ) : Promise < IssueShape [ ] | undefined > {
664659 const connected = this . maybeConnected ?? ( await this . isConnected ( ) ) ;
665660 if ( ! connected ) return undefined ;
666661
@@ -669,15 +664,15 @@ export abstract class IssueIntegration<
669664 this . resetRequestExceptionCount ( ) ;
670665 return issues ;
671666 } catch ( ex ) {
672- return this . handleProviderException < SearchedIssue [ ] | undefined > ( ex , undefined , undefined ) ;
667+ return this . handleProviderException < IssueShape [ ] | undefined > ( ex , undefined , undefined ) ;
673668 }
674669 }
675670
676671 protected abstract getProviderIssuesForProject (
677672 session : ProviderAuthenticationSession ,
678673 project : T ,
679674 options ?: { user ?: string ; filters ?: IssueFilter [ ] } ,
680- ) : Promise < SearchedIssue [ ] | undefined > ;
675+ ) : Promise < IssueShape [ ] | undefined > ;
681676}
682677
683678export abstract class HostingIntegration <
@@ -1293,18 +1288,18 @@ export abstract class HostingIntegration<
12931288 repo ?: T ,
12941289 cancellation ?: CancellationToken ,
12951290 silent ?: boolean ,
1296- ) : Promise < IntegrationResult < SearchedPullRequest [ ] | undefined > > ;
1291+ ) : Promise < IntegrationResult < PullRequest [ ] | undefined > > ;
12971292 async searchMyPullRequests (
12981293 repos ?: T [ ] ,
12991294 cancellation ?: CancellationToken ,
13001295 silent ?: boolean ,
1301- ) : Promise < IntegrationResult < SearchedPullRequest [ ] | undefined > > ;
1296+ ) : Promise < IntegrationResult < PullRequest [ ] | undefined > > ;
13021297 @debug ( )
13031298 async searchMyPullRequests (
13041299 repos ?: T | T [ ] ,
13051300 cancellation ?: CancellationToken ,
13061301 silent ?: boolean ,
1307- ) : Promise < IntegrationResult < SearchedPullRequest [ ] | undefined > > {
1302+ ) : Promise < IntegrationResult < PullRequest [ ] | undefined > > {
13081303 const scope = getLogScope ( ) ;
13091304 const connected = this . maybeConnected ?? ( await this . isConnected ( ) ) ;
13101305 if ( ! connected ) return undefined ;
@@ -1329,7 +1324,7 @@ export abstract class HostingIntegration<
13291324 repos ?: T [ ] ,
13301325 cancellation ?: CancellationToken ,
13311326 silent ?: boolean ,
1332- ) : Promise < SearchedPullRequest [ ] | undefined > ;
1327+ ) : Promise < PullRequest [ ] | undefined > ;
13331328
13341329 async searchPullRequests (
13351330 searchQuery : string ,
0 commit comments