@bigfootai/bigfoot-types 4.4.0 → 4.4.2

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 -12
  2. package/model.ts +14 -18
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SharedPrimitiveFields = exports.Primitive = exports.PrimitiveFields = exports.PersonReferenceQL = exports.PersonReferenceFields = exports.ChangesQL = exports.ChangesInputQL = exports.ReferenceBlockQL = exports.ReferenceBlockInputQL = 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.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.MetadataBusinessObject = exports.MetadataBusinessObjectFields = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.BusinessObjectIngestionResponse = exports.History = 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 = exports.Metadata = exports.MetadataFields = exports.SharedPrimitive = void 0;
5
- exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = 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.TableQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Document = exports.DocumentQL = exports.Thread = exports.Todo = exports.Calendar = exports.CalendarQL = void 0;
6
- exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = void 0;
4
+ 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.MetadataBusinessObject = exports.MetadataBusinessObjectFields = exports.BusinessObject = exports.BusinessObjectQL = exports.BusinessObjectFields = exports.BusinessObjectIngestionRequest = exports.History = 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.ProviderApplicationQL = exports.Sync = exports.SyncQL = exports.Search = exports.SearchQL = exports.Metadata = exports.MetadataFields = exports.SharedPrimitive = void 0;
5
+ exports.ArchiveSearchOutputQL = exports.ArchiveSearchInputQL = exports.FindSearchesInputQL = exports.FindSearchInputQL = exports.UpsertSearchInputQL = exports.ArchiveTaskOutputQL = exports.ArchiveTaskInputQL = exports.FindTasksInputQL = exports.FindTaskInputQL = exports.UpdateTaskInputQL = exports.DeleteSharingTagInputQL = exports.SetSharingTagInputQL = 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.TableQL = exports.TableMetadata = exports.TableMetadataQL = exports.FieldValueQL = exports.FieldQL = exports.OptionQL = exports.FieldVariation = exports.FieldType = exports.Template = exports.TemplateQL = exports.DocumentMetadata = exports.DocumentMetadataQL = exports.BlockDescriptionQL = exports.Website = exports.WebsiteQL = exports.Document = exports.DocumentQL = exports.Thread = exports.Todo = void 0;
6
+ exports.GraphQLTypes = exports.SearchInputQL = exports.SearchTagsInputQL = void 0;
7
7
  const uuid_1 = require("uuid");
8
8
  /*
9
9
  These are the core primitives of our model. These represent the entities that show
@@ -452,9 +452,6 @@ type ProviderApplication {
452
452
  sobjects: StandardObjects!
453
453
  linkSubscriptions: [String]!
454
454
  }`;
455
- class ProviderApplication {
456
- }
457
- exports.ProviderApplication = ProviderApplication;
458
455
  exports.ProviderQL = `
459
456
  type Provider {${exports.PrimitiveFields}
460
457
  provider: String!
@@ -630,9 +627,6 @@ class History extends Primitive {
630
627
  }
631
628
  }
632
629
  exports.History = History;
633
- class BusinessObjectIngestionResponse {
634
- }
635
- exports.BusinessObjectIngestionResponse = BusinessObjectIngestionResponse;
636
630
  class BusinessObjectIngestionRequest extends Primitive {
637
631
  constructor(tenantIdCreated, originReferenceBlock, uri) {
638
632
  super();
@@ -933,10 +927,9 @@ type Field {
933
927
  exports.FieldValueQL = `
934
928
  type FieldValue {
935
929
  name: String!
936
- previousValue: String!
937
- nextValue: String!
938
930
  value: String!
939
- changed: Boolean!
931
+ previousValue: String
932
+ changed: Boolean
940
933
  }`;
941
934
  exports.TableMetadataQL = `
942
935
  type TableMetadata {${exports.MetadataFields}
package/model.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { describe } from 'node:test';
2
- import { loadavg } from 'os';
3
1
  import { v4 as uuidv4 } from 'uuid';
4
2
 
5
3
  /*
@@ -656,7 +654,7 @@ type ProviderApplication {
656
654
  sobjects: StandardObjects!
657
655
  linkSubscriptions: [String]!
658
656
  }`;
659
- export class ProviderApplication {
657
+ export interface ProviderApplication {
660
658
  name: string;
661
659
  sobjects: StandardObjects;
662
660
  linkSubscriptions: string[];
@@ -969,7 +967,7 @@ export interface SubscribingProviderApplication {
969
967
  application: ProviderApplication;
970
968
  }
971
969
 
972
- export class BusinessObjectIngestionResponse {
970
+ export interface BusinessObjectIngestionResponse {
973
971
  callbackId: string;
974
972
  processingStage: ProcessingStage;
975
973
  processingReason: string;
@@ -979,15 +977,15 @@ export class BusinessObjectIngestionResponse {
979
977
  export class BusinessObjectIngestionRequest extends Primitive {
980
978
  referenceBlock?: ReferenceBlock; // A reference to the block created/updated by this ingestion
981
979
  subscribingProviderApplication?: SubscribingProviderApplication;
982
- provider: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
983
- application: string; // A unique string representing the provider application e.g. "service", "jira", etc
980
+ provider?: string; // A unique string representing the provider e.g. "salesforce", "atlassian", etc
981
+ application?: string; // A unique string representing the provider application e.g. "service", "jira", etc
984
982
  uri: string; // A uri to locate the specific instance of the business object
985
- processingStage: ProcessingStage; // Indicates if the business object has been processed yet
986
- processingAttempts: number; // Indicates the number of attempts made to process this business object
983
+ processingStage?: ProcessingStage; // Indicates if the business object has been processed yet
984
+ processingAttempts?: number; // Indicates the number of attempts made to process this business object
987
985
  processingReason?: string; // The reason the processing is at this stage
988
- dateProcessed: number; // The date this document was last processed
989
- dateToProcess: number; // The date this ingestion should be processed - default is now
990
- originReferenceBlock: ReferenceBlock; // The block that this request originally came from (though the ingestion may be referenced from many future blocks)
986
+ dateProcessed?: number; // The date this document was last processed
987
+ dateToProcess?: number; // The date this ingestion should be processed - default is now
988
+ originReferenceBlock?: ReferenceBlock; // The block that this request originally came from (though the ingestion may be referenced from many future blocks)
991
989
  callbackId?: string; // A callback id that can be used for async requests
992
990
  businessObject?: BusinessObject; // The ingested business object - used for async request callbacks
993
991
 
@@ -1651,17 +1649,15 @@ export interface Field {
1651
1649
  export const FieldValueQL = `
1652
1650
  type FieldValue {
1653
1651
  name: String!
1654
- previousValue: String!
1655
- nextValue: String!
1656
1652
  value: String!
1657
- changed: Boolean!
1653
+ previousValue: String
1654
+ changed: Boolean
1658
1655
  }`;
1659
1656
  export interface FieldValue {
1660
1657
  name: string;
1661
- previousValue: string;
1662
- nextValue: string;
1663
- value: string;
1664
- changed: boolean;
1658
+ value?: string;
1659
+ previousValue?: string;
1660
+ changed?: boolean;
1665
1661
  }
1666
1662
 
1667
1663
  export const TableMetadataQL = `
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.4.0",
4
+ "version": "4.4.2",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",