2020-12-02 02:54:10 -08:00
|
|
|
export interface ITask {
|
|
|
|
// Required attributes
|
|
|
|
id?: string;
|
|
|
|
title?: string;
|
|
|
|
status?: TaskStatus;
|
|
|
|
flag?: boolean;
|
|
|
|
// Optional attributes
|
|
|
|
owner?: string;
|
|
|
|
description?: string;
|
|
|
|
startDate?: Date;
|
|
|
|
endDate?: Date;
|
|
|
|
// Backend generated attributes
|
2020-12-02 02:24:25 -08:00
|
|
|
|
2020-12-02 02:54:10 -08:00
|
|
|
createdBy?: string;
|
|
|
|
createdAt?: Date;
|
|
|
|
updatedBy?: string;
|
|
|
|
upadtedAt?: Date;
|
2020-12-02 02:24:25 -08:00
|
|
|
}
|
|
|
|
|
2023-04-21 04:23:15 -07:00
|
|
|
export const enum TaskStatus {
|
2020-12-02 02:54:10 -08:00
|
|
|
WAITING = 'Waiting',
|
|
|
|
INPROGRESS = 'InProgress',
|
|
|
|
COMPLETED = 'Completed',
|
|
|
|
CANCEL = 'Cancel',
|
2020-12-02 02:24:25 -08:00
|
|
|
}
|