@bigfootai/bigfoot-types 5.1.23 → 5.1.25

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 +4 -1
  2. package/model.ts +9 -2
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -509,7 +509,10 @@ class History extends Primitive {
509
509
  super();
510
510
  this.before = before;
511
511
  this.after = after;
512
- this.blockType = before.blockType;
512
+ this.referenceBlock = {
513
+ id: before._id,
514
+ blockType: before.blockType,
515
+ };
513
516
  }
514
517
  }
515
518
  exports.History = History;
package/model.ts CHANGED
@@ -717,8 +717,12 @@ export class Metadata extends Primitive {
717
717
  }
718
718
  }
719
719
 
720
+ export interface ProcessBlockChangeHistoryRequest {
721
+ historyId: string;
722
+ }
723
+
720
724
  export class History extends Primitive {
721
- blockType: BlockType;
725
+ referenceBlock: ReferenceBlock;
722
726
  before: Block;
723
727
  after: Block;
724
728
 
@@ -728,7 +732,10 @@ export class History extends Primitive {
728
732
  this.before = before;
729
733
  this.after = after;
730
734
 
731
- this.blockType = before.blockType;
735
+ this.referenceBlock = {
736
+ id: before._id,
737
+ blockType: before.blockType,
738
+ };
732
739
  }
733
740
  }
734
741
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "5.1.23",
4
+ "version": "5.1.25",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",