@bigfootai/bigfoot-types 5.4.8 → 5.4.10
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 +16 -5
- package/model.ts +19 -0
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.CredentialQL = exports.StandardObjectsQL = exports.ProviderResponseQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ExternalIdLinkQL = exports.ExternalIdLinkInputQL = exports.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = exports.TenantSettingQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = exports.InviteSharingTagInputQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.PubSubType = 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.ExportType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.
|
7
|
-
exports.
|
8
|
-
exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchEventsInputQL = exports.GraphSearchInputQL = void 0;
|
4
|
+
exports.NotificationRecommendationQL = exports.MessageRecommendationQL = exports.IngestionRecommendation = exports.ShareRecommendationQL = exports.UpsertRecommendationQL = exports.ChangeRecommendationQL = exports.ReactionRecommendationQL = exports.ConnectRecommendationQL = exports.TenantLight = exports.TenantLightQL = exports.TenantLightInputQL = exports.TagRecommendationQL = exports.Tag = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.GraphTagsInputQL = exports.GraphTagQL = exports.TagTypeQL = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.ExternalIdQL = exports.DashboardTagSubscriptionQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Folder = exports.FolderQL = exports.History = exports.Metadata = exports.MetadataQL = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFieldsForUpsert = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFieldsForUpsert = exports.PrimitiveFields = exports.FindExternalTagReferenceInputQL = exports.FindExternalTagReferencesInputQL = exports.PersonReferenceQL = exports.PersonReferenceInputQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = void 0;
|
5
|
+
exports.BlockData = exports.BlockDataQL = exports.Document = exports.DocumentQL = exports.DocumentFields = exports.Message = exports.MessageQL = exports.UpsertMessageInputQL = exports.Email = exports.EmailQL = exports.IngestEmailInputQL = exports.Todo = exports.Calendar = exports.CalendarQL = exports.Event = exports.EventQL = exports.AttachmentQL = exports.AttachmentInputQL = exports.PersonAcceptanceQL = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.ConferenceQL = exports.ConferenceEntrypointQL = exports.TranscriptionQL = exports.TranscriptionEntryQL = exports.Task = exports.TaskQL = exports.Note = exports.NoteQL = exports.Section = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFieldsForUpsert = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockQL = exports.BlockFieldsForUpsert = exports.BlockFields = exports.Person = exports.Organization = exports.Domain = exports.DomainQL = exports.Tenant = exports.TenantQL = exports.Recommendation = exports.RecommendationQL = void 0;
|
6
|
+
exports.UpsertTagInputQL = exports.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveRecommendationOutputQL = exports.ArchiveRecommendationInputQL = exports.UpdateRecommendationInputQL = exports.ArchiveBlockOutputQL = exports.ArchiveBlockInputQL = exports.FindBlocksInputQL = exports.FindBlockInputQL = exports.UpsertNoteInputQL = exports.FindDashboardBlockInputQL = exports.FindDashboardInputQL = exports.UpsertDocumentInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantsInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = exports.TableFields = exports.Record = exports.RecordQL = exports.RecordInputQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldValueInputQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DashboardMetadata = exports.DashboardMetadataQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Dashboard = exports.DashboardQL = void 0;
|
7
|
+
exports.GraphSearchFields = exports.GraphSearchInputFields = exports.SortOptionInputQL = exports.SortOptionQL = exports.SortOptionFieldsQL = exports.BusinessObjectFilterInputQL = exports.BusinessObjectFilterQL = exports.BusinessObjectFilterFieldsQL = exports.StringFilterInputQL = exports.StringFilterQL = exports.StringFilterFieldsQL = exports.NumberFilterInputQL = exports.NumberFilterQL = exports.NumberFilterFieldsQL = exports.ChildItemQL = exports.ChildItemInputQL = exports.ChildItemFields = exports.ParentItemQL = exports.ParentItemInputQL = exports.ParentItemFields = exports.RemoveReactionInputQL = exports.AddReactionInputQL = exports.FindReactionsInputQL = exports.ReactionQL = exports.FindTagsVisibilityInputQL = exports.OrderDirection = exports.OrderDirectionQL = exports.TaskStatusQL = exports.RecommendationTypeQL = exports.BlockTypeQL = 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.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.MergeTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = void 0;
|
8
|
+
exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.GraphSearchEventsInputQL = exports.GraphSearchInputQL = exports.GraphSearchQL = void 0;
|
9
9
|
const uuid_1 = require("uuid");
|
10
10
|
/*
|
11
11
|
These are the core primitives of our model. These represent the entities that show
|
@@ -43,6 +43,7 @@ var RecommendationType;
|
|
43
43
|
RecommendationType["Message"] = "message";
|
44
44
|
RecommendationType["Reaction"] = "reaction";
|
45
45
|
RecommendationType["Change"] = "change";
|
46
|
+
RecommendationType["Ingestion"] = "ingestion";
|
46
47
|
})(RecommendationType || (exports.RecommendationType = RecommendationType = {}));
|
47
48
|
var UpsertType;
|
48
49
|
(function (UpsertType) {
|
@@ -858,6 +859,13 @@ type ShareRecommendation {
|
|
858
859
|
shared: Boolean!
|
859
860
|
tenant: TenantLight!
|
860
861
|
}`;
|
862
|
+
exports.IngestionRecommendation = `
|
863
|
+
type IngestionRecommendation {
|
864
|
+
processingStage: String!
|
865
|
+
processingAttempts: Int!
|
866
|
+
processingReason: String
|
867
|
+
tenant: TenantLight!
|
868
|
+
}`;
|
861
869
|
exports.MessageRecommendationQL = `
|
862
870
|
type MessageRecommendation {
|
863
871
|
tenant: TenantLight!
|
@@ -877,6 +885,7 @@ type Recommendation {${exports.SharedPrimitiveFields}
|
|
877
885
|
notificationRecommendation: NotificationRecommendation
|
878
886
|
reactionRecommendation: ReactionRecommendation
|
879
887
|
changeRecommendation: ChangeRecommendation
|
888
|
+
ingestionRecommendation: IngestionRecommendation
|
880
889
|
parentId: String
|
881
890
|
dateDue: Float
|
882
891
|
dateRemindMe: Float
|
@@ -1241,6 +1250,7 @@ exports.UpsertMessageInputQL = `
|
|
1241
1250
|
input UpsertMessageInput {${exports.BlockFieldsForUpsert}
|
1242
1251
|
htmlContent: String
|
1243
1252
|
originReferenceTagId: String
|
1253
|
+
originReferenceBlock: ReferenceBlockInput
|
1244
1254
|
}`;
|
1245
1255
|
exports.MessageQL = `
|
1246
1256
|
type Message {${exports.BusinessObjectFields}
|
@@ -1821,6 +1831,7 @@ enum RecommendationType {
|
|
1821
1831
|
${RecommendationType.Share.toUpperCase()}
|
1822
1832
|
${RecommendationType.Upsert.toUpperCase()}
|
1823
1833
|
${RecommendationType.Notification.toUpperCase()}
|
1834
|
+
${RecommendationType.Ingestion.toUpperCase()}
|
1824
1835
|
}`;
|
1825
1836
|
exports.TaskStatusQL = `
|
1826
1837
|
enum TaskStatus {
|
package/model.ts
CHANGED
@@ -35,6 +35,7 @@ export enum RecommendationType {
|
|
35
35
|
Message = 'message',
|
36
36
|
Reaction = 'reaction',
|
37
37
|
Change = 'change',
|
38
|
+
Ingestion = 'ingestion',
|
38
39
|
}
|
39
40
|
|
40
41
|
export enum UpsertType {
|
@@ -1317,6 +1318,20 @@ export interface ShareRecommendation {
|
|
1317
1318
|
tenant: TenantLight;
|
1318
1319
|
}
|
1319
1320
|
|
1321
|
+
export const IngestionRecommendation = `
|
1322
|
+
type IngestionRecommendation {
|
1323
|
+
processingStage: String!
|
1324
|
+
processingAttempts: Int!
|
1325
|
+
processingReason: String
|
1326
|
+
tenant: TenantLight!
|
1327
|
+
}`;
|
1328
|
+
export interface IngestionRecommendation {
|
1329
|
+
processingStage: ProcessingStage;
|
1330
|
+
processingAttempts: number;
|
1331
|
+
processingReason?: string;
|
1332
|
+
tenant: TenantLight;
|
1333
|
+
}
|
1334
|
+
|
1320
1335
|
export const MessageRecommendationQL = `
|
1321
1336
|
type MessageRecommendation {
|
1322
1337
|
tenant: TenantLight!
|
@@ -1353,6 +1368,7 @@ type Recommendation {${SharedPrimitiveFields}
|
|
1353
1368
|
notificationRecommendation: NotificationRecommendation
|
1354
1369
|
reactionRecommendation: ReactionRecommendation
|
1355
1370
|
changeRecommendation: ChangeRecommendation
|
1371
|
+
ingestionRecommendation: IngestionRecommendation
|
1356
1372
|
parentId: String
|
1357
1373
|
dateDue: Float
|
1358
1374
|
dateRemindMe: Float
|
@@ -1373,6 +1389,7 @@ export class Recommendation extends SharedPrimitive implements BaseTask {
|
|
1373
1389
|
notificationRecommendation?: NotificationRecommendation; // For instances where the app wants to tell us something
|
1374
1390
|
reactionRecommendation?: ReactionRecommendation; // For recommendations that are related to emoji
|
1375
1391
|
changeRecommendation?: ChangeRecommendation; // Something changed for a block that is noteworthy
|
1392
|
+
ingestionRecommendation?: IngestionRecommendation; // Used to let the user know something has been ingested
|
1376
1393
|
parentId?: string; // Any parent recommendation that generated this recommendation
|
1377
1394
|
dateDue?: number;
|
1378
1395
|
dateRemindMe?: number;
|
@@ -2121,6 +2138,7 @@ export const UpsertMessageInputQL = `
|
|
2121
2138
|
input UpsertMessageInput {${BlockFieldsForUpsert}
|
2122
2139
|
htmlContent: String
|
2123
2140
|
originReferenceTagId: String
|
2141
|
+
originReferenceBlock: ReferenceBlockInput
|
2124
2142
|
}`;
|
2125
2143
|
export const MessageQL = `
|
2126
2144
|
type Message {${BusinessObjectFields}
|
@@ -3239,6 +3257,7 @@ enum RecommendationType {
|
|
3239
3257
|
${RecommendationType.Share.toUpperCase()}
|
3240
3258
|
${RecommendationType.Upsert.toUpperCase()}
|
3241
3259
|
${RecommendationType.Notification.toUpperCase()}
|
3260
|
+
${RecommendationType.Ingestion.toUpperCase()}
|
3242
3261
|
}`;
|
3243
3262
|
|
3244
3263
|
export const TaskStatusQL = `
|