-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Move Azure type definitions to
models.ts
(#3977)
- Loading branch information
Showing
2 changed files
with
93 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
export interface AzureUser { | ||
displayName: string; | ||
url: string; | ||
_links: { | ||
avatar: { | ||
href: string; | ||
}; | ||
}; | ||
id: string; | ||
uniqueName: string; | ||
imageUrl: string; | ||
descriptor: string; | ||
} | ||
|
||
export interface AzureLink { | ||
href: string; | ||
} | ||
|
||
export interface WorkItem { | ||
_links: { | ||
fields: AzureLink; | ||
html: AzureLink; | ||
self: AzureLink; | ||
workItemComments: AzureLink; | ||
workItemRevisions: AzureLink; | ||
workItemType: AzureLink; | ||
workItemUpdates: AzureLink; | ||
}; | ||
fields: { | ||
// 'System.AreaPath': string; | ||
// 'System.TeamProject': string; | ||
// 'System.IterationPath': string; | ||
'System.WorkItemType': string; | ||
'System.State': string; | ||
// 'System.Reason': string; | ||
'System.CreatedDate': string; | ||
// 'System.CreatedBy': AzureUser; | ||
'System.ChangedDate': string; | ||
// 'System.ChangedBy': AzureUser; | ||
// 'System.CommentCount': number; | ||
'System.Title': string; | ||
// 'Microsoft.VSTS.Common.StateChangeDate': string; | ||
// 'Microsoft.VSTS.Common.Priority': number; | ||
// 'Microsoft.VSTS.Common.Severity': string; | ||
// 'Microsoft.VSTS.Common.ValueArea': string; | ||
}; | ||
id: number; | ||
rev: number; | ||
url: string; | ||
} | ||
|
||
export interface AzurePullRequest { | ||
repository: unknown; | ||
pullRequestId: number; | ||
codeReviewId: number; | ||
status: string; | ||
createdBy: AzureUser; | ||
creationDate: string; | ||
closedDate: string; | ||
title: string; | ||
description: string; | ||
sourceRefName: string; | ||
targetRefName: string; | ||
isDraft: boolean; | ||
mergeId: string; | ||
lastMergeSourceCommit: { | ||
commitId: string; | ||
url: string; | ||
}; | ||
lastMergeTargetCommit: { | ||
commitId: string; | ||
url: string; | ||
}; | ||
reviewers: unknown[]; | ||
url: string; | ||
_links: { | ||
self: AzureLink; | ||
repository: AzureLink; | ||
workItems: AzureLink; | ||
sourceBranch: AzureLink; | ||
targetBranch: AzureLink; | ||
statuses: AzureLink; | ||
sourceCommit: AzureLink; | ||
targetCommit: AzureLink; | ||
createdBy: AzureLink; | ||
iterations: AzureLink; | ||
}; | ||
supportsIterations: boolean; | ||
artifactId: string; | ||
} |