azure-devops-extension-api 4.236.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.
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={}))});
@@ -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
  *