@bigfootai/bigfoot-types 4.8.10 → 4.8.12
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 +30 -3
- package/model.ts +37 -0
- 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.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.TagRecommendationType = exports.InviteStatus = exports.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.TaskPriority = exports.AccessType = 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 = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = void 0;
|
4
|
+
exports.History = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = 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.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = void 0;
|
5
|
+
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.TaskFieldsForUpsert = exports.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = 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 = exports.UpdateRecommendationInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindDocumentInputQL = 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
|
@@ -33,6 +33,7 @@ var RecommendationType;
|
|
33
33
|
(function (RecommendationType) {
|
34
34
|
RecommendationType["Connect"] = "connect";
|
35
35
|
RecommendationType["Upsert"] = "upsert";
|
36
|
+
RecommendationType["Share"] = "share";
|
36
37
|
})(RecommendationType || (exports.RecommendationType = RecommendationType = {}));
|
37
38
|
var UpsertType;
|
38
39
|
(function (UpsertType) {
|
@@ -653,6 +654,30 @@ type TagRecommendation {
|
|
653
654
|
tags: [Tag]!
|
654
655
|
entity: EntityEntry!
|
655
656
|
}`;
|
657
|
+
exports.TenantLightQL = `
|
658
|
+
type TenantLight {
|
659
|
+
domainMemberships: [String]!
|
660
|
+
email: String!
|
661
|
+
tagId: String!
|
662
|
+
picture: String!
|
663
|
+
familyName: String!
|
664
|
+
givenName: String!
|
665
|
+
allowed: Boolean
|
666
|
+
access: String
|
667
|
+
}`;
|
668
|
+
class TenantLight {
|
669
|
+
constructor(tenant) {
|
670
|
+
this.domainMemberships = tenant.domainMemberships;
|
671
|
+
this.email = tenant.email;
|
672
|
+
this.tagId = tenant.tagId;
|
673
|
+
this.picture = tenant.picture;
|
674
|
+
this.familyName = tenant.familyName;
|
675
|
+
this.givenName = tenant.givenName;
|
676
|
+
this.allowed = tenant.allowed;
|
677
|
+
this.access = tenant.access;
|
678
|
+
}
|
679
|
+
}
|
680
|
+
exports.TenantLight = TenantLight;
|
656
681
|
// We make recommendations/notifications for a variety of reasons
|
657
682
|
// - Recommend integrating calendar based on dates in the note
|
658
683
|
// - Recommend integrating salesforce based on links in the note
|
@@ -684,6 +709,7 @@ type UpsertRecommendation {
|
|
684
709
|
exports.ShareRecommendationQL = `
|
685
710
|
type ShareRecommendation {
|
686
711
|
shared: Boolean!
|
712
|
+
tenant: TenantLight!
|
687
713
|
}`;
|
688
714
|
exports.RecommendationQL = `
|
689
715
|
type Recommendation {${exports.SharedPrimitiveFields}
|
@@ -1528,6 +1554,7 @@ ${exports.ProviderApplicationQL}
|
|
1528
1554
|
${exports.ProviderQL}
|
1529
1555
|
${exports.TagQL}
|
1530
1556
|
${exports.TagRecommendationQL}
|
1557
|
+
${exports.TenantLightQL}
|
1531
1558
|
${exports.ConnectRecommendationQL}
|
1532
1559
|
${exports.UpsertRecommendationQL}
|
1533
1560
|
${exports.ShareRecommendationQL}
|
package/model.ts
CHANGED
@@ -27,6 +27,7 @@ export enum BlockType {
|
|
27
27
|
export enum RecommendationType {
|
28
28
|
Connect = 'connect',
|
29
29
|
Upsert = 'upsert',
|
30
|
+
Share = 'share',
|
30
31
|
}
|
31
32
|
|
32
33
|
export enum UpsertType {
|
@@ -989,6 +990,39 @@ export interface TagRecommendation {
|
|
989
990
|
entity: EntityEntry;
|
990
991
|
}
|
991
992
|
|
993
|
+
export const TenantLightQL = `
|
994
|
+
type TenantLight {
|
995
|
+
domainMemberships: [String]!
|
996
|
+
email: String!
|
997
|
+
tagId: String!
|
998
|
+
picture: String!
|
999
|
+
familyName: String!
|
1000
|
+
givenName: String!
|
1001
|
+
allowed: Boolean
|
1002
|
+
access: String
|
1003
|
+
}`;
|
1004
|
+
export class TenantLight {
|
1005
|
+
domainMemberships: string[];
|
1006
|
+
email: string;
|
1007
|
+
tagId: string;
|
1008
|
+
picture: string;
|
1009
|
+
familyName: string;
|
1010
|
+
givenName: string;
|
1011
|
+
allowed?: boolean;
|
1012
|
+
access?: string;
|
1013
|
+
|
1014
|
+
constructor(tenant: Tenant) {
|
1015
|
+
this.domainMemberships = tenant.domainMemberships;
|
1016
|
+
this.email = tenant.email;
|
1017
|
+
this.tagId = tenant.tagId;
|
1018
|
+
this.picture = tenant.picture;
|
1019
|
+
this.familyName = tenant.familyName;
|
1020
|
+
this.givenName = tenant.givenName;
|
1021
|
+
this.allowed = tenant.allowed;
|
1022
|
+
this.access = tenant.access;
|
1023
|
+
}
|
1024
|
+
}
|
1025
|
+
|
992
1026
|
// We make recommendations/notifications for a variety of reasons
|
993
1027
|
// - Recommend integrating calendar based on dates in the note
|
994
1028
|
// - Recommend integrating salesforce based on links in the note
|
@@ -1037,9 +1071,11 @@ export interface UpsertRecommendation {
|
|
1037
1071
|
export const ShareRecommendationQL = `
|
1038
1072
|
type ShareRecommendation {
|
1039
1073
|
shared: Boolean!
|
1074
|
+
tenant: TenantLight!
|
1040
1075
|
}`;
|
1041
1076
|
export interface ShareRecommendation {
|
1042
1077
|
shared: boolean;
|
1078
|
+
tenant: TenantLight;
|
1043
1079
|
}
|
1044
1080
|
|
1045
1081
|
export interface BaseTask {
|
@@ -2748,6 +2784,7 @@ ${ProviderApplicationQL}
|
|
2748
2784
|
${ProviderQL}
|
2749
2785
|
${TagQL}
|
2750
2786
|
${TagRecommendationQL}
|
2787
|
+
${TenantLightQL}
|
2751
2788
|
${ConnectRecommendationQL}
|
2752
2789
|
${UpsertRecommendationQL}
|
2753
2790
|
${ShareRecommendationQL}
|