@bigfootai/bigfoot-types 3.2.1 → 3.2.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 +27 -3
- package/model.ts +24 -0
- 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 = 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!
|
@@ -354,6 +367,14 @@ class Provider extends Primitive {
|
|
354
367
|
}
|
355
368
|
}
|
356
369
|
exports.Provider = Provider;
|
370
|
+
exports.TagQL = `
|
371
|
+
type Tag {${exports.PrimitiveFields}
|
372
|
+
alias: String!
|
373
|
+
friendlyName: String
|
374
|
+
tagType: String!
|
375
|
+
sharingDomains: [SharingDomain]
|
376
|
+
sharingTenants: [SharingTenant]
|
377
|
+
}`;
|
357
378
|
class Tag extends Primitive {
|
358
379
|
constructor(tenantIdCreated, alias, tagType) {
|
359
380
|
super();
|
@@ -782,6 +803,8 @@ ${exports.HighlightQL}
|
|
782
803
|
${exports.EditorInputQL}
|
783
804
|
${exports.EditorQL}
|
784
805
|
${exports.SharingTagQL}
|
806
|
+
${exports.SharingDomainQL}
|
807
|
+
${exports.SharingTenantQL}
|
785
808
|
${exports.ReactionSkinToneQL}
|
786
809
|
${exports.ReactionQL}
|
787
810
|
${exports.DocumentSentimentQL}
|
@@ -798,6 +821,7 @@ ${exports.ChangesQL}
|
|
798
821
|
${exports.PersonReferenceQL}
|
799
822
|
${exports.SyncQL}
|
800
823
|
${exports.ProviderQL}
|
824
|
+
${exports.TagQL}
|
801
825
|
${exports.TagRecommendationQL}
|
802
826
|
${exports.ConnectedProviderQL}
|
803
827
|
${exports.ReferenceBlockQL}
|
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
|
@@ -543,6 +556,14 @@ export class Provider extends Primitive {
|
|
543
556
|
}
|
544
557
|
}
|
545
558
|
|
559
|
+
export const TagQL = `
|
560
|
+
type Tag {${PrimitiveFields}
|
561
|
+
alias: String!
|
562
|
+
friendlyName: String
|
563
|
+
tagType: String!
|
564
|
+
sharingDomains: [SharingDomain]
|
565
|
+
sharingTenants: [SharingTenant]
|
566
|
+
}`;
|
546
567
|
export class Tag extends Primitive {
|
547
568
|
alias: string;
|
548
569
|
friendlyName?: string;
|
@@ -1498,6 +1519,8 @@ ${HighlightQL}
|
|
1498
1519
|
${EditorInputQL}
|
1499
1520
|
${EditorQL}
|
1500
1521
|
${SharingTagQL}
|
1522
|
+
${SharingDomainQL}
|
1523
|
+
${SharingTenantQL}
|
1501
1524
|
${ReactionSkinToneQL}
|
1502
1525
|
${ReactionQL}
|
1503
1526
|
${DocumentSentimentQL}
|
@@ -1514,6 +1537,7 @@ ${ChangesQL}
|
|
1514
1537
|
${PersonReferenceQL}
|
1515
1538
|
${SyncQL}
|
1516
1539
|
${ProviderQL}
|
1540
|
+
${TagQL}
|
1517
1541
|
${TagRecommendationQL}
|
1518
1542
|
${ConnectedProviderQL}
|
1519
1543
|
${ReferenceBlockQL}
|