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

Commit

Permalink
Updating to M105 deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
serkan-inci committed Sep 14, 2016
1 parent 86e7cf3 commit 93a39f3
Show file tree
Hide file tree
Showing 4 changed files with 2,510 additions and 609 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vss-web-extension-sdk",
"version": "1.104.0",
"version": "1.105.0",
"description": "Visual Studio Services Client SDK. JavaScript library for Visual Studio Online extensions.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
126 changes: 117 additions & 9 deletions typings/rmo.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for Microsoft Visual Studio Services v104.20160831.1112
// Type definitions for Microsoft Visual Studio Services v105.20160914.0830
// Project: https://www.visualstudio.com/integrate/extensions/overview
// Definitions by: Microsoft <[email protected]>

Expand Down Expand Up @@ -65,6 +65,8 @@ export module WellKnownReleaseVariables {
var ReleaseDescription: string;
var ReleaseDefinitionName: string;
var ReleaseDefinitionId: string;
var ReleaseDefinitionEnvironmentId: string;
var DeploymentId: string;
var ReleaseUri: string;
var ReleaseWebUrl: string;
var ReleaseEnvironmentUri: string;
Expand Down Expand Up @@ -300,7 +302,29 @@ export interface DataSourceBinding {
resultSelector: string;
resultTemplate: string;
target: string;
transformationTemplate: string;
}
export interface DefinitionEnvironmentReference {
definitionEnvironmentId: number;
releaseDefinitionId: number;
}
export interface Deployment {
attempt: number;
conditions: Condition[];
definitionEnvironmentId: number;
deploymentStatus: DeploymentStatus;
id: number;
lastModifiedBy: VSS_Common_Contracts.IdentityRef;
lastModifiedOn: Date;
operationStatus: DeploymentOperationStatus;
postDeployApprovals: ReleaseApproval[];
preDeployApprovals: ReleaseApproval[];
reason: DeploymentReason;
release: ReleaseReference;
releaseDefinition: ShallowReference;
releaseEnvironment: ShallowReference;
requestedBy: VSS_Common_Contracts.IdentityRef;
scheduledDeploymentTime: Date;
startedOn: Date;
}
export interface DeploymentApprovalCompletedEvent {
approval: ReleaseApproval;
Expand Down Expand Up @@ -359,6 +383,19 @@ export enum DeploymentOperationStatus {
PhaseFailed = 1024,
Canceled = 2048,
PhaseCanceled = 4096,
ManualInterventionPending = 8192,
}
export interface DeploymentQueryParameters {
artifactSourceId: string;
artifactTypeId: string;
artifactVersions: string[];
deploymentStatus: DeploymentStatus;
environments: DefinitionEnvironmentReference[];
isDeleted: boolean;
latestDeploymentsOnly: boolean;
maxDeploymentsPerEnvironment: number;
operationStatus: DeploymentOperationStatus;
queryOrder: ReleaseQueryOrder;
}
export enum DeploymentReason {
None = 0,
Expand All @@ -379,7 +416,6 @@ export enum DeploymentStatus {
Failed = 16,
}
export interface DeployPhase {
controlOptions: ControlOptions;
name: string;
phaseType: DeployPhaseTypes;
rank: number;
Expand Down Expand Up @@ -730,9 +766,6 @@ export interface ReleaseEnvironment {
releaseDefinition: ShallowReference;
releaseDescription: string;
releaseId: number;
runOptions: {
[key: string]: string;
};
scheduledDeploymentTime: Date;
schedules: ReleaseSchedule[];
status: EnvironmentStatus;
Expand Down Expand Up @@ -781,6 +814,12 @@ export enum ReleaseReason {
ContinuousIntegration = 2,
Schedule = 3,
}
export interface ReleaseReference {
artifacts: Artifact[];
id: number;
name: string;
url: string;
}
export interface ReleaseRevision {
changedBy: VSS_Common_Contracts.IdentityRef;
changedDate: Date;
Expand Down Expand Up @@ -812,6 +851,9 @@ export interface ReleaseSchedule {
*/
timeZoneId: string;
}
export interface ReleaseSettings {
retentionSettings: RetentionSettings;
}
export interface ReleaseStartMetadata {
artifacts: ArtifactMetadata[];
definitionId: number;
Expand Down Expand Up @@ -877,6 +919,11 @@ export interface ReleaseWorkItemRef {
export interface RetentionPolicy {
daysToKeep: number;
}
export interface RetentionSettings {
daysToKeepDeletedReleases: number;
defaultEnvironmentRetentionPolicy: EnvironmentRetentionPolicy;
maximumEnvironmentRetentionPolicy: EnvironmentRetentionPolicy;
}
export interface RunOnServerDeployPhase extends DeployPhase {
}
export enum ScheduleDays {
Expand Down Expand Up @@ -1004,6 +1051,7 @@ export var TypeInfo: {
"environmentState": number;
};
};
Deployment: any;
DeploymentApprovalCompletedEvent: any;
DeploymentApprovalPendingEvent: any;
DeploymentAttempt: any;
Expand All @@ -1025,8 +1073,10 @@ export var TypeInfo: {
"phaseFailed": number;
"canceled": number;
"phaseCanceled": number;
"manualInterventionPending": number;
};
};
DeploymentQueryParameters: any;
DeploymentReason: {
enumValues: {
"none": number;
Expand Down Expand Up @@ -1481,9 +1531,10 @@ export class CommonMethods2_2To3 extends CommonMethods2To3 {
* @param {number} definitionId
* @param {number} releaseCount
* @param {boolean} includeArtifact
* @param {number[]} definitionEnvironmentIdsFilter
* @return IPromise<Contracts.ReleaseDefinitionSummary>
*/
getReleaseDefinitionSummary(project: string, definitionId: number, releaseCount: number, includeArtifact?: boolean): IPromise<Contracts.ReleaseDefinitionSummary>;
getReleaseDefinitionSummary(project: string, definitionId: number, releaseCount: number, includeArtifact?: boolean, definitionEnvironmentIdsFilter?: number[]): IPromise<Contracts.ReleaseDefinitionSummary>;
/**
* [Preview API]
*
Expand Down Expand Up @@ -1712,6 +1763,30 @@ export class CommonMethods2_2To3 extends CommonMethods2To3 {
*/
export class ReleaseHttpClient3 extends CommonMethods2_2To3 {
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
/**
* [Preview API]
*
* @param {string} project - Project ID or project name
* @param {number} definitionId
* @param {number} definitionEnvironmentId
* @param {string} createdBy
* @param {Contracts.DeploymentStatus} deploymentStatus
* @param {Contracts.DeploymentOperationStatus} operationStatus
* @param {boolean} latestAttemptsOnly
* @param {Contracts.ReleaseQueryOrder} queryOrder
* @param {number} top
* @param {number} continuationToken
* @return IPromise<Contracts.Deployment[]>
*/
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[]>;
/**
* [Preview API]
*
* @param {Contracts.DeploymentQueryParameters} queryParameters
* @param {string} project - Project ID or project name
* @return IPromise<Contracts.Deployment[]>
*/
getDeploymentsForMultipleEnvironments(queryParameters: Contracts.DeploymentQueryParameters, project: string): IPromise<Contracts.Deployment[]>;
/**
* [Preview API]
*
Expand Down Expand Up @@ -1759,6 +1834,21 @@ export class ReleaseHttpClient3 extends CommonMethods2_2To3 {
* @return IPromise<void>
*/
undeleteRelease(project: string, releaseId: number, comment: string): IPromise<void>;
/**
* [Preview API]
*
* @param {string} project - Project ID or project name
* @return IPromise<Contracts.ReleaseSettings>
*/
getReleaseSettings(project: string): IPromise<Contracts.ReleaseSettings>;
/**
* [Preview API] Updates the release settings
*
* @param {Contracts.ReleaseSettings} releaseSettings
* @param {string} project - Project ID or project name
* @return IPromise<Contracts.ReleaseSettings>
*/
updateReleaseSettings(releaseSettings: Contracts.ReleaseSettings, project: string): IPromise<Contracts.ReleaseSettings>;
/**
* [Preview API]
*
Expand All @@ -1778,21 +1868,39 @@ export class ReleaseHttpClient3 extends CommonMethods2_2To3 {
*/
getTasksForTaskGroup(project: string, releaseId: number, environmentId: number, releaseDeployPhaseId: number): IPromise<Contracts.ReleaseTask[]>;
}
/**
* @exemptedapi
*/
export class ReleaseHttpClient2_3 extends CommonMethods2_2To3 {
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
}
/**
* @exemptedapi
*/
export class ReleaseHttpClient2_2 extends CommonMethods2_2To3 {
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
}
/**
* @exemptedapi
*/
export class ReleaseHttpClient2_1 extends CommonMethods2To3 {
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
}
/**
* @exemptedapi
*/
export class ReleaseHttpClient2 extends CommonMethods2To3 {
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
}
export class ReleaseHttpClient extends ReleaseHttpClient3 {
constructor(rootRequestPath: string, options?: VSS_WebApi.IVssHttpClientOptions);
}
/**
* Gets an http client targeting the latest released version of the APIs.
*
* @return ReleaseHttpClient2_2
* @return ReleaseHttpClient2_3
*/
export function getClient(options?: VSS_WebApi.IVssHttpClientOptions): ReleaseHttpClient2_2;
export function getClient(options?: VSS_WebApi.IVssHttpClientOptions): ReleaseHttpClient2_3;
}
declare module "ReleaseManagement/Core/Utils" {
import RMContracts = require("ReleaseManagement/Core/Contracts");
Expand Down
Loading

0 comments on commit 93a39f3

Please sign in to comment.