@bigfootai/bigfoot-types 2.11.3 → 2.11.4

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 +12 -8
  2. package/model.ts +14 -14
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Website = exports.Thread = exports.Todo = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.Note = exports.BusinessObject = exports.BusinessObjectArticle = exports.Block = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = exports.RelationType = exports.EntityType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
3
+ exports.Table = exports.FieldVariation = exports.FieldType = exports.Template = exports.Website = exports.Thread = exports.Todo = exports.Event = exports.Calendar = exports.ResponseStatus = exports.EventStatus = exports.Conference = exports.Task = exports.Note = exports.BusinessObject = exports.BlockProcessingResponse = exports.BlockProcessingRequest = exports.Block = exports.Article = exports.Person = exports.Domain = exports.Tenant = exports.Tag = exports.Provider = exports.Sync = exports.Primitive = exports.RelationType = exports.EntityType = exports.ProcessingStage = exports.MutationType = exports.MarkType = exports.DocumentType = exports.RecurrenceRFC = exports.InviteStatus = exports.SharingApproach = exports.StepStatus = exports.TaskStatus = exports.SharingLevel = exports.ClientType = exports.TagType = exports.BlockType = void 0;
4
4
  const uuid_1 = require("uuid");
5
5
  /*
6
6
  These are the core primitives of our model. These represent the entities that show
@@ -259,15 +259,19 @@ class Block extends Primitive {
259
259
  }
260
260
  }
261
261
  exports.Block = Block;
262
- class BusinessObjectArticle extends Article {
263
- constructor(referenceBlock) {
264
- super(referenceBlock);
265
- this.processingStage = ProcessingStage.NotProcessed;
266
- this.processingAttempts = 0;
267
- this.dateProcessed = 0;
262
+ class BlockProcessingRequest {
263
+ constructor(block) {
264
+ this.block = block;
265
+ }
266
+ }
267
+ exports.BlockProcessingRequest = BlockProcessingRequest;
268
+ class BlockProcessingResponse {
269
+ constructor(block, article) {
270
+ this.block = block;
271
+ this.article = article;
268
272
  }
269
273
  }
270
- exports.BusinessObjectArticle = BusinessObjectArticle;
274
+ exports.BlockProcessingResponse = BlockProcessingResponse;
271
275
  class BusinessObject extends Block {
272
276
  constructor(tenantIdCreated, editors, sharingTags, version, blockType, provider, application, uri, externalId) {
273
277
  super(tenantIdCreated, editors, sharingTags, version, blockType);
package/model.ts CHANGED
@@ -463,7 +463,6 @@ export class Person extends Tag {
463
463
 
464
464
  export class Article extends Primitive {
465
465
  referenceBlock: ReferenceBlock;
466
- document?: any;
467
466
  changes?: Changes;
468
467
  embedding?: any;
469
468
  text?: string;
@@ -516,21 +515,22 @@ export class Block extends Primitive {
516
515
  }
517
516
  }
518
517
 
519
- export class BusinessObjectArticle extends Article {
520
- processingStage: ProcessingStage; // Indicates if the business object has been processed yet
521
- processingAttempts: number; // Indicates the number of attempts made to process this business object
522
- dateProcessed: number; // The date this document was last processed
523
- processingReason?: string; // The reason the processing is at this stage
524
- externalResponse?: any; // The full response from the external system that created this object
525
- iconUrl?: string | null; // The url of an icon that represents the business object
526
- parentId?: string | null; // The business object that is the parent of this business object
518
+ export class BlockProcessingRequest {
519
+ block: Block;
520
+ credential?: Credential;
527
521
 
528
- constructor(referenceBlock: ReferenceBlock) {
529
- super(referenceBlock);
522
+ constructor(block: Block) {
523
+ this.block = block;
524
+ }
525
+ }
530
526
 
531
- this.processingStage = ProcessingStage.NotProcessed;
532
- this.processingAttempts = 0;
533
- this.dateProcessed = 0;
527
+ export class BlockProcessingResponse {
528
+ block: Block;
529
+ article: Article;
530
+
531
+ constructor(block: Block, article: Article) {
532
+ this.block = block;
533
+ this.article = article;
534
534
  }
535
535
  }
536
536
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "2.11.3",
4
+ "version": "2.11.4",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",