lib/common/process/process.types.ts
Interface representing a process unit.
Properties |
code |
code:
|
Type : string
|
cronTab |
cronTab:
|
Type : string
|
description |
description:
|
Type : LocalizedString[]
|
enabled |
enabled:
|
Type : boolean
|
logs |
logs:
|
Type : ProcessLog[]
|
status |
status:
|
Type : Process.Status
|
tsCreated |
tsCreated:
|
Type : Date
|
import { Process } from "./process.constants";
import { LocalizedString } from "../../shared/modules/locale/locale.types";
/**
* Interface representing a process log entry.
*/
export interface ProcessLog {
id: number;
content: string;
tsCreated: Date;
tsUpdated: Date;
process: ProcessUnit;
}
/**
* Interface representing a process unit.
*/
export interface ProcessUnit {
code: string;
status: Process.Status;
enabled: boolean;
description: LocalizedString[];
cronTab: string;
logs: ProcessLog[];
tsCreated: Date;
}