@bxshefby/b24jssdk
Version:
Bitrix24 REST API JavaScript SDK
34 lines (30 loc) • 1.01 kB
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/
*/
;
const abstractProcessing = require('./abstract-processing.cjs');
const parseRow = require('../../parse-row.cjs');
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
class ProcessingAsObjectV3 extends abstractProcessing.AbstractProcessingV3 {
static {
__name(this, "ProcessingAsObjectV3");
}
prepareCommands(calls, options) {
const result = [];
Object.entries(calls).forEach(([index, row]) => {
const command = parseRow.ParseRow.getBatchCommand(row, { ...options, asDefaultValue: index });
result.push(command);
});
return result;
}
_processResponseError(result, ajaxError, index) {
result.addError(ajaxError, index);
}
}
exports.ProcessingAsObjectV3 = ProcessingAsObjectV3;