@imbricate/core 3.9.0 → 3.10.0

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.
@@ -67,6 +67,8 @@ export type DatabaseEditOperation<T extends IMBRICATE_DATABASE_EDIT_TYPE> = {
67
67
  export type DatabaseEditRecord = {
68
68
  readonly uniqueIdentifier: string;
69
69
  readonly editAt: Date;
70
+ readonly beforeVersion: string;
71
+ readonly afterVersion: string;
70
72
  readonly operations: Array<DatabaseEditOperation<IMBRICATE_DATABASE_EDIT_TYPE>>;
71
73
  readonly author?: ImbricateAuthor;
72
74
  };
@@ -16,6 +16,10 @@ export interface IImbricateDatabase {
16
16
  * Name of the database
17
17
  */
18
18
  readonly databaseName: string;
19
+ /**
20
+ * Version of the database draft
21
+ */
22
+ readonly databaseVersion: number;
19
23
  /**
20
24
  * Schema of the database
21
25
  */
@@ -34,6 +34,8 @@ export type DocumentEditOperation<T extends IMBRICATE_DOCUMENT_EDIT_TYPE> = {
34
34
  export type DocumentEditRecord = {
35
35
  readonly uniqueIdentifier: string;
36
36
  readonly editAt: Date;
37
+ readonly beforeVersion: string;
38
+ readonly afterVersion: string;
37
39
  readonly operations: Array<DocumentEditOperation<IMBRICATE_DOCUMENT_EDIT_TYPE>>;
38
40
  readonly author?: ImbricateAuthor;
39
41
  };
@@ -10,6 +10,10 @@ export interface IImbricateDocument {
10
10
  * Unique identifier of the database
11
11
  */
12
12
  readonly uniqueIdentifier: string;
13
+ /**
14
+ * Version of the document draft
15
+ */
16
+ readonly documentVersion: number;
13
17
  /**
14
18
  * Properties of the document
15
19
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imbricate/core",
3
3
  "main": "index.js",
4
- "version": "3.9.0",
4
+ "version": "3.10.0",
5
5
  "description": "Imbricate Core, Notebook for Engineers",
6
6
  "repository": {
7
7
  "type": "git",