biz9-logic 4.0.30 → 4.0.32

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 +23 -4
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='4.3.0'
1
+ VERSION='4.3.2'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -242,6 +242,13 @@ class FieldType {
242
242
  static DATE_CREATE='date_create';
243
243
  static DATE_SAVE='date_save';
244
244
  }
245
+ class Social {
246
+ static FACEBOOK_URL="https://facebook.com/";
247
+ static TWITTER_URL="https://twitter.com/";
248
+ static INSTAGRAM_URL="https://instagram.com/";
249
+ static YOUTUBE_URL="https://youtube.com/";
250
+ static LINKEDIN_URL="https://linkedin.com/";
251
+ }
245
252
  class PageType {
246
253
  static HOME='home';
247
254
  static ABOUT='about';
@@ -412,7 +419,13 @@ class Business {
412
419
  address_2:"",
413
420
  city:"",
414
421
  state:"",
415
- zip:""});
422
+ zip:"",
423
+ website:"",
424
+ youtube:"",
425
+ instagram:"",
426
+ facebook:"",
427
+ twitter:""
428
+ });
416
429
  };
417
430
  static get_test = () =>{
418
431
  let item = DataItem.get_new(DataType.BUSINESS,Number.get_id());
@@ -424,12 +437,17 @@ class Business {
424
437
  DataItem.get_new(DataType.BUSINESS,0),
425
438
  Field.get_test("Title "+Number.get_id()));
426
439
  item.email="ceo@business.com";
427
- item.phone="123-456-"+Number.get_id();
428
- item.address_1=Number.get_id()+" Apple St.";
429
- item.address_2="PO Box "+Number.get_id();
440
+ item.phone="123-456-"+Number.get_id(3333);
441
+ item.address_1=Number.get_id(99)+" Apple St.";
442
+ item.address_2="PO "+Number.get_id(99);
430
443
  item.city=city_list[Number.get_id(city_list.length-1)];
431
444
  item.state=state_list[Number.get_id(state_list.length-1)];
432
445
  item.zip=Number.get_id(9999);
446
+ item.website="website_" + Number.get_id(9999);
447
+ item.youtube="youtube_"+Number.get_id(9999);
448
+ item.instagram="instagram_"+Number.get_id(9999);
449
+ item.facebook="facebook_"+Number.get_id(9999);
450
+ item.twitter="twitter_"+Number.get_id(9999);
433
451
  return item;
434
452
  };
435
453
  static get_full_address(business){
@@ -939,6 +957,7 @@ module.exports = {
939
957
  DataType,
940
958
  Field,
941
959
  FieldType,
960
+ Social,
942
961
  Event,
943
962
  Message,
944
963
  Obj,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.0.30",
3
+ "version": "4.0.32",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"