import { map } from 'rxjs/operators'; import { MaerskApiClient } from '../../../common/clients/maerskApi.client'; export class BiService { private apiClient: MaerskApiClient; constructor(apiClient) { this.apiClient = apiClient; } getBiReports = (workspaceId: string) => { return this.apiClient.getBiReports(workspaceId).pipe(map((item) => ({ ...item, reports: item.reports.map((report) => ({ ...report, workspaceId })), }))); } getBiReportToken = (datasetId: string, reportId: string, workspaceId: string) => { return this.apiClient.getBiReportToken(datasetId, reportId, workspaceId); } }