/** * 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. */ /** * 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 { Search2 } from '~/models/search/search2'; import { SearchDetails } from '../../models/search/search-details'; export interface SearchStatusService { readonly get: { readonly authorizedTo: { /** Returns all persistent searches authorized to the current user. */ readonly me: () => Promise>; }; /** Returns the status of a specific persistent search. */ readonly one: { readonly status: (searchID: string) => Promise; readonly details: (searchID: string) => Promise; }; /** Returns all persistent searches. */ readonly all: () => Promise>; }; }