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.mjs CHANGED
@@ -66698,7 +66698,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
66698
66698
  _defineProperty(SipPhone$1, "sipVersion", version$1);
66699
66699
  //#endregion
66700
66700
  //#region src/version.ts
66701
- const version = "26.4.27";
66701
+ const version = "26.4.28";
66702
66702
  //#endregion
66703
66703
  //#region src/socket/errors.ts
66704
66704
  /**
@@ -67810,8 +67810,8 @@ var Agent = class {
67810
67810
  get stateDuration() {
67811
67811
  return Math.round((Date.now() - this.lastStatusChange) / 1e3);
67812
67812
  }
67813
- get statusPreset() {
67814
- return this.info.status_preset;
67813
+ get onlineSkill() {
67814
+ return this.info.online_status;
67815
67815
  }
67816
67816
  /**
67817
67817
  * Метод, що встановлює список членів, які очікують на відповідь.
@@ -68005,8 +68005,8 @@ var Agent = class {
68005
68005
  * @param {boolean} [onDemand] - Статус "On Demand".
68006
68006
  * @returns {Promise<any>} - Об'єкт з інформацією про сесію агента.
68007
68007
  */
68008
- async online(channels, onDemand, statusPreset) {
68009
- return this.client.agentSetOnline(this.agentId, channels, onDemand, statusPreset);
68008
+ async online(channels, onDemand, onlineSkill) {
68009
+ return this.client.agentSetOnline(this.agentId, channels, onDemand, onlineSkill);
68010
68010
  }
68011
68011
  /**
68012
68012
  * Метод, що встановлює статус "Waiting" для агента.
@@ -68062,7 +68062,7 @@ var Agent = class {
68062
68062
  this.waitingListCalls.length = 0;
68063
68063
  this.waitingListChats.length = 0;
68064
68064
  }
68065
- this.info.status_preset = formatStatusPreset(e.status_preset);
68065
+ this.info.online_status = formatStatusPreset(e.status_preset);
68066
68066
  this.info.status = e.status;
68067
68067
  this.info.status_comment = e.status_comment;
68068
68068
  this.info.status_payload = e.status_payload ? e.status_payload : null;
@@ -70606,12 +70606,12 @@ var Client = class extends EventEmitter {
70606
70606
  async eavesdrop(req) {
70607
70607
  return this.request("call_eavesdrop", req);
70608
70608
  }
70609
- async agentSetOnline(agentId, channels, onDemand, statusPreset) {
70609
+ async agentSetOnline(agentId, channels, onDemand, online_skill) {
70610
70610
  return this.request("cc_agent_online", {
70611
70611
  agent_id: agentId,
70612
70612
  channels,
70613
70613
  on_demand: onDemand,
70614
- status_preset: statusPreset
70614
+ online_skill
70615
70615
  });
70616
70616
  }
70617
70617
  async agentSetWaiting(agentId, channel) {