@bigfootai/bigfoot-types 4.8.9 → 4.8.11
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 +10 -3
- package/model.ts +12 -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 = void 0;
|
4
|
+
exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = 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.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.UpsertNoteInputQL = exports.FindDocumentInputQL = 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 = 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 = 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) {
|
@@ -681,12 +682,17 @@ type UpsertRecommendation {
|
|
681
682
|
metadata: Metadata
|
682
683
|
connectionId: String!
|
683
684
|
}`;
|
685
|
+
exports.ShareRecommendationQL = `
|
686
|
+
type ShareRecommendation {
|
687
|
+
shared: Boolean!
|
688
|
+
}`;
|
684
689
|
exports.RecommendationQL = `
|
685
690
|
type Recommendation {${exports.SharedPrimitiveFields}
|
686
691
|
referenceBlock: ReferenceBlock
|
687
692
|
recommendationType: String!
|
688
693
|
connectRecommendation: ConnectRecommendation
|
689
694
|
upsertRecommendation: UpsertRecommendation
|
695
|
+
shareRecommendation: ShareRecommendation
|
690
696
|
parentId: String
|
691
697
|
dateDue: Float
|
692
698
|
dateRemindMe: Float
|
@@ -1525,6 +1531,7 @@ ${exports.TagQL}
|
|
1525
1531
|
${exports.TagRecommendationQL}
|
1526
1532
|
${exports.ConnectRecommendationQL}
|
1527
1533
|
${exports.UpsertRecommendationQL}
|
1534
|
+
${exports.ShareRecommendationQL}
|
1528
1535
|
${exports.RecommendationQL}
|
1529
1536
|
${exports.ConnectedProviderQL}
|
1530
1537
|
${exports.ReferenceBlockInputQL}
|
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 {
|
@@ -1034,6 +1035,14 @@ export interface UpsertRecommendation {
|
|
1034
1035
|
connectionId: string;
|
1035
1036
|
}
|
1036
1037
|
|
1038
|
+
export const ShareRecommendationQL = `
|
1039
|
+
type ShareRecommendation {
|
1040
|
+
shared: Boolean!
|
1041
|
+
}`;
|
1042
|
+
export interface ShareRecommendation {
|
1043
|
+
shared: boolean;
|
1044
|
+
}
|
1045
|
+
|
1037
1046
|
export interface BaseTask {
|
1038
1047
|
dateDue?: number;
|
1039
1048
|
dateRemindMe?: number;
|
@@ -1049,6 +1058,7 @@ type Recommendation {${SharedPrimitiveFields}
|
|
1049
1058
|
recommendationType: String!
|
1050
1059
|
connectRecommendation: ConnectRecommendation
|
1051
1060
|
upsertRecommendation: UpsertRecommendation
|
1061
|
+
shareRecommendation: ShareRecommendation
|
1052
1062
|
parentId: String
|
1053
1063
|
dateDue: Float
|
1054
1064
|
dateRemindMe: Float
|
@@ -1064,6 +1074,7 @@ export class Recommendation extends SharedPrimitive implements BaseTask {
|
|
1064
1074
|
recommendationType: RecommendationType;
|
1065
1075
|
connectRecommendation?: ConnectRecommendation; // For provider recommendations, we use this field
|
1066
1076
|
upsertRecommendation?: UpsertRecommendation; // For data upsert recommendations, we use this field
|
1077
|
+
shareRecommendation?: ShareRecommendation; // For instances when a block is shared with a tenant
|
1067
1078
|
parentId?: string; // Any parent recommendation that generated this recommendation
|
1068
1079
|
dateDue?: number;
|
1069
1080
|
dateRemindMe?: number;
|
@@ -2740,6 +2751,7 @@ ${TagQL}
|
|
2740
2751
|
${TagRecommendationQL}
|
2741
2752
|
${ConnectRecommendationQL}
|
2742
2753
|
${UpsertRecommendationQL}
|
2754
|
+
${ShareRecommendationQL}
|
2743
2755
|
${RecommendationQL}
|
2744
2756
|
${ConnectedProviderQL}
|
2745
2757
|
${ReferenceBlockInputQL}
|