diff --git a/modules/proxyconnection/constants.js b/modules/proxyconnection/constants.js deleted file mode 100644 index e38165db96..0000000000 --- a/modules/proxyconnection/constants.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * The know jingle actions that can be sent and should be acted upon by - * {@code ProxyConnectionService} and {@code ProxyConnectionPC}. - */ -export const ACTIONS = { - ACCEPT: 'session-accept', - CONNECTION_ERROR: 'connection-error-encountered', - INITIATE: 'session-initiate', - TERMINATE: 'session-terminate', - TRANSPORT_INFO: 'transport-info', - UNAVAILABLE: 'unavailable' -}; diff --git a/modules/proxyconnection/constants.ts b/modules/proxyconnection/constants.ts new file mode 100644 index 0000000000..0d0bac7267 --- /dev/null +++ b/modules/proxyconnection/constants.ts @@ -0,0 +1,12 @@ +/** + * The know jingle actions that can be sent and should be acted upon by + * {@code ProxyConnectionService} and {@code ProxyConnectionPC}. + */ +export enum ACTIONS { + ACCEPT = 'session-accept', + CONNECTION_ERROR = 'connection-error-encountered', + INITIATE = 'session-initiate', + TERMINATE = 'session-terminate', + TRANSPORT_INFO = 'transport-info', + UNAVAILABLE = 'unavailable' +}; diff --git a/types/auto/modules/proxyconnection/constants.d.ts b/types/auto/modules/proxyconnection/constants.d.ts index a725519e0d..f4e518b076 100644 --- a/types/auto/modules/proxyconnection/constants.d.ts +++ b/types/auto/modules/proxyconnection/constants.d.ts @@ -1,8 +1,12 @@ -export namespace ACTIONS { - const ACCEPT: string; - const CONNECTION_ERROR: string; - const INITIATE: string; - const TERMINATE: string; - const TRANSPORT_INFO: string; - const UNAVAILABLE: string; +/** + * The know jingle actions that can be sent and should be acted upon by + * {@code ProxyConnectionService} and {@code ProxyConnectionPC}. + */ +export declare enum ACTIONS { + ACCEPT = "session-accept", + CONNECTION_ERROR = "connection-error-encountered", + INITIATE = "session-initiate", + TERMINATE = "session-terminate", + TRANSPORT_INFO = "transport-info", + UNAVAILABLE = "unavailable" }