biz9-logic 4.8.176 → 4.8.178

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +10 -8
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='6.5.6'
1
+ VERSION='6.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
@@ -787,6 +787,10 @@ class FieldType {
787
787
  static KEY_ORDER="key_order";
788
788
  static KEY_USER="key_user";
789
789
 
790
+ static USER_TYPE_ADMIN="user_admin";
791
+ static USER_TYPE_MEMBER="user_member";
792
+ static USER_TYPE_CUSTOMER="user_customer";
793
+
790
794
  static ORDER_NUMBER="OR-";
791
795
  static CART_NUMBER="CA-";
792
796
  static TRANSACTION_ID="TR-";
@@ -1489,6 +1493,12 @@ class Favorite_Url {
1489
1493
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1490
1494
  };
1491
1495
  }
1496
+ class Item_Url {
1497
+ static update_cms_item = (biz9_config,data_type,id,params) => {
1498
+ let action_url = "main/item/update_cms_item/"+data_type+"/"+id;
1499
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1500
+ };
1501
+ }
1492
1502
  class Faq_Url {
1493
1503
  static get = (biz9_config,key,params) => {
1494
1504
  let action_url="faq/get/"+key;
@@ -1569,18 +1579,10 @@ class Url{
1569
1579
  let action_url = "main/crud/update/"+data_type + "/" + id;
1570
1580
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1571
1581
  };
1572
- static update_delete_cache = (biz9_config,data_type,id,params) => {
1573
- let action_url = "main/crud/update_delete_cache/"+data_type + "/" + id;
1574
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1575
- };
1576
1582
  static update_list = (biz9_config,data_type,params) => {
1577
1583
  let action_url = "main/crud/update_list/"+data_type;
1578
1584
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1579
1585
  };
1580
- static update_cms_item = (biz9_config,data_type,id,params) => {
1581
- let action_url = "main/crud/update_cms_item/"+data_type+"/"+id;
1582
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1583
- };
1584
1586
  }
1585
1587
  class Category_Logic {
1586
1588
  static get_test = (title,option) =>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.176",
3
+ "version": "4.8.178",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"