biz9-logic 4.0.30 → 4.0.31
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 +1 -1
- package/index.js +22 -4
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -242,6 +242,12 @@ 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
|
+
}
|
|
245
251
|
class PageType {
|
|
246
252
|
static HOME='home';
|
|
247
253
|
static ABOUT='about';
|
|
@@ -412,7 +418,13 @@ class Business {
|
|
|
412
418
|
address_2:"",
|
|
413
419
|
city:"",
|
|
414
420
|
state:"",
|
|
415
|
-
zip:""
|
|
421
|
+
zip:"",
|
|
422
|
+
website:"",
|
|
423
|
+
youtube:"",
|
|
424
|
+
instagram:"",
|
|
425
|
+
facebook:"",
|
|
426
|
+
twitter:""
|
|
427
|
+
});
|
|
416
428
|
};
|
|
417
429
|
static get_test = () =>{
|
|
418
430
|
let item = DataItem.get_new(DataType.BUSINESS,Number.get_id());
|
|
@@ -424,12 +436,17 @@ class Business {
|
|
|
424
436
|
DataItem.get_new(DataType.BUSINESS,0),
|
|
425
437
|
Field.get_test("Title "+Number.get_id()));
|
|
426
438
|
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
|
|
439
|
+
item.phone="123-456-"+Number.get_id(3333);
|
|
440
|
+
item.address_1=Number.get_id(99)+" Apple St.";
|
|
441
|
+
item.address_2="PO "+Number.get_id(99);
|
|
430
442
|
item.city=city_list[Number.get_id(city_list.length-1)];
|
|
431
443
|
item.state=state_list[Number.get_id(state_list.length-1)];
|
|
432
444
|
item.zip=Number.get_id(9999);
|
|
445
|
+
item.website="website_" + Number.get_id(9999);
|
|
446
|
+
item.youtube="youtube_"+Number.get_id(9999);
|
|
447
|
+
item.instagram="instagram_"+Number.get_id(9999);
|
|
448
|
+
item.facebook="facebook_"+Number.get_id(9999);
|
|
449
|
+
item.twitter="twitter_"+Number.get_id(9999);
|
|
433
450
|
return item;
|
|
434
451
|
};
|
|
435
452
|
static get_full_address(business){
|
|
@@ -939,6 +956,7 @@ module.exports = {
|
|
|
939
956
|
DataType,
|
|
940
957
|
Field,
|
|
941
958
|
FieldType,
|
|
959
|
+
Social,
|
|
942
960
|
Event,
|
|
943
961
|
Message,
|
|
944
962
|
Obj,
|