@bigfootai/bigfoot-types 2.4.0 → 2.5.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.
Files changed (2) hide show
  1. package/model.ts +17 -9
  2. package/package.json +1 -1
package/model.ts CHANGED
@@ -98,6 +98,13 @@ export enum MarkType {
98
98
  Link = 'link',
99
99
  }
100
100
 
101
+ export enum MutationType {
102
+ Select = 'select',
103
+ Insert = 'insert',
104
+ Update = 'update',
105
+ Delete = 'delete',
106
+ }
107
+
101
108
  export interface Mark {
102
109
  type: string;
103
110
  attrs?: Map<string, string>;
@@ -119,7 +126,7 @@ export interface Document {
119
126
  export interface Editor {
120
127
  clientType: ClientType;
121
128
  clientId: string;
122
- tenantId: string;
129
+ tenantId?: string;
123
130
  }
124
131
 
125
132
  export interface SharingTag {
@@ -167,7 +174,7 @@ export interface EntityEntry extends MachineLearningEntry {
167
174
  }
168
175
 
169
176
  export interface MachineLearningEntry {
170
- highlights: Highlight[];
177
+ highlights?: Highlight[];
171
178
  }
172
179
 
173
180
  export class Primitive {
@@ -241,13 +248,14 @@ export class Article extends Primitive {
241
248
  }
242
249
 
243
250
  export class Note extends Primitive {
244
- tenantIdCreated: string; // The tenant._id that created the note initially
245
- document: string; // The note serialized as a JSON string
246
- editors: Editor[]; // The list of people/devices that were used in creating this note
247
- sharingTags: SharingTag[]; // The list of tags that this note is shared with
248
- _sharedTags?: string[]; // The list of tags that have sharing equal to true
249
- reactions?: Reaction[]; // Reactions from tenants to this primitive
250
- version: number; // An incrementing version number assigned by the editor
251
+ tenantIdCreated: string;
252
+ document: string;
253
+ editors: Editor[];
254
+ sharingTags: SharingTag[];
255
+ _sharedTags?: string[];
256
+ reactions?: Reaction[];
257
+ linkUrls?: string[];
258
+ version: number;
251
259
  }
252
260
 
253
261
  export class Block extends Note {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.4.0",
4
+ "version": "2.5.0",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",