@bigfootai/bigfoot-types 4.0.3 → 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.
Files changed (3) hide show
  1. package/model.js +5 -5
  2. package/model.ts +10 -4
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -1,7 +1,7 @@
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.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;
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
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
  /*
@@ -587,18 +587,18 @@ class BlockProcessingResponse {
587
587
  }
588
588
  }
589
589
  exports.BlockProcessingResponse = BlockProcessingResponse;
590
- class Ingestion extends Primitive {
591
- constructor(tenantIdCreated, referenceBlock) {
590
+ class BusinessObjectIngestionRequest extends Primitive {
591
+ constructor(tenantIdCreated, uri) {
592
592
  super();
593
593
  this.tenantIdCreated = tenantIdCreated;
594
- this.referenceBlock = referenceBlock;
594
+ this.uri = uri;
595
595
  this.processingStage == ProcessingStage.NotProcessed;
596
596
  this.processingAttempts == 0;
597
597
  this.dateProcessed = 0;
598
598
  this.dateToProcess = Date.now();
599
599
  }
600
600
  }
601
- exports.Ingestion = Ingestion;
601
+ exports.BusinessObjectIngestionRequest = BusinessObjectIngestionRequest;
602
602
  exports.BusinessObjectFields = `${exports.SharedPrimitiveFields}
603
603
  provider: String!
604
604
  application: String!
package/model.ts CHANGED
@@ -901,8 +901,14 @@ export class BlockProcessingResponse {
901
901
  }
902
902
  }
903
903
 
904
- export class Ingestion extends Primitive {
905
- referenceBlock: ReferenceBlock;
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;
906
912
  provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
907
913
  application: string; // A unique string representing the provider application e.g. "service", "jira", etc
908
914
  uri: string; // A uri to locate the specific instance of the business object
@@ -913,11 +919,11 @@ export class Ingestion extends Primitive {
913
919
  dateToProcess: number; // The date this ingestion should be processed - default is now
914
920
  externalResponse?: any; // The full response from the external system that created this object
915
921
 
916
- constructor(tenantIdCreated: string, referenceBlock: ReferenceBlock) {
922
+ constructor(tenantIdCreated: string, uri: string) {
917
923
  super();
918
924
 
919
925
  this.tenantIdCreated = tenantIdCreated;
920
- this.referenceBlock = referenceBlock;
926
+ this.uri = uri;
921
927
 
922
928
  this.processingStage == ProcessingStage.NotProcessed;
923
929
  this.processingAttempts == 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.0.3",
4
+ "version": "4.1.0",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",