UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
149 lines (148 loc) 3.38 kB
/** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.66 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Report } from './Report'; /** * * @export * @interface AlertResponse */ export interface AlertResponse { /** * * @type {string} * @memberof AlertResponse */ id: string; /** * * @type {Date} * @memberof AlertResponse */ createdAt?: Date | null; /** * * @type {Date} * @memberof AlertResponse */ updatedAt?: Date | null; /** * * @type {Date} * @memberof AlertResponse */ expiresAt?: Date | null; /** * * @type {string} * @memberof AlertResponse */ userId: string; /** * * @type {string} * @memberof AlertResponse */ query?: string | null; /** * * @type {string} * @memberof AlertResponse */ cron: string; /** * * @type {string} * @memberof AlertResponse */ model: string | null; /** * * @type {string} * @memberof AlertResponse */ shareLink?: string | null; /** * * @type {Array<{ [key: string]: any; } | null>} * @memberof AlertResponse */ sources?: Array<{ [key: string]: any; } | null> | null; /** * * @type {Report} * @memberof AlertResponse */ report?: Report | null; /** * * @type {Array<{ [key: string]: any; } | null>} * @memberof AlertResponse */ triggers: Array<{ [key: string]: any; } | null>; /** * * @type {boolean} * @memberof AlertResponse */ alwaysTrigger?: boolean; /** * * @type {boolean} * @memberof AlertResponse */ repeat?: boolean; /** * * @type {boolean} * @memberof AlertResponse */ active?: boolean; /** * * @type {string} * @memberof AlertResponse */ alertType?: AlertResponseAlertTypeEnum | null; /** * * @type {string} * @memberof AlertResponse */ title?: string | null; /** * * @type {string} * @memberof AlertResponse */ seatId?: string | null; } /** * @export */ export declare const AlertResponseAlertTypeEnum: { readonly AlwaysAlertWhen: "AlwaysAlertWhen"; readonly AlertOnceIf: "AlertOnceIf"; readonly ReportAbout: "ReportAbout"; }; export type AlertResponseAlertTypeEnum = typeof AlertResponseAlertTypeEnum[keyof typeof AlertResponseAlertTypeEnum]; /** * Check if a given object implements the AlertResponse interface. */ export declare function instanceOfAlertResponse(value: object): value is AlertResponse; export declare function AlertResponseFromJSON(json: any): AlertResponse; export declare function AlertResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlertResponse; export declare function AlertResponseToJSON(json: any): AlertResponse; export declare function AlertResponseToJSONTyped(value?: AlertResponse | null, ignoreDiscriminator?: boolean): any;