biz9-logic 4.5.7 → 4.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='4.5.7'
1
+ VERSION='4.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
@@ -376,10 +376,11 @@ class DataType {
376
376
  static get_item_list = () =>{
377
377
  return [
378
378
  { title:DataType.get_title(DataType.BLOG_POST),type:DataType.BLOG_POST},
379
- { title:DataType.get_title(DataType.SERVICE),type:DataType.SERVICE},
380
- { title:DataType.get_title(DataType.EVENT),type:DataType.EVENT},
381
379
  { title:DataType.get_title(DataType.GALLERY),type:DataType.GALLERY},
380
+ { title:DataType.get_title(DataType.EVENT),type:DataType.EVENT},
381
+ { title:DataType.get_title(DataType.TEAM),type:DataType.TEAM}
382
382
  { title:DataType.get_title(DataType.PRODUCT),type:DataType.PRODUCT}
383
+ { title:DataType.get_title(DataType.SERVICE),type:DataType.SERVICE},
383
384
  ]
384
385
  };
385
386
  static ADMIN='admin_biz';
@@ -741,6 +742,7 @@ class Category_Logic {
741
742
  {data_type:DataType.SERVICE,value:DataType.SERVICE,label:"Services"},
742
743
  {data_type:DataType.PRODUCT,value:DataType.PRODUCT,label:"Product"},
743
744
  {data_type:DataType.TEMPLATE,value:DataType.TEMPLATE,label:"Template"}
745
+ {data_type:DataType.TEAM,value:DataType.TEAM,label:"Team"}
744
746
  ];
745
747
  };
746
748
  static get_title_by_type = (data_type) => {
@@ -772,6 +774,9 @@ class Category_Logic {
772
774
  case DataType.TEMPLATE:
773
775
  return "Template";
774
776
  break;
777
+ case DataType.TEAM:
778
+ return "Team";
779
+ break;
775
780
  case DataType.CONTENT:
776
781
  return "Content";
777
782
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.5.7",
3
+ "version": "4.5.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -34,7 +34,8 @@ describe("connect", () => {
34
34
  //let action_url = 'test_get_url';
35
35
  //let params = '&myparam1=p1&myparam2=p2'
36
36
  let data_type = DataType.PRODUCT;
37
- let cloud_url = BiZ_Url.get_custom_field(biz9_config,data_type);
37
+ let id = "123";
38
+ let cloud_url = BiZ_Url.get_item(biz9_config,data_type,id,"&cool=1");
38
39
  Log.w('connect_url',cloud_url);
39
40
  console.log('GET-URL-SUCCESS');
40
41
  //call()