@imbricate/core 3.30.1 → 3.32.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.
- package/common/definition.d.ts +6 -1
- package/common/definition.js +5 -0
- package/database/definition.d.ts +14 -0
- package/database/definition.js +10 -1
- package/package.json +1 -1
package/common/definition.d.ts
CHANGED
|
@@ -5,9 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare enum IMBRICATE_QUERY_COMPARE_CONDITION {
|
|
7
7
|
EQUAL = "EQUAL",
|
|
8
|
-
EXIST = "EXIST"
|
|
8
|
+
EXIST = "EXIST",
|
|
9
|
+
GREATER_THAN = "GREATER_THAN",
|
|
10
|
+
LESS_THAN = "LESS_THAN",
|
|
11
|
+
GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
|
|
12
|
+
LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL"
|
|
9
13
|
}
|
|
10
14
|
export declare enum IMBRICATE_QUERY_ATTRIBUTE {
|
|
15
|
+
KEY = "KEY",
|
|
11
16
|
VALUE = "VALUE"
|
|
12
17
|
}
|
|
13
18
|
export declare enum IMBRICATE_QUERY_PROPERTY_CONDITION_TARGET {
|
package/common/definition.js
CHANGED
|
@@ -10,9 +10,14 @@ var IMBRICATE_QUERY_COMPARE_CONDITION;
|
|
|
10
10
|
(function (IMBRICATE_QUERY_COMPARE_CONDITION) {
|
|
11
11
|
IMBRICATE_QUERY_COMPARE_CONDITION["EQUAL"] = "EQUAL";
|
|
12
12
|
IMBRICATE_QUERY_COMPARE_CONDITION["EXIST"] = "EXIST";
|
|
13
|
+
IMBRICATE_QUERY_COMPARE_CONDITION["GREATER_THAN"] = "GREATER_THAN";
|
|
14
|
+
IMBRICATE_QUERY_COMPARE_CONDITION["LESS_THAN"] = "LESS_THAN";
|
|
15
|
+
IMBRICATE_QUERY_COMPARE_CONDITION["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
|
|
16
|
+
IMBRICATE_QUERY_COMPARE_CONDITION["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
|
|
13
17
|
})(IMBRICATE_QUERY_COMPARE_CONDITION || (exports.IMBRICATE_QUERY_COMPARE_CONDITION = IMBRICATE_QUERY_COMPARE_CONDITION = {}));
|
|
14
18
|
var IMBRICATE_QUERY_ATTRIBUTE;
|
|
15
19
|
(function (IMBRICATE_QUERY_ATTRIBUTE) {
|
|
20
|
+
IMBRICATE_QUERY_ATTRIBUTE["KEY"] = "KEY";
|
|
16
21
|
IMBRICATE_QUERY_ATTRIBUTE["VALUE"] = "VALUE";
|
|
17
22
|
})(IMBRICATE_QUERY_ATTRIBUTE || (exports.IMBRICATE_QUERY_ATTRIBUTE = IMBRICATE_QUERY_ATTRIBUTE = {}));
|
|
18
23
|
var IMBRICATE_QUERY_PROPERTY_CONDITION_TARGET;
|
package/database/definition.d.ts
CHANGED
|
@@ -20,6 +20,19 @@ export type ImbricateDocumentQueryAnnotationFilter = {
|
|
|
20
20
|
readonly condition: IMBRICATE_QUERY_COMPARE_CONDITION;
|
|
21
21
|
readonly value: any;
|
|
22
22
|
};
|
|
23
|
+
export declare enum IMBRICATE_QUERY_SORT_DIRECTION {
|
|
24
|
+
ASCENDING = "ASCENDING",
|
|
25
|
+
DESCENDING = "DESCENDING"
|
|
26
|
+
}
|
|
27
|
+
export declare enum IMBRICATE_QUERY_SORT_TYPE {
|
|
28
|
+
PROPERTY = "PROPERTY"
|
|
29
|
+
}
|
|
30
|
+
export type ImbricateDocumentQuerySortProperty = {
|
|
31
|
+
readonly type: IMBRICATE_QUERY_SORT_TYPE.PROPERTY;
|
|
32
|
+
readonly propertyIdentifier: string;
|
|
33
|
+
readonly direction: IMBRICATE_QUERY_SORT_DIRECTION;
|
|
34
|
+
};
|
|
35
|
+
export type ImbricateDocumentQuerySort = ImbricateDocumentQuerySortProperty;
|
|
23
36
|
/**
|
|
24
37
|
* Query of the document
|
|
25
38
|
*
|
|
@@ -31,6 +44,7 @@ export type ImbricateDocumentQuery = {
|
|
|
31
44
|
readonly skip?: number;
|
|
32
45
|
readonly propertyFilters?: ImbricateDocumentQueryPropertyFilter[];
|
|
33
46
|
readonly annotationFilters?: ImbricateDocumentQueryAnnotationFilter[];
|
|
47
|
+
readonly sorts?: ImbricateDocumentQuerySort[];
|
|
34
48
|
};
|
|
35
49
|
/**
|
|
36
50
|
* Edit record type of the document
|
package/database/definition.js
CHANGED
|
@@ -5,7 +5,16 @@
|
|
|
5
5
|
* @description Definition
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.IMBRICATE_DATABASE_EDIT_TYPE = void 0;
|
|
8
|
+
exports.IMBRICATE_DATABASE_EDIT_TYPE = exports.IMBRICATE_QUERY_SORT_TYPE = exports.IMBRICATE_QUERY_SORT_DIRECTION = void 0;
|
|
9
|
+
var IMBRICATE_QUERY_SORT_DIRECTION;
|
|
10
|
+
(function (IMBRICATE_QUERY_SORT_DIRECTION) {
|
|
11
|
+
IMBRICATE_QUERY_SORT_DIRECTION["ASCENDING"] = "ASCENDING";
|
|
12
|
+
IMBRICATE_QUERY_SORT_DIRECTION["DESCENDING"] = "DESCENDING";
|
|
13
|
+
})(IMBRICATE_QUERY_SORT_DIRECTION || (exports.IMBRICATE_QUERY_SORT_DIRECTION = IMBRICATE_QUERY_SORT_DIRECTION = {}));
|
|
14
|
+
var IMBRICATE_QUERY_SORT_TYPE;
|
|
15
|
+
(function (IMBRICATE_QUERY_SORT_TYPE) {
|
|
16
|
+
IMBRICATE_QUERY_SORT_TYPE["PROPERTY"] = "PROPERTY";
|
|
17
|
+
})(IMBRICATE_QUERY_SORT_TYPE || (exports.IMBRICATE_QUERY_SORT_TYPE = IMBRICATE_QUERY_SORT_TYPE = {}));
|
|
9
18
|
/**
|
|
10
19
|
* Edit record type of the document
|
|
11
20
|
*/
|