@bigfootai/bigfoot-types 4.4.13 → 4.4.14
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 -9
- package/model.ts +19 -9
- 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
|
-
exports.
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = void 0;
|
3
|
+
exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = 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.SharingTenantQL = exports.SharingDomainQL = exports.SharingTagQL = exports.SharingTagInputQL = 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.BlockType = void 0;
|
4
|
+
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.BusinessObjectIngestionRequest = exports.History = 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 = exports.TagQL = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = exports.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Metadata = exports.MetadataFields = exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = void 0;
|
5
|
+
exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = 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.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 = void 0;
|
6
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = 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
|
@@ -47,6 +47,12 @@ var SharingLevel;
|
|
47
47
|
SharingLevel[SharingLevel["Editor"] = 1] = "Editor";
|
48
48
|
SharingLevel[SharingLevel["Owner"] = 2] = "Owner";
|
49
49
|
})(SharingLevel || (exports.SharingLevel = SharingLevel = {}));
|
50
|
+
var TaskPriority;
|
51
|
+
(function (TaskPriority) {
|
52
|
+
TaskPriority["High"] = "high";
|
53
|
+
TaskPriority["Medium"] = "medium";
|
54
|
+
TaskPriority["Low"] = "low";
|
55
|
+
})(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
|
50
56
|
var TaskStatus;
|
51
57
|
(function (TaskStatus) {
|
52
58
|
TaskStatus[TaskStatus["NotStarted"] = 0] = "NotStarted";
|
@@ -698,14 +704,13 @@ exports.TaskQL = `
|
|
698
704
|
type Task {${exports.TaskFields}
|
699
705
|
}`;
|
700
706
|
class Task extends Block {
|
701
|
-
constructor(tenantIdCreated, editors, sharingTags, version, originNoteId
|
707
|
+
constructor(tenantIdCreated, editors, sharingTags, version, originNoteId) {
|
702
708
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Task);
|
703
709
|
this.status = TaskStatus.NotStarted;
|
704
710
|
this.snoozed = false;
|
705
711
|
this.archived = false;
|
706
|
-
this.originNoteId = originNoteId;
|
707
|
-
this.dateDue = dateDue;
|
708
712
|
this._dateDueUserAssigned = false;
|
713
|
+
this.originNoteId = originNoteId;
|
709
714
|
}
|
710
715
|
}
|
711
716
|
exports.Task = Task;
|
@@ -896,7 +901,6 @@ var FieldType;
|
|
896
901
|
FieldType["Text"] = "input";
|
897
902
|
FieldType["Select"] = "select";
|
898
903
|
FieldType["Checkbox"] = "checkbox";
|
899
|
-
FieldType["Identifier"] = "identifier";
|
900
904
|
})(FieldType || (exports.FieldType = FieldType = {}));
|
901
905
|
var FieldVariation;
|
902
906
|
(function (FieldVariation) {
|
@@ -913,13 +917,17 @@ exports.OptionQL = `
|
|
913
917
|
type Option {
|
914
918
|
label: String!
|
915
919
|
value: String!
|
920
|
+
status: Int
|
921
|
+
priority: String
|
916
922
|
}`;
|
917
923
|
exports.FieldQL = `
|
918
924
|
type Field {
|
919
925
|
label: String!
|
920
926
|
name: String!
|
921
927
|
description: String!
|
922
|
-
|
928
|
+
important: Boolean
|
929
|
+
status: Boolean
|
930
|
+
priority: Boolean
|
923
931
|
fieldType: String!
|
924
932
|
fieldVariation: String
|
925
933
|
maximumCharacters: Int
|
package/model.ts
CHANGED
@@ -42,6 +42,12 @@ export enum SharingLevel {
|
|
42
42
|
Owner = 2, // Only an owner can make you an owner - and the initial creator is always the owner
|
43
43
|
}
|
44
44
|
|
45
|
+
export enum TaskPriority {
|
46
|
+
High = 'high',
|
47
|
+
Medium = 'medium',
|
48
|
+
Low = 'low',
|
49
|
+
}
|
50
|
+
|
45
51
|
export enum TaskStatus {
|
46
52
|
NotStarted = 0,
|
47
53
|
InProgress = 1,
|
@@ -1096,7 +1102,7 @@ type Task {${TaskFields}
|
|
1096
1102
|
}`;
|
1097
1103
|
export class Task extends Block {
|
1098
1104
|
status: TaskStatus;
|
1099
|
-
dateDue
|
1105
|
+
dateDue?: number;
|
1100
1106
|
originNoteId?: string;
|
1101
1107
|
editorId?: string;
|
1102
1108
|
editorGroupId?: string;
|
@@ -1111,19 +1117,16 @@ export class Task extends Block {
|
|
1111
1117
|
editors: Editor[],
|
1112
1118
|
sharingTags: SharingTag[],
|
1113
1119
|
version: number,
|
1114
|
-
originNoteId: string
|
1115
|
-
dateDue: number
|
1120
|
+
originNoteId: string
|
1116
1121
|
) {
|
1117
1122
|
super(tenantIdCreated, editors, sharingTags, version, BlockType.Task);
|
1118
1123
|
|
1119
1124
|
this.status = TaskStatus.NotStarted;
|
1120
1125
|
this.snoozed = false;
|
1121
1126
|
this.archived = false;
|
1127
|
+
this._dateDueUserAssigned = false;
|
1122
1128
|
|
1123
1129
|
this.originNoteId = originNoteId;
|
1124
|
-
this.dateDue = dateDue;
|
1125
|
-
|
1126
|
-
this._dateDueUserAssigned = false;
|
1127
1130
|
}
|
1128
1131
|
}
|
1129
1132
|
// CORE END
|
@@ -1602,7 +1605,6 @@ export enum FieldType {
|
|
1602
1605
|
Text = 'input',
|
1603
1606
|
Select = 'select',
|
1604
1607
|
Checkbox = 'checkbox',
|
1605
|
-
Identifier = 'identifier',
|
1606
1608
|
}
|
1607
1609
|
|
1608
1610
|
export enum FieldVariation {
|
@@ -1620,10 +1622,14 @@ export const OptionQL = `
|
|
1620
1622
|
type Option {
|
1621
1623
|
label: String!
|
1622
1624
|
value: String!
|
1625
|
+
status: Int
|
1626
|
+
priority: String
|
1623
1627
|
}`;
|
1624
1628
|
export interface Option {
|
1625
1629
|
label: string;
|
1626
1630
|
value: string;
|
1631
|
+
status?: TaskStatus;
|
1632
|
+
priority?: TaskPriority;
|
1627
1633
|
}
|
1628
1634
|
|
1629
1635
|
export const FieldQL = `
|
@@ -1631,7 +1637,9 @@ type Field {
|
|
1631
1637
|
label: String!
|
1632
1638
|
name: String!
|
1633
1639
|
description: String!
|
1634
|
-
|
1640
|
+
important: Boolean
|
1641
|
+
status: Boolean
|
1642
|
+
priority: Boolean
|
1635
1643
|
fieldType: String!
|
1636
1644
|
fieldVariation: String
|
1637
1645
|
maximumCharacters: Int
|
@@ -1642,7 +1650,9 @@ export interface Field {
|
|
1642
1650
|
label: string;
|
1643
1651
|
name: string;
|
1644
1652
|
description: string;
|
1645
|
-
|
1653
|
+
important?: boolean;
|
1654
|
+
status?: boolean;
|
1655
|
+
priority?: boolean;
|
1646
1656
|
fieldType: FieldType;
|
1647
1657
|
fieldVariation?: FieldVariation;
|
1648
1658
|
maximumCharacters?: number;
|