@bigfootai/bigfoot-types 5.1.42 → 5.1.44

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 +32 -17
  2. package/model.ts +51 -22
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.ExternalUrlLinkQL = 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.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.ExternalUrlQL = 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 = exports.ConnectedProviderQL = void 0;
5
- 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 = exports.BlockFields = void 0;
6
- 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 = exports.FieldValueQL = 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.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.RecommendationTypeQL = exports.BlockTypeQL = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = void 0;
3
+ exports.ReferenceBlockInputQL = 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.ExternalUrlLinkQL = 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.BlockFieldsForUpsert = 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.ExternalUrlQL = 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 = void 0;
5
+ 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.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 = void 0;
6
+ 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.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 = 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.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.RecommendationTypeQL = exports.BlockTypeQL = exports.SearchInputQL = 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
@@ -329,16 +329,6 @@ type ExternalUrlLink {
329
329
  provider: String!
330
330
  application: String!
331
331
  }`;
332
- exports.ReactionSkinToneQL = `
333
- type ReactionSkinTone {
334
- skinTone: String!
335
- tenantIds: [String]!
336
- }`;
337
- exports.ReactionQL = `
338
- type Reaction {
339
- skinTones: [ReactionSkinTone]!
340
- unified: String!
341
- }`;
342
332
  exports.TaskStepInputQL = `
343
333
  input TaskStepInput {
344
334
  content: String!
@@ -874,7 +864,8 @@ exports.BlockFields = `${exports.SharedPrimitiveFields}
874
864
  dateRemindMe: Float
875
865
  status: String
876
866
  parentId: String
877
- originReferenceBlock: ReferenceBlock`;
867
+ originReferenceBlock: ReferenceBlock
868
+ reactions: [Reaction]`;
878
869
  exports.BlockFieldsForUpsert = `${exports.SharedPrimitiveFieldsForUpsert}
879
870
  status: String
880
871
  dateDue: Float
@@ -1665,6 +1656,28 @@ var OrderDirection;
1665
1656
  OrderDirection["Ascending"] = "asc";
1666
1657
  OrderDirection["Descending"] = "desc";
1667
1658
  })(OrderDirection || (exports.OrderDirection = OrderDirection = {}));
1659
+ exports.ReactionQL = `
1660
+ type Reaction {
1661
+ unified: String!
1662
+ tagIds: [String]
1663
+ }`;
1664
+ exports.FindReactionsInputQL = `
1665
+ input FindReactionsInput {
1666
+ _id: String!
1667
+ tagType: TagType!
1668
+ }`;
1669
+ exports.AddReactionInputQL = `
1670
+ input AddReactionInput {
1671
+ _id: String!
1672
+ tagType: TagType!
1673
+ unified: String!
1674
+ }`;
1675
+ exports.RemoveReactionInputQL = `
1676
+ input RemoveReactionInput {
1677
+ _id: String!
1678
+ tagType: TagType!
1679
+ unified: String!
1680
+ }`;
1668
1681
  exports.ParentItemFields = `
1669
1682
  _id: String
1670
1683
  blockType: BlockType
@@ -1769,9 +1782,11 @@ ${exports.SharingTenantQL}
1769
1782
  ${exports.BusinessObjectLinkInputQL}
1770
1783
  ${exports.BusinessObjectLinkQL}
1771
1784
  ${exports.ExternalUrlLinkQL}
1772
- ${exports.ReactionSkinToneQL}
1773
1785
  ${exports.TaskStepInputQL}
1774
1786
  ${exports.ReactionQL}
1787
+ ${exports.FindReactionsInputQL}
1788
+ ${exports.AddReactionInputQL}
1789
+ ${exports.RemoveReactionInputQL}
1775
1790
  ${exports.TaskStepQL}
1776
1791
  ${exports.EntityReferenceQL}
1777
1792
  ${exports.ArgumentEntryQL}
package/model.ts CHANGED
@@ -394,26 +394,6 @@ export interface ExternalUrlLink {
394
394
  application: string;
395
395
  }
396
396
 
397
- export const ReactionSkinToneQL = `
398
- type ReactionSkinTone {
399
- skinTone: String!
400
- tenantIds: [String]!
401
- }`;
402
- export interface ReactionSkinTone {
403
- skinTone: string;
404
- tenantIds: string[];
405
- }
406
-
407
- export const ReactionQL = `
408
- type Reaction {
409
- skinTones: [ReactionSkinTone]!
410
- unified: String!
411
- }`;
412
- export interface Reaction {
413
- skinTones: ReactionSkinTone[];
414
- unified: string;
415
- }
416
-
417
397
  export const TaskStepInputQL = `
418
398
  input TaskStepInput {
419
399
  content: String!
@@ -1353,7 +1333,8 @@ export const BlockFields = `${SharedPrimitiveFields}
1353
1333
  dateRemindMe: Float
1354
1334
  status: String
1355
1335
  parentId: String
1356
- originReferenceBlock: ReferenceBlock`;
1336
+ originReferenceBlock: ReferenceBlock
1337
+ reactions: [Reaction]`;
1357
1338
  export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
1358
1339
  status: String
1359
1340
  dateDue: Float
@@ -1406,6 +1387,8 @@ export class Block extends SharedPrimitive {
1406
1387
  _emails?: EntityEntry[];
1407
1388
  // A search field to help with relevancy
1408
1389
  score?: number;
1390
+ // Social stuff
1391
+ reactions?: Reaction[];
1409
1392
 
1410
1393
  constructor(
1411
1394
  tenantIdCreated: string,
@@ -2977,6 +2960,50 @@ export enum OrderDirection {
2977
2960
  Descending = 'desc',
2978
2961
  }
2979
2962
 
2963
+ export const ReactionQL = `
2964
+ type Reaction {
2965
+ unified: String!
2966
+ tagIds: [String]
2967
+ }`;
2968
+ export interface Reaction {
2969
+ unified: string;
2970
+ tagIds: string[];
2971
+ }
2972
+
2973
+ export const FindReactionsInputQL = `
2974
+ input FindReactionsInput {
2975
+ _id: String!
2976
+ tagType: TagType!
2977
+ }`;
2978
+ export interface FindReactionsInput {
2979
+ _id: string;
2980
+ tagType: TagType;
2981
+ }
2982
+
2983
+ export const AddReactionInputQL = `
2984
+ input AddReactionInput {
2985
+ _id: String!
2986
+ tagType: TagType!
2987
+ unified: String!
2988
+ }`;
2989
+ export interface AddReactionInput {
2990
+ _id: string;
2991
+ tagType: TagType;
2992
+ unified: string;
2993
+ }
2994
+
2995
+ export const RemoveReactionInputQL = `
2996
+ input RemoveReactionInput {
2997
+ _id: String!
2998
+ tagType: TagType!
2999
+ unified: String!
3000
+ }`;
3001
+ export interface RemoveReactionInput {
3002
+ _id: string;
3003
+ tagType: TagType;
3004
+ unified: string;
3005
+ }
3006
+
2980
3007
  export const ParentItemFields = `
2981
3008
  _id: String
2982
3009
  blockType: BlockType
@@ -3165,9 +3192,11 @@ ${SharingTenantQL}
3165
3192
  ${BusinessObjectLinkInputQL}
3166
3193
  ${BusinessObjectLinkQL}
3167
3194
  ${ExternalUrlLinkQL}
3168
- ${ReactionSkinToneQL}
3169
3195
  ${TaskStepInputQL}
3170
3196
  ${ReactionQL}
3197
+ ${FindReactionsInputQL}
3198
+ ${AddReactionInputQL}
3199
+ ${RemoveReactionInputQL}
3171
3200
  ${TaskStepQL}
3172
3201
  ${EntityReferenceQL}
3173
3202
  ${ArgumentEntryQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "5.1.42",
4
+ "version": "5.1.44",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",