/
IHubTimeline.ts
61 lines (58 loc) · 974 Bytes
/
IHubTimeline.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Hub Timeline Definition
*/
export interface IHubTimeline {
schemaVersion: number;
title: string;
description: string;
stages: IHubStage[];
canCollapse: boolean;
}
/**
* Hub Timeline Stage
*/
export interface IHubStage {
/**
* Stage identifier
*/
key: string;
/**
* Stage Title
*/
title: string;
/**
* Timeframe for the stage
* i.e. "Late Fall 2022"
*/
timeframe: string;
/**
* Stage Description
*/
stageDescription: string;
/**
* Stage Link
*/
link?: IHubStageLink;
/**
* Stage status
*/
status: TimelineStageStatus;
}
export interface IHubStageLink {
/**
* Link href
*/
href: string;
/**
* Link display title text
*/
title?: string;
}
type TimelineStageStatus = keyof typeof TIMELINE_STAGE_STATUSES;
export enum TIMELINE_STAGE_STATUSES {
notStarted = "notStarted",
inProgress = "inProgress",
skipped = "skipped",
onHold = "onHold",
complete = "complete",
}