@scx-js/scx-app-x 0.0.2 → 0.0.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.
- package/index.js +6 -0
- package/package.json +1 -1
- package/scx_crud/BatchDeleteResult.js +12 -0
- package/scx_crud/CRUDListParam.js +16 -0
- package/scx_crud/CRUDUpdateParam.js +16 -0
- package/scx_crud/CheckUniqueResult.js +11 -0
- package/scx_crud/ListResult.js +17 -0
- package/scx_crud/ScxCrud.js +0 -63
package/index.js
CHANGED
@@ -2,3 +2,9 @@ export * from "./scx_fss/FSSHelper.js";
|
|
2
2
|
export * from "./scx_fss/FSSObject.js";
|
3
3
|
export * from "./scx_fss/JoinImageURLOptions.js";
|
4
4
|
export * from "./scx_fss/ScxFSS.js";
|
5
|
+
export * from "./scx_crud/BatchDeleteResult.js";
|
6
|
+
export * from "./scx_crud/CheckUniqueResult.js";
|
7
|
+
export * from "./scx_crud/CRUDListParam.js";
|
8
|
+
export * from "./scx_crud/CRUDUpdateParam.js";
|
9
|
+
export * from "./scx_crud/ListResult.js";
|
10
|
+
export * from "./scx_crud/ScxCrud.js";
|
package/package.json
CHANGED
package/scx_crud/ScxCrud.js
CHANGED
@@ -2,64 +2,6 @@ import {QUERY_SERIALIZER} from "@scx-js/scx-data/query/serializer/QuerySerialize
|
|
2
2
|
import {FIELD_FILTER_SERIALIZER} from "@scx-js/scx-data/field_filter/serializer/FieldFilterSerializer.js";
|
3
3
|
|
4
4
|
|
5
|
-
class CRUDListParam {
|
6
|
-
|
7
|
-
/**
|
8
|
-
* @type {Query}
|
9
|
-
*/
|
10
|
-
query;
|
11
|
-
|
12
|
-
fieldFilter;
|
13
|
-
|
14
|
-
extParams;
|
15
|
-
|
16
|
-
}
|
17
|
-
|
18
|
-
class CRUDUpdateParam {
|
19
|
-
|
20
|
-
/**
|
21
|
-
* @type {Object}
|
22
|
-
*/
|
23
|
-
updateModel;
|
24
|
-
|
25
|
-
/**
|
26
|
-
* @type {String[]}
|
27
|
-
*/
|
28
|
-
needUpdateFieldNames;
|
29
|
-
|
30
|
-
}
|
31
|
-
|
32
|
-
class ListResult {
|
33
|
-
|
34
|
-
/**
|
35
|
-
* @type {Object[]}
|
36
|
-
*/
|
37
|
-
items;
|
38
|
-
|
39
|
-
/**
|
40
|
-
* @type {Number}
|
41
|
-
*/
|
42
|
-
total;
|
43
|
-
|
44
|
-
}
|
45
|
-
|
46
|
-
class BatchDeleteResult {
|
47
|
-
|
48
|
-
/**
|
49
|
-
* @type {Number}
|
50
|
-
*/
|
51
|
-
deletedCount;
|
52
|
-
|
53
|
-
}
|
54
|
-
|
55
|
-
class CheckUniqueResult {
|
56
|
-
|
57
|
-
/**
|
58
|
-
* @type {Boolean}
|
59
|
-
*/
|
60
|
-
isUnique;
|
61
|
-
}
|
62
|
-
|
63
5
|
class ScxCrud {
|
64
6
|
|
65
7
|
/**
|
@@ -170,10 +112,5 @@ function serializeCRUDListParam(crudListParam) {
|
|
170
112
|
|
171
113
|
export {
|
172
114
|
ScxCrud,
|
173
|
-
CRUDListParam,
|
174
|
-
CRUDUpdateParam,
|
175
|
-
ListResult,
|
176
|
-
BatchDeleteResult,
|
177
|
-
CheckUniqueResult,
|
178
115
|
serializeCRUDListParam,
|
179
116
|
};
|