import { SearchQuery } from '../ProcessInstance/ProcessInstanceQuery'; /** * @swagger * components: * schemas: * Cronjob: * description: Describes a cronjob. * type: object * required: * - processDefinitionId * - processModelId * - startEventId * - enabled * - crontab * properties: * processDefinitionId: * type: string * description: The ID of the ProcessDefinition that contains the cronjob. * processModelId: * type: string * description: The ID of the ProcessModel that contains the cronjob. * startEventId: * type: string * description: The ID of the StartEvent that contains the cronjob. * enabled: * type: boolean * description: Flag indicating whether or not the cronjob is enabled. * crontab: * type: string * description: The crontab that describs the cronjob. * startedProcessInstances: * type: number * description: The number of ProcessInstances that have been started by this cronjob. * lastStartedProcessInstance: * type: string * description: The ID of the last ProcessInstance that has been started by this cronjob. * lastTriggerDate: * type: string * description: The date of the last time the cronjob was triggered. * nextTriggerDate: * type: string * description: The date of the next time the cronjob will be triggered. */ export type Cronjob = { processDefinitionId: string; processModelId: string; startEventId: string; enabled: boolean; crontab: string; startedProcessInstances?: number; lastStartedProcessInstance?: string; lastTriggerDate?: Date; nextTriggerDate?: Date; }; /** * @swagger * components: * schemas: * DeployedCronjobList: * description: A list of all deployed cronjobs. * type: object * required: * - cronjobs * - totalCount * properties: * cronjobs: * description: The deployed cronjobs * type: array * items: * $ref: '#/components/schemas/Cronjob' * totalCount: * description: The total number of deployed cronjobs * type: number */ export type DeployedCronjobList = { cronjobs: Array; totalCount: number; }; export declare type CronjobQuery = { processDefinitionId?: Array | string | SearchQuery; processModelId?: Array | string | SearchQuery; startEventId?: Array | string | SearchQuery; crontab?: Array | string | SearchQuery; enabled?: boolean; lastTriggerDate?: Array | Date; lastTriggerDateBefore?: Date; lastTriggerDateAfter?: Date; nextTriggerDate?: Array | Date; nextTriggerDateBefore?: Date; nextTriggerDateAfter?: Date; }; export declare type CronjobSortSettings = { sortBy: CronjobSortableColumns; sortDir?: 'ASC' | 'DESC'; }; export declare enum CronjobSortableColumns { processDefinitionId = "processDefinitionId", processModelId = "processModelId", startEventId = "startEventId", crontab = "crontab", enabled = "enabled", lastTriggerDate = "lastTriggerDate", nextTriggerDate = "nextTriggerDate" }