@bigfootai/bigfoot-types 2.11.6 → 2.12.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 (3) hide show
  1. package/model.js +187 -17
  2. package/model.ts +259 -19
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Website = exports.Thread = exports.Todo = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.TenantQL = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = exports.PrimitiveFields = exports.ChangesQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.SharingTagQL = exports.EditorQL = exports.RelationType = exports.EntityType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
4
- exports.GraphQLTypes = exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = void 0;
3
+ exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Domain = exports.Tenant = exports.TenantQL = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = exports.PrimitiveFields = exports.ChangesQL = exports.ReferenceBlockQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.MachineLearningEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.SharingTagQL = exports.EditorQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
4
+ exports.GraphQLTypes = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.InsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Website = exports.Thread = exports.Todo = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.TaskQL = exports.Note = void 0;
5
5
  const uuid_1 = require("uuid");
6
6
  /*
7
7
  These are the core primitives of our model. These represent the entities that show
@@ -177,18 +177,23 @@ var RelationType;
177
177
  RelationType["SpouseOf"] = "spouseOf";
178
178
  RelationType["SubsidiaryOf"] = "subsidiaryOf";
179
179
  })(RelationType || (exports.RelationType = RelationType = {}));
180
+ exports.HighlightQL = `
181
+ type Highlight {
182
+ indexStart: Int!
183
+ indexEnd: Int!
184
+ }`;
180
185
  exports.EditorQL = `
181
186
  type Editor {
182
187
  clientType: String!
183
188
  clientId: String!
184
- tenantId: String
189
+ tenantId: String
185
190
  }`;
186
191
  exports.SharingTagQL = `
187
192
  type SharingTag {
188
193
  tagId: String!
189
194
  isShared: Boolean!
190
- sharingApproach: String!
191
- sharingLevel: String!
195
+ sharingApproach: String!
196
+ sharingLevel: String!
192
197
  }`;
193
198
  exports.ReactionSkinToneQL = `
194
199
  type ReactionSkinTone {
@@ -200,6 +205,37 @@ type Reaction {
200
205
  skinTones: [ReactionSkinTone]!
201
206
  unified: String!
202
207
  }`;
208
+ exports.DocumentSentimentQL = `
209
+ type DocumentSentiment {
210
+ name: String!
211
+ score: Int!
212
+ }`;
213
+ exports.EntityReferenceQL = `
214
+ type EntityReference {
215
+ name: String!
216
+ type: String!
217
+ }`;
218
+ exports.ArgumentEntryQL = `
219
+ type ArgumentEntry {
220
+ text: String!
221
+ highlight: Highlight!
222
+ entities: [EntityReference]!
223
+ }`;
224
+ exports.RelationEntryQL = `
225
+ type RelationEntry {
226
+ type: String!
227
+ score: Int!
228
+ highlight: Highlight!
229
+ arguments: [ArgumentEntry]!
230
+ }`;
231
+ exports.MachineLearningEntryFields = `
232
+ highlights: [Highlight]`;
233
+ exports.EntityEntryQL = `
234
+ type EntityEntry {${exports.MachineLearningEntryFields}
235
+ name: String!
236
+ type: String!
237
+ score: Int!
238
+ }`;
203
239
  exports.ProviderInfoQL = `
204
240
  type ProviderInfo {
205
241
  provider: String!
@@ -228,6 +264,12 @@ type ConnectedProvider {
228
264
  dateCreated: Float
229
265
  dateUpdated: Float
230
266
  }`;
267
+ exports.ReferenceBlockQL = `
268
+ type ReferenceBlock {
269
+ id: String!
270
+ version: Int!
271
+ type: String!
272
+ }`;
231
273
  exports.ChangesQL = `
232
274
  type Changes {
233
275
  steps: [String]!
@@ -276,16 +318,14 @@ class Tag extends Primitive {
276
318
  }
277
319
  exports.Tag = Tag;
278
320
  exports.TenantQL = `
279
- type Tenant { ${exports.PrimitiveFields}
321
+ type Tenant {${exports.PrimitiveFields}
280
322
  domainMemberships: [String]!
281
323
  email: String!
282
- emailVerified: Boolean!
283
324
  domainIdEmail: String!
284
325
  tagId: String!
285
326
  picture: String
286
327
  familyName: String
287
328
  givenName: String
288
- connectedProviders: [ConnectedProvider]
289
329
  }`;
290
330
  class Tenant extends Primitive {
291
331
  constructor(domainMemberships, email, emailVerified, domainIdEmail, tagId) {
@@ -314,6 +354,20 @@ class Person extends Tag {
314
354
  }
315
355
  }
316
356
  exports.Person = Person;
357
+ exports.ArticleQL = `
358
+ type Article {${exports.PrimitiveFields}
359
+ referenceBlock: ReferenceBlock!
360
+ sentiment: DocumentSentiment
361
+ dates: [EntityEntry]
362
+ locations: [EntityEntry]
363
+ organizations: [EntityEntry]
364
+ names: [EntityEntry]
365
+ sentiments: [EntityEntry]
366
+ topics: [EntityEntry]
367
+ mentions: [EntityEntry]
368
+ relations: [RelationEntry]
369
+ linkUrls: [String]
370
+ }`;
317
371
  class Article extends Primitive {
318
372
  constructor(referenceBlock) {
319
373
  super();
@@ -321,17 +375,14 @@ class Article extends Primitive {
321
375
  }
322
376
  }
323
377
  exports.Article = Article;
324
- exports.BlockFields = `
378
+ exports.BlockFields = `${exports.PrimitiveFields}
325
379
  editors: [Editor]!
326
380
  sharingTags: [SharingTag]!
327
381
  version: Float!
328
382
  blockType: String!
329
- archived: Boolean!
330
- _ignoreUpdate: Boolean!
331
- document: String
332
- changes: Changes
333
- _sharedTags: [String]
334
- reactions: [Reaction]`;
383
+ archived: Boolean!
384
+ document: String
385
+ reactions: [Reaction]`;
335
386
  class Block extends Primitive {
336
387
  constructor(tenantIdCreated, editors, sharingTags, version, blockType) {
337
388
  super();
@@ -358,6 +409,19 @@ class BlockProcessingResponse {
358
409
  }
359
410
  }
360
411
  exports.BlockProcessingResponse = BlockProcessingResponse;
412
+ exports.BusinessObjectQL = `
413
+ type BusinessObject {${exports.BlockFields}
414
+ provider: String!
415
+ application: String!
416
+ uri: String!
417
+ processingStage: String!
418
+ processingAttempts: Int!
419
+ dateProcessed: Float!
420
+ externalId: String!
421
+ processingReason: String
422
+ iconUrl: String
423
+ parentId: String
424
+ }`;
361
425
  class BusinessObject extends Block {
362
426
  constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
363
427
  super(tenantIdCreated, editors, sharingTags, version, blockType);
@@ -373,7 +437,7 @@ class BusinessObject extends Block {
373
437
  }
374
438
  exports.BusinessObject = BusinessObject;
375
439
  exports.NoteQL = `
376
- type Note { ${exports.BlockFields}
440
+ type Note {${exports.BlockFields}
377
441
  }`;
378
442
  class Note extends Block {
379
443
  constructor(tenantIdCreated, editors, sharingTags, version) {
@@ -382,6 +446,17 @@ class Note extends Block {
382
446
  }
383
447
  }
384
448
  exports.Note = Note;
449
+ exports.TaskQL = `
450
+ type Task {${exports.BlockFields}
451
+ status: String!
452
+ dueDate: Int!
453
+ originNoteId: String!
454
+ snoozed: Boolean!
455
+ dateRemindMe: Int
456
+ recurrence: [String]
457
+ parentId: String
458
+ groupId: String
459
+ }`;
385
460
  class Task extends Block {
386
461
  constructor(tenantIdCreated, editors, sharingTags, version, originNoteId, dateDue) {
387
462
  super(tenantIdCreated, editors, sharingTags, version, BlockType.Task);
@@ -496,16 +571,111 @@ class Table extends BusinessObject {
496
571
  exports.Table = Table;
497
572
  //// FOR RECORDS END
498
573
  // METADATA OBJECTS END
574
+ // API OBJECTS START
575
+ exports.FindArticleInputQL = `
576
+ type FindArticleInput {
577
+ originBlockId: String!
578
+ type: String!
579
+ }`;
580
+ exports.FindArticlesInputQL = `
581
+ type FindArticlesInput {
582
+ originBlockId: String!
583
+ type: String!
584
+ }`;
585
+ exports.FindCalendarInputQL = `
586
+ type FindCalendarInput {
587
+ _id: String!
588
+ }`;
589
+ exports.FindEventInputQL = `
590
+ type FindEventInput {
591
+ _id: String!
592
+ }`;
593
+ exports.InsertNoteInputQL = `
594
+ type InsertNoteInput {
595
+ document: String!
596
+ editor: Editor!
597
+ changes: Changes!
598
+ }`;
599
+ exports.UpsertNoteInputQL = `
600
+ type UpsertNoteInput {
601
+ _id: String!
602
+ document: String!
603
+ editor: Editor!
604
+ changes: Changes!
605
+ }`;
606
+ exports.FindNoteInputQL = `
607
+ type FindNoteInput {
608
+ _id: String!
609
+ archived: Boolean
610
+ }`;
611
+ exports.FindNotesInputQL = `
612
+ type FindNotesInput {
613
+ tagIds: [String]
614
+ archived: Boolean
615
+ }`;
616
+ exports.ArchiveNoteInputQL = `
617
+ type ArchiveNoteInput {
618
+ _id: String!
619
+ archived: Boolean
620
+ }`;
621
+ exports.FindProviderInputQL = `
622
+ type FindProviderInput {
623
+ provider: String!
624
+ }`;
625
+ exports.FindSyncInputQL = `
626
+ type FindSyncInput {
627
+ _id: String!
628
+ }`;
629
+ exports.FindTaskInputQL = `
630
+ type FindTaskInput {
631
+ _id: String!
632
+ archived: Boolean
633
+ }`;
634
+ exports.FindTasksInputQL = `
635
+ type FindTasksInput {
636
+ originNoteId: String
637
+ tagIds: [String]
638
+ archived: Boolean
639
+ }`;
640
+ exports.ArchiveTaskInputQL = `
641
+ type ArchiveTaskInput {
642
+ _id: String!
643
+ archived: Boolean
644
+ }`;
645
+ // THE GRAPH QL DEFINITIONS
499
646
  exports.GraphQLTypes = `
647
+ ${exports.HighlightQL}
500
648
  ${exports.EditorQL}
501
649
  ${exports.SharingTagQL}
502
650
  ${exports.ReactionSkinToneQL}
503
651
  ${exports.ReactionQL}
652
+ ${exports.DocumentSentimentQL}
653
+ ${exports.EntityReferenceQL}
654
+ ${exports.ArgumentEntryQL}
655
+ ${exports.RelationEntryQL}
656
+ ${exports.EntityEntryQL}
504
657
  ${exports.ProviderInfoQL}
505
658
  ${exports.ProviderRequestQL}
506
659
  ${exports.CredentialQL}
507
660
  ${exports.ChangesQL}
508
661
  ${exports.ConnectedProviderQL}
662
+ ${exports.ReferenceBlockQL}
663
+ ${exports.ArticleQL}
509
664
  ${exports.TenantQL}
665
+ ${exports.BusinessObjectQL}
510
666
  ${exports.NoteQL}
511
- `;
667
+ ${exports.TaskQL}
668
+ ${exports.FindArticleInputQL}
669
+ ${exports.FindArticlesInputQL}
670
+ ${exports.FindCalendarInputQL}
671
+ ${exports.FindEventInputQL}
672
+ ${exports.InsertNoteInputQL}
673
+ ${exports.UpsertNoteInputQL}
674
+ ${exports.FindNoteInputQL}
675
+ ${exports.FindNotesInputQL}
676
+ ${exports.ArchiveNoteInputQL}
677
+ ${exports.FindProviderInputQL}
678
+ ${exports.FindSyncInputQL}
679
+ ${exports.FindTaskInputQL}
680
+ ${exports.FindTasksInputQL}
681
+ ${exports.ArchiveTaskInputQL}`;
package/model.ts CHANGED
@@ -184,6 +184,11 @@ export interface Mark {
184
184
  attrs?: Attrs;
185
185
  }
186
186
 
187
+ export const HighlightQL = `
188
+ type Highlight {
189
+ indexStart: Int!
190
+ indexEnd: Int!
191
+ }`;
187
192
  export interface Highlight {
188
193
  indexStart: number;
189
194
  indexEnd: number;
@@ -201,7 +206,7 @@ export const EditorQL = `
201
206
  type Editor {
202
207
  clientType: String!
203
208
  clientId: String!
204
- tenantId: String
209
+ tenantId: String
205
210
  }`;
206
211
  export interface Editor {
207
212
  clientType: ClientType;
@@ -213,8 +218,8 @@ export const SharingTagQL = `
213
218
  type SharingTag {
214
219
  tagId: String!
215
220
  isShared: Boolean!
216
- sharingApproach: String!
217
- sharingLevel: String!
221
+ sharingApproach: String!
222
+ sharingLevel: String!
218
223
  }`;
219
224
  export interface SharingTag {
220
225
  tagId: string;
@@ -261,22 +266,45 @@ export interface Step {
261
266
  status: StepStatus;
262
267
  }
263
268
 
269
+ export const DocumentSentimentQL = `
270
+ type DocumentSentiment {
271
+ name: String!
272
+ score: Int!
273
+ }`;
264
274
  export interface DocumentSentiment {
265
275
  name: string;
266
276
  score: number;
267
277
  }
268
278
 
279
+ export const EntityReferenceQL = `
280
+ type EntityReference {
281
+ name: String!
282
+ type: String!
283
+ }`;
269
284
  export interface EntityReference {
270
285
  name: string;
271
286
  type: EntityType;
272
287
  }
273
288
 
289
+ export const ArgumentEntryQL = `
290
+ type ArgumentEntry {
291
+ text: String!
292
+ highlight: Highlight!
293
+ entities: [EntityReference]!
294
+ }`;
274
295
  export interface ArgumentEntry {
275
296
  text: string;
276
297
  highlight: Highlight;
277
298
  entities: EntityReference[];
278
299
  }
279
300
 
301
+ export const RelationEntryQL = `
302
+ type RelationEntry {
303
+ type: String!
304
+ score: Int!
305
+ highlight: Highlight!
306
+ arguments: [ArgumentEntry]!
307
+ }`;
280
308
  export interface RelationEntry {
281
309
  type: RelationType;
282
310
  score: number;
@@ -284,6 +312,18 @@ export interface RelationEntry {
284
312
  arguments: ArgumentEntry[];
285
313
  }
286
314
 
315
+ export const MachineLearningEntryFields = `
316
+ highlights: [Highlight]`;
317
+ export interface MachineLearningEntry {
318
+ highlights?: Highlight[];
319
+ }
320
+
321
+ export const EntityEntryQL = `
322
+ type EntityEntry {${MachineLearningEntryFields}
323
+ name: String!
324
+ type: String!
325
+ score: Int!
326
+ }`;
287
327
  export interface EntityEntry extends MachineLearningEntry {
288
328
  name: string;
289
329
  type: EntityType;
@@ -294,10 +334,6 @@ export interface DateEntityEntry extends EntityEntry {
294
334
  date: number;
295
335
  }
296
336
 
297
- export interface MachineLearningEntry {
298
- highlights?: Highlight[];
299
- }
300
-
301
337
  export const ProviderInfoQL = `
302
338
  type ProviderInfo {
303
339
  provider: String!
@@ -373,6 +409,12 @@ export interface ConnectedProvider {
373
409
  dateUpdated: number;
374
410
  }
375
411
 
412
+ export const ReferenceBlockQL = `
413
+ type ReferenceBlock {
414
+ id: String!
415
+ version: Int!
416
+ type: String!
417
+ }`;
376
418
  export interface ReferenceBlock {
377
419
  id: string;
378
420
  version: number;
@@ -465,16 +507,14 @@ export class Tag extends Primitive {
465
507
  }
466
508
 
467
509
  export const TenantQL = `
468
- type Tenant { ${PrimitiveFields}
510
+ type Tenant {${PrimitiveFields}
469
511
  domainMemberships: [String]!
470
512
  email: String!
471
- emailVerified: Boolean!
472
513
  domainIdEmail: String!
473
514
  tagId: String!
474
515
  picture: String
475
516
  familyName: String
476
517
  givenName: String
477
- connectedProviders: [ConnectedProvider]
478
518
  }`;
479
519
  export class Tenant extends Primitive {
480
520
  domainMemberships: string[]; // The list of all domains this tenant belongs
@@ -534,6 +574,20 @@ export class Person extends Tag {
534
574
  }
535
575
  }
536
576
 
577
+ export const ArticleQL = `
578
+ type Article {${PrimitiveFields}
579
+ referenceBlock: ReferenceBlock!
580
+ sentiment: DocumentSentiment
581
+ dates: [EntityEntry]
582
+ locations: [EntityEntry]
583
+ organizations: [EntityEntry]
584
+ names: [EntityEntry]
585
+ sentiments: [EntityEntry]
586
+ topics: [EntityEntry]
587
+ mentions: [EntityEntry]
588
+ relations: [RelationEntry]
589
+ linkUrls: [String]
590
+ }`;
537
591
  export class Article extends Primitive {
538
592
  referenceBlock: ReferenceBlock;
539
593
  changes?: Changes;
@@ -558,17 +612,14 @@ export class Article extends Primitive {
558
612
  }
559
613
  }
560
614
 
561
- export const BlockFields = `
615
+ export const BlockFields = `${PrimitiveFields}
562
616
  editors: [Editor]!
563
617
  sharingTags: [SharingTag]!
564
618
  version: Float!
565
619
  blockType: String!
566
- archived: Boolean!
567
- _ignoreUpdate: Boolean!
568
- document: String
569
- changes: Changes
570
- _sharedTags: [String]
571
- reactions: [Reaction]`;
620
+ archived: Boolean!
621
+ document: String
622
+ reactions: [Reaction]`;
572
623
  export class Block extends Primitive {
573
624
  editors: Editor[];
574
625
  sharingTags: SharingTag[];
@@ -620,6 +671,19 @@ export class BlockProcessingResponse {
620
671
  }
621
672
  }
622
673
 
674
+ export const BusinessObjectQL = `
675
+ type BusinessObject {${BlockFields}
676
+ provider: String!
677
+ application: String!
678
+ uri: String!
679
+ processingStage: String!
680
+ processingAttempts: Int!
681
+ dateProcessed: Float!
682
+ externalId: String!
683
+ processingReason: String
684
+ iconUrl: String
685
+ parentId: String
686
+ }`;
623
687
  export class BusinessObject extends Block {
624
688
  provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
625
689
  application: string; // A unique string representing the provider application e.g. "service", "jira", etc
@@ -660,7 +724,7 @@ export class BusinessObject extends Block {
660
724
  }
661
725
 
662
726
  export const NoteQL = `
663
- type Note { ${BlockFields}
727
+ type Note {${BlockFields}
664
728
  }`;
665
729
  export class Note extends Block {
666
730
  constructor(
@@ -675,6 +739,17 @@ export class Note extends Block {
675
739
  }
676
740
  }
677
741
 
742
+ export const TaskQL = `
743
+ type Task {${BlockFields}
744
+ status: String!
745
+ dueDate: Int!
746
+ originNoteId: String!
747
+ snoozed: Boolean!
748
+ dateRemindMe: Int
749
+ recurrence: [String]
750
+ parentId: String
751
+ groupId: String
752
+ }`;
678
753
  export class Task extends Block {
679
754
  status: TaskStatus;
680
755
  dateDue: number;
@@ -1122,16 +1197,181 @@ export class Table extends BusinessObject {
1122
1197
 
1123
1198
  // METADATA OBJECTS END
1124
1199
 
1200
+ // API OBJECTS START
1201
+ export const FindArticleInputQL = `
1202
+ type FindArticleInput {
1203
+ originBlockId: String!
1204
+ type: String!
1205
+ }`;
1206
+ export interface FindArticleInput {
1207
+ originBlockId: string;
1208
+ type: BlockType;
1209
+ }
1210
+
1211
+ export const FindArticlesInputQL = `
1212
+ type FindArticlesInput {
1213
+ originBlockId: String!
1214
+ type: String!
1215
+ }`;
1216
+ export interface FindArticlesInput {
1217
+ originBlockId: string;
1218
+ type: BlockType;
1219
+ }
1220
+
1221
+ export const FindCalendarInputQL = `
1222
+ type FindCalendarInput {
1223
+ _id: String!
1224
+ }`;
1225
+ export interface FindCalendarInput {
1226
+ _id: string;
1227
+ }
1228
+
1229
+ export const FindEventInputQL = `
1230
+ type FindEventInput {
1231
+ _id: String!
1232
+ }`;
1233
+ export interface FindEventInput {
1234
+ _id: string;
1235
+ }
1236
+
1237
+ export const InsertNoteInputQL = `
1238
+ type InsertNoteInput {
1239
+ document: String!
1240
+ editor: Editor!
1241
+ changes: Changes!
1242
+ }`;
1243
+ export interface InsertNoteInput {
1244
+ document: string;
1245
+ editor: Editor;
1246
+ changes: Changes;
1247
+ }
1248
+
1249
+ export const UpsertNoteInputQL = `
1250
+ type UpsertNoteInput {
1251
+ _id: String!
1252
+ document: String!
1253
+ editor: Editor!
1254
+ changes: Changes!
1255
+ }`;
1256
+ export interface UpsertNoteInput {
1257
+ _id: string;
1258
+ document: string;
1259
+ editor: Editor;
1260
+ version: number;
1261
+ }
1262
+
1263
+ export const FindNoteInputQL = `
1264
+ type FindNoteInput {
1265
+ _id: String!
1266
+ archived: Boolean
1267
+ }`;
1268
+ export interface FindNoteInput {
1269
+ _id: string;
1270
+ archived?: boolean;
1271
+ }
1272
+
1273
+ export const FindNotesInputQL = `
1274
+ type FindNotesInput {
1275
+ tagIds: [String]
1276
+ archived: Boolean
1277
+ }`;
1278
+ export interface FindNotesInput {
1279
+ tagIds?: string[];
1280
+ archived?: boolean;
1281
+ }
1282
+
1283
+ export const ArchiveNoteInputQL = `
1284
+ type ArchiveNoteInput {
1285
+ _id: String!
1286
+ archived: Boolean
1287
+ }`;
1288
+ export interface ArchiveNoteInput {
1289
+ _id: string;
1290
+ archive?: boolean;
1291
+ }
1292
+
1293
+ export const FindProviderInputQL = `
1294
+ type FindProviderInput {
1295
+ provider: String!
1296
+ }`;
1297
+ export interface FindProviderInput {
1298
+ provider: string;
1299
+ }
1300
+
1301
+ export const FindSyncInputQL = `
1302
+ type FindSyncInput {
1303
+ _id: String!
1304
+ }`;
1305
+ export interface FindSyncInput {
1306
+ _id: string;
1307
+ }
1308
+
1309
+ export const FindTaskInputQL = `
1310
+ type FindTaskInput {
1311
+ _id: String!
1312
+ archived: Boolean
1313
+ }`;
1314
+ export interface FindTaskInput {
1315
+ _id: string;
1316
+ archived?: boolean;
1317
+ }
1318
+
1319
+ export const FindTasksInputQL = `
1320
+ type FindTasksInput {
1321
+ originNoteId: String
1322
+ tagIds: [String]
1323
+ archived: Boolean
1324
+ }`;
1325
+ export interface FindTasksInput {
1326
+ originNoteId?: string;
1327
+ tagIds?: string[];
1328
+ archived?: boolean;
1329
+ }
1330
+
1331
+ export const ArchiveTaskInputQL = `
1332
+ type ArchiveTaskInput {
1333
+ _id: String!
1334
+ archived: Boolean
1335
+ }`;
1336
+ export interface ArchiveTaskInput {
1337
+ _id: string;
1338
+ archive?: boolean;
1339
+ }
1340
+
1341
+ // THE GRAPH QL DEFINITIONS
1125
1342
  export const GraphQLTypes = `
1343
+ ${HighlightQL}
1126
1344
  ${EditorQL}
1127
1345
  ${SharingTagQL}
1128
1346
  ${ReactionSkinToneQL}
1129
1347
  ${ReactionQL}
1348
+ ${DocumentSentimentQL}
1349
+ ${EntityReferenceQL}
1350
+ ${ArgumentEntryQL}
1351
+ ${RelationEntryQL}
1352
+ ${EntityEntryQL}
1130
1353
  ${ProviderInfoQL}
1131
1354
  ${ProviderRequestQL}
1132
1355
  ${CredentialQL}
1133
1356
  ${ChangesQL}
1134
1357
  ${ConnectedProviderQL}
1358
+ ${ReferenceBlockQL}
1359
+ ${ArticleQL}
1135
1360
  ${TenantQL}
1361
+ ${BusinessObjectQL}
1136
1362
  ${NoteQL}
1137
- `;
1363
+ ${TaskQL}
1364
+ ${FindArticleInputQL}
1365
+ ${FindArticlesInputQL}
1366
+ ${FindCalendarInputQL}
1367
+ ${FindEventInputQL}
1368
+ ${InsertNoteInputQL}
1369
+ ${UpsertNoteInputQL}
1370
+ ${FindNoteInputQL}
1371
+ ${FindNotesInputQL}
1372
+ ${ArchiveNoteInputQL}
1373
+ ${FindProviderInputQL}
1374
+ ${FindSyncInputQL}
1375
+ ${FindTaskInputQL}
1376
+ ${FindTasksInputQL}
1377
+ ${ArchiveTaskInputQL}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.11.6",
4
+ "version": "2.12.0",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",