@bigfootai/bigfoot-types 4.0.2 → 4.1.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 +14 -5
- package/model.ts +31 -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.BusinessObjectIngestionRequest = 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 BusinessObjectIngestionRequest extends Primitive {
|
591
|
+
constructor(tenantIdCreated, uri) {
|
592
|
+
super();
|
593
|
+
this.tenantIdCreated = tenantIdCreated;
|
594
|
+
this.uri = uri;
|
595
|
+
this.processingStage == ProcessingStage.NotProcessed;
|
596
|
+
this.processingAttempts == 0;
|
597
|
+
this.dateProcessed = 0;
|
598
|
+
this.dateToProcess = Date.now();
|
599
|
+
}
|
600
|
+
}
|
601
|
+
exports.BusinessObjectIngestionRequest = BusinessObjectIngestionRequest;
|
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,37 @@ export class BlockProcessingResponse {
|
|
901
901
|
}
|
902
902
|
}
|
903
903
|
|
904
|
+
export interface SubscribingProviderApplication {
|
905
|
+
provider: Provider;
|
906
|
+
application: ProviderApplication;
|
907
|
+
}
|
908
|
+
|
909
|
+
export class BusinessObjectIngestionRequest extends Primitive {
|
910
|
+
referenceBlock?: ReferenceBlock; // A reference to the block created/updated by this ingestion
|
911
|
+
subscribingProviderApplication?: SubscribingProviderApplication;
|
912
|
+
provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
|
913
|
+
application: string; // A unique string representing the provider application e.g. "service", "jira", etc
|
914
|
+
uri: string; // A uri to locate the specific instance of the business object
|
915
|
+
processingStage: ProcessingStage; // Indicates if the business object has been processed yet
|
916
|
+
processingAttempts: number; // Indicates the number of attempts made to process this business object
|
917
|
+
processingReason?: string; // The reason the processing is at this stage
|
918
|
+
dateProcessed: number; // The date this document was last processed
|
919
|
+
dateToProcess: number; // The date this ingestion should be processed - default is now
|
920
|
+
externalResponse?: any; // The full response from the external system that created this object
|
921
|
+
|
922
|
+
constructor(tenantIdCreated: string, uri: string) {
|
923
|
+
super();
|
924
|
+
|
925
|
+
this.tenantIdCreated = tenantIdCreated;
|
926
|
+
this.uri = uri;
|
927
|
+
|
928
|
+
this.processingStage == ProcessingStage.NotProcessed;
|
929
|
+
this.processingAttempts == 0;
|
930
|
+
this.dateProcessed = 0;
|
931
|
+
this.dateToProcess = Date.now();
|
932
|
+
}
|
933
|
+
}
|
934
|
+
|
904
935
|
export const BusinessObjectFields = `${SharedPrimitiveFields}
|
905
936
|
provider: String!
|
906
937
|
application: String!
|
@@ -918,12 +949,7 @@ export class BusinessObject extends Block {
|
|
918
949
|
provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
|
919
950
|
application: string; // A unique string representing the provider application e.g. "service", "jira", etc
|
920
951
|
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
952
|
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
953
|
iconUrl?: string | null; // The url of an icon that represents the business object
|
928
954
|
|
929
955
|
constructor(
|
@@ -939,9 +965,6 @@ export class BusinessObject extends Block {
|
|
939
965
|
) {
|
940
966
|
super(tenantIdCreated, editors, sharingTags, version, blockType);
|
941
967
|
|
942
|
-
this.processingStage = ProcessingStage.NotProcessed;
|
943
|
-
this.processingAttempts = 0;
|
944
|
-
this.dateProcessed = 0;
|
945
968
|
this.archived = false;
|
946
969
|
|
947
970
|
this.provider = provider;
|