@bigfootai/bigfoot-types 2.12.6 → 2.12.8

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 +42 -17
  2. package/model.ts +13 -0
  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.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Domain = exports.Tenant = exports.TenantQL = exports.Tag = exports.Provider = exports.ProviderQL = exports.Sync = exports.SyncQL = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = 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.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BlockProcessingResponse = void 0;
3
+ exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Domain = exports.Tenant = exports.TenantQL = exports.Tag = exports.Provider = exports.ProviderQL = exports.Sync = exports.SyncQL = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = 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.EditorInputQL = 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.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = 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.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = 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
@@ -182,6 +182,12 @@ type Highlight {
182
182
  indexStart: Int!
183
183
  indexEnd: Int!
184
184
  }`;
185
+ exports.EditorInputQL = `
186
+ input EditorInput {
187
+ clientType: String!
188
+ clientId: String!
189
+ tenantId: String
190
+ }`;
185
191
  exports.EditorQL = `
186
192
  type Editor {
187
193
  clientType: String!
@@ -270,6 +276,11 @@ type ReferenceBlock {
270
276
  version: Int!
271
277
  type: String!
272
278
  }`;
279
+ exports.ChangesInputQL = `
280
+ input ChangesInput {
281
+ steps: [String]!
282
+ clientIds: [String]!
283
+ }`;
273
284
  exports.ChangesQL = `
274
285
  type Changes {
275
286
  steps: [String]!
@@ -654,78 +665,89 @@ exports.Table = Table;
654
665
  // METADATA OBJECTS END
655
666
  // API OBJECTS START
656
667
  exports.FindArticleInputQL = `
657
- type FindArticleInput {
668
+ input FindArticleInput {
658
669
  originBlockId: String!
659
670
  type: String!
660
671
  }`;
661
672
  exports.FindArticlesInputQL = `
662
- type FindArticlesInput {
673
+ input FindArticlesInput {
663
674
  originBlockId: String!
664
675
  type: String!
665
676
  }`;
666
677
  exports.FindCalendarInputQL = `
667
- type FindCalendarInput {
678
+ input FindCalendarInput {
668
679
  _id: String!
669
680
  }`;
670
681
  exports.FindEventInputQL = `
671
- type FindEventInput {
682
+ input FindEventInput {
672
683
  _id: String!
673
684
  }`;
674
685
  exports.InsertNoteInputQL = `
675
- type InsertNoteInput {
686
+ input InsertNoteInput {
676
687
  document: String!
677
688
  editor: Editor!
678
689
  changes: Changes!
679
690
  }`;
680
691
  exports.UpsertNoteInputQL = `
681
- type UpsertNoteInput {
692
+ input UpsertNoteInput {
682
693
  _id: String!
683
694
  document: String!
684
695
  editor: Editor!
685
696
  changes: Changes!
686
697
  }`;
687
698
  exports.FindNoteInputQL = `
688
- type FindNoteInput {
699
+ input FindNoteInput {
689
700
  _id: String!
690
701
  archived: Boolean
691
702
  }`;
692
703
  exports.FindNotesInputQL = `
693
- type FindNotesInput {
704
+ input FindNotesInput {
694
705
  tagIds: [String]
695
706
  archived: Boolean
696
707
  }`;
697
708
  exports.ArchiveNoteInputQL = `
698
- type ArchiveNoteInput {
709
+ input ArchiveNoteInput {
710
+ _id: String!
711
+ archived: Boolean
712
+ }`;
713
+ exports.ArchiveNoteOutputQL = `
714
+ type ArchiveNoteOutput {
699
715
  _id: String!
700
716
  archived: Boolean
701
717
  }`;
702
718
  exports.FindProviderInputQL = `
703
- type FindProviderInput {
719
+ input FindProviderInput {
704
720
  provider: String!
705
721
  }`;
706
722
  exports.FindSyncInputQL = `
707
- type FindSyncInput {
723
+ input FindSyncInput {
708
724
  _id: String!
709
725
  }`;
710
726
  exports.FindTaskInputQL = `
711
- type FindTaskInput {
727
+ input FindTaskInput {
712
728
  _id: String!
713
729
  archived: Boolean
714
730
  }`;
715
731
  exports.FindTasksInputQL = `
716
- type FindTasksInput {
732
+ input FindTasksInput {
717
733
  originNoteId: String
718
734
  tagIds: [String]
719
735
  archived: Boolean
720
736
  }`;
721
737
  exports.ArchiveTaskInputQL = `
722
- type ArchiveTaskInput {
738
+ input ArchiveTaskInput {
739
+ _id: String!
740
+ archived: Boolean
741
+ }`;
742
+ exports.ArchiveTaskOutputQL = `
743
+ type ArchiveTaskOutput {
723
744
  _id: String!
724
745
  archived: Boolean
725
746
  }`;
726
747
  // THE GRAPH QL DEFINITIONS
727
748
  exports.GraphQLTypes = `
728
749
  ${exports.HighlightQL}
750
+ ${exports.EditorInputQL}
729
751
  ${exports.EditorQL}
730
752
  ${exports.SharingTagQL}
731
753
  ${exports.ReactionSkinToneQL}
@@ -738,6 +760,7 @@ ${exports.EntityEntryQL}
738
760
  ${exports.ProviderInfoQL}
739
761
  ${exports.ProviderRequestQL}
740
762
  ${exports.CredentialQL}
763
+ ${exports.ChangesInputQL}
741
764
  ${exports.ChangesQL}
742
765
  ${exports.PersonReferenceQL}
743
766
  ${exports.SyncQL}
@@ -765,8 +788,10 @@ ${exports.UpsertNoteInputQL}
765
788
  ${exports.FindNoteInputQL}
766
789
  ${exports.FindNotesInputQL}
767
790
  ${exports.ArchiveNoteInputQL}
791
+ ${exports.ArchiveNoteOutputQL}
768
792
  ${exports.FindProviderInputQL}
769
793
  ${exports.FindSyncInputQL}
770
794
  ${exports.FindTaskInputQL}
771
795
  ${exports.FindTasksInputQL}
772
- ${exports.ArchiveTaskInputQL}`;
796
+ ${exports.ArchiveTaskInputQL}
797
+ ${exports.ArchiveTaskOutputQL}`;
package/model.ts CHANGED
@@ -202,6 +202,12 @@ export interface Document {
202
202
  marks?: Mark[];
203
203
  }
204
204
 
205
+ export const EditorInputQL = `
206
+ input EditorInput {
207
+ clientType: String!
208
+ clientId: String!
209
+ tenantId: String
210
+ }`;
205
211
  export const EditorQL = `
206
212
  type Editor {
207
213
  clientType: String!
@@ -421,6 +427,11 @@ export interface ReferenceBlock {
421
427
  type: BlockType;
422
428
  }
423
429
 
430
+ export const ChangesInputQL = `
431
+ input ChangesInput {
432
+ steps: [String]!
433
+ clientIds: [String]!
434
+ }`;
424
435
  export const ChangesQL = `
425
436
  type Changes {
426
437
  steps: [String]!
@@ -1433,6 +1444,7 @@ export interface ArchiveTaskOutput {
1433
1444
  // THE GRAPH QL DEFINITIONS
1434
1445
  export const GraphQLTypes = `
1435
1446
  ${HighlightQL}
1447
+ ${EditorInputQL}
1436
1448
  ${EditorQL}
1437
1449
  ${SharingTagQL}
1438
1450
  ${ReactionSkinToneQL}
@@ -1445,6 +1457,7 @@ ${EntityEntryQL}
1445
1457
  ${ProviderInfoQL}
1446
1458
  ${ProviderRequestQL}
1447
1459
  ${CredentialQL}
1460
+ ${ChangesInputQL}
1448
1461
  ${ChangesQL}
1449
1462
  ${PersonReferenceQL}
1450
1463
  ${SyncQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.12.6",
4
+ "version": "2.12.8",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",