index.d.ts 760 Bytes
Newer Older
Panagiotis Skarvelis's avatar
Panagiotis Skarvelis committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * @description Record to be stored in the database
 * @note Must be fullfiled completely, even if it is empty
 */
export declare type AuditRecord = {
    auditUnit?: string;
    auditTransactionId?: string;
    auditProtocol?: string;
    auditTransactionDate?: string;
    auditUserIp?: string;
    auditUserId?: string;
};
/**
 * @description AuditEngine interface
 * @note This interface is used to define the methods that must be implemented by the AuditEngine look at FileEngine.ts for an example
 * @interface AuditEngine
 */
export interface AuditEngine {
    put: (record: AuditRecord) => AuditRecord | null;
    get: (auditTransactionId: string) => AuditRecord | null;
}
22
23
24
25
export declare type FS_ERROR = {
    code: string;
    message: string;
};