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.js 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // User invite statuses
  2. /**
  3. * Тhe status for a participant when it's invited to a conference.
  4. *
  5. * @type {string}
  6. */
  7. export const INVITED = 'Invited';
  8. /**
  9. * Тhe status for a participant when a call has been initiated.
  10. *
  11. * @type {string}
  12. */
  13. export const CALLING = 'calling';
  14. /**
  15. * Тhe status for a participant when the invite is received and its device(s)
  16. * are ringing.
  17. *
  18. * @type {string}
  19. */
  20. export const RINGING = 'ringing';
  21. /**
  22. * A status for a participant that indicates the call is connected.
  23. *
  24. * @type {string}
  25. */
  26. export const CONNECTED_USER = 'connected';
  27. /**
  28. * The status for a participant when the invitation is received but the user
  29. * has responded with busy message.
  30. *
  31. * @type {string}
  32. */
  33. export const BUSY = 'busy';
  34. /**
  35. * The status for a participant when the invitation is rejected.
  36. *
  37. * @type {string}
  38. */
  39. export const REJECTED = 'rejected';
  40. /**
  41. * The status for a participant when the invitation is ignored.
  42. *
  43. * @type {string}
  44. */
  45. export const IGNORED = 'ignored';
  46. /**
  47. * The status for a participant when the invitation is expired.
  48. *
  49. * @type {string}
  50. */
  51. export const EXPIRED = 'expired';
  52. // Phone call statuses
  53. /**
  54. * A status for a participant that indicates the call is in process of
  55. * initialization.
  56. * NOTE: Currently used for phone numbers only.
  57. *
  58. * @type {string}
  59. */
  60. export const INITIALIZING_CALL = 'Initializing Call';
  61. /**
  62. * A status for a participant that indicates the call is in process of
  63. * connecting.
  64. * NOTE: Currently used for phone numbers only.
  65. *
  66. * @type {string}
  67. */
  68. export const CONNECTING = 'Connecting';
  69. /**
  70. * A status for a participant that indicates the call is in process of
  71. * connecting.
  72. * NOTE: Currently used for phone numbers only.
  73. *
  74. * @type {string}
  75. */
  76. export const CONNECTING2 = 'Connecting*';
  77. /**
  78. * A status for a phone number participant that indicates the call is connected.
  79. *
  80. * @type {string}
  81. */
  82. export const CONNECTED_PHONE_NUMBER = 'Connected';
  83. /**
  84. * A status for a participant that indicates the call is disconnected.
  85. * NOTE: Currently used for phone numbers only.
  86. *
  87. * @type {string}
  88. */
  89. export const DISCONNECTED = 'Disconnected';
  90. /**
  91. * Maps the presence status values to i18n translation keys.
  92. *
  93. * @type {Object<String, String>}
  94. */
  95. export const STATUS_TO_I18N_KEY = {
  96. [INVITED]: 'presenceStatus.invited',
  97. [RINGING]: 'presenceStatus.ringing',
  98. [CALLING]: 'presenceStatus.calling',
  99. [BUSY]: 'presenceStatus.busy',
  100. [REJECTED]: 'presenceStatus.rejected',
  101. [IGNORED]: 'presenceStatus.ignored',
  102. [EXPIRED]: 'presenceStatus.expired',
  103. [INITIALIZING_CALL]: 'presenceStatus.initializingCall',
  104. [CONNECTING]: 'presenceStatus.connecting',
  105. [CONNECTING2]: 'presenceStatus.connecting2',
  106. [CONNECTED_PHONE_NUMBER]: 'presenceStatus.connected',
  107. [CONNECTED_USER]: 'presenceStatus.connected',
  108. [DISCONNECTED]: 'presenceStatus.disconnected'
  109. };