biz9-logic 3.2.23 → 3.5.7

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 CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='3.5.0'
1
+ VERSION='3.5.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -150,6 +150,18 @@ class CMS {
150
150
  static Tab_Edit_Title_Setting = 'setting';
151
151
  static Tab_Edit_Title_Note = 'note';
152
152
 
153
+ static get_new_query_item_by_item = (item) => {
154
+ return {
155
+ id: item.id ? item.id : 0,
156
+ data_type:item.data_type ? item.data_type : DataType.DT_BLANK,
157
+ parent_id:item.parent_id ? item.parent_id : 0,
158
+ parent_data_type:item.parent_data_type ? item.parent_data_type : DataType.DT_BLANK,
159
+
160
+ top_id:top_item.id ? top_item.id : 0,
161
+ top_data_type:top_item.data_type ? top_item.data_type : DataType.DT_BLANK
162
+ }
163
+ };
164
+
153
165
  static get_new_query_item = (item,parent_item,top_item) => {
154
166
  return {
155
167
  id: item.id ? item.id : 0,
@@ -225,6 +237,7 @@ class CMS {
225
237
  module.exports = {
226
238
  DataType,
227
239
  DataItem,
240
+ Message,
228
241
  Url,
229
242
  BiZ_Url,
230
243
  Obj,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.2.23",
3
+ "version": "3.5.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const path = require('path');
2
2
  const series = require('async-series');
3
3
  const { DataItem,DataType,Url,Obj,BiZ_Url } = require('./');
4
- const {Log,Test} = require('biz9-utility');
4
+ const {Log,Test,Number} = require('biz9-utility');
5
5
  const { Scriptz }= require('biz9-scriptz');
6
6
 
7
7
  /* --- TEST CONFIG START --- */
@@ -29,6 +29,23 @@ describe("connect", () => {
29
29
  it("_connect", () => {
30
30
  series([
31
31
 
32
+ function(call) {
33
+ console.log('GET-NEW-QUERY-ITEM-BY-ITEM-START');
34
+ let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});
35
+ let item = DataItem.get_new(DataType.DT_BLANK,0);
36
+ item.parent_id = Number.get_id();
37
+ item.parent_data_type = DataType.DT_BLANK;
38
+ item.top_id = Number.get_id();
39
+ item.top_data_type = DataType.DT_BLANK;
40
+ Log.w('item',item);
41
+ //let cloud_url = CMS.get_new_query_item_by_item(item);
42
+ //Log.w('connect_url',cloud_url);
43
+ console.log('GET-NEW-QUERY-ITEM-BY-ITEM-SUCCESS');
44
+ //call()
45
+ },
46
+
47
+
48
+ /*
32
49
  function(call) {
33
50
  console.log('GET-BiZ-Full-Url-Item-Get-Item-START');
34
51
  let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});
@@ -43,7 +60,6 @@ describe("connect", () => {
43
60
  },
44
61
 
45
62
 
46
- /*
47
63
  function(call) {
48
64
  console.log('GET-BiZ-Url-Item-Get-Item-START');
49
65
  let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});