/** * 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 { DynamicFlowDefinitionDto } from './DynamicFlowDefinitionDto'; import type { RuleTriggerDto } from './RuleTriggerDto'; /** * * @export * @interface DynamicRuleDto */ export interface DynamicRuleDto { /** * The links. * @type {{ [key: string]: ResourceLink; }} * @memberof DynamicRuleDto */ links: { [key: string]: ResourceLink; }; /** * The ID of the rule. * @type {string} * @memberof DynamicRuleDto */ id: string; /** * The user that has created the rule. * @type {string} * @memberof DynamicRuleDto */ createdBy: string; /** * The user that has updated the rule. * @type {string} * @memberof DynamicRuleDto */ lastModifiedBy: string; /** * The date and time when the rule has been created. * @type {Date} * @memberof DynamicRuleDto */ created: Date; /** * The date and time when the rule has been modified last. * @type {Date} * @memberof DynamicRuleDto */ lastModified: Date; /** * The version of the rule. * @type {number} * @memberof DynamicRuleDto */ version: number; /** * Determines if the rule is enabled. * @type {boolean} * @memberof DynamicRuleDto */ isEnabled: boolean; /** * Optional rule name. * @type {string} * @memberof DynamicRuleDto */ name?: string | null; /** * * @type {RuleTriggerDto} * @memberof DynamicRuleDto */ trigger: RuleTriggerDto; /** * * @type {DynamicFlowDefinitionDto} * @memberof DynamicRuleDto */ flow: DynamicFlowDefinitionDto; /** * The action properties. * @type {{ [key: string]: any; }} * @memberof DynamicRuleDto * @deprecated */ action: { [key: string]: any; }; /** * The number of completed executions. * @type {number} * @memberof DynamicRuleDto */ numSucceeded: number; /** * The number of failed executions. * @type {number} * @memberof DynamicRuleDto */ numFailed: number; /** * The date and time when the rule was executed the last time. * @type {Date} * @memberof DynamicRuleDto * @deprecated */ lastExecuted?: Date | null; } /** * Check if a given object implements the DynamicRuleDto interface. */ export declare function instanceOfDynamicRuleDto(value: any): value is DynamicRuleDto; export declare function DynamicRuleDtoFromJSON(json: any): DynamicRuleDto; export declare function DynamicRuleDtoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): DynamicRuleDto; export declare function DynamicRuleDtoToJSON(value?: DynamicRuleDto | null, _ignoreDiscriminator?: boolean): any;