@webex/plugin-meetings 3.7.0-next.12 → 3.7.0-next.14

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 (39) 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/constants.js +10 -4
  6. package/dist/constants.js.map +1 -1
  7. package/dist/index.js +7 -7
  8. package/dist/index.js.map +1 -1
  9. package/dist/interpretation/index.js +1 -1
  10. package/dist/interpretation/siLanguage.js +1 -1
  11. package/dist/meeting/index.js +18 -13
  12. package/dist/meeting/index.js.map +1 -1
  13. package/dist/meeting-info/meeting-info-v2.js +29 -17
  14. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  15. package/dist/meetings/index.js +2 -2
  16. package/dist/meetings/index.js.map +1 -1
  17. package/dist/metrics/constants.js +1 -1
  18. package/dist/metrics/constants.js.map +1 -1
  19. package/dist/types/common/errors/{webinar-registration-error.d.ts → join-webinar-error.d.ts} +2 -2
  20. package/dist/types/constants.d.ts +5 -1
  21. package/dist/types/index.d.ts +2 -2
  22. package/dist/types/meeting-info/meeting-info-v2.d.ts +4 -4
  23. package/dist/types/metrics/constants.d.ts +1 -1
  24. package/dist/webinar/index.js +5 -7
  25. package/dist/webinar/index.js.map +1 -1
  26. package/package.json +3 -3
  27. package/src/common/errors/join-webinar-error.ts +24 -0
  28. package/src/constants.ts +7 -3
  29. package/src/index.ts +2 -2
  30. package/src/meeting/index.ts +11 -4
  31. package/src/meeting-info/meeting-info-v2.ts +23 -11
  32. package/src/meetings/index.ts +2 -2
  33. package/src/metrics/constants.ts +1 -1
  34. package/src/webinar/index.ts +4 -6
  35. package/test/unit/spec/meeting/index.js +51 -6
  36. package/test/unit/spec/meeting-info/meetinginfov2.js +9 -4
  37. package/test/unit/spec/webinar/index.ts +1 -1
  38. package/dist/common/errors/webinar-registration-error.js.map +0 -1
  39. package/src/common/errors/webinar-registration-error.ts +0 -27
@@ -18,7 +18,7 @@ import MeetingInfo, {
18
18
  MeetingInfoV2CaptchaError,
19
19
  MeetingInfoV2AdhocMeetingError,
20
20
  MeetingInfoV2PolicyError,
21
- MeetingInfoV2WebinarRegistrationError,
21
+ MeetingInfoV2JoinWebinarError,
22
22
  } from '@webex/plugin-meetings/src/meeting-info/meeting-info-v2';
23
23
  import MeetingInfoUtil from '@webex/plugin-meetings/src/meeting-info/utilv2';
24
24
  import Metrics from '@webex/plugin-meetings/src/metrics';
@@ -895,9 +895,14 @@ describe('plugin-meetings', () => {
895
895
  {errorCode: 403021},
896
896
  {errorCode: 403022},
897
897
  {errorCode: 403024},
898
+ {errorCode: 403137},
899
+ {errorCode: 423007},
900
+ {errorCode: 403026},
901
+ {errorCode: 403037},
902
+ {errorCode: 403137},
898
903
  ],
899
904
  ({errorCode}) => {
900
- it(`should throw a MeetingInfoV2WebinarRegistrationError for error code ${errorCode}`, async () => {
905
+ it(`should throw a MeetingInfoV2JoinWebinarError for error code ${errorCode}`, async () => {
901
906
  const message = 'a message';
902
907
  const meetingInfoData = {meetingInfo: {registrationUrl: 'registrationUrl'}};
903
908
 
@@ -909,7 +914,7 @@ describe('plugin-meetings', () => {
909
914
  await meetingInfo.createAdhocSpaceMeeting(conversationUrl, installedOrgID);
910
915
  assert.fail('createAdhocSpaceMeeting should have thrown, but has not done that');
911
916
  } catch (err) {
912
- assert.instanceOf(err, MeetingInfoV2WebinarRegistrationError);
917
+ assert.instanceOf(err, MeetingInfoV2JoinWebinarError);
913
918
  assert.deepEqual(err.message, `${message}, code=${errorCode}`);
914
919
  assert.equal(err.wbxAppApiCode, errorCode);
915
920
  assert.deepEqual(err.meetingInfo, meetingInfoData);
@@ -917,7 +922,7 @@ describe('plugin-meetings', () => {
917
922
  assert(Metrics.sendBehavioralMetric.calledOnce);
918
923
  assert.calledWith(
919
924
  Metrics.sendBehavioralMetric,
920
- BEHAVIORAL_METRICS.WEBINAR_REGISTRATION_ERROR,
925
+ BEHAVIORAL_METRICS.JOIN_WEBINAR_ERROR,
921
926
  {code: errorCode}
922
927
  );
923
928
 
@@ -333,7 +333,7 @@ describe('plugin-meetings', () => {
333
333
  'Content-Type': 'application/json'
334
334
  },
335
335
  body: {
336
- layout
336
+ ...layout
337
337
  }
338
338
  });
339
339
  assert.equal(result, "REQUEST_RETURN_VALUE", "should return the resolved value from the request");
@@ -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,qBA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AA,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
- }