/** * 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 { RawNumericID, RawUUID } from '../../value-objects/id'; import { RawActionableCommand } from './raw-actionable-command'; export interface RawActionable { GUID: RawUUID; ThingUUID: RawUUID; UID: RawNumericID; GIDs: null | Array; Global: boolean; Name: string; Description: string; Updated: string; Contents: { menuLabel: null | string; actions?: Array | null; triggers?: Array | null; }; Labels: null | Array; Disabled: boolean; } export interface RawActionableAction { name: string; description: string | null; placeholder: string | null; noValueUrlEncode?: boolean; start?: RawActionableTimeVariable; end?: RawActionableTimeVariable; command: RawActionableCommand; } /** An Actionable trigger can be a single string or the object below. */ export declare type RawActionableTrigger = { pattern: string; hyperlink: boolean; disabled: boolean; } | string; export declare type RawActionableTimeVariable = { type: 'timestamp'; format: null | string; placeholder: null | string; } | { type: 'string'; format: null | string; placeholder: null | string; };