UNPKG

@bitrix24/b24jssdk

Version:

Bitrix24 REST API JavaScript SDK

77 lines (73 loc) 2.45 kB
/** * @package @bitrix24/b24jssdk * @version 2.0.0 * @copyright (c) 2026 Bitrix24 * @license MIT * @see https://github.com/bitrix24/b24jssdk * @see https://bitrix24.github.io/b24jssdk/ */ 'use strict'; const call = require('./call.cjs'); const callList = require('./call-list.cjs'); const fetchList = require('./fetch-list.cjs'); const batch = require('./batch.cjs'); const batchByChunk = require('./batch-by-chunk.cjs'); const loggerFactory = require('../../../logger/logger-factory.cjs'); var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); const callName = /* @__PURE__ */ Symbol("call_V2"); const callListName = /* @__PURE__ */ Symbol("callList_V2"); const fetchListName = /* @__PURE__ */ Symbol("fetchList_V2"); const batchName = /* @__PURE__ */ Symbol("batch_V2"); const batchByChunkName = /* @__PURE__ */ Symbol("batchByChunk_V2"); class ActionsManagerV2 { static { __name(this, "ActionsManagerV2"); } _b24; _logger; _mapActions; constructor(b24) { this._b24 = b24; this._logger = loggerFactory.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 call.CallV2(this._b24, this._logger)); } return this._mapActions.get(callName); } get callList() { if (!this._mapActions.has(callListName)) { this._mapActions.set(callListName, new callList.CallListV2(this._b24, this._logger)); } return this._mapActions.get(callListName); } get fetchList() { if (!this._mapActions.has(fetchListName)) { this._mapActions.set(fetchListName, new fetchList.FetchListV2(this._b24, this._logger)); } return this._mapActions.get(fetchListName); } get batch() { if (!this._mapActions.has(batchName)) { this._mapActions.set(batchName, new batch.BatchV2(this._b24, this._logger)); } return this._mapActions.get(batchName); } get batchByChunk() { if (!this._mapActions.has(batchByChunkName)) { this._mapActions.set(batchByChunkName, new batchByChunk.BatchByChunkV2(this._b24, this._logger)); } return this._mapActions.get(batchByChunkName); } } exports.ActionsManagerV2 = ActionsManagerV2; //# sourceMappingURL=manager-v2.cjs.map