@bigfootai/bigfoot-types 5.1.41 → 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.
@@ -69,6 +69,7 @@ exports.Google = {
69
69
  externalStorage: true,
70
70
  externalUrls: [
71
71
  {
72
+ label: 'Document',
72
73
  blockType: model_1.BlockType.Document,
73
74
  tagType: model_1.TagType.Topic,
74
75
  },
@@ -73,6 +73,7 @@ export const Google: Provider = {
73
73
  externalStorage: true,
74
74
  externalUrls: [
75
75
  {
76
+ label: 'Document',
76
77
  blockType: BlockType.Document,
77
78
  tagType: TagType.Topic,
78
79
  },
@@ -32,10 +32,15 @@ exports.Salesforce = {
32
32
  externalStorage: true,
33
33
  externalUrls: [
34
34
  {
35
+ label: 'Account',
35
36
  blockType: model_1.BlockType.Record,
36
37
  tagType: model_1.TagType.Organization,
37
38
  },
38
- { blockType: model_1.BlockType.Record, tagType: model_1.TagType.Person },
39
+ {
40
+ label: 'Contact/User',
41
+ blockType: model_1.BlockType.Record,
42
+ tagType: model_1.TagType.Person,
43
+ },
39
44
  ],
40
45
  },
41
46
  ],
@@ -32,10 +32,15 @@ export const Salesforce: Provider = {
32
32
  externalStorage: true,
33
33
  externalUrls: [
34
34
  {
35
+ label: 'Account',
35
36
  blockType: BlockType.Record,
36
37
  tagType: TagType.Organization,
37
38
  },
38
- { blockType: BlockType.Record, tagType: TagType.Person },
39
+ {
40
+ label: 'Contact/User',
41
+ blockType: BlockType.Record,
42
+ tagType: TagType.Person,
43
+ },
39
44
  ],
40
45
  },
41
46
  ],
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!
@@ -602,6 +592,7 @@ type DashboardTagSubscription {
602
592
  }`;
603
593
  exports.ExternalUrlQL = `
604
594
  type ExternalUrl {
595
+ label: String!
605
596
  tagType: TagType!
606
597
  blockType: BlockType!
607
598
  }`;
@@ -873,7 +864,8 @@ exports.BlockFields = `${exports.SharedPrimitiveFields}
873
864
  dateRemindMe: Float
874
865
  status: String
875
866
  parentId: String
876
- originReferenceBlock: ReferenceBlock`;
867
+ originReferenceBlock: ReferenceBlock
868
+ reactions: [Reaction]`;
877
869
  exports.BlockFieldsForUpsert = `${exports.SharedPrimitiveFieldsForUpsert}
878
870
  status: String
879
871
  dateDue: Float
@@ -1664,6 +1656,28 @@ var OrderDirection;
1664
1656
  OrderDirection["Ascending"] = "asc";
1665
1657
  OrderDirection["Descending"] = "desc";
1666
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
+ }`;
1667
1681
  exports.ParentItemFields = `
1668
1682
  _id: String
1669
1683
  blockType: BlockType
@@ -1768,9 +1782,11 @@ ${exports.SharingTenantQL}
1768
1782
  ${exports.BusinessObjectLinkInputQL}
1769
1783
  ${exports.BusinessObjectLinkQL}
1770
1784
  ${exports.ExternalUrlLinkQL}
1771
- ${exports.ReactionSkinToneQL}
1772
1785
  ${exports.TaskStepInputQL}
1773
1786
  ${exports.ReactionQL}
1787
+ ${exports.FindReactionsInputQL}
1788
+ ${exports.AddReactionInputQL}
1789
+ ${exports.RemoveReactionInputQL}
1774
1790
  ${exports.TaskStepQL}
1775
1791
  ${exports.EntityReferenceQL}
1776
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!
@@ -887,10 +867,12 @@ export interface DashboardTagSubscription {
887
867
 
888
868
  export const ExternalUrlQL = `
889
869
  type ExternalUrl {
870
+ label: String!
890
871
  tagType: TagType!
891
872
  blockType: BlockType!
892
873
  }`;
893
874
  export interface ExternalUrl {
875
+ label: string;
894
876
  tagType: TagType;
895
877
  blockType: BlockType;
896
878
  }
@@ -1351,7 +1333,8 @@ export const BlockFields = `${SharedPrimitiveFields}
1351
1333
  dateRemindMe: Float
1352
1334
  status: String
1353
1335
  parentId: String
1354
- originReferenceBlock: ReferenceBlock`;
1336
+ originReferenceBlock: ReferenceBlock
1337
+ reactions: [Reaction]`;
1355
1338
  export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
1356
1339
  status: String
1357
1340
  dateDue: Float
@@ -1404,6 +1387,8 @@ export class Block extends SharedPrimitive {
1404
1387
  _emails?: EntityEntry[];
1405
1388
  // A search field to help with relevancy
1406
1389
  score?: number;
1390
+ // Social stuff
1391
+ reactions?: Reaction[];
1407
1392
 
1408
1393
  constructor(
1409
1394
  tenantIdCreated: string,
@@ -2975,6 +2960,50 @@ export enum OrderDirection {
2975
2960
  Descending = 'desc',
2976
2961
  }
2977
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
+
2978
3007
  export const ParentItemFields = `
2979
3008
  _id: String
2980
3009
  blockType: BlockType
@@ -3163,9 +3192,11 @@ ${SharingTenantQL}
3163
3192
  ${BusinessObjectLinkInputQL}
3164
3193
  ${BusinessObjectLinkQL}
3165
3194
  ${ExternalUrlLinkQL}
3166
- ${ReactionSkinToneQL}
3167
3195
  ${TaskStepInputQL}
3168
3196
  ${ReactionQL}
3197
+ ${FindReactionsInputQL}
3198
+ ${AddReactionInputQL}
3199
+ ${RemoveReactionInputQL}
3169
3200
  ${TaskStepQL}
3170
3201
  ${EntityReferenceQL}
3171
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.41",
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",