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 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /**
  2. * Тhe status for a participant when it's invited to a conference.
  3. *
  4. * @type {string}
  5. */
  6. export const INVITED = 'Invited';
  7. /**
  8. * Тhe status for a participant when a call has been initiated.
  9. *
  10. * @type {string}
  11. */
  12. export const CALLING = 'Calling';
  13. /**
  14. * Тhe status for a participant when the invite is received and its device(s)
  15. * are ringing.
  16. *
  17. * @type {string}
  18. */
  19. export const RINGING = 'Ringing';
  20. /**
  21. * A status for a participant that indicates the call is connected.
  22. * NOTE: Currently used for phone numbers only.
  23. *
  24. * @type {string}
  25. */
  26. export const CONNECTED = 'Connected';
  27. /**
  28. * A status for a participant that indicates the call is in process of
  29. * connecting.
  30. * NOTE: Currently used for phone numbers only.
  31. *
  32. * @type {string}
  33. */
  34. export const CONNECTING = 'Connecting';
  35. /**
  36. * The status for a participant when the invitation is received but the user
  37. * has responded with busy message.
  38. */
  39. export const BUSY = 'Busy';
  40. /**
  41. * The status for a participant when the invitation is rejected.
  42. */
  43. export const REJECTED = 'Rejected';
  44. /**
  45. * The status for a participant when the invitation is ignored.
  46. */
  47. export const IGNORED = 'Ignored';
  48. /**
  49. * Maps the presence status values to i18n translation keys.
  50. *
  51. * @type {Object<String, String>}
  52. */
  53. export const STATUS_TO_I18N_KEY = {
  54. 'Invited': 'presenceStatus.invited',
  55. 'Ringing': 'presenceStatus.ringing',
  56. 'Calling': 'presenceStatus.calling',
  57. 'Connected': 'presenceStatus.connected',
  58. 'Connecting': 'presenceStatus.connecting',
  59. 'Busy': 'presenceStatus.busy',
  60. 'Rejected': 'presenceStatus.rejected',
  61. 'Ignored': 'presenceStatus.ignored'
  62. };