/** * Squidex API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0.0 * * * 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 { ResourceLink } from './ResourceLink'; import type { RuleActionDto } from './RuleActionDto'; import type { RuleTriggerDto } from './RuleTriggerDto'; /** * * @export * @interface RuleDto */ export interface RuleDto { /** * The links. * @type {{ [key: string]: ResourceLink; }} * @memberof RuleDto */ links: { [key: string]: ResourceLink; }; /** * The ID of the rule. * @type {string} * @memberof RuleDto */ id: string; /** * The user that has created the rule. * @type {string} * @memberof RuleDto */ createdBy: string; /** * The user that has updated the rule. * @type {string} * @memberof RuleDto */ lastModifiedBy: string; /** * The date and time when the rule has been created. * @type {Date} * @memberof RuleDto */ created: Date; /** * The date and time when the rule has been modified last. * @type {Date} * @memberof RuleDto */ lastModified: Date; /** * The version of the rule. * @type {number} * @memberof RuleDto */ version: number; /** * Determines if the rule is enabled. * @type {boolean} * @memberof RuleDto */ isEnabled: boolean; /** * Optional rule name. * @type {string} * @memberof RuleDto */ name?: string | null; /** * * @type {RuleTriggerDto} * @memberof RuleDto */ trigger: RuleTriggerDto; /** * * @type {RuleActionDto} * @memberof RuleDto */ action: RuleActionDto; /** * The number of completed executions. * @type {number} * @memberof RuleDto */ numSucceeded: number; /** * The number of failed executions. * @type {number} * @memberof RuleDto */ numFailed: number; /** * The date and time when the rule was executed the last time. * @type {Date} * @memberof RuleDto * @deprecated */ lastExecuted?: Date | null; } /** * Check if a given object implements the RuleDto interface. */ export declare function instanceOfRuleDto(value: any): value is RuleDto; export declare function RuleDtoFromJSON(json: any): RuleDto; export declare function RuleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): RuleDto; export declare function RuleDtoToJSON(value?: RuleDto | null, _ignoreDiscriminator?: boolean): any;