azure-devops-extension-api 4.235.0 → 4.237.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.
Files changed (43) hide show
  1. package/AdvancedSecurity.Reporting/Reporting.d.ts +119 -0
  2. package/AdvancedSecurity.Reporting/Reporting.js +9 -0
  3. package/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
  4. package/AdvancedSecurity.Reporting/ReportingClient.d.ts +14 -0
  5. package/AdvancedSecurity.Reporting/ReportingClient.js +94 -0
  6. package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -0
  7. package/Alert/Alert.d.ts +25 -2
  8. package/Alert/Alert.js +12 -2
  9. package/Alert/Alert.min.js +1 -1
  10. package/Dashboard/Dashboard.d.ts +4 -0
  11. package/Git/Git.d.ts +0 -4
  12. package/Git/GitClient.d.ts +68 -0
  13. package/Git/GitClient.js +179 -0
  14. package/Git/GitClient.min.js +1 -1
  15. package/Management/Management.d.ts +10 -4
  16. package/Management/ManagementClient.d.ts +6 -4
  17. package/Management/ManagementClient.js +20 -18
  18. package/Management/ManagementClient.min.js +1 -1
  19. package/Release/Release.d.ts +55 -0
  20. package/Release/Release.js +14 -0
  21. package/Release/Release.min.js +1 -1
  22. package/Release/ReleaseClient.d.ts +1 -1
  23. package/Release/ReleaseClient.js +1 -1
  24. package/TaskAgent/TaskAgent.d.ts +12 -1
  25. package/TaskAgent/TaskAgent.js +2 -0
  26. package/TaskAgent/TaskAgent.min.js +1 -1
  27. package/TaskAgent/TaskAgentClient.d.ts +2 -1
  28. package/TaskAgent/TaskAgentClient.js +4 -2
  29. package/TaskAgent/TaskAgentClient.min.js +1 -1
  30. package/Test/Test.d.ts +26 -46
  31. package/Test/Test.js +0 -40
  32. package/Test/Test.min.js +1 -1
  33. package/TestPlan/TestPlan.d.ts +9 -0
  34. package/TestPlan/TestPlanClient.d.ts +16 -0
  35. package/TestPlan/TestPlanClient.js +46 -0
  36. package/TestPlan/TestPlanClient.min.js +1 -1
  37. package/TestResults/TestResultsClient.d.ts +58 -0
  38. package/TestResults/TestResultsClient.js +195 -6
  39. package/TestResults/TestResultsClient.min.js +1 -1
  40. package/WebApi/WebApi.d.ts +4 -0
  41. package/WebApi/WebApi.js +5 -0
  42. package/WebApi/WebApi.min.js +1 -1
  43. package/package.json +1 -1
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Alert Summary by severity.
3
+ */
4
+ export interface AlertSummaryBySeverity {
5
+ /**
6
+ * Total Critical severity alerts.
7
+ */
8
+ critical: number;
9
+ /**
10
+ * Total High severity alerts.
11
+ */
12
+ high: number;
13
+ /**
14
+ * Total low severity alerts.
15
+ */
16
+ low: number;
17
+ /**
18
+ * Total Medium severity alerts.
19
+ */
20
+ medium: number;
21
+ }
22
+ /**
23
+ * Org Alert Summary.
24
+ */
25
+ export interface OrgAlertSummary {
26
+ /**
27
+ * Org Id.
28
+ */
29
+ orgId: string;
30
+ /**
31
+ * A list of Project summary data.
32
+ */
33
+ projects: ProjectAlertSummary[];
34
+ }
35
+ /**
36
+ * Org Enablement Summary.
37
+ */
38
+ export interface OrgEnablementSummary {
39
+ /**
40
+ * Org Id.
41
+ */
42
+ orgId: string;
43
+ /**
44
+ * A list of Project Enablement data.
45
+ */
46
+ projects: ProjectEnablementSummary[];
47
+ }
48
+ /**
49
+ * Project Alert Summary.
50
+ */
51
+ export interface ProjectAlertSummary {
52
+ /**
53
+ * Project Id.
54
+ */
55
+ projectId: string;
56
+ /**
57
+ * Project Name.
58
+ */
59
+ projectName: string;
60
+ /**
61
+ * A list of RepoAlertSummary data.
62
+ */
63
+ repos: RepoAlertSummary[];
64
+ }
65
+ /**
66
+ * Project Enablement Summary.
67
+ */
68
+ export interface ProjectEnablementSummary {
69
+ /**
70
+ * Project Id.
71
+ */
72
+ projectId: string;
73
+ /**
74
+ * Project Name.
75
+ */
76
+ projectName: string;
77
+ /**
78
+ * A list of RepoEnablementSummary data.
79
+ */
80
+ repos: RepoEnablementSummary[];
81
+ }
82
+ /**
83
+ * Repo Alert Summary.
84
+ */
85
+ export interface RepoAlertSummary {
86
+ /**
87
+ * Total alerts by severity.
88
+ */
89
+ alertsBySeverity: AlertSummaryBySeverity;
90
+ /**
91
+ * RepoId.
92
+ */
93
+ repoId: string;
94
+ /**
95
+ * Repo Name.
96
+ */
97
+ repoName: string;
98
+ /**
99
+ * Total active alerts in the repo.
100
+ */
101
+ totalAlerts: number;
102
+ }
103
+ /**
104
+ * Repo Enablement Summary.
105
+ */
106
+ export interface RepoEnablementSummary {
107
+ /**
108
+ * AdvSec is enabled for the repo.
109
+ */
110
+ advSecIsEnabled: boolean;
111
+ /**
112
+ * RepoId.
113
+ */
114
+ repoId: string;
115
+ /**
116
+ * Repo Name.
117
+ */
118
+ repoName: string;
119
+ }
@@ -0,0 +1,9 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ define(["require", "exports"], function (require, exports) {
7
+ "use strict";
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ });
@@ -0,0 +1 @@
1
+ define(["require","exports"],function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})});
@@ -0,0 +1,14 @@
1
+ import { IVssRestClientOptions } from "../Common/Context";
2
+ import { RestClientBase } from "../Common/RestClientBase";
3
+ import * as Reporting from "../AdvancedSecurity.Reporting/Reporting";
4
+ export declare class ReportingRestClient extends RestClientBase {
5
+ constructor(options: IVssRestClientOptions);
6
+ /**
7
+ * Get Alert summary by severity for the org
8
+ *
9
+ */
10
+ getAlertSummaryForOrg(): Promise<Reporting.OrgAlertSummary>;
11
+ /**
12
+ */
13
+ getEnablementSummaryForOrg(): Promise<Reporting.OrgEnablementSummary>;
14
+ }
@@ -0,0 +1,94 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ var __extends = (this && this.__extends) || (function () {
7
+ var extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10
+ return function (d, b) {
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ var __generator = (this && this.__generator) || function (thisArg, body) {
25
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
26
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
+ function verb(n) { return function (v) { return step([n, v]); }; }
28
+ function step(op) {
29
+ if (f) throw new TypeError("Generator is already executing.");
30
+ while (_) try {
31
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
32
+ if (y = 0, t) op = [op[0] & 2, t.value];
33
+ switch (op[0]) {
34
+ case 0: case 1: t = op; break;
35
+ case 4: _.label++; return { value: op[1], done: false };
36
+ case 5: _.label++; y = op[1]; op = [0]; continue;
37
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
38
+ default:
39
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
40
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
42
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
43
+ if (t[2]) _.ops.pop();
44
+ _.trys.pop(); continue;
45
+ }
46
+ op = body.call(thisArg, _);
47
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
48
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
+ }
50
+ };
51
+ define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
52
+ "use strict";
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ var ReportingRestClient = /** @class */ (function (_super) {
55
+ __extends(ReportingRestClient, _super);
56
+ function ReportingRestClient(options) {
57
+ return _super.call(this, options) || this;
58
+ }
59
+ /**
60
+ * Get Alert summary by severity for the org
61
+ *
62
+ */
63
+ ReportingRestClient.prototype.getAlertSummaryForOrg = function () {
64
+ return __awaiter(this, void 0, void 0, function () {
65
+ return __generator(this, function (_a) {
66
+ return [2 /*return*/, this.beginRequest({
67
+ apiVersion: "7.2-preview.1",
68
+ routeTemplate: "_apis/Reporting/summary/{action}",
69
+ routeValues: {
70
+ action: "Alerts"
71
+ }
72
+ })];
73
+ });
74
+ });
75
+ };
76
+ /**
77
+ */
78
+ ReportingRestClient.prototype.getEnablementSummaryForOrg = function () {
79
+ return __awaiter(this, void 0, void 0, function () {
80
+ return __generator(this, function (_a) {
81
+ return [2 /*return*/, this.beginRequest({
82
+ apiVersion: "7.2-preview.1",
83
+ routeTemplate: "_apis/Reporting/summary/{action}",
84
+ routeValues: {
85
+ action: "Enablement"
86
+ }
87
+ })];
88
+ });
89
+ });
90
+ };
91
+ return ReportingRestClient;
92
+ }(RestClientBase_1.RestClientBase));
93
+ exports.ReportingRestClient = ReportingRestClient;
94
+ });
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){u.label=n[1];break}if(6===n[0]&&u.label<i[1]){u.label=i[1],i=n;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(n);break}i[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getAlertSummaryForOrg=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Alerts"}})]})})},e.prototype.getEnablementSummaryForOrg=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Enablement"}})]})})},e}(n.RestClientBase);e.ReportingRestClient=r});
package/Alert/Alert.d.ts CHANGED
@@ -44,6 +44,10 @@ export interface Alert {
44
44
  * This value is computed and returned by the service. It is a value based on the results from all analysis configurations. An example of a physical location is a file location.
45
45
  */
46
46
  physicalLocations: PhysicalLocation[];
47
+ /**
48
+ * Relations between alerts and other artifacts.
49
+ */
50
+ relations: RelationMetadata[];
47
51
  /**
48
52
  * Repository URL where the alert was detected.
49
53
  */
@@ -177,6 +181,12 @@ export interface AnalysisConfiguration {
177
181
  toolVersion: string;
178
182
  }
179
183
  export interface AnalysisConfigurationDetails {
184
+ /**
185
+ * Properties of the pipeline.
186
+ */
187
+ additionalProperties: {
188
+ [key: string]: any;
189
+ };
180
190
  /**
181
191
  * Reference to a git object, e.g. branch ref.
182
192
  */
@@ -478,8 +488,18 @@ export declare enum MetadataChangeType {
478
488
  * The operation to be performed on the metadata.
479
489
  */
480
490
  export declare enum MetadataOperation {
481
- Add = 0,
482
- Remove = 1
491
+ /**
492
+ * Represents the defualt value if the operation is not specified or not supported.
493
+ */
494
+ None = 0,
495
+ /**
496
+ * Represents the addition of the metadata.
497
+ */
498
+ Add = 1,
499
+ /**
500
+ * Represents the removal of the metadata.
501
+ */
502
+ Remove = 2
483
503
  }
484
504
  /**
485
505
  * Location in the source control system where the issue was found
@@ -503,6 +523,9 @@ export interface Pipeline {
503
523
  name: string;
504
524
  phase: string;
505
525
  phaseId: string;
526
+ properties: {
527
+ [key: string]: any;
528
+ };
506
529
  }
507
530
  export interface Region {
508
531
  /**
package/Alert/Alert.js CHANGED
@@ -160,8 +160,18 @@ define(["require", "exports"], function (require, exports) {
160
160
  */
161
161
  var MetadataOperation;
162
162
  (function (MetadataOperation) {
163
- MetadataOperation[MetadataOperation["Add"] = 0] = "Add";
164
- MetadataOperation[MetadataOperation["Remove"] = 1] = "Remove";
163
+ /**
164
+ * Represents the defualt value if the operation is not specified or not supported.
165
+ */
166
+ MetadataOperation[MetadataOperation["None"] = 0] = "None";
167
+ /**
168
+ * Represents the addition of the metadata.
169
+ */
170
+ MetadataOperation[MetadataOperation["Add"] = 1] = "Add";
171
+ /**
172
+ * Represents the removal of the metadata.
173
+ */
174
+ MetadataOperation[MetadataOperation["Remove"] = 2] = "Remove";
165
175
  })(MetadataOperation = exports.MetadataOperation || (exports.MetadataOperation = {}));
166
176
  /**
167
177
  * This enum defines the different result types.
@@ -1 +1 @@
1
- define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code"}(n.AlertType||(n.AlertType={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}))});
1
+ define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code"}(n.AlertType||(n.AlertType={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}))});
@@ -62,6 +62,10 @@ export interface Dashboard {
62
62
  * Server defined version tracking value, used for edit collision detection.
63
63
  */
64
64
  eTag: string;
65
+ /**
66
+ * Dashboard Global Parameters Config
67
+ */
68
+ globalParametersConfig: string;
65
69
  /**
66
70
  * ID of the group for a dashboard. For team-scoped dashboards, this is the unique identifier for the team associated with the dashboard. For project-scoped dashboards this property is empty.
67
71
  */
package/Git/Git.d.ts CHANGED
@@ -18,10 +18,6 @@ export interface AdvSecEnablementStatus {
18
18
  * Enabled status 0 disabled, 1 enabled, Null never explicitly set, always whatever project is, ya this should probably be an enum somewhere
19
19
  */
20
20
  enabled: boolean;
21
- /**
22
- * Enabled changed on datetime To Be Removed M223 +
23
- */
24
- enabledChangedOnDate: Date;
25
21
  /**
26
22
  * ProjectId
27
23
  */
@@ -357,6 +357,74 @@ export declare class GitRestClient extends RestClientBase {
357
357
  * @param includeLinks - True to include links.
358
358
  */
359
359
  getForkSyncRequests(repositoryNameOrId: string, project?: string, includeAbandoned?: boolean, includeLinks?: boolean): Promise<Git.GitForkSyncRequest[]>;
360
+ /**
361
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
362
+ *
363
+ * @param repositoryId - The name or ID of the repository.
364
+ * @param path - The item path.
365
+ * @param project - Project ID or project name
366
+ * @param scopePath - The path scope. The default is null.
367
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
368
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
369
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
370
+ * @param download - Set to true to download the response as a file. Default is false.
371
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
372
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
373
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
374
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
375
+ */
376
+ getHfsItem(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<Git.GitItem>;
377
+ /**
378
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
379
+ *
380
+ * @param repositoryId - The name or ID of the repository.
381
+ * @param path - The item path.
382
+ * @param project - Project ID or project name
383
+ * @param scopePath - The path scope. The default is null.
384
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
385
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
386
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
387
+ * @param download - Set to true to download the response as a file. Default is false.
388
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
389
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
390
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
391
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
392
+ */
393
+ getHfsItemContent(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
394
+ /**
395
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
396
+ *
397
+ * @param repositoryId - The name or ID of the repository.
398
+ * @param path - The item path.
399
+ * @param project - Project ID or project name
400
+ * @param scopePath - The path scope. The default is null.
401
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
402
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
403
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
404
+ * @param download - Set to true to download the response as a file. Default is false.
405
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
406
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
407
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
408
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
409
+ */
410
+ getHfsItemText(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<string>;
411
+ /**
412
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
413
+ *
414
+ * @param repositoryId - The name or ID of the repository.
415
+ * @param path - The item path.
416
+ * @param project - Project ID or project name
417
+ * @param scopePath - The path scope. The default is null.
418
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
419
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
420
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
421
+ * @param download - Set to true to download the response as a file. Default is false.
422
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
423
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
424
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
425
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
426
+ */
427
+ getHfsItemZip(repositoryId: string, path: string, project?: string, scopePath?: string, recursionLevel?: Git.VersionControlRecursionType, includeContentMetadata?: boolean, latestProcessedChange?: boolean, download?: boolean, versionDescriptor?: Git.GitVersionDescriptor, includeContent?: boolean, resolveHfs?: boolean, sanitize?: boolean): Promise<ArrayBuffer>;
360
428
  /**
361
429
  * Create an import request.
362
430
  *
package/Git/GitClient.js CHANGED
@@ -1149,6 +1149,185 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
1149
1149
  });
1150
1150
  });
1151
1151
  };
1152
+ /**
1153
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
1154
+ *
1155
+ * @param repositoryId - The name or ID of the repository.
1156
+ * @param path - The item path.
1157
+ * @param project - Project ID or project name
1158
+ * @param scopePath - The path scope. The default is null.
1159
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
1160
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
1161
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
1162
+ * @param download - Set to true to download the response as a file. Default is false.
1163
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
1164
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
1165
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
1166
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
1167
+ */
1168
+ GitRestClient.prototype.getHfsItem = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveHfs, sanitize) {
1169
+ return __awaiter(this, void 0, void 0, function () {
1170
+ var queryValues;
1171
+ return __generator(this, function (_a) {
1172
+ queryValues = {
1173
+ path: path,
1174
+ scopePath: scopePath,
1175
+ recursionLevel: recursionLevel,
1176
+ includeContentMetadata: includeContentMetadata,
1177
+ latestProcessedChange: latestProcessedChange,
1178
+ download: download,
1179
+ versionDescriptor: versionDescriptor,
1180
+ includeContent: includeContent,
1181
+ resolveHfs: resolveHfs,
1182
+ sanitize: sanitize
1183
+ };
1184
+ return [2 /*return*/, this.beginRequest({
1185
+ apiVersion: "7.2-preview.1",
1186
+ routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",
1187
+ routeValues: {
1188
+ project: project,
1189
+ repositoryId: repositoryId
1190
+ },
1191
+ queryParams: queryValues
1192
+ })];
1193
+ });
1194
+ });
1195
+ };
1196
+ /**
1197
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
1198
+ *
1199
+ * @param repositoryId - The name or ID of the repository.
1200
+ * @param path - The item path.
1201
+ * @param project - Project ID or project name
1202
+ * @param scopePath - The path scope. The default is null.
1203
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
1204
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
1205
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
1206
+ * @param download - Set to true to download the response as a file. Default is false.
1207
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
1208
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
1209
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
1210
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
1211
+ */
1212
+ GitRestClient.prototype.getHfsItemContent = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveHfs, sanitize) {
1213
+ return __awaiter(this, void 0, void 0, function () {
1214
+ var queryValues;
1215
+ return __generator(this, function (_a) {
1216
+ queryValues = {
1217
+ path: path,
1218
+ scopePath: scopePath,
1219
+ recursionLevel: recursionLevel,
1220
+ includeContentMetadata: includeContentMetadata,
1221
+ latestProcessedChange: latestProcessedChange,
1222
+ download: download,
1223
+ versionDescriptor: versionDescriptor,
1224
+ includeContent: includeContent,
1225
+ resolveHfs: resolveHfs,
1226
+ sanitize: sanitize
1227
+ };
1228
+ return [2 /*return*/, this.beginRequest({
1229
+ apiVersion: "7.2-preview.1",
1230
+ httpResponseType: "application/octet-stream",
1231
+ routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",
1232
+ routeValues: {
1233
+ project: project,
1234
+ repositoryId: repositoryId
1235
+ },
1236
+ queryParams: queryValues
1237
+ })];
1238
+ });
1239
+ });
1240
+ };
1241
+ /**
1242
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
1243
+ *
1244
+ * @param repositoryId - The name or ID of the repository.
1245
+ * @param path - The item path.
1246
+ * @param project - Project ID or project name
1247
+ * @param scopePath - The path scope. The default is null.
1248
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
1249
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
1250
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
1251
+ * @param download - Set to true to download the response as a file. Default is false.
1252
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
1253
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
1254
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
1255
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
1256
+ */
1257
+ GitRestClient.prototype.getHfsItemText = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveHfs, sanitize) {
1258
+ return __awaiter(this, void 0, void 0, function () {
1259
+ var queryValues;
1260
+ return __generator(this, function (_a) {
1261
+ queryValues = {
1262
+ path: path,
1263
+ scopePath: scopePath,
1264
+ recursionLevel: recursionLevel,
1265
+ includeContentMetadata: includeContentMetadata,
1266
+ latestProcessedChange: latestProcessedChange,
1267
+ download: download,
1268
+ versionDescriptor: versionDescriptor,
1269
+ includeContent: includeContent,
1270
+ resolveHfs: resolveHfs,
1271
+ sanitize: sanitize
1272
+ };
1273
+ return [2 /*return*/, this.beginRequest({
1274
+ apiVersion: "7.2-preview.1",
1275
+ httpResponseType: "text/plain",
1276
+ routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",
1277
+ routeValues: {
1278
+ project: project,
1279
+ repositoryId: repositoryId
1280
+ },
1281
+ queryParams: queryValues
1282
+ })];
1283
+ });
1284
+ });
1285
+ };
1286
+ /**
1287
+ * Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content, which is always returned as a download.
1288
+ *
1289
+ * @param repositoryId - The name or ID of the repository.
1290
+ * @param path - The item path.
1291
+ * @param project - Project ID or project name
1292
+ * @param scopePath - The path scope. The default is null.
1293
+ * @param recursionLevel - The recursion level of this request. The default is 'none', no recursion.
1294
+ * @param includeContentMetadata - Set to true to include content metadata. Default is false.
1295
+ * @param latestProcessedChange - Set to true to include the latest changes. Default is false.
1296
+ * @param download - Set to true to download the response as a file. Default is false.
1297
+ * @param versionDescriptor - Version descriptor. Default is the default branch for the repository.
1298
+ * @param includeContent - Set to true to include item content when requesting json. Default is false.
1299
+ * @param resolveHfs - Set to true to resolve Git HFS pointer files to return actual content from Git HFS. Default is true.
1300
+ * @param sanitize - Set to true to sanitize an svg file and return it as image. Useful only if requested for svg file. Default is false.
1301
+ */
1302
+ GitRestClient.prototype.getHfsItemZip = function (repositoryId, path, project, scopePath, recursionLevel, includeContentMetadata, latestProcessedChange, download, versionDescriptor, includeContent, resolveHfs, sanitize) {
1303
+ return __awaiter(this, void 0, void 0, function () {
1304
+ var queryValues;
1305
+ return __generator(this, function (_a) {
1306
+ queryValues = {
1307
+ path: path,
1308
+ scopePath: scopePath,
1309
+ recursionLevel: recursionLevel,
1310
+ includeContentMetadata: includeContentMetadata,
1311
+ latestProcessedChange: latestProcessedChange,
1312
+ download: download,
1313
+ versionDescriptor: versionDescriptor,
1314
+ includeContent: includeContent,
1315
+ resolveHfs: resolveHfs,
1316
+ sanitize: sanitize
1317
+ };
1318
+ return [2 /*return*/, this.beginRequest({
1319
+ apiVersion: "7.2-preview.1",
1320
+ httpResponseType: "application/zip",
1321
+ routeTemplate: "{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",
1322
+ routeValues: {
1323
+ project: project,
1324
+ repositoryId: repositoryId
1325
+ },
1326
+ queryParams: queryValues
1327
+ })];
1328
+ });
1329
+ });
1330
+ };
1152
1331
  /**
1153
1332
  * Create an import request.
1154
1333
  *