/** * 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 { DashboardLiveUpdate } from '~/models/dashboard/dashboard-live-update'; import { DashboardTile } from '~/models/dashboard/dashboard-tile'; import { Version } from '~/models/version/version'; import { NumericID, UUID } from '~/value-objects/id'; import { Timeframe } from '../timeframe/timeframe'; import { DashboardSearch } from './dashboard-search'; export interface DashboardData { id: NumericID; globalID: UUID | null; userID: NumericID; groupIDs: Array; isGlobal: boolean; name: string; description: string | null; labels: Array; creationDate: Date; lastUpdateDate: Date; /** * Date of the last update to the dashboard contents, not including name, * description, labels, userID and groupIDs */ lastMainUpdateDate: Date; version: Version; /** Update all tiles when zooming. */ updateOnZoom: boolean; liveUpdate: DashboardLiveUpdate; /** Legacy support: `timeframe` may be undefined. */ timeframe?: Timeframe; searches: Array; tiles: Array; gridOptions: { gutter: number | null; margin: number | null; borderRadius: number | null; borderWidth: number | null; }; }