1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { getDataExplorer } from "./data-explorer-reducer";
6 import { MiddlewareAPI } from "../../../node_modules/redux";
7 import { DataColumns } from "../../components/data-table/data-table";
9 export abstract class DataExplorerMiddlewareService {
11 abstract get Id(): string;
12 abstract get Columns(): DataColumns<any>;
13 abstract requestItems (api: MiddlewareAPI): void;
15 protected api: MiddlewareAPI;
16 set Api(value: MiddlewareAPI) {
20 return getDataExplorer(this.api.getState(), this.Id);