@bigfootai/bigfoot-types 4.4.12 → 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 +21 -13
- package/model.ts +27 -15
- 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";
|
@@ -340,8 +346,8 @@ type Credential {
|
|
340
346
|
}`;
|
341
347
|
exports.ConnectedProviderQL = `
|
342
348
|
type ConnectedProvider {
|
343
|
-
providerId: String!
|
344
349
|
connectionId: String!
|
350
|
+
provider: String!
|
345
351
|
application: String!
|
346
352
|
credential: Credential
|
347
353
|
dateCreated: Float
|
@@ -463,18 +469,18 @@ type ProviderApplication {
|
|
463
469
|
}`;
|
464
470
|
exports.ProviderQL = `
|
465
471
|
type Provider {${exports.PrimitiveFields}
|
466
|
-
provider: String!
|
467
472
|
name: String!
|
473
|
+
label: String!
|
468
474
|
description: String!
|
469
475
|
instanceUrl: String!
|
470
476
|
applications: [ProviderApplication]!
|
471
477
|
tableMetadata: [TableMetadata]!
|
472
478
|
}`;
|
473
479
|
class Provider extends Primitive {
|
474
|
-
constructor(
|
480
|
+
constructor(name, label, description, instanceUrl, applications) {
|
475
481
|
super();
|
476
|
-
this.provider = provider;
|
477
482
|
this.name = name;
|
483
|
+
this.label = label;
|
478
484
|
this.description = description;
|
479
485
|
this.instanceUrl = instanceUrl;
|
480
486
|
this.applications = applications;
|
@@ -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,
|
@@ -487,16 +493,16 @@ export interface ConnectedProviderRegistration {
|
|
487
493
|
|
488
494
|
export const ConnectedProviderQL = `
|
489
495
|
type ConnectedProvider {
|
490
|
-
providerId: String!
|
491
496
|
connectionId: String!
|
497
|
+
provider: String!
|
492
498
|
application: String!
|
493
499
|
credential: Credential
|
494
500
|
dateCreated: Float
|
495
501
|
dateUpdated: Float
|
496
502
|
}`;
|
497
503
|
export interface ConnectedProvider {
|
498
|
-
providerId: string;
|
499
504
|
connectionId: string;
|
505
|
+
provider: string;
|
500
506
|
application: string;
|
501
507
|
credential?: Credential;
|
502
508
|
dateCreated: number;
|
@@ -675,32 +681,32 @@ export interface ProviderApplication {
|
|
675
681
|
|
676
682
|
export const ProviderQL = `
|
677
683
|
type Provider {${PrimitiveFields}
|
678
|
-
provider: String!
|
679
684
|
name: String!
|
685
|
+
label: String!
|
680
686
|
description: String!
|
681
687
|
instanceUrl: String!
|
682
688
|
applications: [ProviderApplication]!
|
683
689
|
tableMetadata: [TableMetadata]!
|
684
690
|
}`;
|
685
691
|
export class Provider extends Primitive {
|
686
|
-
provider: string;
|
687
692
|
name: string;
|
693
|
+
label: string;
|
688
694
|
description: string;
|
689
695
|
instanceUrl: string;
|
690
696
|
applications: ProviderApplication[];
|
691
697
|
tableMetadata: TableMetadata[];
|
692
698
|
|
693
699
|
constructor(
|
694
|
-
provider: string,
|
695
700
|
name: string,
|
701
|
+
label: string,
|
696
702
|
description: string,
|
697
703
|
instanceUrl: string,
|
698
704
|
applications: any
|
699
705
|
) {
|
700
706
|
super();
|
701
707
|
|
702
|
-
this.provider = provider;
|
703
708
|
this.name = name;
|
709
|
+
this.label = label;
|
704
710
|
this.description = description;
|
705
711
|
this.instanceUrl = instanceUrl;
|
706
712
|
this.applications = applications;
|
@@ -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;
|
@@ -1670,6 +1680,8 @@ type TableMetadata {${MetadataFields}
|
|
1670
1680
|
export class TableMetadata extends Metadata {
|
1671
1681
|
fields: Field[];
|
1672
1682
|
recordType: string;
|
1683
|
+
provider?: string;
|
1684
|
+
application?: string;
|
1673
1685
|
classifiers?: string[];
|
1674
1686
|
|
1675
1687
|
constructor(
|