biz9-logic 4.6.5 → 4.6.7

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.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -608,6 +608,50 @@ class Product_Url {
608
608
  let action_url="product/get/"+title_url;
609
609
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
610
610
  };
611
+ static get_page = (biz9_config,params) => {
612
+ let action_url="product/get_page";
613
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
614
+ };
615
+ }
616
+ class Service_Url {
617
+ static get = (biz9_config,title_url,params) => {
618
+ let action_url="service/get/"+title_url;
619
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
620
+ };
621
+ static get_page = (biz9_config,params) => {
622
+ let action_url="service/get_page";
623
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
624
+ };
625
+ }
626
+ class Gallery_Url {
627
+ static get = (biz9_config,title_url,params) => {
628
+ let action_url="gallery/get/"+title_url;
629
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
630
+ };
631
+ static get_page = (biz9_config,params) => {
632
+ let action_url="gallery/get_page";
633
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
634
+ };
635
+ }
636
+ class Blog_Post_Url {
637
+ static get = (biz9_config,title_url,params) => {
638
+ let action_url="blog_post/get/"+title_url;
639
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
640
+ };
641
+ static get_page = (biz9_config,params) => {
642
+ let action_url="blog_post/get_page";
643
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
644
+ };
645
+ }
646
+ class Category_Url {
647
+ static get_list = (biz9_config,type,params) => {
648
+ let action_url="category/get_list/"+type;
649
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
650
+ };
651
+ static get_page = (biz9_config,params) => {
652
+ let action_url="category/get_page";
653
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
654
+ };
611
655
  }
612
656
  class BiZ_Url {
613
657
  static get_item = (biz9_config,data_type,id,params) => {
@@ -1098,14 +1142,16 @@ module.exports = {
1098
1142
  BiZ_Url,
1099
1143
  Business_Logic,
1100
1144
  Blog_Post_Logic,
1145
+ Blog_Post_Url,
1101
1146
  Category_Logic,
1147
+ Category_Url,
1102
1148
  CMS,
1103
1149
  DataItem,
1104
1150
  DataType,
1105
1151
  Field,
1106
1152
  FieldType,
1107
1153
  Faq_Logic,
1108
- Social,
1154
+ Gallery_Url,
1109
1155
  Event_Logic,
1110
1156
  Message,
1111
1157
  Obj,
@@ -1118,6 +1164,8 @@ module.exports = {
1118
1164
  Template_Logic,
1119
1165
  Url,
1120
1166
  Service_Logic,
1167
+ Service_Url,
1168
+ Social,
1121
1169
  Sub_Item,
1122
1170
  Storage,
1123
1171
  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.7",
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_page(biz9_config);
39
40
  Log.w('connect_url',cloud_url);
40
41
  console.log('GET-URL-SUCCESS');
41
42
  //call()