|
|
|
@ -1,3 +1,5 @@ |
|
|
|
|
// User invite statuses
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Тhe status for a participant when it's invited to a conference. |
|
|
|
|
* |
|
|
|
@ -22,11 +24,50 @@ export const RINGING = 'Ringing'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* A status for a participant that indicates the call is connected. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const CONNECTED_USER = 'connected'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The status for a participant when the invitation is received but the user |
|
|
|
|
* has responded with busy message. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const BUSY = 'Busy'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The status for a participant when the invitation is rejected. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const REJECTED = 'Rejected'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The status for a participant when the invitation is ignored. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const IGNORED = 'Ignored'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The status for a participant when the invitation is expired. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const EXPIRED = 'Expired'; |
|
|
|
|
|
|
|
|
|
// Phone call statuses
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* A status for a participant that indicates the call is in process of |
|
|
|
|
* initialization. |
|
|
|
|
* NOTE: Currently used for phone numbers only. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const CONNECTED = 'Connected'; |
|
|
|
|
export const INITIALIZING_CALL = 'Initializing Call'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* A status for a participant that indicates the call is in process of |
|
|
|
@ -38,20 +79,30 @@ export const CONNECTED = 'Connected'; |
|
|
|
|
export const CONNECTING = 'Connecting'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The status for a participant when the invitation is received but the user |
|
|
|
|
* has responded with busy message. |
|
|
|
|
* A status for a participant that indicates the call is in process of |
|
|
|
|
* connecting. |
|
|
|
|
* NOTE: Currently used for phone numbers only. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const BUSY = 'Busy'; |
|
|
|
|
export const CONNECTING2 = 'Connecting*'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The status for a participant when the invitation is rejected. |
|
|
|
|
* A status for a phone number participant that indicates the call is connected. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const REJECTED = 'Rejected'; |
|
|
|
|
export const CONNECTED_PHONE_NUMBER = 'Connected'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The status for a participant when the invitation is ignored. |
|
|
|
|
* A status for a participant that indicates the call is disconnected. |
|
|
|
|
* NOTE: Currently used for phone numbers only. |
|
|
|
|
* |
|
|
|
|
* @type {string} |
|
|
|
|
*/ |
|
|
|
|
export const IGNORED = 'Ignored'; |
|
|
|
|
export const DISCONNECTED = 'Disconnected'; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Maps the presence status values to i18n translation keys. |
|
|
|
@ -59,12 +110,17 @@ export const IGNORED = 'Ignored'; |
|
|
|
|
* @type {Object<String, String>} |
|
|
|
|
*/ |
|
|
|
|
export const STATUS_TO_I18N_KEY = { |
|
|
|
|
'Invited': 'presenceStatus.invited', |
|
|
|
|
'Ringing': 'presenceStatus.ringing', |
|
|
|
|
'Calling': 'presenceStatus.calling', |
|
|
|
|
'Connected': 'presenceStatus.connected', |
|
|
|
|
'Connecting': 'presenceStatus.connecting', |
|
|
|
|
'Busy': 'presenceStatus.busy', |
|
|
|
|
'Rejected': 'presenceStatus.rejected', |
|
|
|
|
'Ignored': 'presenceStatus.ignored' |
|
|
|
|
[INVITED]: 'presenceStatus.invited', |
|
|
|
|
[RINGING]: 'presenceStatus.ringing', |
|
|
|
|
[CALLING]: 'presenceStatus.calling', |
|
|
|
|
[BUSY]: 'presenceStatus.busy', |
|
|
|
|
[REJECTED]: 'presenceStatus.rejected', |
|
|
|
|
[IGNORED]: 'presenceStatus.ignored', |
|
|
|
|
[EXPIRED]: 'presenceStatus.expired', |
|
|
|
|
|
|
|
|
|
[INITIALIZING_CALL]: 'presenceStatus.initializingCall', |
|
|
|
|
[CONNECTING]: 'presenceStatus.connecting', |
|
|
|
|
[CONNECTING2]: 'presenceStatus.connecting2', |
|
|
|
|
[CONNECTED_PHONE_NUMBER]: 'presenceStatus.connected', |
|
|
|
|
[DISCONNECTED]: 'presenceStatus.disconnected' |
|
|
|
|
}; |
|
|
|
|