-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (41 loc) · 1.36 KB
/
types.ts
File metadata and controls
50 lines (41 loc) · 1.36 KB
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
43
44
45
46
47
48
49
50
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
resourceCountryColumnName?: string
resourceIpColumnName?: string
}
/*
* should be in format ISO 3166-1 alpha-2
* e.g. for ckloudflare it should be 'CF-IPCountry'
*/
isoCountryCodeRequestHeader?: string;
}