biz9-logic 4.0.48 → 4.0.52

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='4.4.8'
1
+ VERSION='4.5.2'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -622,6 +622,10 @@ class BiZ_Url {
622
622
  let action_url= "main/biz_item/get_template/"+title_url;
623
623
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
624
624
  };
625
+ static get_custom_field=(biz9_config,data_type,id)=>{
626
+ let action_url="main/biz_item/get_custom_field/"+data_type+"/"+id;
627
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
628
+ };
625
629
  }
626
630
  class Url{
627
631
  static get = (biz9_config,action_url,params)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.0.48",
3
+ "version": "4.0.52",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -28,6 +28,17 @@ const biz9_config ={
28
28
  describe("connect", () => {
29
29
  it("_connect", () => {
30
30
  series([
31
+ function(call) {
32
+ console.log('GET-URL-START');
33
+ let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});
34
+ //let action_url = 'test_get_url';
35
+ //let params = '&myparam1=p1&myparam2=p2'
36
+ let data_type = DataType.PRODUCT;
37
+ let cloud_url = BiZ_Url.get_custom_field(biz9_config,data_type);
38
+ Log.w('connect_url',cloud_url);
39
+ console.log('GET-URL-SUCCESS');
40
+ //call()
41
+ },
31
42
 
32
43
  function(call) {
33
44
  console.log('CONNECT-START');
@@ -115,7 +126,7 @@ describe("connect", () => {
115
126
 
116
127
  /* --FAQ--START */
117
128
  //Log.w("FAQ",Faq.get_test());
118
- Log.w("FAQ List",Faq.get_test_list());
129
+ //Log.w("FAQ List",Faq.get_test_list());
119
130
  /*
120
131
  let review_list = Review.get_test_list({review_count:3,get_item:true})
121
132
  Log.w("Review List",review_list);
@@ -318,16 +329,6 @@ describe("connect", () => {
318
329
  console.log('GET-BIZ9-CONFIG-FILE-SUCCESS');
319
330
  call()
320
331
  },
321
- function(call) {
322
- console.log('GET-URL-START');
323
- let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});
324
- let action_url = 'test_get_url';
325
- let params = '&myparam1=p1&myparam2=p2'
326
- let cloud_url = Url.get(biz9_config,action_url,params);
327
- Log.w('connect_url',cloud_url);
328
- console.log('GET-URL-SUCCESS');
329
- call()
330
- },
331
332
  function(call) {
332
333
  console.log('GET_URL-UPDATE-ITEM-START');
333
334
  let biz9_config = Scriptz.get_biz9_config({biz9_config_file:path.resolve('../../biz9_config')});