@bigfootai/bigfoot-types 5.0.22 → 5.1.1

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 +96 -2
  2. package/model.ts +151 -1
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = exports.TenantSettingQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.RecordType = exports.ThumbsDirection = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.AccessType = exports.SharingLevel = exports.ClientType = exports.ExportType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
4
4
  exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockQL = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.DashboardTagSubscriptionQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = void 0;
5
5
  exports.TableQL = exports.TableFields = exports.Record = exports.RecordQL = exports.RecordInputQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldValueInputQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DashboardMetadata = exports.DashboardMetadataQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Dashboard = exports.DashboardQL = exports.BlockDataQL = exports.Document = exports.DocumentQL = 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.Section = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFieldsForUpsert = exports.BusinessObjectFields = void 0;
6
- exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveFolderOutputQL = exports.ArchiveFolderInputQL = exports.FindFoldersInputQL = exports.FindFolderInputQL = exports.UpsertFolderInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveBlockOutputQL = exports.ArchiveBlockInputQL = exports.FindBlocksInputQL = exports.FindBlockInputQL = exports.UpsertNoteInputQL = exports.FindDashboardInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = void 0;
6
+ exports.BusinessObjectFilterInputQL = exports.StringFilterInputQL = exports.NumberFilterInputQL = exports.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.BlockTypeQL = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveFolderOutputQL = exports.ArchiveFolderInputQL = exports.FindFoldersInputQL = exports.FindFolderInputQL = exports.UpsertFolderInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveBlockOutputQL = exports.ArchiveBlockInputQL = exports.FindBlocksInputQL = exports.FindBlockInputQL = exports.UpsertNoteInputQL = exports.FindDashboardInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = void 0;
7
+ exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchInputQL = exports.SortOptionInputQL = void 0;
7
8
  const uuid_1 = require("uuid");
8
9
  /*
9
10
  These are the core primitives of our model. These represent the entities that show
@@ -1541,6 +1542,91 @@ input SearchInput {
1541
1542
  page: Int
1542
1543
  size: Int
1543
1544
  }`;
1545
+ exports.BlockTypeQL = `
1546
+ enum BlockType {
1547
+ ${BlockType.Calendar.toUpperCase()}
1548
+ ${BlockType.Conference.toUpperCase()}
1549
+ ${BlockType.Dashboard.toUpperCase()}
1550
+ ${BlockType.Document.toUpperCase()}
1551
+ ${BlockType.Event.toUpperCase()}
1552
+ ${BlockType.Folder.toUpperCase()}
1553
+ ${BlockType.Note.toUpperCase()}
1554
+ ${BlockType.Record.toUpperCase()}
1555
+ ${BlockType.Search.toUpperCase()}
1556
+ ${BlockType.Section.toUpperCase()}
1557
+ ${BlockType.Table.toUpperCase()}
1558
+ ${BlockType.Task.toUpperCase()}
1559
+ ${BlockType.Template.toUpperCase()}
1560
+ ${BlockType.Thread.toUpperCase()}
1561
+ ${BlockType.Todo.toUpperCase()}
1562
+ ${BlockType.Website.toUpperCase()}
1563
+ }`;
1564
+ exports.TaskStatusQL = `
1565
+ enum TaskStatus {
1566
+ ${TaskStatus.Completed.toUpperCase()}
1567
+ ${TaskStatus.InProgress.toUpperCase()}
1568
+ ${TaskStatus.NotStarted.toUpperCase()}
1569
+ }`;
1570
+ exports.OrderDirectionQL = `
1571
+ enum OrderDirection {
1572
+ ASC
1573
+ DESC
1574
+ }`;
1575
+ var OrderDirection;
1576
+ (function (OrderDirection) {
1577
+ OrderDirection["Ascending"] = "asc";
1578
+ OrderDirection["Descending"] = "desc";
1579
+ })(OrderDirection || (exports.OrderDirection = OrderDirection = {}));
1580
+ exports.NumberFilterInputQL = `
1581
+ input NumberFilterInput {
1582
+ gt: Float
1583
+ gte: Float
1584
+ eq: Float
1585
+ lte: Float
1586
+ lt: Float
1587
+ }`;
1588
+ exports.StringFilterInputQL = `
1589
+ input StringFilterInput {
1590
+ eq: String
1591
+ contains: String
1592
+ startsWith: String
1593
+ endsWith: String
1594
+ }`;
1595
+ exports.BusinessObjectFilterInputQL = `
1596
+ input BusinessObjectFilterInput {
1597
+ url: String
1598
+ blockType: BlockType
1599
+ provider: String
1600
+ metadataType: String
1601
+ }`;
1602
+ exports.SortOptionInputQL = `
1603
+ input SortOptionInput {
1604
+ field: String
1605
+ order: OrderDirection
1606
+ }`;
1607
+ exports.GraphSearchInputQL = `
1608
+ input GraphSearchInput {
1609
+ search: String
1610
+ _ids: [String]
1611
+ tenantIdCreateds: [String]
1612
+ tagIds: [String]
1613
+ blockTypes: [BlockType]
1614
+ statuses: [TaskStatus]
1615
+ businessObjects: [BusinessObjectFilterInput]
1616
+ originReferenceBlock: ReferenceBlock
1617
+ editorId: String
1618
+ editorGroupId: String
1619
+ parentId: String
1620
+ favorite: Boolean
1621
+ snoozed: Boolean
1622
+ dateDue: NumberFilterInput
1623
+ dateCreated: NumberFilterInput
1624
+ dateUpdated: NumberFilterInput
1625
+ emails: [StringFilterInput]
1626
+ sort: [SortOptionInput]
1627
+ page: Int
1628
+ size: Int
1629
+ }`;
1544
1630
  exports.UpdateTagSharingInputQL = `
1545
1631
  input UpdateTagSharingInput {
1546
1632
  _id: String!
@@ -1664,4 +1750,12 @@ ${exports.ArchiveSearchInputQL}
1664
1750
  ${exports.ArchiveSearchOutputQL}
1665
1751
  ${exports.SearchTagsInputQL}
1666
1752
  ${exports.SearchInputQL}
1667
- ${exports.UpdateTagSharingInputQL}`;
1753
+ ${exports.UpdateTagSharingInputQL}
1754
+ ${exports.BlockTypeQL}
1755
+ ${exports.TaskStatusQL}
1756
+ ${exports.OrderDirectionQL}
1757
+ ${exports.NumberFilterInputQL}
1758
+ ${exports.StringFilterInputQL}
1759
+ ${exports.BusinessObjectFilterInputQL}
1760
+ ${exports.SortOptionInputQL}
1761
+ ${exports.GraphSearchInputQL}`;
package/model.ts CHANGED
@@ -2750,6 +2750,148 @@ export interface SearchInput {
2750
2750
  size?: number;
2751
2751
  }
2752
2752
 
2753
+ export const BlockTypeQL = `
2754
+ enum BlockType {
2755
+ ${BlockType.Calendar.toUpperCase()}
2756
+ ${BlockType.Conference.toUpperCase()}
2757
+ ${BlockType.Dashboard.toUpperCase()}
2758
+ ${BlockType.Document.toUpperCase()}
2759
+ ${BlockType.Event.toUpperCase()}
2760
+ ${BlockType.Folder.toUpperCase()}
2761
+ ${BlockType.Note.toUpperCase()}
2762
+ ${BlockType.Record.toUpperCase()}
2763
+ ${BlockType.Search.toUpperCase()}
2764
+ ${BlockType.Section.toUpperCase()}
2765
+ ${BlockType.Table.toUpperCase()}
2766
+ ${BlockType.Task.toUpperCase()}
2767
+ ${BlockType.Template.toUpperCase()}
2768
+ ${BlockType.Thread.toUpperCase()}
2769
+ ${BlockType.Todo.toUpperCase()}
2770
+ ${BlockType.Website.toUpperCase()}
2771
+ }`;
2772
+
2773
+ export const TaskStatusQL = `
2774
+ enum TaskStatus {
2775
+ ${TaskStatus.Completed.toUpperCase()}
2776
+ ${TaskStatus.InProgress.toUpperCase()}
2777
+ ${TaskStatus.NotStarted.toUpperCase()}
2778
+ }`;
2779
+
2780
+ export const OrderDirectionQL = `
2781
+ enum OrderDirection {
2782
+ ASC
2783
+ DESC
2784
+ }`;
2785
+ export enum OrderDirection {
2786
+ Ascending = 'asc',
2787
+ Descending = 'desc',
2788
+ }
2789
+
2790
+ export const NumberFilterInputQL = `
2791
+ input NumberFilterInput {
2792
+ gt: Float
2793
+ gte: Float
2794
+ eq: Float
2795
+ lte: Float
2796
+ lt: Float
2797
+ }`;
2798
+ export interface NumberFilterInput {
2799
+ gt?: number;
2800
+ gte?: number;
2801
+ eq?: number;
2802
+ lte?: number;
2803
+ lt?: number;
2804
+ }
2805
+
2806
+ export const StringFilterInputQL = `
2807
+ input StringFilterInput {
2808
+ eq: String
2809
+ contains: String
2810
+ startsWith: String
2811
+ endsWith: String
2812
+ }`;
2813
+ export interface StringFilterInput {
2814
+ eq?: string;
2815
+ contains?: string;
2816
+ startsWith?: string;
2817
+ endsWith?: string;
2818
+ }
2819
+
2820
+ export const BusinessObjectFilterInputQL = `
2821
+ input BusinessObjectFilterInput {
2822
+ url: String
2823
+ blockType: BlockType
2824
+ provider: String
2825
+ metadataType: String
2826
+ }`;
2827
+ export interface BusinessObjectFilterInput {
2828
+ url?: string;
2829
+ blockType?: string;
2830
+ provider?: string;
2831
+ metadataType?: string;
2832
+ }
2833
+
2834
+ export const SortOptionInputQL = `
2835
+ input SortOptionInput {
2836
+ field: String
2837
+ order: OrderDirection
2838
+ }`;
2839
+ export interface SortOptionInput {
2840
+ field: string;
2841
+ order: OrderDirection;
2842
+ }
2843
+
2844
+ export const GraphSearchInputQL = `
2845
+ input GraphSearchInput {
2846
+ search: String
2847
+ _ids: [String]
2848
+ tenantIdCreateds: [String]
2849
+ tagIds: [String]
2850
+ blockTypes: [BlockType]
2851
+ statuses: [TaskStatus]
2852
+ businessObjects: [BusinessObjectFilterInput]
2853
+ originReferenceBlock: ReferenceBlock
2854
+ editorId: String
2855
+ editorGroupId: String
2856
+ parentId: String
2857
+ favorite: Boolean
2858
+ snoozed: Boolean
2859
+ dateDue: NumberFilterInput
2860
+ dateCreated: NumberFilterInput
2861
+ dateUpdated: NumberFilterInput
2862
+ emails: [StringFilterInput]
2863
+ sort: [SortOptionInput]
2864
+ page: Int
2865
+ size: Int
2866
+ }`;
2867
+ export interface GraphSearchInput {
2868
+ // Used for context based searching
2869
+ search?: string;
2870
+ // Explicit value filtering
2871
+ _ids?: string[];
2872
+ tenantIdCreateds?: string[];
2873
+ tagIds?: string[];
2874
+ blockTypes?: BlockType[];
2875
+ statuses?: TaskStatus[];
2876
+ businessObjects?: BusinessObjectFilterInput[];
2877
+ originReferenceBlock?: ReferenceBlock;
2878
+ editorId?: string;
2879
+ editorGroupId?: string;
2880
+ parentId?: string;
2881
+ favorite?: boolean;
2882
+ snoozed?: boolean;
2883
+ // Fuzzy filters
2884
+ dateDue?: NumberFilterInput;
2885
+ dateCreated?: NumberFilterInput;
2886
+ dateUpdated?: NumberFilterInput;
2887
+ emails?: StringFilterInput[];
2888
+ // Sorting
2889
+ sort?: SortOptionInput[];
2890
+ // Page and sizing
2891
+ page?: number;
2892
+ size?: number;
2893
+ }
2894
+
2753
2895
  export const UpdateTagSharingInputQL = `
2754
2896
  input UpdateTagSharingInput {
2755
2897
  _id: String!
@@ -2879,4 +3021,12 @@ ${ArchiveSearchInputQL}
2879
3021
  ${ArchiveSearchOutputQL}
2880
3022
  ${SearchTagsInputQL}
2881
3023
  ${SearchInputQL}
2882
- ${UpdateTagSharingInputQL}`;
3024
+ ${UpdateTagSharingInputQL}
3025
+ ${BlockTypeQL}
3026
+ ${TaskStatusQL}
3027
+ ${OrderDirectionQL}
3028
+ ${NumberFilterInputQL}
3029
+ ${StringFilterInputQL}
3030
+ ${BusinessObjectFilterInputQL}
3031
+ ${SortOptionInputQL}
3032
+ ${GraphSearchInputQL}`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "5.0.22",
4
+ "version": "5.1.1",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",