@bigfootai/bigfoot-types 4.1.12 → 4.1.13

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 +6 -2
  2. package/model.ts +10 -0
  3. 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.Template = exports.Website = exports.Document = 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 = exports.FieldType = void 0;
4
+ exports.Website = exports.Document = 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.BusinessObjectIngestionResponse = 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 = exports.FieldType = exports.Template = 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
@@ -139,6 +139,7 @@ var ProcessingStage;
139
139
  ProcessingStage["NotConnected"] = "not_connected";
140
140
  ProcessingStage["NoCredential"] = "no_credential";
141
141
  ProcessingStage["Failed"] = "failed";
142
+ ProcessingStage["Waiting"] = "waiting";
142
143
  })(ProcessingStage || (exports.ProcessingStage = ProcessingStage = {}));
143
144
  // Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
144
145
  var EntityType;
@@ -587,6 +588,9 @@ class BlockProcessingResponse {
587
588
  }
588
589
  }
589
590
  exports.BlockProcessingResponse = BlockProcessingResponse;
591
+ class BusinessObjectIngestionResponse {
592
+ }
593
+ exports.BusinessObjectIngestionResponse = BusinessObjectIngestionResponse;
590
594
  class BusinessObjectIngestionRequest extends Primitive {
591
595
  constructor(tenantIdCreated, originReferenceBlock, uri) {
592
596
  super();
package/model.ts CHANGED
@@ -134,6 +134,7 @@ export enum ProcessingStage {
134
134
  NotConnected = 'not_connected',
135
135
  NoCredential = 'no_credential',
136
136
  Failed = 'failed',
137
+ Waiting = 'waiting',
137
138
  }
138
139
 
139
140
  // Referenced here: https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types-version-2
@@ -904,6 +905,13 @@ export interface SubscribingProviderApplication {
904
905
  application: ProviderApplication;
905
906
  }
906
907
 
908
+ export class BusinessObjectIngestionResponse {
909
+ callbackId: string;
910
+ processingStage: ProcessingStage;
911
+ processingReason: string;
912
+ businessObject: BusinessObject;
913
+ }
914
+
907
915
  export class BusinessObjectIngestionRequest extends Primitive {
908
916
  referenceBlock?: ReferenceBlock; // A reference to the block created/updated by this ingestion
909
917
  subscribingProviderApplication?: SubscribingProviderApplication;
@@ -916,6 +924,8 @@ export class BusinessObjectIngestionRequest extends Primitive {
916
924
  dateProcessed: number; // The date this document was last processed
917
925
  dateToProcess: number; // The date this ingestion should be processed - default is now
918
926
  originReferenceBlock: ReferenceBlock; // The block that this request originally came from (though the ingestion may be referenced from many future blocks)
927
+ callbackId?: string; // A callback id that can be used for async requests
928
+ businessObject?: BusinessObject; // The ingested business object - used for async request callbacks
919
929
 
920
930
  constructor(
921
931
  tenantIdCreated: string,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.1.12",
4
+ "version": "4.1.13",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",