Pārlūkot izejas kodu

feat(ts) TypeScript enum for JitsiConferenceErrors

dev1
Gary Hunt 3 gadus atpakaļ
vecāks
revīzija
8829f7bdaf
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
3 mainītis faili ar 239 papildinājumiem un 194 dzēšanām
  1. 0
    109
      JitsiConferenceErrors.js
  2. 132
    0
      JitsiConferenceErrors.ts
  3. 107
    85
      types/auto/JitsiConferenceErrors.d.ts

+ 0
- 109
JitsiConferenceErrors.js Parādīt failu

@@ -1,109 +0,0 @@
1
-/**
2
- * The errors for the conference.
3
- */
4
-
5
-/**
6
- * Indicates that client must be authenticated to create the conference.
7
- */
8
-export const AUTHENTICATION_REQUIRED = 'conference.authenticationRequired';
9
-
10
-/**
11
- * Indicates that chat error occurred.
12
- */
13
-export const CHAT_ERROR = 'conference.chatError';
14
-
15
-/**
16
- * Indicates that a settings error occurred.
17
- */
18
-export const SETTINGS_ERROR = 'conference.settingsError';
19
-
20
-/**
21
- * Indicates that conference has been destroyed.
22
- */
23
-export const CONFERENCE_DESTROYED = 'conference.destroyed';
24
-
25
-/**
26
- * Indicates that max users limit has been reached.
27
- */
28
-export const CONFERENCE_MAX_USERS = 'conference.max_users';
29
-
30
-/**
31
- * Indicates that a connection error occurred when trying to join a conference.
32
- */
33
-export const CONNECTION_ERROR = 'conference.connectionError';
34
-
35
-/**
36
- * Indicates that the client has been forced to restart by jicofo when the
37
- * conference was migrated from one bridge to another.
38
- */
39
-export const CONFERENCE_RESTARTED = 'conference.restarted';
40
-
41
-/**
42
- * Indicates that a connection error is due to not allowed,
43
- * occurred when trying to join a conference.
44
- */
45
-export const NOT_ALLOWED_ERROR = 'conference.connectionError.notAllowed';
46
-
47
-/**
48
- * Indicates that a connection error is due to not allowed,
49
- * occurred when trying to join a conference, only approved members are allowed to join.
50
- */
51
-export const MEMBERS_ONLY_ERROR = 'conference.connectionError.membersOnly';
52
-
53
-/**
54
- * Indicates that a connection error is due to denied access to the room,
55
- * occurred after joining a lobby room and access is denied by the room moderators.
56
- */
57
-export const CONFERENCE_ACCESS_DENIED = 'conference.connectionError.accessDenied';
58
-
59
-/**
60
- * Indicates that focus error happened.
61
- */
62
-export const FOCUS_DISCONNECTED = 'conference.focusDisconnected';
63
-
64
-/**
65
- * Indicates that focus left the conference.
66
- */
67
-export const FOCUS_LEFT = 'conference.focusLeft';
68
-
69
-/**
70
- * Indicates that graceful shutdown happened.
71
- */
72
-export const GRACEFUL_SHUTDOWN = 'conference.gracefulShutdown';
73
-
74
-/**
75
- * Indicates that the media connection has failed.
76
- */
77
-export const ICE_FAILED = 'conference.iceFailed';
78
-
79
-/**
80
- * Indicates that the versions of the server side components are incompatible
81
- * with the client side.
82
- */
83
-export const INCOMPATIBLE_SERVER_VERSIONS
84
-    = 'conference.incompatible_server_versions';
85
-
86
-/**
87
- * Indicates that offer/answer had failed.
88
- */
89
-export const OFFER_ANSWER_FAILED = 'conference.offerAnswerFailed';
90
-
91
-/**
92
- * Indicates that password cannot be set for this conference.
93
- */
94
-export const PASSWORD_NOT_SUPPORTED = 'conference.passwordNotSupported';
95
-
96
-/**
97
- * Indicates that a password is required in order to join the conference.
98
- */
99
-export const PASSWORD_REQUIRED = 'conference.passwordRequired';
100
-
101
-/**
102
- * Indicates that reservation system returned error.
103
- */
104
-export const RESERVATION_ERROR = 'conference.reservationError';
105
-
106
-/**
107
- * Indicates that there is no available videobridge.
108
- */
109
-export const VIDEOBRIDGE_NOT_AVAILABLE = 'conference.videobridgeNotAvailable';

+ 132
- 0
JitsiConferenceErrors.ts Parādīt failu

@@ -0,0 +1,132 @@
1
+/**
2
+ * The errors for the conference.
3
+ */
4
+
5
+export enum JitsiConferenceErrors {
6
+    /**
7
+     * Indicates that client must be authenticated to create the conference.
8
+     */
9
+    AUTHENTICATION_REQUIRED = 'conference.authenticationRequired',
10
+
11
+    /**
12
+     * Indicates that chat error occurred.
13
+     */
14
+    CHAT_ERROR = 'conference.chatError',
15
+
16
+    /**
17
+     * Indicates that a settings error occurred.
18
+     */
19
+    SETTINGS_ERROR = 'conference.settingsError',
20
+
21
+    /**
22
+     * Indicates that conference has been destroyed.
23
+     */
24
+    CONFERENCE_DESTROYED = 'conference.destroyed',
25
+
26
+    /**
27
+     * Indicates that max users limit has been reached.
28
+     */
29
+    CONFERENCE_MAX_USERS = 'conference.max_users',
30
+
31
+    /**
32
+     * Indicates that a connection error occurred when trying to join a conference.
33
+     */
34
+    CONNECTION_ERROR = 'conference.connectionError',
35
+
36
+    /**
37
+     * Indicates that the client has been forced to restart by jicofo when the
38
+     * conference was migrated from one bridge to another.
39
+     */
40
+    CONFERENCE_RESTARTED = 'conference.restarted',
41
+
42
+    /**
43
+     * Indicates that a connection error is due to not allowed,
44
+     * occurred when trying to join a conference.
45
+     */
46
+    NOT_ALLOWED_ERROR = 'conference.connectionError.notAllowed',
47
+
48
+    /**
49
+     * Indicates that a connection error is due to not allowed,
50
+     * occurred when trying to join a conference, only approved members are allowed to join.
51
+     */
52
+    MEMBERS_ONLY_ERROR = 'conference.connectionError.membersOnly',
53
+
54
+    /**
55
+     * Indicates that a connection error is due to denied access to the room,
56
+     * occurred after joining a lobby room and access is denied by the room moderators.
57
+     */
58
+    CONFERENCE_ACCESS_DENIED = 'conference.connectionError.accessDenied',
59
+
60
+    /**
61
+     * Indicates that focus error happened.
62
+     */
63
+    FOCUS_DISCONNECTED = 'conference.focusDisconnected',
64
+
65
+    /**
66
+     * Indicates that focus left the conference.
67
+     */
68
+    FOCUS_LEFT = 'conference.focusLeft',
69
+
70
+    /**
71
+     * Indicates that graceful shutdown happened.
72
+     */
73
+    GRACEFUL_SHUTDOWN = 'conference.gracefulShutdown',
74
+
75
+    /**
76
+     * Indicates that the media connection has failed.
77
+     */
78
+    ICE_FAILED = 'conference.iceFailed',
79
+
80
+    /**
81
+     * Indicates that the versions of the server side components are incompatible
82
+     * with the client side.
83
+     */
84
+    INCOMPATIBLE_SERVER_VERSIONS = 'conference.incompatible_server_versions',
85
+
86
+    /**
87
+     * Indicates that offer/answer had failed.
88
+     */
89
+    OFFER_ANSWER_FAILED = 'conference.offerAnswerFailed',
90
+
91
+    /**
92
+     * Indicates that password cannot be set for this conference.
93
+     */
94
+    PASSWORD_NOT_SUPPORTED = 'conference.passwordNotSupported',
95
+
96
+    /**
97
+     * Indicates that a password is required in order to join the conference.
98
+     */
99
+    PASSWORD_REQUIRED = 'conference.passwordRequired',
100
+
101
+    /**
102
+     * Indicates that reservation system returned error.
103
+     */
104
+    RESERVATION_ERROR = 'conference.reservationError',
105
+
106
+    /**
107
+     * Indicates that there is no available videobridge.
108
+     */
109
+    VIDEOBRIDGE_NOT_AVAILABLE = 'conference.videobridgeNotAvailable'
110
+};
111
+
112
+// exported for backward compatibility
113
+export const AUTHENTICATION_REQUIRED = JitsiConferenceErrors.AUTHENTICATION_REQUIRED;
114
+export const CHAT_ERROR = JitsiConferenceErrors.CHAT_ERROR;
115
+export const SETTINGS_ERROR = JitsiConferenceErrors.SETTINGS_ERROR;
116
+export const CONFERENCE_DESTROYED = JitsiConferenceErrors.CONFERENCE_DESTROYED;
117
+export const CONFERENCE_MAX_USERS = JitsiConferenceErrors.CONFERENCE_MAX_USERS;
118
+export const CONNECTION_ERROR = JitsiConferenceErrors.CONNECTION_ERROR;
119
+export const CONFERENCE_RESTARTED = JitsiConferenceErrors.CONFERENCE_RESTARTED;
120
+export const NOT_ALLOWED_ERROR = JitsiConferenceErrors.NOT_ALLOWED_ERROR;
121
+export const MEMBERS_ONLY_ERROR = JitsiConferenceErrors.MEMBERS_ONLY_ERROR;
122
+export const CONFERENCE_ACCESS_DENIED = JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED;
123
+export const FOCUS_DISCONNECTED = JitsiConferenceErrors.FOCUS_DISCONNECTED;
124
+export const FOCUS_LEFT = JitsiConferenceErrors.FOCUS_LEFT;
125
+export const GRACEFUL_SHUTDOWN = JitsiConferenceErrors.GRACEFUL_SHUTDOWN;
126
+export const ICE_FAILED = JitsiConferenceErrors.ICE_FAILED;
127
+export const INCOMPATIBLE_SERVER_VERSIONS = JitsiConferenceErrors.INCOMPATIBLE_SERVER_VERSIONS;
128
+export const OFFER_ANSWER_FAILED = JitsiConferenceErrors.OFFER_ANSWER_FAILED;
129
+export const PASSWORD_NOT_SUPPORTED = JitsiConferenceErrors.PASSWORD_NOT_SUPPORTED;
130
+export const PASSWORD_REQUIRED = JitsiConferenceErrors.PASSWORD_REQUIRED;
131
+export const RESERVATION_ERROR = JitsiConferenceErrors.RESERVATION_ERROR;
132
+export const VIDEOBRIDGE_NOT_AVAILABLE = JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE;

+ 107
- 85
types/auto/JitsiConferenceErrors.d.ts Parādīt failu

@@ -1,88 +1,110 @@
1 1
 /**
2 2
  * The errors for the conference.
3 3
  */
4
-/**
5
- * Indicates that client must be authenticated to create the conference.
6
- */
7
-export const AUTHENTICATION_REQUIRED: "conference.authenticationRequired";
8
-/**
9
- * Indicates that chat error occurred.
10
- */
11
-export const CHAT_ERROR: "conference.chatError";
12
-/**
13
- * Indicates that a settings error occurred.
14
- */
15
-export const SETTINGS_ERROR: "conference.settingsError";
16
-/**
17
- * Indicates that conference has been destroyed.
18
- */
19
-export const CONFERENCE_DESTROYED: "conference.destroyed";
20
-/**
21
- * Indicates that max users limit has been reached.
22
- */
23
-export const CONFERENCE_MAX_USERS: "conference.max_users";
24
-/**
25
- * Indicates that a connection error occurred when trying to join a conference.
26
- */
27
-export const CONNECTION_ERROR: "conference.connectionError";
28
-/**
29
- * Indicates that the client has been forced to restart by jicofo when the
30
- * conference was migrated from one bridge to another.
31
- */
32
-export const CONFERENCE_RESTARTED: "conference.restarted";
33
-/**
34
- * Indicates that a connection error is due to not allowed,
35
- * occurred when trying to join a conference.
36
- */
37
-export const NOT_ALLOWED_ERROR: "conference.connectionError.notAllowed";
38
-/**
39
- * Indicates that a connection error is due to not allowed,
40
- * occurred when trying to join a conference, only approved members are allowed to join.
41
- */
42
-export const MEMBERS_ONLY_ERROR: "conference.connectionError.membersOnly";
43
-/**
44
- * Indicates that a connection error is due to denied access to the room,
45
- * occurred after joining a lobby room and access is denied by the room moderators.
46
- */
47
-export const CONFERENCE_ACCESS_DENIED: "conference.connectionError.accessDenied";
48
-/**
49
- * Indicates that focus error happened.
50
- */
51
-export const FOCUS_DISCONNECTED: "conference.focusDisconnected";
52
-/**
53
- * Indicates that focus left the conference.
54
- */
55
-export const FOCUS_LEFT: "conference.focusLeft";
56
-/**
57
- * Indicates that graceful shutdown happened.
58
- */
59
-export const GRACEFUL_SHUTDOWN: "conference.gracefulShutdown";
60
-/**
61
- * Indicates that the media connection has failed.
62
- */
63
-export const ICE_FAILED: "conference.iceFailed";
64
-/**
65
- * Indicates that the versions of the server side components are incompatible
66
- * with the client side.
67
- */
68
-export const INCOMPATIBLE_SERVER_VERSIONS: "conference.incompatible_server_versions";
69
-/**
70
- * Indicates that offer/answer had failed.
71
- */
72
-export const OFFER_ANSWER_FAILED: "conference.offerAnswerFailed";
73
-/**
74
- * Indicates that password cannot be set for this conference.
75
- */
76
-export const PASSWORD_NOT_SUPPORTED: "conference.passwordNotSupported";
77
-/**
78
- * Indicates that a password is required in order to join the conference.
79
- */
80
-export const PASSWORD_REQUIRED: "conference.passwordRequired";
81
-/**
82
- * Indicates that reservation system returned error.
83
- */
84
-export const RESERVATION_ERROR: "conference.reservationError";
85
-/**
86
- * Indicates that there is no available videobridge.
87
- */
88
-export const VIDEOBRIDGE_NOT_AVAILABLE: "conference.videobridgeNotAvailable";
4
+export declare enum JitsiConferenceErrors {
5
+    /**
6
+     * Indicates that client must be authenticated to create the conference.
7
+     */
8
+    AUTHENTICATION_REQUIRED = "conference.authenticationRequired",
9
+    /**
10
+     * Indicates that chat error occurred.
11
+     */
12
+    CHAT_ERROR = "conference.chatError",
13
+    /**
14
+     * Indicates that a settings error occurred.
15
+     */
16
+    SETTINGS_ERROR = "conference.settingsError",
17
+    /**
18
+     * Indicates that conference has been destroyed.
19
+     */
20
+    CONFERENCE_DESTROYED = "conference.destroyed",
21
+    /**
22
+     * Indicates that max users limit has been reached.
23
+     */
24
+    CONFERENCE_MAX_USERS = "conference.max_users",
25
+    /**
26
+     * Indicates that a connection error occurred when trying to join a conference.
27
+     */
28
+    CONNECTION_ERROR = "conference.connectionError",
29
+    /**
30
+     * Indicates that the client has been forced to restart by jicofo when the
31
+     * conference was migrated from one bridge to another.
32
+     */
33
+    CONFERENCE_RESTARTED = "conference.restarted",
34
+    /**
35
+     * Indicates that a connection error is due to not allowed,
36
+     * occurred when trying to join a conference.
37
+     */
38
+    NOT_ALLOWED_ERROR = "conference.connectionError.notAllowed",
39
+    /**
40
+     * Indicates that a connection error is due to not allowed,
41
+     * occurred when trying to join a conference, only approved members are allowed to join.
42
+     */
43
+    MEMBERS_ONLY_ERROR = "conference.connectionError.membersOnly",
44
+    /**
45
+     * Indicates that a connection error is due to denied access to the room,
46
+     * occurred after joining a lobby room and access is denied by the room moderators.
47
+     */
48
+    CONFERENCE_ACCESS_DENIED = "conference.connectionError.accessDenied",
49
+    /**
50
+     * Indicates that focus error happened.
51
+     */
52
+    FOCUS_DISCONNECTED = "conference.focusDisconnected",
53
+    /**
54
+     * Indicates that focus left the conference.
55
+     */
56
+    FOCUS_LEFT = "conference.focusLeft",
57
+    /**
58
+     * Indicates that graceful shutdown happened.
59
+     */
60
+    GRACEFUL_SHUTDOWN = "conference.gracefulShutdown",
61
+    /**
62
+     * Indicates that the media connection has failed.
63
+     */
64
+    ICE_FAILED = "conference.iceFailed",
65
+    /**
66
+     * Indicates that the versions of the server side components are incompatible
67
+     * with the client side.
68
+     */
69
+    INCOMPATIBLE_SERVER_VERSIONS = "conference.incompatible_server_versions",
70
+    /**
71
+     * Indicates that offer/answer had failed.
72
+     */
73
+    OFFER_ANSWER_FAILED = "conference.offerAnswerFailed",
74
+    /**
75
+     * Indicates that password cannot be set for this conference.
76
+     */
77
+    PASSWORD_NOT_SUPPORTED = "conference.passwordNotSupported",
78
+    /**
79
+     * Indicates that a password is required in order to join the conference.
80
+     */
81
+    PASSWORD_REQUIRED = "conference.passwordRequired",
82
+    /**
83
+     * Indicates that reservation system returned error.
84
+     */
85
+    RESERVATION_ERROR = "conference.reservationError",
86
+    /**
87
+     * Indicates that there is no available videobridge.
88
+     */
89
+    VIDEOBRIDGE_NOT_AVAILABLE = "conference.videobridgeNotAvailable"
90
+}
91
+export declare const AUTHENTICATION_REQUIRED = JitsiConferenceErrors.AUTHENTICATION_REQUIRED;
92
+export declare const CHAT_ERROR = JitsiConferenceErrors.CHAT_ERROR;
93
+export declare const SETTINGS_ERROR = JitsiConferenceErrors.SETTINGS_ERROR;
94
+export declare const CONFERENCE_DESTROYED = JitsiConferenceErrors.CONFERENCE_DESTROYED;
95
+export declare const CONFERENCE_MAX_USERS = JitsiConferenceErrors.CONFERENCE_MAX_USERS;
96
+export declare const CONNECTION_ERROR = JitsiConferenceErrors.CONNECTION_ERROR;
97
+export declare const CONFERENCE_RESTARTED = JitsiConferenceErrors.CONFERENCE_RESTARTED;
98
+export declare const NOT_ALLOWED_ERROR = JitsiConferenceErrors.NOT_ALLOWED_ERROR;
99
+export declare const MEMBERS_ONLY_ERROR = JitsiConferenceErrors.MEMBERS_ONLY_ERROR;
100
+export declare const CONFERENCE_ACCESS_DENIED = JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED;
101
+export declare const FOCUS_DISCONNECTED = JitsiConferenceErrors.FOCUS_DISCONNECTED;
102
+export declare const FOCUS_LEFT = JitsiConferenceErrors.FOCUS_LEFT;
103
+export declare const GRACEFUL_SHUTDOWN = JitsiConferenceErrors.GRACEFUL_SHUTDOWN;
104
+export declare const ICE_FAILED = JitsiConferenceErrors.ICE_FAILED;
105
+export declare const INCOMPATIBLE_SERVER_VERSIONS = JitsiConferenceErrors.INCOMPATIBLE_SERVER_VERSIONS;
106
+export declare const OFFER_ANSWER_FAILED = JitsiConferenceErrors.OFFER_ANSWER_FAILED;
107
+export declare const PASSWORD_NOT_SUPPORTED = JitsiConferenceErrors.PASSWORD_NOT_SUPPORTED;
108
+export declare const PASSWORD_REQUIRED = JitsiConferenceErrors.PASSWORD_REQUIRED;
109
+export declare const RESERVATION_ERROR = JitsiConferenceErrors.RESERVATION_ERROR;
110
+export declare const VIDEOBRIDGE_NOT_AVAILABLE = JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE;

Notiek ielāde…
Atcelt
Saglabāt