All files / src/properties Constants.ts

100% Statements 87/87
100% Branches 0/0
100% Functions 10/10
100% Lines 77/77

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 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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95              1x 1x 1x 1x   1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x   1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x   1x 1x 1x 1x 1x 1x 1x 1x   1x 1x 1x   1x 1x 1x 1x 1x 1x 1x 1x 1x   1x 1x 1x 1x 1x 1x   1x 1x 1x   1x 1x 1x 1x   1x 1x 1x 1x   1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/*
* Constants.ts
* @author Abhilash Panwar (abpanwar)
* @copyright Microsoft 2020
* File containing constants for Engagement Insights properties.
*/
 
export class _Extensions {
  public static _SignalExt = 's';
  public static _SignalLongExt = 'signal';
}
 
export class _SignalExtKeys {
  public static _View = 'v';
  public static _Referrer = 'r';
  public static _Action = 't';
  public static _Click = 'k';  
  public static _Session = 's';  
  public static _User = 'u';
  public static _Host = 'h';
  public static _Sdk = 'z';
  public static _ExtKey = 'e';
}
 
export class _SharedKeys {
  public static _Type = 't';
  public static _Uri = 'u';
  public static _NameKey = 'n';
  public static _Domain = 'd';
  public static _Version = 'v';
  public static _Title = 'v';  
  public static _Class = 'c';
  public static _TimeZone = 'z';
  public static _Source = 's';
}
 
export class _UserExtKeys {
  public static _LocalId = 'd';
  public static _AuthId = 'a';
  public static _AuthType = 'u';
  public static _Email = 'e';
  public static _State = 's';
  public static _TimeSinceVisit = 't';
}
 
export class _ReferrerExtKeys {
  public static _PageTitle = 'p';
}
 
export class _ViewExtKeys {
  public static _Height = 'h';
  public static _Width = 'w';
  public static _VpHeight = 'g';
  public static _VpWidth = 'd';
  public static _ColorDepth = 'o';
  public static _PreviousViews = 'r';
  public static _SResolution = 's';
}
 
export class _ActionExtKeys {
  public static _ElapsedTime = 'e';
  public static _IsOutbound = 'o';
  public static _Target = 'g';
  public static _ElementId = 'm';
}
 
export class _ClickExtKeys {
  public static _Coordinates = 'c';
}
 
export class _SessionExtKeys {
  public static _Id = 'i';
  public static _Duration = 'd';
}
 
export class _UserStateValues {
  public static _New = 'new';
  public static _Returning = 'returning';
}
 
export const _ViewEventName = 'view';
export const _ViewSchemaVersion = '0.0';
export const _ActionEventName = 'action';
export const _ActionSchemaVersion = '0.0';
export const _SDKVersion = 'EI-JS-0.0.15';
export const _emptyString = '';
export const _PageViewType = 'page';
export const _EIPreviousKey = 'EISession.Previous';
export const _EISessionKey = 'EISession.Id';
export const _MSEI = '_msei';
export const _UserMappingEventName = 'usermapping';
export const _UserMappingEventVersion = '0.0';
export const _UserMappingStorageKey = 'EIMappings';
export const _DayToMilliseconds = 24*60*60*1000;