@bigfootai/bigfoot-types 4.7.23 → 4.7.25
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.
- package/model.js +18 -11
- package/model.ts +27 -15
- 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
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.
|
5
|
-
exports.
|
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;
|
4
|
+
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.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 = void 0;
|
5
|
+
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 = exports.TaskFields = 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 = 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
|
@@ -279,10 +279,11 @@ type SharingDomain {
|
|
279
279
|
exports.SharingTenantQL = `
|
280
280
|
type SharingTenant {
|
281
281
|
tenantId: String!
|
282
|
+
sharingLevel: Int!
|
282
283
|
favorite: Boolean
|
283
284
|
hasAutoShareNotesOn: Boolean
|
284
285
|
hasAutoShareTasksOn: Boolean
|
285
|
-
|
286
|
+
businessObjects: [BusinessObjectLink]
|
286
287
|
}`;
|
287
288
|
exports.BusinessObjectLinkInputQL = `
|
288
289
|
input BusinessObjectLinkInput {
|
@@ -551,6 +552,11 @@ class Sync extends Primitive {
|
|
551
552
|
}
|
552
553
|
}
|
553
554
|
exports.Sync = Sync;
|
555
|
+
exports.BusinessObjectLinkingToTagQL = `
|
556
|
+
type BusinessObjectLinkingToTag {
|
557
|
+
documentTypeSubscriptions: [String]!
|
558
|
+
tagType: String!
|
559
|
+
}`;
|
554
560
|
exports.ProviderApplicationQL = `
|
555
561
|
type ProviderApplication {
|
556
562
|
name: String!
|
@@ -558,9 +564,10 @@ type ProviderApplication {
|
|
558
564
|
description: String!
|
559
565
|
iconUrl: String
|
560
566
|
sobjects: StandardObjects!
|
561
|
-
linkSubscriptions: [String]
|
562
|
-
recordTypeSubscriptions: [String]
|
563
|
-
documentTypeSubscriptions: [String]
|
567
|
+
linkSubscriptions: [String]
|
568
|
+
recordTypeSubscriptions: [String]
|
569
|
+
documentTypeSubscriptions: [String]
|
570
|
+
businessObjectLinkingToTags: [BusinessObjectLinkingToTag]
|
564
571
|
authentication: Boolean!
|
565
572
|
}`;
|
566
573
|
exports.ProviderQL = `
|
@@ -571,8 +578,8 @@ type Provider {${exports.PrimitiveFields}
|
|
571
578
|
iconUrl: String
|
572
579
|
instanceUrl: String!
|
573
580
|
applications: [ProviderApplication]!
|
574
|
-
tableMetadata: [TableMetadata]
|
575
|
-
documentMetadata: [DocumentMetadata]
|
581
|
+
tableMetadata: [TableMetadata]
|
582
|
+
documentMetadata: [DocumentMetadata]
|
576
583
|
}`;
|
577
584
|
class Provider extends Primitive {
|
578
585
|
constructor(name, label, description, instanceUrl, applications) {
|
@@ -582,8 +589,6 @@ class Provider extends Primitive {
|
|
582
589
|
this.description = description;
|
583
590
|
this.instanceUrl = instanceUrl;
|
584
591
|
this.applications = applications;
|
585
|
-
this.tableMetadata = [];
|
586
|
-
this.documentMetadata = [];
|
587
592
|
}
|
588
593
|
}
|
589
594
|
exports.Provider = Provider;
|
@@ -599,6 +604,7 @@ exports.TagFieldsWithoutSharing = `${exports.PrimitiveFields}
|
|
599
604
|
inviteStatus: String
|
600
605
|
originNoteId: String
|
601
606
|
tenantIdVerified: String
|
607
|
+
businessObjects: [BusinessObjectLink]
|
602
608
|
archived: Boolean!
|
603
609
|
favorite: Boolean!
|
604
610
|
taskCount: Int`;
|
@@ -1467,6 +1473,7 @@ ${exports.MetadataQL}
|
|
1467
1473
|
${exports.FolderQL}
|
1468
1474
|
${exports.SearchQL}
|
1469
1475
|
${exports.SyncQL}
|
1476
|
+
${exports.BusinessObjectLinkingToTagQL}
|
1470
1477
|
${exports.ProviderApplicationQL}
|
1471
1478
|
${exports.ProviderQL}
|
1472
1479
|
${exports.TagQL}
|
package/model.ts
CHANGED
@@ -317,10 +317,11 @@ export interface SharingDomain {
|
|
317
317
|
export const SharingTenantQL = `
|
318
318
|
type SharingTenant {
|
319
319
|
tenantId: String!
|
320
|
+
sharingLevel: Int!
|
320
321
|
favorite: Boolean
|
321
322
|
hasAutoShareNotesOn: Boolean
|
322
323
|
hasAutoShareTasksOn: Boolean
|
323
|
-
|
324
|
+
businessObjects: [BusinessObjectLink]
|
324
325
|
}`;
|
325
326
|
export interface SharingTenant {
|
326
327
|
tenantId: string;
|
@@ -328,7 +329,8 @@ export interface SharingTenant {
|
|
328
329
|
hasAutoShareNotesOn: boolean; // Indicates if the tenant has auto sharing of notes switched on
|
329
330
|
hasAutoShareTasksOn: boolean; // Indicates if the tenant has auto sharing of tasks switched on
|
330
331
|
sharingLevel: SharingLevel; // Determines what tenants can do with the tag beyond tenant specific settings above
|
331
|
-
|
332
|
+
businessObjects?: BusinessObjectLink[]; // The business objects that are linked to the tag specific to the tenant
|
333
|
+
_savedSearchId?: string; // Used to help manage searches that are based on favoriting a tag
|
332
334
|
}
|
333
335
|
|
334
336
|
export const BusinessObjectLinkInputQL = `
|
@@ -814,6 +816,16 @@ export class Sync extends Primitive {
|
|
814
816
|
}
|
815
817
|
}
|
816
818
|
|
819
|
+
export const BusinessObjectLinkingToTagQL = `
|
820
|
+
type BusinessObjectLinkingToTag {
|
821
|
+
documentTypeSubscriptions: [String]!
|
822
|
+
tagType: String!
|
823
|
+
}`;
|
824
|
+
export interface BusinessObjectLinkingToTag {
|
825
|
+
documentTypeSubscriptions: string[];
|
826
|
+
tagType: TagType;
|
827
|
+
}
|
828
|
+
|
817
829
|
export const ProviderApplicationQL = `
|
818
830
|
type ProviderApplication {
|
819
831
|
name: String!
|
@@ -821,9 +833,10 @@ type ProviderApplication {
|
|
821
833
|
description: String!
|
822
834
|
iconUrl: String
|
823
835
|
sobjects: StandardObjects!
|
824
|
-
linkSubscriptions: [String]
|
825
|
-
recordTypeSubscriptions: [String]
|
826
|
-
documentTypeSubscriptions: [String]
|
836
|
+
linkSubscriptions: [String]
|
837
|
+
recordTypeSubscriptions: [String]
|
838
|
+
documentTypeSubscriptions: [String]
|
839
|
+
businessObjectLinkingToTags: [BusinessObjectLinkingToTag]
|
827
840
|
authentication: Boolean!
|
828
841
|
}`;
|
829
842
|
export interface ProviderApplication {
|
@@ -832,9 +845,10 @@ export interface ProviderApplication {
|
|
832
845
|
description: string;
|
833
846
|
iconUrl?: string;
|
834
847
|
sobjects: StandardObjects;
|
835
|
-
linkSubscriptions
|
836
|
-
recordTypeSubscriptions
|
837
|
-
documentTypeSubscriptions
|
848
|
+
linkSubscriptions?: string[];
|
849
|
+
recordTypeSubscriptions?: string[];
|
850
|
+
documentTypeSubscriptions?: string[];
|
851
|
+
businessObjectLinkingToTags?: BusinessObjectLinkingToTag[];
|
838
852
|
authentication: boolean;
|
839
853
|
}
|
840
854
|
|
@@ -846,8 +860,8 @@ type Provider {${PrimitiveFields}
|
|
846
860
|
iconUrl: String
|
847
861
|
instanceUrl: String!
|
848
862
|
applications: [ProviderApplication]!
|
849
|
-
tableMetadata: [TableMetadata]
|
850
|
-
documentMetadata: [DocumentMetadata]
|
863
|
+
tableMetadata: [TableMetadata]
|
864
|
+
documentMetadata: [DocumentMetadata]
|
851
865
|
}`;
|
852
866
|
export class Provider extends Primitive {
|
853
867
|
name: string;
|
@@ -856,8 +870,8 @@ export class Provider extends Primitive {
|
|
856
870
|
iconUrl?: string;
|
857
871
|
instanceUrl: string;
|
858
872
|
applications: ProviderApplication[];
|
859
|
-
tableMetadata
|
860
|
-
documentMetadata
|
873
|
+
tableMetadata?: TableMetadata[];
|
874
|
+
documentMetadata?: DocumentMetadata[];
|
861
875
|
|
862
876
|
constructor(
|
863
877
|
name: string,
|
@@ -873,9 +887,6 @@ export class Provider extends Primitive {
|
|
873
887
|
this.description = description;
|
874
888
|
this.instanceUrl = instanceUrl;
|
875
889
|
this.applications = applications;
|
876
|
-
|
877
|
-
this.tableMetadata = [];
|
878
|
-
this.documentMetadata = [];
|
879
890
|
}
|
880
891
|
}
|
881
892
|
|
@@ -2654,6 +2665,7 @@ ${MetadataQL}
|
|
2654
2665
|
${FolderQL}
|
2655
2666
|
${SearchQL}
|
2656
2667
|
${SyncQL}
|
2668
|
+
${BusinessObjectLinkingToTagQL}
|
2657
2669
|
${ProviderApplicationQL}
|
2658
2670
|
${ProviderQL}
|
2659
2671
|
${TagQL}
|