refactor: Move the tracking model into commons

This commit is contained in:
Alexander Polynomdivision
2018-10-15 16:30:40 +02:00
parent 2963e089d8
commit 22ded2ec38
7 changed files with 59 additions and 63 deletions

16
common/models/tracker.ts Normal file
View File

@@ -0,0 +1,16 @@
export enum TrackerEvent {
LOG_IN = "LOG_IN",
LOG_OUT = "LOG_OUT",
START_LEARNING = "START_LEARNING",
CANCEL_LEARNING = "CANCEL_LEARNING",
FINISH_LEARNING = "FINISH_LEARNING",
};
export interface ITrackerRequest {
session: string;
event: TrackerEvent;
};
export type ITrackerDBModel = ITrackerRequest & {
timestamp: number;
};