mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-13 11:02:59 -04:00
* Fix ID assignment for sql db projects dashboard * Update with new fixes * Fix tests * Fix test
38 lines
1.2 KiB
TypeScript
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
|
|
}
|