@bitrix24/b24jssdk
Version:
Bitrix24 REST API JavaScript SDK
35 lines (32 loc) • 977 B
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/
*/
import { AbstractBatch } from '../abstract-batch.mjs';
import { ApiVersion } from '../../../types/b24.mjs';
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
class BatchV2 extends AbstractBatch {
static {
__name(this, "BatchV2");
}
async make(options) {
this._warnMisplacedOptions(
options,
["isHaltOnError", "returnAjaxResult", "requestId"],
"options"
);
const opts = {
...options.options,
apiVersion: ApiVersion.v2
};
const response = await this._b24.getHttpClient(ApiVersion.v2).batch(options.calls, opts);
return this._processBatchResponse(response, options.calls, opts);
}
}
export { BatchV2 };
//# sourceMappingURL=batch.mjs.map