@payfit/audit-log 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,11 @@ export interface IAuditLogData {
|
|
|
19
19
|
* For example, if we add a bonus to an employee, it could contain the amount, the impacted employeeId, etc...
|
|
20
20
|
*/
|
|
21
21
|
payload?: Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* The data specific to push to Datadog. Optional. If not given, Audit-Logs server won't publish any log to Datadog.
|
|
24
|
+
* This data will be published on datadog, then accessible. Shall not contain sensitive/personal data.
|
|
25
|
+
*/
|
|
26
|
+
datadogPayload?: Record<string, unknown>;
|
|
22
27
|
/**
|
|
23
28
|
* The buisness domain impacted.
|
|
24
29
|
* e.g documents, authentication, ...
|
|
@@ -33,6 +33,12 @@ export interface InlineObject {
|
|
|
33
33
|
* @memberof InlineObject
|
|
34
34
|
*/
|
|
35
35
|
'payload'?: object;
|
|
36
|
+
/**
|
|
37
|
+
* Datadog payload
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof InlineObject
|
|
40
|
+
*/
|
|
41
|
+
'datadogPayload'?: object;
|
|
36
42
|
/**
|
|
37
43
|
* id of the payfiter who performed the audit log action, if signed as.
|
|
38
44
|
* @type {string}
|