biz9-logic 3.2.14 → 3.2.16

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 +24 -0
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='3.4.1'
1
+ VERSION='3.4.3'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -65,6 +65,10 @@ class BiZ_Url {
65
65
  let action_url= "main/biz_item/get/"+item.data_type + "/" + item.id ;
66
66
  return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
67
67
  };
68
+ static delete_item = (biz9_config,item) => {
69
+ let action_url= "main/biz_item/delete/"+item.data_type + "/" + item.id ;
70
+ return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
71
+ };
68
72
  static get_full_item = (biz9_config,item,parent_item,top_item) => {
69
73
  let action_url= "main/biz_item/get_full/"+item.data_type + "/" + item.id +"/"+parent_item.data_type + "/" + parent_item.id +"/"+top_item.data_type + "/" + top_item.id;
70
74
  return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
@@ -120,6 +124,26 @@ class Obj {
120
124
  return get_cloud_filter_obj_main(data_type,filter,sort_by,page_current,page_size);
121
125
  }
122
126
  };
127
+ class Category {
128
+ static get_title_by_type = (data_type) => {
129
+ switch (data_type) {
130
+ case DataType.DT_EVENT:
131
+ return "Event";
132
+ break;
133
+ case DataType.DT_GALLERY:
134
+ return "Gallery";
135
+ break;
136
+ case DataType.DT_PRODUCT:
137
+ return "Product";
138
+ break;
139
+ case DataType.DT_SERVICE:
140
+ return "Service";
141
+ break;
142
+ default:
143
+ return "Blank";
144
+ }
145
+ }
146
+ };
123
147
  class CMS {
124
148
  static Tab_Edit_Title_General = 'general';
125
149
  static Tab_Edit_Title_Photo = 'photo';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.2.14",
3
+ "version": "3.2.16",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"