@payfit/audit-log 1.0.1-alpha → 1.0.2

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
@@ -42,7 +42,7 @@ export declare type IAuditLogAuthData = {
42
42
  holdingId?: string;
43
43
  companyId?: string;
44
44
  employeeId?: string;
45
- individualId: string;
45
+ individualId?: string;
46
46
  roleId?: string;
47
47
  /**
48
48
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/audit-log",
3
- "version": "1.0.1-alpha",
3
+ "version": "1.0.2",
4
4
  "description": "Library to handle audit logs at Payfit",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -16,7 +16,14 @@ async function main() {
16
16
  },
17
17
  account: {
18
18
  internalId: 'an internal id',
19
- individualId: 'an invidiaul id',
19
+ individualId: 'an individual id',
20
+ employeeId: 'an employee id',
21
+ holdingId: 'a holding id',
22
+ companyId: 'a company id',
23
+ roleId: 'a role id',
24
+ userIp: '127.0.0.1',
25
+ countryCode: 'FR',
26
+ email: 'truc@ok.fr'
20
27
  },
21
28
  scope: {
22
29
  employeeId: 'an employee id',
package/src/index.ts CHANGED
@@ -55,7 +55,7 @@ export type IAuditLogAuthData =
55
55
  holdingId?: string
56
56
  companyId?: string
57
57
  employeeId?: string
58
- individualId: string
58
+ individualId?: string
59
59
  roleId?: string
60
60
 
61
61
  /**