@data-fair/lib-common-types 1.8.2 → 1.8.4

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.
@@ -10,6 +10,7 @@ export type Type = "user" | "organization";
10
10
  export type UserID = string;
11
11
  export type UserName = string;
12
12
  export type UserEmail = string;
13
+ export type UserWasWorkingAsAPlatformAdmin = boolean;
13
14
  export type OrganizationID = string;
14
15
  export type OrganizationName = string;
15
16
  export type OrganizationDepartment = string;
@@ -27,10 +28,21 @@ export type Event = {
27
28
  icon?: URLOfEventIcon;
28
29
  sender: Emitter;
29
30
  originator?: {
31
+ internalProcess?: {
32
+ id?: string;
33
+ title?: string;
34
+ [k: string]: unknown;
35
+ };
36
+ apiKey?: {
37
+ id?: string;
38
+ title?: string;
39
+ [k: string]: unknown;
40
+ };
30
41
  user?: {
31
42
  id?: UserID;
32
43
  name?: UserName;
33
44
  email?: UserEmail;
45
+ admin?: UserWasWorkingAsAPlatformAdmin;
34
46
  [k: string]: unknown;
35
47
  };
36
48
  organization?: {
package/event/schema.d.ts CHANGED
@@ -58,6 +58,28 @@ declare const _default: {
58
58
  originator: {
59
59
  type: string;
60
60
  properties: {
61
+ internalProcess: {
62
+ type: string;
63
+ properties: {
64
+ id: {
65
+ type: string;
66
+ };
67
+ title: {
68
+ type: string;
69
+ };
70
+ };
71
+ };
72
+ apiKey: {
73
+ type: string;
74
+ properties: {
75
+ id: {
76
+ type: string;
77
+ };
78
+ title: {
79
+ type: string;
80
+ };
81
+ };
82
+ };
61
83
  user: {
62
84
  type: string;
63
85
  properties: {
@@ -73,6 +95,10 @@ declare const _default: {
73
95
  type: string;
74
96
  title: string;
75
97
  };
98
+ admin: {
99
+ type: string;
100
+ title: string;
101
+ };
76
102
  };
77
103
  };
78
104
  organization: {
package/event/schema.js CHANGED
@@ -42,6 +42,20 @@ export default {
42
42
  originator: {
43
43
  type: 'object',
44
44
  properties: {
45
+ internalProcess: {
46
+ type: 'object',
47
+ properties: {
48
+ id: { type: 'string' },
49
+ title: { type: 'string' }
50
+ }
51
+ },
52
+ apiKey: {
53
+ type: 'object',
54
+ properties: {
55
+ id: { type: 'string' },
56
+ title: { type: 'string' }
57
+ }
58
+ },
45
59
  user: {
46
60
  type: 'object',
47
61
  properties: {
@@ -56,6 +70,10 @@ export default {
56
70
  email: {
57
71
  type: 'string',
58
72
  title: 'User email'
73
+ },
74
+ admin: {
75
+ type: 'boolean',
76
+ title: 'User was working as a platform admin'
59
77
  }
60
78
  }
61
79
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-common-types",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "Shared schemas and built type definitions in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "scripts": {