@bigfootai/bigfoot-types 4.0.2 → 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 +14 -5
- package/model.ts +25 -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
|
@@ -587,6 +587,18 @@ class BlockProcessingResponse {
|
|
587
587
|
}
|
588
588
|
}
|
589
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;
|
590
602
|
exports.BusinessObjectFields = `${exports.SharedPrimitiveFields}
|
591
603
|
provider: String!
|
592
604
|
application: String!
|
@@ -603,9 +615,6 @@ type BusinessObject {${exports.BusinessObjectFields}
|
|
603
615
|
class BusinessObject extends Block {
|
604
616
|
constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
|
605
617
|
super(tenantIdCreated, editors, sharingTags, version, blockType);
|
606
|
-
this.processingStage = ProcessingStage.NotProcessed;
|
607
|
-
this.processingAttempts = 0;
|
608
|
-
this.dateProcessed = 0;
|
609
618
|
this.archived = false;
|
610
619
|
this.provider = provider;
|
611
620
|
this.application = application;
|
package/model.ts
CHANGED
@@ -901,6 +901,31 @@ export class BlockProcessingResponse {
|
|
901
901
|
}
|
902
902
|
}
|
903
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
|
+
|
904
929
|
export const BusinessObjectFields = `${SharedPrimitiveFields}
|
905
930
|
provider: String!
|
906
931
|
application: String!
|
@@ -918,12 +943,7 @@ export class BusinessObject extends Block {
|
|
918
943
|
provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
|
919
944
|
application: string; // A unique string representing the provider application e.g. "service", "jira", etc
|
920
945
|
uri: string; // A uri to locate the specific instance of the business object
|
921
|
-
processingStage: ProcessingStage; // Indicates if the business object has been processed yet
|
922
|
-
processingAttempts: number; // Indicates the number of attempts made to process this business object
|
923
|
-
dateProcessed: number; // The date this document was last processed
|
924
946
|
externalId: string; // An external identifier that can help us match the records
|
925
|
-
processingReason?: string; // The reason the processing is at this stage
|
926
|
-
externalResponse?: any; // The full response from the external system that created this object
|
927
947
|
iconUrl?: string | null; // The url of an icon that represents the business object
|
928
948
|
|
929
949
|
constructor(
|
@@ -939,9 +959,6 @@ export class BusinessObject extends Block {
|
|
939
959
|
) {
|
940
960
|
super(tenantIdCreated, editors, sharingTags, version, blockType);
|
941
961
|
|
942
|
-
this.processingStage = ProcessingStage.NotProcessed;
|
943
|
-
this.processingAttempts = 0;
|
944
|
-
this.dateProcessed = 0;
|
945
962
|
this.archived = false;
|
946
963
|
|
947
964
|
this.provider = provider;
|