@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.
- package/model.ts +17 -9
- 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
|
|
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
|
|
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;
|
|
245
|
-
document: string;
|
|
246
|
-
editors: Editor[];
|
|
247
|
-
sharingTags: SharingTag[];
|
|
248
|
-
_sharedTags?: string[];
|
|
249
|
-
reactions?: Reaction[];
|
|
250
|
-
|
|
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 {
|