@bigfootai/bigfoot-types 5.0.21 → 5.1.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 +97 -3
  2. package/model.ts +153 -2
  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
@@ -1076,8 +1077,9 @@ type Dashboard {${exports.BusinessObjectFields}
1076
1077
  blockData: [BlockData]
1077
1078
  }`;
1078
1079
  class Dashboard extends BusinessObject {
1079
- constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, dashboardMetadata) {
1080
+ constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId, dashboardMetadata, tagId) {
1080
1081
  super(tenantIdCreated, editors, sharingTags, BlockType.Dashboard, provider, application, uri, externalId);
1082
+ this.tagId = tagId;
1081
1083
  this.blockData = [];
1082
1084
  // Go through the block descriptions and create the block data entries
1083
1085
  for (const blockDescription of dashboardMetadata.blockDescriptions) {
@@ -1540,6 +1542,90 @@ input SearchInput {
1540
1542
  page: Int
1541
1543
  size: Int
1542
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
+ tagIds: [String]
1612
+ blockTypes: [BlockType]
1613
+ statuses: [TaskStatus]
1614
+ businessObjects: [BusinessObjectFilterInput]
1615
+ originReferenceBlock: ReferenceBlock
1616
+ editorId: String
1617
+ editorGroupId: String
1618
+ parentId: String
1619
+ favorite: Boolean
1620
+ snoozed: Boolean
1621
+ dateDue: NumberFilterInput
1622
+ dateCreated: NumberFilterInput
1623
+ dateUpdated: NumberFilterInput
1624
+ emails: [StringFilterInput]
1625
+ sort: [SortOptionInput]
1626
+ page: Int
1627
+ size: Int
1628
+ }`;
1543
1629
  exports.UpdateTagSharingInputQL = `
1544
1630
  input UpdateTagSharingInput {
1545
1631
  _id: String!
@@ -1663,4 +1749,12 @@ ${exports.ArchiveSearchInputQL}
1663
1749
  ${exports.ArchiveSearchOutputQL}
1664
1750
  ${exports.SearchTagsInputQL}
1665
1751
  ${exports.SearchInputQL}
1666
- ${exports.UpdateTagSharingInputQL}`;
1752
+ ${exports.UpdateTagSharingInputQL}
1753
+ ${exports.BlockTypeQL}
1754
+ ${exports.TaskStatusQL}
1755
+ ${exports.OrderDirectionQL}
1756
+ ${exports.NumberFilterInputQL}
1757
+ ${exports.StringFilterInputQL}
1758
+ ${exports.BusinessObjectFilterInputQL}
1759
+ ${exports.SortOptionInputQL}
1760
+ ${exports.GraphSearchInputQL}`;
package/model.ts CHANGED
@@ -1839,6 +1839,7 @@ type Dashboard {${BusinessObjectFields}
1839
1839
  }`;
1840
1840
  export class Dashboard extends BusinessObject {
1841
1841
  blockData: BlockData[];
1842
+ tagId: string;
1842
1843
 
1843
1844
  constructor(
1844
1845
  tenantIdCreated: string,
@@ -1848,7 +1849,8 @@ export class Dashboard extends BusinessObject {
1848
1849
  application: string,
1849
1850
  uri: string,
1850
1851
  externalId: string,
1851
- dashboardMetadata: DashboardMetadata
1852
+ dashboardMetadata: DashboardMetadata,
1853
+ tagId: string
1852
1854
  ) {
1853
1855
  super(
1854
1856
  tenantIdCreated,
@@ -1861,6 +1863,7 @@ export class Dashboard extends BusinessObject {
1861
1863
  externalId
1862
1864
  );
1863
1865
 
1866
+ this.tagId = tagId;
1864
1867
  this.blockData = [];
1865
1868
  // Go through the block descriptions and create the block data entries
1866
1869
  for (const blockDescription of dashboardMetadata.blockDescriptions) {
@@ -2747,6 +2750,146 @@ export interface SearchInput {
2747
2750
  size?: number;
2748
2751
  }
2749
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
+ tagIds: [String]
2849
+ blockTypes: [BlockType]
2850
+ statuses: [TaskStatus]
2851
+ businessObjects: [BusinessObjectFilterInput]
2852
+ originReferenceBlock: ReferenceBlock
2853
+ editorId: String
2854
+ editorGroupId: String
2855
+ parentId: String
2856
+ favorite: Boolean
2857
+ snoozed: Boolean
2858
+ dateDue: NumberFilterInput
2859
+ dateCreated: NumberFilterInput
2860
+ dateUpdated: NumberFilterInput
2861
+ emails: [StringFilterInput]
2862
+ sort: [SortOptionInput]
2863
+ page: Int
2864
+ size: Int
2865
+ }`;
2866
+ export interface GraphSearchInput {
2867
+ // Used for context based searching
2868
+ search?: string;
2869
+ // Explicit value filtering
2870
+ _ids?: string[];
2871
+ tagIds?: string[];
2872
+ blockTypes?: BlockType[];
2873
+ statuses?: TaskStatus[];
2874
+ businessObjects?: BusinessObjectFilterInput[];
2875
+ originReferenceBlock?: ReferenceBlock;
2876
+ editorId?: string;
2877
+ editorGroupId?: string;
2878
+ parentId?: string;
2879
+ favorite?: boolean;
2880
+ snoozed?: boolean;
2881
+ // Fuzzy filters
2882
+ dateDue?: NumberFilterInput;
2883
+ dateCreated?: NumberFilterInput;
2884
+ dateUpdated?: NumberFilterInput;
2885
+ emails?: StringFilterInput[];
2886
+ // Sorting
2887
+ sort?: SortOptionInput[];
2888
+ // Page and sizing
2889
+ page?: number;
2890
+ size?: number;
2891
+ }
2892
+
2750
2893
  export const UpdateTagSharingInputQL = `
2751
2894
  input UpdateTagSharingInput {
2752
2895
  _id: String!
@@ -2876,4 +3019,12 @@ ${ArchiveSearchInputQL}
2876
3019
  ${ArchiveSearchOutputQL}
2877
3020
  ${SearchTagsInputQL}
2878
3021
  ${SearchInputQL}
2879
- ${UpdateTagSharingInputQL}`;
3022
+ ${UpdateTagSharingInputQL}
3023
+ ${BlockTypeQL}
3024
+ ${TaskStatusQL}
3025
+ ${OrderDirectionQL}
3026
+ ${NumberFilterInputQL}
3027
+ ${StringFilterInputQL}
3028
+ ${BusinessObjectFilterInputQL}
3029
+ ${SortOptionInputQL}
3030
+ ${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.21",
4
+ "version": "5.1.0",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",