@bitrix24/b24jssdk
Version:
Bitrix24 REST API JavaScript SDK
37 lines (33 loc) • 1.02 kB
JavaScript
/**
* @package @bitrix24/b24jssdk
* @version 3.0.0
* @copyright (c) 2026 Bitrix24
* @license MIT
* @see https://github.com/bitrix24/b24jssdk
* @see https://bitrix24.github.io/b24jssdk/
*/
;
const abstractBatch = require('../abstract-batch.cjs');
const b24 = require('../../../types/b24.cjs');
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
class BatchV2 extends abstractBatch.AbstractBatch {
static {
__name(this, "BatchV2");
}
async make(options) {
this._warnMisplacedOptions(
options,
["isHaltOnError", "returnAjaxResult", "requestId"],
"options"
);
const opts = {
...options.options,
apiVersion: b24.ApiVersion.v2
};
const response = await this._b24.getHttpClient(b24.ApiVersion.v2).batch(options.calls, opts);
return this._processBatchResponse(response, options.calls, opts);
}
}
exports.BatchV2 = BatchV2;
//# sourceMappingURL=batch.cjs.map