@bigfootai/bigfoot-types 4.9.5 → 4.9.7

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 +45 -8
  2. package/model.ts +86 -8
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = 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
- exports.BlockProcessingRequest = exports.Block = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Article = exports.ArticleQL = 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.BusinessObjectLinkingToTagQL = 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 = exports.ConnectedProviderQL = void 0;
5
- exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = exports.Record = exports.RecordQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = 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.TaskFieldsForUpsert = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = 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.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = 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.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = void 0;
4
+ exports.BlockProcessingRequest = exports.Block = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Article = exports.ArticleQL = 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 = exports.ConnectedProviderQL = void 0;
5
+ exports.TableQL = exports.Record = exports.RecordQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = 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.TaskFieldsForUpsert = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = 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.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = 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.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.FindRecordInputQL = exports.Table = void 0;
7
7
  const uuid_1 = require("uuid");
8
8
  /*
9
9
  These are the core primitives of our model. These represent the entities that show
@@ -20,6 +20,7 @@ var BlockType;
20
20
  BlockType["Task"] = "task";
21
21
  BlockType["Todo"] = "todo";
22
22
  BlockType["Document"] = "document";
23
+ BlockType["Dashboard"] = "dashboard";
23
24
  BlockType["Record"] = "record";
24
25
  BlockType["Conference"] = "conference";
25
26
  BlockType["Thread"] = "thread";
@@ -573,9 +574,9 @@ class Sync extends Primitive {
573
574
  }
574
575
  }
575
576
  exports.Sync = Sync;
576
- exports.BusinessObjectLinkingToTagQL = `
577
- type BusinessObjectLinkingToTag {
578
- documentTypeSubscriptions: [String]!
577
+ exports.DashboardTagSubscriptionQL = `
578
+ type DashboardTagSubscription {
579
+ dashboardSubscriptions: [String]!
579
580
  tagType: String!
580
581
  }`;
581
582
  exports.ProviderApplicationQL = `
@@ -588,7 +589,7 @@ type ProviderApplication {
588
589
  linkSubscriptions: [String]
589
590
  recordTypeSubscriptions: [String]
590
591
  documentTypeSubscriptions: [String]
591
- businessObjectLinkingToTags: [BusinessObjectLinkingToTag]
592
+ dashboardTagSubscriptions: [DashboardTagSubscription]
592
593
  authentication: Boolean!
593
594
  }`;
594
595
  exports.ProviderQL = `
@@ -601,6 +602,7 @@ type Provider {${exports.PrimitiveFields}
601
602
  applications: [ProviderApplication]!
602
603
  tableMetadata: [TableMetadata]
603
604
  documentMetadata: [DocumentMetadata]
605
+ dashboardMetadata: [DashboardMetadata]
604
606
  }`;
605
607
  class Provider extends Primitive {
606
608
  constructor(name, label, description, instanceUrl, applications) {
@@ -1100,6 +1102,26 @@ class Document extends BusinessObject {
1100
1102
  }
1101
1103
  exports.Document = Document;
1102
1104
  //// DOCUMENT END
1105
+ //// DASHBOARD START
1106
+ exports.BlockDataQL = `
1107
+ type BlockData {
1108
+ title: String
1109
+ document: String
1110
+ blockType: String!
1111
+ metadataType: String
1112
+ }`;
1113
+ exports.DashboardQL = `
1114
+ type Dashboard {${exports.BusinessObjectFields}
1115
+ blockData: [BlockData]
1116
+ }`;
1117
+ class Dashboard extends BusinessObject {
1118
+ constructor(tenantIdCreated, editors, sharingTags, version, provider, application, uri, externalId, blockData) {
1119
+ super(tenantIdCreated, editors, sharingTags, version, BlockType.Dashboard, provider, application, uri, externalId);
1120
+ this.blockData = blockData;
1121
+ }
1122
+ }
1123
+ exports.Dashboard = Dashboard;
1124
+ //// DASHBOARD END
1103
1125
  //// WEBSITE START
1104
1126
  exports.WebsiteQL = `
1105
1127
  type Website {${exports.BusinessObjectFields}
@@ -1138,6 +1160,18 @@ class DocumentMetadata extends Metadata {
1138
1160
  }
1139
1161
  }
1140
1162
  exports.DocumentMetadata = DocumentMetadata;
1163
+ exports.DashboardMetadataQL = `
1164
+ type DashboardMetadata {${exports.MetadataFields}
1165
+ blockDescriptions: [BlockDescription]!
1166
+ exportTypes: [String]
1167
+ }`;
1168
+ class DashboardMetadata extends Metadata {
1169
+ constructor(label, description, metadataType, classifiers, threshold, blockDescriptions) {
1170
+ super(label, description, metadataType, classifiers, threshold);
1171
+ this.blockDescriptions = blockDescriptions;
1172
+ }
1173
+ }
1174
+ exports.DashboardMetadata = DashboardMetadata;
1141
1175
  exports.TemplateQL = `
1142
1176
  type Template {${exports.BusinessObjectFields}
1143
1177
  metadata: DocumentMetadata
@@ -1571,7 +1605,7 @@ ${exports.MetadataQL}
1571
1605
  ${exports.FolderQL}
1572
1606
  ${exports.SearchQL}
1573
1607
  ${exports.SyncQL}
1574
- ${exports.BusinessObjectLinkingToTagQL}
1608
+ ${exports.DashboardTagSubscriptionQL}
1575
1609
  ${exports.ProviderApplicationQL}
1576
1610
  ${exports.ProviderQL}
1577
1611
  ${exports.TagQL}
@@ -1598,6 +1632,9 @@ ${exports.PersonAcceptanceQL}
1598
1632
  ${exports.EventQL}
1599
1633
  ${exports.CalendarQL}
1600
1634
  ${exports.DocumentQL}
1635
+ ${exports.BlockDataQL}
1636
+ ${exports.DashboardQL}
1637
+ ${exports.DashboardMetadataQL}
1601
1638
  ${exports.WebsiteQL}
1602
1639
  ${exports.BlockDescriptionQL}
1603
1640
  ${exports.DocumentMetadataQL}
package/model.ts CHANGED
@@ -14,6 +14,7 @@ export enum BlockType {
14
14
  Task = 'task',
15
15
  Todo = 'todo', // A task from an external application
16
16
  Document = 'document',
17
+ Dashboard = 'dashboard',
17
18
  Record = 'record',
18
19
  Conference = 'conference',
19
20
  Thread = 'thread',
@@ -838,13 +839,13 @@ export class Sync extends Primitive {
838
839
  }
839
840
  }
840
841
 
841
- export const BusinessObjectLinkingToTagQL = `
842
- type BusinessObjectLinkingToTag {
843
- documentTypeSubscriptions: [String]!
842
+ export const DashboardTagSubscriptionQL = `
843
+ type DashboardTagSubscription {
844
+ dashboardSubscriptions: [String]!
844
845
  tagType: String!
845
846
  }`;
846
- export interface BusinessObjectLinkingToTag {
847
- documentTypeSubscriptions: string[];
847
+ export interface DashboardTagSubscription {
848
+ dashboardSubscriptions: string[];
848
849
  tagType: TagType;
849
850
  }
850
851
 
@@ -858,7 +859,7 @@ type ProviderApplication {
858
859
  linkSubscriptions: [String]
859
860
  recordTypeSubscriptions: [String]
860
861
  documentTypeSubscriptions: [String]
861
- businessObjectLinkingToTags: [BusinessObjectLinkingToTag]
862
+ dashboardTagSubscriptions: [DashboardTagSubscription]
862
863
  authentication: Boolean!
863
864
  }`;
864
865
  export interface ProviderApplication {
@@ -870,7 +871,7 @@ export interface ProviderApplication {
870
871
  linkSubscriptions?: string[];
871
872
  recordTypeSubscriptions?: string[];
872
873
  documentTypeSubscriptions?: string[];
873
- businessObjectLinkingToTags?: BusinessObjectLinkingToTag[];
874
+ dashboardTagSubscriptions?: DashboardTagSubscription[];
874
875
  authentication: boolean;
875
876
  }
876
877
 
@@ -884,6 +885,7 @@ type Provider {${PrimitiveFields}
884
885
  applications: [ProviderApplication]!
885
886
  tableMetadata: [TableMetadata]
886
887
  documentMetadata: [DocumentMetadata]
888
+ dashboardMetadata: [DashboardMetadata]
887
889
  }`;
888
890
  export class Provider extends Primitive {
889
891
  name: string;
@@ -894,6 +896,7 @@ export class Provider extends Primitive {
894
896
  applications: ProviderApplication[];
895
897
  tableMetadata?: TableMetadata[];
896
898
  documentMetadata?: DocumentMetadata[];
899
+ dashboardMetadata?: DashboardMetadata[];
897
900
 
898
901
  constructor(
899
902
  name: string,
@@ -1916,6 +1919,56 @@ export class Document extends BusinessObject {
1916
1919
  }
1917
1920
  //// DOCUMENT END
1918
1921
 
1922
+ //// DASHBOARD START
1923
+ export const BlockDataQL = `
1924
+ type BlockData {
1925
+ title: String
1926
+ document: String
1927
+ blockType: String!
1928
+ metadataType: String
1929
+ }`;
1930
+ export interface BlockData {
1931
+ title?: string;
1932
+ document?: string;
1933
+ blockType: BlockType;
1934
+ metadataType?: string;
1935
+ }
1936
+
1937
+ export const DashboardQL = `
1938
+ type Dashboard {${BusinessObjectFields}
1939
+ blockData: [BlockData]
1940
+ }`;
1941
+ export class Dashboard extends BusinessObject {
1942
+ blockData: BlockData[];
1943
+
1944
+ constructor(
1945
+ tenantIdCreated: string,
1946
+ editors: Editor[],
1947
+ sharingTags: SharingTag[],
1948
+ version: number,
1949
+ provider: string,
1950
+ application: string,
1951
+ uri: string,
1952
+ externalId: string,
1953
+ blockData: BlockData[]
1954
+ ) {
1955
+ super(
1956
+ tenantIdCreated,
1957
+ editors,
1958
+ sharingTags,
1959
+ version,
1960
+ BlockType.Dashboard,
1961
+ provider,
1962
+ application,
1963
+ uri,
1964
+ externalId
1965
+ );
1966
+
1967
+ this.blockData = blockData;
1968
+ }
1969
+ }
1970
+ //// DASHBOARD END
1971
+
1919
1972
  //// WEBSITE START
1920
1973
  export const WebsiteQL = `
1921
1974
  type Website {${BusinessObjectFields}
@@ -1999,6 +2052,28 @@ export class DocumentMetadata extends Metadata {
1999
2052
  }
2000
2053
  }
2001
2054
 
2055
+ export const DashboardMetadataQL = `
2056
+ type DashboardMetadata {${MetadataFields}
2057
+ blockDescriptions: [BlockDescription]!
2058
+ exportTypes: [String]
2059
+ }`;
2060
+ export class DashboardMetadata extends Metadata {
2061
+ blockDescriptions: BlockDescription[];
2062
+
2063
+ constructor(
2064
+ label: string,
2065
+ description: string,
2066
+ metadataType: string,
2067
+ classifiers: string[],
2068
+ threshold: number,
2069
+ blockDescriptions: BlockDescription[]
2070
+ ) {
2071
+ super(label, description, metadataType, classifiers, threshold);
2072
+
2073
+ this.blockDescriptions = blockDescriptions;
2074
+ }
2075
+ }
2076
+
2002
2077
  export const TemplateQL = `
2003
2078
  type Template {${BusinessObjectFields}
2004
2079
  metadata: DocumentMetadata
@@ -2820,7 +2895,7 @@ ${MetadataQL}
2820
2895
  ${FolderQL}
2821
2896
  ${SearchQL}
2822
2897
  ${SyncQL}
2823
- ${BusinessObjectLinkingToTagQL}
2898
+ ${DashboardTagSubscriptionQL}
2824
2899
  ${ProviderApplicationQL}
2825
2900
  ${ProviderQL}
2826
2901
  ${TagQL}
@@ -2847,6 +2922,9 @@ ${PersonAcceptanceQL}
2847
2922
  ${EventQL}
2848
2923
  ${CalendarQL}
2849
2924
  ${DocumentQL}
2925
+ ${BlockDataQL}
2926
+ ${DashboardQL}
2927
+ ${DashboardMetadataQL}
2850
2928
  ${WebsiteQL}
2851
2929
  ${BlockDescriptionQL}
2852
2930
  ${DocumentMetadataQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.9.5",
4
+ "version": "4.9.7",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",