@webex/calling 3.0.0-next.2 → 3.0.0-next.21

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 (152) hide show
  1. package/CHANGELOG.md +1403 -0
  2. package/dist/CallHistory/CallHistory.js +1 -3
  3. package/dist/CallHistory/CallHistory.js.map +1 -1
  4. package/dist/CallHistory/callHistoryFixtures.js +9 -0
  5. package/dist/CallHistory/callHistoryFixtures.js.map +1 -1
  6. package/dist/CallHistory/types.js.map +1 -1
  7. package/dist/CallSettings/CallSettings.js +0 -2
  8. package/dist/CallSettings/CallSettings.js.map +1 -1
  9. package/dist/CallSettings/types.js.map +1 -1
  10. package/dist/CallingClient/CallingClient.js +119 -62
  11. package/dist/CallingClient/CallingClient.js.map +1 -1
  12. package/dist/CallingClient/CallingClient.test.js +161 -102
  13. package/dist/CallingClient/CallingClient.test.js.map +1 -1
  14. package/dist/CallingClient/calling/CallerId/index.js +3 -23
  15. package/dist/CallingClient/calling/CallerId/index.js.map +1 -1
  16. package/dist/CallingClient/calling/CallerId/types.js.map +1 -1
  17. package/dist/CallingClient/calling/call.js +78 -33
  18. package/dist/CallingClient/calling/call.js.map +1 -1
  19. package/dist/CallingClient/calling/call.test.js +483 -351
  20. package/dist/CallingClient/calling/call.test.js.map +1 -1
  21. package/dist/CallingClient/calling/callManager.js +0 -9
  22. package/dist/CallingClient/calling/callManager.js.map +1 -1
  23. package/dist/CallingClient/calling/callManager.test.js +1 -1
  24. package/dist/CallingClient/calling/callManager.test.js.map +1 -1
  25. package/dist/CallingClient/calling/types.js.map +1 -1
  26. package/dist/CallingClient/callingClientFixtures.js +107 -1
  27. package/dist/CallingClient/callingClientFixtures.js.map +1 -1
  28. package/dist/CallingClient/constants.js +14 -6
  29. package/dist/CallingClient/constants.js.map +1 -1
  30. package/dist/CallingClient/line/index.js +12 -12
  31. package/dist/CallingClient/line/index.js.map +1 -1
  32. package/dist/CallingClient/line/line.test.js +9 -9
  33. package/dist/CallingClient/line/line.test.js.map +1 -1
  34. package/dist/CallingClient/line/types.js +4 -7
  35. package/dist/CallingClient/line/types.js.map +1 -1
  36. package/dist/CallingClient/registration/register.js +62 -80
  37. package/dist/CallingClient/registration/register.js.map +1 -1
  38. package/dist/CallingClient/registration/register.test.js +28 -28
  39. package/dist/CallingClient/registration/register.test.js.map +1 -1
  40. package/dist/CallingClient/registration/types.js.map +1 -1
  41. package/dist/CallingClient/types.js.map +1 -1
  42. package/dist/Contacts/ContactsClient.js +8 -2
  43. package/dist/Contacts/ContactsClient.js.map +1 -1
  44. package/dist/Contacts/types.js +3 -0
  45. package/dist/Contacts/types.js.map +1 -1
  46. package/dist/Errors/catalog/CallingDeviceError.js +1 -1
  47. package/dist/Errors/catalog/CallingDeviceError.js.map +1 -1
  48. package/dist/Errors/catalog/LineError.js +2 -2
  49. package/dist/Errors/catalog/LineError.js.map +1 -1
  50. package/dist/Errors/index.js +7 -0
  51. package/dist/Errors/index.js.map +1 -1
  52. package/dist/Errors/types.js.map +1 -1
  53. package/dist/Events/types.js +0 -1
  54. package/dist/Events/types.js.map +1 -1
  55. package/dist/Metrics/index.test.js +1 -1
  56. package/dist/Metrics/index.test.js.map +1 -1
  57. package/dist/SDKConnector/types.js.map +1 -1
  58. package/dist/Voicemail/Voicemail.js +18 -21
  59. package/dist/Voicemail/Voicemail.js.map +1 -1
  60. package/dist/Voicemail/WxCallBackendConnector.js +1 -1
  61. package/dist/Voicemail/WxCallBackendConnector.js.map +1 -1
  62. package/dist/Voicemail/types.js.map +1 -1
  63. package/dist/api.js +43 -20
  64. package/dist/api.js.map +1 -1
  65. package/dist/common/Utils.js +13 -18
  66. package/dist/common/Utils.js.map +1 -1
  67. package/dist/common/Utils.test.js +1 -1
  68. package/dist/common/Utils.test.js.map +1 -1
  69. package/dist/common/testUtil.js +2 -1
  70. package/dist/common/testUtil.js.map +1 -1
  71. package/dist/common/types.js +8 -7
  72. package/dist/common/types.js.map +1 -1
  73. package/dist/index.js +233 -0
  74. package/dist/index.js.map +1 -1
  75. package/dist/module/CallHistory/callHistoryFixtures.js +9 -0
  76. package/dist/module/CallingClient/CallingClient.js +59 -42
  77. package/dist/module/CallingClient/calling/CallerId/index.js +3 -23
  78. package/dist/module/CallingClient/calling/call.js +54 -17
  79. package/dist/module/CallingClient/calling/callManager.js +0 -6
  80. package/dist/module/CallingClient/callingClientFixtures.js +119 -1
  81. package/dist/module/CallingClient/constants.js +8 -4
  82. package/dist/module/CallingClient/line/index.js +7 -10
  83. package/dist/module/CallingClient/line/types.js +0 -5
  84. package/dist/module/CallingClient/registration/register.js +28 -20
  85. package/dist/module/Contacts/ContactsClient.js +3 -0
  86. package/dist/module/Errors/catalog/CallingDeviceError.js +2 -2
  87. package/dist/module/Errors/catalog/LineError.js +2 -2
  88. package/dist/module/Errors/index.js +1 -0
  89. package/dist/module/api.js +6 -5
  90. package/dist/module/common/Utils.js +14 -19
  91. package/dist/module/common/testUtil.js +2 -1
  92. package/dist/module/common/types.js +6 -5
  93. package/dist/module/index.js +7 -0
  94. package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
  95. package/dist/types/CallHistory/callHistoryFixtures.d.ts.map +1 -1
  96. package/dist/types/CallSettings/CallSettings.d.ts.map +1 -1
  97. package/dist/types/CallSettings/types.d.ts.map +1 -1
  98. package/dist/types/CallingClient/CallingClient.d.ts +2 -0
  99. package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
  100. package/dist/types/CallingClient/calling/CallerId/index.d.ts.map +1 -1
  101. package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +1 -1
  102. package/dist/types/CallingClient/calling/call.d.ts +2 -0
  103. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  104. package/dist/types/CallingClient/calling/callManager.d.ts +0 -1
  105. package/dist/types/CallingClient/calling/callManager.d.ts.map +1 -1
  106. package/dist/types/CallingClient/calling/types.d.ts +30 -30
  107. package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
  108. package/dist/types/CallingClient/callingClientFixtures.d.ts +69 -1
  109. package/dist/types/CallingClient/callingClientFixtures.d.ts.map +1 -1
  110. package/dist/types/CallingClient/constants.d.ts +7 -3
  111. package/dist/types/CallingClient/constants.d.ts.map +1 -1
  112. package/dist/types/CallingClient/line/index.d.ts +4 -5
  113. package/dist/types/CallingClient/line/index.d.ts.map +1 -1
  114. package/dist/types/CallingClient/line/types.d.ts +8 -13
  115. package/dist/types/CallingClient/line/types.d.ts.map +1 -1
  116. package/dist/types/CallingClient/registration/register.d.ts +3 -3
  117. package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
  118. package/dist/types/CallingClient/registration/types.d.ts +14 -14
  119. package/dist/types/CallingClient/registration/types.d.ts.map +1 -1
  120. package/dist/types/CallingClient/types.d.ts +6 -4
  121. package/dist/types/CallingClient/types.d.ts.map +1 -1
  122. package/dist/types/Contacts/ContactsClient.d.ts +3 -2
  123. package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
  124. package/dist/types/Contacts/types.d.ts +2 -0
  125. package/dist/types/Contacts/types.d.ts.map +1 -1
  126. package/dist/types/Errors/catalog/CallingDeviceError.d.ts +4 -4
  127. package/dist/types/Errors/catalog/CallingDeviceError.d.ts.map +1 -1
  128. package/dist/types/Errors/catalog/LineError.d.ts +4 -4
  129. package/dist/types/Errors/catalog/LineError.d.ts.map +1 -1
  130. package/dist/types/Errors/index.d.ts +1 -0
  131. package/dist/types/Errors/index.d.ts.map +1 -1
  132. package/dist/types/Errors/types.d.ts +2 -3
  133. package/dist/types/Errors/types.d.ts.map +1 -1
  134. package/dist/types/Events/types.d.ts +11 -0
  135. package/dist/types/Events/types.d.ts.map +1 -1
  136. package/dist/types/SDKConnector/types.d.ts +2 -1
  137. package/dist/types/SDKConnector/types.d.ts.map +1 -1
  138. package/dist/types/Voicemail/UcmBackendConnector.d.ts +1 -1
  139. package/dist/types/Voicemail/Voicemail.d.ts.map +1 -1
  140. package/dist/types/Voicemail/WxCallBackendConnector.d.ts +1 -1
  141. package/dist/types/Voicemail/types.d.ts +10 -10
  142. package/dist/types/Voicemail/types.d.ts.map +1 -1
  143. package/dist/types/api.d.ts +10 -10
  144. package/dist/types/api.d.ts.map +1 -1
  145. package/dist/types/common/Utils.d.ts.map +1 -1
  146. package/dist/types/common/testUtil.d.ts +1 -0
  147. package/dist/types/common/testUtil.d.ts.map +1 -1
  148. package/dist/types/common/types.d.ts +3 -2
  149. package/dist/types/common/types.d.ts.map +1 -1
  150. package/dist/types/index.d.ts +11 -0
  151. package/dist/types/index.d.ts.map +1 -1
  152. package/package.json +6 -5
package/dist/api.js CHANGED
@@ -37,13 +37,13 @@ _Object$defineProperty(exports, "CallingClient", {
37
37
  _Object$defineProperty(exports, "Contact", {
38
38
  enumerable: true,
39
39
  get: function get() {
40
- return _types7.Contact;
40
+ return _types6.Contact;
41
41
  }
42
42
  });
43
43
  _Object$defineProperty(exports, "ContactGroup", {
44
44
  enumerable: true,
45
45
  get: function get() {
46
- return _types7.ContactGroup;
46
+ return _types6.ContactGroup;
47
47
  }
48
48
  });
49
49
  _Object$defineProperty(exports, "ContactsClient", {
@@ -64,12 +64,6 @@ _Object$defineProperty(exports, "ICallHistory", {
64
64
  return _types.ICallHistory;
65
65
  }
66
66
  });
67
- _Object$defineProperty(exports, "ICallManager", {
68
- enumerable: true,
69
- get: function get() {
70
- return _types3.ICallManager;
71
- }
72
- });
73
67
  _Object$defineProperty(exports, "ICallSettings", {
74
68
  enumerable: true,
75
69
  get: function get() {
@@ -79,13 +73,13 @@ _Object$defineProperty(exports, "ICallSettings", {
79
73
  _Object$defineProperty(exports, "ICallingClient", {
80
74
  enumerable: true,
81
75
  get: function get() {
82
- return _types6.ICallingClient;
76
+ return _types5.ICallingClient;
83
77
  }
84
78
  });
85
79
  _Object$defineProperty(exports, "IContacts", {
86
80
  enumerable: true,
87
81
  get: function get() {
88
- return _types7.IContacts;
82
+ return _types6.IContacts;
89
83
  }
90
84
  });
91
85
  _Object$defineProperty(exports, "ILine", {
@@ -94,22 +88,22 @@ _Object$defineProperty(exports, "ILine", {
94
88
  return _types4.ILine;
95
89
  }
96
90
  });
97
- _Object$defineProperty(exports, "IRegistration", {
91
+ _Object$defineProperty(exports, "IVoicemail", {
98
92
  enumerable: true,
99
93
  get: function get() {
100
- return _types5.IRegistration;
94
+ return _types7.IVoicemail;
101
95
  }
102
96
  });
103
- _Object$defineProperty(exports, "IVoicemail", {
97
+ _Object$defineProperty(exports, "Voicemail", {
104
98
  enumerable: true,
105
99
  get: function get() {
106
- return _types8.IVoicemail;
100
+ return _Voicemail.Voicemail;
107
101
  }
108
102
  });
109
- _Object$defineProperty(exports, "Voicemail", {
103
+ _Object$defineProperty(exports, "VoicemailResponseEvent", {
110
104
  enumerable: true,
111
105
  get: function get() {
112
- return _Voicemail.Voicemail;
106
+ return _types7.VoicemailResponseEvent;
113
107
  }
114
108
  });
115
109
  _Object$defineProperty(exports, "VoicemailSetting", {
@@ -118,6 +112,36 @@ _Object$defineProperty(exports, "VoicemailSetting", {
118
112
  return _types2.VoicemailSetting;
119
113
  }
120
114
  });
115
+ _Object$defineProperty(exports, "createCallHistoryClient", {
116
+ enumerable: true,
117
+ get: function get() {
118
+ return _CallHistory.createCallHistoryClient;
119
+ }
120
+ });
121
+ _Object$defineProperty(exports, "createCallSettingsClient", {
122
+ enumerable: true,
123
+ get: function get() {
124
+ return _CallSettings.createCallSettingsClient;
125
+ }
126
+ });
127
+ _Object$defineProperty(exports, "createClient", {
128
+ enumerable: true,
129
+ get: function get() {
130
+ return _CallingClient.createClient;
131
+ }
132
+ });
133
+ _Object$defineProperty(exports, "createContactsClient", {
134
+ enumerable: true,
135
+ get: function get() {
136
+ return _ContactsClient.createContactsClient;
137
+ }
138
+ });
139
+ _Object$defineProperty(exports, "createVoicemailClient", {
140
+ enumerable: true,
141
+ get: function get() {
142
+ return _Voicemail.createVoicemailClient;
143
+ }
144
+ });
121
145
  var _CallHistory = require("./CallHistory/CallHistory");
122
146
  var _types = require("./CallHistory/types");
123
147
  var _CallSettings = require("./CallSettings/CallSettings");
@@ -125,10 +149,9 @@ var _types2 = require("./CallSettings/types");
125
149
  var _CallingClient = require("./CallingClient/CallingClient");
126
150
  var _types3 = require("./CallingClient/calling/types");
127
151
  var _types4 = require("./CallingClient/line/types");
128
- var _types5 = require("./CallingClient/registration/types");
129
- var _types6 = require("./CallingClient/types");
152
+ var _types5 = require("./CallingClient/types");
130
153
  var _ContactsClient = require("./Contacts/ContactsClient");
131
- var _types7 = require("./Contacts/types");
154
+ var _types6 = require("./Contacts/types");
132
155
  var _Voicemail = require("./Voicemail/Voicemail");
133
- var _types8 = require("./Voicemail/types");
156
+ var _types7 = require("./Voicemail/types");
134
157
  //# sourceMappingURL=api.js.map
package/dist/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_CallHistory","require","_types","_CallSettings","_types2","_CallingClient","_types3","_types4","_types5","_types6","_ContactsClient","_types7","_Voicemail","_types8"],"sources":["api.ts"],"sourcesContent":["/* eslint-disable import/no-unresolved */\nimport {CallHistory} from './CallHistory/CallHistory';\nimport {ICallHistory} from './CallHistory/types';\nimport {CallSettings} from './CallSettings/CallSettings';\nimport {\n ICallSettings,\n CallForwardSetting,\n VoicemailSetting,\n CallForwardAlwaysSetting,\n} from './CallSettings/types';\nimport {CallingClient} from './CallingClient/CallingClient';\nimport {ICallManager, ICall} from './CallingClient/calling/types';\nimport {ILine} from './CallingClient/line/types';\nimport {IRegistration} from './CallingClient/registration/types';\nimport {ICallingClient} from './CallingClient/types';\nimport {ContactsClient} from './Contacts/ContactsClient';\nimport {IContacts, Contact, ContactGroup} from './Contacts/types';\nimport {Voicemail} from './Voicemail/Voicemail';\nimport {IVoicemail} from './Voicemail/types';\n\n// Interfaces\nexport {\n IRegistration,\n ILine,\n ICallManager,\n ICall,\n ICallHistory,\n ICallSettings,\n ICallingClient,\n IContacts,\n IVoicemail,\n};\n\n// Classes\nexport {CallHistory, CallSettings, CallingClient, ContactsClient, Voicemail};\n\n// Types\nexport {ContactGroup, Contact, CallForwardSetting, CallForwardAlwaysSetting, VoicemailSetting};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAMA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA"}
1
+ {"version":3,"names":["_CallHistory","require","_types","_CallSettings","_types2","_CallingClient","_types3","_types4","_types5","_ContactsClient","_types6","_Voicemail","_types7"],"sources":["api.ts"],"sourcesContent":["/* eslint-disable import/no-unresolved */\nimport {CallHistory, createCallHistoryClient} from './CallHistory/CallHistory';\nimport {ICallHistory} from './CallHistory/types';\nimport {CallSettings, createCallSettingsClient} from './CallSettings/CallSettings';\nimport {\n ICallSettings,\n CallForwardSetting,\n VoicemailSetting,\n CallForwardAlwaysSetting,\n} from './CallSettings/types';\n\nimport {CallingClient, createClient} from './CallingClient/CallingClient';\nimport {ICall} from './CallingClient/calling/types';\nimport {ILine} from './CallingClient/line/types';\nimport {ICallingClient} from './CallingClient/types';\nimport {ContactsClient, createContactsClient} from './Contacts/ContactsClient';\nimport {IContacts, Contact, ContactGroup} from './Contacts/types';\nimport {Voicemail, createVoicemailClient} from './Voicemail/Voicemail';\nimport {IVoicemail, VoicemailResponseEvent} from './Voicemail/types';\n\n// Interfaces\nexport {ILine, ICall, ICallHistory, ICallSettings, ICallingClient, IContacts, IVoicemail};\n\n// Classes\nexport {CallHistory, CallSettings, CallingClient, ContactsClient, Voicemail};\n\n// Types\nexport {\n ContactGroup,\n Contact,\n CallForwardSetting,\n CallForwardAlwaysSetting,\n VoicemailSetting,\n VoicemailResponseEvent,\n};\n\n// Methods\nexport {\n createCallHistoryClient,\n createCallSettingsClient,\n createClient,\n createContactsClient,\n createVoicemailClient,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAOA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AACA,IAAAW,OAAA,GAAAX,OAAA"}
@@ -47,7 +47,6 @@ var _CallingDeviceError = require("../Errors/catalog/CallingDeviceError");
47
47
  var _constants = require("../CallingClient/constants");
48
48
  var _constants2 = require("./constants");
49
49
  var _SDKConnector = _interopRequireDefault(require("../SDKConnector"));
50
- var _types3 = require("../CallingClient/line/types");
51
50
  var _LineError = require("../Errors/catalog/LineError");
52
51
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
53
52
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -186,8 +185,8 @@ function updateErrorContext(errContext, type, message, clientError) {
186
185
  * @param file - File name from where error got reported.
187
186
  */
188
187
  function emitFinalFailure(emitterCb, loggerContext) {
189
- var clientError = (0, _LineError.createLineError)('', {}, _types.ERROR_TYPE.DEFAULT, _types3.LineStatus.INACTIVE);
190
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.SERVICE_UNAVAILABLE, 'An unknown error occurred. Wait a moment and try again. Please contact the administrator if the problem persists.', _types3.LineStatus.INACTIVE, clientError);
188
+ var clientError = (0, _LineError.createLineError)('', {}, _types.ERROR_TYPE.DEFAULT, _types2.RegistrationStatus.INACTIVE);
189
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.SERVICE_UNAVAILABLE, 'An unknown error occurred. Wait a moment and try again. Please contact the administrator if the problem persists.', _types2.RegistrationStatus.INACTIVE, clientError);
191
190
  emitterCb(clientError);
192
191
  }
193
192
 
@@ -223,7 +222,7 @@ function _handleRegistrationErrors() {
223
222
  return _regenerator.default.wrap(function _callee$(_context) {
224
223
  while (1) switch (_context.prev = _context.next) {
225
224
  case 0:
226
- lineError = (0, _LineError.createLineError)('', {}, _types.ERROR_TYPE.DEFAULT, _types3.LineStatus.INACTIVE);
225
+ lineError = (0, _LineError.createLineError)('', {}, _types.ERROR_TYPE.DEFAULT, _types2.RegistrationStatus.INACTIVE);
227
226
  errorCode = Number(err.statusCode);
228
227
  finalError = false;
229
228
  _Logger.default.warn("Status code: -> ".concat(errorCode), loggerContext);
@@ -234,17 +233,17 @@ function _handleRegistrationErrors() {
234
233
  // Return it to the Caller
235
234
  finalError = true;
236
235
  _Logger.default.warn("401 Unauthorized", loggerContext);
237
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.TOKEN_ERROR, 'User is unauthorized due to an expired token. Sign out, then sign back in.', _types3.LineStatus.INACTIVE, lineError);
236
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.TOKEN_ERROR, 'User is unauthorized due to an expired token. Sign out, then sign back in.', _types2.RegistrationStatus.INACTIVE, lineError);
238
237
  emitterCb(lineError, finalError);
239
238
  return _context.abrupt("break", 63);
240
239
  case 12:
241
240
  _Logger.default.warn("500 Internal Server Error", loggerContext);
242
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.SERVER_ERROR, 'An unknown error occurred while placing the request. Wait a moment and try again.', _types3.LineStatus.INACTIVE, lineError);
241
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.SERVER_ERROR, 'An unknown error occurred while placing the request. Wait a moment and try again.', _types2.RegistrationStatus.INACTIVE, lineError);
243
242
  emitterCb(lineError, finalError);
244
243
  return _context.abrupt("break", 63);
245
244
  case 16:
246
245
  _Logger.default.warn("503 Service Unavailable", loggerContext);
247
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.SERVICE_UNAVAILABLE, 'An error occurred on the server while processing the request. Wait a moment and try again.', _types3.LineStatus.INACTIVE, lineError);
246
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.SERVICE_UNAVAILABLE, 'An error occurred on the server while processing the request. Wait a moment and try again.', _types2.RegistrationStatus.INACTIVE, lineError);
248
247
  emitterCb(lineError, finalError);
249
248
  return _context.abrupt("break", 63);
250
249
  case 20:
@@ -255,7 +254,7 @@ function _handleRegistrationErrors() {
255
254
  break;
256
255
  }
257
256
  _Logger.default.warn('Error response has no body, throwing default error', loggerContext);
258
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, 'An unauthorized action has been received. This action has been blocked. Please contact the administrator if this persists.', _types3.LineStatus.INACTIVE, lineError);
257
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, 'An unauthorized action has been received. This action has been blocked. Please contact the administrator if this persists.', _types2.RegistrationStatus.INACTIVE, lineError);
259
258
  emitterCb(lineError, finalError);
260
259
  return _context.abrupt("return", finalError);
261
260
  case 27:
@@ -279,19 +278,19 @@ function _handleRegistrationErrors() {
279
278
  case 39:
280
279
  _errorMessage = 'User is not configured for WebRTC calling. Please contact the administrator to resolve this issue.';
281
280
  finalError = true;
282
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, _errorMessage, _types3.LineStatus.INACTIVE, lineError);
281
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, _errorMessage, _types2.RegistrationStatus.INACTIVE, lineError);
283
282
  _Logger.default.warn(_errorMessage, loggerContext);
284
283
  emitterCb(lineError, true);
285
284
  return _context.abrupt("break", 54);
286
285
  case 45:
287
286
  _errorMessage2 = 'An unknown error occurred while provisioning the device. Wait a moment and try again.';
288
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, _errorMessage2, _types3.LineStatus.INACTIVE, lineError);
287
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, _errorMessage2, _types2.RegistrationStatus.INACTIVE, lineError);
289
288
  _Logger.default.warn(_errorMessage2, loggerContext);
290
289
  emitterCb(lineError, finalError);
291
290
  return _context.abrupt("break", 54);
292
291
  case 50:
293
292
  _errorMessage3 = 'An unknown error occurred. Wait a moment and try again. Please contact the administrator if the problem persists.';
294
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, _errorMessage3, _types3.LineStatus.INACTIVE, lineError);
293
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.FORBIDDEN_ERROR, _errorMessage3, _types2.RegistrationStatus.INACTIVE, lineError);
295
294
  _Logger.default.warn(_errorMessage3, loggerContext);
296
295
  emitterCb(lineError, finalError);
297
296
  case 54:
@@ -299,11 +298,11 @@ function _handleRegistrationErrors() {
299
298
  case 55:
300
299
  finalError = true;
301
300
  _Logger.default.warn("404 Device Not Found", loggerContext);
302
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.NOT_FOUND, 'The client has unregistered. Please wait for the client to register before attempting the call. If error persists, sign out, sign back in and attempt the call.', _types3.LineStatus.INACTIVE, lineError);
301
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.NOT_FOUND, 'The client has unregistered. Please wait for the client to register before attempting the call. If error persists, sign out, sign back in and attempt the call.', _types2.RegistrationStatus.INACTIVE, lineError);
303
302
  emitterCb(lineError, finalError);
304
303
  return _context.abrupt("break", 63);
305
304
  case 60:
306
- updateLineErrorContext(loggerContext, _types.ERROR_TYPE.DEFAULT, 'Unknown error', _types3.LineStatus.INACTIVE, lineError);
305
+ updateLineErrorContext(loggerContext, _types.ERROR_TYPE.DEFAULT, 'Unknown error', _types2.RegistrationStatus.INACTIVE, lineError);
307
306
  _Logger.default.warn("Unknown Error", loggerContext);
308
307
  emitterCb(lineError, finalError);
309
308
  case 63:
@@ -337,7 +336,7 @@ function _handleCallingClientErrors() {
337
336
  return _regenerator.default.wrap(function _callee2$(_context2) {
338
337
  while (1) switch (_context2.prev = _context2.next) {
339
338
  case 0:
340
- clientError = (0, _CallingDeviceError.createClientError)('', {}, _types.ERROR_TYPE.DEFAULT, _types2.MobiusStatus.DEFAULT);
339
+ clientError = (0, _CallingDeviceError.createClientError)('', {}, _types.ERROR_TYPE.DEFAULT, _types2.RegistrationStatus.INACTIVE);
341
340
  errorCode = Number(err.statusCode);
342
341
  finalError = false;
343
342
  _Logger.default.warn("Status code: -> ".concat(errorCode), loggerContext);
@@ -1054,10 +1053,6 @@ function _resolveCallerIdDisplay() {
1054
1053
  });
1055
1054
  displayResult.avatarSrc = photo ? photo.value : 'unknown';
1056
1055
  displayResult.id = scimResource.id;
1057
- _Logger.default.info("Extracted details:- name: ".concat(displayResult.name, " , number: ").concat(displayResult.num, ", photo: ").concat(displayResult.avatarSrc, ", id: ").concat(displayResult.id), {
1058
- file: _constants.UTILS_FILE,
1059
- method: 'resolveCallerIdDisplay'
1060
- });
1061
1056
  }
1062
1057
  return _context7.abrupt("return", displayResult);
1063
1058
  case 15: