@webex/webex-core 2.59.2 → 2.59.3-next.1

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 (189) hide show
  1. package/.eslintrc.js +6 -6
  2. package/README.md +79 -79
  3. package/babel.config.js +3 -3
  4. package/dist/config.js +24 -24
  5. package/dist/config.js.map +1 -1
  6. package/dist/credentials-config.js +56 -56
  7. package/dist/credentials-config.js.map +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/interceptors/auth.js +28 -28
  10. package/dist/interceptors/auth.js.map +1 -1
  11. package/dist/interceptors/default-options.js +24 -24
  12. package/dist/interceptors/default-options.js.map +1 -1
  13. package/dist/interceptors/embargo.js +9 -9
  14. package/dist/interceptors/embargo.js.map +1 -1
  15. package/dist/interceptors/network-timing.js +19 -19
  16. package/dist/interceptors/network-timing.js.map +1 -1
  17. package/dist/interceptors/payload-transformer.js +19 -19
  18. package/dist/interceptors/payload-transformer.js.map +1 -1
  19. package/dist/interceptors/rate-limit.js +40 -40
  20. package/dist/interceptors/rate-limit.js.map +1 -1
  21. package/dist/interceptors/redirect.js +13 -13
  22. package/dist/interceptors/redirect.js.map +1 -1
  23. package/dist/interceptors/request-event.js +23 -23
  24. package/dist/interceptors/request-event.js.map +1 -1
  25. package/dist/interceptors/request-logger.js +13 -13
  26. package/dist/interceptors/request-logger.js.map +1 -1
  27. package/dist/interceptors/request-timing.js +23 -23
  28. package/dist/interceptors/request-timing.js.map +1 -1
  29. package/dist/interceptors/response-logger.js +19 -19
  30. package/dist/interceptors/response-logger.js.map +1 -1
  31. package/dist/interceptors/user-agent.js +29 -29
  32. package/dist/interceptors/user-agent.js.map +1 -1
  33. package/dist/interceptors/webex-tracking-id.js +15 -15
  34. package/dist/interceptors/webex-tracking-id.js.map +1 -1
  35. package/dist/interceptors/webex-user-agent.js +13 -13
  36. package/dist/interceptors/webex-user-agent.js.map +1 -1
  37. package/dist/lib/batcher.js +83 -83
  38. package/dist/lib/batcher.js.map +1 -1
  39. package/dist/lib/credentials/credentials.js +103 -103
  40. package/dist/lib/credentials/credentials.js.map +1 -1
  41. package/dist/lib/credentials/grant-errors.js +17 -17
  42. package/dist/lib/credentials/grant-errors.js.map +1 -1
  43. package/dist/lib/credentials/index.js +2 -2
  44. package/dist/lib/credentials/index.js.map +1 -1
  45. package/dist/lib/credentials/scope.js +11 -11
  46. package/dist/lib/credentials/scope.js.map +1 -1
  47. package/dist/lib/credentials/token-collection.js +2 -2
  48. package/dist/lib/credentials/token-collection.js.map +1 -1
  49. package/dist/lib/credentials/token.js +145 -145
  50. package/dist/lib/credentials/token.js.map +1 -1
  51. package/dist/lib/page.js +49 -49
  52. package/dist/lib/page.js.map +1 -1
  53. package/dist/lib/services/constants.js.map +1 -1
  54. package/dist/lib/services/index.js +2 -2
  55. package/dist/lib/services/index.js.map +1 -1
  56. package/dist/lib/services/interceptors/server-error.js +9 -9
  57. package/dist/lib/services/interceptors/server-error.js.map +1 -1
  58. package/dist/lib/services/interceptors/service.js +24 -24
  59. package/dist/lib/services/interceptors/service.js.map +1 -1
  60. package/dist/lib/services/metrics.js.map +1 -1
  61. package/dist/lib/services/service-catalog.js +104 -104
  62. package/dist/lib/services/service-catalog.js.map +1 -1
  63. package/dist/lib/services/service-fed-ramp.js.map +1 -1
  64. package/dist/lib/services/service-host.js +134 -134
  65. package/dist/lib/services/service-host.js.map +1 -1
  66. package/dist/lib/services/service-registry.js +175 -175
  67. package/dist/lib/services/service-registry.js.map +1 -1
  68. package/dist/lib/services/service-state.js +38 -38
  69. package/dist/lib/services/service-state.js.map +1 -1
  70. package/dist/lib/services/service-url.js +31 -31
  71. package/dist/lib/services/service-url.js.map +1 -1
  72. package/dist/lib/services/services.js +245 -245
  73. package/dist/lib/services/services.js.map +1 -1
  74. package/dist/lib/stateless-webex-plugin.js +28 -28
  75. package/dist/lib/stateless-webex-plugin.js.map +1 -1
  76. package/dist/lib/storage/decorators.js +27 -27
  77. package/dist/lib/storage/decorators.js.map +1 -1
  78. package/dist/lib/storage/errors.js +4 -4
  79. package/dist/lib/storage/errors.js.map +1 -1
  80. package/dist/lib/storage/index.js.map +1 -1
  81. package/dist/lib/storage/make-webex-plugin-store.js +44 -44
  82. package/dist/lib/storage/make-webex-plugin-store.js.map +1 -1
  83. package/dist/lib/storage/make-webex-store.js +40 -40
  84. package/dist/lib/storage/make-webex-store.js.map +1 -1
  85. package/dist/lib/storage/memory-store-adapter.js +9 -9
  86. package/dist/lib/storage/memory-store-adapter.js.map +1 -1
  87. package/dist/lib/webex-core-plugin-mixin.js +13 -13
  88. package/dist/lib/webex-core-plugin-mixin.js.map +1 -1
  89. package/dist/lib/webex-http-error.js +9 -9
  90. package/dist/lib/webex-http-error.js.map +1 -1
  91. package/dist/lib/webex-internal-core-plugin-mixin.js +13 -13
  92. package/dist/lib/webex-internal-core-plugin-mixin.js.map +1 -1
  93. package/dist/lib/webex-plugin.js +36 -36
  94. package/dist/lib/webex-plugin.js.map +1 -1
  95. package/dist/plugins/logger.js +9 -9
  96. package/dist/plugins/logger.js.map +1 -1
  97. package/dist/webex-core.js +104 -104
  98. package/dist/webex-core.js.map +1 -1
  99. package/dist/webex-internal-core.js +12 -12
  100. package/dist/webex-internal-core.js.map +1 -1
  101. package/jest.config.js +3 -3
  102. package/package.json +20 -19
  103. package/process +1 -1
  104. package/src/config.js +90 -90
  105. package/src/credentials-config.js +212 -212
  106. package/src/index.js +62 -62
  107. package/src/interceptors/auth.js +186 -186
  108. package/src/interceptors/default-options.js +55 -55
  109. package/src/interceptors/embargo.js +43 -43
  110. package/src/interceptors/network-timing.js +54 -54
  111. package/src/interceptors/payload-transformer.js +55 -55
  112. package/src/interceptors/rate-limit.js +169 -169
  113. package/src/interceptors/redirect.js +106 -106
  114. package/src/interceptors/request-event.js +93 -93
  115. package/src/interceptors/request-logger.js +78 -78
  116. package/src/interceptors/request-timing.js +65 -65
  117. package/src/interceptors/response-logger.js +98 -98
  118. package/src/interceptors/user-agent.js +77 -77
  119. package/src/interceptors/webex-tracking-id.js +73 -73
  120. package/src/interceptors/webex-user-agent.js +79 -79
  121. package/src/lib/batcher.js +307 -307
  122. package/src/lib/credentials/credentials.js +552 -552
  123. package/src/lib/credentials/grant-errors.js +92 -92
  124. package/src/lib/credentials/index.js +16 -16
  125. package/src/lib/credentials/scope.js +34 -34
  126. package/src/lib/credentials/token-collection.js +17 -17
  127. package/src/lib/credentials/token.js +559 -559
  128. package/src/lib/page.js +159 -159
  129. package/src/lib/services/constants.js +9 -9
  130. package/src/lib/services/index.js +26 -26
  131. package/src/lib/services/interceptors/server-error.js +48 -48
  132. package/src/lib/services/interceptors/service.js +101 -101
  133. package/src/lib/services/metrics.js +4 -4
  134. package/src/lib/services/service-catalog.js +435 -435
  135. package/src/lib/services/service-fed-ramp.js +4 -4
  136. package/src/lib/services/service-host.js +267 -267
  137. package/src/lib/services/service-registry.js +465 -465
  138. package/src/lib/services/service-state.js +78 -78
  139. package/src/lib/services/service-url.js +124 -124
  140. package/src/lib/services/services.js +1018 -1018
  141. package/src/lib/stateless-webex-plugin.js +98 -98
  142. package/src/lib/storage/decorators.js +220 -220
  143. package/src/lib/storage/errors.js +15 -15
  144. package/src/lib/storage/index.js +10 -10
  145. package/src/lib/storage/make-webex-plugin-store.js +211 -211
  146. package/src/lib/storage/make-webex-store.js +140 -140
  147. package/src/lib/storage/memory-store-adapter.js +79 -79
  148. package/src/lib/webex-core-plugin-mixin.js +114 -114
  149. package/src/lib/webex-http-error.js +61 -61
  150. package/src/lib/webex-internal-core-plugin-mixin.js +107 -107
  151. package/src/lib/webex-plugin.js +222 -222
  152. package/src/plugins/logger.js +60 -60
  153. package/src/webex-core.js +745 -745
  154. package/src/webex-internal-core.js +46 -46
  155. package/test/integration/spec/credentials/credentials.js +139 -139
  156. package/test/integration/spec/credentials/token.js +102 -102
  157. package/test/integration/spec/services/service-catalog.js +838 -838
  158. package/test/integration/spec/services/services.js +1221 -1221
  159. package/test/integration/spec/webex-core.js +178 -178
  160. package/test/unit/spec/_setup.js +44 -44
  161. package/test/unit/spec/credentials/credentials.js +1017 -1017
  162. package/test/unit/spec/credentials/token.js +441 -441
  163. package/test/unit/spec/interceptors/auth.js +521 -521
  164. package/test/unit/spec/interceptors/default-options.js +84 -84
  165. package/test/unit/spec/interceptors/embargo.js +144 -144
  166. package/test/unit/spec/interceptors/network-timing.js +49 -49
  167. package/test/unit/spec/interceptors/payload-transformer.js +155 -155
  168. package/test/unit/spec/interceptors/rate-limit.js +302 -302
  169. package/test/unit/spec/interceptors/redirect.js +102 -102
  170. package/test/unit/spec/interceptors/request-timing.js +92 -92
  171. package/test/unit/spec/interceptors/user-agent.js +76 -76
  172. package/test/unit/spec/interceptors/webex-tracking-id.js +76 -76
  173. package/test/unit/spec/interceptors/webex-user-agent.js +159 -159
  174. package/test/unit/spec/lib/batcher.js +330 -330
  175. package/test/unit/spec/lib/page.js +148 -148
  176. package/test/unit/spec/lib/webex-plugin.js +48 -48
  177. package/test/unit/spec/services/interceptors/server-error.js +204 -204
  178. package/test/unit/spec/services/interceptors/service.js +188 -188
  179. package/test/unit/spec/services/service-catalog.js +194 -194
  180. package/test/unit/spec/services/service-host.js +260 -260
  181. package/test/unit/spec/services/service-registry.js +747 -747
  182. package/test/unit/spec/services/service-state.js +60 -60
  183. package/test/unit/spec/services/service-url.js +258 -258
  184. package/test/unit/spec/services/services.js +348 -348
  185. package/test/unit/spec/storage/persist.js +50 -50
  186. package/test/unit/spec/storage/storage-adapter.js +12 -12
  187. package/test/unit/spec/storage/wait-for-value.js +81 -81
  188. package/test/unit/spec/webex-core.js +253 -253
  189. package/test/unit/spec/webex-internal-core.js +91 -91
@@ -39,29 +39,29 @@ var CLUSTER_SERVICE = process.env.WEBEX_CONVERSATION_CLUSTER_SERVICE || DEFAULT_
39
39
  var DEFAULT_CLUSTER_IDENTIFIER = process.env.WEBEX_CONVERSATION_DEFAULT_CLUSTER || "".concat(DEFAULT_CLUSTER, ":").concat(CLUSTER_SERVICE);
40
40
 
41
41
  /* eslint-disable no-underscore-dangle */
42
- /**
43
- * @class
42
+ /**
43
+ * @class
44
44
  */
45
45
  var Services = _webexPlugin.default.extend({
46
46
  namespace: 'Services',
47
- /**
48
- * The {@link WeakMap} of {@link ServiceRegistry} class instances that are
49
- * keyed with WebexCore instances.
50
- *
51
- * @instance
52
- * @type {WeakMap<WebexCore, ServiceRegistry>}
53
- * @private
54
- * @memberof Services
47
+ /**
48
+ * The {@link WeakMap} of {@link ServiceRegistry} class instances that are
49
+ * keyed with WebexCore instances.
50
+ *
51
+ * @instance
52
+ * @type {WeakMap<WebexCore, ServiceRegistry>}
53
+ * @private
54
+ * @memberof Services
55
55
  */
56
56
  registries: new _weakMap.default(),
57
- /**
58
- * The {@link WeakMap} of {@link ServiceState} class instances that are
59
- * keyed with WebexCore instances.
60
- *
61
- * @instance
62
- * @type {WeakMap<WebexCore, ServiceState>}
63
- * @private
64
- * @memberof Services
57
+ /**
58
+ * The {@link WeakMap} of {@link ServiceState} class instances that are
59
+ * keyed with WebexCore instances.
60
+ *
61
+ * @instance
62
+ * @type {WeakMap<WebexCore, ServiceState>}
63
+ * @private
64
+ * @memberof Services
65
65
  */
66
66
  states: new _weakMap.default(),
67
67
  props: {
@@ -69,113 +69,113 @@ var Services = _webexPlugin.default.extend({
69
69
  },
70
70
  _catalogs: new _weakMap.default(),
71
71
  _serviceUrls: null,
72
- /**
73
- * Get the registry associated with this webex instance.
74
- *
75
- * @private
76
- * @memberof Services
77
- * @returns {ServiceRegistry} - The associated {@link ServiceRegistry}.
72
+ /**
73
+ * Get the registry associated with this webex instance.
74
+ *
75
+ * @private
76
+ * @memberof Services
77
+ * @returns {ServiceRegistry} - The associated {@link ServiceRegistry}.
78
78
  */
79
79
  getRegistry: function getRegistry() {
80
80
  return this.registries.get(this.webex);
81
81
  },
82
- /**
83
- * Get the state associated with this webex instance.
84
- *
85
- * @private
86
- * @memberof Services
87
- * @returns {ServiceState} - The associated {@link ServiceState}.
82
+ /**
83
+ * Get the state associated with this webex instance.
84
+ *
85
+ * @private
86
+ * @memberof Services
87
+ * @returns {ServiceState} - The associated {@link ServiceState}.
88
88
  */
89
89
  getState: function getState() {
90
90
  return this.states.get(this.webex);
91
91
  },
92
- /**
93
- * @private
94
- * Get the current catalog based on the assocaited
95
- * webex instance.
96
- * @returns {ServiceCatalog}
92
+ /**
93
+ * @private
94
+ * Get the current catalog based on the assocaited
95
+ * webex instance.
96
+ * @returns {ServiceCatalog}
97
97
  */
98
98
  _getCatalog: function _getCatalog() {
99
99
  return this._catalogs.get(this.webex);
100
100
  },
101
- /**
102
- * Get a service url from the current services list by name
103
- * from the associated instance catalog.
104
- * @param {string} name
105
- * @param {boolean} [priorityHost]
106
- * @param {string} [serviceGroup]
107
- * @returns {string|undefined}
101
+ /**
102
+ * Get a service url from the current services list by name
103
+ * from the associated instance catalog.
104
+ * @param {string} name
105
+ * @param {boolean} [priorityHost]
106
+ * @param {string} [serviceGroup]
107
+ * @returns {string|undefined}
108
108
  */
109
109
  get: function get(name, priorityHost, serviceGroup) {
110
110
  var catalog = this._getCatalog();
111
111
  return catalog.get(name, priorityHost, serviceGroup);
112
112
  },
113
- /**
114
- * Determine if the catalog contains a specific service
115
- *
116
- * @param {string} serviceName - The service name to validate.
117
- * @returns {boolean} - True if the service exists.
113
+ /**
114
+ * Determine if the catalog contains a specific service
115
+ *
116
+ * @param {string} serviceName - The service name to validate.
117
+ * @returns {boolean} - True if the service exists.
118
118
  */
119
119
  hasService: function hasService(serviceName) {
120
120
  return !!this.get(serviceName);
121
121
  },
122
- /**
123
- * Determine if a whilelist exists in the service catalog.
124
- *
125
- * @returns {boolean} - True if a allowed domains list exists.
122
+ /**
123
+ * Determine if a whilelist exists in the service catalog.
124
+ *
125
+ * @returns {boolean} - True if a allowed domains list exists.
126
126
  */
127
127
  hasAllowedDomains: function hasAllowedDomains() {
128
128
  var catalog = this._getCatalog();
129
129
  return catalog.getAllowedDomains().length > 0;
130
130
  },
131
- /**
132
- * Generate a service catalog as an object from
133
- * the associated instance catalog.
134
- * @param {boolean} [priorityHost] - use highest priority host if set to `true`
135
- * @param {string} [serviceGroup]
136
- * @returns {Record<string, string>}
131
+ /**
132
+ * Generate a service catalog as an object from
133
+ * the associated instance catalog.
134
+ * @param {boolean} [priorityHost] - use highest priority host if set to `true`
135
+ * @param {string} [serviceGroup]
136
+ * @returns {Record<string, string>}
137
137
  */
138
138
  list: function list(priorityHost, serviceGroup) {
139
139
  var catalog = this._getCatalog();
140
140
  return catalog.list(priorityHost, serviceGroup);
141
141
  },
142
- /**
143
- * Mark a priority host service url as failed.
144
- * This will mark the host associated with the
145
- * `ServiceUrl` to be removed from the its
146
- * respective host array, and then return the next
147
- * viable host from the `ServiceUrls` host array,
148
- * or the `ServiceUrls` default url if no other priority
149
- * hosts are available, or if `noPriorityHosts` is set to
150
- * `true`.
151
- * @param {string} url
152
- * @param {boolean} noPriorityHosts
153
- * @returns {string}
142
+ /**
143
+ * Mark a priority host service url as failed.
144
+ * This will mark the host associated with the
145
+ * `ServiceUrl` to be removed from the its
146
+ * respective host array, and then return the next
147
+ * viable host from the `ServiceUrls` host array,
148
+ * or the `ServiceUrls` default url if no other priority
149
+ * hosts are available, or if `noPriorityHosts` is set to
150
+ * `true`.
151
+ * @param {string} url
152
+ * @param {boolean} noPriorityHosts
153
+ * @returns {string}
154
154
  */
155
155
  markFailedUrl: function markFailedUrl(url, noPriorityHosts) {
156
156
  var catalog = this._getCatalog();
157
157
  return catalog.markFailedUrl(url, noPriorityHosts);
158
158
  },
159
- /**
160
- * saves all the services from the pre and post catalog service
161
- * @param {Object} serviceUrls
162
- * @returns {void}
159
+ /**
160
+ * saves all the services from the pre and post catalog service
161
+ * @param {Object} serviceUrls
162
+ * @returns {void}
163
163
  */
164
164
  _updateServiceUrls: function _updateServiceUrls(serviceUrls) {
165
165
  this._serviceUrls = _objectSpread(_objectSpread({}, this._serviceUrls), serviceUrls);
166
166
  },
167
- /**
168
- * Update a list of `serviceUrls` to the most current
169
- * catalog via the defined `discoveryUrl` then returns the current
170
- * list of services.
171
- * @param {object} [param]
172
- * @param {string} [param.from] - This accepts `limited` or `signin`
173
- * @param {object} [param.query] - This accepts `email`, `orgId` or `userId` key values
174
- * @param {string} [param.query.email] - must be a standard-format email
175
- * @param {string} [param.query.orgId] - must be an organization id
176
- * @param {string} [param.query.userId] - must be a user id
177
- * @param {string} [param.token] - used for signin catalog
178
- * @returns {Promise<object>}
167
+ /**
168
+ * Update a list of `serviceUrls` to the most current
169
+ * catalog via the defined `discoveryUrl` then returns the current
170
+ * list of services.
171
+ * @param {object} [param]
172
+ * @param {string} [param.from] - This accepts `limited` or `signin`
173
+ * @param {object} [param.query] - This accepts `email`, `orgId` or `userId` key values
174
+ * @param {string} [param.query.email] - must be a standard-format email
175
+ * @param {string} [param.query.orgId] - must be an organization id
176
+ * @param {string} [param.query.userId] - must be a user id
177
+ * @param {string} [param.token] - used for signin catalog
178
+ * @returns {Promise<object>}
179
179
  */
180
180
  updateServices: function updateServices() {
181
181
  var _this = this;
@@ -236,28 +236,28 @@ var Services = _webexPlugin.default.extend({
236
236
  return _promise.default.reject(error);
237
237
  });
238
238
  },
239
- /**
240
- * User validation parameter transfer object for {@link validateUser}.
241
- * @param {object} ValidateUserPTO
242
- * @property {string} ValidateUserPTO.email - The email of the user.
243
- * @property {string} [ValidateUserPTO.reqId] - The activation requester.
244
- * @property {object} [ValidateUserPTO.activationOptions] - Extra options to pass when sending the activation
245
- * @property {object} [ValidateUserPTO.preloginUserId] - The prelogin user id to set when sending the activation.
246
- */
247
- /**
248
- * User validation return transfer object for {@link validateUser}.
249
- * @param {object} ValidateUserRTO
250
- * @property {boolean} ValidateUserRTO.activated - If the user is activated.
251
- * @property {boolean} ValidateUserRTO.exists - If the user exists.
252
- * @property {string} ValidateUserRTO.details - A descriptive status message.
253
- * @property {object} ValidateUserRTO.user - **License** service user object.
254
- */
255
- /**
256
- * Validate if a user is activated and update the service catalogs as needed
257
- * based on the user's activation status.
258
- *
259
- * @param {ValidateUserPTO} - The parameter transfer object.
260
- * @returns {ValidateUserRTO} - The return transfer object.
239
+ /**
240
+ * User validation parameter transfer object for {@link validateUser}.
241
+ * @param {object} ValidateUserPTO
242
+ * @property {string} ValidateUserPTO.email - The email of the user.
243
+ * @property {string} [ValidateUserPTO.reqId] - The activation requester.
244
+ * @property {object} [ValidateUserPTO.activationOptions] - Extra options to pass when sending the activation
245
+ * @property {object} [ValidateUserPTO.preloginUserId] - The prelogin user id to set when sending the activation.
246
+ */
247
+ /**
248
+ * User validation return transfer object for {@link validateUser}.
249
+ * @param {object} ValidateUserRTO
250
+ * @property {boolean} ValidateUserRTO.activated - If the user is activated.
251
+ * @property {boolean} ValidateUserRTO.exists - If the user exists.
252
+ * @property {string} ValidateUserRTO.details - A descriptive status message.
253
+ * @property {object} ValidateUserRTO.user - **License** service user object.
254
+ */
255
+ /**
256
+ * Validate if a user is activated and update the service catalogs as needed
257
+ * based on the user's activation status.
258
+ *
259
+ * @param {ValidateUserPTO} - The parameter transfer object.
260
+ * @returns {ValidateUserRTO} - The return transfer object.
261
261
  */
262
262
  validateUser: function validateUser(_ref2) {
263
263
  var _this2 = this;
@@ -382,10 +382,10 @@ var Services = _webexPlugin.default.extend({
382
382
  return _promise.default.reject(response);
383
383
  });
384
384
  },
385
- /**
386
- * Get user meeting preferences (preferred webex site).
387
- *
388
- * @returns {object} - User Information including user preferrences .
385
+ /**
386
+ * Get user meeting preferences (preferred webex site).
387
+ *
388
+ * @returns {object} - User Information including user preferrences .
389
389
  */
390
390
  getMeetingPreferences: function getMeetingPreferences() {
391
391
  var _this3 = this;
@@ -401,10 +401,10 @@ var Services = _webexPlugin.default.extend({
401
401
  // resolve successfully even if request failed
402
402
  });
403
403
  },
404
- /**
405
- * Fetches client region info such as countryCode and timezone.
406
- *
407
- * @returns {object} - The region info object.
404
+ /**
405
+ * Fetches client region info such as countryCode and timezone.
406
+ *
407
+ * @returns {object} - The region info object.
408
408
  */
409
409
  fetchClientRegionInfo: function fetchClientRegionInfo() {
410
410
  var _this4 = this;
@@ -423,20 +423,20 @@ var Services = _webexPlugin.default.extend({
423
423
  // resolve successfully even if request failed
424
424
  });
425
425
  },
426
- /**
427
- * User activation parameter transfer object for {@link sendUserActivation}.
428
- * @typedef {object} SendUserActivationPTO
429
- * @property {string} SendUserActivationPTO.email - The email of the user.
430
- * @property {string} SendUserActivationPTO.reqId - The activation requester.
431
- * @property {string} SendUserActivationPTO.token - The client auth token.
432
- * @property {object} SendUserActivationPTO.activationOptions - Extra options to pass when sending the activation.
433
- * @property {object} SendUserActivationPTO.preloginUserId - The prelogin user id to set when sending the activation.
434
- */
435
- /**
436
- * Send a request to activate a user using a client token.
437
- *
438
- * @param {SendUserActivationPTO} - The Parameter transfer object.
439
- * @returns {LicenseDTO} - The DTO returned from the **License** service.
426
+ /**
427
+ * User activation parameter transfer object for {@link sendUserActivation}.
428
+ * @typedef {object} SendUserActivationPTO
429
+ * @property {string} SendUserActivationPTO.email - The email of the user.
430
+ * @property {string} SendUserActivationPTO.reqId - The activation requester.
431
+ * @property {string} SendUserActivationPTO.token - The client auth token.
432
+ * @property {object} SendUserActivationPTO.activationOptions - Extra options to pass when sending the activation.
433
+ * @property {object} SendUserActivationPTO.preloginUserId - The prelogin user id to set when sending the activation.
434
+ */
435
+ /**
436
+ * Send a request to activate a user using a client token.
437
+ *
438
+ * @param {SendUserActivationPTO} - The Parameter transfer object.
439
+ * @returns {LicenseDTO} - The DTO returned from the **License** service.
440
440
  */
441
441
  sendUserActivation: function sendUserActivation(_ref5) {
442
442
  var _this5 = this;
@@ -485,14 +485,14 @@ var Services = _webexPlugin.default.extend({
485
485
  return _promise.default.reject(error);
486
486
  });
487
487
  },
488
- /**
489
- * simplified method to update the preauth catalog via email
490
- *
491
- * @param {object} query
492
- * @param {string} query.email - A standard format email.
493
- * @param {string} query.orgId - The user's OrgId.
494
- * @param {boolean} forceRefresh - Boolean to bypass u2c cache control header
495
- * @returns {Promise<void>}
488
+ /**
489
+ * simplified method to update the preauth catalog via email
490
+ *
491
+ * @param {object} query
492
+ * @param {string} query.email - A standard format email.
493
+ * @param {string} query.orgId - The user's OrgId.
494
+ * @param {boolean} forceRefresh - Boolean to bypass u2c cache control header
495
+ * @returns {Promise<void>}
496
496
  */
497
497
  collectPreauthCatalog: function collectPreauthCatalog(query) {
498
498
  var forceRefresh = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -511,12 +511,12 @@ var Services = _webexPlugin.default.extend({
511
511
  forceRefresh: forceRefresh
512
512
  });
513
513
  },
514
- /**
515
- * simplified method to update the signin catalog via email and token
516
- * @param {object} param
517
- * @param {string} param.email - must be a standard-format email
518
- * @param {string} param.token - must be a client token
519
- * @returns {Promise<void>}
514
+ /**
515
+ * simplified method to update the signin catalog via email and token
516
+ * @param {object} param
517
+ * @param {string} param.email - must be a standard-format email
518
+ * @param {string} param.token - must be a client token
519
+ * @returns {Promise<void>}
520
520
  */
521
521
  collectSigninCatalog: function collectSigninCatalog() {
522
522
  var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
@@ -538,10 +538,10 @@ var Services = _webexPlugin.default.extend({
538
538
  forceRefresh: forceRefresh
539
539
  });
540
540
  },
541
- /**
542
- * Updates credentials config to utilize u2c catalog
543
- * urls.
544
- * @returns {void}
541
+ /**
542
+ * Updates credentials config to utilize u2c catalog
543
+ * urls.
544
+ * @returns {void}
545
545
  */
546
546
  updateCredentialsConfig: function updateCredentialsConfig() {
547
547
  var _this$list = this.list(true),
@@ -568,12 +568,12 @@ var Services = _webexPlugin.default.extend({
568
568
  });
569
569
  }
570
570
  },
571
- /**
572
- * Wait until the service catalog is available,
573
- * or reject afte ra timeout of 60 seconds.
574
- * @param {string} serviceGroup
575
- * @param {number} [timeout] - in seconds
576
- * @returns {Promise<void>}
571
+ /**
572
+ * Wait until the service catalog is available,
573
+ * or reject afte ra timeout of 60 seconds.
574
+ * @param {string} serviceGroup
575
+ * @param {number} [timeout] - in seconds
576
+ * @returns {Promise<void>}
577
577
  */
578
578
  waitForCatalog: function waitForCatalog(serviceGroup, timeout) {
579
579
  var catalog = this._getCatalog();
@@ -586,20 +586,20 @@ var Services = _webexPlugin.default.extend({
586
586
  }
587
587
  return catalog.waitForCatalog(serviceGroup, timeout);
588
588
  },
589
- /**
590
- * Service waiting parameter transfer object for {@link waitForService}.
591
- *
592
- * @typedef {object} WaitForServicePTO
593
- * @property {string} [WaitForServicePTO.name] - The service name.
594
- * @property {string} [WaitForServicePTO.url] - The service url.
595
- * @property {string} [WaitForServicePTO.timeout] - wait duration in seconds.
596
- */
597
- /**
598
- * Wait until the service has been ammended to any service catalog. This
599
- * method prioritizes the service name over the service url when searching.
600
- *
601
- * @param {WaitForServicePTO} - The parameter transfer object.
602
- * @returns {Promise<string>} - Resolves to the priority host of a service.
589
+ /**
590
+ * Service waiting parameter transfer object for {@link waitForService}.
591
+ *
592
+ * @typedef {object} WaitForServicePTO
593
+ * @property {string} [WaitForServicePTO.name] - The service name.
594
+ * @property {string} [WaitForServicePTO.url] - The service url.
595
+ * @property {string} [WaitForServicePTO.timeout] - wait duration in seconds.
596
+ */
597
+ /**
598
+ * Wait until the service has been ammended to any service catalog. This
599
+ * method prioritizes the service name over the service url when searching.
600
+ *
601
+ * @param {WaitForServicePTO} - The parameter transfer object.
602
+ * @returns {Promise<string>} - Resolves to the priority host of a service.
603
603
  */
604
604
  waitForService: function waitForService(_ref8) {
605
605
  var _this6 = this;
@@ -658,12 +658,12 @@ var Services = _webexPlugin.default.extend({
658
658
  });
659
659
  });
660
660
  },
661
- /**
662
- * @private
663
- * Organize a received hostmap from a service
664
- * catalog endpoint.
665
- * @param {object} serviceHostmap
666
- * @returns {object}
661
+ /**
662
+ * @private
663
+ * Organize a received hostmap from a service
664
+ * catalog endpoint.
665
+ * @param {object} serviceHostmap
666
+ * @returns {object}
667
667
  */
668
668
  _formatReceivedHostmap: function _formatReceivedHostmap(serviceHostmap) {
669
669
  // map the host catalog items to a formatted hostmap
@@ -722,35 +722,35 @@ var Services = _webexPlugin.default.extend({
722
722
  this._updateServiceUrls(serviceHostmap.serviceLinks);
723
723
  return formattedHostmap;
724
724
  },
725
- /**
726
- * Get the clusterId associated with a URL string.
727
- * @param {string} url
728
- * @returns {string} - Cluster ID of url provided
725
+ /**
726
+ * Get the clusterId associated with a URL string.
727
+ * @param {string} url
728
+ * @returns {string} - Cluster ID of url provided
729
729
  */
730
730
  getClusterId: function getClusterId(url) {
731
731
  var catalog = this._getCatalog();
732
732
  return catalog.findClusterId(url);
733
733
  },
734
- /**
735
- * Get a service value from a provided clusterId. This method will
736
- * return an object containing both the name and url of a found service.
737
- * @param {object} params
738
- * @param {string} params.clusterId - clusterId of found service
739
- * @param {boolean} [params.priorityHost] - returns priority host url if true
740
- * @param {string} [params.serviceGroup] - specify service group
741
- * @returns {object} service
742
- * @returns {string} service.name
743
- * @returns {string} service.url
734
+ /**
735
+ * Get a service value from a provided clusterId. This method will
736
+ * return an object containing both the name and url of a found service.
737
+ * @param {object} params
738
+ * @param {string} params.clusterId - clusterId of found service
739
+ * @param {boolean} [params.priorityHost] - returns priority host url if true
740
+ * @param {string} [params.serviceGroup] - specify service group
741
+ * @returns {object} service
742
+ * @returns {string} service.name
743
+ * @returns {string} service.url
744
744
  */
745
745
  getServiceFromClusterId: function getServiceFromClusterId(params) {
746
746
  var catalog = this._getCatalog();
747
747
  return catalog.findServiceFromClusterId(params);
748
748
  },
749
- /**
750
- * @param {String} cluster the cluster containing the id
751
- * @param {UUID} [id] the id of the conversation.
752
- * If empty, just return the base URL.
753
- * @returns {String} url of the service
749
+ /**
750
+ * @param {String} cluster the cluster containing the id
751
+ * @param {UUID} [id] the id of the conversation.
752
+ * If empty, just return the base URL.
753
+ * @returns {String} url of the service
754
754
  */
755
755
  getServiceUrlFromClusterId: function getServiceUrlFromClusterId() {
756
756
  var _ref9 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
@@ -772,15 +772,15 @@ var Services = _webexPlugin.default.extend({
772
772
  }
773
773
  return url;
774
774
  },
775
- /**
776
- * Get a service object from a service url if the service url exists in the
777
- * catalog.
778
- *
779
- * @param {string} url - The url to be validated.
780
- * @returns {object} - Service object.
781
- * @returns {object.name} - The name of the service found.
782
- * @returns {object.priorityUrl} - The priority url of the found service.
783
- * @returns {object.defaultUrl} - The default url of the found service.
775
+ /**
776
+ * Get a service object from a service url if the service url exists in the
777
+ * catalog.
778
+ *
779
+ * @param {string} url - The url to be validated.
780
+ * @returns {object} - Service object.
781
+ * @returns {object.name} - The name of the service found.
782
+ * @returns {object.priorityUrl} - The priority url of the found service.
783
+ * @returns {object.defaultUrl} - The default url of the found service.
784
784
  */
785
785
  getServiceFromUrl: function getServiceFromUrl() {
786
786
  var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -794,33 +794,33 @@ var Services = _webexPlugin.default.extend({
794
794
  defaultUrl: service.get()
795
795
  };
796
796
  },
797
- /**
798
- * Verify that a provided url exists in the service
799
- * catalog.
800
- * @param {string} url
801
- * @returns {boolean} - true if exists, false otherwise
797
+ /**
798
+ * Verify that a provided url exists in the service
799
+ * catalog.
800
+ * @param {string} url
801
+ * @returns {boolean} - true if exists, false otherwise
802
802
  */
803
803
  isServiceUrl: function isServiceUrl(url) {
804
804
  var catalog = this._getCatalog();
805
805
  return !!catalog.findServiceUrlFromUrl(url);
806
806
  },
807
- /**
808
- * Determine if a provided url is in the catalog's allowed domains.
809
- *
810
- * @param {string} url - The url to match allowed domains against.
811
- * @returns {boolean} - True if the url provided is allowed.
807
+ /**
808
+ * Determine if a provided url is in the catalog's allowed domains.
809
+ *
810
+ * @param {string} url - The url to match allowed domains against.
811
+ * @returns {boolean} - True if the url provided is allowed.
812
812
  */
813
813
  isAllowedDomainUrl: function isAllowedDomainUrl(url) {
814
814
  var catalog = this._getCatalog();
815
815
  return !!catalog.findAllowedDomain(url);
816
816
  },
817
- /**
818
- * Converts the host portion of the url from default host
819
- * to a priority host
820
- *
821
- * @param {string} url a service url that contains a default host
822
- * @returns {string} a service url that contains the top priority host.
823
- * @throws if url isn't a service url
817
+ /**
818
+ * Converts the host portion of the url from default host
819
+ * to a priority host
820
+ *
821
+ * @param {string} url a service url that contains a default host
822
+ * @returns {string} a service url that contains the top priority host.
823
+ * @throws if url isn't a service url
824
824
  */
825
825
  convertUrlToPriorityHostUrl: function convertUrlToPriorityHostUrl() {
826
826
  var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -830,18 +830,18 @@ var Services = _webexPlugin.default.extend({
830
830
  }
831
831
  return url.replace(data.defaultUrl, data.priorityUrl);
832
832
  },
833
- /**
834
- * @private
835
- * Simplified method wrapper for sending a request to get
836
- * an updated service hostmap.
837
- * @param {object} [param]
838
- * @param {string} [param.from] - This accepts `limited` or `signin`
839
- * @param {object} [param.query] - This accepts `email`, `orgId` or `userId` key values
840
- * @param {string} [param.query.email] - must be a standard-format email
841
- * @param {string} [param.query.orgId] - must be an organization id
842
- * @param {string} [param.query.userId] - must be a user id
843
- * @param {string} [param.token] - used for signin catalog
844
- * @returns {Promise<object>}
833
+ /**
834
+ * @private
835
+ * Simplified method wrapper for sending a request to get
836
+ * an updated service hostmap.
837
+ * @param {object} [param]
838
+ * @param {string} [param.from] - This accepts `limited` or `signin`
839
+ * @param {object} [param.query] - This accepts `email`, `orgId` or `userId` key values
840
+ * @param {string} [param.query.email] - must be a standard-format email
841
+ * @param {string} [param.query.orgId] - must be an organization id
842
+ * @param {string} [param.query.userId] - must be a user id
843
+ * @param {string} [param.token] - used for signin catalog
844
+ * @returns {Promise<object>}
845
845
  */
846
846
  _fetchNewServiceHostmap: function _fetchNewServiceHostmap() {
847
847
  var _this7 = this;
@@ -874,10 +874,10 @@ var Services = _webexPlugin.default.extend({
874
874
  return _this7._formatReceivedHostmap(body);
875
875
  });
876
876
  },
877
- /**
878
- * Initialize the discovery services and the whitelisted services.
879
- *
880
- * @returns {void}
877
+ /**
878
+ * Initialize the discovery services and the whitelisted services.
879
+ *
880
+ * @returns {void}
881
881
  */
882
882
  initConfig: function initConfig() {
883
883
  // Get the catalog and destructure the services config.
@@ -927,10 +927,10 @@ var Services = _webexPlugin.default.extend({
927
927
  this.validateDomains = services.validateDomains;
928
928
  }
929
929
  },
930
- /**
931
- * Make the initial requests to collect the root catalogs.
932
- *
933
- * @returns {Promise<void, Error>} - Errors if the token is unavailable.
930
+ /**
931
+ * Make the initial requests to collect the root catalogs.
932
+ *
933
+ * @returns {Promise<void, Error>} - Errors if the token is unavailable.
934
934
  */
935
935
  initServiceCatalogs: function initServiceCatalogs() {
936
936
  var _this8 = this;
@@ -964,12 +964,12 @@ var Services = _webexPlugin.default.extend({
964
964
  return _promise.default.resolve();
965
965
  });
966
966
  },
967
- /**
968
- * Initializer
969
- *
970
- * @instance
971
- * @memberof Services
972
- * @returns {Services}
967
+ /**
968
+ * Initializer
969
+ *
970
+ * @instance
971
+ * @memberof Services
972
+ * @returns {Services}
973
973
  */
974
974
  initialize: function initialize() {
975
975
  var _this9 = this;
@@ -1005,7 +1005,7 @@ var Services = _webexPlugin.default.extend({
1005
1005
  }
1006
1006
  });
1007
1007
  },
1008
- version: "2.59.2"
1008
+ version: "2.59.0"
1009
1009
  });
1010
1010
  /* eslint-enable no-underscore-dangle */
1011
1011
  var _default = Services;