biz9-logic 4.0.42 → 4.0.44

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.4.2'
1
+ VERSION='4.4.4'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -391,6 +391,7 @@ class DataType {
391
391
  static CATEGORY='category_biz';
392
392
  static CONTENT='content_biz';
393
393
  static EVENT='event_biz';
394
+ static FAQ='faq_biz';
394
395
  static GALLERY='gallery_biz';
395
396
  static ITEM_MAP='item_map_biz';
396
397
  static ITEM='item_biz';
@@ -468,6 +469,28 @@ class Blog_Post{
468
469
  return [category_list,blog_post_list]
469
470
  };
470
471
  }
472
+ class Faq{
473
+ static get_test = () =>{
474
+ let faq = DataItem.get_new_full_item(
475
+ DataItem.get_new(DataType.FAQ,Number.get_id()),
476
+ DataItem.get_new(DataType.FAQ,0),
477
+ DataItem.get_new(DataType.FAQ,0),
478
+ Field.get_test("Faq "+Number.get_id(),{get_value:false}));
479
+ faq.question="What Is Title " + Number.get_id();
480
+ faq.answer="My comment "+ Number.get_id() + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
481
+ return faq;
482
+ };
483
+ static get_test_list=(option)=>{
484
+ if(!option){
485
+ option = {faq_count:19};
486
+ }
487
+ let item_list = [];
488
+ for(let a=0;a<option.faq_count;a++){
489
+ item_list.push(Faq.get_test());
490
+ }
491
+ return item_list;
492
+ };
493
+ }
471
494
  class Review{
472
495
  static get_test = () =>{
473
496
  let city_list = ["Miami","Atlanta","Chicago","Seattle","New York City"];
@@ -1064,6 +1087,7 @@ module.exports = {
1064
1087
  DataType,
1065
1088
  Field,
1066
1089
  FieldType,
1090
+ Faq,
1067
1091
  Social,
1068
1092
  Event,
1069
1093
  Message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.0.42",
3
+ "version": "4.0.44",
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} = 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} = require('./index');
4
4
  const {Log,Test,Number} = require('biz9-utility');
5
5
  const {Scriptz}= require('biz9-scriptz');
6
6
 
@@ -63,8 +63,8 @@ describe("connect", () => {
63
63
  /* --BLOG_POST--END */
64
64
 
65
65
  /* --CATEGORY--START */
66
- let category_list=Category.get_test_list({category_count:5,product_count:9,get_value:false,get_item:false});
67
- Log.w('category_list',category_list);
66
+ //let category_list=Category.get_test_list({category_count:5,product_count:9,get_value:false,get_item:false});
67
+ //Log.w('category_list',category_list);
68
68
  /* --CATEGORY--END */
69
69
 
70
70
 
@@ -113,6 +113,15 @@ describe("connect", () => {
113
113
  /* --SERVICE--END */
114
114
 
115
115
 
116
+ /* --FAQ--START */
117
+ //Log.w("FAQ",Faq.get_test());
118
+ Log.w("FAQ List",Faq.get_test_list());
119
+ /*
120
+ let review_list = Review.get_test_list({review_count:3,get_item:true})
121
+ Log.w("Review List",review_list);
122
+ */
123
+ /* --FAQ--END */
124
+
116
125
 
117
126
  /* --REVIEW--START */
118
127
  //Log.w("Review",Review.get_test());