// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import { default as unionize, ofType, UnionOf } from "unionize"; import { SortDirection, DataColumn } from "../../components/data-table/data-column"; import { DataTableFilterItem } from "../../components/data-table-filters/data-table-filters"; type WithId = T & { id: string }; const actions = unionize({ SET_COLUMNS: ofType> }>>(), SET_FILTERS: ofType>(), SET_ITEMS: ofType>(), SET_PAGE: ofType>(), SET_ROWS_PER_PAGE: ofType>(), TOGGLE_COLUMN: ofType>(), TOGGLE_SORT: ofType>(), SET_SEARCH_VALUE: ofType>() }, { tag: "type", value: "payload" }); export type DataExplorerAction = UnionOf; export default actions;