@bigfootai/bigfoot-types 4.0.1 → 4.0.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 +15 -5
- package/model.ts +27 -8
- 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
3
|
exports.SharedPrimitive = exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ConnectedProviderQL = exports.CredentialQL = exports.StandardObjectsQL = 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.SharingTagInputQL = 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.
|
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 = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = void 0;
|
4
|
+
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.Ingestion = 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.ProviderApplication = exports.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = 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 = exports.FindCalendarInputQL = exports.FindArticlesInputQL = exports.FindArticleInputQL = exports.Table = exports.FieldVariation = 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
|
@@ -418,6 +418,7 @@ exports.ProviderApplicationQL = `
|
|
418
418
|
type ProviderApplication {
|
419
419
|
name: String!
|
420
420
|
sobjects: StandardObjects!
|
421
|
+
linkSubscriptions: [String]!
|
421
422
|
}`;
|
422
423
|
class ProviderApplication {
|
423
424
|
}
|
@@ -586,6 +587,18 @@ class BlockProcessingResponse {
|
|
586
587
|
}
|
587
588
|
}
|
588
589
|
exports.BlockProcessingResponse = BlockProcessingResponse;
|
590
|
+
class Ingestion extends Primitive {
|
591
|
+
constructor(tenantIdCreated, referenceBlock) {
|
592
|
+
super();
|
593
|
+
this.tenantIdCreated = tenantIdCreated;
|
594
|
+
this.referenceBlock = referenceBlock;
|
595
|
+
this.processingStage == ProcessingStage.NotProcessed;
|
596
|
+
this.processingAttempts == 0;
|
597
|
+
this.dateProcessed = 0;
|
598
|
+
this.dateToProcess = Date.now();
|
599
|
+
}
|
600
|
+
}
|
601
|
+
exports.Ingestion = Ingestion;
|
589
602
|
exports.BusinessObjectFields = `${exports.SharedPrimitiveFields}
|
590
603
|
provider: String!
|
591
604
|
application: String!
|
@@ -602,9 +615,6 @@ type BusinessObject {${exports.BusinessObjectFields}
|
|
602
615
|
class BusinessObject extends Block {
|
603
616
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
|
604
617
|
super(tenantIdCreated, editors, sharingTags, version, blockType);
|
605
|
-
this.processingStage = ProcessingStage.NotProcessed;
|
606
|
-
this.processingAttempts = 0;
|
607
|
-
this.dateProcessed = 0;
|
608
618
|
this.archived = false;
|
609
619
|
this.provider = provider;
|
610
620
|
this.application = application;
|
package/model.ts
CHANGED
@@ -613,10 +613,12 @@ export const ProviderApplicationQL = `
|
|
613
613
|
type ProviderApplication {
|
614
614
|
name: String!
|
615
615
|
sobjects: StandardObjects!
|
616
|
+
linkSubscriptions: [String]!
|
616
617
|
}`;
|
617
618
|
export class ProviderApplication {
|
618
619
|
name: string;
|
619
620
|
sobjects: StandardObjects;
|
621
|
+
linkSubscriptions: string[];
|
620
622
|
}
|
621
623
|
|
622
624
|
export const ProviderQL = `
|
@@ -899,6 +901,31 @@ export class BlockProcessingResponse {
|
|
899
901
|
}
|
900
902
|
}
|
901
903
|
|
904
|
+
export class Ingestion extends Primitive {
|
905
|
+
referenceBlock: ReferenceBlock;
|
906
|
+
provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
|
907
|
+
application: string; // A unique string representing the provider application e.g. "service", "jira", etc
|
908
|
+
uri: string; // A uri to locate the specific instance of the business object
|
909
|
+
processingStage: ProcessingStage; // Indicates if the business object has been processed yet
|
910
|
+
processingAttempts: number; // Indicates the number of attempts made to process this business object
|
911
|
+
processingReason?: string; // The reason the processing is at this stage
|
912
|
+
dateProcessed: number; // The date this document was last processed
|
913
|
+
dateToProcess: number; // The date this ingestion should be processed - default is now
|
914
|
+
externalResponse?: any; // The full response from the external system that created this object
|
915
|
+
|
916
|
+
constructor(tenantIdCreated: string, referenceBlock: ReferenceBlock) {
|
917
|
+
super();
|
918
|
+
|
919
|
+
this.tenantIdCreated = tenantIdCreated;
|
920
|
+
this.referenceBlock = referenceBlock;
|
921
|
+
|
922
|
+
this.processingStage == ProcessingStage.NotProcessed;
|
923
|
+
this.processingAttempts == 0;
|
924
|
+
this.dateProcessed = 0;
|
925
|
+
this.dateToProcess = Date.now();
|
926
|
+
}
|
927
|
+
}
|
928
|
+
|
902
929
|
export const BusinessObjectFields = `${SharedPrimitiveFields}
|
903
930
|
provider: String!
|
904
931
|
application: String!
|
@@ -916,12 +943,7 @@ export class BusinessObject extends Block {
|
|
916
943
|
provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
|
917
944
|
application: string; // A unique string representing the provider application e.g. "service", "jira", etc
|
918
945
|
uri: string; // A uri to locate the specific instance of the business object
|
919
|
-
processingStage: ProcessingStage; // Indicates if the business object has been processed yet
|
920
|
-
processingAttempts: number; // Indicates the number of attempts made to process this business object
|
921
|
-
dateProcessed: number; // The date this document was last processed
|
922
946
|
externalId: string; // An external identifier that can help us match the records
|
923
|
-
processingReason?: string; // The reason the processing is at this stage
|
924
|
-
externalResponse?: any; // The full response from the external system that created this object
|
925
947
|
iconUrl?: string | null; // The url of an icon that represents the business object
|
926
948
|
|
927
949
|
constructor(
|
@@ -937,9 +959,6 @@ export class BusinessObject extends Block {
|
|
937
959
|
) {
|
938
960
|
super(tenantIdCreated, editors, sharingTags, version, blockType);
|
939
961
|
|
940
|
-
this.processingStage = ProcessingStage.NotProcessed;
|
941
|
-
this.processingAttempts = 0;
|
942
|
-
this.dateProcessed = 0;
|
943
962
|
this.archived = false;
|
944
963
|
|
945
964
|
this.provider = provider;
|