@bxshefby/b24jssdk
Version:
Bitrix24 REST API JavaScript SDK
32 lines (29 loc) • 886 B
JavaScript
/**
* @package @bxshefby/b24jssdk
* @version 3.3.0
* @copyright (c) 2026 Bitrix24
* @license MIT
* @see https://github.com/bx-shef/b24-js-sdk
* @see https://b24-js-sdk.bx-shef.by/
*/
import { AbstractProcessingV2 } from './abstract-processing.mjs';
import { ParseRow } from '../../parse-row.mjs';
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
class ProcessingAsArrayV2 extends AbstractProcessingV2 {
static {
__name(this, "ProcessingAsArrayV2");
}
prepareCommands(calls, options) {
const result = [];
calls.forEach((row) => {
const command = ParseRow.getBatchCommand(row, options);
result.push(command);
});
return result;
}
_processResponseError(result, ajaxError, index) {
result.addError(ajaxError, index);
}
}
export { ProcessingAsArrayV2 };