-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
42 lines (35 loc) · 1.16 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export type PluginOptions = {
/**
* Id of the resource to be ignored from audit log.
*/
excludeResourceIds?: string[];
/**
* Mappping of columns for audit log table.
*/
resourceColumns: {
/**
* Should be name of column were plugin will store resourceId.
* Column should be of type string.
*/
resourceIdColumnName: string
/**
* Should be name of column were plugin will store action.
* Column should be of type string.
*/
resourceActionColumnName: string
/**
* Should be name of column were plugin will store data.
* Column should be of type string.
*/
resourceDataColumnName: string
/**
* Should be name of column were plugin will store user id.
* Column should be same type as type of column where user id is stored.
* E.g. is user id is stored as UUID, then this column should be of type UUID.
*/
resourceUserIdColumnName: string
resourceRecordIdColumnName: string
resourceCreatedColumnName: string
resourceIpColumnName?: string
}
}