@bigfootai/bigfoot-types 2.3.1 → 2.3.3

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.
Files changed (2) hide show
  1. package/model.ts +9 -3
  2. package/package.json +1 -1
package/model.ts CHANGED
@@ -27,6 +27,11 @@ export enum TagType {
27
27
  Topic = 'topic',
28
28
  }
29
29
 
30
+ export enum ClientType {
31
+ Web = 'web',
32
+ Mobile = 'mobile',
33
+ }
34
+
30
35
  export enum SharingLevel {
31
36
  ReadOnly = 0,
32
37
  Editor = 1,
@@ -90,9 +95,9 @@ export interface Document {
90
95
  }
91
96
 
92
97
  export interface Editor {
93
- client: string;
98
+ clientType: ClientType;
94
99
  clientId: string;
95
- tagId: string;
100
+ tenantId: string;
96
101
  }
97
102
 
98
103
  export interface SharingTag {
@@ -145,7 +150,7 @@ export class Primitive {
145
150
  }
146
151
 
147
152
  export class Tag extends Primitive {
148
- tenantIdCreated: string; // The tenant._id that created the note initially
153
+ tenantIdCreated: string; // The tenant._id that created the tag initially
149
154
  alias: string;
150
155
  friendlyName?: string;
151
156
  sharingDomains?: SharingDomain[]; // The domains this tag is shared with plus domain settings for the tag
@@ -190,6 +195,7 @@ export class Note extends Primitive {
190
195
  document: Document;
191
196
  editors: Editor[]; // The list of people/devices that were used in creating this note
192
197
  sharingTags: SharingTag[]; // The list of tags that this note is shared with
198
+ _sharedTags?: string[]; // The list of tags that have sharing equal to true
193
199
  reactions?: Reaction[]; // Reactions from tenants to this primitive
194
200
  version: number; // An incrementing version number assigned by the editor
195
201
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.3.1",
4
+ "version": "2.3.3",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",