webitel-sdk 26.4.27 → 26.4.28

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/index.cjs CHANGED
@@ -66723,7 +66723,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
66723
66723
  _defineProperty(SipPhone$1, "sipVersion", version$1);
66724
66724
  //#endregion
66725
66725
  //#region src/version.ts
66726
- const version = "26.4.27";
66726
+ const version = "26.4.28";
66727
66727
  //#endregion
66728
66728
  //#region src/socket/errors.ts
66729
66729
  /**
@@ -67835,8 +67835,8 @@ var Agent = class {
67835
67835
  get stateDuration() {
67836
67836
  return Math.round((Date.now() - this.lastStatusChange) / 1e3);
67837
67837
  }
67838
- get statusPreset() {
67839
- return this.info.status_preset;
67838
+ get onlineSkill() {
67839
+ return this.info.online_status;
67840
67840
  }
67841
67841
  /**
67842
67842
  * Метод, що встановлює список членів, які очікують на відповідь.
@@ -68030,8 +68030,8 @@ var Agent = class {
68030
68030
  * @param {boolean} [onDemand] - Статус "On Demand".
68031
68031
  * @returns {Promise<any>} - Об'єкт з інформацією про сесію агента.
68032
68032
  */
68033
- async online(channels, onDemand, statusPreset) {
68034
- return this.client.agentSetOnline(this.agentId, channels, onDemand, statusPreset);
68033
+ async online(channels, onDemand, onlineSkill) {
68034
+ return this.client.agentSetOnline(this.agentId, channels, onDemand, onlineSkill);
68035
68035
  }
68036
68036
  /**
68037
68037
  * Метод, що встановлює статус "Waiting" для агента.
@@ -68087,7 +68087,7 @@ var Agent = class {
68087
68087
  this.waitingListCalls.length = 0;
68088
68088
  this.waitingListChats.length = 0;
68089
68089
  }
68090
- this.info.status_preset = formatStatusPreset(e.status_preset);
68090
+ this.info.online_status = formatStatusPreset(e.status_preset);
68091
68091
  this.info.status = e.status;
68092
68092
  this.info.status_comment = e.status_comment;
68093
68093
  this.info.status_payload = e.status_payload ? e.status_payload : null;
@@ -70631,12 +70631,12 @@ var Client = class extends ee_ts.EventEmitter {
70631
70631
  async eavesdrop(req) {
70632
70632
  return this.request("call_eavesdrop", req);
70633
70633
  }
70634
- async agentSetOnline(agentId, channels, onDemand, statusPreset) {
70634
+ async agentSetOnline(agentId, channels, onDemand, online_skill) {
70635
70635
  return this.request("cc_agent_online", {
70636
70636
  agent_id: agentId,
70637
70637
  channels,
70638
70638
  on_demand: onDemand,
70639
- status_preset: statusPreset
70639
+ online_skill
70640
70640
  });
70641
70641
  }
70642
70642
  async agentSetWaiting(agentId, channel) {