/** * Copyright 2022 Gravwell, Inc. All rights reserved. * * Contact: [legal@gravwell.io](mailto:legal@gravwell.io) * * This software may be modified and distributed under the terms of the MIT * license. See the LICENSE file for details. */ import { NumericID } from '~/value-objects/id'; export interface PersistentSearchData { id: NumericID; userID: NumericID; groupID: NumericID | null; states: Array<'active' | 'dormant' | 'backgrounded' | 'saved' | 'attached' | 'saving'>; attachedClients: number; storedData: number; userQuery: string; effectiveQuery: string; noHistory: boolean; import: { imported: boolean; time: Date; batchName: string; batchInfo: string; }; started: Date; } export type PersistentSearchDataState = PersistentSearchData['states'][number];