@bigfootai/bigfoot-types 5.0.8 → 5.0.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 +17 -39
- package/model.ts +15 -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);
|
@@ -895,8 +901,9 @@ class BusinessObject extends Block {
|
|
895
901
|
}
|
896
902
|
exports.BusinessObject = BusinessObject;
|
897
903
|
class Section extends Block {
|
898
|
-
constructor(
|
899
|
-
super(
|
904
|
+
constructor(id) {
|
905
|
+
super('', [], [], BlockType.Section);
|
906
|
+
this._id = id;
|
900
907
|
}
|
901
908
|
}
|
902
909
|
exports.Section = Section;
|
@@ -909,26 +916,8 @@ class Note extends Block {
|
|
909
916
|
}
|
910
917
|
}
|
911
918
|
exports.Note = Note;
|
912
|
-
exports.TaskFields = `${exports.BlockFields}
|
913
|
-
status: String!
|
914
|
-
dateDue: Float
|
915
|
-
editorId: String
|
916
|
-
editorGroupId: String
|
917
|
-
snoozed: Boolean!
|
918
|
-
steps: [TaskStep]
|
919
|
-
dateRemindMe: Float
|
920
|
-
recurrence: [String]
|
921
|
-
`;
|
922
|
-
exports.TaskFieldsForUpsert = `${exports.BlockFieldsForUpsert}
|
923
|
-
status: String
|
924
|
-
dateDue: Float
|
925
|
-
snoozed: Boolean
|
926
|
-
steps: [TaskStepInput]
|
927
|
-
dateRemindMe: Float
|
928
|
-
recurrence: [String]
|
929
|
-
`;
|
930
919
|
exports.TaskQL = `
|
931
|
-
type Task {${exports.
|
920
|
+
type Task {${exports.BlockFields}
|
932
921
|
}`;
|
933
922
|
class Task extends Block {
|
934
923
|
constructor(tenantIdCreated, editors, sharingTags) {
|
@@ -1005,7 +994,7 @@ type PersonAcceptance {${exports.PersonReferenceFields}
|
|
1005
994
|
exports.EventQL = `
|
1006
995
|
type Event {${exports.BusinessObjectFields}
|
1007
996
|
calendarId: String!
|
1008
|
-
|
997
|
+
eventStatus: String!
|
1009
998
|
dateStart: Float!
|
1010
999
|
organizedBy: PersonReference!
|
1011
1000
|
location: String
|
@@ -1292,16 +1281,6 @@ exports.FindDomainInputQL = `
|
|
1292
1281
|
input FindDomainInput {
|
1293
1282
|
_id: String!
|
1294
1283
|
}`;
|
1295
|
-
exports.FindArticleInputQL = `
|
1296
|
-
input FindArticleInput {
|
1297
|
-
originBlockId: String!
|
1298
|
-
type: String!
|
1299
|
-
}`;
|
1300
|
-
exports.FindArticlesInputQL = `
|
1301
|
-
input FindArticlesInput {
|
1302
|
-
originBlockId: String!
|
1303
|
-
type: String!
|
1304
|
-
}`;
|
1305
1284
|
exports.FindCalendarInputQL = `
|
1306
1285
|
input FindCalendarInput {
|
1307
1286
|
_id: String!
|
@@ -1439,7 +1418,7 @@ input DeleteSharingTagInput {
|
|
1439
1418
|
tagId: String!
|
1440
1419
|
}`;
|
1441
1420
|
exports.UpdateTaskInputQL = `
|
1442
|
-
input UpsertTaskInput {${exports.
|
1421
|
+
input UpsertTaskInput {${exports.BlockFieldsForUpsert}
|
1443
1422
|
editor: EditorInput!
|
1444
1423
|
}`;
|
1445
1424
|
exports.FindTaskInputQL = `
|
@@ -1636,6 +1615,7 @@ ${exports.ReferenceBlockInputQL}
|
|
1636
1615
|
${exports.ReferenceBlockQL}
|
1637
1616
|
${exports.DomainQL}
|
1638
1617
|
${exports.TenantQL}
|
1618
|
+
${exports.BlockQL}
|
1639
1619
|
${exports.BusinessObjectQL}
|
1640
1620
|
${exports.NoteQL}
|
1641
1621
|
${exports.TaskQL}
|
@@ -1667,8 +1647,6 @@ ${exports.FindRecordsInputQL}
|
|
1667
1647
|
${exports.UpsertRecordsInputQL}
|
1668
1648
|
${exports.FindTenantInputQL}
|
1669
1649
|
${exports.FindDomainInputQL}
|
1670
|
-
${exports.FindArticleInputQL}
|
1671
|
-
${exports.FindArticlesInputQL}
|
1672
1650
|
${exports.FindCalendarInputQL}
|
1673
1651
|
${exports.FindEventInputQL}
|
1674
1652
|
${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;
|
@@ -1431,8 +1438,10 @@ export class BusinessObject extends Block {
|
|
1431
1438
|
}
|
1432
1439
|
|
1433
1440
|
export class Section extends Block {
|
1434
|
-
constructor(
|
1435
|
-
super(
|
1441
|
+
constructor(id: string) {
|
1442
|
+
super('', [], [], BlockType.Section);
|
1443
|
+
|
1444
|
+
this._id = id;
|
1436
1445
|
}
|
1437
1446
|
}
|
1438
1447
|
|
@@ -1449,26 +1458,8 @@ export class Note extends Block {
|
|
1449
1458
|
}
|
1450
1459
|
}
|
1451
1460
|
|
1452
|
-
export const TaskFields = `${BlockFields}
|
1453
|
-
status: String!
|
1454
|
-
dateDue: Float
|
1455
|
-
editorId: String
|
1456
|
-
editorGroupId: String
|
1457
|
-
snoozed: Boolean!
|
1458
|
-
steps: [TaskStep]
|
1459
|
-
dateRemindMe: Float
|
1460
|
-
recurrence: [String]
|
1461
|
-
`;
|
1462
|
-
export const TaskFieldsForUpsert = `${BlockFieldsForUpsert}
|
1463
|
-
status: String
|
1464
|
-
dateDue: Float
|
1465
|
-
snoozed: Boolean
|
1466
|
-
steps: [TaskStepInput]
|
1467
|
-
dateRemindMe: Float
|
1468
|
-
recurrence: [String]
|
1469
|
-
`;
|
1470
1461
|
export const TaskQL = `
|
1471
|
-
type Task {${
|
1462
|
+
type Task {${BlockFields}
|
1472
1463
|
}`;
|
1473
1464
|
export class Task extends Block implements BaseTask {
|
1474
1465
|
constructor(
|
@@ -1638,7 +1629,7 @@ export interface SyncTableMetadataProviderRequest {
|
|
1638
1629
|
export const EventQL = `
|
1639
1630
|
type Event {${BusinessObjectFields}
|
1640
1631
|
calendarId: String!
|
1641
|
-
|
1632
|
+
eventStatus: String!
|
1642
1633
|
dateStart: Float!
|
1643
1634
|
organizedBy: PersonReference!
|
1644
1635
|
location: String
|
@@ -2273,26 +2264,6 @@ export interface FindDomainInput {
|
|
2273
2264
|
_id: string;
|
2274
2265
|
}
|
2275
2266
|
|
2276
|
-
export const FindArticleInputQL = `
|
2277
|
-
input FindArticleInput {
|
2278
|
-
originBlockId: String!
|
2279
|
-
type: String!
|
2280
|
-
}`;
|
2281
|
-
export interface FindArticleInput {
|
2282
|
-
originBlockId: string;
|
2283
|
-
type: BlockType;
|
2284
|
-
}
|
2285
|
-
|
2286
|
-
export const FindArticlesInputQL = `
|
2287
|
-
input FindArticlesInput {
|
2288
|
-
originBlockId: String!
|
2289
|
-
type: String!
|
2290
|
-
}`;
|
2291
|
-
export interface FindArticlesInput {
|
2292
|
-
originBlockId: string;
|
2293
|
-
type: BlockType;
|
2294
|
-
}
|
2295
|
-
|
2296
2267
|
export const FindCalendarInputQL = `
|
2297
2268
|
input FindCalendarInput {
|
2298
2269
|
_id: String!
|
@@ -2539,7 +2510,7 @@ export interface DeleteSharingTagInput {
|
|
2539
2510
|
}
|
2540
2511
|
|
2541
2512
|
export const UpdateTaskInputQL = `
|
2542
|
-
input UpsertTaskInput {${
|
2513
|
+
input UpsertTaskInput {${BlockFieldsForUpsert}
|
2543
2514
|
editor: EditorInput!
|
2544
2515
|
}`;
|
2545
2516
|
export interface UpsertTaskInput extends Task {
|
@@ -2886,6 +2857,7 @@ ${ReferenceBlockInputQL}
|
|
2886
2857
|
${ReferenceBlockQL}
|
2887
2858
|
${DomainQL}
|
2888
2859
|
${TenantQL}
|
2860
|
+
${BlockQL}
|
2889
2861
|
${BusinessObjectQL}
|
2890
2862
|
${NoteQL}
|
2891
2863
|
${TaskQL}
|
@@ -2917,8 +2889,6 @@ ${FindRecordsInputQL}
|
|
2917
2889
|
${UpsertRecordsInputQL}
|
2918
2890
|
${FindTenantInputQL}
|
2919
2891
|
${FindDomainInputQL}
|
2920
|
-
${FindArticleInputQL}
|
2921
|
-
${FindArticlesInputQL}
|
2922
2892
|
${FindCalendarInputQL}
|
2923
2893
|
${FindEventInputQL}
|
2924
2894
|
${UpsertNoteInputQL}
|