biz9-logic 3.5.6 → 3.5.8

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.6'
1
+ VERSION='3.5.8'
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,19 @@ 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
+
158
+ parent_id:item.parent_id ? item.parent_id : 0,
159
+ parent_data_type:item.parent_data_type ? item.parent_data_type : DataType.DT_BLANK,
160
+
161
+ top_id:item.top_id ? item.top_id : 0,
162
+ top_data_type:item.top_data_type ? item.top_data_type : DataType.DT_BLANK
163
+ }
164
+ };
165
+
153
166
  static get_new_query_item = (item,parent_item,top_item) => {
154
167
  return {
155
168
  id: item.id ? item.id : 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.5.6",
3
+ "version": "3.5.8",
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')});