/** * 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 { Actionable } from '~/models/actionable/actionable'; import { CreatableActionable } from '~/models/actionable/creatable-actionable'; import { UpdatableActionable } from '~/models/actionable/updatable-actionable'; export interface ActionablesService { readonly get: { readonly one: (actionableID: string) => Promise; readonly all: () => Promise>; readonly authorizedTo: { readonly me: () => Promise>; }; }; readonly create: { readonly one: (data: CreatableActionable) => Promise; }; readonly update: { readonly one: (data: UpdatableActionable) => Promise; }; readonly delete: { readonly one: (actionableID: string) => Promise; }; }