@webex/plugin-meetings 3.7.0-next.2 → 3.7.0-next.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/common/errors/{webinar-registration-error.js → join-webinar-error.js} +12 -12
  4. package/dist/common/errors/join-webinar-error.js.map +1 -0
  5. package/dist/config.js +1 -1
  6. package/dist/config.js.map +1 -1
  7. package/dist/constants.js +27 -6
  8. package/dist/constants.js.map +1 -1
  9. package/dist/index.js +8 -15
  10. package/dist/index.js.map +1 -1
  11. package/dist/interpretation/index.js +1 -1
  12. package/dist/interpretation/siLanguage.js +1 -1
  13. package/dist/meeting/in-meeting-actions.js +11 -1
  14. package/dist/meeting/in-meeting-actions.js.map +1 -1
  15. package/dist/meeting/index.js +84 -131
  16. package/dist/meeting/index.js.map +1 -1
  17. package/dist/meeting/util.js +0 -8
  18. package/dist/meeting/util.js.map +1 -1
  19. package/dist/meeting-info/meeting-info-v2.js +29 -17
  20. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  21. package/dist/meetings/index.js +6 -3
  22. package/dist/meetings/index.js.map +1 -1
  23. package/dist/members/util.js +4 -2
  24. package/dist/members/util.js.map +1 -1
  25. package/dist/metrics/constants.js +3 -1
  26. package/dist/metrics/constants.js.map +1 -1
  27. package/dist/multistream/remoteMedia.js +30 -15
  28. package/dist/multistream/remoteMedia.js.map +1 -1
  29. package/dist/reachability/clusterReachability.js +12 -11
  30. package/dist/reachability/clusterReachability.js.map +1 -1
  31. package/dist/recording-controller/enums.js +8 -4
  32. package/dist/recording-controller/enums.js.map +1 -1
  33. package/dist/recording-controller/index.js +18 -9
  34. package/dist/recording-controller/index.js.map +1 -1
  35. package/dist/recording-controller/util.js +13 -9
  36. package/dist/recording-controller/util.js.map +1 -1
  37. package/dist/types/common/errors/{webinar-registration-error.d.ts → join-webinar-error.d.ts} +2 -2
  38. package/dist/types/constants.d.ts +19 -1
  39. package/dist/types/index.d.ts +3 -3
  40. package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
  41. package/dist/types/meeting/index.d.ts +1 -10
  42. package/dist/types/meeting/util.d.ts +0 -1
  43. package/dist/types/meeting-info/meeting-info-v2.d.ts +4 -4
  44. package/dist/types/meetings/index.d.ts +3 -0
  45. package/dist/types/members/util.d.ts +2 -0
  46. package/dist/types/metrics/constants.d.ts +3 -1
  47. package/dist/types/recording-controller/enums.d.ts +5 -2
  48. package/dist/types/recording-controller/index.d.ts +1 -0
  49. package/dist/types/recording-controller/util.d.ts +2 -1
  50. package/dist/webinar/index.js +357 -7
  51. package/dist/webinar/index.js.map +1 -1
  52. package/package.json +22 -22
  53. package/src/common/errors/join-webinar-error.ts +24 -0
  54. package/src/config.ts +1 -1
  55. package/src/constants.ts +24 -3
  56. package/src/index.ts +2 -3
  57. package/src/meeting/in-meeting-actions.ts +21 -0
  58. package/src/meeting/index.ts +54 -48
  59. package/src/meeting/util.ts +0 -9
  60. package/src/meeting-info/meeting-info-v2.ts +23 -11
  61. package/src/meetings/index.ts +8 -2
  62. package/src/members/util.ts +1 -0
  63. package/src/metrics/constants.ts +3 -1
  64. package/src/multistream/remoteMedia.ts +28 -15
  65. package/src/reachability/clusterReachability.ts +4 -1
  66. package/src/recording-controller/enums.ts +5 -2
  67. package/src/recording-controller/index.ts +17 -4
  68. package/src/recording-controller/util.ts +20 -5
  69. package/src/webinar/index.ts +201 -9
  70. package/test/unit/spec/meeting/in-meeting-actions.ts +13 -1
  71. package/test/unit/spec/meeting/index.js +106 -77
  72. package/test/unit/spec/meeting/utils.js +0 -15
  73. package/test/unit/spec/meeting-info/meetinginfov2.js +9 -4
  74. package/test/unit/spec/meetings/index.js +9 -5
  75. package/test/unit/spec/members/utils.js +95 -0
  76. package/test/unit/spec/multistream/remoteMedia.ts +11 -7
  77. package/test/unit/spec/reachability/clusterReachability.ts +7 -0
  78. package/test/unit/spec/recording-controller/index.js +61 -5
  79. package/test/unit/spec/recording-controller/util.js +39 -3
  80. package/test/unit/spec/webinar/index.ts +363 -0
  81. package/dist/common/errors/webinar-registration-error.js.map +0 -1
  82. package/src/common/errors/webinar-registration-error.ts +0 -27
@@ -2,6 +2,7 @@ import {assert, expect} from '@webex/test-helper-chai';
2
2
  import LoggerProxy from '@webex/plugin-meetings/src/common/logs/logger-proxy';
3
3
  import Webinar from '@webex/plugin-meetings/src/webinar';
4
4
  import MockWebex from '@webex/test-helper-mock-webex';
5
+ import uuid from 'uuid';
5
6
  import sinon from 'sinon';
6
7
 
7
8
  describe('plugin-meetings', () => {
@@ -9,18 +10,28 @@ describe('plugin-meetings', () => {
9
10
 
10
11
  let webex;
11
12
  let webinar;
13
+ let uuidStub;
14
+ let getUserTokenStub;
12
15
 
13
16
  beforeEach(() => {
14
17
  // @ts-ignore
18
+ getUserTokenStub = sinon.stub().resolves('test-token');
19
+ uuidStub = sinon.stub(uuid,'v4').returns('test-uuid');
15
20
  webex = new MockWebex({});
16
21
  webex.internal.mercury.on = sinon.stub();
17
22
  webinar = new Webinar({}, {parent: webex});
18
23
  webinar.locusUrl = 'locusUrl';
24
+ webinar.webcastInstanceUrl = 'webcastInstanceUrl';
19
25
  webex.request = sinon.stub().returns(Promise.resolve('REQUEST_RETURN_VALUE'));
20
26
  webex.meetings = {};
27
+ webex.credentials.getUserToken = getUserTokenStub;
21
28
  webex.meetings.getMeetingByType = sinon.stub();
22
29
  });
23
30
 
31
+ afterEach(() => {
32
+ sinon.restore();
33
+ });
34
+
24
35
  describe('#locusUrlUpdate', () => {
25
36
  it('sets the locus url', () => {
26
37
  webinar.locusUrlUpdate('newUrl');
@@ -122,5 +133,357 @@ describe('plugin-meetings', () => {
122
133
  });
123
134
  });
124
135
 
136
+ describe("#setPracticeSessionState", () => {
137
+ [true, false].forEach((enabled) => {
138
+ it(`sends a PATCH request to ${enabled ? "enable" : "disable"} the practice session`, async () => {
139
+ const result = await webinar.setPracticeSessionState(enabled);
140
+ assert.calledOnce(webex.request);
141
+ assert.calledWith(webex.request, {
142
+ method: "PATCH",
143
+ uri: `${webinar.locusUrl}/controls`,
144
+ body: {
145
+ practiceSession: { enabled }
146
+ }
147
+ });
148
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
149
+ });
150
+ });
151
+
152
+ it('handles API call failures gracefully', async () => {
153
+ webex.request.rejects(new Error('API_ERROR'));
154
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
155
+
156
+ try {
157
+ await webinar.setPracticeSessionState(true);
158
+ assert.fail('setPracticeSessionState should throw an error');
159
+ } catch (error) {
160
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
161
+ assert.calledOnce(errorLogger);
162
+ assert.calledWith(errorLogger, 'Meeting:webinar#setPracticeSessionState failed', sinon.match.instanceOf(Error));
163
+ }
164
+
165
+ errorLogger.restore();
166
+ });
167
+ });
168
+
169
+ describe('#updatePracticeSessionStatus', () => {
170
+ it('sets PS state true', () => {
171
+ webinar.updatePracticeSessionStatus({enabled: true});
172
+
173
+ assert.equal(webinar.practiceSessionEnabled, true);
174
+ });
175
+ it('sets PS state true', () => {
176
+ webinar.updatePracticeSessionStatus({enabled: false});
177
+
178
+ assert.equal(webinar.practiceSessionEnabled, false);
179
+ });
180
+ });
181
+
182
+ describe("#startWebcast", () => {
183
+ const meeting = {
184
+ locusId: 'locusId',
185
+ correlationId: 'correlationId',
186
+ }
187
+ const layout = {
188
+ videoLayout: 'Prominent',
189
+ contentLayout: 'Prominent',
190
+ syncStageLayout: false,
191
+ syncStageInMeeting: false,
192
+ }
193
+ it(`sends a PUT request to start the webcast`, async () => {
194
+ const result = await webinar.startWebcast(meeting, layout);
195
+ assert.calledOnce(webex.request);
196
+ assert.calledWith(webex.request, {
197
+ method: "PUT",
198
+ uri: `${webinar.webcastInstanceUrl}/streaming`,
199
+ headers: {
200
+ authorization: 'test-token',
201
+ trackingId: 'webex-js-sdk_test-uuid',
202
+ 'Content-Type': 'application/json'
203
+ },
204
+ body: {
205
+ action: 'start',
206
+ meetingInfo: {
207
+ locusId: meeting.locusId,
208
+ correlationId: meeting.correlationId,
209
+ },
210
+ layout,
211
+ }
212
+ });
213
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
214
+ });
215
+
216
+ it('should handle undefined meeting parameter', async () => {
217
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
218
+
219
+ try {
220
+ await webinar.startWebcast(undefined, layout);
221
+ assert.fail('startWebcast should throw an error');
222
+ } catch (error) {
223
+ assert.equal(error.message, 'Meeting parameter does not meet expectations', 'should throw the correct error');
224
+ assert.calledOnce(errorLogger);
225
+ assert.calledWith(errorLogger, `Meeting:webinar#startWebcast failed --> meeting parameter : ${undefined}`);
226
+ } finally {
227
+ errorLogger.restore();
228
+ }
229
+ });
230
+
231
+ it('handles API call failures gracefully', async () => {
232
+ webex.request.rejects(new Error('API_ERROR'));
233
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
234
+
235
+ try {
236
+ await webinar.startWebcast(meeting, layout);
237
+ assert.fail('startWebcast should throw an error');
238
+ } catch (error) {
239
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
240
+ assert.calledOnce(errorLogger);
241
+ assert.calledWith(errorLogger, 'Meeting:webinar#startWebcast failed', sinon.match.instanceOf(Error));
242
+ } finally {
243
+ errorLogger.restore();
244
+ }
245
+ });
246
+ });
247
+
248
+ describe("#stopWebcast", () => {
249
+ it(`sends a PUT request to stop the webcast`, async () => {
250
+ const result = await webinar.stopWebcast();
251
+ assert.calledOnce(webex.request);
252
+ assert.calledWith(webex.request, {
253
+ method: "PUT",
254
+ uri: `${webinar.webcastInstanceUrl}/streaming`,
255
+ headers: {
256
+ authorization: 'test-token',
257
+ trackingId: 'webex-js-sdk_test-uuid',
258
+ 'Content-Type': 'application/json'
259
+ },
260
+ body: {
261
+ action: 'stop',
262
+ }
263
+ });
264
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
265
+ });
266
+
267
+ it('handles API call failures gracefully', async () => {
268
+ webex.request.rejects(new Error('API_ERROR'));
269
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
270
+
271
+ try {
272
+ await webinar.stopWebcast();
273
+ assert.fail('stopWebcast should throw an error');
274
+ } catch (error) {
275
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
276
+ assert.calledOnce(errorLogger);
277
+ assert.calledWith(errorLogger, 'Meeting:webinar#stopWebcast failed', sinon.match.instanceOf(Error));
278
+ } finally {
279
+ errorLogger.restore();
280
+ }
281
+ });
282
+ });
283
+
284
+
285
+ describe("#queryWebcastLayout", () => {
286
+ it(`sends a GET request to query the webcast layout`, async () => {
287
+ const result = await webinar.queryWebcastLayout();
288
+ assert.calledOnce(webex.request);
289
+ assert.calledWith(webex.request, {
290
+ method: "GET",
291
+ uri: `${webinar.webcastInstanceUrl}/layout`,
292
+ headers: {
293
+ authorization: 'test-token',
294
+ trackingId: 'webex-js-sdk_test-uuid',
295
+ },
296
+ });
297
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
298
+ });
299
+
300
+ it('handles API call failures gracefully', async () => {
301
+ webex.request.rejects(new Error('API_ERROR'));
302
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
303
+
304
+ try {
305
+ await webinar.queryWebcastLayout();
306
+ assert.fail('queryWebcastLayout should throw an error');
307
+ } catch (error) {
308
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
309
+ assert.calledOnce(errorLogger);
310
+ assert.calledWith(errorLogger, 'Meeting:webinar#queryWebcastLayout failed', sinon.match.instanceOf(Error));
311
+ } finally {
312
+ errorLogger.restore();
313
+ }
314
+ });
315
+ });
316
+
317
+ describe("#updateWebcastLayout", () => {
318
+ const layout = {
319
+ videoLayout: 'Prominent',
320
+ contentLayout: 'Prominent',
321
+ syncStageLayout: false,
322
+ syncStageInMeeting: false,
323
+ }
324
+ it(`sends a PUT request to update the webcast layout`, async () => {
325
+ const result = await webinar.updateWebcastLayout(layout);
326
+ assert.calledOnce(webex.request);
327
+ assert.calledWith(webex.request, {
328
+ method: "PUT",
329
+ uri: `${webinar.webcastInstanceUrl}/layout`,
330
+ headers: {
331
+ authorization: 'test-token',
332
+ trackingId: 'webex-js-sdk_test-uuid',
333
+ 'Content-Type': 'application/json'
334
+ },
335
+ body: {
336
+ ...layout
337
+ }
338
+ });
339
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
340
+ });
341
+
342
+ it('handles API call failures gracefully', async () => {
343
+ webex.request.rejects(new Error('API_ERROR'));
344
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
345
+
346
+ try {
347
+ await webinar.updateWebcastLayout(layout);
348
+ assert.fail('updateWebcastLayout should throw an error');
349
+ } catch (error) {
350
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
351
+ assert.calledOnce(errorLogger);
352
+ assert.calledWith(errorLogger, 'Meeting:webinar#updateWebcastLayout failed', sinon.match.instanceOf(Error));
353
+ } finally {
354
+ errorLogger.restore();
355
+ }
356
+ });
357
+ });
358
+
359
+ describe("#searchWebcastAttendees", () => {
360
+ const queryString = 'queryString';
361
+ const specialCharsQuery = 'query@string!';
362
+ const emptyQuery = '';
363
+
364
+ it("sends a GET request to search the webcast attendees", async () => {
365
+ const result = await webinar.searchWebcastAttendees(queryString);
366
+ assert.calledOnce(webex.request);
367
+ assert.calledWith(webex.request, {
368
+ method: "GET",
369
+ uri: `${webinar.webcastInstanceUrl}/attendees?keyword=${encodeURIComponent(queryString)}`,
370
+ headers: {
371
+ authorization: 'test-token',
372
+ trackingId: 'webex-js-sdk_test-uuid',
373
+ },
374
+ });
375
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
376
+ });
377
+
378
+ it('handles API call failures gracefully', async () => {
379
+ webex.request.rejects(new Error('API_ERROR'));
380
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
381
+
382
+ try {
383
+ await webinar.searchWebcastAttendees(queryString);
384
+ assert.fail('searchWebcastAttendees should throw an error');
385
+ } catch (error) {
386
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
387
+ assert.calledOnce(errorLogger);
388
+ assert.calledWith(errorLogger, 'Meeting:webinar#searchWebcastAttendees failed', sinon.match.instanceOf(Error));
389
+ } finally {
390
+ errorLogger.restore();
391
+ }
392
+ });
393
+
394
+ it("should handle empty query string", async () => {
395
+ const result = await webinar.searchWebcastAttendees(emptyQuery);
396
+ assert.calledOnce(webex.request);
397
+ assert.calledWith(webex.request, {
398
+ method: "GET",
399
+ uri: `${webinar.webcastInstanceUrl}/attendees?keyword=${encodeURIComponent(emptyQuery)}`,
400
+ headers: {
401
+ authorization: 'test-token',
402
+ trackingId: 'webex-js-sdk_test-uuid',
403
+ },
404
+ });
405
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
406
+ });
407
+
408
+ it("should handle query string with special characters", async () => {
409
+ const result = await webinar.searchWebcastAttendees(specialCharsQuery);
410
+ assert.calledOnce(webex.request);
411
+ assert.calledWith(webex.request, {
412
+ method: "GET",
413
+ uri: `${webinar.webcastInstanceUrl}/attendees?keyword=${encodeURIComponent(specialCharsQuery)}`,
414
+ headers: {
415
+ authorization: 'test-token',
416
+ trackingId: 'webex-js-sdk_test-uuid',
417
+ },
418
+ });
419
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
420
+ });
421
+ });
422
+
423
+
424
+ describe("#viewAllWebcastAttendees", () => {
425
+ it(`sends a GET request to view all the webcast attendees`, async () => {
426
+ const result = await webinar.viewAllWebcastAttendees();
427
+ assert.calledOnce(webex.request);
428
+ assert.calledWith(webex.request, {
429
+ method: "GET",
430
+ uri: `${webinar.webcastInstanceUrl}/attendees`,
431
+ headers: {
432
+ authorization: 'test-token',
433
+ trackingId: 'webex-js-sdk_test-uuid',
434
+ },
435
+ });
436
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
437
+ });
438
+
439
+ it('handles API call failures gracefully', async () => {
440
+ webex.request.rejects(new Error('API_ERROR'));
441
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
442
+
443
+ try {
444
+ await webinar.viewAllWebcastAttendees();
445
+ assert.fail('viewAllWebcastAttendees should throw an error');
446
+ } catch (error) {
447
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
448
+ assert.calledOnce(errorLogger);
449
+ assert.calledWith(errorLogger, 'Meeting:webinar#viewAllWebcastAttendees failed', sinon.match.instanceOf(Error));
450
+ } finally {
451
+ errorLogger.restore();
452
+ }
453
+ });
454
+ });
455
+
456
+ describe("#expelWebcastAttendee", () => {
457
+ const participantId = 'participantId'
458
+ it(`sends a DELETE request to expel the webcast attendee`, async () => {
459
+ const result = await webinar.expelWebcastAttendee(participantId);
460
+ assert.calledOnce(webex.request);
461
+ assert.calledWith(webex.request, {
462
+ method: "DELETE",
463
+ uri: `${webinar.webcastInstanceUrl}/attendees/${participantId}`,
464
+ headers: {
465
+ authorization: 'test-token',
466
+ trackingId: 'webex-js-sdk_test-uuid',
467
+ },
468
+ });
469
+ assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
470
+ });
471
+
472
+ it('handles API call failures gracefully', async () => {
473
+ webex.request.rejects(new Error('API_ERROR'));
474
+ const errorLogger = sinon.stub(LoggerProxy.logger, 'error');
475
+
476
+ try {
477
+ await webinar.expelWebcastAttendee(participantId);
478
+ assert.fail('expelWebcastAttendee should throw an error');
479
+ } catch (error) {
480
+ assert.equal(error.message, 'API_ERROR', 'should throw the correct error');
481
+ assert.calledOnce(errorLogger);
482
+ assert.calledWith(errorLogger, 'Meeting:webinar#expelWebcastAttendee failed', sinon.match.instanceOf(Error));
483
+ } finally {
484
+ errorLogger.restore();
485
+ }
486
+ });
487
+ });
125
488
  })
126
489
  })
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","WebinarRegistrationError","exports","_Error","_inherits2","_super","_this","message","length","undefined","ERROR_DICTIONARY","MESSAGE","error","_classCallCheck2","_defineProperty2","_assertThisInitialized2","name","NAME","sdkMessage","stack","Error","code","CODE","_createClass2","_wrapNativeSuper2"],"sources":["webinar-registration-error.ts"],"sourcesContent":["import {ERROR_DICTIONARY} from '../../constants';\n\n/**\n * Error occurred while the webinar required registration\n */\nexport default class WebinarRegistrationError extends Error {\n code: number;\n error: any;\n sdkMessage: string;\n\n /**\n * @constructor\n * @param {String} [message]\n * @param {Object} [error]\n */\n constructor(\n message: string = ERROR_DICTIONARY.WebinarRegistrationError.MESSAGE,\n error: any = null\n ) {\n super(message);\n this.name = ERROR_DICTIONARY.WebinarRegistrationError.NAME;\n this.sdkMessage = ERROR_DICTIONARY.WebinarRegistrationError.MESSAGE;\n this.error = error;\n this.stack = error ? error.stack : new Error().stack;\n this.code = ERROR_DICTIONARY.WebinarRegistrationError.CODE;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAiD,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,CAAAC,OAAA,EAAAN,OAAA,GAAAO,MAAA,MAAAN,yBAAA,QAAAO,SAAA,OAAAH,gBAAA,CAAAC,OAAA,QAAAG,WAAA,EAAAF,MAAA,GAAAG,kBAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAH,SAAA,YAAAD,MAAA,GAAAH,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,CAAAP,OAAA,QAAAC,MAAA;AAAA,SAAAL,0BAAA,eAAAY,OAAA,qBAAAJ,kBAAA,oBAAAA,kBAAA,CAAAK,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,kBAAA,CAAAO,OAAA,8CAAAI,CAAA;AAEjD;AACA;AACA;AAFA,IAGqBC,wBAAwB,GAAAC,OAAA,CAAAjB,OAAA,0BAAAkB,MAAA;EAAA,IAAAC,UAAA,CAAAnB,OAAA,EAAAgB,wBAAA,EAAAE,MAAA;EAAA,IAAAE,MAAA,GAAA3B,YAAA,CAAAuB,wBAAA;EAK3C;AACF;AACA;AACA;AACA;EACE,SAAAA,yBAAA,EAGE;IAAA,IAAAK,KAAA;IAAA,IAFAC,OAAe,GAAAjB,SAAA,CAAAkB,MAAA,QAAAlB,SAAA,QAAAmB,SAAA,GAAAnB,SAAA,MAAGoB,2BAAgB,CAACT,wBAAwB,CAACU,OAAO;IAAA,IACnEC,KAAU,GAAAtB,SAAA,CAAAkB,MAAA,QAAAlB,SAAA,QAAAmB,SAAA,GAAAnB,SAAA,MAAG,IAAI;IAAA,IAAAuB,gBAAA,CAAA5B,OAAA,QAAAgB,wBAAA;IAEjBK,KAAA,GAAAD,MAAA,CAAAN,IAAA,OAAMQ,OAAO;IAAE,IAAAO,gBAAA,CAAA7B,OAAA,MAAA8B,uBAAA,CAAA9B,OAAA,EAAAqB,KAAA;IAAA,IAAAQ,gBAAA,CAAA7B,OAAA,MAAA8B,uBAAA,CAAA9B,OAAA,EAAAqB,KAAA;IAAA,IAAAQ,gBAAA,CAAA7B,OAAA,MAAA8B,uBAAA,CAAA9B,OAAA,EAAAqB,KAAA;IACfA,KAAA,CAAKU,IAAI,GAAGN,2BAAgB,CAACT,wBAAwB,CAACgB,IAAI;IAC1DX,KAAA,CAAKY,UAAU,GAAGR,2BAAgB,CAACT,wBAAwB,CAACU,OAAO;IACnEL,KAAA,CAAKM,KAAK,GAAGA,KAAK;IAClBN,KAAA,CAAKa,KAAK,GAAGP,KAAK,GAAGA,KAAK,CAACO,KAAK,GAAG,IAAIC,KAAK,CAAC,CAAC,CAACD,KAAK;IACpDb,KAAA,CAAKe,IAAI,GAAGX,2BAAgB,CAACT,wBAAwB,CAACqB,IAAI;IAAC,OAAAhB,KAAA;EAC7D;EAAC,WAAAiB,aAAA,CAAAtC,OAAA,EAAAgB,wBAAA;AAAA,oBAAAuB,iBAAA,CAAAvC,OAAA,EApBmDmC,KAAK"}
@@ -1,27 +0,0 @@
1
- import {ERROR_DICTIONARY} from '../../constants';
2
-
3
- /**
4
- * Error occurred while the webinar required registration
5
- */
6
- export default class WebinarRegistrationError extends Error {
7
- code: number;
8
- error: any;
9
- sdkMessage: string;
10
-
11
- /**
12
- * @constructor
13
- * @param {String} [message]
14
- * @param {Object} [error]
15
- */
16
- constructor(
17
- message: string = ERROR_DICTIONARY.WebinarRegistrationError.MESSAGE,
18
- error: any = null
19
- ) {
20
- super(message);
21
- this.name = ERROR_DICTIONARY.WebinarRegistrationError.NAME;
22
- this.sdkMessage = ERROR_DICTIONARY.WebinarRegistrationError.MESSAGE;
23
- this.error = error;
24
- this.stack = error ? error.stack : new Error().stack;
25
- this.code = ERROR_DICTIONARY.WebinarRegistrationError.CODE;
26
- }
27
- }