"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchSingleBatch = fetchSingleBatch;
const batch_request_1 = require("./batch-request");
const build_query_and_fetch_1 = require("../utils/build-query-and-fetch");
/**
 * 执行单个批次请求
 */
function fetchSingleBatch(options) {
    const { remote, innerParams, batchPage, clearDataType, paramsData } = options;
    return (0, build_query_and_fetch_1.buildQueryAndFetch)({
        remote,
        innerParams,
        currentPage: batchPage,
        pageSize: batch_request_1.MAX_API_PAGE_SIZE,
        clearDataType,
        paramsData,
    });
}
