@bigfootai/bigfoot-types 5.0.9 → 5.0.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 +14 -38
- package/model.ts +11 -45
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,10 +1,9 @@
|
|
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.DocumentSentimentQL = exports.TaskStepQL = exports.TaskStepInputQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.BusinessObjectLinkQL = exports.BusinessObjectLinkInputQL = exports.SharingTenantQL = exports.TenantSettingQL = 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.ExportType = exports.TagType = exports.UpsertType = exports.RecommendationType = exports.BlockType = void 0;
|
4
|
-
exports.
|
5
|
-
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 = exports.BlockDataQL = 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.
|
6
|
-
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.FindDashboardInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.
|
7
|
-
exports.GraphQLTypes = exports.UpdateTagSharingInputQL = exports.SearchInputQL = void 0;
|
4
|
+
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 = 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.DashboardTagSubscriptionQL = 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 = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = void 0;
|
5
|
+
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 = exports.BlockDataQL = 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.Note = exports.NoteQL = exports.Section = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFieldsForUpsert = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = void 0;
|
6
|
+
exports.GraphQLTypes = exports.UpdateTagSharingInputQL = 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.FindDashboardInputQL = exports.FindDocumentInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindDomainInputQL = exports.FindTenantInputQL = exports.UpsertRecordsInputQL = exports.FindRecordsInputQL = exports.FindRecordInputQL = exports.Table = exports.TableQL = void 0;
|
8
7
|
const uuid_1 = require("uuid");
|
9
8
|
/*
|
10
9
|
These are the core primitives of our model. These represent the entities that show
|
@@ -823,10 +822,17 @@ exports.BlockFields = `${exports.SharedPrimitiveFields}
|
|
823
822
|
parentId: String
|
824
823
|
originReferenceBlock: ReferenceBlock`;
|
825
824
|
exports.BlockFieldsForUpsert = `${exports.SharedPrimitiveFieldsForUpsert}
|
825
|
+
status: String
|
826
|
+
dateDue: Float
|
827
|
+
dateRemindMe: Float
|
826
828
|
archived: Boolean
|
827
829
|
favorite: Boolean
|
830
|
+
snoozed: Boolean
|
828
831
|
parentId: String
|
829
832
|
document: String`;
|
833
|
+
exports.BlockQL = `
|
834
|
+
type Block {${exports.BlockFields}
|
835
|
+
}`;
|
830
836
|
class Block extends SharedPrimitive {
|
831
837
|
constructor(tenantIdCreated, editors, sharingTags, blockType) {
|
832
838
|
super(sharingTags);
|
@@ -910,26 +916,8 @@ class Note extends Block {
|
|
910
916
|
}
|
911
917
|
}
|
912
918
|
exports.Note = Note;
|
913
|
-
exports.TaskFields = `${exports.BlockFields}
|
914
|
-
status: String!
|
915
|
-
dateDue: Float
|
916
|
-
editorId: String
|
917
|
-
editorGroupId: String
|
918
|
-
snoozed: Boolean!
|
919
|
-
steps: [TaskStep]
|
920
|
-
dateRemindMe: Float
|
921
|
-
recurrence: [String]
|
922
|
-
`;
|
923
|
-
exports.TaskFieldsForUpsert = `${exports.BlockFieldsForUpsert}
|
924
|
-
status: String
|
925
|
-
dateDue: Float
|
926
|
-
snoozed: Boolean
|
927
|
-
steps: [TaskStepInput]
|
928
|
-
dateRemindMe: Float
|
929
|
-
recurrence: [String]
|
930
|
-
`;
|
931
919
|
exports.TaskQL = `
|
932
|
-
type Task {${exports.
|
920
|
+
type Task {${exports.BlockFields}
|
933
921
|
}`;
|
934
922
|
class Task extends Block {
|
935
923
|
constructor(tenantIdCreated, editors, sharingTags) {
|
@@ -1006,7 +994,7 @@ type PersonAcceptance {${exports.PersonReferenceFields}
|
|
1006
994
|
exports.EventQL = `
|
1007
995
|
type Event {${exports.BusinessObjectFields}
|
1008
996
|
calendarId: String!
|
1009
|
-
|
997
|
+
eventStatus: String!
|
1010
998
|
dateStart: Float!
|
1011
999
|
organizedBy: PersonReference!
|
1012
1000
|
location: String
|
@@ -1293,16 +1281,6 @@ exports.FindDomainInputQL = `
|
|
1293
1281
|
input FindDomainInput {
|
1294
1282
|
_id: String!
|
1295
1283
|
}`;
|
1296
|
-
exports.FindArticleInputQL = `
|
1297
|
-
input FindArticleInput {
|
1298
|
-
originBlockId: String!
|
1299
|
-
type: String!
|
1300
|
-
}`;
|
1301
|
-
exports.FindArticlesInputQL = `
|
1302
|
-
input FindArticlesInput {
|
1303
|
-
originBlockId: String!
|
1304
|
-
type: String!
|
1305
|
-
}`;
|
1306
1284
|
exports.FindCalendarInputQL = `
|
1307
1285
|
input FindCalendarInput {
|
1308
1286
|
_id: String!
|
@@ -1326,7 +1304,6 @@ input UpsertNoteInput {
|
|
1326
1304
|
_id: String
|
1327
1305
|
document: String
|
1328
1306
|
editor: EditorInput!
|
1329
|
-
version: Float
|
1330
1307
|
sharingTags: [SharingTagInput]
|
1331
1308
|
favorite: Boolean
|
1332
1309
|
}`;
|
@@ -1440,7 +1417,7 @@ input DeleteSharingTagInput {
|
|
1440
1417
|
tagId: String!
|
1441
1418
|
}`;
|
1442
1419
|
exports.UpdateTaskInputQL = `
|
1443
|
-
input UpsertTaskInput {${exports.
|
1420
|
+
input UpsertTaskInput {${exports.BlockFieldsForUpsert}
|
1444
1421
|
editor: EditorInput!
|
1445
1422
|
}`;
|
1446
1423
|
exports.FindTaskInputQL = `
|
@@ -1637,6 +1614,7 @@ ${exports.ReferenceBlockInputQL}
|
|
1637
1614
|
${exports.ReferenceBlockQL}
|
1638
1615
|
${exports.DomainQL}
|
1639
1616
|
${exports.TenantQL}
|
1617
|
+
${exports.BlockQL}
|
1640
1618
|
${exports.BusinessObjectQL}
|
1641
1619
|
${exports.NoteQL}
|
1642
1620
|
${exports.TaskQL}
|
@@ -1668,8 +1646,6 @@ ${exports.FindRecordsInputQL}
|
|
1668
1646
|
${exports.UpsertRecordsInputQL}
|
1669
1647
|
${exports.FindTenantInputQL}
|
1670
1648
|
${exports.FindDomainInputQL}
|
1671
|
-
${exports.FindArticleInputQL}
|
1672
|
-
${exports.FindArticlesInputQL}
|
1673
1649
|
${exports.FindCalendarInputQL}
|
1674
1650
|
${exports.FindEventInputQL}
|
1675
1651
|
${exports.UpsertNoteInputQL}
|
package/model.ts
CHANGED
@@ -1259,10 +1259,17 @@ export const BlockFields = `${SharedPrimitiveFields}
|
|
1259
1259
|
parentId: String
|
1260
1260
|
originReferenceBlock: ReferenceBlock`;
|
1261
1261
|
export const BlockFieldsForUpsert = `${SharedPrimitiveFieldsForUpsert}
|
1262
|
+
status: String
|
1263
|
+
dateDue: Float
|
1264
|
+
dateRemindMe: Float
|
1262
1265
|
archived: Boolean
|
1263
1266
|
favorite: Boolean
|
1267
|
+
snoozed: Boolean
|
1264
1268
|
parentId: String
|
1265
1269
|
document: String`;
|
1270
|
+
export const BlockQL = `
|
1271
|
+
type Block {${BlockFields}
|
1272
|
+
}`;
|
1266
1273
|
export class Block extends SharedPrimitive {
|
1267
1274
|
editors: Editor[];
|
1268
1275
|
blockType: BlockType;
|
@@ -1451,26 +1458,8 @@ export class Note extends Block {
|
|
1451
1458
|
}
|
1452
1459
|
}
|
1453
1460
|
|
1454
|
-
export const TaskFields = `${BlockFields}
|
1455
|
-
status: String!
|
1456
|
-
dateDue: Float
|
1457
|
-
editorId: String
|
1458
|
-
editorGroupId: String
|
1459
|
-
snoozed: Boolean!
|
1460
|
-
steps: [TaskStep]
|
1461
|
-
dateRemindMe: Float
|
1462
|
-
recurrence: [String]
|
1463
|
-
`;
|
1464
|
-
export const TaskFieldsForUpsert = `${BlockFieldsForUpsert}
|
1465
|
-
status: String
|
1466
|
-
dateDue: Float
|
1467
|
-
snoozed: Boolean
|
1468
|
-
steps: [TaskStepInput]
|
1469
|
-
dateRemindMe: Float
|
1470
|
-
recurrence: [String]
|
1471
|
-
`;
|
1472
1461
|
export const TaskQL = `
|
1473
|
-
type Task {${
|
1462
|
+
type Task {${BlockFields}
|
1474
1463
|
}`;
|
1475
1464
|
export class Task extends Block implements BaseTask {
|
1476
1465
|
constructor(
|
@@ -1640,7 +1629,7 @@ export interface SyncTableMetadataProviderRequest {
|
|
1640
1629
|
export const EventQL = `
|
1641
1630
|
type Event {${BusinessObjectFields}
|
1642
1631
|
calendarId: String!
|
1643
|
-
|
1632
|
+
eventStatus: String!
|
1644
1633
|
dateStart: Float!
|
1645
1634
|
organizedBy: PersonReference!
|
1646
1635
|
location: String
|
@@ -2275,26 +2264,6 @@ export interface FindDomainInput {
|
|
2275
2264
|
_id: string;
|
2276
2265
|
}
|
2277
2266
|
|
2278
|
-
export const FindArticleInputQL = `
|
2279
|
-
input FindArticleInput {
|
2280
|
-
originBlockId: String!
|
2281
|
-
type: String!
|
2282
|
-
}`;
|
2283
|
-
export interface FindArticleInput {
|
2284
|
-
originBlockId: string;
|
2285
|
-
type: BlockType;
|
2286
|
-
}
|
2287
|
-
|
2288
|
-
export const FindArticlesInputQL = `
|
2289
|
-
input FindArticlesInput {
|
2290
|
-
originBlockId: String!
|
2291
|
-
type: String!
|
2292
|
-
}`;
|
2293
|
-
export interface FindArticlesInput {
|
2294
|
-
originBlockId: string;
|
2295
|
-
type: BlockType;
|
2296
|
-
}
|
2297
|
-
|
2298
2267
|
export const FindCalendarInputQL = `
|
2299
2268
|
input FindCalendarInput {
|
2300
2269
|
_id: String!
|
@@ -2336,7 +2305,6 @@ input UpsertNoteInput {
|
|
2336
2305
|
_id: String
|
2337
2306
|
document: String
|
2338
2307
|
editor: EditorInput!
|
2339
|
-
version: Float
|
2340
2308
|
sharingTags: [SharingTagInput]
|
2341
2309
|
favorite: Boolean
|
2342
2310
|
}`;
|
@@ -2344,7 +2312,6 @@ export interface UpsertNoteInput {
|
|
2344
2312
|
_id?: string;
|
2345
2313
|
document?: string;
|
2346
2314
|
editor: Editor;
|
2347
|
-
version?: number;
|
2348
2315
|
sharingTags?: SharingTag[];
|
2349
2316
|
favorite?: boolean;
|
2350
2317
|
}
|
@@ -2541,7 +2508,7 @@ export interface DeleteSharingTagInput {
|
|
2541
2508
|
}
|
2542
2509
|
|
2543
2510
|
export const UpdateTaskInputQL = `
|
2544
|
-
input UpsertTaskInput {${
|
2511
|
+
input UpsertTaskInput {${BlockFieldsForUpsert}
|
2545
2512
|
editor: EditorInput!
|
2546
2513
|
}`;
|
2547
2514
|
export interface UpsertTaskInput extends Task {
|
@@ -2888,6 +2855,7 @@ ${ReferenceBlockInputQL}
|
|
2888
2855
|
${ReferenceBlockQL}
|
2889
2856
|
${DomainQL}
|
2890
2857
|
${TenantQL}
|
2858
|
+
${BlockQL}
|
2891
2859
|
${BusinessObjectQL}
|
2892
2860
|
${NoteQL}
|
2893
2861
|
${TaskQL}
|
@@ -2919,8 +2887,6 @@ ${FindRecordsInputQL}
|
|
2919
2887
|
${UpsertRecordsInputQL}
|
2920
2888
|
${FindTenantInputQL}
|
2921
2889
|
${FindDomainInputQL}
|
2922
|
-
${FindArticleInputQL}
|
2923
|
-
${FindArticlesInputQL}
|
2924
2890
|
${FindCalendarInputQL}
|
2925
2891
|
${FindEventInputQL}
|
2926
2892
|
${UpsertNoteInputQL}
|