import { APIBase } from '@dvn/core/api/apiBase';
export class DasDamgaApi {
  constructor(endpoint, defaultHeaders = {}, defaultQueryParams = {}) {
    // region proxy analyses
    this.getProxyAnalyses = (domains, startDate, endDate, timeInterval) => this.api.get(`analyses`, { domains: domains.join(','), startDate, endDate, timeInterval });
    // endregion
    // region logs
    this.getLogs = (domain, startDate, endDate) => this.api.get(`logs`, { domain, startDate, endDate });
    this.api = new APIBase(endpoint, defaultHeaders);
    this.api.axios.defaults.params = defaultQueryParams;
  }
}
