@bigfootai/bigfoot-types 3.6.1 → 3.7.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 +65 -23
- package/model.ts +95 -22
- 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 = exports.ArchiveNoteInputQL = exports.FindNotesInputQL = exports.FindNoteInputQL = void 0;
|
3
|
+
exports.Search = exports.SearchQL = exports.SharedPrimitive = exports.SharedPrimitiveFields = 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.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 = exports.Sync = exports.SyncQL = void 0;
|
5
|
+
exports.GraphQLTypes = exports.SearchInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = 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 = exports.UpsertNoteInputQL = exports.FindEventInputQL = 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
|
@@ -351,20 +351,29 @@ class Primitive {
|
|
351
351
|
}
|
352
352
|
}
|
353
353
|
exports.Primitive = Primitive;
|
354
|
-
exports.
|
355
|
-
|
356
|
-
|
357
|
-
|
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) {
|
354
|
+
exports.SharedPrimitiveFields = `${exports.PrimitiveFields}
|
355
|
+
sharingTags: [SharingTag]!`;
|
356
|
+
class SharedPrimitive extends Primitive {
|
357
|
+
constructor(sharingTags) {
|
367
358
|
super();
|
359
|
+
this.sharingTags = sharingTags;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
exports.SharedPrimitive = SharedPrimitive;
|
363
|
+
exports.SearchQL = `
|
364
|
+
type Search {${exports.SharedPrimitiveFields}
|
365
|
+
search: String
|
366
|
+
tagIds: [String]
|
367
|
+
sentiment: String
|
368
|
+
sharingTags: [SharingTag]
|
369
|
+
orderByDateUpdated: String
|
370
|
+
orderByDateCreated: String
|
371
|
+
orderByAlias: String
|
372
|
+
size: Int
|
373
|
+
}`;
|
374
|
+
class Search extends SharedPrimitive {
|
375
|
+
constructor(tenantIdCreated, sharingTags) {
|
376
|
+
super(sharingTags);
|
368
377
|
this.tenantIdCreated = tenantIdCreated;
|
369
378
|
}
|
370
379
|
}
|
@@ -499,20 +508,18 @@ class Article extends Primitive {
|
|
499
508
|
}
|
500
509
|
}
|
501
510
|
exports.Article = Article;
|
502
|
-
exports.BlockFields = `${exports.
|
511
|
+
exports.BlockFields = `${exports.SharedPrimitiveFields}
|
503
512
|
editors: [Editor]!
|
504
|
-
sharingTags: [SharingTag]!
|
505
513
|
version: Float!
|
506
514
|
blockType: String!
|
507
515
|
archived: Boolean!
|
508
516
|
document: String
|
509
517
|
reactions: [Reaction]`;
|
510
|
-
class Block extends
|
518
|
+
class Block extends SharedPrimitive {
|
511
519
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType) {
|
512
|
-
super();
|
520
|
+
super(sharingTags);
|
513
521
|
this.tenantIdCreated = tenantIdCreated;
|
514
522
|
this.editors = editors;
|
515
|
-
this.sharingTags = sharingTags;
|
516
523
|
this.version = version;
|
517
524
|
this.blockType = blockType;
|
518
525
|
this.archived = false;
|
@@ -532,7 +539,7 @@ class BlockProcessingResponse {
|
|
532
539
|
}
|
533
540
|
}
|
534
541
|
exports.BlockProcessingResponse = BlockProcessingResponse;
|
535
|
-
exports.BusinessObjectFields = `${exports.
|
542
|
+
exports.BusinessObjectFields = `${exports.SharedPrimitiveFields}
|
536
543
|
provider: String!
|
537
544
|
application: String!
|
538
545
|
uri: String!
|
@@ -894,12 +901,42 @@ type ArchiveTaskOutput {
|
|
894
901
|
_id: String!
|
895
902
|
archived: Boolean!
|
896
903
|
}`;
|
904
|
+
exports.UpsertSearchInputQL = `
|
905
|
+
input UpsertSearchInput {
|
906
|
+
_id: String
|
907
|
+
search: String
|
908
|
+
tagIds: [String]
|
909
|
+
sentiment: String
|
910
|
+
sharingTags: [SharingTag]
|
911
|
+
orderByDateUpdated String
|
912
|
+
orderByDateCreated String
|
913
|
+
orderByAlias String
|
914
|
+
size: Int
|
915
|
+
}`;
|
916
|
+
exports.FindSearchInputQL = `
|
917
|
+
input FindSearchInput {
|
918
|
+
_id: String!
|
919
|
+
archived: Boolean
|
920
|
+
}`;
|
921
|
+
exports.FindSearchesInputQL = `
|
922
|
+
input FindSearchesInput {
|
923
|
+
archived: Boolean
|
924
|
+
}`;
|
925
|
+
exports.ArchiveSearchInputQL = `
|
926
|
+
input ArchiveSearchInput {
|
927
|
+
_id: String!
|
928
|
+
archive: Boolean
|
929
|
+
}`;
|
930
|
+
exports.ArchiveSearchOutputQL = `
|
931
|
+
type ArchiveSearchOutput {
|
932
|
+
_id: String!
|
933
|
+
archived: Boolean!
|
934
|
+
}`;
|
897
935
|
exports.SearchInputQL = `
|
898
936
|
input SearchInput {
|
899
937
|
search: String
|
900
938
|
tagIds: [String]
|
901
939
|
sentiment: String
|
902
|
-
sharingTags: [SharingTag]
|
903
940
|
orderByDateUpdated String
|
904
941
|
orderByDateCreated String
|
905
942
|
orderByAlias String
|
@@ -972,4 +1009,9 @@ ${exports.FindTaskInputQL}
|
|
972
1009
|
${exports.FindTasksInputQL}
|
973
1010
|
${exports.ArchiveTaskInputQL}
|
974
1011
|
${exports.ArchiveTaskOutputQL}
|
1012
|
+
${exports.UpsertSearchInputQL}
|
1013
|
+
${exports.FindSearchInputQL}
|
1014
|
+
${exports.FindSearchesInputQL}
|
1015
|
+
${exports.ArchiveSearchInputQL}
|
1016
|
+
${exports.ArchiveSearchOutputQL}
|
975
1017
|
${exports.SearchInputQL}`;
|
package/model.ts
CHANGED
@@ -524,30 +524,41 @@ export class Primitive {
|
|
524
524
|
}
|
525
525
|
}
|
526
526
|
|
527
|
+
export const SharedPrimitiveFields = `${PrimitiveFields}
|
528
|
+
sharingTags: [SharingTag]!`;
|
529
|
+
export class SharedPrimitive extends Primitive {
|
530
|
+
sharingTags: SharingTag[];
|
531
|
+
|
532
|
+
constructor(sharingTags: SharingTag[]) {
|
533
|
+
super();
|
534
|
+
|
535
|
+
this.sharingTags = sharingTags;
|
536
|
+
}
|
537
|
+
}
|
538
|
+
|
527
539
|
export const SearchQL = `
|
528
|
-
type Search {${
|
529
|
-
search
|
530
|
-
tagIds
|
531
|
-
sentiment
|
532
|
-
sharingTags
|
533
|
-
orderByDateUpdated
|
534
|
-
orderByDateCreated
|
535
|
-
orderByAlias
|
536
|
-
size
|
540
|
+
type Search {${SharedPrimitiveFields}
|
541
|
+
search: String
|
542
|
+
tagIds: [String]
|
543
|
+
sentiment: String
|
544
|
+
sharingTags: [SharingTag]
|
545
|
+
orderByDateUpdated: String
|
546
|
+
orderByDateCreated: String
|
547
|
+
orderByAlias: String
|
548
|
+
size: Int
|
537
549
|
}`;
|
538
|
-
export class Search extends
|
550
|
+
export class Search extends SharedPrimitive {
|
539
551
|
search?: string;
|
540
552
|
tagIds?: string[];
|
541
553
|
sentiment?: string;
|
542
|
-
sharingTags?: SharingTag[];
|
543
554
|
orderByDateUpdated?: OrderByDirection;
|
544
555
|
orderByDateCreated?: OrderByDirection;
|
545
556
|
orderByAlias?: OrderByDirection;
|
546
557
|
page?: number;
|
547
558
|
size?: number;
|
548
559
|
|
549
|
-
constructor(tenantIdCreated: string) {
|
550
|
-
super();
|
560
|
+
constructor(tenantIdCreated: string, sharingTags: SharingTag[]) {
|
561
|
+
super(sharingTags);
|
551
562
|
|
552
563
|
this.tenantIdCreated = tenantIdCreated;
|
553
564
|
}
|
@@ -766,17 +777,15 @@ export class Article extends Primitive {
|
|
766
777
|
}
|
767
778
|
}
|
768
779
|
|
769
|
-
export const BlockFields = `${
|
780
|
+
export const BlockFields = `${SharedPrimitiveFields}
|
770
781
|
editors: [Editor]!
|
771
|
-
sharingTags: [SharingTag]!
|
772
782
|
version: Float!
|
773
783
|
blockType: String!
|
774
784
|
archived: Boolean!
|
775
785
|
document: String
|
776
786
|
reactions: [Reaction]`;
|
777
|
-
export class Block extends
|
787
|
+
export class Block extends SharedPrimitive {
|
778
788
|
editors: Editor[];
|
779
|
-
sharingTags: SharingTag[];
|
780
789
|
version: number;
|
781
790
|
blockType: BlockType;
|
782
791
|
archived: boolean;
|
@@ -791,11 +800,10 @@ export class Block extends Primitive {
|
|
791
800
|
version: number,
|
792
801
|
blockType: BlockType
|
793
802
|
) {
|
794
|
-
super();
|
803
|
+
super(sharingTags);
|
795
804
|
|
796
805
|
this.tenantIdCreated = tenantIdCreated;
|
797
806
|
this.editors = editors;
|
798
|
-
this.sharingTags = sharingTags;
|
799
807
|
this.version = version;
|
800
808
|
this.blockType = blockType;
|
801
809
|
|
@@ -822,7 +830,7 @@ export class BlockProcessingResponse {
|
|
822
830
|
}
|
823
831
|
}
|
824
832
|
|
825
|
-
export const BusinessObjectFields = `${
|
833
|
+
export const BusinessObjectFields = `${SharedPrimitiveFields}
|
826
834
|
provider: String!
|
827
835
|
application: String!
|
828
836
|
uri: String!
|
@@ -1644,12 +1652,73 @@ export interface ArchiveTaskOutput {
|
|
1644
1652
|
archived: boolean;
|
1645
1653
|
}
|
1646
1654
|
|
1655
|
+
export const UpsertSearchInputQL = `
|
1656
|
+
input UpsertSearchInput {
|
1657
|
+
_id: String
|
1658
|
+
search: String
|
1659
|
+
tagIds: [String]
|
1660
|
+
sentiment: String
|
1661
|
+
sharingTags: [SharingTag]
|
1662
|
+
orderByDateUpdated String
|
1663
|
+
orderByDateCreated String
|
1664
|
+
orderByAlias String
|
1665
|
+
size: Int
|
1666
|
+
}`;
|
1667
|
+
export interface UpsertSearchInput {
|
1668
|
+
_id: string;
|
1669
|
+
search?: string;
|
1670
|
+
tagIds?: string[];
|
1671
|
+
sentiment?: string;
|
1672
|
+
sharingTags?: SharingTag[];
|
1673
|
+
orderByDateUpdated?: OrderByDirection;
|
1674
|
+
orderByDateCreated?: OrderByDirection;
|
1675
|
+
orderByAlias?: OrderByDirection;
|
1676
|
+
size?: number;
|
1677
|
+
}
|
1678
|
+
|
1679
|
+
export const FindSearchInputQL = `
|
1680
|
+
input FindSearchInput {
|
1681
|
+
_id: String!
|
1682
|
+
archived: Boolean
|
1683
|
+
}`;
|
1684
|
+
export interface FindSearchInput {
|
1685
|
+
_id: string;
|
1686
|
+
archived?: boolean;
|
1687
|
+
}
|
1688
|
+
|
1689
|
+
export const FindSearchesInputQL = `
|
1690
|
+
input FindSearchesInput {
|
1691
|
+
archived: Boolean
|
1692
|
+
}`;
|
1693
|
+
export interface FindSearchesInput {
|
1694
|
+
archived?: boolean;
|
1695
|
+
}
|
1696
|
+
|
1697
|
+
export const ArchiveSearchInputQL = `
|
1698
|
+
input ArchiveSearchInput {
|
1699
|
+
_id: String!
|
1700
|
+
archive: Boolean
|
1701
|
+
}`;
|
1702
|
+
export interface ArchiveSearchInput {
|
1703
|
+
_id: string;
|
1704
|
+
archive?: boolean;
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
export const ArchiveSearchOutputQL = `
|
1708
|
+
type ArchiveSearchOutput {
|
1709
|
+
_id: String!
|
1710
|
+
archived: Boolean!
|
1711
|
+
}`;
|
1712
|
+
export interface ArchiveSearchOutput {
|
1713
|
+
_id: string;
|
1714
|
+
archived: boolean;
|
1715
|
+
}
|
1716
|
+
|
1647
1717
|
export const SearchInputQL = `
|
1648
1718
|
input SearchInput {
|
1649
1719
|
search: String
|
1650
1720
|
tagIds: [String]
|
1651
1721
|
sentiment: String
|
1652
|
-
sharingTags: [SharingTag]
|
1653
1722
|
orderByDateUpdated String
|
1654
1723
|
orderByDateCreated String
|
1655
1724
|
orderByAlias String
|
@@ -1660,7 +1729,6 @@ export interface SearchInput {
|
|
1660
1729
|
search?: string;
|
1661
1730
|
tagIds?: string[];
|
1662
1731
|
sentiment?: string;
|
1663
|
-
sharingTags?: SharingTag[];
|
1664
1732
|
orderByDateUpdated?: OrderByDirection;
|
1665
1733
|
orderByDateCreated?: OrderByDirection;
|
1666
1734
|
orderByAlias?: OrderByDirection;
|
@@ -1734,4 +1802,9 @@ ${FindTaskInputQL}
|
|
1734
1802
|
${FindTasksInputQL}
|
1735
1803
|
${ArchiveTaskInputQL}
|
1736
1804
|
${ArchiveTaskOutputQL}
|
1805
|
+
${UpsertSearchInputQL}
|
1806
|
+
${FindSearchInputQL}
|
1807
|
+
${FindSearchesInputQL}
|
1808
|
+
${ArchiveSearchInputQL}
|
1809
|
+
${ArchiveSearchOutputQL}
|
1737
1810
|
${SearchInputQL}`;
|