UNPKG

@bitrix24/b24jssdk

Version:

Bitrix24 REST API JavaScript SDK

75 lines (72 loc) 2.29 kB
/** * @package @bitrix24/b24jssdk * @version 1.0.5 * @copyright (c) 2026 Bitrix24 * @license MIT * @see https://github.com/bitrix24/b24jssdk * @see https://bitrix24.github.io/b24jssdk/ */ import { CallV3 } from './call.mjs'; import { CallListV3 } from './call-list.mjs'; import { FetchListV3 } from './fetch-list.mjs'; import { BatchV3 } from './batch.mjs'; import { BatchByChunkV3 } from './batch-by-chunk.mjs'; import { LoggerFactory } from '../../../logger/logger-factory.mjs'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const callName = Symbol("call_V3"); const callListName = Symbol("callList_V3"); const fetchListName = Symbol("fetchList_V3"); const batchName = Symbol("batch_V3"); const batchByChunkName = Symbol("batchByChunk_V3"); class ActionsManagerV3 { static { __name(this, "ActionsManagerV3"); } _b24; _logger; _mapActions; constructor(b24) { this._b24 = b24; this._logger = LoggerFactory.createNullLogger(); this._mapActions = /* @__PURE__ */ new Map(); } setLogger(logger) { this._logger = logger; } getLogger() { return this._logger; } get call() { if (!this._mapActions.has(callName)) { this._mapActions.set(callName, new CallV3(this._b24, this._logger)); } return this._mapActions.get(callName); } get callList() { if (!this._mapActions.has(callListName)) { this._mapActions.set(callListName, new CallListV3(this._b24, this._logger)); } return this._mapActions.get(callListName); } get fetchList() { if (!this._mapActions.has(fetchListName)) { this._mapActions.set(fetchListName, new FetchListV3(this._b24, this._logger)); } return this._mapActions.get(fetchListName); } get batch() { if (!this._mapActions.has(batchName)) { this._mapActions.set(batchName, new BatchV3(this._b24, this._logger)); } return this._mapActions.get(batchName); } get batchByChunk() { if (!this._mapActions.has(batchByChunkName)) { this._mapActions.set(batchByChunkName, new BatchByChunkV3(this._b24, this._logger)); } return this._mapActions.get(batchByChunkName); } } export { ActionsManagerV3 }; //# sourceMappingURL=manager-v3.mjs.map