biz9-logic 4.5.6 → 4.5.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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +30 -30
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='4.5.6'
1
+ VERSION='4.5.7'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -19,7 +19,7 @@ class TemplateType {
19
19
  static BODY='body';
20
20
  static FOOTER='footer';
21
21
  }
22
- class Template_Logic{
22
+ class Template_Logic {
23
23
  static get_test = () =>{
24
24
  let template = DataItem.get_new_full_item(
25
25
  DataItem.get_new(DataType.TEMPLATE,Number.get_id()),
@@ -34,7 +34,7 @@ class Template_Logic{
34
34
  return template;
35
35
  };
36
36
  }
37
- class Page_Logic{
37
+ class Page_Logic {
38
38
  static get_test = (option) =>{
39
39
  if(!option){
40
40
  option = {item_count:9,page_count:9,get_value:false,get_item:false,value_count:20};
@@ -56,7 +56,7 @@ class Page_Logic{
56
56
  return page;
57
57
  };
58
58
  }
59
- class Product_Logic{
59
+ class Product_Logic {
60
60
  static get_test = (option) =>{
61
61
  if(!option){
62
62
  option = {item_count:9,product_count:9,get_value:false,get_item:false,value_count:20};
@@ -118,7 +118,7 @@ class Product_Logic{
118
118
  return [category_list,product_list]
119
119
  };
120
120
  }
121
- class Service_Logic{
121
+ class Service_Logic {
122
122
  static get_test = (option) =>{
123
123
  if(!option){
124
124
  option = {item_count:10,get_value:false,get_item:false,value_count:20};
@@ -184,7 +184,7 @@ class Service_Logic{
184
184
  return [category_list,service_list]
185
185
  };
186
186
  }
187
- class Event_Logic{
187
+ class Event_Logic {
188
188
  static get_test = (option) =>{
189
189
  if(!option){
190
190
  option = {item_count:9,get_value:false,get_item:false,value_count:20};
@@ -253,7 +253,7 @@ class Event_Logic{
253
253
  return [category_list,event_list]
254
254
  };
255
255
  }
256
- class Field{
256
+ class Field {
257
257
  static get_test = (title,option) =>{
258
258
  if(!title){
259
259
  title="";
@@ -407,7 +407,7 @@ class DataType {
407
407
  static USER='user_biz';
408
408
  static VIDEO='video_biz';
409
409
  }
410
- class Blog_Post_Logic{
410
+ class Blog_Post_Logic {
411
411
  static get_test = (option) =>{
412
412
  if(!option){
413
413
  option = {item_count:10,get_value:false,get_item:false,value_count:20};
@@ -469,7 +469,7 @@ class Blog_Post_Logic{
469
469
  return [category_list,blog_post_list]
470
470
  };
471
471
  }
472
- class Faq_Logic{
472
+ class Faq_Logic {
473
473
  static get_test = () =>{
474
474
  let faq = DataItem.get_new_full_item(
475
475
  DataItem.get_new(DataType.FAQ,Number.get_id()),
@@ -491,7 +491,7 @@ class Faq_Logic{
491
491
  return item_list;
492
492
  };
493
493
  }
494
- class Review_Logic{
494
+ class Review_Logic {
495
495
  static get_test = () =>{
496
496
  let city_list = ["Miami","Atlanta","Chicago","Seattle","New York City"];
497
497
  let state_list = ["Georgia","New York","Illinois","Washington","Flordia"];
@@ -602,33 +602,33 @@ class DataItem {
602
602
  }
603
603
  }
604
604
  class BiZ_Url {
605
- static get_item=(biz9_config,data_type,id)=>{
606
- let action_url="main/biz_item/get/"+data_type+"/"+id ;
607
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
605
+ static get_item = (biz9_config,data_type,id,params) => {
606
+ let action_url="main/biz_item/get/"+data_type+"/"+id;
607
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
608
608
  };
609
- static delete_item=(biz9_config,data_type,id)=>{
610
- let action_url= "main/biz_item/delete/"+data_type+"/"+id ;
611
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
609
+ static delete_item = (biz9_config,data_type,id,params) => {
610
+ let action_url= "main/biz_item/delete/"+data_type+"/"+id;
611
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
612
612
  };
613
- static get_full_item=(biz9_config,data_type,id)=>{
613
+ static get_full_item = (biz9_config,data_type,id,params) => {
614
614
  let action_url= "main/biz_item/get_full/"+data_type+"/"+id;
615
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
615
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
616
616
  };
617
- static get_page=(biz9_config,title_url)=>{
617
+ static get_page = (biz9_config,title_url,params) => {
618
618
  let action_url= "main/biz_item/get_page/"+title_url;
619
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
619
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
620
620
  };
621
- static get_template=(biz9_config,title_url)=>{
621
+ static get_template = (biz9_config,title_url,params) => {
622
622
  let action_url= "main/biz_item/get_template/"+title_url;
623
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
623
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
624
624
  };
625
- static get_custom_field=(biz9_config,data_type,id)=>{
625
+ static get_custom_field = (biz9_config,data_type,id,params) => {
626
626
  let action_url="main/biz_item/get_custom_field/"+data_type+"/"+id;
627
- return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,null);
627
+ return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
628
628
  };
629
629
  }
630
630
  class Url{
631
- static get = (biz9_config,action_url,params)=>{
631
+ static get = (biz9_config,action_url,params) => {
632
632
  return get_cloud_url_main(biz9_config.APP_ID,biz9_config.URL,action_url,params);
633
633
  }
634
634
  static connect = (biz9_config) => {
@@ -685,7 +685,7 @@ class Url{
685
685
  };
686
686
  }
687
687
  class Obj {
688
- static get_filter = (biz9_config,data_type,filter,sort_by,page_current,page_size)=>{
688
+ static get_filter = (biz9_config,data_type,filter,sort_by,page_current,page_size) => {
689
689
  return get_cloud_filter_obj_main(data_type,filter,sort_by,page_current,page_size);
690
690
  }
691
691
  };
@@ -702,7 +702,7 @@ class Category_Logic {
702
702
  category.type = Category_Logic.get_category_list()[Number.get_id(Category_Logic.get_category_list().length-1)].data_type;
703
703
  return category;
704
704
  }
705
- static get_test_list=(option)=>{
705
+ static get_test_list = (option) => {
706
706
  if(!option){
707
707
  option={category_count:10};
708
708
  }
@@ -712,7 +712,7 @@ class Category_Logic {
712
712
  }
713
713
  return item_list;
714
714
  };
715
- static get_type_category_list(type,count){
715
+ static get_type_category_list(type,count) {
716
716
  let category_list = [];
717
717
  for(let a=0;a<count;a++){
718
718
  let category = DataItem.get_new_full_item(
@@ -967,7 +967,7 @@ class Stock {
967
967
  };
968
968
  }
969
969
  class Schedule {
970
- static get_start_date_time = (item) =>{
970
+ static get_start_date_time = (item) => {
971
971
  if(!item.date){
972
972
  item.date = new Date();
973
973
  }
@@ -979,7 +979,7 @@ class Schedule {
979
979
  item.start_date_time = DateTime.get_full_date_time_by_date_time(item.date,item.time);
980
980
  return item;
981
981
  }
982
- static get_start_date_time_by_list = (list) =>{
982
+ static get_start_date_time_by_list = (list) => {
983
983
  for(let a=0;a<list.length;a++){
984
984
  if(!list[a].date){
985
985
  list[a].date = new Date();
@@ -1013,7 +1013,7 @@ class Storage {
1013
1013
  window.localStorage.clear();
1014
1014
  }
1015
1015
  }
1016
- class Sub_Item{
1016
+ class Sub_Item {
1017
1017
  static get_bind_new_child = (id,title,item,parent_item,top_item,options) =>{
1018
1018
  let new_sub_item = DataItem.get_new_full_item(
1019
1019
  DataItem.get_new(DataType.ITEM,id),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.5.6",
3
+ "version": "4.5.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"