@bigfootai/bigfoot-types 4.7.24 → 4.7.26

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 +44 -12
  2. package/model.ts +71 -15
  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
- exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.DateEntityEntryQL = 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.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.RecordType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.TagRecommendationVariation = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.SharingLevel = exports.ClientType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
4
- exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = void 0;
5
- exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = 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 = void 0;
6
- exports.GraphQLTypes = 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 = void 0;
3
+ exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.DateEntityEntryQL = 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.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.TagRecommendationVariation = exports.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.SharingLevel = exports.ClientType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
4
+ exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = 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.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = void 0;
5
+ exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = 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.TaskFields = exports.Note = void 0;
6
+ exports.GraphQLTypes = 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 = 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
@@ -163,6 +163,11 @@ var ProcessingStage;
163
163
  ProcessingStage["Waiting"] = "waiting";
164
164
  ProcessingStage["Stopped"] = "stopped";
165
165
  })(ProcessingStage || (exports.ProcessingStage = ProcessingStage = {}));
166
+ var ThumbsDirection;
167
+ (function (ThumbsDirection) {
168
+ ThumbsDirection["Up"] = "up";
169
+ ThumbsDirection["Down"] = "down";
170
+ })(ThumbsDirection || (exports.ThumbsDirection = ThumbsDirection = {}));
166
171
  var RecordType;
167
172
  (function (RecordType) {
168
173
  RecordType["Opportunity"] = "opportunity";
@@ -279,10 +284,11 @@ type SharingDomain {
279
284
  exports.SharingTenantQL = `
280
285
  type SharingTenant {
281
286
  tenantId: String!
287
+ sharingLevel: Int!
282
288
  favorite: Boolean
283
289
  hasAutoShareNotesOn: Boolean
284
290
  hasAutoShareTasksOn: Boolean
285
- sharingLevel: Int!
291
+ businessObjects: [BusinessObjectLink]
286
292
  }`;
287
293
  exports.BusinessObjectLinkInputQL = `
288
294
  input BusinessObjectLinkInput {
@@ -551,6 +557,11 @@ class Sync extends Primitive {
551
557
  }
552
558
  }
553
559
  exports.Sync = Sync;
560
+ exports.BusinessObjectLinkingToTagQL = `
561
+ type BusinessObjectLinkingToTag {
562
+ documentTypeSubscriptions: [String]!
563
+ tagType: String!
564
+ }`;
554
565
  exports.ProviderApplicationQL = `
555
566
  type ProviderApplication {
556
567
  name: String!
@@ -558,9 +569,10 @@ type ProviderApplication {
558
569
  description: String!
559
570
  iconUrl: String
560
571
  sobjects: StandardObjects!
561
- linkSubscriptions: [String]!
562
- recordTypeSubscriptions: [String]!
563
- documentTypeSubscriptions: [String]!
572
+ linkSubscriptions: [String]
573
+ recordTypeSubscriptions: [String]
574
+ documentTypeSubscriptions: [String]
575
+ businessObjectLinkingToTags: [BusinessObjectLinkingToTag]
564
576
  authentication: Boolean!
565
577
  }`;
566
578
  exports.ProviderQL = `
@@ -571,8 +583,8 @@ type Provider {${exports.PrimitiveFields}
571
583
  iconUrl: String
572
584
  instanceUrl: String!
573
585
  applications: [ProviderApplication]!
574
- tableMetadata: [TableMetadata]!
575
- documentMetadata: [DocumentMetadata]!
586
+ tableMetadata: [TableMetadata]
587
+ documentMetadata: [DocumentMetadata]
576
588
  }`;
577
589
  class Provider extends Primitive {
578
590
  constructor(name, label, description, instanceUrl, applications) {
@@ -582,8 +594,6 @@ class Provider extends Primitive {
582
594
  this.description = description;
583
595
  this.instanceUrl = instanceUrl;
584
596
  this.applications = applications;
585
- this.tableMetadata = [];
586
- this.documentMetadata = [];
587
597
  }
588
598
  }
589
599
  exports.Provider = Provider;
@@ -672,6 +682,8 @@ type Recommendation {${exports.SharedPrimitiveFields}
672
682
  archived: Boolean!
673
683
  favorite: Boolean!
674
684
  snoozed: Boolean!
685
+ thumbs: String
686
+ comment: String
675
687
  status: Int
676
688
  }`;
677
689
  class Recommendation extends SharedPrimitive {
@@ -1209,6 +1221,22 @@ type ArchiveNoteOutput {
1209
1221
  _id: String!
1210
1222
  archived: Boolean!
1211
1223
  }`;
1224
+ exports.UpdateRecommendationInputQL = `
1225
+ input UpdateRecommendationInput {
1226
+ _id: String!
1227
+ thumbs: String
1228
+ comment: String
1229
+ }`;
1230
+ exports.ArchiveRecommendationInputQL = `
1231
+ input ArchiveRecommendationInput {
1232
+ _id: String!
1233
+ archive: Boolean
1234
+ }`;
1235
+ exports.ArchiveRecommendationOutputQL = `
1236
+ type ArchiveRecommendationOutput {
1237
+ _id: String!
1238
+ archived: Boolean!
1239
+ }`;
1212
1240
  exports.FindProviderInputQL = `
1213
1241
  input FindProviderInput {
1214
1242
  provider: String!
@@ -1468,6 +1496,7 @@ ${exports.MetadataQL}
1468
1496
  ${exports.FolderQL}
1469
1497
  ${exports.SearchQL}
1470
1498
  ${exports.SyncQL}
1499
+ ${exports.BusinessObjectLinkingToTagQL}
1471
1500
  ${exports.ProviderApplicationQL}
1472
1501
  ${exports.ProviderQL}
1473
1502
  ${exports.TagQL}
@@ -1513,6 +1542,9 @@ ${exports.FindNoteInputQL}
1513
1542
  ${exports.FindNotesInputQL}
1514
1543
  ${exports.ArchiveNoteInputQL}
1515
1544
  ${exports.ArchiveNoteOutputQL}
1545
+ ${exports.UpdateRecommendationInputQL}
1546
+ ${exports.ArchiveRecommendationInputQL}
1547
+ ${exports.ArchiveRecommendationOutputQL}
1516
1548
  ${exports.FindProviderInputQL}
1517
1549
  ${exports.FindSyncInputQL}
1518
1550
  ${exports.SharingDomainInputQL}
package/model.ts CHANGED
@@ -158,6 +158,11 @@ export enum ProcessingStage {
158
158
  Stopped = 'stopped',
159
159
  }
160
160
 
161
+ export enum ThumbsDirection {
162
+ Up = 'up',
163
+ Down = 'down',
164
+ }
165
+
161
166
  export enum RecordType {
162
167
  Opportunity = 'opportunity',
163
168
  Case = 'case',
@@ -317,10 +322,11 @@ export interface SharingDomain {
317
322
  export const SharingTenantQL = `
318
323
  type SharingTenant {
319
324
  tenantId: String!
325
+ sharingLevel: Int!
320
326
  favorite: Boolean
321
327
  hasAutoShareNotesOn: Boolean
322
328
  hasAutoShareTasksOn: Boolean
323
- sharingLevel: Int!
329
+ businessObjects: [BusinessObjectLink]
324
330
  }`;
325
331
  export interface SharingTenant {
326
332
  tenantId: string;
@@ -328,7 +334,8 @@ export interface SharingTenant {
328
334
  hasAutoShareNotesOn: boolean; // Indicates if the tenant has auto sharing of notes switched on
329
335
  hasAutoShareTasksOn: boolean; // Indicates if the tenant has auto sharing of tasks switched on
330
336
  sharingLevel: SharingLevel; // Determines what tenants can do with the tag beyond tenant specific settings above
331
- _savedSearchId?: string;
337
+ businessObjects?: BusinessObjectLink[]; // The business objects that are linked to the tag specific to the tenant
338
+ _savedSearchId?: string; // Used to help manage searches that are based on favoriting a tag
332
339
  }
333
340
 
334
341
  export const BusinessObjectLinkInputQL = `
@@ -814,6 +821,16 @@ export class Sync extends Primitive {
814
821
  }
815
822
  }
816
823
 
824
+ export const BusinessObjectLinkingToTagQL = `
825
+ type BusinessObjectLinkingToTag {
826
+ documentTypeSubscriptions: [String]!
827
+ tagType: String!
828
+ }`;
829
+ export interface BusinessObjectLinkingToTag {
830
+ documentTypeSubscriptions: string[];
831
+ tagType: TagType;
832
+ }
833
+
817
834
  export const ProviderApplicationQL = `
818
835
  type ProviderApplication {
819
836
  name: String!
@@ -821,9 +838,10 @@ type ProviderApplication {
821
838
  description: String!
822
839
  iconUrl: String
823
840
  sobjects: StandardObjects!
824
- linkSubscriptions: [String]!
825
- recordTypeSubscriptions: [String]!
826
- documentTypeSubscriptions: [String]!
841
+ linkSubscriptions: [String]
842
+ recordTypeSubscriptions: [String]
843
+ documentTypeSubscriptions: [String]
844
+ businessObjectLinkingToTags: [BusinessObjectLinkingToTag]
827
845
  authentication: Boolean!
828
846
  }`;
829
847
  export interface ProviderApplication {
@@ -832,9 +850,10 @@ export interface ProviderApplication {
832
850
  description: string;
833
851
  iconUrl?: string;
834
852
  sobjects: StandardObjects;
835
- linkSubscriptions: string[];
836
- recordTypeSubscriptions: string[];
837
- documentTypeSubscriptions: string[];
853
+ linkSubscriptions?: string[];
854
+ recordTypeSubscriptions?: string[];
855
+ documentTypeSubscriptions?: string[];
856
+ businessObjectLinkingToTags?: BusinessObjectLinkingToTag[];
838
857
  authentication: boolean;
839
858
  }
840
859
 
@@ -846,8 +865,8 @@ type Provider {${PrimitiveFields}
846
865
  iconUrl: String
847
866
  instanceUrl: String!
848
867
  applications: [ProviderApplication]!
849
- tableMetadata: [TableMetadata]!
850
- documentMetadata: [DocumentMetadata]!
868
+ tableMetadata: [TableMetadata]
869
+ documentMetadata: [DocumentMetadata]
851
870
  }`;
852
871
  export class Provider extends Primitive {
853
872
  name: string;
@@ -856,8 +875,8 @@ export class Provider extends Primitive {
856
875
  iconUrl?: string;
857
876
  instanceUrl: string;
858
877
  applications: ProviderApplication[];
859
- tableMetadata: TableMetadata[];
860
- documentMetadata: DocumentMetadata[];
878
+ tableMetadata?: TableMetadata[];
879
+ documentMetadata?: DocumentMetadata[];
861
880
 
862
881
  constructor(
863
882
  name: string,
@@ -873,9 +892,6 @@ export class Provider extends Primitive {
873
892
  this.description = description;
874
893
  this.instanceUrl = instanceUrl;
875
894
  this.applications = applications;
876
-
877
- this.tableMetadata = [];
878
- this.documentMetadata = [];
879
895
  }
880
896
  }
881
897
 
@@ -1028,6 +1044,8 @@ type Recommendation {${SharedPrimitiveFields}
1028
1044
  archived: Boolean!
1029
1045
  favorite: Boolean!
1030
1046
  snoozed: Boolean!
1047
+ thumbs: String
1048
+ comment: String
1031
1049
  status: Int
1032
1050
  }`;
1033
1051
  export class Recommendation extends SharedPrimitive implements BaseTask {
@@ -1041,6 +1059,8 @@ export class Recommendation extends SharedPrimitive implements BaseTask {
1041
1059
  archived: boolean;
1042
1060
  favorite: boolean;
1043
1061
  snoozed: boolean;
1062
+ thumbs: ThumbsDirection; // Added so we can get some basic feedback on recommendations
1063
+ comment: String; // Added likely just for the private beta, but perhaps longer!
1044
1064
  status?: TaskStatus;
1045
1065
 
1046
1066
  constructor(
@@ -2197,6 +2217,38 @@ export interface ArchiveNoteOutput {
2197
2217
  archived: boolean;
2198
2218
  }
2199
2219
 
2220
+ export const UpdateRecommendationInputQL = `
2221
+ input UpdateRecommendationInput {
2222
+ _id: String!
2223
+ thumbs: String
2224
+ comment: String
2225
+ }`;
2226
+ export interface UpdateRecommendationInput {
2227
+ _id?: string;
2228
+ thumbs: ThumbsDirection;
2229
+ comment: string;
2230
+ }
2231
+
2232
+ export const ArchiveRecommendationInputQL = `
2233
+ input ArchiveRecommendationInput {
2234
+ _id: String!
2235
+ archive: Boolean
2236
+ }`;
2237
+ export interface ArchiveRecommendationInput {
2238
+ _id: string;
2239
+ archive?: boolean;
2240
+ }
2241
+
2242
+ export const ArchiveRecommendationOutputQL = `
2243
+ type ArchiveRecommendationOutput {
2244
+ _id: String!
2245
+ archived: Boolean!
2246
+ }`;
2247
+ export interface ArchiveRecommendationOutput {
2248
+ _id: string;
2249
+ archived: boolean;
2250
+ }
2251
+
2200
2252
  export const FindProviderInputQL = `
2201
2253
  input FindProviderInput {
2202
2254
  provider: String!
@@ -2654,6 +2706,7 @@ ${MetadataQL}
2654
2706
  ${FolderQL}
2655
2707
  ${SearchQL}
2656
2708
  ${SyncQL}
2709
+ ${BusinessObjectLinkingToTagQL}
2657
2710
  ${ProviderApplicationQL}
2658
2711
  ${ProviderQL}
2659
2712
  ${TagQL}
@@ -2699,6 +2752,9 @@ ${FindNoteInputQL}
2699
2752
  ${FindNotesInputQL}
2700
2753
  ${ArchiveNoteInputQL}
2701
2754
  ${ArchiveNoteOutputQL}
2755
+ ${UpdateRecommendationInputQL}
2756
+ ${ArchiveRecommendationInputQL}
2757
+ ${ArchiveRecommendationOutputQL}
2702
2758
  ${FindProviderInputQL}
2703
2759
  ${FindSyncInputQL}
2704
2760
  ${SharingDomainInputQL}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.7.24",
4
+ "version": "4.7.26",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",