@bigfootai/bigfoot-types 5.1.54 → 5.1.56

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 +35 -10
  2. package/model.ts +47 -8
  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.MessageInputQL = 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.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 = 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 = 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.MessageInputQL = `
1106
+ input Message {${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}
@@ -1644,7 +1655,7 @@ enum BlockType {
1644
1655
  ${BlockType.Table.toUpperCase()}
1645
1656
  ${BlockType.Task.toUpperCase()}
1646
1657
  ${BlockType.Template.toUpperCase()}
1647
- ${BlockType.Thread.toUpperCase()}
1658
+ ${BlockType.Message.toUpperCase()}
1648
1659
  ${BlockType.Todo.toUpperCase()}
1649
1660
  ${BlockType.Website.toUpperCase()}
1650
1661
  }`;
@@ -1681,6 +1692,16 @@ type Reaction {
1681
1692
  shortcodes: String!
1682
1693
  tagIds: [String]
1683
1694
  }`;
1695
+ exports.FindMessageInputQL = `
1696
+ input FindMessageInput {
1697
+ _id: String!
1698
+ }`;
1699
+ exports.FindMessagesInputQL = `
1700
+ input FindMessagesInput {
1701
+ originReferenceTagId: String
1702
+ originReferenceBlock: ReferenceBlockInput
1703
+ parentId: String
1704
+ }`;
1684
1705
  exports.FindReactionsInputQL = `
1685
1706
  input FindReactionsInput {
1686
1707
  _id: String!
@@ -1690,13 +1711,13 @@ exports.AddReactionInputQL = `
1690
1711
  input AddReactionInput {
1691
1712
  _id: String!
1692
1713
  blockType: BlockType!
1693
- unified: String!
1714
+ shortcodes: String!
1694
1715
  }`;
1695
1716
  exports.RemoveReactionInputQL = `
1696
1717
  input RemoveReactionInput {
1697
1718
  _id: String!
1698
1719
  blockType: BlockType!
1699
- unified: String!
1720
+ shortcodes: String!
1700
1721
  }`;
1701
1722
  exports.ParentItemFields = `
1702
1723
  _id: String
@@ -1806,6 +1827,8 @@ ${exports.ExternalIdLinkQL}
1806
1827
  ${exports.TaskStepInputQL}
1807
1828
  ${exports.FindTagsVisibilityInputQL}
1808
1829
  ${exports.ReactionQL}
1830
+ ${exports.FindMessageInputQL}
1831
+ ${exports.FindMessagesInputQL}
1809
1832
  ${exports.FindReactionsInputQL}
1810
1833
  ${exports.AddReactionInputQL}
1811
1834
  ${exports.RemoveReactionInputQL}
@@ -1857,6 +1880,8 @@ ${exports.ConferenceQL}
1857
1880
  ${exports.PersonAcceptanceQL}
1858
1881
  ${exports.EventQL}
1859
1882
  ${exports.CalendarQL}
1883
+ ${exports.MessageInputQL}
1884
+ ${exports.MessageQL}
1860
1885
  ${exports.DocumentQL}
1861
1886
  ${exports.BlockDataQL}
1862
1887
  ${exports.DashboardQL}
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 MessageInputQL = `
1894
+ input Message {${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,
@@ -2950,7 +2965,7 @@ enum BlockType {
2950
2965
  ${BlockType.Table.toUpperCase()}
2951
2966
  ${BlockType.Task.toUpperCase()}
2952
2967
  ${BlockType.Template.toUpperCase()}
2953
- ${BlockType.Thread.toUpperCase()}
2968
+ ${BlockType.Message.toUpperCase()}
2954
2969
  ${BlockType.Todo.toUpperCase()}
2955
2970
  ${BlockType.Website.toUpperCase()}
2956
2971
  }`;
@@ -3000,6 +3015,26 @@ export interface Reaction {
3000
3015
  tagIds: string[];
3001
3016
  }
3002
3017
 
3018
+ export const FindMessageInputQL = `
3019
+ input FindMessageInput {
3020
+ _id: String!
3021
+ }`;
3022
+ export interface FindMessageInput {
3023
+ _id: string;
3024
+ }
3025
+
3026
+ export const FindMessagesInputQL = `
3027
+ input FindMessagesInput {
3028
+ originReferenceTagId: String
3029
+ originReferenceBlock: ReferenceBlockInput
3030
+ parentId: String
3031
+ }`;
3032
+ export interface FindMessagesInput {
3033
+ originReferenceTagId?: string;
3034
+ originReferenceBlock?: ReferenceBlock;
3035
+ parentId?: string;
3036
+ }
3037
+
3003
3038
  export const FindReactionsInputQL = `
3004
3039
  input FindReactionsInput {
3005
3040
  _id: String!
@@ -3014,24 +3049,24 @@ export const AddReactionInputQL = `
3014
3049
  input AddReactionInput {
3015
3050
  _id: String!
3016
3051
  blockType: BlockType!
3017
- unified: String!
3052
+ shortcodes: String!
3018
3053
  }`;
3019
3054
  export interface AddReactionInput {
3020
3055
  _id: string;
3021
3056
  blockType: BlockType;
3022
- unified: string;
3057
+ shortcodes: string;
3023
3058
  }
3024
3059
 
3025
3060
  export const RemoveReactionInputQL = `
3026
3061
  input RemoveReactionInput {
3027
3062
  _id: String!
3028
3063
  blockType: BlockType!
3029
- unified: String!
3064
+ shortcodes: String!
3030
3065
  }`;
3031
3066
  export interface RemoveReactionInput {
3032
3067
  _id: string;
3033
3068
  blockType: BlockType;
3034
- unified: string;
3069
+ shortcodes: string;
3035
3070
  }
3036
3071
 
3037
3072
  export const ParentItemFields = `
@@ -3226,6 +3261,8 @@ ${ExternalIdLinkQL}
3226
3261
  ${TaskStepInputQL}
3227
3262
  ${FindTagsVisibilityInputQL}
3228
3263
  ${ReactionQL}
3264
+ ${FindMessageInputQL}
3265
+ ${FindMessagesInputQL}
3229
3266
  ${FindReactionsInputQL}
3230
3267
  ${AddReactionInputQL}
3231
3268
  ${RemoveReactionInputQL}
@@ -3277,6 +3314,8 @@ ${ConferenceQL}
3277
3314
  ${PersonAcceptanceQL}
3278
3315
  ${EventQL}
3279
3316
  ${CalendarQL}
3317
+ ${MessageInputQL}
3318
+ ${MessageQL}
3280
3319
  ${DocumentQL}
3281
3320
  ${BlockDataQL}
3282
3321
  ${DashboardQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "5.1.54",
4
+ "version": "5.1.56",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",