@bigfootai/bigfoot-types 4.7.3 → 4.7.5
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 +14 -3
- package/model.ts +12 -2
- 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 = void 0;
|
4
|
+
exports.TaskQL = 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.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = void 0;
|
5
|
+
exports.SharingTenantInputQL = 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 = 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 = 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
|
@@ -641,6 +641,15 @@ type UpsertRecommendation {
|
|
641
641
|
upsertType: String!
|
642
642
|
connectRecommendations: [ConnectRecommendation]
|
643
643
|
}`;
|
644
|
+
exports.RecommendationQL = `
|
645
|
+
type Recommendation {${exports.SharedPrimitiveFields}
|
646
|
+
referenceBlock: ReferenceBlock
|
647
|
+
tenantIdCreated: Record!
|
648
|
+
recommendationType: String!
|
649
|
+
connectRecommendation: ConnectRecommendation
|
650
|
+
upsertRecommendation: UpsertRecommendation
|
651
|
+
parentId: String
|
652
|
+
}`;
|
644
653
|
class Recommendation extends SharedPrimitive {
|
645
654
|
constructor(sharingTags, referenceBlock, tenantIdCreated, recommendationType) {
|
646
655
|
// For the sharing tags, we do it a little differently depending on the global nature of the recommendation. If theirs
|
@@ -1438,6 +1447,8 @@ ${exports.ProviderQL}
|
|
1438
1447
|
${exports.TagQL}
|
1439
1448
|
${exports.TagRecommendationQL}
|
1440
1449
|
${exports.ConnectRecommendationQL}
|
1450
|
+
${exports.UpsertRecommendationQL}
|
1451
|
+
${exports.RecommendationQL}
|
1441
1452
|
${exports.ConnectedProviderQL}
|
1442
1453
|
${exports.ReferenceBlockInputQL}
|
1443
1454
|
${exports.ReferenceBlockQL}
|
package/model.ts
CHANGED
@@ -964,21 +964,29 @@ type UpsertRecommendation {
|
|
964
964
|
table: Table!
|
965
965
|
record: Record!
|
966
966
|
upsertType: String!
|
967
|
-
connectRecommendations: [ConnectRecommendation]
|
968
967
|
}`;
|
969
968
|
export interface UpsertRecommendation {
|
970
969
|
table: Table;
|
971
970
|
record: Record;
|
972
971
|
upsertType: UpsertType;
|
973
|
-
connectRecommendations?: ConnectRecommendation[]; // Lists out any recommended providers that could be used to perform the data update
|
974
972
|
}
|
975
973
|
|
974
|
+
export const RecommendationQL = `
|
975
|
+
type Recommendation {${SharedPrimitiveFields}
|
976
|
+
referenceBlock: ReferenceBlock
|
977
|
+
tenantIdCreated: Record!
|
978
|
+
recommendationType: String!
|
979
|
+
connectRecommendation: ConnectRecommendation
|
980
|
+
upsertRecommendation: UpsertRecommendation
|
981
|
+
parentId: String
|
982
|
+
}`;
|
976
983
|
export class Recommendation extends SharedPrimitive {
|
977
984
|
referenceBlock: ReferenceBlock; // This is the block that caused the recommendation to happen
|
978
985
|
tenantIdCreated: string;
|
979
986
|
recommendationType: RecommendationType;
|
980
987
|
connectRecommendation?: ConnectRecommendation; // For provider recommendations, we use this field
|
981
988
|
upsertRecommendation?: UpsertRecommendation; // For data upsert recommendations, we use this field
|
989
|
+
parentId?: string; // Any parent recommendation that generated this recommendation
|
982
990
|
|
983
991
|
constructor(
|
984
992
|
sharingTags: SharingTag[],
|
@@ -2590,6 +2598,8 @@ ${ProviderQL}
|
|
2590
2598
|
${TagQL}
|
2591
2599
|
${TagRecommendationQL}
|
2592
2600
|
${ConnectRecommendationQL}
|
2601
|
+
${UpsertRecommendationQL}
|
2602
|
+
${RecommendationQL}
|
2593
2603
|
${ConnectedProviderQL}
|
2594
2604
|
${ReferenceBlockInputQL}
|
2595
2605
|
${ReferenceBlockQL}
|