@bigfootai/bigfoot-types 3.5.1 → 3.5.3
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 +22 -3
- package/model.ts +16 -3
- package/package.json +1 -1
package/model.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
5
|
-
exports.GraphQLTypes = exports.SearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = void 0;
|
3
|
+
exports.TagQL = exports.TagFields = exports.Provider = exports.ProviderQL = exports.Sync = exports.SyncQL = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.ProviderRequestQL = exports.ProviderInfoQL = exports.DateEntityEntryQL = exports.EntityEntryQL = exports.EntityEntryFields = exports.RelationEntryQL = exports.ArgumentEntryQL = exports.EntityReferenceQL = exports.DocumentSentimentQL = exports.TaskStepQL = exports.ReactionQL = exports.ReactionSkinToneQL = exports.SharingTenantQL = exports.SharingDomainQL = exports.SharingTagQL = exports.EditorQL = exports.EditorInputQL = exports.HighlightQL = exports.RelationType = exports.EntityType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.TagRecommendationVariation = exports.TagRecommendationType = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
|
4
|
+
exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.FindEventInputQL = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Website = 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.TaskFields = exports.Note = exports.NoteQL = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.BlockFields = exports.Article = exports.ArticleQL = exports.Person = exports.Organization = exports.Domain = exports.Tenant = exports.TenantQL = exports.TagRecommendationQL = exports.Tag = void 0;
|
5
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.FindSyncInputQL = void 0;
|
6
6
|
const uuid_1 = require("uuid");
|
7
7
|
/*
|
8
8
|
These are the core primitives of our model. These represent the entities that show
|
@@ -240,6 +240,11 @@ type Reaction {
|
|
240
240
|
skinTones: [ReactionSkinTone]!
|
241
241
|
unified: String!
|
242
242
|
}`;
|
243
|
+
exports.TaskStepQL = `
|
244
|
+
type TaskStep {
|
245
|
+
content: string!
|
246
|
+
status: Int!
|
247
|
+
}`;
|
243
248
|
exports.DocumentSentimentQL = `
|
244
249
|
type DocumentSentiment {
|
245
250
|
name: String!
|
@@ -538,6 +543,7 @@ exports.TaskFields = `${exports.BlockFields}
|
|
538
543
|
dueDate: Int!
|
539
544
|
originNoteId: String!
|
540
545
|
snoozed: Boolean!
|
546
|
+
steps: [TaskStep]
|
541
547
|
dateRemindMe: Int
|
542
548
|
recurrence: [String]
|
543
549
|
parentId: String
|
@@ -741,6 +747,13 @@ exports.FindEventInputQL = `
|
|
741
747
|
input FindEventInput {
|
742
748
|
_id: String!
|
743
749
|
}`;
|
750
|
+
exports.UpsertNoteInputQL = `
|
751
|
+
input UpsertNoteInput {
|
752
|
+
_id: String
|
753
|
+
document: String!
|
754
|
+
editor: EditorInput!
|
755
|
+
version: Float!
|
756
|
+
}`;
|
744
757
|
exports.FindNoteInputQL = `
|
745
758
|
input FindNoteInput {
|
746
759
|
_id: String!
|
@@ -792,6 +805,9 @@ type ArchiveTagOutput {
|
|
792
805
|
_id: String!
|
793
806
|
archived: Boolean
|
794
807
|
}`;
|
808
|
+
exports.UpdateTaskInputQL = `
|
809
|
+
input UpdateTaskInput {${exports.TaskFields}
|
810
|
+
}`;
|
795
811
|
exports.FindTaskInputQL = `
|
796
812
|
input FindTaskInput {
|
797
813
|
_id: String!
|
@@ -828,6 +844,7 @@ ${exports.SharingDomainQL}
|
|
828
844
|
${exports.SharingTenantQL}
|
829
845
|
${exports.ReactionSkinToneQL}
|
830
846
|
${exports.ReactionQL}
|
847
|
+
${exports.TaskStepQL}
|
831
848
|
${exports.DocumentSentimentQL}
|
832
849
|
${exports.EntityReferenceQL}
|
833
850
|
${exports.ArgumentEntryQL}
|
@@ -862,6 +879,7 @@ ${exports.FindArticleInputQL}
|
|
862
879
|
${exports.FindArticlesInputQL}
|
863
880
|
${exports.FindCalendarInputQL}
|
864
881
|
${exports.FindEventInputQL}
|
882
|
+
${exports.UpsertNoteInputQL}
|
865
883
|
${exports.FindNoteInputQL}
|
866
884
|
${exports.FindNotesInputQL}
|
867
885
|
${exports.ArchiveNoteInputQL}
|
@@ -873,6 +891,7 @@ ${exports.FindTagInputQL}
|
|
873
891
|
${exports.FindTagInputQL}
|
874
892
|
${exports.ArchiveTagInputQL}
|
875
893
|
${exports.ArchiveTagOutputQL}
|
894
|
+
${exports.UpdateTaskInputQL}
|
876
895
|
${exports.FindTaskInputQL}
|
877
896
|
${exports.FindTasksInputQL}
|
878
897
|
${exports.ArchiveTaskInputQL}
|
package/model.ts
CHANGED
@@ -297,7 +297,12 @@ export interface Reaction {
|
|
297
297
|
unified: string;
|
298
298
|
}
|
299
299
|
|
300
|
-
export
|
300
|
+
export const TaskStepQL = `
|
301
|
+
type TaskStep {
|
302
|
+
content: string!
|
303
|
+
status: Int!
|
304
|
+
}`;
|
305
|
+
export interface TaskStep {
|
301
306
|
content: string;
|
302
307
|
status: StepStatus;
|
303
308
|
}
|
@@ -844,6 +849,7 @@ export const TaskFields = `${BlockFields}
|
|
844
849
|
dueDate: Int!
|
845
850
|
originNoteId: String!
|
846
851
|
snoozed: Boolean!
|
852
|
+
steps: [TaskStep]
|
847
853
|
dateRemindMe: Int
|
848
854
|
recurrence: [String]
|
849
855
|
parentId: String
|
@@ -857,7 +863,7 @@ export class Task extends Block {
|
|
857
863
|
dateDue: number;
|
858
864
|
originNoteId: string;
|
859
865
|
snoozed: boolean;
|
860
|
-
steps?:
|
866
|
+
steps?: TaskStep[];
|
861
867
|
dateRemindMe?: number;
|
862
868
|
recurrence?: RecurrenceRFC[];
|
863
869
|
parentId?: string;
|
@@ -1122,7 +1128,7 @@ export class Calendar extends BusinessObject {
|
|
1122
1128
|
export class Todo extends BusinessObject {
|
1123
1129
|
status: TaskStatus;
|
1124
1130
|
dateDue: number;
|
1125
|
-
steps?:
|
1131
|
+
steps?: TaskStep[];
|
1126
1132
|
dateRemindMe?: number;
|
1127
1133
|
recurrence?: RecurrenceRFC[];
|
1128
1134
|
|
@@ -1502,6 +1508,11 @@ export interface ArchiveTagOutput {
|
|
1502
1508
|
archive?: boolean;
|
1503
1509
|
}
|
1504
1510
|
|
1511
|
+
export const UpdateTaskInputQL = `
|
1512
|
+
input UpdateTaskInput {${TaskFields}
|
1513
|
+
}`;
|
1514
|
+
export interface UpdateTaskInput extends Task {}
|
1515
|
+
|
1505
1516
|
export const FindTaskInputQL = `
|
1506
1517
|
input FindTaskInput {
|
1507
1518
|
_id: String!
|
@@ -1564,6 +1575,7 @@ ${SharingDomainQL}
|
|
1564
1575
|
${SharingTenantQL}
|
1565
1576
|
${ReactionSkinToneQL}
|
1566
1577
|
${ReactionQL}
|
1578
|
+
${TaskStepQL}
|
1567
1579
|
${DocumentSentimentQL}
|
1568
1580
|
${EntityReferenceQL}
|
1569
1581
|
${ArgumentEntryQL}
|
@@ -1610,6 +1622,7 @@ ${FindTagInputQL}
|
|
1610
1622
|
${FindTagInputQL}
|
1611
1623
|
${ArchiveTagInputQL}
|
1612
1624
|
${ArchiveTagOutputQL}
|
1625
|
+
${UpdateTaskInputQL}
|
1613
1626
|
${FindTaskInputQL}
|
1614
1627
|
${FindTasksInputQL}
|
1615
1628
|
${ArchiveTaskInputQL}
|