All files / shared/types/models eventLog.ts

100% Statements 8/8
100% Branches 0/0
100% Functions 1/1
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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                              676x 676x 676x 676x 676x 676x 676x 676x    
import { ProgramType } from "shared/types/models/programItem";
 
export interface EventLogItem {
  eventLogItemId: string;
  action: EventLogAction;
  isSeen: boolean;
  programItemId: string;
  programItemStartTime: string;
  // The span one lottery covered, both set or neither, and only when it took in more than one
  // starting time
  lastProgramItemEndTime?: string;
  programType?: ProgramType;
  createdAt: string;
}
 
export enum EventLogAction {
  NEW_ASSIGNMENT = "newAssignment",
  NO_ASSIGNMENT = "noAssignment",
  PROGRAM_ITEM_CANCELLED = "programItemCancelled",
  PROGRAM_ITEM_DELETED = "programItemDeleted",
  PROGRAM_ITEM_NO_KONSTI_SIGNUP_ANYMORE = "programItemNoKonstiSignupAnymore",
  PROGRAM_ITEM_NO_LOTTERY_ANYMORE = "programItemNoLotteryAnymore",
  PROGRAM_ITEM_MOVED = "programItemMoved",
}