@basementuniverse/jsonpad-realtime-sdk 1.3.1 → 1.4.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.
|
@@ -6,12 +6,20 @@ type EventDetail<T extends object> = {
|
|
|
6
6
|
|
|
7
7
|
type EventType = 'list-created' | 'list-updated' | 'list-deleted' | 'item-created' | 'item-updated' | 'item-restored' | 'item-deleted';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* An item, as it arrives in a realtime event
|
|
11
|
+
*
|
|
12
|
+
* Realtime clients authenticate with an API token and never with an identity,
|
|
13
|
+
* so any value covered by a guard index in the item's list has already been
|
|
14
|
+
* removed from `data` before the event was published
|
|
15
|
+
*/
|
|
9
16
|
type Item = {
|
|
10
17
|
id: string;
|
|
11
18
|
createdAt: Date;
|
|
12
19
|
updatedAt: Date;
|
|
13
20
|
data: any;
|
|
14
21
|
description: string;
|
|
22
|
+
tags: string[];
|
|
15
23
|
version: string;
|
|
16
24
|
readonly: boolean;
|
|
17
25
|
activated: boolean;
|
|
@@ -49,6 +57,7 @@ type List = {
|
|
|
49
57
|
};
|
|
50
58
|
name: string;
|
|
51
59
|
description: string;
|
|
60
|
+
tags: string[];
|
|
52
61
|
pathName: string;
|
|
53
62
|
schema: any;
|
|
54
63
|
pinned: boolean;
|
package/package.json
CHANGED
package/src/types/item.ts
CHANGED