@scx-js/scx-app-x 0.0.2 → 0.0.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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scx-js/scx-app-x",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "SCX App X",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -8,6 +8,9 @@
8
8
  "url": "https://github.com/scx567888/scx-js.git"
9
9
  },
10
10
  "dependencies": {
11
+ "@scx-js/scx-common": "0.0.4",
12
+ "@scx-js/scx-http": "0.0.4",
13
+ "@scx-js/scx-data": "0.0.4",
11
14
  "spark-md5-es": "^3.0.2"
12
15
  }
13
16
  }
@@ -0,0 +1,12 @@
1
+ class BatchDeleteResult {
2
+
3
+ /**
4
+ * @type {Number}
5
+ */
6
+ deletedCount;
7
+
8
+ }
9
+
10
+ export {
11
+ BatchDeleteResult,
12
+ };
@@ -0,0 +1,16 @@
1
+ class CRUDListParam {
2
+
3
+ /**
4
+ * @type {Query}
5
+ */
6
+ query;
7
+
8
+ fieldFilter;
9
+
10
+ extParams;
11
+
12
+ }
13
+
14
+ export {
15
+ CRUDListParam,
16
+ };
@@ -0,0 +1,16 @@
1
+ class CRUDUpdateParam {
2
+
3
+ /**
4
+ * @type {Object}
5
+ */
6
+ updateModel;
7
+
8
+ /**
9
+ * @type {String[]}
10
+ */
11
+ needUpdateFieldNames;
12
+ }
13
+
14
+ export {
15
+ CRUDUpdateParam,
16
+ };
@@ -0,0 +1,11 @@
1
+ class CheckUniqueResult {
2
+
3
+ /**
4
+ * @type {Boolean}
5
+ */
6
+ isUnique;
7
+ }
8
+
9
+ export {
10
+ CheckUniqueResult,
11
+ };
@@ -0,0 +1,17 @@
1
+ class ListResult {
2
+
3
+ /**
4
+ * @type {Object[]}
5
+ */
6
+ items;
7
+
8
+ /**
9
+ * @type {Number}
10
+ */
11
+ total;
12
+
13
+ }
14
+
15
+ export {
16
+ ListResult,
17
+ };
@@ -1,65 +1,6 @@
1
- import {QUERY_SERIALIZER} from "@scx-js/scx-data/query/serializer/QuerySerializer.js";
2
- import {FIELD_FILTER_SERIALIZER} from "@scx-js/scx-data/field_filter/serializer/FieldFilterSerializer.js";
1
+ import {FIELD_FILTER_SERIALIZER, QUERY_SERIALIZER} from "@scx-js/scx-data";
3
2
 
4
3
 
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
4
  class ScxCrud {
64
5
 
65
6
  /**
@@ -170,10 +111,5 @@ function serializeCRUDListParam(crudListParam) {
170
111
 
171
112
  export {
172
113
  ScxCrud,
173
- CRUDListParam,
174
- CRUDUpdateParam,
175
- ListResult,
176
- BatchDeleteResult,
177
- CheckUniqueResult,
178
114
  serializeCRUDListParam,
179
115
  };