biz9-logic 4.8.105 → 4.8.107

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 +20 -7
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='5.8.5'
1
+ VERSION='5.8.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -624,11 +624,13 @@ class FieldType {
624
624
  static STAT_VIEW_ID='1';
625
625
  static STAT_LIKE_ID='2';
626
626
  static STAT_POST_ID='3';
627
+
627
628
  static KEY_ADMIN="key_admin";
628
- static KEY_USER="key_user";
629
+ static KEY_APP_ID="key_app_id";
629
630
  static KEY_BUSINESS="key_business";
630
631
  static KEY_GUEST="key_guest";
631
- static KEY_APP_ID="key_app_id";
632
+ static KEY_ORDER="key_order";
633
+ static KEY_USER="key_user";
632
634
  }
633
635
  class Social {
634
636
  static FACEBOOK_URL="https://facebook.com/";
@@ -1036,23 +1038,23 @@ class FAQ_Url {
1036
1038
  };
1037
1039
  }
1038
1040
  class Order_Url {
1039
- static single-stripe-checkout = (biz9_config,data_type,key,params) => {
1041
+ static single_stripe_checkout = (biz9_config,data_type,key,params) => {
1040
1042
  let action_url="order/single-stripe-checkout/"+data_type+"/"+key;
1041
1043
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1042
1044
  };
1043
- static user-stripe-checkout = (biz9_config,user_id,params) => {
1045
+ static user_stripe_checkout = (biz9_config,user_id,params) => {
1044
1046
  let action_url="order/cart-stripe-checkout/"+user_id;
1045
1047
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1046
1048
  };
1047
- static checkout-success = (biz9_config,order_id,params) => {
1049
+ static checkout_success = (biz9_config,order_id,params) => {
1048
1050
  let action_url="order/cart-stripe-checkout/"+order_id;
1049
1051
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1050
1052
  };
1051
- static user-cart = (biz9_config,user_id,params) => {
1053
+ static user_cart = (biz9_config,user_id,params) => {
1052
1054
  let action_url="order/user-cart/"+order_id;
1053
1055
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1054
1056
  };
1055
- static cart-update = (biz9_config,user_id,data_type,id,params) => {
1057
+ static cart_update = (biz9_config,user_id,data_type,id,params) => {
1056
1058
  let action_url="order/cart-update/"+user_id+"/"+data_type+"/"+id;
1057
1059
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1058
1060
  };
@@ -1075,6 +1077,16 @@ class Product_Url {
1075
1077
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1076
1078
  };
1077
1079
  }
1080
+ class Review_Url {
1081
+ static update = (biz9_config,parent_data_type,parent_id,user_id,params) => {
1082
+ let action_url="review/"+parent_data_type+"/"+parent_id+"/"+user_id;
1083
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1084
+ };
1085
+ static search = (biz9_config,parent_data_type,parent_id,params) => {
1086
+ let action_url="review/"+parent_data_type+"/"+parent_id;
1087
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
1088
+ };
1089
+ }
1078
1090
  class Event_Url {
1079
1091
  static get = (biz9_config,key,params) => {
1080
1092
  let action_url="event/get/"+key;
@@ -1719,6 +1731,7 @@ module.exports = {
1719
1731
  Product_Logic,
1720
1732
  Review_Logic,
1721
1733
  Review_Url,
1734
+ Order_Url,
1722
1735
  Service_Logic,
1723
1736
  Service_Url,
1724
1737
  Social,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.105",
3
+ "version": "4.8.107",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"