Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit 93a39f3

Browse files
committed
Updating to M105 deployment.
1 parent 86e7cf3 commit 93a39f3

File tree

4 files changed

+2510
-609
lines changed

4 files changed

+2510
-609
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vss-web-extension-sdk",
3-
"version": "1.104.0",
3+
"version": "1.105.0",
44
"description": "Visual Studio Services Client SDK. JavaScript library for Visual Studio Online extensions.",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

Diff for: typings/rmo.d.ts

+117-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for Microsoft Visual Studio Services v104.20160831.1112
1+
// Type definitions for Microsoft Visual Studio Services v105.20160914.0830
22
// Project: https://www.visualstudio.com/integrate/extensions/overview
33
// Definitions by: Microsoft <[email protected]>
44

@@ -65,6 +65,8 @@ export module WellKnownReleaseVariables {
6565
var ReleaseDescription: string;
6666
var ReleaseDefinitionName: string;
6767
var ReleaseDefinitionId: string;
68+
var ReleaseDefinitionEnvironmentId: string;
69+
var DeploymentId: string;
6870
var ReleaseUri: string;
6971
var ReleaseWebUrl: string;
7072
var ReleaseEnvironmentUri: string;
@@ -300,7 +302,29 @@ export interface DataSourceBinding {
300302
resultSelector: string;
301303
resultTemplate: string;
302304
target: string;
303-
transformationTemplate: string;
305+
}
306+
export interface DefinitionEnvironmentReference {
307+
definitionEnvironmentId: number;
308+
releaseDefinitionId: number;
309+
}
310+
export interface Deployment {
311+
attempt: number;
312+
conditions: Condition[];
313+
definitionEnvironmentId: number;
314+
deploymentStatus: DeploymentStatus;
315+
id: number;
316+
lastModifiedBy: VSS_Common_Contracts.IdentityRef;
317+
lastModifiedOn: Date;
318+
operationStatus: DeploymentOperationStatus;
319+
postDeployApprovals: ReleaseApproval[];
320+
preDeployApprovals: ReleaseApproval[];
321+
reason: DeploymentReason;
322+
release: ReleaseReference;
323+
releaseDefinition: ShallowReference;
324+
releaseEnvironment: ShallowReference;
325+
requestedBy: VSS_Common_Contracts.IdentityRef;
326+
scheduledDeploymentTime: Date;
327+
startedOn: Date;
304328
}
305329
export interface DeploymentApprovalCompletedEvent {
306330
approval: ReleaseApproval;
@@ -359,6 +383,19 @@ export enum DeploymentOperationStatus {
359383
PhaseFailed = 1024,
360384
Canceled = 2048,
361385
PhaseCanceled = 4096,
386+
ManualInterventionPending = 8192,
387+
}
388+
export interface DeploymentQueryParameters {
389+
artifactSourceId: string;
390+
artifactTypeId: string;
391+
artifactVersions: string[];
392+
deploymentStatus: DeploymentStatus;
393+
environments: DefinitionEnvironmentReference[];
394+
isDeleted: boolean;
395+
latestDeploymentsOnly: boolean;
396+
maxDeploymentsPerEnvironment: number;
397+
operationStatus: DeploymentOperationStatus;
398+
queryOrder: ReleaseQueryOrder;
362399
}
363400
export enum DeploymentReason {
364401
None = 0,
@@ -379,7 +416,6 @@ export enum DeploymentStatus {
379416
Failed = 16,
380417
}
381418
export interface DeployPhase {
382-
controlOptions: ControlOptions;
383419
name: string;
384420
phaseType: DeployPhaseTypes;
385421
rank: number;
@@ -730,9 +766,6 @@ export interface ReleaseEnvironment {
730766
releaseDefinition: ShallowReference;
731767
releaseDescription: string;
732768
releaseId: number;
733-
runOptions: {
734-
[key: string]: string;
735-
};
736769
scheduledDeploymentTime: Date;
737770
schedules: ReleaseSchedule[];
738771
status: EnvironmentStatus;
@@ -781,6 +814,12 @@ export enum ReleaseReason {
781814
ContinuousIntegration = 2,
782815
Schedule = 3,
783816
}
817+
export interface ReleaseReference {
818+
artifacts: Artifact[];
819+
id: number;
820+
name: string;
821+
url: string;
822+
}
784823
export interface ReleaseRevision {
785824
changedBy: VSS_Common_Contracts.IdentityRef;
786825
changedDate: Date;
@@ -812,6 +851,9 @@ export interface ReleaseSchedule {
812851
*/
813852
timeZoneId: string;
814853
}
854+
export interface ReleaseSettings {
855+
retentionSettings: RetentionSettings;
856+
}
815857
export interface ReleaseStartMetadata {
816858
artifacts: ArtifactMetadata[];
817859
definitionId: number;
@@ -877,6 +919,11 @@ export interface ReleaseWorkItemRef {
877919
export interface RetentionPolicy {
878920
daysToKeep: number;
879921
}
922+
export interface RetentionSettings {
923+
daysToKeepDeletedReleases: number;
924+
defaultEnvironmentRetentionPolicy: EnvironmentRetentionPolicy;
925+
maximumEnvironmentRetentionPolicy: EnvironmentRetentionPolicy;
926+
}
880927
export interface RunOnServerDeployPhase extends DeployPhase {
881928
}
882929
export enum ScheduleDays {
@@ -1004,6 +1051,7 @@ export var TypeInfo: {
10041051
"environmentState": number;
10051052
};
10061053
};
1054+
Deployment: any;
10071055
DeploymentApprovalCompletedEvent: any;
10081056
DeploymentApprovalPendingEvent: any;
10091057
DeploymentAttempt: any;
@@ -1025,8 +1073,10 @@ export var TypeInfo: {
10251073
"phaseFailed": number;
10261074
"canceled": number;
10271075
"phaseCanceled": number;
1076+
"manualInterventionPending": number;
10281077
};
10291078
};
1079+
DeploymentQueryParameters: any;
10301080
DeploymentReason: {
10311081
enumValues: {
10321082
"none": number;
@@ -1481,9 +1531,10 @@ export class CommonMethods2_2To3 extends CommonMethods2To3 {
14811531
* @param {number} definitionId
14821532
* @param {number} releaseCount
14831533
* @param {boolean} includeArtifact
1534+
* @param {number[]} definitionEnvironmentIdsFilter
14841535
* @return IPromise<Contracts.ReleaseDefinitionSummary>
14851536
*/
1486-
getReleaseDefinitionSummary(project: string, definitionId: number, releaseCount: number, includeArtifact?: boolean): IPromise<Contracts.ReleaseDefinitionSummary>;
1537+
getReleaseDefinitionSummary(project: string, definitionId: number, releaseCount: number, includeArtifact?: boolean, definitionEnvironmentIdsFilter?: number[]): IPromise<Contracts.ReleaseDefinitionSummary>;
14871538
/**
14881539
* [Preview API]
14891540
*
@@ -1712,6 +1763,30 @@ export class CommonMethods2_2To3 extends CommonMethods2To3 {
17121763
*/
17131764
export class ReleaseHttpClient3 extends CommonMethods2_2To3 {
17141765
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
1766+
/**
1767+
* [Preview API]
1768+
*
1769+
* @param {string} project - Project ID or project name
1770+
* @param {number} definitionId
1771+
* @param {number} definitionEnvironmentId
1772+
* @param {string} createdBy
1773+
* @param {Contracts.DeploymentStatus} deploymentStatus
1774+
* @param {Contracts.DeploymentOperationStatus} operationStatus
1775+
* @param {boolean} latestAttemptsOnly
1776+
* @param {Contracts.ReleaseQueryOrder} queryOrder
1777+
* @param {number} top
1778+
* @param {number} continuationToken
1779+
* @return IPromise<Contracts.Deployment[]>
1780+
*/
1781+
getDeployments(project: string, definitionId?: number, definitionEnvironmentId?: number, createdBy?: string, deploymentStatus?: Contracts.DeploymentStatus, operationStatus?: Contracts.DeploymentOperationStatus, latestAttemptsOnly?: boolean, queryOrder?: Contracts.ReleaseQueryOrder, top?: number, continuationToken?: number): IPromise<Contracts.Deployment[]>;
1782+
/**
1783+
* [Preview API]
1784+
*
1785+
* @param {Contracts.DeploymentQueryParameters} queryParameters
1786+
* @param {string} project - Project ID or project name
1787+
* @return IPromise<Contracts.Deployment[]>
1788+
*/
1789+
getDeploymentsForMultipleEnvironments(queryParameters: Contracts.DeploymentQueryParameters, project: string): IPromise<Contracts.Deployment[]>;
17151790
/**
17161791
* [Preview API]
17171792
*
@@ -1759,6 +1834,21 @@ export class ReleaseHttpClient3 extends CommonMethods2_2To3 {
17591834
* @return IPromise<void>
17601835
*/
17611836
undeleteRelease(project: string, releaseId: number, comment: string): IPromise<void>;
1837+
/**
1838+
* [Preview API]
1839+
*
1840+
* @param {string} project - Project ID or project name
1841+
* @return IPromise<Contracts.ReleaseSettings>
1842+
*/
1843+
getReleaseSettings(project: string): IPromise<Contracts.ReleaseSettings>;
1844+
/**
1845+
* [Preview API] Updates the release settings
1846+
*
1847+
* @param {Contracts.ReleaseSettings} releaseSettings
1848+
* @param {string} project - Project ID or project name
1849+
* @return IPromise<Contracts.ReleaseSettings>
1850+
*/
1851+
updateReleaseSettings(releaseSettings: Contracts.ReleaseSettings, project: string): IPromise<Contracts.ReleaseSettings>;
17621852
/**
17631853
* [Preview API]
17641854
*
@@ -1778,21 +1868,39 @@ export class ReleaseHttpClient3 extends CommonMethods2_2To3 {
17781868
*/
17791869
getTasksForTaskGroup(project: string, releaseId: number, environmentId: number, releaseDeployPhaseId: number): IPromise<Contracts.ReleaseTask[]>;
17801870
}
1871+
/**
1872+
* @exemptedapi
1873+
*/
1874+
export class ReleaseHttpClient2_3 extends CommonMethods2_2To3 {
1875+
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
1876+
}
17811877
/**
17821878
* @exemptedapi
17831879
*/
17841880
export class ReleaseHttpClient2_2 extends CommonMethods2_2To3 {
17851881
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
17861882
}
1883+
/**
1884+
* @exemptedapi
1885+
*/
1886+
export class ReleaseHttpClient2_1 extends CommonMethods2To3 {
1887+
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
1888+
}
1889+
/**
1890+
* @exemptedapi
1891+
*/
1892+
export class ReleaseHttpClient2 extends CommonMethods2To3 {
1893+
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
1894+
}
17871895
export class ReleaseHttpClient extends ReleaseHttpClient3 {
17881896
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
17891897
}
17901898
/**
17911899
* Gets an http client targeting the latest released version of the APIs.
17921900
*
1793-
* @return ReleaseHttpClient2_2
1901+
* @return ReleaseHttpClient2_3
17941902
*/
1795-
export function getClient(options?: VSS_WebApi.IVssHttpClientOptions): ReleaseHttpClient2_2;
1903+
export function getClient(options?: VSS_WebApi.IVssHttpClientOptions): ReleaseHttpClient2_3;
17961904
}
17971905
declare module "ReleaseManagement/Core/Utils" {
17981906
import RMContracts = require("ReleaseManagement/Core/Contracts");

0 commit comments

Comments
 (0)