@bigfootai/bigfoot-types 3.5.7 → 3.5.9
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 +26 -8
- package/model.ts +30 -6
- 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.UpdateTaskInputQL = exports.ArchiveTagOutputQL = exports.ArchiveTagInputQL = exports.FindTagsInputQL = exports.FindTagInputQL = exports.UpsertTagInputQL = exports.FindSyncInputQL = void 0;
|
3
|
+
exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = 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.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 = exports.TagQL = 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.SharingTenantInputQL = exports.SharingDomainInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = 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
|
@@ -372,12 +372,10 @@ class Provider extends Primitive {
|
|
372
372
|
}
|
373
373
|
}
|
374
374
|
exports.Provider = Provider;
|
375
|
-
exports.
|
375
|
+
exports.TagFieldsWithoutSharing = `${exports.PrimitiveFields}
|
376
376
|
alias: String!
|
377
377
|
friendlyName: String
|
378
378
|
tagType: String!
|
379
|
-
sharingDomains: [SharingDomain]
|
380
|
-
sharingTenants: [SharingTenant]
|
381
379
|
url: String
|
382
380
|
favicon: String
|
383
381
|
dbpedia: String
|
@@ -386,8 +384,11 @@ exports.TagFields = `${exports.PrimitiveFields}
|
|
386
384
|
inviteStatus: Int
|
387
385
|
originNoteId: String
|
388
386
|
tenantIdVerified: String`;
|
387
|
+
exports.TagFieldsJustSharing = `
|
388
|
+
sharingDomains: [SharingDomain]
|
389
|
+
sharingTenants: [SharingTenant]`;
|
389
390
|
exports.TagQL = `
|
390
|
-
type Tag {${exports.
|
391
|
+
type Tag {${exports.TagFieldsWithoutSharing}${exports.TagFieldsJustSharing}
|
391
392
|
}`;
|
392
393
|
class Tag extends Primitive {
|
393
394
|
constructor(tenantIdCreated, alias, tagType) {
|
@@ -782,8 +783,23 @@ exports.FindSyncInputQL = `
|
|
782
783
|
input FindSyncInput {
|
783
784
|
_id: String!
|
784
785
|
}`;
|
786
|
+
exports.SharingDomainInputQL = `
|
787
|
+
input SharingDomainInput {
|
788
|
+
domainId: String!
|
789
|
+
archived: Boolean!
|
790
|
+
sharingLevel: Int!
|
791
|
+
}`;
|
792
|
+
exports.SharingTenantInputQL = `
|
793
|
+
input SharingTenantInput {
|
794
|
+
tenantId: String!
|
795
|
+
hasAutoShareNotesOn: Boolean!
|
796
|
+
hasAutoShareTasksOn: Boolean!
|
797
|
+
sharingLevel: Int!
|
798
|
+
}`;
|
785
799
|
exports.UpsertTagInputQL = `
|
786
|
-
input UpsertTagInput {${exports.
|
800
|
+
input UpsertTagInput {${exports.TagFieldsWithoutSharing}
|
801
|
+
sharingDomains: [SharingDomainInput]
|
802
|
+
sharingTenants: [SharingTenantInput]
|
787
803
|
}`;
|
788
804
|
exports.FindTagInputQL = `
|
789
805
|
input FindTagInput {
|
@@ -895,6 +911,8 @@ ${exports.ArchiveNoteInputQL}
|
|
895
911
|
${exports.ArchiveNoteOutputQL}
|
896
912
|
${exports.FindProviderInputQL}
|
897
913
|
${exports.FindSyncInputQL}
|
914
|
+
${exports.SharingDomainInputQL}
|
915
|
+
${exports.SharingTenantInputQL}
|
898
916
|
${exports.UpsertTagInputQL}
|
899
917
|
${exports.FindTagInputQL}
|
900
918
|
${exports.FindTagInputQL}
|
package/model.ts
CHANGED
@@ -297,6 +297,11 @@ export interface Reaction {
|
|
297
297
|
unified: string;
|
298
298
|
}
|
299
299
|
|
300
|
+
export const TaskStepInputQL = `
|
301
|
+
input TaskStep {
|
302
|
+
content: String!
|
303
|
+
status: Int!
|
304
|
+
}`;
|
300
305
|
export const TaskStepQL = `
|
301
306
|
type TaskStep {
|
302
307
|
content: String!
|
@@ -561,12 +566,10 @@ export class Provider extends Primitive {
|
|
561
566
|
}
|
562
567
|
}
|
563
568
|
|
564
|
-
export const
|
569
|
+
export const TagFieldsWithoutSharing = `${PrimitiveFields}
|
565
570
|
alias: String!
|
566
571
|
friendlyName: String
|
567
572
|
tagType: String!
|
568
|
-
sharingDomains: [SharingDomain]
|
569
|
-
sharingTenants: [SharingTenant]
|
570
573
|
url: String
|
571
574
|
favicon: String
|
572
575
|
dbpedia: String
|
@@ -575,8 +578,11 @@ export const TagFields = `${PrimitiveFields}
|
|
575
578
|
inviteStatus: Int
|
576
579
|
originNoteId: String
|
577
580
|
tenantIdVerified: String`;
|
581
|
+
export const TagFieldsJustSharing = `
|
582
|
+
sharingDomains: [SharingDomain]
|
583
|
+
sharingTenants: [SharingTenant]`;
|
578
584
|
export const TagQL = `
|
579
|
-
type Tag {${
|
585
|
+
type Tag {${TagFieldsWithoutSharing}${TagFieldsJustSharing}
|
580
586
|
}`;
|
581
587
|
export class Tag extends Primitive {
|
582
588
|
alias: string;
|
@@ -1465,8 +1471,23 @@ export interface FindSyncInput {
|
|
1465
1471
|
_id: string;
|
1466
1472
|
}
|
1467
1473
|
|
1474
|
+
export const SharingDomainInputQL = `
|
1475
|
+
input SharingDomainInput {
|
1476
|
+
domainId: String!
|
1477
|
+
archived: Boolean!
|
1478
|
+
sharingLevel: Int!
|
1479
|
+
}`;
|
1480
|
+
export const SharingTenantInputQL = `
|
1481
|
+
input SharingTenantInput {
|
1482
|
+
tenantId: String!
|
1483
|
+
hasAutoShareNotesOn: Boolean!
|
1484
|
+
hasAutoShareTasksOn: Boolean!
|
1485
|
+
sharingLevel: Int!
|
1486
|
+
}`;
|
1468
1487
|
export const UpsertTagInputQL = `
|
1469
|
-
input UpsertTagInput {${
|
1488
|
+
input UpsertTagInput {${TagFieldsWithoutSharing}
|
1489
|
+
sharingDomains: [SharingDomainInput]
|
1490
|
+
sharingTenants: [SharingTenantInput]
|
1470
1491
|
}`;
|
1471
1492
|
export interface UpsertTagInput extends Tag {}
|
1472
1493
|
|
@@ -1517,7 +1538,7 @@ input UpdateTaskInput {
|
|
1517
1538
|
status: String!
|
1518
1539
|
dateDue: Float!
|
1519
1540
|
snoozed: Boolean!
|
1520
|
-
steps: [
|
1541
|
+
steps: [TaskStepInput]
|
1521
1542
|
dateRemindMe: Float
|
1522
1543
|
recurrence: [String]
|
1523
1544
|
}`;
|
@@ -1593,6 +1614,7 @@ ${SharingTagQL}
|
|
1593
1614
|
${SharingDomainQL}
|
1594
1615
|
${SharingTenantQL}
|
1595
1616
|
${ReactionSkinToneQL}
|
1617
|
+
${TaskStepInputQL}
|
1596
1618
|
${ReactionQL}
|
1597
1619
|
${TaskStepQL}
|
1598
1620
|
${DocumentSentimentQL}
|
@@ -1636,6 +1658,8 @@ ${ArchiveNoteInputQL}
|
|
1636
1658
|
${ArchiveNoteOutputQL}
|
1637
1659
|
${FindProviderInputQL}
|
1638
1660
|
${FindSyncInputQL}
|
1661
|
+
${SharingDomainInputQL}
|
1662
|
+
${SharingTenantInputQL}
|
1639
1663
|
${UpsertTagInputQL}
|
1640
1664
|
${FindTagInputQL}
|
1641
1665
|
${FindTagInputQL}
|