azure-devops-extension-api 2.218.0 → 2.220.1
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/Build/Build.d.ts +4 -0
- package/Core/Core.d.ts +4 -0
- package/Favorite/Favorite.d.ts +124 -0
- package/Favorite/Favorite.js +9 -0
- package/Favorite/Favorite.min.js +1 -0
- package/Favorite/FavoriteClient.d.ts +78 -0
- package/Favorite/FavoriteClient.js +314 -0
- package/Favorite/FavoriteClient.min.js +1 -0
- package/Git/Git.d.ts +9 -1
- package/Git/GitClient.d.ts +13 -4
- package/Git/GitClient.js +31 -4
- package/Git/GitClient.min.js +1 -1
- package/Graph/GraphClient.d.ts +1 -1
- package/Graph/GraphClient.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +3 -0
- package/TestResults/TestResultsClient.d.ts +20 -0
- package/TestResults/TestResultsClient.js +60 -0
- package/TestResults/TestResultsClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +74 -0
- package/WorkItemTracking/WorkItemTracking.js +8 -0
- package/WorkItemTracking/WorkItemTracking.min.js +1 -1
- package/package.json +1 -1
package/Build/Build.d.ts
CHANGED
|
@@ -2038,6 +2038,10 @@ export interface PhaseTarget {
|
|
|
2038
2038
|
* Contains pipeline general settings.
|
|
2039
2039
|
*/
|
|
2040
2040
|
export interface PipelineGeneralSettings {
|
|
2041
|
+
/**
|
|
2042
|
+
* If enabled, audit logs will be generated whenever someone queues a pipeline run and defines variables that are not marked as "Settable at queue time".
|
|
2043
|
+
*/
|
|
2044
|
+
auditEnforceSettableVar: boolean;
|
|
2041
2045
|
/**
|
|
2042
2046
|
* Disable classic pipelines creation.
|
|
2043
2047
|
*/
|
package/Core/Core.d.ts
CHANGED
|
@@ -271,6 +271,10 @@ export interface TeamProjectCollection extends TeamProjectCollectionReference {
|
|
|
271
271
|
* Reference object for a TeamProjectCollection.
|
|
272
272
|
*/
|
|
273
273
|
export interface TeamProjectCollectionReference {
|
|
274
|
+
/**
|
|
275
|
+
* Collection avatar Url.
|
|
276
|
+
*/
|
|
277
|
+
avatarUrl: string;
|
|
274
278
|
/**
|
|
275
279
|
* Collection Id.
|
|
276
280
|
*/
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as WebApi from "../WebApi/WebApi";
|
|
2
|
+
export interface ArtifactProperties {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Describes the scope a favorited Artifact resides in. e.g. A team project.
|
|
6
|
+
*/
|
|
7
|
+
export interface ArtifactScope {
|
|
8
|
+
/**
|
|
9
|
+
* The identifier of the scope the artifact resides in. For a TFS Project, this refers to the Project GUID string. For a Collection, marked this property with an empty string.
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Name of the artifact scope (e.g. Project Name) Note: This property is a read-only extension over the stored favorite model. This value cannot be overridden on writes.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Type of scope the favorite artifact resides in. Known scopes include "Project" or "Collection"
|
|
18
|
+
*/
|
|
19
|
+
type: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Implementation of Favorite contract following modern storage
|
|
23
|
+
*/
|
|
24
|
+
export interface Favorite {
|
|
25
|
+
/**
|
|
26
|
+
* Links to the resources associated to the underlying artifact.
|
|
27
|
+
*/
|
|
28
|
+
_links: any;
|
|
29
|
+
/**
|
|
30
|
+
* ID of the favorited artifact, unique in context of this artifact type.
|
|
31
|
+
*/
|
|
32
|
+
artifactId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Indicates if the artifact described by this favorite could not be located.
|
|
35
|
+
*/
|
|
36
|
+
artifactIsDeleted: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Last known name of the artifact.
|
|
39
|
+
*/
|
|
40
|
+
artifactName: string;
|
|
41
|
+
/**
|
|
42
|
+
* A dictionary of cached properties describing a Favorited artifact. Structure is generated by the service-side feature metadata provider handling this Artifact Type.
|
|
43
|
+
*/
|
|
44
|
+
artifactProperties: ArtifactProperties;
|
|
45
|
+
/**
|
|
46
|
+
* Artifact Scope - This object describes where an artifact is contained. e.g. Project Mandatory param for creating all favorites.
|
|
47
|
+
*/
|
|
48
|
+
artifactScope: ArtifactScope;
|
|
49
|
+
/**
|
|
50
|
+
* Type of artifact.
|
|
51
|
+
*/
|
|
52
|
+
artifactType: string;
|
|
53
|
+
/**
|
|
54
|
+
* Date and time this Favorite was created on server.
|
|
55
|
+
*/
|
|
56
|
+
creationDate: Date;
|
|
57
|
+
/**
|
|
58
|
+
* Unique Id of the favorite item, defined by server at creation time.
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
* User identity, defined by server, based on active user context.
|
|
63
|
+
*/
|
|
64
|
+
owner: WebApi.IdentityRef;
|
|
65
|
+
/**
|
|
66
|
+
* Fully-Qualified link to this Resource
|
|
67
|
+
*/
|
|
68
|
+
url: string;
|
|
69
|
+
}
|
|
70
|
+
export interface FavoriteCreateParameters {
|
|
71
|
+
artifactId: string;
|
|
72
|
+
artifactName: string;
|
|
73
|
+
artifactProperties: ArtifactProperties;
|
|
74
|
+
artifactScope: ArtifactScope;
|
|
75
|
+
artifactType: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Exposes a provider of favorites.
|
|
79
|
+
*/
|
|
80
|
+
export interface FavoriteProvider extends FavoritesSecuredObject {
|
|
81
|
+
/**
|
|
82
|
+
* Favorite artifact type
|
|
83
|
+
*/
|
|
84
|
+
artifactType: string;
|
|
85
|
+
/**
|
|
86
|
+
* URI for retrieving favorite artifacts
|
|
87
|
+
*/
|
|
88
|
+
artifactUri: string;
|
|
89
|
+
/**
|
|
90
|
+
* contributed client side service that is available for this provider to provide dynamic associated data.
|
|
91
|
+
*/
|
|
92
|
+
clientServiceIdentifier: string;
|
|
93
|
+
/**
|
|
94
|
+
* Contribution Id
|
|
95
|
+
*/
|
|
96
|
+
contributionId: string;
|
|
97
|
+
/**
|
|
98
|
+
* Css class to be applied to the icon for the artifact.
|
|
99
|
+
*/
|
|
100
|
+
iconClass: string;
|
|
101
|
+
/**
|
|
102
|
+
* Name of the fabric icon to be applied for the artifact
|
|
103
|
+
*/
|
|
104
|
+
iconName: string;
|
|
105
|
+
/**
|
|
106
|
+
* Group of favorites will be rendered in this order, 0 is top If 2 types share order, they will be coalesced into a single group
|
|
107
|
+
*/
|
|
108
|
+
order: number;
|
|
109
|
+
/**
|
|
110
|
+
* Name used for rendering the title of each group of favorites
|
|
111
|
+
*/
|
|
112
|
+
pluralName: string;
|
|
113
|
+
/**
|
|
114
|
+
* Service identifier of the service.
|
|
115
|
+
*/
|
|
116
|
+
serviceIdentifier: string;
|
|
117
|
+
/**
|
|
118
|
+
* Base URI of the service
|
|
119
|
+
*/
|
|
120
|
+
serviceUri: string;
|
|
121
|
+
}
|
|
122
|
+
export interface FavoritesSecuredObject {
|
|
123
|
+
token: string;
|
|
124
|
+
}
|
|
@@ -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,78 @@
|
|
|
1
|
+
import { IVssRestClientOptions } from "../Common/Context";
|
|
2
|
+
import { RestClientBase } from "../Common/RestClientBase";
|
|
3
|
+
import * as Favorite from "../Favorite/Favorite";
|
|
4
|
+
export declare class FavoriteRestClient extends RestClientBase {
|
|
5
|
+
constructor(options: IVssRestClientOptions);
|
|
6
|
+
/**
|
|
7
|
+
* @param faultInMissingHost -
|
|
8
|
+
*/
|
|
9
|
+
getFavoriteProviders(faultInMissingHost?: boolean): Promise<Favorite.FavoriteProvider[]>;
|
|
10
|
+
/**
|
|
11
|
+
* @param favorite -
|
|
12
|
+
*/
|
|
13
|
+
createFavorite(favorite: Favorite.FavoriteCreateParameters): Promise<Favorite.Favorite>;
|
|
14
|
+
/**
|
|
15
|
+
* @param favorite -
|
|
16
|
+
* @param ownerScopeType -
|
|
17
|
+
* @param ownerScopeId -
|
|
18
|
+
*/
|
|
19
|
+
createFavoriteOfOwner(favorite: Favorite.FavoriteCreateParameters, ownerScopeType: string, ownerScopeId: string): Promise<Favorite.Favorite>;
|
|
20
|
+
/**
|
|
21
|
+
* @param favoriteId -
|
|
22
|
+
* @param artifactType -
|
|
23
|
+
* @param artifactScopeType -
|
|
24
|
+
* @param artifactScopeId -
|
|
25
|
+
*/
|
|
26
|
+
deleteFavoriteById(favoriteId: string, artifactType: string, artifactScopeType: string, artifactScopeId?: string): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @param favoriteId -
|
|
29
|
+
* @param ownerScopeType -
|
|
30
|
+
* @param ownerScopeId -
|
|
31
|
+
* @param artifactType -
|
|
32
|
+
* @param artifactScopeType -
|
|
33
|
+
* @param artifactScopeId -
|
|
34
|
+
*/
|
|
35
|
+
deleteFavoriteOfOwnerById(favoriteId: string, ownerScopeType: string, ownerScopeId: string, artifactType: string, artifactScopeType: string, artifactScopeId?: string): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* @param artifactType -
|
|
38
|
+
* @param artifactId -
|
|
39
|
+
* @param artifactScopeType -
|
|
40
|
+
* @param artifactScopeId -
|
|
41
|
+
* @param includeExtendedDetails -
|
|
42
|
+
*/
|
|
43
|
+
getFavoriteByArtifact(artifactType: string, artifactId: string, artifactScopeType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite.Favorite>;
|
|
44
|
+
/**
|
|
45
|
+
* @param favoriteId -
|
|
46
|
+
* @param artifactScopeType -
|
|
47
|
+
* @param artifactType -
|
|
48
|
+
* @param artifactScopeId -
|
|
49
|
+
* @param includeExtendedDetails -
|
|
50
|
+
*/
|
|
51
|
+
getFavoriteById(favoriteId: string, artifactScopeType: string, artifactType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite.Favorite>;
|
|
52
|
+
/**
|
|
53
|
+
* @param favoriteId -
|
|
54
|
+
* @param ownerScopeType -
|
|
55
|
+
* @param ownerScopeId -
|
|
56
|
+
* @param artifactScopeType -
|
|
57
|
+
* @param artifactType -
|
|
58
|
+
* @param artifactScopeId -
|
|
59
|
+
* @param includeExtendedDetails -
|
|
60
|
+
*/
|
|
61
|
+
getFavoriteOfOwnerById(favoriteId: string, ownerScopeType: string, ownerScopeId: string, artifactScopeType: string, artifactType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite.Favorite>;
|
|
62
|
+
/**
|
|
63
|
+
* @param artifactType -
|
|
64
|
+
* @param artifactScopeType -
|
|
65
|
+
* @param artifactScopeId -
|
|
66
|
+
* @param includeExtendedDetails -
|
|
67
|
+
*/
|
|
68
|
+
getFavorites(artifactType?: string, artifactScopeType?: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite.Favorite[]>;
|
|
69
|
+
/**
|
|
70
|
+
* @param ownerScopeType -
|
|
71
|
+
* @param ownerScopeId -
|
|
72
|
+
* @param artifactType -
|
|
73
|
+
* @param artifactScopeType -
|
|
74
|
+
* @param artifactScopeId -
|
|
75
|
+
* @param includeExtendedDetails -
|
|
76
|
+
*/
|
|
77
|
+
getFavoritesOfOwner(ownerScopeType: string, ownerScopeId: string, artifactType?: string, artifactScopeType?: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite.Favorite[]>;
|
|
78
|
+
}
|
|
@@ -0,0 +1,314 @@
|
|
|
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 FavoriteRestClient = /** @class */ (function (_super) {
|
|
55
|
+
__extends(FavoriteRestClient, _super);
|
|
56
|
+
function FavoriteRestClient(options) {
|
|
57
|
+
return _super.call(this, options) || this;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @param faultInMissingHost -
|
|
61
|
+
*/
|
|
62
|
+
FavoriteRestClient.prototype.getFavoriteProviders = function (faultInMissingHost) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
+
var queryValues;
|
|
65
|
+
return __generator(this, function (_a) {
|
|
66
|
+
queryValues = {
|
|
67
|
+
faultInMissingHost: faultInMissingHost
|
|
68
|
+
};
|
|
69
|
+
return [2 /*return*/, this.beginRequest({
|
|
70
|
+
apiVersion: "7.1-preview.1",
|
|
71
|
+
routeTemplate: "_apis/Favorite/FavoriteProviders",
|
|
72
|
+
queryParams: queryValues
|
|
73
|
+
})];
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @param favorite -
|
|
79
|
+
*/
|
|
80
|
+
FavoriteRestClient.prototype.createFavorite = function (favorite) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
return [2 /*return*/, this.beginRequest({
|
|
84
|
+
apiVersion: "7.1-preview.1",
|
|
85
|
+
method: "POST",
|
|
86
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
87
|
+
body: favorite
|
|
88
|
+
})];
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @param favorite -
|
|
94
|
+
* @param ownerScopeType -
|
|
95
|
+
* @param ownerScopeId -
|
|
96
|
+
*/
|
|
97
|
+
FavoriteRestClient.prototype.createFavoriteOfOwner = function (favorite, ownerScopeType, ownerScopeId) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
+
var queryValues;
|
|
100
|
+
return __generator(this, function (_a) {
|
|
101
|
+
queryValues = {
|
|
102
|
+
ownerScopeType: ownerScopeType,
|
|
103
|
+
ownerScopeId: ownerScopeId
|
|
104
|
+
};
|
|
105
|
+
return [2 /*return*/, this.beginRequest({
|
|
106
|
+
apiVersion: "7.1-preview.1",
|
|
107
|
+
method: "POST",
|
|
108
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
109
|
+
queryParams: queryValues,
|
|
110
|
+
body: favorite
|
|
111
|
+
})];
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* @param favoriteId -
|
|
117
|
+
* @param artifactType -
|
|
118
|
+
* @param artifactScopeType -
|
|
119
|
+
* @param artifactScopeId -
|
|
120
|
+
*/
|
|
121
|
+
FavoriteRestClient.prototype.deleteFavoriteById = function (favoriteId, artifactType, artifactScopeType, artifactScopeId) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
123
|
+
var queryValues;
|
|
124
|
+
return __generator(this, function (_a) {
|
|
125
|
+
queryValues = {
|
|
126
|
+
artifactType: artifactType,
|
|
127
|
+
artifactScopeType: artifactScopeType,
|
|
128
|
+
artifactScopeId: artifactScopeId
|
|
129
|
+
};
|
|
130
|
+
return [2 /*return*/, this.beginRequest({
|
|
131
|
+
apiVersion: "7.1-preview.1",
|
|
132
|
+
method: "DELETE",
|
|
133
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
134
|
+
routeValues: {
|
|
135
|
+
favoriteId: favoriteId
|
|
136
|
+
},
|
|
137
|
+
queryParams: queryValues
|
|
138
|
+
})];
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* @param favoriteId -
|
|
144
|
+
* @param ownerScopeType -
|
|
145
|
+
* @param ownerScopeId -
|
|
146
|
+
* @param artifactType -
|
|
147
|
+
* @param artifactScopeType -
|
|
148
|
+
* @param artifactScopeId -
|
|
149
|
+
*/
|
|
150
|
+
FavoriteRestClient.prototype.deleteFavoriteOfOwnerById = function (favoriteId, ownerScopeType, ownerScopeId, artifactType, artifactScopeType, artifactScopeId) {
|
|
151
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
152
|
+
var queryValues;
|
|
153
|
+
return __generator(this, function (_a) {
|
|
154
|
+
queryValues = {
|
|
155
|
+
ownerScopeType: ownerScopeType,
|
|
156
|
+
ownerScopeId: ownerScopeId,
|
|
157
|
+
artifactType: artifactType,
|
|
158
|
+
artifactScopeType: artifactScopeType,
|
|
159
|
+
artifactScopeId: artifactScopeId
|
|
160
|
+
};
|
|
161
|
+
return [2 /*return*/, this.beginRequest({
|
|
162
|
+
apiVersion: "7.1-preview.1",
|
|
163
|
+
method: "DELETE",
|
|
164
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
165
|
+
routeValues: {
|
|
166
|
+
favoriteId: favoriteId
|
|
167
|
+
},
|
|
168
|
+
queryParams: queryValues
|
|
169
|
+
})];
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* @param artifactType -
|
|
175
|
+
* @param artifactId -
|
|
176
|
+
* @param artifactScopeType -
|
|
177
|
+
* @param artifactScopeId -
|
|
178
|
+
* @param includeExtendedDetails -
|
|
179
|
+
*/
|
|
180
|
+
FavoriteRestClient.prototype.getFavoriteByArtifact = function (artifactType, artifactId, artifactScopeType, artifactScopeId, includeExtendedDetails) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
182
|
+
var queryValues;
|
|
183
|
+
return __generator(this, function (_a) {
|
|
184
|
+
queryValues = {
|
|
185
|
+
artifactType: artifactType,
|
|
186
|
+
artifactId: artifactId,
|
|
187
|
+
artifactScopeType: artifactScopeType,
|
|
188
|
+
artifactScopeId: artifactScopeId,
|
|
189
|
+
includeExtendedDetails: includeExtendedDetails
|
|
190
|
+
};
|
|
191
|
+
return [2 /*return*/, this.beginRequest({
|
|
192
|
+
apiVersion: "7.1-preview.1",
|
|
193
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
194
|
+
queryParams: queryValues
|
|
195
|
+
})];
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* @param favoriteId -
|
|
201
|
+
* @param artifactScopeType -
|
|
202
|
+
* @param artifactType -
|
|
203
|
+
* @param artifactScopeId -
|
|
204
|
+
* @param includeExtendedDetails -
|
|
205
|
+
*/
|
|
206
|
+
FavoriteRestClient.prototype.getFavoriteById = function (favoriteId, artifactScopeType, artifactType, artifactScopeId, includeExtendedDetails) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
208
|
+
var queryValues;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
queryValues = {
|
|
211
|
+
artifactScopeType: artifactScopeType,
|
|
212
|
+
artifactType: artifactType,
|
|
213
|
+
artifactScopeId: artifactScopeId,
|
|
214
|
+
includeExtendedDetails: includeExtendedDetails
|
|
215
|
+
};
|
|
216
|
+
return [2 /*return*/, this.beginRequest({
|
|
217
|
+
apiVersion: "7.1-preview.1",
|
|
218
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
219
|
+
routeValues: {
|
|
220
|
+
favoriteId: favoriteId
|
|
221
|
+
},
|
|
222
|
+
queryParams: queryValues
|
|
223
|
+
})];
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* @param favoriteId -
|
|
229
|
+
* @param ownerScopeType -
|
|
230
|
+
* @param ownerScopeId -
|
|
231
|
+
* @param artifactScopeType -
|
|
232
|
+
* @param artifactType -
|
|
233
|
+
* @param artifactScopeId -
|
|
234
|
+
* @param includeExtendedDetails -
|
|
235
|
+
*/
|
|
236
|
+
FavoriteRestClient.prototype.getFavoriteOfOwnerById = function (favoriteId, ownerScopeType, ownerScopeId, artifactScopeType, artifactType, artifactScopeId, includeExtendedDetails) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
238
|
+
var queryValues;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
queryValues = {
|
|
241
|
+
ownerScopeType: ownerScopeType,
|
|
242
|
+
ownerScopeId: ownerScopeId,
|
|
243
|
+
artifactScopeType: artifactScopeType,
|
|
244
|
+
artifactType: artifactType,
|
|
245
|
+
artifactScopeId: artifactScopeId,
|
|
246
|
+
includeExtendedDetails: includeExtendedDetails
|
|
247
|
+
};
|
|
248
|
+
return [2 /*return*/, this.beginRequest({
|
|
249
|
+
apiVersion: "7.1-preview.1",
|
|
250
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
251
|
+
routeValues: {
|
|
252
|
+
favoriteId: favoriteId
|
|
253
|
+
},
|
|
254
|
+
queryParams: queryValues
|
|
255
|
+
})];
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* @param artifactType -
|
|
261
|
+
* @param artifactScopeType -
|
|
262
|
+
* @param artifactScopeId -
|
|
263
|
+
* @param includeExtendedDetails -
|
|
264
|
+
*/
|
|
265
|
+
FavoriteRestClient.prototype.getFavorites = function (artifactType, artifactScopeType, artifactScopeId, includeExtendedDetails) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
267
|
+
var queryValues;
|
|
268
|
+
return __generator(this, function (_a) {
|
|
269
|
+
queryValues = {
|
|
270
|
+
artifactType: artifactType,
|
|
271
|
+
artifactScopeType: artifactScopeType,
|
|
272
|
+
artifactScopeId: artifactScopeId,
|
|
273
|
+
includeExtendedDetails: includeExtendedDetails
|
|
274
|
+
};
|
|
275
|
+
return [2 /*return*/, this.beginRequest({
|
|
276
|
+
apiVersion: "7.1-preview.1",
|
|
277
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
278
|
+
queryParams: queryValues
|
|
279
|
+
})];
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* @param ownerScopeType -
|
|
285
|
+
* @param ownerScopeId -
|
|
286
|
+
* @param artifactType -
|
|
287
|
+
* @param artifactScopeType -
|
|
288
|
+
* @param artifactScopeId -
|
|
289
|
+
* @param includeExtendedDetails -
|
|
290
|
+
*/
|
|
291
|
+
FavoriteRestClient.prototype.getFavoritesOfOwner = function (ownerScopeType, ownerScopeId, artifactType, artifactScopeType, artifactScopeId, includeExtendedDetails) {
|
|
292
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
293
|
+
var queryValues;
|
|
294
|
+
return __generator(this, function (_a) {
|
|
295
|
+
queryValues = {
|
|
296
|
+
ownerScopeType: ownerScopeType,
|
|
297
|
+
ownerScopeId: ownerScopeId,
|
|
298
|
+
artifactType: artifactType,
|
|
299
|
+
artifactScopeType: artifactScopeType,
|
|
300
|
+
artifactScopeId: artifactScopeId,
|
|
301
|
+
includeExtendedDetails: includeExtendedDetails
|
|
302
|
+
};
|
|
303
|
+
return [2 /*return*/, this.beginRequest({
|
|
304
|
+
apiVersion: "7.1-preview.1",
|
|
305
|
+
routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
|
|
306
|
+
queryParams: queryValues
|
|
307
|
+
})];
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
};
|
|
311
|
+
return FavoriteRestClient;
|
|
312
|
+
}(RestClientBase_1.RestClientBase));
|
|
313
|
+
exports.FavoriteRestClient = FavoriteRestClient;
|
|
314
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function u(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,u)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){u.label=r[1];break}if(6===r[0]&&u.label<n[1]){u.label=n[1],n=r;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(r);break}n[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var i,o,n,a,u={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getFavoriteProviders=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={faultInMissingHost:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/FavoriteProviders",queryParams:t})]})})},t.prototype.createFavorite=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",body:e})]})})},t.prototype.createFavoriteOfOwner=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={ownerScopeType:t,ownerScopeId:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:i,body:e})]})})},t.prototype.deleteFavoriteById=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={artifactType:t,artifactScopeType:r,artifactScopeId:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:o})]})})},t.prototype.deleteFavoriteOfOwnerById=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={ownerScopeType:t,ownerScopeId:r,artifactType:i,artifactScopeType:o,artifactScopeId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:a})]})})},t.prototype.getFavoriteByArtifact=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={artifactType:e,artifactId:t,artifactScopeType:r,artifactScopeId:i,includeExtendedDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:n})]})})},t.prototype.getFavoriteById=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={artifactScopeType:t,artifactType:r,artifactScopeId:i,includeExtendedDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:n})]})})},t.prototype.getFavoriteOfOwnerById=function(e,t,r,i,o,n,a){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={ownerScopeType:t,ownerScopeId:r,artifactScopeType:i,artifactType:o,artifactScopeId:n,includeExtendedDetails:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:u})]})})},t.prototype.getFavorites=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={artifactType:e,artifactScopeType:t,artifactScopeId:r,includeExtendedDetails:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:o})]})})},t.prototype.getFavoritesOfOwner=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={ownerScopeType:e,ownerScopeId:t,artifactType:r,artifactScopeType:i,artifactScopeId:o,includeExtendedDetails:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:a})]})})},t}(r.RestClientBase);t.FavoriteRestClient=i});
|
package/Git/Git.d.ts
CHANGED
|
@@ -2,12 +2,20 @@ import * as TfsCore from "../Core/Core";
|
|
|
2
2
|
import * as Policy from "../Policy/Policy";
|
|
3
3
|
import * as WebApi from "../WebApi/WebApi";
|
|
4
4
|
export interface AdvSecEnablementStatus {
|
|
5
|
+
/**
|
|
6
|
+
* Enabled by VSID
|
|
7
|
+
*/
|
|
8
|
+
changedById: string;
|
|
9
|
+
/**
|
|
10
|
+
* Enabled changed on datetime
|
|
11
|
+
*/
|
|
12
|
+
changedOnDate: Date;
|
|
5
13
|
/**
|
|
6
14
|
* Enabled status 0 disabled, 1 enabled, Null never explicitly set, always whatever project is, ya this should probably be an enum somewhere
|
|
7
15
|
*/
|
|
8
16
|
enabled: boolean;
|
|
9
17
|
/**
|
|
10
|
-
* Enabled changed on datetime
|
|
18
|
+
* Enabled changed on datetime To Be Removed M223 +
|
|
11
19
|
*/
|
|
12
20
|
enabledChangedOnDate: Date;
|
|
13
21
|
/**
|
package/Git/GitClient.d.ts
CHANGED
|
@@ -6,11 +6,19 @@ import * as WebApi from "../WebApi/WebApi";
|
|
|
6
6
|
export declare class GitRestClient extends RestClientBase {
|
|
7
7
|
constructor(options: IVssRestClientOptions);
|
|
8
8
|
static readonly RESOURCE_AREA_ID: string;
|
|
9
|
+
/**
|
|
10
|
+
* DELETE Deletes Enablement status and BillableCommitters data from DB. Deleting the enablement data will effectively disable it for the repositories affected.
|
|
11
|
+
*
|
|
12
|
+
* @param allProjects -
|
|
13
|
+
* @param includeBillableCommitters -
|
|
14
|
+
* @param projectIds -
|
|
15
|
+
*/
|
|
16
|
+
deleteEnablementStatus(allProjects: boolean, includeBillableCommitters?: boolean, projectIds?: string[]): Promise<void>;
|
|
9
17
|
/**
|
|
10
18
|
* GET Enablement status for project's repositories.
|
|
11
19
|
*
|
|
12
20
|
* @param projectIds - Null defaults to all projects in the host, list of project's repos status to return
|
|
13
|
-
* @param billingDate - Null defaults to
|
|
21
|
+
* @param billingDate - UTC expected, Null defaults to UtcNow(), can be provided for a point in time status
|
|
14
22
|
* @param skip - Skip X rows of resultset to simulate paging.
|
|
15
23
|
* @param take - Return Y rows of resultset to simulate paging.
|
|
16
24
|
*/
|
|
@@ -24,10 +32,11 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
24
32
|
/**
|
|
25
33
|
* GET Advanced Security Permission status.
|
|
26
34
|
*
|
|
35
|
+
* @param projectName -
|
|
27
36
|
* @param repositoryId - Repository user is trying to access
|
|
28
37
|
* @param permission - Permission being requestd, must be "viewAlert" "dismissAlert" or "manage"
|
|
29
38
|
*/
|
|
30
|
-
getPermission(repositoryId?: string, permission?: string): Promise<boolean>;
|
|
39
|
+
getPermission(projectName?: string, repositoryId?: string, permission?: string): Promise<boolean>;
|
|
31
40
|
/**
|
|
32
41
|
* Create an annotated tag.
|
|
33
42
|
*
|
|
@@ -48,7 +57,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
48
57
|
* Retrieve actual billable committers for Advanced Security service for a given date.
|
|
49
58
|
*
|
|
50
59
|
* @param project - Project ID or project name
|
|
51
|
-
* @param billingDate - If not specified defaults to the previous billing day.
|
|
60
|
+
* @param billingDate - UTC expected. If not specified defaults to the previous billing day.
|
|
52
61
|
* @param skip - Skip X rows of resultset to simulate paging.
|
|
53
62
|
* @param take - Return Y rows of resultset to simulate paging.
|
|
54
63
|
*/
|
|
@@ -58,7 +67,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
58
67
|
*
|
|
59
68
|
* @param project - Project ID or project name
|
|
60
69
|
* @param includeDetails - Return all the details on the billable committers.
|
|
61
|
-
* @param billingDate - If not specified defaults to the previous billing day.
|
|
70
|
+
* @param billingDate - UTC expected. If not specified defaults to the previous billing day.
|
|
62
71
|
* @param skip - Skip X rows of resultset to simulate paging.
|
|
63
72
|
* @param take - Return Y rows of resultset to simulate paging.
|
|
64
73
|
*/
|