@imbricate/core 3.24.2 → 3.24.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.
- package/document/definition.d.ts +5 -5
- package/origin/export.d.ts +1 -0
- package/origin/export.js +1 -0
- package/package.json +1 -1
package/document/definition.d.ts
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ImbricateAuthor } from "../author/definition";
|
|
7
7
|
import { ImbricatePropertyKey } from "../property/definition";
|
|
8
|
-
import {
|
|
9
|
-
import { IMBRICATE_PROPERTY_TYPE } from "../property/type";
|
|
8
|
+
import { IMBRICATE_PROPERTY_TYPE, ImbricatePropertyValueObject } from "../property/type";
|
|
10
9
|
/**
|
|
11
10
|
* Edit record type of the document
|
|
12
11
|
*/
|
|
@@ -16,9 +15,10 @@ export declare enum IMBRICATE_DOCUMENT_EDIT_TYPE {
|
|
|
16
15
|
DELETE_ANNOTATION = "DELETE_ANNOTATION",
|
|
17
16
|
RESOLVE_CONFLICT = "RESOLVE_CONFLICT"
|
|
18
17
|
}
|
|
19
|
-
export type DocumentEditOperationValuePutProperty = {
|
|
18
|
+
export type DocumentEditOperationValuePutProperty<T extends IMBRICATE_PROPERTY_TYPE> = {
|
|
20
19
|
readonly key: ImbricatePropertyKey;
|
|
21
|
-
readonly
|
|
20
|
+
readonly type: T;
|
|
21
|
+
readonly value: ImbricatePropertyValueObject<T>;
|
|
22
22
|
};
|
|
23
23
|
export type DocumentEditOperationPutAnnotation = {
|
|
24
24
|
readonly annotationNamespace: string;
|
|
@@ -32,7 +32,7 @@ export type DocumentEditOperationDeleteAnnotation = {
|
|
|
32
32
|
export type DocumentEditOperationResolveConflict = {
|
|
33
33
|
readonly conflictedEditRecords: string[];
|
|
34
34
|
};
|
|
35
|
-
export type DocumentEditOperationValue<T extends IMBRICATE_DOCUMENT_EDIT_TYPE> = T extends IMBRICATE_DOCUMENT_EDIT_TYPE.PUT_PROPERTY ? DocumentEditOperationValuePutProperty : T extends IMBRICATE_DOCUMENT_EDIT_TYPE.PUT_ANNOTATION ? DocumentEditOperationPutAnnotation : T extends IMBRICATE_DOCUMENT_EDIT_TYPE.DELETE_ANNOTATION ? DocumentEditOperationDeleteAnnotation : T extends IMBRICATE_DOCUMENT_EDIT_TYPE.RESOLVE_CONFLICT ? DocumentEditOperationResolveConflict : never;
|
|
35
|
+
export type DocumentEditOperationValue<T extends IMBRICATE_DOCUMENT_EDIT_TYPE> = T extends IMBRICATE_DOCUMENT_EDIT_TYPE.PUT_PROPERTY ? DocumentEditOperationValuePutProperty<IMBRICATE_PROPERTY_TYPE> : T extends IMBRICATE_DOCUMENT_EDIT_TYPE.PUT_ANNOTATION ? DocumentEditOperationPutAnnotation : T extends IMBRICATE_DOCUMENT_EDIT_TYPE.DELETE_ANNOTATION ? DocumentEditOperationDeleteAnnotation : T extends IMBRICATE_DOCUMENT_EDIT_TYPE.RESOLVE_CONFLICT ? DocumentEditOperationResolveConflict : never;
|
|
36
36
|
export type DocumentEditOperation<T extends IMBRICATE_DOCUMENT_EDIT_TYPE> = {
|
|
37
37
|
readonly action: T;
|
|
38
38
|
readonly value: DocumentEditOperationValue<T>;
|
package/origin/export.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./base-class/exclude-static";
|
|
|
8
8
|
export * from "./base-class/full-feature";
|
|
9
9
|
export * from "./base-class/full-feature-with-action";
|
|
10
10
|
export * from "./definition";
|
|
11
|
+
export * from "./feature";
|
|
11
12
|
export * from "./interface";
|
|
12
13
|
export * from "./outcome";
|
|
13
14
|
export * from "./search";
|
package/origin/export.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./base-class/exclude-static"), exports);
|
|
|
24
24
|
__exportStar(require("./base-class/full-feature"), exports);
|
|
25
25
|
__exportStar(require("./base-class/full-feature-with-action"), exports);
|
|
26
26
|
__exportStar(require("./definition"), exports);
|
|
27
|
+
__exportStar(require("./feature"), exports);
|
|
27
28
|
__exportStar(require("./interface"), exports);
|
|
28
29
|
__exportStar(require("./outcome"), exports);
|
|
29
30
|
__exportStar(require("./search"), exports);
|