You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.ts 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /**
  2. * The standard time when auto-disappearing notifications should disappear.
  3. */
  4. export const NOTIFICATION_TIMEOUT = {
  5. SHORT: 2500,
  6. MEDIUM: 5000,
  7. LONG: 10000,
  8. STICKY: false
  9. };
  10. /**
  11. * Notification timeout type.
  12. */
  13. export enum NOTIFICATION_TIMEOUT_TYPE {
  14. LONG = 'long',
  15. MEDIUM = 'medium',
  16. SHORT = 'short',
  17. STICKY = 'sticky'
  18. }
  19. /**
  20. * The set of possible notification types.
  21. *
  22. * @enum {string}
  23. */
  24. export const NOTIFICATION_TYPE = {
  25. ERROR: 'error',
  26. NORMAL: 'normal',
  27. SUCCESS: 'success',
  28. WARNING: 'warning'
  29. };
  30. /**
  31. * A mapping of notification type to priority of display.
  32. *
  33. * @enum {number}
  34. */
  35. export const NOTIFICATION_TYPE_PRIORITIES = {
  36. [NOTIFICATION_TYPE.ERROR]: 5,
  37. [NOTIFICATION_TYPE.NORMAL]: 3,
  38. [NOTIFICATION_TYPE.SUCCESS]: 3,
  39. [NOTIFICATION_TYPE.WARNING]: 4
  40. };
  41. /**
  42. * The set of possible notification icons.
  43. *
  44. * @enum {string}
  45. */
  46. export const NOTIFICATION_ICON = {
  47. ...NOTIFICATION_TYPE,
  48. MESSAGE: 'message',
  49. PARTICIPANT: 'participant',
  50. PARTICIPANTS: 'participants'
  51. };
  52. /**
  53. * The identifier of the calendar notification.
  54. *
  55. * @type {string}
  56. */
  57. export const CALENDAR_NOTIFICATION_ID = 'CALENDAR_NOTIFICATION_ID';
  58. /**
  59. * The identifier of the disable self view notification.
  60. *
  61. * @type {string}
  62. */
  63. export const DATA_CHANNEL_CLOSED_NOTIFICATION_ID = 'DATA_CHANNEL_CLOSED_NOTIFICATION_ID';
  64. /**
  65. * The identifier of the disable self view notification.
  66. *
  67. * @type {string}
  68. */
  69. export const DISABLE_SELF_VIEW_NOTIFICATION_ID = 'DISABLE_SELF_VIEW_NOTIFICATION_ID';
  70. /**
  71. * The identifier of the lobby notification.
  72. *
  73. * @type {string}
  74. */
  75. export const LOBBY_NOTIFICATION_ID = 'LOBBY_NOTIFICATION';
  76. /**
  77. * The identifier of the local recording notification.
  78. *
  79. * @type {string}
  80. */
  81. export const LOCAL_RECORDING_NOTIFICATION_ID = 'LOCAL_RECORDING_NOTIFICATION_ID';
  82. /**
  83. * The identifier of the raise hand notification.
  84. *
  85. * @type {string}
  86. */
  87. export const RAISE_HAND_NOTIFICATION_ID = 'RAISE_HAND_NOTIFICATION';
  88. /**
  89. * The identifier of the salesforce link notification.
  90. *
  91. * @type {string}
  92. */
  93. export const SALESFORCE_LINK_NOTIFICATION_ID = 'SALESFORCE_LINK_NOTIFICATION';
  94. /**
  95. * The identifier of the visitors promotion notification.
  96. *
  97. * @type {string}
  98. */
  99. export const VISITORS_PROMOTION_NOTIFICATION_ID = 'VISITORS_PROMOTION_NOTIFICATION';
  100. /**
  101. * The identifier of the visitors notification indicating the meeting is not live.
  102. *
  103. * @type {string}
  104. */
  105. export const VISITORS_NOT_LIVE_NOTIFICATION_ID = 'VISITORS_NOT_LIVE_NOTIFICATION_ID';
  106. /**
  107. * Amount of participants beyond which no join notification will be emitted.
  108. */
  109. export const SILENT_JOIN_THRESHOLD = 30;
  110. /**
  111. * Amount of participants beyond which no left notification will be emitted.
  112. */
  113. export const SILENT_LEFT_THRESHOLD = 30;
  114. /**
  115. * The identifier for the transcriber notifications.
  116. *
  117. * @type {string}
  118. */
  119. export const TRANSCRIBING_NOTIFICATION_ID = 'TRANSCRIBING_NOTIFICATION';