webitel-sdk 26.4.36 → 26.4.37
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 +26 -5
- package/index.cjs.map +1 -1
- package/index.mjs +26 -5
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/socket/task.d.ts +12 -0
- package/socket/task.d.ts.map +1 -1
- package/version.d.ts +1 -1
package/index.cjs
CHANGED
|
@@ -66734,7 +66734,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
|
|
|
66734
66734
|
_defineProperty(SipPhone$1, "sipVersion", version$1);
|
|
66735
66735
|
//#endregion
|
|
66736
66736
|
//#region src/version.ts
|
|
66737
|
-
const version = "26.4.
|
|
66737
|
+
const version = "26.4.37";
|
|
66738
66738
|
//#endregion
|
|
66739
66739
|
//#region src/socket/errors.ts
|
|
66740
66740
|
/**
|
|
@@ -67405,12 +67405,20 @@ var Task = class {
|
|
|
67405
67405
|
return this._processing.timeout;
|
|
67406
67406
|
}
|
|
67407
67407
|
/**
|
|
67408
|
+
* Чи увімкнене автозбереження постобробки в черзі.
|
|
67409
|
+
* @returns {boolean}
|
|
67410
|
+
*/
|
|
67411
|
+
get processingAutosave() {
|
|
67412
|
+
var _this$_processing2;
|
|
67413
|
+
return !!((_this$_processing2 = this._processing) === null || _this$_processing2 === void 0 ? void 0 : _this$_processing2.autosave);
|
|
67414
|
+
}
|
|
67415
|
+
/**
|
|
67408
67416
|
* Отримати тривалість обробки в секундах.
|
|
67409
67417
|
* @returns {number | null}
|
|
67410
67418
|
*/
|
|
67411
67419
|
get processingSec() {
|
|
67412
|
-
var _this$_processing$sec, _this$
|
|
67413
|
-
return (_this$_processing$sec = (_this$
|
|
67420
|
+
var _this$_processing$sec, _this$_processing3;
|
|
67421
|
+
return (_this$_processing$sec = (_this$_processing3 = this._processing) === null || _this$_processing3 === void 0 ? void 0 : _this$_processing3.sec) !== null && _this$_processing$sec !== void 0 ? _this$_processing$sec : null;
|
|
67414
67422
|
}
|
|
67415
67423
|
/**
|
|
67416
67424
|
* Отримати спробу.
|
|
@@ -67473,8 +67481,8 @@ var Task = class {
|
|
|
67473
67481
|
* @returns {number | null}
|
|
67474
67482
|
*/
|
|
67475
67483
|
get renewalSec() {
|
|
67476
|
-
var _this$
|
|
67477
|
-
if (!((_this$
|
|
67484
|
+
var _this$_processing4;
|
|
67485
|
+
if (!((_this$_processing4 = this._processing) === null || _this$_processing4 === void 0 ? void 0 : _this$_processing4.renewal_sec)) return null;
|
|
67478
67486
|
return this._processing.renewal_sec;
|
|
67479
67487
|
}
|
|
67480
67488
|
/**
|
|
@@ -67553,6 +67561,19 @@ var Task = class {
|
|
|
67553
67561
|
return res;
|
|
67554
67562
|
}
|
|
67555
67563
|
/**
|
|
67564
|
+
* Зберегти чернетку звітності без завершення завдання.
|
|
67565
|
+
* Не змінює reportedAt.
|
|
67566
|
+
* @param {Reporting} reporting - Дані звітності.
|
|
67567
|
+
* @returns {Promise<any>}
|
|
67568
|
+
*/
|
|
67569
|
+
async reportingDraft(reporting) {
|
|
67570
|
+
return this.client.request("cc_reporting", {
|
|
67571
|
+
attempt_id: this.id,
|
|
67572
|
+
...reporting,
|
|
67573
|
+
draft: true
|
|
67574
|
+
});
|
|
67575
|
+
}
|
|
67576
|
+
/**
|
|
67556
67577
|
* Оновити завдання.
|
|
67557
67578
|
* @param {number} [sec] - Кількість секунд для оновлення.
|
|
67558
67579
|
* @returns {Promise<any>}
|