All files / api/types event.ts

100% Statements 11/11
100% Branches 2/2
100% Functions 1/1
100% Lines 11/11

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 26 27 282x 2x 2x 2x 2x   2x 2x 2x   2x   2x 2x                            
export enum LogEvent {
    USER_ACCEPT = "USER_ACCEPT",
    USER_REJECT = "USER_REJECT",
    MODEL_GENERATE = "MODEL_GENERATE",
    MODEL_ERROR = "MODEL_ERROR",
 
    USER_SIGNUP = "USER_SIGNUP",
    USER_LOGIN = "USER_LOGIN",
    USER_LOGOUT = "USER_LOGOUT",
 
    USER_AUTH_GITHUB = "USER_AUTH_GITHUB",
 
    USER_LOCKED = "USER_LOCKED",
    USER_UNLOCKED = "USER_UNLOCKED"
}
 
export interface Log {
  id: number;
  timestamp: string;
  time_lapse: number;
  event: string;
  metadata: {
    has_bug: boolean;
    suggestion_text: string;
    model: string;
    prompt: string;
  };
}