2021-09-10 19:06:37 +00:00
|
|
|
import { IFormField } from "./form_field";
|
2023-07-13 19:04:08 +00:00
|
|
|
import { IPack } from "./pack";
|
2024-05-02 19:30:44 +00:00
|
|
|
import { ISchedulableQuery, ISchedulableQueryStats } from "./schedulable_query";
|
2016-11-07 16:42:39 +00:00
|
|
|
|
2023-10-09 18:31:31 +00:00
|
|
|
export interface IEditQueryFormData {
|
2022-03-10 15:10:44 +00:00
|
|
|
description?: string | number | boolean | undefined;
|
|
|
|
|
name?: string | number | boolean | undefined;
|
|
|
|
|
query?: string | number | boolean | undefined;
|
|
|
|
|
observer_can_run?: string | number | boolean | undefined;
|
2023-07-18 21:10:45 +00:00
|
|
|
automations_enabled?: boolean;
|
2021-09-10 19:06:37 +00:00
|
|
|
}
|
|
|
|
|
|
2022-11-18 16:25:39 +00:00
|
|
|
export interface IStoredQueryResponse {
|
2023-07-18 21:10:45 +00:00
|
|
|
query: ISchedulableQuery;
|
2022-11-18 16:25:39 +00:00
|
|
|
}
|
|
|
|
|
|
2021-03-03 16:51:39 +00:00
|
|
|
export interface IQuery {
|
2021-08-16 14:30:19 +00:00
|
|
|
created_at: string;
|
|
|
|
|
updated_at: string;
|
|
|
|
|
id: number;
|
2021-03-03 16:51:39 +00:00
|
|
|
name: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
description: string;
|
2021-03-03 16:51:39 +00:00
|
|
|
query: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
saved: boolean;
|
|
|
|
|
author_id: number;
|
2021-08-03 20:09:01 +00:00
|
|
|
author_name: string;
|
2021-11-12 22:45:53 +00:00
|
|
|
author_email: string;
|
2021-08-16 14:30:19 +00:00
|
|
|
observer_can_run: boolean;
|
|
|
|
|
packs: IPack[];
|
2024-05-02 19:30:44 +00:00
|
|
|
stats?: ISchedulableQueryStats;
|
2021-03-03 16:51:39 +00:00
|
|
|
}
|
2021-09-10 19:06:37 +00:00
|
|
|
|
2023-10-09 18:31:31 +00:00
|
|
|
export interface IEditQueryFormFields {
|
2021-09-10 19:06:37 +00:00
|
|
|
description: IFormField;
|
|
|
|
|
name: IFormField;
|
|
|
|
|
query: IFormField;
|
|
|
|
|
observer_can_run: IFormField;
|
|
|
|
|
}
|