@data-fair/lib-common-types 1.10.1 → 1.10.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.
@@ -26,7 +26,7 @@ export type Event = {
26
26
  body?: Content | InternationalizedContent;
27
27
  htmlBody?: HTMLContent | InternationalizedHTMLContent;
28
28
  icon?: URLOfEventIcon;
29
- sender: Emitter;
29
+ sender?: Emitter;
30
30
  originator?: {
31
31
  internalProcess?: {
32
32
  id?: string;
package/event/schema.js CHANGED
@@ -12,7 +12,7 @@ export default {
12
12
  title: 'Event',
13
13
  type: 'object',
14
14
  additionalProperties: false,
15
- required: ['title', 'topic', 'sender', 'date'],
15
+ required: ['title', 'topic', 'date'],
16
16
  properties: {
17
17
  title: {
18
18
  oneOf: [{
@@ -36,7 +36,7 @@ export default {
36
36
  type: 'string',
37
37
  title: 'URL of event icon'
38
38
  },
39
- // sender is the owner of the topic
39
+ // sender is the owner of the topic, topic is global if no sender is given
40
40
  sender: { $ref: '#/$defs/sender' },
41
41
  // originator is the account/user who triggered the event
42
42
  originator: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-common-types",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "Shared schemas and built type definitions in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "scripts": {