@bigfootai/bigfoot-types 3.6.2 → 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 +29 -22
- package/model.ts +28 -20
- 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.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 = 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!
|
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!
|