biz9-logic 4.6.5 → 4.6.6

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.6.5'
1
+ VERSION='4.6.6'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -609,6 +609,31 @@ class Product_Url {
609
609
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
610
610
  };
611
611
  }
612
+ class Service_Url {
613
+ static get = (biz9_config,title_url,params) => {
614
+ let action_url="service/get/"+title_url;
615
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
616
+ };
617
+ }
618
+ class Gallery_Url {
619
+ static get = (biz9_config,title_url,params) => {
620
+ let action_url="gallery/get/"+title_url;
621
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
622
+ };
623
+ }
624
+ class Blog_Post_Url {
625
+ static get = (biz9_config,title_url,params) => {
626
+ let action_url="blog_post/get/"+title_url;
627
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
628
+ };
629
+ }
630
+ class Category_Url {
631
+ static get_list = (biz9_config,type,params) => {
632
+ let action_url="category/get_list/"+type;
633
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
634
+ };
635
+ }
636
+
612
637
  class BiZ_Url {
613
638
  static get_item = (biz9_config,data_type,id,params) => {
614
639
  let action_url="main/biz_item/get/"+data_type+"/"+id;
@@ -1098,14 +1123,16 @@ module.exports = {
1098
1123
  BiZ_Url,
1099
1124
  Business_Logic,
1100
1125
  Blog_Post_Logic,
1126
+ Blog_Post_Url,
1101
1127
  Category_Logic,
1128
+ Category_Url,
1102
1129
  CMS,
1103
1130
  DataItem,
1104
1131
  DataType,
1105
1132
  Field,
1106
1133
  FieldType,
1107
1134
  Faq_Logic,
1108
- Social,
1135
+ Gallery_Url,
1109
1136
  Event_Logic,
1110
1137
  Message,
1111
1138
  Obj,
@@ -1118,6 +1145,8 @@ module.exports = {
1118
1145
  Template_Logic,
1119
1146
  Url,
1120
1147
  Service_Logic,
1148
+ Service_Url,
1149
+ Social,
1121
1150
  Sub_Item,
1122
1151
  Storage,
1123
1152
  Schedule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.6.5",
3
+ "version": "4.6.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const path = require('path');
2
2
  const series = require('async-series');
3
- const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq} = require('./index');
3
+ const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq,Category_Url} = require('./index');
4
4
  const {Log,Test,Number} = require('biz9-utility');
5
5
  const {Scriptz}= require('biz9-scriptz');
6
6
 
@@ -35,7 +35,8 @@ describe("connect", () => {
35
35
  //let params = '&myparam1=p1&myparam2=p2'
36
36
  let data_type = DataType.PRODUCT;
37
37
  let id = "123";
38
- let cloud_url = BiZ_Url.get_item(biz9_config,data_type,id,"&cool=1");
38
+ //let cloud_url = BiZ_Url.get_item(biz9_config,data_type,id,"&cool=1");
39
+ let cloud_url = Category_Url.get_list(biz9_config,data_type);
39
40
  Log.w('connect_url',cloud_url);
40
41
  console.log('GET-URL-SUCCESS');
41
42
  //call()