@payfit/audit-log 3.0.0-rc.9 → 3.0.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The allowed Namespaces for the AuditLog
3
3
  */
4
- export type AuditNamespaces = 'employee' | 'company' | 'permissions' | 'absence' | 'expense' | 'payments' | 'auth' | 'billing' | 'modules' | 'integrations' | 'partnerApi' | 'donation' | 'notificationSettings' | 'people' | 'subscriptions' | 'organization' | 'declarations' | 'pricing' | 'payroll' | 'jetlang' | 'files' | 'versioner';
4
+ export type AuditNamespaces = 'employee' | 'company' | 'permissions' | 'absence' | 'expense' | 'payments' | 'auth' | 'billing' | 'modules' | 'integrations' | 'partnerApi' | 'donation' | 'notificationSettings' | 'people' | 'subscriptions' | 'organization' | 'declarations' | 'pricing' | 'payroll' | 'jetlang' | 'files';
5
5
  /**
6
6
  * The allowed targets for the AuditLog
7
7
  */
@@ -9,7 +9,7 @@ export type AuditTargets = 'reporting' | 'employee' | 'employee.settings' | 'emp
9
9
  /**
10
10
  * The allowed Events for the AuditLog
11
11
  */
12
- export type AuditEvents = 'create' | 'update' | 'share' | 'delete' | 'view' | 'sign' | 'signin' | 'signinFail' | 'signinAs' | 'logout' | 'updateCurrentAccount' | 'merge' | 'disable' | 'sendResetPasswordLink' | 'enable' | 'verify' | 'read' | 'write' | 'subscribe' | 'consume' | 'setup' | 'deleteAllAdmins' | 'import';
12
+ export type AuditEvents = 'create' | 'update' | 'share' | 'delete' | 'view' | 'sign' | 'signin' | 'signinFail' | 'signinAs' | 'logout' | 'updateCurrentAccount' | 'merge' | 'disable' | 'sendResetPasswordLink' | 'enable' | 'verify' | 'read' | 'write' | 'subscribe' | 'consume' | 'setup' | 'deleteAllAdmins';
13
13
  /**
14
14
  * Data to audit log.
15
15
  */
@@ -19,11 +19,6 @@ 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>;
27
22
  /**
28
23
  * The buisness domain impacted.
29
24
  * e.g documents, authentication, ...
@@ -33,12 +33,6 @@ 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;
42
36
  /**
43
37
  * id of the payfiter who performed the audit log action, if signed as.
44
38
  * @type {string}
@@ -6,7 +6,6 @@ export interface IAuditLogCreationData {
6
6
  scope?: Record<string, unknown>;
7
7
  countryCode?: string;
8
8
  payload?: Record<string, unknown>;
9
- datadogPayload?: Record<string, unknown>;
10
9
  internalId?: string;
11
10
  isSystem?: boolean;
12
11
  namespace: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/audit-log",
3
- "version": "3.0.0-rc.9",
3
+ "version": "3.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PayFit/audit-logs.git",