FileEngine.d.ts 937 Bytes
Newer Older
1
import { AuditRecord, AuditEngine } from '../interfaces/index.js';
Panagiotis Skarvelis's avatar
Panagiotis Skarvelis committed
2
3
4
5
6
7
8
9
10
11
/**
 * @description AuditEngine implementation
 * @note This class is used to implement the methods that must be implemented by the AuditEngine
 * @class FileEngine
 * @implements AuditEngine
 * @param {string} path - path to store the records
 */
export declare class FileEngine implements AuditEngine {
    #private;
    constructor(path: string);
Panagiotis Skarvelis's avatar
cleanup    
Panagiotis Skarvelis committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    /**
     * @description Store a record in the database
     * @param {AuditRecord} record - record to be stored
     * @returns {AuditRecord} - the record stored
     * @memberof FileEngine
     * @method put
     */
    put(record: AuditRecord): AuditRecord;
    /**
     * @description Get a record from the database
     * @param auditTransactionId
     * @returns {AuditRecord}
     * @memberof FileEngine
     * @method get
     */
    get(auditTransactionId: string): AuditRecord;
Panagiotis Skarvelis's avatar
Panagiotis Skarvelis committed
28
29
}
export default FileEngine;