biz9-logic 3.5.15 → 3.5.17

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 +18 -4
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='3.6.5'
1
+ VERSION='3.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
@@ -24,6 +24,7 @@ class DataType {
24
24
  static DT_BLOG_POST='blog_post_biz';
25
25
  static DT_CART_ITEM="cart_item_biz";
26
26
  static DT_CATEGORY='category_biz';
27
+ static DT_CONTENT='content_biz';
27
28
  static DT_EVENT='event_biz';
28
29
  static DT_GALLERY='gallery_biz';
29
30
  static DT_ITEM_MAP='item_map_biz';
@@ -77,6 +78,10 @@ class Url {
77
78
  let action_url= "main/test/connect/";
78
79
  return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
79
80
  };
81
+ static upload_file = (biz9_config,data_type,id) => {
82
+ let action_url= "main/crud/update/"+data_type + "/" + id;
83
+ return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
84
+ };
80
85
  static update_item = (biz9_config,data_type,id) => {
81
86
  let action_url= "main/crud/update/"+data_type + "/" + id;
82
87
  return get_cloud_url_main(biz9_config.APP_TITLE_ID,biz9_config.URL,action_url,null);
@@ -129,10 +134,13 @@ class Cat {
129
134
  };
130
135
  static get_category_drop_down_list = () => {
131
136
  return [
132
- { value: "blog_post_biz", label: "Blog Posts" },
133
- { value: "event_biz", label: "Events" },
134
- { value: "gallery_biz", label: "Galleries" },
135
- { value: "product_biz", label: "Products" }
137
+ { value: DataType.BLOG_POST, label: "Blog Posts" },
138
+ { value: DataType.DT_CONTENT, label: "Content" }
139
+ { value: DataType.DT_EVENT, label: "Events" },
140
+ { value: DataType.DT_GALLERY, label: "Galleries" },
141
+ { value: DataType.DT_SERVICE, label: "Services" }
142
+ { value: DataType.DT_PRODUCT, label: "Products" }
143
+ { value: DataType.DT_TEMPLATE, label: "Template" }
136
144
  ];
137
145
  };
138
146
  static get_title_by_type = (data_type) => {
@@ -164,6 +172,12 @@ class Cat {
164
172
  case DataType.DT_BLOG_POST:
165
173
  return "Blog Post";
166
174
  break;
175
+ case DataType.DT_TEMPLATE:
176
+ return "Template";
177
+ break;
178
+ case DataType.DT_CONTENT:
179
+ return "Content";
180
+ break;
167
181
  default:
168
182
  return "Blank";
169
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "3.5.15",
3
+ "version": "3.5.17",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"