All files / utils contants.ts

100% Statements 8/8
100% Branches 0/0
100% Functions 0/0
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 222x 2x 2x   2x   2x           2x           2x   2x  
export const DIALER_TO_IFRAME_EVENT_PREFIX = "jc-dialer-";
export const IFRAME_TO_CLIENT_EVENT_PREFIX = "jc-app-";
export const IFRAME_URL = "https://app.justcall.io/dialer";
export const IFRAME_ALLOWED_PERMISSIONS =
  "microphone; autoplay; clipboard-read; clipboard-write; hid";
 
export const validEmittableEvents = [
  "call-ringing",
  "call-answered",
  "call-ended",
] as const;
 
export const validEvents = [
  ...validEmittableEvents,
  "logged-in-status",
  "is-logged-in",
] as const;
 
export const isLoggedIn = ["true", "false"] as const;
 
export const callDirections = ["inbound", "outbound"] as const;