azure-devops-extension-api 4.269.1 → 4.270.0
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/AdvancedSecurity.Reporting/Reporting.d.ts +5 -0
- package/Alert/Alert.d.ts +20 -0
- package/Common/Fetch.js +13 -14
- package/Common/Fetch.min.js +1 -1
- package/Git/Git.d.ts +183 -0
- package/Git/Git.js +22 -0
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +12 -0
- package/Git/GitClient.js +34 -0
- package/Git/GitClient.min.js +1 -1
- package/Identities/Identities.d.ts +1 -0
- package/TaskAgent/TaskAgent.d.ts +13 -0
- package/WorkItemTracking/WorkItemTracking.d.ts +34 -0
- package/_manifest/Spdx2xVs3xComparisonToolOutput.json +33 -0
- package/_manifest/spdx_2.2/ESRPClientLogs0331143549591.json +1 -0
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +1 -1
- package/_manifest/spdx_2.2/manifest.cat +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.json +1 -1
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/_manifest/spdx_3.0/ESRPClientLogs0331143549461.json +1 -0
- package/_manifest/spdx_3.0/bsi.cose +0 -0
- package/_manifest/spdx_3.0/bsi.json +1 -0
- package/_manifest/spdx_3.0/manifest.cat +0 -0
- package/_manifest/spdx_3.0/manifest.spdx.cose +0 -0
- package/_manifest/spdx_3.0/manifest.spdx.json +1 -1
- package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +1 -1
- package/package.json +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0305214508957.json +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as WebApi from "../WebApi/WebApi";
|
|
1
2
|
/**
|
|
2
3
|
* Represents an advanced filter configuration for the Reporting dashboard.
|
|
3
4
|
*/
|
|
@@ -18,6 +19,10 @@ export interface AdvancedFilter extends AdvancedFilterCreate {
|
|
|
18
19
|
* The identity of the user who created the advanced filter.
|
|
19
20
|
*/
|
|
20
21
|
createdBy: string;
|
|
22
|
+
/**
|
|
23
|
+
* The resolved identity of the user who created the advanced filter.
|
|
24
|
+
*/
|
|
25
|
+
createdByIdentity: WebApi.IdentityRef;
|
|
21
26
|
/**
|
|
22
27
|
* The date and time when the advanced filter was created.
|
|
23
28
|
*/
|
package/Alert/Alert.d.ts
CHANGED
|
@@ -752,6 +752,12 @@ export declare enum MetadataOperation {
|
|
|
752
752
|
* Location in the source control system where the issue was found
|
|
753
753
|
*/
|
|
754
754
|
export interface PhysicalLocation {
|
|
755
|
+
/**
|
|
756
|
+
* Additional properties for where the issue was found
|
|
757
|
+
*/
|
|
758
|
+
additionalProperties: {
|
|
759
|
+
[key: string]: any;
|
|
760
|
+
};
|
|
755
761
|
/**
|
|
756
762
|
* Path of the file where the issue was found
|
|
757
763
|
*/
|
|
@@ -806,6 +812,12 @@ export interface RelationMetadata {
|
|
|
806
812
|
attributes: {
|
|
807
813
|
[key: string]: any;
|
|
808
814
|
};
|
|
815
|
+
/**
|
|
816
|
+
* The properties of the metadata.
|
|
817
|
+
*/
|
|
818
|
+
properties: {
|
|
819
|
+
[key: string]: any;
|
|
820
|
+
};
|
|
809
821
|
/**
|
|
810
822
|
* The type of the metadata.
|
|
811
823
|
*/
|
|
@@ -969,6 +981,10 @@ export interface SearchCriteria {
|
|
|
969
981
|
* If provided, filters alerts based on whether they have linked work items. \<br /\>Set to "true" to return only alerts with linked work items. \<br /\>Set to "false" to return only alerts without linked work items. \<br /\>If not provided, returns all alerts regardless of linked work items. \<br /\>Not applicable for secret and dependency scanning alerts.
|
|
970
982
|
*/
|
|
971
983
|
hasLinkedWorkItems: boolean;
|
|
984
|
+
/**
|
|
985
|
+
* If provided with isTriaged, only return alerts that have been triaged. \<br /\>Otherwise, return alerts regardless of triage status.
|
|
986
|
+
*/
|
|
987
|
+
isTriaged: boolean;
|
|
972
988
|
/**
|
|
973
989
|
* If provided, only return alerts whose titles match this pattern.
|
|
974
990
|
*/
|
|
@@ -993,6 +1009,10 @@ export interface SearchCriteria {
|
|
|
993
1009
|
* If provided with pipelineName, only return alerts detected in this pipeline phase \<br /\>Otherwise, return alerts detected in all phases. \<br /\>Not applicable for secret alerts.
|
|
994
1010
|
*/
|
|
995
1011
|
phaseName: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* If provided with pipelineId, only return alerts detected in this pipeline \<br /\>Otherwise, return alerts detected in all pipelines.
|
|
1014
|
+
*/
|
|
1015
|
+
pipelineId: number;
|
|
996
1016
|
/**
|
|
997
1017
|
* If provided, only return alerts detected in this pipeline. \<br /\>Otherwise, return alerts detected in all pipelines. \<br /\>Not applicable for secret alerts.
|
|
998
1018
|
*/
|
package/Common/Fetch.js
CHANGED
|
@@ -55,7 +55,7 @@ define(["require", "exports", "whatwg-fetch"], function (require, exports) {
|
|
|
55
55
|
*/
|
|
56
56
|
function issueRequest(requestUrl, options, vssRequestOptions) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function () {
|
|
58
|
-
var response, headers, key, sessionId, command, refreshToken, authHeader, ex_1, error, error, _a;
|
|
58
|
+
var response, headers, key, sessionId, command, refreshToken, retried, authHeader, ex_1, error, error, _a;
|
|
59
59
|
return __generator(this, function (_b) {
|
|
60
60
|
switch (_b.label) {
|
|
61
61
|
case 0:
|
|
@@ -101,17 +101,18 @@ define(["require", "exports", "whatwg-fetch"], function (require, exports) {
|
|
|
101
101
|
// Send credentials to the same origin, we will use tokens for differing origins.
|
|
102
102
|
options.credentials = "same-origin";
|
|
103
103
|
refreshToken = false;
|
|
104
|
+
retried = false;
|
|
104
105
|
_b.label = 1;
|
|
105
106
|
case 1:
|
|
107
|
+
if (!true) return [3 /*break*/, 7];
|
|
106
108
|
if (!(vssRequestOptions && vssRequestOptions.authTokenProvider)) return [3 /*break*/, 3];
|
|
107
109
|
return [4 /*yield*/, vssRequestOptions.authTokenProvider.getAuthorizationHeader(refreshToken)];
|
|
108
110
|
case 2:
|
|
109
111
|
authHeader = _b.sent();
|
|
110
112
|
if (authHeader) {
|
|
111
|
-
headers.
|
|
112
|
-
refreshToken = true;
|
|
113
|
+
headers.set("Authorization", authHeader);
|
|
113
114
|
}
|
|
114
|
-
headers.
|
|
115
|
+
headers.set("X-TFS-FedAuthRedirect", "Suppress");
|
|
115
116
|
_b.label = 3;
|
|
116
117
|
case 3:
|
|
117
118
|
_b.trys.push([3, 5, , 6]);
|
|
@@ -126,23 +127,21 @@ define(["require", "exports", "whatwg-fetch"], function (require, exports) {
|
|
|
126
127
|
error.name = "NetworkException";
|
|
127
128
|
throw error;
|
|
128
129
|
case 6:
|
|
129
|
-
// If we
|
|
130
|
-
if (response.status === 401 && !
|
|
130
|
+
// If we received a 401 and have a token manager, refresh the token and retry once.
|
|
131
|
+
if (response.status === 401 && !retried && vssRequestOptions && vssRequestOptions.authTokenProvider) {
|
|
132
|
+
retried = true;
|
|
131
133
|
refreshToken = true;
|
|
132
|
-
return [3 /*break*/,
|
|
134
|
+
return [3 /*break*/, 1];
|
|
133
135
|
}
|
|
134
|
-
|
|
136
|
+
return [3 /*break*/, 7];
|
|
135
137
|
case 7:
|
|
136
|
-
if (
|
|
137
|
-
_b.label = 8;
|
|
138
|
-
case 8:
|
|
139
|
-
if (!!response.ok) return [3 /*break*/, 10];
|
|
138
|
+
if (!!response.ok) return [3 /*break*/, 9];
|
|
140
139
|
error = new Error();
|
|
141
140
|
error.name = "TFS.WebApi.Exception";
|
|
142
141
|
error.status = response.status;
|
|
143
142
|
_a = error;
|
|
144
143
|
return [4 /*yield*/, response.text()];
|
|
145
|
-
case
|
|
144
|
+
case 8:
|
|
146
145
|
_a.responseText = _b.sent();
|
|
147
146
|
// Attempt to parse the response as a json object, for many of the failures
|
|
148
147
|
// the server will serialize details into the body.
|
|
@@ -160,7 +159,7 @@ define(["require", "exports", "whatwg-fetch"], function (require, exports) {
|
|
|
160
159
|
error.message = response.status + ": " + response.statusText;
|
|
161
160
|
}
|
|
162
161
|
throw error;
|
|
163
|
-
case
|
|
162
|
+
case 9: return [2 /*return*/, response];
|
|
164
163
|
}
|
|
165
164
|
});
|
|
166
165
|
});
|
package/Common/Fetch.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,r,t,n){return new(t||(t=Promise))(function(a
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,r,t,n){return new(t||(t=Promise))(function(s,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){e.done?s(e.value):new t(function(r){r(e.value)}).then(o,i)}c((n=n.apply(e,r||[])).next())})},__generator=this&&this.__generator||function(e,r){function t(t){return function(o){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return i.label++,{value:t[1],done:!1};case 5:i.label++,s=t[1],t=[0];continue;case 7:t=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(6===t[0]||2===t[0])){i=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){i.label=t[1];break}if(6===t[0]&&i.label<a[1]){i.label=a[1],a=t;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(t);break}a[2]&&i.ops.pop(),i.trys.pop();continue}t=r.call(e,i)}catch(e){t=[6,e],s=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,o])}}var n,s,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","whatwg-fetch"],function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.issueRequest=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var n,s,a,o,i,c,u,l,h,p,f;return __generator(this,function(d){switch(d.label){case 0:if(n=void 0,r||(r={}),r.headers){if(r.headers instanceof Headers)s=r.headers;else if(s=new Headers,"function"==typeof r.headers.hasOwnProperty)for(a in r.headers)r.headers.hasOwnProperty(a)&&s.append(a,r.headers[a])}else s=new Headers;r.headers=s,s.append("X-VSS-ReauthenticationAction","Suppress"),t&&(o=t.sessionId,i=t.command,o&&(i?s.append("X-TFS-Session",o+","+i):s.append("X-TFS-Session",o))),r.credentials="same-origin",c=!1,u=!1,d.label=1;case 1:return t&&t.authTokenProvider?[4,t.authTokenProvider.getAuthorizationHeader(c)]:[3,3];case 2:(l=d.sent())&&s.set("Authorization",l),s.set("X-TFS-FedAuthRedirect","Suppress"),d.label=3;case 3:return d.trys.push([3,5,,6]),[4,fetch(e,r)];case 4:return n=d.sent(),[3,6];case 5:throw h=d.sent(),console.warn("Unhandled exception in fetch for "+e+": "+(h&&h.toString())),p=new Error("TF400893: Unable to contact the server. Please check your network connection and try again."),p.name="NetworkException",p;case 6:return 401===n.status&&!u&&t&&t.authTokenProvider?(u=!0,c=!0,[3,1]):[3,7];case 7:return n.ok?[3,9]:(p=new Error,p.name="TFS.WebApi.Exception",p.status=n.status,f=p,[4,n.text()]);case 8:if(f.responseText=d.sent(),p.responseText&&""!==p.responseText)try{p.serverError=JSON.parse(p.responseText),p.serverError&&p.serverError.message&&(p.message=p.serverError.message)}catch(e){}throw p.message||(p.message=n.status+": "+n.statusText),p;case 9:return[2,n]}})})}});
|
package/Git/Git.d.ts
CHANGED
|
@@ -569,6 +569,27 @@ export interface CompletionErrorsEvent extends RealTimePullRequestEvent {
|
|
|
569
569
|
*/
|
|
570
570
|
errorMessage: string;
|
|
571
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* Request to create an Enterprise Live Migration.
|
|
574
|
+
*/
|
|
575
|
+
export interface CreateMigrationRequest {
|
|
576
|
+
/**
|
|
577
|
+
* The UTC date/time representing when the cutover is to occur.
|
|
578
|
+
*/
|
|
579
|
+
scheduledCutoverDate: Date;
|
|
580
|
+
/**
|
|
581
|
+
* The ID of the user that will end up owning the migrated repository.
|
|
582
|
+
*/
|
|
583
|
+
targetOwnerUserId: string;
|
|
584
|
+
/**
|
|
585
|
+
* URL identifying the destination respository of migration.
|
|
586
|
+
*/
|
|
587
|
+
targetRepository: string;
|
|
588
|
+
/**
|
|
589
|
+
* True if the migration should only perform pre-migration validation.
|
|
590
|
+
*/
|
|
591
|
+
validateOnly: boolean;
|
|
592
|
+
}
|
|
572
593
|
/**
|
|
573
594
|
* Real time event (SignalR) for a discussions update on a pull request
|
|
574
595
|
*/
|
|
@@ -600,6 +621,23 @@ export interface FileDiff {
|
|
|
600
621
|
*/
|
|
601
622
|
path: string;
|
|
602
623
|
}
|
|
624
|
+
/**
|
|
625
|
+
* Provides properties that describe detailed file differences including line content
|
|
626
|
+
*/
|
|
627
|
+
export interface FileDiffDetail {
|
|
628
|
+
/**
|
|
629
|
+
* The collection of detailed line diff blocks
|
|
630
|
+
*/
|
|
631
|
+
lineDiffBlocks: LineDiffBlockDetail[];
|
|
632
|
+
/**
|
|
633
|
+
* Original path of item if different from current path.
|
|
634
|
+
*/
|
|
635
|
+
originalPath: string;
|
|
636
|
+
/**
|
|
637
|
+
* Current path of item
|
|
638
|
+
*/
|
|
639
|
+
path: string;
|
|
640
|
+
}
|
|
603
641
|
/**
|
|
604
642
|
* Provides parameters that describe inputs for the file diff
|
|
605
643
|
*/
|
|
@@ -1845,6 +1883,23 @@ export interface GitPullRequestCompletionOptions {
|
|
|
1845
1883
|
*/
|
|
1846
1884
|
triggeredByAutoComplete: boolean;
|
|
1847
1885
|
}
|
|
1886
|
+
/**
|
|
1887
|
+
* Collection of file diffs for a pull request.
|
|
1888
|
+
*/
|
|
1889
|
+
export interface GitPullRequestFilesDiff {
|
|
1890
|
+
/**
|
|
1891
|
+
* File diffs for all changed files in the pull request.
|
|
1892
|
+
*/
|
|
1893
|
+
fileDiffs: FileDiffDetail[];
|
|
1894
|
+
/**
|
|
1895
|
+
* Description of the pull request.
|
|
1896
|
+
*/
|
|
1897
|
+
pullRequestDescription: string;
|
|
1898
|
+
/**
|
|
1899
|
+
* Title of the pull request.
|
|
1900
|
+
*/
|
|
1901
|
+
pullRequestTitle: string;
|
|
1902
|
+
}
|
|
1848
1903
|
/**
|
|
1849
1904
|
* Provides properties that describe a Git pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request.
|
|
1850
1905
|
*/
|
|
@@ -3011,11 +3066,122 @@ export declare enum LineDiffBlockChangeType {
|
|
|
3011
3066
|
*/
|
|
3012
3067
|
Edit = 3
|
|
3013
3068
|
}
|
|
3069
|
+
/**
|
|
3070
|
+
* The class to represent a detailed line diff block with line content
|
|
3071
|
+
*/
|
|
3072
|
+
export interface LineDiffBlockDetail {
|
|
3073
|
+
/**
|
|
3074
|
+
* Type of change that was made to the block.
|
|
3075
|
+
*/
|
|
3076
|
+
changeType: LineDiffBlockChangeType;
|
|
3077
|
+
/**
|
|
3078
|
+
* Line number where this block starts in modified file.
|
|
3079
|
+
*/
|
|
3080
|
+
modifiedLineNumberStart: number;
|
|
3081
|
+
/**
|
|
3082
|
+
* Modified lines of content in this block.
|
|
3083
|
+
*/
|
|
3084
|
+
modifiedLines: string[];
|
|
3085
|
+
/**
|
|
3086
|
+
* Count of lines in this block in modified file.
|
|
3087
|
+
*/
|
|
3088
|
+
modifiedLinesCount: number;
|
|
3089
|
+
/**
|
|
3090
|
+
* Line number where this block starts in original file.
|
|
3091
|
+
*/
|
|
3092
|
+
originalLineNumberStart: number;
|
|
3093
|
+
/**
|
|
3094
|
+
* Original lines of content in this block.
|
|
3095
|
+
*/
|
|
3096
|
+
originalLines: string[];
|
|
3097
|
+
/**
|
|
3098
|
+
* Count of lines in this block in original file.
|
|
3099
|
+
*/
|
|
3100
|
+
originalLinesCount: number;
|
|
3101
|
+
}
|
|
3014
3102
|
/**
|
|
3015
3103
|
* Real time event (SignalR) for a merge completed on a pull request
|
|
3016
3104
|
*/
|
|
3017
3105
|
export interface MergeCompletedEvent extends RealTimePullRequestEvent {
|
|
3018
3106
|
}
|
|
3107
|
+
/**
|
|
3108
|
+
* An Enterprise Live Migration
|
|
3109
|
+
*/
|
|
3110
|
+
export interface Migration {
|
|
3111
|
+
/**
|
|
3112
|
+
* The identity that last changed this migration.
|
|
3113
|
+
*/
|
|
3114
|
+
changedBy: WebApi.IdentityRef;
|
|
3115
|
+
/**
|
|
3116
|
+
* The UTC date/time this migration was last changed.
|
|
3117
|
+
*/
|
|
3118
|
+
changedDate: Date;
|
|
3119
|
+
/**
|
|
3120
|
+
* The identity that created this migration.
|
|
3121
|
+
*/
|
|
3122
|
+
createdBy: WebApi.IdentityRef;
|
|
3123
|
+
/**
|
|
3124
|
+
* The UTC date/time this migration was created.
|
|
3125
|
+
*/
|
|
3126
|
+
createdDate: Date;
|
|
3127
|
+
/**
|
|
3128
|
+
* The error that caused this migration to fail.
|
|
3129
|
+
*/
|
|
3130
|
+
errorMessage: string;
|
|
3131
|
+
/**
|
|
3132
|
+
* RepositoryId
|
|
3133
|
+
*/
|
|
3134
|
+
repositoryId: string;
|
|
3135
|
+
/**
|
|
3136
|
+
* The UTC date/time representing when the cutover is to occur.
|
|
3137
|
+
*/
|
|
3138
|
+
scheduledCutoverDate: Date;
|
|
3139
|
+
/**
|
|
3140
|
+
* If the migration is 'active', 'complete', or 'failed'.
|
|
3141
|
+
*/
|
|
3142
|
+
status: MigrationStatus;
|
|
3143
|
+
/**
|
|
3144
|
+
* The ID of the user that will end up owning the migrated repository.
|
|
3145
|
+
*/
|
|
3146
|
+
targetOwnerUserId: string;
|
|
3147
|
+
/**
|
|
3148
|
+
* URL identifying the destination respository of migration.
|
|
3149
|
+
*/
|
|
3150
|
+
targetRepository: string;
|
|
3151
|
+
/**
|
|
3152
|
+
* True if the migration should only perform pre-migration validation.
|
|
3153
|
+
*/
|
|
3154
|
+
validateOnly: boolean;
|
|
3155
|
+
/**
|
|
3156
|
+
* A list of any issues found during pre-migration checks.
|
|
3157
|
+
*/
|
|
3158
|
+
validationIssues: string[];
|
|
3159
|
+
/**
|
|
3160
|
+
* A list of any warnings found during pre-migration checks.
|
|
3161
|
+
*/
|
|
3162
|
+
validationWarnings: string[];
|
|
3163
|
+
}
|
|
3164
|
+
/**
|
|
3165
|
+
* The status of an Enterprise Live Migration.
|
|
3166
|
+
*/
|
|
3167
|
+
export declare enum MigrationStatus {
|
|
3168
|
+
/**
|
|
3169
|
+
* The migration is active.
|
|
3170
|
+
*/
|
|
3171
|
+
Active = 0,
|
|
3172
|
+
/**
|
|
3173
|
+
* The migration has completed successfully.
|
|
3174
|
+
*/
|
|
3175
|
+
Succeeded = 1,
|
|
3176
|
+
/**
|
|
3177
|
+
* The migration has completed with a failure. The error details can be found in the Migration.Error property.
|
|
3178
|
+
*/
|
|
3179
|
+
Failed = 2,
|
|
3180
|
+
/**
|
|
3181
|
+
* The migration was suspended.
|
|
3182
|
+
*/
|
|
3183
|
+
Suspended = 3
|
|
3184
|
+
}
|
|
3019
3185
|
/**
|
|
3020
3186
|
* Real time event (SignalR) for a policy evaluation update on a pull request
|
|
3021
3187
|
*/
|
|
@@ -3841,6 +4007,23 @@ export declare enum TfvcVersionType {
|
|
|
3841
4007
|
*/
|
|
3842
4008
|
export interface TitleDescriptionUpdatedEvent extends RealTimePullRequestEvent {
|
|
3843
4009
|
}
|
|
4010
|
+
/**
|
|
4011
|
+
* Request to update an Enterprise Live Migration.
|
|
4012
|
+
*/
|
|
4013
|
+
export interface UpdateMigrationRequest {
|
|
4014
|
+
/**
|
|
4015
|
+
* The UTC date/time representing when the cutover is to occur.
|
|
4016
|
+
*/
|
|
4017
|
+
scheduledCutoverDate: Date;
|
|
4018
|
+
/**
|
|
4019
|
+
* The status requested for the migration. Allowed values are "Active" and "Suspended".
|
|
4020
|
+
*/
|
|
4021
|
+
statusRequested: MigrationStatus;
|
|
4022
|
+
/**
|
|
4023
|
+
* True if the migration should only perform pre-migration validation.
|
|
4024
|
+
*/
|
|
4025
|
+
validateOnly: boolean;
|
|
4026
|
+
}
|
|
3844
4027
|
export interface UpdateRefsRequest {
|
|
3845
4028
|
refUpdateRequests: GitRefUpdate[];
|
|
3846
4029
|
updateMode: GitRefUpdateMode;
|
package/Git/Git.js
CHANGED
|
@@ -602,6 +602,28 @@ define(["require", "exports"], function (require, exports) {
|
|
|
602
602
|
*/
|
|
603
603
|
LineDiffBlockChangeType[LineDiffBlockChangeType["Edit"] = 3] = "Edit";
|
|
604
604
|
})(LineDiffBlockChangeType = exports.LineDiffBlockChangeType || (exports.LineDiffBlockChangeType = {}));
|
|
605
|
+
/**
|
|
606
|
+
* The status of an Enterprise Live Migration.
|
|
607
|
+
*/
|
|
608
|
+
var MigrationStatus;
|
|
609
|
+
(function (MigrationStatus) {
|
|
610
|
+
/**
|
|
611
|
+
* The migration is active.
|
|
612
|
+
*/
|
|
613
|
+
MigrationStatus[MigrationStatus["Active"] = 0] = "Active";
|
|
614
|
+
/**
|
|
615
|
+
* The migration has completed successfully.
|
|
616
|
+
*/
|
|
617
|
+
MigrationStatus[MigrationStatus["Succeeded"] = 1] = "Succeeded";
|
|
618
|
+
/**
|
|
619
|
+
* The migration has completed with a failure. The error details can be found in the Migration.Error property.
|
|
620
|
+
*/
|
|
621
|
+
MigrationStatus[MigrationStatus["Failed"] = 2] = "Failed";
|
|
622
|
+
/**
|
|
623
|
+
* The migration was suspended.
|
|
624
|
+
*/
|
|
625
|
+
MigrationStatus[MigrationStatus["Suspended"] = 3] = "Suspended";
|
|
626
|
+
})(MigrationStatus = exports.MigrationStatus || (exports.MigrationStatus = {}));
|
|
605
627
|
/**
|
|
606
628
|
* The status of a pull request merge.
|
|
607
629
|
*/
|
package/Git/Git.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Fixed=2]="Fixed",e[e.WontFix=3]="WontFix",e[e.Closed=4]="Closed",e[e.ByDesign=5]="ByDesign",e[e.Pending=6]="Pending"}(t.CommentThreadStatus||(t.CommentThreadStatus={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Text=1]="Text",e[e.CodeChange=2]="CodeChange",e[e.System=3]="System"}(t.CommentType||(t.CommentType={}));!function(e){e[e.Queued=1]="Queued",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Abandoned=5]="Abandoned"}(t.GitAsyncOperationStatus||(t.GitAsyncOperationStatus={}));!function(e){e[e.None=0]="None",e[e.InvalidRefName=1]="InvalidRefName",e[e.RefNameConflict=2]="RefNameConflict",e[e.CreateBranchPermissionRequired=3]="CreateBranchPermissionRequired",e[e.WritePermissionRequired=4]="WritePermissionRequired",e[e.TargetBranchDeleted=5]="TargetBranchDeleted",e[e.GitObjectTooLarge=6]="GitObjectTooLarge",e[e.OperationIndentityNotFound=7]="OperationIndentityNotFound",e[e.AsyncOperationNotFound=8]="AsyncOperationNotFound",e[e.Other=9]="Other",e[e.EmptyCommitterSignature=10]="EmptyCommitterSignature"}(t.GitAsyncRefOperationFailureStatus||(t.GitAsyncRefOperationFailureStatus={}));!function(e){e[e.None=0]="None",e[e.AddAdd=1]="AddAdd",e[e.AddRename=2]="AddRename",e[e.DeleteEdit=3]="DeleteEdit",e[e.DeleteRename=4]="DeleteRename",e[e.DirectoryFile=5]="DirectoryFile",e[e.DirectoryChild=6]="DirectoryChild",e[e.EditDelete=7]="EditDelete",e[e.EditEdit=8]="EditEdit",e[e.FileDirectory=9]="FileDirectory",e[e.Rename1to2=10]="Rename1to2",e[e.Rename2to1=11]="Rename2to1",e[e.RenameAdd=12]="RenameAdd",e[e.RenameDelete=13]="RenameDelete",e[e.RenameRename=14]="RenameRename"}(t.GitConflictType||(t.GitConflictType={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.BadRequest=1]="BadRequest",e[e.InvalidResolution=2]="InvalidResolution",e[e.UnsupportedConflictType=3]="UnsupportedConflictType",e[e.NotFound=4]="NotFound"}(t.GitConflictUpdateStatus||(t.GitConflictUpdateStatus={}));!function(e){e[e.SimplifiedHistory=0]="SimplifiedHistory",e[e.FirstParent=1]="FirstParent",e[e.FullHistory=2]="FullHistory",e[e.FullHistorySimplifyMerges=3]="FullHistorySimplifyMerges"}(t.GitHistoryMode||(t.GitHistoryMode={}));!function(e){e[e.Bad=0]="Bad",e[e.Commit=1]="Commit",e[e.Tree=2]="Tree",e[e.Blob=3]="Blob",e[e.Tag=4]="Tag",e[e.Ext2=5]="Ext2",e[e.OfsDelta=6]="OfsDelta",e[e.RefDelta=7]="RefDelta"}(t.GitObjectType||(t.GitObjectType={}));!function(e){e[e.None=0]="None",e[e.Edit=1]="Edit",e[e.Delete=2]="Delete",e[e.Add=3]="Add",e[e.Rename=4]="Rename"}(t.GitPathActions||(t.GitPathActions={}));!function(e){e[e.NoFastForward=1]="NoFastForward",e[e.Squash=2]="Squash",e[e.Rebase=3]="Rebase",e[e.RebaseMerge=4]="RebaseMerge"}(t.GitPullRequestMergeStrategy||(t.GitPullRequestMergeStrategy={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Labels=1]="Labels"}(t.GitPullRequestQueryIncludeOptions||(t.GitPullRequestQueryIncludeOptions={}));!function(e){e[e.NotSet=0]="NotSet",e[e.LastMergeCommit=1]="LastMergeCommit",e[e.Commit=2]="Commit"}(t.GitPullRequestQueryType||(t.GitPullRequestQueryType={}));!function(e){e[e.ChangeEntry=0]="ChangeEntry",e[e.Attachment=1]="Attachment"}(t.GitPullRequestReviewFileType||(t.GitPullRequestReviewFileType={}));!function(e){e[e.Exact=0]="Exact",e[e.StartsWith=1]="StartsWith",e[e.Contains=2]="Contains"}(t.GitRefSearchType||(t.GitRefSearchType={}));!function(e){e[e.BestEffort=0]="BestEffort",e[e.AllOrNone=1]="AllOrNone"}(t.GitRefUpdateMode||(t.GitRefUpdateMode={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.ForcePushRequired=1]="ForcePushRequired",e[e.StaleOldObjectId=2]="StaleOldObjectId",e[e.InvalidRefName=3]="InvalidRefName",e[e.Unprocessed=4]="Unprocessed",e[e.UnresolvableToCommit=5]="UnresolvableToCommit",e[e.WritePermissionRequired=6]="WritePermissionRequired",e[e.ManageNotePermissionRequired=7]="ManageNotePermissionRequired",e[e.CreateBranchPermissionRequired=8]="CreateBranchPermissionRequired",e[e.CreateTagPermissionRequired=9]="CreateTagPermissionRequired",e[e.RejectedByPlugin=10]="RejectedByPlugin",e[e.Locked=11]="Locked",e[e.RefNameConflict=12]="RefNameConflict",e[e.RejectedByPolicy=13]="RejectedByPolicy",e[e.SucceededNonExistentRef=14]="SucceededNonExistentRef",e[e.SucceededCorruptRef=15]="SucceededCorruptRef"}(t.GitRefUpdateStatus||(t.GitRefUpdateStatus={}));!function(e){e[e.None=0]="None",e[e.MergeContentNotFound=1]="MergeContentNotFound",e[e.PathInUse=2]="PathInUse",e[e.InvalidPath=3]="InvalidPath",e[e.UnknownAction=4]="UnknownAction",e[e.UnknownMergeType=5]="UnknownMergeType",e[e.OtherError=255]="OtherError"}(t.GitResolutionError||(t.GitResolutionError={}));!function(e){e[e.Undecided=0]="Undecided",e[e.TakeSourceContent=1]="TakeSourceContent",e[e.TakeTargetContent=2]="TakeTargetContent",e[e.AutoMerged=3]="AutoMerged",e[e.UserMerged=4]="UserMerged"}(t.GitResolutionMergeType||(t.GitResolutionMergeType={}));!function(e){e[e.Undecided=0]="Undecided",e[e.KeepSourceRenameTarget=1]="KeepSourceRenameTarget",e[e.KeepSourceDeleteTarget=2]="KeepSourceDeleteTarget",e[e.KeepTargetRenameSource=3]="KeepTargetRenameSource",e[e.KeepTargetDeleteSource=4]="KeepTargetDeleteSource"}(t.GitResolutionPathConflictAction||(t.GitResolutionPathConflictAction={}));!function(e){e[e.Undecided=0]="Undecided",e[e.KeepSourcePath=1]="KeepSourcePath",e[e.KeepTargetPath=2]="KeepTargetPath",e[e.KeepBothFiles=3]="KeepBothFiles"}(t.GitResolutionRename1to2Action||(t.GitResolutionRename1to2Action={}));!function(e){e[e.Unresolved=0]="Unresolved",e[e.PartiallyResolved=1]="PartiallyResolved",e[e.Resolved=2]="Resolved"}(t.GitResolutionStatus||(t.GitResolutionStatus={}));!function(e){e[e.Undecided=0]="Undecided",e[e.PickSourceAction=1]="PickSourceAction",e[e.PickTargetAction=2]="PickTargetAction"}(t.GitResolutionWhichAction||(t.GitResolutionWhichAction={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Pending=1]="Pending",e[e.Succeeded=2]="Succeeded",e[e.Failed=3]="Failed",e[e.Error=4]="Error",e[e.NotApplicable=5]="NotApplicable",e[e.PartiallySucceeded=6]="PartiallySucceeded"}(t.GitStatusState||(t.GitStatusState={}));!function(e){e[e.None=0]="None",e[e.PreviousChange=1]="PreviousChange",e[e.FirstParent=2]="FirstParent"}(t.GitVersionOptions||(t.GitVersionOptions={}));!function(e){e[e.Branch=0]="Branch",e[e.Tag=1]="Tag",e[e.Commit=2]="Commit"}(t.GitVersionType||(t.GitVersionType={}));!function(e){e[e.RawText=0]="RawText",e[e.Base64Encoded=1]="Base64Encoded"}(t.ItemContentType||(t.ItemContentType={}));!function(e){e[e.Push=0]="Push",e[e.ForcePush=1]="ForcePush",e[e.Create=2]="Create",e[e.Rebase=4]="Rebase",e[e.Unknown=8]="Unknown",e[e.Retarget=16]="Retarget",e[e.ResolveConflicts=32]="ResolveConflicts"}(t.IterationReason||(t.IterationReason={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Delete=2]="Delete",e[e.Edit=3]="Edit"}(t.LineDiffBlockChangeType||(t.LineDiffBlockChangeType={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Queued=1]="Queued",e[e.Conflicts=2]="Conflicts",e[e.Succeeded=3]="Succeeded",e[e.RejectedByPolicy=4]="RejectedByPolicy",e[e.Failure=5]="Failure"}(t.PullRequestAsyncStatus||(t.PullRequestAsyncStatus={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.CaseSensitive=2]="CaseSensitive",e[e.ObjectTooLarge=3]="ObjectTooLarge"}(t.PullRequestMergeFailureType||(t.PullRequestMergeFailureType={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Active=1]="Active",e[e.Abandoned=2]="Abandoned",e[e.Completed=3]="Completed",e[e.All=4]="All"}(t.PullRequestStatus||(t.PullRequestStatus={}));!function(e){e[e.Created=1]="Created",e[e.Closed=2]="Closed"}(t.PullRequestTimeRangeType||(t.PullRequestTimeRangeType={}));!function(e){e[e.Invalid=0]="Invalid",e[e.Folder=1]="Folder",e[e.Ref=2]="Ref"}(t.RefFavoriteType||(t.RefFavoriteType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.AndroidStudio=1]="AndroidStudio",e[e.AppCode=2]="AppCode",e[e.CLion=3]="CLion",e[e.DataGrip=4]="DataGrip",e[e.Eclipse=13]="Eclipse",e[e.IntelliJ=5]="IntelliJ",e[e.MPS=6]="MPS",e[e.PhpStorm=7]="PhpStorm",e[e.PyCharm=8]="PyCharm",e[e.RubyMine=9]="RubyMine",e[e.Tower=10]="Tower",e[e.VisualStudio=11]="VisualStudio",e[e.VSCode=14]="VSCode",e[e.WebStorm=12]="WebStorm"}(t.SupportedIdeType||(t.SupportedIdeType={}));!function(e){e[e.None=0]="None",e[e.Previous=1]="Previous",e[e.UseRename=2]="UseRename"}(t.TfvcVersionOption||(t.TfvcVersionOption={}));!function(e){e[e.None=0]="None",e[e.Changeset=1]="Changeset",e[e.Shelveset=2]="Shelveset",e[e.Change=3]="Change",e[e.Date=4]="Date",e[e.Latest=5]="Latest",e[e.Tip=6]="Tip",e[e.MergeSource=7]="MergeSource"}(t.TfvcVersionType||(t.TfvcVersionType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Edit=2]="Edit",e[e.Encoding=4]="Encoding",e[e.Rename=8]="Rename",e[e.Delete=16]="Delete",e[e.Undelete=32]="Undelete",e[e.Branch=64]="Branch",e[e.Merge=128]="Merge",e[e.Lock=256]="Lock",e[e.Rollback=512]="Rollback",e[e.SourceRename=1024]="SourceRename",e[e.TargetRename=2048]="TargetRename",e[e.Property=4096]="Property",e[e.All=8191]="All"}(t.VersionControlChangeType||(t.VersionControlChangeType={}));!function(e){e[e.None=0]="None",e[e.OneLevel=1]="OneLevel",e[e.OneLevelPlusNestedEmptyFolders=4]="OneLevelPlusNestedEmptyFolders",e[e.Full=120]="Full"}(t.VersionControlRecursionType||(t.VersionControlRecursionType={}))});
|
|
1
|
+
define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Fixed=2]="Fixed",e[e.WontFix=3]="WontFix",e[e.Closed=4]="Closed",e[e.ByDesign=5]="ByDesign",e[e.Pending=6]="Pending"}(t.CommentThreadStatus||(t.CommentThreadStatus={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Text=1]="Text",e[e.CodeChange=2]="CodeChange",e[e.System=3]="System"}(t.CommentType||(t.CommentType={}));!function(e){e[e.Queued=1]="Queued",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Abandoned=5]="Abandoned"}(t.GitAsyncOperationStatus||(t.GitAsyncOperationStatus={}));!function(e){e[e.None=0]="None",e[e.InvalidRefName=1]="InvalidRefName",e[e.RefNameConflict=2]="RefNameConflict",e[e.CreateBranchPermissionRequired=3]="CreateBranchPermissionRequired",e[e.WritePermissionRequired=4]="WritePermissionRequired",e[e.TargetBranchDeleted=5]="TargetBranchDeleted",e[e.GitObjectTooLarge=6]="GitObjectTooLarge",e[e.OperationIndentityNotFound=7]="OperationIndentityNotFound",e[e.AsyncOperationNotFound=8]="AsyncOperationNotFound",e[e.Other=9]="Other",e[e.EmptyCommitterSignature=10]="EmptyCommitterSignature"}(t.GitAsyncRefOperationFailureStatus||(t.GitAsyncRefOperationFailureStatus={}));!function(e){e[e.None=0]="None",e[e.AddAdd=1]="AddAdd",e[e.AddRename=2]="AddRename",e[e.DeleteEdit=3]="DeleteEdit",e[e.DeleteRename=4]="DeleteRename",e[e.DirectoryFile=5]="DirectoryFile",e[e.DirectoryChild=6]="DirectoryChild",e[e.EditDelete=7]="EditDelete",e[e.EditEdit=8]="EditEdit",e[e.FileDirectory=9]="FileDirectory",e[e.Rename1to2=10]="Rename1to2",e[e.Rename2to1=11]="Rename2to1",e[e.RenameAdd=12]="RenameAdd",e[e.RenameDelete=13]="RenameDelete",e[e.RenameRename=14]="RenameRename"}(t.GitConflictType||(t.GitConflictType={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.BadRequest=1]="BadRequest",e[e.InvalidResolution=2]="InvalidResolution",e[e.UnsupportedConflictType=3]="UnsupportedConflictType",e[e.NotFound=4]="NotFound"}(t.GitConflictUpdateStatus||(t.GitConflictUpdateStatus={}));!function(e){e[e.SimplifiedHistory=0]="SimplifiedHistory",e[e.FirstParent=1]="FirstParent",e[e.FullHistory=2]="FullHistory",e[e.FullHistorySimplifyMerges=3]="FullHistorySimplifyMerges"}(t.GitHistoryMode||(t.GitHistoryMode={}));!function(e){e[e.Bad=0]="Bad",e[e.Commit=1]="Commit",e[e.Tree=2]="Tree",e[e.Blob=3]="Blob",e[e.Tag=4]="Tag",e[e.Ext2=5]="Ext2",e[e.OfsDelta=6]="OfsDelta",e[e.RefDelta=7]="RefDelta"}(t.GitObjectType||(t.GitObjectType={}));!function(e){e[e.None=0]="None",e[e.Edit=1]="Edit",e[e.Delete=2]="Delete",e[e.Add=3]="Add",e[e.Rename=4]="Rename"}(t.GitPathActions||(t.GitPathActions={}));!function(e){e[e.NoFastForward=1]="NoFastForward",e[e.Squash=2]="Squash",e[e.Rebase=3]="Rebase",e[e.RebaseMerge=4]="RebaseMerge"}(t.GitPullRequestMergeStrategy||(t.GitPullRequestMergeStrategy={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Labels=1]="Labels"}(t.GitPullRequestQueryIncludeOptions||(t.GitPullRequestQueryIncludeOptions={}));!function(e){e[e.NotSet=0]="NotSet",e[e.LastMergeCommit=1]="LastMergeCommit",e[e.Commit=2]="Commit"}(t.GitPullRequestQueryType||(t.GitPullRequestQueryType={}));!function(e){e[e.ChangeEntry=0]="ChangeEntry",e[e.Attachment=1]="Attachment"}(t.GitPullRequestReviewFileType||(t.GitPullRequestReviewFileType={}));!function(e){e[e.Exact=0]="Exact",e[e.StartsWith=1]="StartsWith",e[e.Contains=2]="Contains"}(t.GitRefSearchType||(t.GitRefSearchType={}));!function(e){e[e.BestEffort=0]="BestEffort",e[e.AllOrNone=1]="AllOrNone"}(t.GitRefUpdateMode||(t.GitRefUpdateMode={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.ForcePushRequired=1]="ForcePushRequired",e[e.StaleOldObjectId=2]="StaleOldObjectId",e[e.InvalidRefName=3]="InvalidRefName",e[e.Unprocessed=4]="Unprocessed",e[e.UnresolvableToCommit=5]="UnresolvableToCommit",e[e.WritePermissionRequired=6]="WritePermissionRequired",e[e.ManageNotePermissionRequired=7]="ManageNotePermissionRequired",e[e.CreateBranchPermissionRequired=8]="CreateBranchPermissionRequired",e[e.CreateTagPermissionRequired=9]="CreateTagPermissionRequired",e[e.RejectedByPlugin=10]="RejectedByPlugin",e[e.Locked=11]="Locked",e[e.RefNameConflict=12]="RefNameConflict",e[e.RejectedByPolicy=13]="RejectedByPolicy",e[e.SucceededNonExistentRef=14]="SucceededNonExistentRef",e[e.SucceededCorruptRef=15]="SucceededCorruptRef"}(t.GitRefUpdateStatus||(t.GitRefUpdateStatus={}));!function(e){e[e.None=0]="None",e[e.MergeContentNotFound=1]="MergeContentNotFound",e[e.PathInUse=2]="PathInUse",e[e.InvalidPath=3]="InvalidPath",e[e.UnknownAction=4]="UnknownAction",e[e.UnknownMergeType=5]="UnknownMergeType",e[e.OtherError=255]="OtherError"}(t.GitResolutionError||(t.GitResolutionError={}));!function(e){e[e.Undecided=0]="Undecided",e[e.TakeSourceContent=1]="TakeSourceContent",e[e.TakeTargetContent=2]="TakeTargetContent",e[e.AutoMerged=3]="AutoMerged",e[e.UserMerged=4]="UserMerged"}(t.GitResolutionMergeType||(t.GitResolutionMergeType={}));!function(e){e[e.Undecided=0]="Undecided",e[e.KeepSourceRenameTarget=1]="KeepSourceRenameTarget",e[e.KeepSourceDeleteTarget=2]="KeepSourceDeleteTarget",e[e.KeepTargetRenameSource=3]="KeepTargetRenameSource",e[e.KeepTargetDeleteSource=4]="KeepTargetDeleteSource"}(t.GitResolutionPathConflictAction||(t.GitResolutionPathConflictAction={}));!function(e){e[e.Undecided=0]="Undecided",e[e.KeepSourcePath=1]="KeepSourcePath",e[e.KeepTargetPath=2]="KeepTargetPath",e[e.KeepBothFiles=3]="KeepBothFiles"}(t.GitResolutionRename1to2Action||(t.GitResolutionRename1to2Action={}));!function(e){e[e.Unresolved=0]="Unresolved",e[e.PartiallyResolved=1]="PartiallyResolved",e[e.Resolved=2]="Resolved"}(t.GitResolutionStatus||(t.GitResolutionStatus={}));!function(e){e[e.Undecided=0]="Undecided",e[e.PickSourceAction=1]="PickSourceAction",e[e.PickTargetAction=2]="PickTargetAction"}(t.GitResolutionWhichAction||(t.GitResolutionWhichAction={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Pending=1]="Pending",e[e.Succeeded=2]="Succeeded",e[e.Failed=3]="Failed",e[e.Error=4]="Error",e[e.NotApplicable=5]="NotApplicable",e[e.PartiallySucceeded=6]="PartiallySucceeded"}(t.GitStatusState||(t.GitStatusState={}));!function(e){e[e.None=0]="None",e[e.PreviousChange=1]="PreviousChange",e[e.FirstParent=2]="FirstParent"}(t.GitVersionOptions||(t.GitVersionOptions={}));!function(e){e[e.Branch=0]="Branch",e[e.Tag=1]="Tag",e[e.Commit=2]="Commit"}(t.GitVersionType||(t.GitVersionType={}));!function(e){e[e.RawText=0]="RawText",e[e.Base64Encoded=1]="Base64Encoded"}(t.ItemContentType||(t.ItemContentType={}));!function(e){e[e.Push=0]="Push",e[e.ForcePush=1]="ForcePush",e[e.Create=2]="Create",e[e.Rebase=4]="Rebase",e[e.Unknown=8]="Unknown",e[e.Retarget=16]="Retarget",e[e.ResolveConflicts=32]="ResolveConflicts"}(t.IterationReason||(t.IterationReason={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Delete=2]="Delete",e[e.Edit=3]="Edit"}(t.LineDiffBlockChangeType||(t.LineDiffBlockChangeType={}));!function(e){e[e.Active=0]="Active",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Suspended=3]="Suspended"}(t.MigrationStatus||(t.MigrationStatus={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Queued=1]="Queued",e[e.Conflicts=2]="Conflicts",e[e.Succeeded=3]="Succeeded",e[e.RejectedByPolicy=4]="RejectedByPolicy",e[e.Failure=5]="Failure"}(t.PullRequestAsyncStatus||(t.PullRequestAsyncStatus={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.CaseSensitive=2]="CaseSensitive",e[e.ObjectTooLarge=3]="ObjectTooLarge"}(t.PullRequestMergeFailureType||(t.PullRequestMergeFailureType={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Active=1]="Active",e[e.Abandoned=2]="Abandoned",e[e.Completed=3]="Completed",e[e.All=4]="All"}(t.PullRequestStatus||(t.PullRequestStatus={}));!function(e){e[e.Created=1]="Created",e[e.Closed=2]="Closed"}(t.PullRequestTimeRangeType||(t.PullRequestTimeRangeType={}));!function(e){e[e.Invalid=0]="Invalid",e[e.Folder=1]="Folder",e[e.Ref=2]="Ref"}(t.RefFavoriteType||(t.RefFavoriteType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.AndroidStudio=1]="AndroidStudio",e[e.AppCode=2]="AppCode",e[e.CLion=3]="CLion",e[e.DataGrip=4]="DataGrip",e[e.Eclipse=13]="Eclipse",e[e.IntelliJ=5]="IntelliJ",e[e.MPS=6]="MPS",e[e.PhpStorm=7]="PhpStorm",e[e.PyCharm=8]="PyCharm",e[e.RubyMine=9]="RubyMine",e[e.Tower=10]="Tower",e[e.VisualStudio=11]="VisualStudio",e[e.VSCode=14]="VSCode",e[e.WebStorm=12]="WebStorm"}(t.SupportedIdeType||(t.SupportedIdeType={}));!function(e){e[e.None=0]="None",e[e.Previous=1]="Previous",e[e.UseRename=2]="UseRename"}(t.TfvcVersionOption||(t.TfvcVersionOption={}));!function(e){e[e.None=0]="None",e[e.Changeset=1]="Changeset",e[e.Shelveset=2]="Shelveset",e[e.Change=3]="Change",e[e.Date=4]="Date",e[e.Latest=5]="Latest",e[e.Tip=6]="Tip",e[e.MergeSource=7]="MergeSource"}(t.TfvcVersionType||(t.TfvcVersionType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Edit=2]="Edit",e[e.Encoding=4]="Encoding",e[e.Rename=8]="Rename",e[e.Delete=16]="Delete",e[e.Undelete=32]="Undelete",e[e.Branch=64]="Branch",e[e.Merge=128]="Merge",e[e.Lock=256]="Lock",e[e.Rollback=512]="Rollback",e[e.SourceRename=1024]="SourceRename",e[e.TargetRename=2048]="TargetRename",e[e.Property=4096]="Property",e[e.All=8191]="All"}(t.VersionControlChangeType||(t.VersionControlChangeType={}));!function(e){e[e.None=0]="None",e[e.OneLevel=1]="OneLevel",e[e.OneLevelPlusNestedEmptyFolders=4]="OneLevelPlusNestedEmptyFolders",e[e.Full=120]="Full"}(t.VersionControlRecursionType||(t.VersionControlRecursionType={}))});
|
package/Git/GitClient.d.ts
CHANGED
|
@@ -734,6 +734,18 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
734
734
|
* @param project - Project ID or project name
|
|
735
735
|
*/
|
|
736
736
|
updatePullRequestConflicts(conflictUpdates: Git.GitConflict[], repositoryId: string, pullRequestId: number, project?: string): Promise<Git.GitConflictUpdateResult[]>;
|
|
737
|
+
/**
|
|
738
|
+
* Retrieve the file diffs for all changes in a pull request.
|
|
739
|
+
*
|
|
740
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
741
|
+
* @param pullRequestId - ID of the pull request.
|
|
742
|
+
* @param project - Project ID or project name
|
|
743
|
+
* @param iteration - If specified, file diffs will be retrieved for this iteration. If not specified, uses the latest iteration.
|
|
744
|
+
* @param baseIteration - If specified, file diffs will be compared against this iteration. The default value is zero which indicates the comparison is made against the common commit between the source and target branches.
|
|
745
|
+
* @param top - Optional. The number of file diffs to retrieve. The default value is 100 and the maximum value is 300.
|
|
746
|
+
* @param skip - Optional. The number of file diffs to ignore. For example, to retrieve file diffs 101-150, set top to 50 and skip to 100.
|
|
747
|
+
*/
|
|
748
|
+
getPullRequestFilesDiff(repositoryId: string, pullRequestId: number, project?: string, iteration?: number, baseIteration?: number, top?: number, skip?: number): Promise<Git.GitPullRequestFilesDiff>;
|
|
737
749
|
/**
|
|
738
750
|
* Retrieve the changes made in a pull request between two iterations.
|
|
739
751
|
*
|
package/Git/GitClient.js
CHANGED
|
@@ -2199,6 +2199,40 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
2199
2199
|
});
|
|
2200
2200
|
});
|
|
2201
2201
|
};
|
|
2202
|
+
/**
|
|
2203
|
+
* Retrieve the file diffs for all changes in a pull request.
|
|
2204
|
+
*
|
|
2205
|
+
* @param repositoryId - The repository ID of the pull request's target branch.
|
|
2206
|
+
* @param pullRequestId - ID of the pull request.
|
|
2207
|
+
* @param project - Project ID or project name
|
|
2208
|
+
* @param iteration - If specified, file diffs will be retrieved for this iteration. If not specified, uses the latest iteration.
|
|
2209
|
+
* @param baseIteration - If specified, file diffs will be compared against this iteration. The default value is zero which indicates the comparison is made against the common commit between the source and target branches.
|
|
2210
|
+
* @param top - Optional. The number of file diffs to retrieve. The default value is 100 and the maximum value is 300.
|
|
2211
|
+
* @param skip - Optional. The number of file diffs to ignore. For example, to retrieve file diffs 101-150, set top to 50 and skip to 100.
|
|
2212
|
+
*/
|
|
2213
|
+
GitRestClient.prototype.getPullRequestFilesDiff = function (repositoryId, pullRequestId, project, iteration, baseIteration, top, skip) {
|
|
2214
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2215
|
+
var queryValues;
|
|
2216
|
+
return __generator(this, function (_a) {
|
|
2217
|
+
queryValues = {
|
|
2218
|
+
iteration: iteration,
|
|
2219
|
+
baseIteration: baseIteration,
|
|
2220
|
+
'$top': top,
|
|
2221
|
+
'$skip': skip
|
|
2222
|
+
};
|
|
2223
|
+
return [2 /*return*/, this.beginRequest({
|
|
2224
|
+
apiVersion: "7.2-preview.1",
|
|
2225
|
+
routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/filesdiff",
|
|
2226
|
+
routeValues: {
|
|
2227
|
+
project: project,
|
|
2228
|
+
repositoryId: repositoryId,
|
|
2229
|
+
pullRequestId: pullRequestId
|
|
2230
|
+
},
|
|
2231
|
+
queryParams: queryValues
|
|
2232
|
+
})];
|
|
2233
|
+
});
|
|
2234
|
+
});
|
|
2235
|
+
};
|
|
2202
2236
|
/**
|
|
2203
2237
|
* Retrieve the changes made in a pull request between two iterations.
|
|
2204
2238
|
*
|