"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const axiosClient_1 = require("../axiosClient");
const BundleAPI = {
    makeBaseURI() {
        return `/v2/operators/bundles`;
    },
    list(openshiftVersion, cpuArchitecture, platformType, featureIds) {
        return axiosClient_1.client.get(`${BundleAPI.makeBaseURI()}`, {
            params: Object.assign({ openshift_version: openshiftVersion, cpu_architecture: cpuArchitecture, platform_type: platformType, feature_ids: featureIds }, (platformType === 'external' ? { external_platform_name: 'oci' } : {})),
        });
    },
    listOperatorsForBundle(bundleName) {
        return axiosClient_1.client.get(`${BundleAPI.makeBaseURI()}?bundle_name=${bundleName}`);
    },
};
exports.default = BundleAPI;
//# sourceMappingURL=BundleAPI.js.map