@imbricate/core 3.6.0 → 3.6.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.
package/database/definition.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export type DatabaseEditOperation = {
|
|
|
28
28
|
export type DatabaseEditRecord = {
|
|
29
29
|
readonly uniqueIdentifier: string;
|
|
30
30
|
readonly editAt: Date;
|
|
31
|
-
readonly author: ImbricateAuthor;
|
|
32
31
|
readonly operations: DatabaseEditOperation[];
|
|
32
|
+
readonly author?: ImbricateAuthor;
|
|
33
33
|
};
|
|
34
34
|
export type ImbricateDatabaseAuditOptions = {
|
|
35
35
|
/**
|
package/database/interface.d.ts
CHANGED
|
@@ -27,11 +27,11 @@ export interface IImbricateDatabase {
|
|
|
27
27
|
* @param schema schema of the database
|
|
28
28
|
* @param auditOptions audit options of the database
|
|
29
29
|
*
|
|
30
|
-
* @returns a promise of the
|
|
30
|
+
* @returns a promise of the edit records of the database
|
|
31
31
|
* Note: if the origin supports Document Edit Record, the edit record will be added by default
|
|
32
32
|
* If you do not want to add the edit record, set `noEditRecord` to true
|
|
33
33
|
*/
|
|
34
|
-
putSchema(schema: ImbricateDatabaseSchema, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<
|
|
34
|
+
putSchema(schema: ImbricateDatabaseSchema, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<DatabaseEditRecord[]>;
|
|
35
35
|
/**
|
|
36
36
|
* Create a new document in the database
|
|
37
37
|
* If origin supports Document Edit Record, the edit record will be added by default
|
package/document/definition.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export type DocumentEditOperation = {
|
|
|
13
13
|
export type DocumentEditRecord = {
|
|
14
14
|
readonly uniqueIdentifier: string;
|
|
15
15
|
readonly editAt: Date;
|
|
16
|
-
readonly author: ImbricateAuthor;
|
|
17
16
|
readonly operations: DocumentEditOperation[];
|
|
17
|
+
readonly author?: ImbricateAuthor;
|
|
18
18
|
};
|
|
19
19
|
export type ImbricateDocumentAuditOptions = {
|
|
20
20
|
/**
|