webitel-sdk 26.4.41 → 26.4.43

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
@@ -66709,7 +66709,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
66709
66709
  _defineProperty(SipPhone$1, "sipVersion", version$1);
66710
66710
  //#endregion
66711
66711
  //#region src/version.ts
66712
- const version = "26.4.41";
66712
+ const version = "26.4.43";
66713
66713
  //#endregion
66714
66714
  //#region src/socket/errors.ts
66715
66715
  /**
@@ -67262,6 +67262,10 @@ var Task = class {
67262
67262
  get memberJoinedAt() {
67263
67263
  return this.distribute.member_joined_at;
67264
67264
  }
67265
+ get acceptTimeoutSec() {
67266
+ var _this$distribute;
67267
+ return ((_this$distribute = this.distribute) === null || _this$distribute === void 0 ? void 0 : _this$distribute.team_accept_timeout) || 0;
67268
+ }
67265
67269
  get autosave() {
67266
67270
  return !!this.distribute.autosave;
67267
67271
  }
@@ -69047,7 +69051,10 @@ var Call = class {
69047
69051
  }
69048
69052
  maskNameEqualToHiddenNumber(name) {
69049
69053
  var _this$memberCommunica;
69050
- if (this.hideNumber && name && name === ((_this$memberCommunica = this.memberCommunication) === null || _this$memberCommunica === void 0 ? void 0 : _this$memberCommunica.destination)) return this.displayNumber;
69054
+ if (!this.hideNumber || !name || !/^[\d\s()+\-.]+$/.test(name)) return name;
69055
+ const nameDigits = name.replace(/\D/g, "");
69056
+ const destinationDigits = (((_this$memberCommunica = this.memberCommunication) === null || _this$memberCommunica === void 0 ? void 0 : _this$memberCommunica.destination) || "").replace(/\D/g, "");
69057
+ if (nameDigits && nameDigits === destinationDigits) return this.displayNumber;
69051
69058
  return name;
69052
69059
  }
69053
69060
  /**