@@ -26,16 +26,26 @@ export enum loaderType {
26
26
27
27
/**
28
28
* @description Enum for the different types of notifications
29
+ * @enum {string}
30
+ * @property {string } ERROR - An Error notification
31
+ * @property {string } SUCCESS - A Success notification
32
+ * @property {string } INFO - An Info notification
33
+ * @property {string } WARNING - A Warning notification
34
+ * @property {string } DEFAULT - A Default notification
29
35
*/
30
36
export enum ENotificationType {
31
37
ERROR = 'ERROR' ,
32
38
SUCCESS = 'SUCCESS' ,
33
39
INFO = 'INFO' ,
34
40
WARNING = 'WARNING' ,
41
+ DEFAULT = 'DEFAULT' ,
35
42
}
36
43
37
44
/**
38
45
* @description Enum for the different types of notifications actions
46
+ * @enum {string}
47
+ * @property {string } OS - The notification will be handled by the OS
48
+ * @property {string } APP - The notification will be handled by the APP
39
49
*/
40
50
export enum ENotificationAction {
41
51
OS = 'OS' ,
@@ -44,11 +54,38 @@ export enum ENotificationAction {
44
54
45
55
/**
46
56
* @description Enum for the different types of RTC message types
57
+ * @enum {string}
58
+ * @property {string } VIDEO_OFFER - The connection is not yet open.
59
+ * @property {string } VIDEO_ANSWER - The connection is open and ready to communicate.
60
+ * @property {string } NEW_ICE_CANDIDATE - A new camera is wanting to connect.
61
+ * @property {string } CAMERA_ERROR - The connection is closed or couldn't be opened.
62
+ * @property {string } CLOSE_CAMERA_STREAM - The connection is requesting to close.
47
63
*/
48
64
export enum RTCMessageType {
49
- VIDEO_OFFER = 'video-offer' ,
50
- VIDEO_ANSWER = 'video-answer' ,
51
- NEW_ICE_CANDIDATE = 'new-ice-candidate' ,
52
- REMOTE_DESKTOP = 'remote-desktop' ,
53
- CLOSE_REMOTE_DESKTOP = 'close-remote-desktop' ,
65
+ VIDEO_OFFER = 'VIDEO_OFFER' ,
66
+ VIDEO_ANSWER = 'VIDEO_ANSWER' ,
67
+ NEW_ICE_CANDIDATE = 'NEW_ICE_CANDIDATE' ,
68
+ CAMERA_ERROR = 'CAMERA_ERROR' ,
69
+ CLOSE_CAMERA_STREAM = 'CLOSE_CAMERA_STREAM' ,
70
+ }
71
+
72
+ /**
73
+ * @description Enum for the different States of the RTC connection
74
+ * @enum {string}
75
+ * @property {string } CONNECTING - The connection is not yet open.
76
+ * @property {string } OPEN - The connection is open and ready to communicate.
77
+ * @property {string } CLOSING - The connection is in the process of closing.
78
+ * @property {string } CLOSED - The connection is closed or couldn't be opened.
79
+ * @property {string } ERROR - The connection is in an error state.
80
+ * @property {string } DISCONNECTED - The connection is disconnected.
81
+ * @property {string } CONNECTED - The connection is connected.
82
+ */
83
+ export enum RTCState {
84
+ CONNECTING = 'CONNECTING' ,
85
+ OPEN = 'OPEN' ,
86
+ CLOSING = 'CLOSING' ,
87
+ CLOSED = 'CLOSED' ,
88
+ ERROR = 'ERROR' ,
89
+ DISCONNECTED = 'DISCONNECTED' ,
90
+ CONNECTED = 'CONNECTED' ,
54
91
}
0 commit comments