@webex/contact-center 3.12.0-task-refactor.13 → 3.12.0-webex-services-ready.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.
package/dist/cc.js CHANGED
@@ -26,6 +26,7 @@ var _EntryPoint = require("./services/EntryPoint");
26
26
  var _AddressBook = require("./services/AddressBook");
27
27
  var _Queue = require("./services/Queue");
28
28
  var _ApiAiAssistant = require("./services/ApiAiAssistant");
29
+ var _UserPreference = require("./services/UserPreference");
29
30
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
30
31
  /**
31
32
  * @module CCPlugin
@@ -274,6 +275,36 @@ class ContactCenter extends _webexCore.WebexPlugin {
274
275
  * ```
275
276
  */
276
277
 
278
+ /**
279
+ * API instance for managing Webex Contact Center user preferences
280
+ * Provides functionality to get, create, update, and delete user preferences
281
+ * @type {UserPreference}
282
+ * @public
283
+ * @example
284
+ * ```typescript
285
+ * const cc = webex.cc;
286
+ * await cc.register();
287
+ * await cc.stationLogin({ teamId: 'team123', loginOption: 'BROWSER' });
288
+ *
289
+ * // Get user preferences for current user
290
+ * const preferences = await cc.userPreference.getUserPreference();
291
+ *
292
+ * // Create new user preferences
293
+ * const newPrefs = await cc.userPreference.createUserPreference({
294
+ * userId: 'user123',
295
+ * preferences: { e911Reminder: true }
296
+ * });
297
+ *
298
+ * // Update user preferences
299
+ * const updatedPrefs = await cc.userPreference.updateUserPreference('user123', {
300
+ * preferences: { e911Reminder: false }
301
+ * });
302
+ *
303
+ * // Delete user preferences
304
+ * await cc.userPreference.deleteUserPreference('user123');
305
+ * ```
306
+ */
307
+
277
308
  /**
278
309
  * API instance for AI Assistant operations such as transcript controls.
279
310
  * @type {ApiAIAssistant}
@@ -326,6 +357,7 @@ class ContactCenter extends _webexCore.WebexPlugin {
326
357
  this.entryPoint = new _EntryPoint.EntryPoint(this.$webex);
327
358
  this.addressBook = new _AddressBook.AddressBook(this.$webex, () => this.agentConfig?.addressBookId);
328
359
  this.queue = new _Queue.Queue(this.$webex);
360
+ this.userPreference = new _UserPreference.UserPreference(this.$webex, () => this.agentConfig?.agentId);
329
361
  _loggerProxy.default.initialize(this.$webex.logger);
330
362
  });
331
363
  }