Files
azuredatastudio/extensions/sql-database-projects/src/models/dashboardData/dashboardData.ts
Sakshi Sharma 3b3df2c3fc Fixes for sql db projects dashboard (#15100)
* Fix ID assignment for sql db projects dashboard

* Update with new fixes

* Fix tests

* Fix test
2021-05-05 19:00:22 -07:00

38 lines
1.2 KiB
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export class DashboardData {
public projectFile: string;
public status: Status;
public target: string;
public timeToCompleteAction: string;
public startDate: string;
constructor(projectFile: string, status: Status, target: string, startDate: string) {
this.projectFile = projectFile;
this.status = status;
this.target = target;
this.timeToCompleteAction = '';
this.startDate = startDate;
}
}
export class PublishData extends DashboardData {
public targetServer: string;
public targetDatabase: string;
constructor(projectFile: string, status: Status, target: string, startDate: string, targetDatabase: string, targetServer: string) {
super(projectFile, status, target, startDate);
this.targetDatabase = targetDatabase;
this.targetServer = targetServer;
}
}
export enum Status {
success,
failed,
inProgress
}