@bigfootai/bigfoot-types 3.5.19 → 3.6.1
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 +33 -3
- package/model.ts +47 -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 = 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 = exports.ArchiveNoteOutputQL = void 0;
|
3
|
+
exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = 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.TaskStepInputQL = 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.OrderByDirection = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
|
4
|
+
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 = exports.TagFieldsJustSharing = exports.TagFieldsWithoutSharing = exports.Provider = exports.ProviderQL = 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 = exports.ArchiveNoteOutputQL = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = 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
|
@@ -59,6 +59,11 @@ var SharingApproach;
|
|
59
59
|
SharingApproach[SharingApproach["Inline"] = 0] = "Inline";
|
60
60
|
SharingApproach[SharingApproach["Explicit"] = 1] = "Explicit";
|
61
61
|
})(SharingApproach || (exports.SharingApproach = SharingApproach = {}));
|
62
|
+
var OrderByDirection;
|
63
|
+
(function (OrderByDirection) {
|
64
|
+
OrderByDirection["Ascending"] = "asc";
|
65
|
+
OrderByDirection["Descending"] = "desc";
|
66
|
+
})(OrderByDirection || (exports.OrderByDirection = OrderByDirection = {}));
|
62
67
|
var InviteStatus;
|
63
68
|
(function (InviteStatus) {
|
64
69
|
InviteStatus[InviteStatus["NotInvited"] = 0] = "NotInvited";
|
@@ -346,6 +351,24 @@ class Primitive {
|
|
346
351
|
}
|
347
352
|
}
|
348
353
|
exports.Primitive = Primitive;
|
354
|
+
exports.SearchQL = `
|
355
|
+
type Search {${exports.PrimitiveFields}
|
356
|
+
search?: string;
|
357
|
+
tagIds?: string[];
|
358
|
+
sentiment?: string;
|
359
|
+
sharingTags?: SharingTag[];
|
360
|
+
orderByDateUpdated?: OrderByDirection;
|
361
|
+
orderByDateCreated?: OrderByDirection;
|
362
|
+
orderByAlias?: OrderByDirection;
|
363
|
+
size?: number;
|
364
|
+
}`;
|
365
|
+
class Search extends Primitive {
|
366
|
+
constructor(tenantIdCreated) {
|
367
|
+
super();
|
368
|
+
this.tenantIdCreated = tenantIdCreated;
|
369
|
+
}
|
370
|
+
}
|
371
|
+
exports.Search = Search;
|
349
372
|
exports.SyncQL = `
|
350
373
|
type Sync {${exports.PrimitiveFields}
|
351
374
|
providerRequest: ProviderRequest!
|
@@ -876,6 +899,12 @@ input SearchInput {
|
|
876
899
|
search: String
|
877
900
|
tagIds: [String]
|
878
901
|
sentiment: String
|
902
|
+
sharingTags: [SharingTag]
|
903
|
+
orderByDateUpdated String
|
904
|
+
orderByDateCreated String
|
905
|
+
orderByAlias String
|
906
|
+
page: Int
|
907
|
+
size: Int
|
879
908
|
}`;
|
880
909
|
// THE GRAPH QL DEFINITIONS
|
881
910
|
exports.GraphQLTypes = `
|
@@ -901,6 +930,7 @@ ${exports.CredentialQL}
|
|
901
930
|
${exports.ChangesInputQL}
|
902
931
|
${exports.ChangesQL}
|
903
932
|
${exports.PersonReferenceQL}
|
933
|
+
${exports.SearchQL}
|
904
934
|
${exports.SyncQL}
|
905
935
|
${exports.ProviderQL}
|
906
936
|
${exports.TagQL}
|
package/model.ts
CHANGED
@@ -55,6 +55,11 @@ export enum SharingApproach {
|
|
55
55
|
Explicit = 1, // The user explicitly shared the tag, or the system did, without it being in the note
|
56
56
|
}
|
57
57
|
|
58
|
+
export enum OrderByDirection {
|
59
|
+
Ascending = 'asc',
|
60
|
+
Descending = 'desc',
|
61
|
+
}
|
62
|
+
|
58
63
|
export enum InviteStatus {
|
59
64
|
NotInvited = 0,
|
60
65
|
InviteSent = 1,
|
@@ -519,6 +524,35 @@ export class Primitive {
|
|
519
524
|
}
|
520
525
|
}
|
521
526
|
|
527
|
+
export const SearchQL = `
|
528
|
+
type Search {${PrimitiveFields}
|
529
|
+
search?: string;
|
530
|
+
tagIds?: string[];
|
531
|
+
sentiment?: string;
|
532
|
+
sharingTags?: SharingTag[];
|
533
|
+
orderByDateUpdated?: OrderByDirection;
|
534
|
+
orderByDateCreated?: OrderByDirection;
|
535
|
+
orderByAlias?: OrderByDirection;
|
536
|
+
size?: number;
|
537
|
+
}`;
|
538
|
+
export class Search extends Primitive {
|
539
|
+
search?: string;
|
540
|
+
tagIds?: string[];
|
541
|
+
sentiment?: string;
|
542
|
+
sharingTags?: SharingTag[];
|
543
|
+
orderByDateUpdated?: OrderByDirection;
|
544
|
+
orderByDateCreated?: OrderByDirection;
|
545
|
+
orderByAlias?: OrderByDirection;
|
546
|
+
page?: number;
|
547
|
+
size?: number;
|
548
|
+
|
549
|
+
constructor(tenantIdCreated: string) {
|
550
|
+
super();
|
551
|
+
|
552
|
+
this.tenantIdCreated = tenantIdCreated;
|
553
|
+
}
|
554
|
+
}
|
555
|
+
|
522
556
|
export const SyncQL = `
|
523
557
|
type Sync {${PrimitiveFields}
|
524
558
|
providerRequest: ProviderRequest!
|
@@ -1615,11 +1649,23 @@ input SearchInput {
|
|
1615
1649
|
search: String
|
1616
1650
|
tagIds: [String]
|
1617
1651
|
sentiment: String
|
1652
|
+
sharingTags: [SharingTag]
|
1653
|
+
orderByDateUpdated String
|
1654
|
+
orderByDateCreated String
|
1655
|
+
orderByAlias String
|
1656
|
+
page: Int
|
1657
|
+
size: Int
|
1618
1658
|
}`;
|
1619
1659
|
export interface SearchInput {
|
1620
1660
|
search?: string;
|
1621
1661
|
tagIds?: string[];
|
1622
1662
|
sentiment?: string;
|
1663
|
+
sharingTags?: SharingTag[];
|
1664
|
+
orderByDateUpdated?: OrderByDirection;
|
1665
|
+
orderByDateCreated?: OrderByDirection;
|
1666
|
+
orderByAlias?: OrderByDirection;
|
1667
|
+
page?: number;
|
1668
|
+
size?: number;
|
1623
1669
|
}
|
1624
1670
|
|
1625
1671
|
// THE GRAPH QL DEFINITIONS
|
@@ -1646,6 +1692,7 @@ ${CredentialQL}
|
|
1646
1692
|
${ChangesInputQL}
|
1647
1693
|
${ChangesQL}
|
1648
1694
|
${PersonReferenceQL}
|
1695
|
+
${SearchQL}
|
1649
1696
|
${SyncQL}
|
1650
1697
|
${ProviderQL}
|
1651
1698
|
${TagQL}
|