@bigfootai/bigfoot-types 4.2.1 → 4.2.3

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 -5
  2. package/model.ts +15 -9
  3. package/package.json +1 -1
package/model.js CHANGED
@@ -576,15 +576,16 @@ class Block extends SharedPrimitive {
576
576
  }
577
577
  exports.Block = Block;
578
578
  class BlockProcessingRequest {
579
- constructor(block) {
580
- this.block = block;
579
+ constructor(historyId, referenceBlock) {
580
+ this.referenceBlock = referenceBlock;
581
581
  }
582
582
  }
583
583
  exports.BlockProcessingRequest = BlockProcessingRequest;
584
584
  class BlockProcessingResponse {
585
- constructor(block, article) {
586
- this.block = block;
587
- this.article = article;
585
+ constructor(historyId, referenceBlock, articleId) {
586
+ this.articleId = articleId;
587
+ this.historyId = historyId;
588
+ this.referenceBlock = referenceBlock;
588
589
  }
589
590
  }
590
591
  exports.BlockProcessingResponse = BlockProcessingResponse;
package/model.ts CHANGED
@@ -884,21 +884,27 @@ export class Block extends SharedPrimitive {
884
884
  }
885
885
 
886
886
  export class BlockProcessingRequest {
887
- block: Block;
888
- credential?: Credential;
887
+ historyId: string;
888
+ referenceBlock: ReferenceBlock;
889
889
 
890
- constructor(block: Block) {
891
- this.block = block;
890
+ constructor(historyId: string, referenceBlock: ReferenceBlock) {
891
+ this.referenceBlock = referenceBlock;
892
892
  }
893
893
  }
894
894
 
895
895
  export class BlockProcessingResponse {
896
- block: Block;
897
- article: Article;
896
+ articleId: string;
897
+ historyId: string;
898
+ referenceBlock: ReferenceBlock;
898
899
 
899
- constructor(block: Block, article: Article) {
900
- this.block = block;
901
- this.article = article;
900
+ constructor(
901
+ historyId: string,
902
+ referenceBlock: ReferenceBlock,
903
+ articleId: string
904
+ ) {
905
+ this.articleId = articleId;
906
+ this.historyId = historyId;
907
+ this.referenceBlock = referenceBlock;
902
908
  }
903
909
  }
904
910
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Bigfoot",
3
3
  "name": "@bigfootai/bigfoot-types",
4
- "version": "4.2.1",
4
+ "version": "4.2.3",
5
5
  "description": "The internal library for the types used in the Bigfoot platform",
6
6
  "main": "model.js",
7
7
  "license": "ISC",