biz9-logic 3.0.4 → 3.0.6
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/biz9_config +1 -1
- package/index.js +8 -1
- package/package.json +1 -1
- package/test.js +6 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -5,6 +5,12 @@ License GNU General Public License v3.0
|
|
|
5
5
|
Description: BiZ9 Framework: Logic-JS
|
|
6
6
|
*/
|
|
7
7
|
const { get_new_item_main,get_data_config_main,get_cloud_url_main,get_biz_item_main,get_cloud_filter_obj_main,get_title_url_main } = require('./main');
|
|
8
|
+
|
|
9
|
+
class DataType {
|
|
10
|
+
static DT_BLANK='blank_biz';
|
|
11
|
+
static DT_BLOG_POST='blog_post_biz';
|
|
12
|
+
static DT_SERVICE='service_biz';
|
|
13
|
+
}
|
|
8
14
|
class Logic {
|
|
9
15
|
static get_new_item = (data_type,id) => {
|
|
10
16
|
return get_new_item_main(data_type,id);
|
|
@@ -48,5 +54,6 @@ class Logic {
|
|
|
48
54
|
}
|
|
49
55
|
};
|
|
50
56
|
module.exports = {
|
|
51
|
-
Logic
|
|
57
|
+
Logic,
|
|
58
|
+
DataType
|
|
52
59
|
};
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const series = require('async-series');
|
|
3
|
-
const {Logic} = require('./');
|
|
3
|
+
const {Logic,DataType} = require('./');
|
|
4
4
|
const {Log,Test} = require('biz9-utility');
|
|
5
5
|
const { Scriptz }= require('biz9-scriptz');
|
|
6
6
|
|
|
@@ -34,6 +34,11 @@ describe("connect", () => {
|
|
|
34
34
|
Log.w('APP_TITLE_ID',biz9_config.APP_TITLE_ID);
|
|
35
35
|
Log.w('APP_TITLE',biz9_config.TITLE);
|
|
36
36
|
Log.w('URL',biz9_config.URL);
|
|
37
|
+
console.log('----------------------');
|
|
38
|
+
Log.w('DATA_TYPE',DataType.DT_BLANK);
|
|
39
|
+
Log.w('BLOG_POST',DataType.DT_BLOG_POST);
|
|
40
|
+
Log.w('SERVICE',DataType.DT_SERVICE);
|
|
41
|
+
console.log('----------------------');
|
|
37
42
|
console.log('GET-BIZ9-CONFIG-FILE-SUCCESS');
|
|
38
43
|
call()
|
|
39
44
|
},
|