UNPKG

@bitrix24/b24jssdk

Version:

Bitrix24 REST API JavaScript SDK

35 lines (32 loc) • 977 B
/** * @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 BatchV3 extends AbstractBatch { static { __name(this, "BatchV3"); } async make(options) { this._warnMisplacedOptions( options, ["isHaltOnError", "returnAjaxResult", "requestId"], "options" ); const opts = { ...options.options, apiVersion: ApiVersion.v3 }; const response = await this._b24.getHttpClient(ApiVersion.v3).batch(options.calls, opts); return this._processBatchResponse(response, options.calls, opts); } } export { BatchV3 }; //# sourceMappingURL=batch.mjs.map