@data-fair/lib-common-types 1.8.0 → 1.8.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.
@@ -53,6 +53,7 @@ export type Event = {
53
53
  [k: string]: unknown;
54
54
  };
55
55
  resource?: TheMainResourceConcernedByTheEvent;
56
+ subscribedRecipient?: OptionalRecipientTargetOfTheEvent;
56
57
  }
57
58
  export type InternationalizedTitle = {
58
59
  /**
@@ -128,4 +129,15 @@ export type TheMainResourceConcernedByTheEvent = {
128
129
  */
129
130
  title?: string;
130
131
  }
132
+ export type OptionalRecipientTargetOfTheEvent = {
133
+ /**
134
+ * The unique id of the user
135
+ */
136
+ id: string;
137
+ /**
138
+ * The display name of the user
139
+ */
140
+ name?: string;
141
+ [k: string]: unknown;
142
+ }
131
143
 
package/event/schema.d.ts CHANGED
@@ -145,6 +145,22 @@ declare const _default: {
145
145
  };
146
146
  };
147
147
  };
148
+ subscribedRecipient: {
149
+ type: string;
150
+ title: string;
151
+ required: string[];
152
+ readOnly: boolean;
153
+ properties: {
154
+ id: {
155
+ type: string;
156
+ description: string;
157
+ };
158
+ name: {
159
+ type: string;
160
+ description: string;
161
+ };
162
+ };
163
+ };
148
164
  };
149
165
  $defs: {
150
166
  sender: {
package/event/schema.js CHANGED
@@ -124,6 +124,22 @@ export default {
124
124
  description: 'The display name of the resource'
125
125
  }
126
126
  }
127
+ },
128
+ subscribedRecipient: {
129
+ type: 'object',
130
+ title: 'Optional recipient target of the event',
131
+ required: ['id'],
132
+ readOnly: true,
133
+ properties: {
134
+ id: {
135
+ type: 'string',
136
+ description: 'The unique id of the user'
137
+ },
138
+ name: {
139
+ type: 'string',
140
+ description: 'The display name of the user'
141
+ }
142
+ }
127
143
  }
128
144
  },
129
145
  $defs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-common-types",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Shared schemas and built type definitions in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "scripts": {