@bigfootai/bigfoot-types 5.1.55 → 5.1.57

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 +65 -4
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -2,9 +2,9 @@
2
2
  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.ExternalIdLinkQL = exports.ExternalIdLinkInputQL = 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.BlockFields = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.NotificationRecommendationQL = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.GraphTagsInputQL = exports.GraphTagQL = exports.TagTypeQL = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.ExternalIdQL = exports.DashboardTagSubscriptionQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.History = 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
- 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.DocumentFields = 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 = exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockQL = exports.BlockFieldsForUpsert = void 0;
6
- 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.UpsertDocumentInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantsInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = exports.TableFields = exports.Record = exports.RecordQL = exports.RecordInputQL = exports.TableMetadata = exports.TableMetadataQL = void 0;
7
- exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchEventsInputQL = exports.GraphSearchInputQL = exports.GraphSearchInputFields = exports.SortOptionInputQL = exports.BusinessObjectFilterInputQL = exports.StringFilterInputQL = exports.NumberFilterInputQL = exports.ChildItemQL = exports.ChildItemInputQL = exports.ChildItemFields = exports.ParentItemQL = exports.ParentItemInputQL = exports.ParentItemFields = exports.RemoveReactionInputQL = exports.AddReactionInputQL = exports.FindReactionsInputQL = exports.ReactionQL = exports.FindTagsVisibilityInputQL = exports.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.RecommendationTypeQL = exports.BlockTypeQL = exports.SearchInputQL = exports.SearchTagsInputQL = void 0;
5
+ 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.DocumentFields = exports.Message = exports.MessageQL = exports.UpsertMessageInputQL = 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 = exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockQL = exports.BlockFieldsForUpsert = void 0;
6
+ 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.ArchiveMessageOutputQL = exports.ArchiveMessageInputQL = exports.FindBlocksInputQL = exports.FindBlockInputQL = exports.UpsertNoteInputQL = exports.FindDashboardInputQL = exports.UpsertDocumentInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantsInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = exports.TableFields = exports.Record = exports.RecordQL = exports.RecordInputQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldValueInputQL = void 0;
7
+ exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchEventsInputQL = exports.GraphSearchInputQL = exports.GraphSearchInputFields = exports.SortOptionInputQL = exports.BusinessObjectFilterInputQL = exports.StringFilterInputQL = exports.NumberFilterInputQL = exports.ChildItemQL = exports.ChildItemInputQL = exports.ChildItemFields = exports.ParentItemQL = exports.ParentItemInputQL = exports.ParentItemFields = exports.RemoveReactionInputQL = exports.AddReactionInputQL = exports.FindReactionsInputQL = exports.FindMessagesInputQL = exports.FindMessageInputQL = exports.ReactionQL = exports.FindTagsVisibilityInputQL = exports.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.RecommendationTypeQL = exports.BlockTypeQL = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = void 0;
8
8
  const uuid_1 = require("uuid");
9
9
  /*
10
10
  These are the core primitives of our model. These represent the entities that show
@@ -24,7 +24,7 @@ var BlockType;
24
24
  BlockType["Dashboard"] = "dashboard";
25
25
  BlockType["Record"] = "record";
26
26
  BlockType["Conference"] = "conference";
27
- BlockType["Thread"] = "thread";
27
+ BlockType["Message"] = "message";
28
28
  BlockType["Website"] = "website";
29
29
  BlockType["Template"] = "template";
30
30
  BlockType["Table"] = "table";
@@ -428,6 +428,7 @@ exports.ReferenceBlockQL = `
428
428
  type ReferenceBlock {
429
429
  id: String!
430
430
  blockType: String!
431
+ archived: Boolean
431
432
  }`;
432
433
  exports.ChangesInputQL = `
433
434
  input ChangesInput {
@@ -1101,12 +1102,22 @@ class Todo extends BusinessObject {
1101
1102
  exports.Todo = Todo;
1102
1103
  //// EXTERNAL TASK END
1103
1104
  //// MESSAGING START
1104
- class Thread extends BusinessObject {
1105
+ exports.UpsertMessageInputQL = `
1106
+ input UpsertMessageInput {${exports.BlockFieldsForUpsert}
1107
+ originReferenceBlock: ReferenceBlockInput
1108
+ originReferenceTagId: String
1109
+ parentId: String
1110
+ }`;
1111
+ exports.MessageQL = `
1112
+ type Message {${exports.BusinessObjectFields}
1113
+ originReferenceTagId: String
1114
+ }`;
1115
+ class Message extends BusinessObject {
1105
1116
  constructor(tenantIdCreated, editors, sharingTags, provider, application, uri, externalId) {
1106
- super(tenantIdCreated, editors, sharingTags, BlockType.Thread, provider, application, uri, externalId);
1117
+ super(tenantIdCreated, editors, sharingTags, BlockType.Message, provider, application, uri, externalId);
1107
1118
  }
1108
1119
  }
1109
- exports.Thread = Thread;
1120
+ exports.Message = Message;
1110
1121
  //// MESSAGING END
1111
1122
  //// DOCUMENT START
1112
1123
  exports.DocumentFields = `${exports.BusinessObjectFields}
@@ -1403,6 +1414,16 @@ input FindBlocksInput {
1403
1414
  blockType: String
1404
1415
  archived: Boolean
1405
1416
  }`;
1417
+ exports.ArchiveMessageInputQL = `
1418
+ input ArchiveMessageInput {
1419
+ _id: String!
1420
+ archive: Boolean
1421
+ }`;
1422
+ exports.ArchiveMessageOutputQL = `
1423
+ type ArchiveMessageOutput {
1424
+ _id: String!
1425
+ archived: Boolean!
1426
+ }`;
1406
1427
  exports.ArchiveBlockInputQL = `
1407
1428
  input ArchiveBlockInput {
1408
1429
  _id: String!
@@ -1644,7 +1665,7 @@ enum BlockType {
1644
1665
  ${BlockType.Table.toUpperCase()}
1645
1666
  ${BlockType.Task.toUpperCase()}
1646
1667
  ${BlockType.Template.toUpperCase()}
1647
- ${BlockType.Thread.toUpperCase()}
1668
+ ${BlockType.Message.toUpperCase()}
1648
1669
  ${BlockType.Todo.toUpperCase()}
1649
1670
  ${BlockType.Website.toUpperCase()}
1650
1671
  }`;
@@ -1681,6 +1702,16 @@ type Reaction {
1681
1702
  shortcodes: String!
1682
1703
  tagIds: [String]
1683
1704
  }`;
1705
+ exports.FindMessageInputQL = `
1706
+ input FindMessageInput {
1707
+ _id: String!
1708
+ }`;
1709
+ exports.FindMessagesInputQL = `
1710
+ input FindMessagesInput {
1711
+ originReferenceTagId: String
1712
+ originReferenceBlock: ReferenceBlockInput
1713
+ parentId: String
1714
+ }`;
1684
1715
  exports.FindReactionsInputQL = `
1685
1716
  input FindReactionsInput {
1686
1717
  _id: String!
@@ -1806,6 +1837,8 @@ ${exports.ExternalIdLinkQL}
1806
1837
  ${exports.TaskStepInputQL}
1807
1838
  ${exports.FindTagsVisibilityInputQL}
1808
1839
  ${exports.ReactionQL}
1840
+ ${exports.FindMessageInputQL}
1841
+ ${exports.FindMessagesInputQL}
1809
1842
  ${exports.FindReactionsInputQL}
1810
1843
  ${exports.AddReactionInputQL}
1811
1844
  ${exports.RemoveReactionInputQL}
@@ -1857,6 +1890,8 @@ ${exports.ConferenceQL}
1857
1890
  ${exports.PersonAcceptanceQL}
1858
1891
  ${exports.EventQL}
1859
1892
  ${exports.CalendarQL}
1893
+ ${exports.UpsertMessageInputQL}
1894
+ ${exports.MessageQL}
1860
1895
  ${exports.DocumentQL}
1861
1896
  ${exports.BlockDataQL}
1862
1897
  ${exports.DashboardQL}
@@ -1886,6 +1921,8 @@ ${exports.FindDocumentInputQL}
1886
1921
  ${exports.FindDashboardInputQL}
1887
1922
  ${exports.FindBlockInputQL}
1888
1923
  ${exports.FindBlocksInputQL}
1924
+ ${exports.ArchiveMessageInputQL}
1925
+ ${exports.ArchiveMessageOutputQL}
1889
1926
  ${exports.ArchiveBlockInputQL}
1890
1927
  ${exports.ArchiveBlockOutputQL}
1891
1928
  ${exports.UpdateRecommendationInputQL}
package/model.ts CHANGED
@@ -17,7 +17,7 @@ export enum BlockType {
17
17
  Dashboard = 'dashboard',
18
18
  Record = 'record',
19
19
  Conference = 'conference',
20
- Thread = 'thread',
20
+ Message = 'message',
21
21
  Website = 'website',
22
22
  Template = 'template',
23
23
  Table = 'table',
@@ -600,10 +600,12 @@ export const ReferenceBlockQL = `
600
600
  type ReferenceBlock {
601
601
  id: String!
602
602
  blockType: String!
603
+ archived: Boolean
603
604
  }`;
604
605
  export interface ReferenceBlock {
605
606
  id: string;
606
607
  blockType: BlockType;
608
+ archived?: boolean;
607
609
  }
608
610
 
609
611
  export const ChangesInputQL = `
@@ -1888,8 +1890,21 @@ export class Todo extends BusinessObject {
1888
1890
  //// EXTERNAL TASK END
1889
1891
 
1890
1892
  //// MESSAGING START
1891
- export class Thread extends BusinessObject {
1893
+ export const UpsertMessageInputQL = `
1894
+ input UpsertMessageInput {${BlockFieldsForUpsert}
1895
+ originReferenceBlock: ReferenceBlockInput
1896
+ originReferenceTagId: String
1897
+ parentId: String
1898
+ }`;
1899
+ export const MessageQL = `
1900
+ type Message {${BusinessObjectFields}
1901
+ originReferenceTagId: String
1902
+ }`;
1903
+ export class Message extends BusinessObject {
1892
1904
  htmlContent?: string;
1905
+ // Reference information - use the originReferenceBlockId for block comments
1906
+ // Use the parentId to determine if this is a message under a message
1907
+ originReferenceTagId?: string;
1893
1908
 
1894
1909
  constructor(
1895
1910
  tenantIdCreated: string,
@@ -1904,7 +1919,7 @@ export class Thread extends BusinessObject {
1904
1919
  tenantIdCreated,
1905
1920
  editors,
1906
1921
  sharingTags,
1907
- BlockType.Thread,
1922
+ BlockType.Message,
1908
1923
  provider,
1909
1924
  application,
1910
1925
  uri,
@@ -2512,6 +2527,26 @@ export interface FindBlocksInput {
2512
2527
  archived?: boolean;
2513
2528
  }
2514
2529
 
2530
+ export const ArchiveMessageInputQL = `
2531
+ input ArchiveMessageInput {
2532
+ _id: String!
2533
+ archive: Boolean
2534
+ }`;
2535
+ export interface ArchiveMessageInput {
2536
+ _id: string;
2537
+ archive?: boolean;
2538
+ }
2539
+
2540
+ export const ArchiveMessageOutputQL = `
2541
+ type ArchiveMessageOutput {
2542
+ _id: String!
2543
+ archived: Boolean!
2544
+ }`;
2545
+ export interface ArchiveMessageOutput {
2546
+ _id: string;
2547
+ archived: boolean;
2548
+ }
2549
+
2515
2550
  export const ArchiveBlockInputQL = `
2516
2551
  input ArchiveBlockInput {
2517
2552
  _id: String!
@@ -2950,7 +2985,7 @@ enum BlockType {
2950
2985
  ${BlockType.Table.toUpperCase()}
2951
2986
  ${BlockType.Task.toUpperCase()}
2952
2987
  ${BlockType.Template.toUpperCase()}
2953
- ${BlockType.Thread.toUpperCase()}
2988
+ ${BlockType.Message.toUpperCase()}
2954
2989
  ${BlockType.Todo.toUpperCase()}
2955
2990
  ${BlockType.Website.toUpperCase()}
2956
2991
  }`;
@@ -3000,6 +3035,26 @@ export interface Reaction {
3000
3035
  tagIds: string[];
3001
3036
  }
3002
3037
 
3038
+ export const FindMessageInputQL = `
3039
+ input FindMessageInput {
3040
+ _id: String!
3041
+ }`;
3042
+ export interface FindMessageInput {
3043
+ _id: string;
3044
+ }
3045
+
3046
+ export const FindMessagesInputQL = `
3047
+ input FindMessagesInput {
3048
+ originReferenceTagId: String
3049
+ originReferenceBlock: ReferenceBlockInput
3050
+ parentId: String
3051
+ }`;
3052
+ export interface FindMessagesInput {
3053
+ originReferenceTagId?: string;
3054
+ originReferenceBlock?: ReferenceBlock;
3055
+ parentId?: string;
3056
+ }
3057
+
3003
3058
  export const FindReactionsInputQL = `
3004
3059
  input FindReactionsInput {
3005
3060
  _id: String!
@@ -3226,6 +3281,8 @@ ${ExternalIdLinkQL}
3226
3281
  ${TaskStepInputQL}
3227
3282
  ${FindTagsVisibilityInputQL}
3228
3283
  ${ReactionQL}
3284
+ ${FindMessageInputQL}
3285
+ ${FindMessagesInputQL}
3229
3286
  ${FindReactionsInputQL}
3230
3287
  ${AddReactionInputQL}
3231
3288
  ${RemoveReactionInputQL}
@@ -3277,6 +3334,8 @@ ${ConferenceQL}
3277
3334
  ${PersonAcceptanceQL}
3278
3335
  ${EventQL}
3279
3336
  ${CalendarQL}
3337
+ ${UpsertMessageInputQL}
3338
+ ${MessageQL}
3280
3339
  ${DocumentQL}
3281
3340
  ${BlockDataQL}
3282
3341
  ${DashboardQL}
@@ -3306,6 +3365,8 @@ ${FindDocumentInputQL}
3306
3365
  ${FindDashboardInputQL}
3307
3366
  ${FindBlockInputQL}
3308
3367
  ${FindBlocksInputQL}
3368
+ ${ArchiveMessageInputQL}
3369
+ ${ArchiveMessageOutputQL}
3309
3370
  ${ArchiveBlockInputQL}
3310
3371
  ${ArchiveBlockOutputQL}
3311
3372
  ${UpdateRecommendationInputQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "5.1.55",
4
+ "version": "5.1.57",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",