@bigfootai/bigfoot-types 3.2.2 → 3.3.0
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 +20 -3
- package/model.ts +35 -13
- 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 = void 0;
|
3
|
+
exports.TagRecommendationQL = exports.Tag = exports.TagQL = 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.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.FindTaskInputQL = exports.FindSyncInputQL = exports.FindProviderInputQL = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = exports.UpsertNoteInputQL = exports.InsertNoteInputQL = 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.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 = void 0;
|
5
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = 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
|
@@ -217,6 +217,19 @@ type SharingTag {
|
|
217
217
|
confidence: Float
|
218
218
|
text: String
|
219
219
|
}`;
|
220
|
+
exports.SharingDomainQL = `
|
221
|
+
type SharingDomain {
|
222
|
+
domainId: String!
|
223
|
+
isArchived: Boolean!
|
224
|
+
sharingLevel: Int!
|
225
|
+
}`;
|
226
|
+
exports.SharingTenantQL = `
|
227
|
+
type SharingTenant {
|
228
|
+
tenantId: String!
|
229
|
+
hasAutoShareNotesOn: Boolean!
|
230
|
+
hasAutoShareTasksOn: Boolean!
|
231
|
+
sharingLevel: Int!
|
232
|
+
}`;
|
220
233
|
exports.ReactionSkinToneQL = `
|
221
234
|
type ReactionSkinTone {
|
222
235
|
skinTone: String!
|
@@ -359,6 +372,8 @@ type Tag {${exports.PrimitiveFields}
|
|
359
372
|
alias: String!
|
360
373
|
friendlyName: String
|
361
374
|
tagType: String!
|
375
|
+
sharingDomains: [SharingDomain]
|
376
|
+
sharingTenants: [SharingTenant]
|
362
377
|
}`;
|
363
378
|
class Tag extends Primitive {
|
364
379
|
constructor(tenantIdCreated, alias, tagType) {
|
@@ -788,6 +803,8 @@ ${exports.HighlightQL}
|
|
788
803
|
${exports.EditorInputQL}
|
789
804
|
${exports.EditorQL}
|
790
805
|
${exports.SharingTagQL}
|
806
|
+
${exports.SharingDomainQL}
|
807
|
+
${exports.SharingTenantQL}
|
791
808
|
${exports.ReactionSkinToneQL}
|
792
809
|
${exports.ReactionQL}
|
793
810
|
${exports.DocumentSentimentQL}
|
package/model.ts
CHANGED
@@ -251,12 +251,25 @@ export interface SharingTag {
|
|
251
251
|
text?: string;
|
252
252
|
}
|
253
253
|
|
254
|
+
export const SharingDomainQL = `
|
255
|
+
type SharingDomain {
|
256
|
+
domainId: String!
|
257
|
+
isArchived: Boolean!
|
258
|
+
sharingLevel: Int!
|
259
|
+
}`;
|
254
260
|
export interface SharingDomain {
|
255
261
|
domainId: string;
|
256
262
|
isArchived: boolean; // Indicates if the tag has been archived for the domain, but is shared
|
257
263
|
sharingLevel: SharingLevel; // Determines what domains can do with the tag beyond domain specific settings above
|
258
264
|
}
|
259
265
|
|
266
|
+
export const SharingTenantQL = `
|
267
|
+
type SharingTenant {
|
268
|
+
tenantId: String!
|
269
|
+
hasAutoShareNotesOn: Boolean!
|
270
|
+
hasAutoShareTasksOn: Boolean!
|
271
|
+
sharingLevel: Int!
|
272
|
+
}`;
|
260
273
|
export interface SharingTenant {
|
261
274
|
tenantId: string;
|
262
275
|
hasAutoShareNotesOn: boolean; // Indicates if the tenant has auto sharing of notes switched on
|
@@ -548,19 +561,35 @@ type Tag {${PrimitiveFields}
|
|
548
561
|
alias: String!
|
549
562
|
friendlyName: String
|
550
563
|
tagType: String!
|
564
|
+
sharingDomains: [SharingDomain]
|
565
|
+
sharingTenants: [SharingTenant]
|
566
|
+
url: String
|
567
|
+
favicon: String
|
568
|
+
dbpedia: String
|
569
|
+
email: String
|
570
|
+
avatar: String
|
571
|
+
inviteStatus: Int
|
572
|
+
tenantIdVerified: String
|
551
573
|
}`;
|
552
574
|
export class Tag extends Primitive {
|
553
|
-
|
575
|
+
text: string;
|
576
|
+
tagType: TagType;
|
554
577
|
friendlyName?: string;
|
555
578
|
sharingDomains?: SharingDomain[]; // The domains this tag is shared with plus domain settings for the tag
|
556
579
|
sharingTenants?: SharingTenant[]; // The tenants this tag is shared with plus tenant settings for the tag
|
557
|
-
|
580
|
+
url?: string;
|
581
|
+
favicon?: string;
|
582
|
+
dbpedia?: string;
|
583
|
+
email?: string;
|
584
|
+
avatar?: string;
|
585
|
+
inviteStatus?: InviteStatus;
|
586
|
+
tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
|
558
587
|
|
559
|
-
constructor(tenantIdCreated: string,
|
588
|
+
constructor(tenantIdCreated: string, text: string, tagType: TagType) {
|
560
589
|
super();
|
561
590
|
|
562
591
|
this.tenantIdCreated = tenantIdCreated;
|
563
|
-
this.
|
592
|
+
this.text = text;
|
564
593
|
this.tagType = tagType;
|
565
594
|
}
|
566
595
|
}
|
@@ -633,21 +662,12 @@ export class Domain extends Primitive {
|
|
633
662
|
}
|
634
663
|
|
635
664
|
export class Organization extends Tag {
|
636
|
-
url?: string;
|
637
|
-
favicon?: string;
|
638
|
-
dbpedia?: string;
|
639
|
-
|
640
665
|
constructor(tenantIdCreated: string, alias: string) {
|
641
666
|
super(tenantIdCreated, alias, TagType.Organization);
|
642
667
|
}
|
643
668
|
}
|
644
669
|
|
645
670
|
export class Person extends Tag {
|
646
|
-
email?: string;
|
647
|
-
avatar?: string;
|
648
|
-
inviteStatus?: InviteStatus;
|
649
|
-
tenantIdVerified?: string; // The tenant._id that claimed/verified this tag as being them
|
650
|
-
|
651
671
|
constructor(tenantIdCreated: string, alias: string) {
|
652
672
|
super(tenantIdCreated, alias, TagType.Person);
|
653
673
|
}
|
@@ -1504,6 +1524,8 @@ ${HighlightQL}
|
|
1504
1524
|
${EditorInputQL}
|
1505
1525
|
${EditorQL}
|
1506
1526
|
${SharingTagQL}
|
1527
|
+
${SharingDomainQL}
|
1528
|
+
${SharingTenantQL}
|
1507
1529
|
${ReactionSkinToneQL}
|
1508
1530
|
${ReactionQL}
|
1509
1531
|
${DocumentSentimentQL}
|