@experts_hub/shared 1.0.284 → 1.0.286
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/dist/index.js +50 -9
- package/dist/index.mjs +51 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -511,16 +511,56 @@ var import_class_validator11 = require("class-validator");
|
|
|
511
511
|
var IsBusinessEmailConstraint = class {
|
|
512
512
|
constructor() {
|
|
513
513
|
this.blockedDomains = [
|
|
514
|
+
"aol.com",
|
|
515
|
+
"att.net",
|
|
516
|
+
"comcast.net",
|
|
517
|
+
"facebook.com",
|
|
514
518
|
"gmail.com",
|
|
515
|
-
"
|
|
519
|
+
"gmx.com",
|
|
520
|
+
"gmx.net",
|
|
521
|
+
"gmx.de",
|
|
522
|
+
"googlemail.com",
|
|
523
|
+
"google.com",
|
|
516
524
|
"hotmail.com",
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
"
|
|
525
|
+
"hotmail.co.uk",
|
|
526
|
+
"icloud.com",
|
|
527
|
+
"live.com",
|
|
528
|
+
"live.in",
|
|
529
|
+
"live.co.uk",
|
|
520
530
|
"mail.com",
|
|
521
|
-
"
|
|
531
|
+
"msn.com",
|
|
532
|
+
"outlook.com",
|
|
522
533
|
"protonmail.com",
|
|
523
|
-
"
|
|
534
|
+
"protonmail.ch",
|
|
535
|
+
"proton.me",
|
|
536
|
+
"tutanota.com",
|
|
537
|
+
"tutanota.de",
|
|
538
|
+
"tutanota.org",
|
|
539
|
+
"tuta.io",
|
|
540
|
+
"yahoo.com",
|
|
541
|
+
"yahoo.co.uk",
|
|
542
|
+
"yahoo.co.in",
|
|
543
|
+
"yahoo.co.jp",
|
|
544
|
+
"yahoo.co.kr",
|
|
545
|
+
"yahoo.co.id",
|
|
546
|
+
"yahoo.com.sg",
|
|
547
|
+
"yahoo.com.ph",
|
|
548
|
+
"zoho.com",
|
|
549
|
+
"yandex.com",
|
|
550
|
+
"mail.ru",
|
|
551
|
+
"fastmail.fm",
|
|
552
|
+
"hushmail.com",
|
|
553
|
+
"qq.com",
|
|
554
|
+
"163.com",
|
|
555
|
+
"126.com",
|
|
556
|
+
"rediffmail.com",
|
|
557
|
+
"naver.com",
|
|
558
|
+
"daum.net",
|
|
559
|
+
"seznam.cz",
|
|
560
|
+
"web.de",
|
|
561
|
+
"libero.it",
|
|
562
|
+
"mailfence.com",
|
|
563
|
+
"yopmail.com"
|
|
524
564
|
];
|
|
525
565
|
}
|
|
526
566
|
validate(value) {
|
|
@@ -891,11 +931,12 @@ __decorateClass([
|
|
|
891
931
|
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
892
932
|
(0, import_class_validator27.IsString)({ message: "Mobile Code must be a string" })
|
|
893
933
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
934
|
+
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
935
|
+
// message: "Please enter a valid US phone number",
|
|
936
|
+
// })
|
|
894
937
|
__decorateClass([
|
|
895
938
|
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter phone number." }),
|
|
896
|
-
(0, import_class_validator27.
|
|
897
|
-
message: "Please enter a valid US phone number"
|
|
898
|
-
})
|
|
939
|
+
(0, import_class_validator27.IsString)({ message: "Please enter valid phone number." })
|
|
899
940
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
900
941
|
__decorateClass([
|
|
901
942
|
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter email." }),
|
package/dist/index.mjs
CHANGED
|
@@ -318,16 +318,56 @@ import {
|
|
|
318
318
|
var IsBusinessEmailConstraint = class {
|
|
319
319
|
constructor() {
|
|
320
320
|
this.blockedDomains = [
|
|
321
|
+
"aol.com",
|
|
322
|
+
"att.net",
|
|
323
|
+
"comcast.net",
|
|
324
|
+
"facebook.com",
|
|
321
325
|
"gmail.com",
|
|
322
|
-
"
|
|
326
|
+
"gmx.com",
|
|
327
|
+
"gmx.net",
|
|
328
|
+
"gmx.de",
|
|
329
|
+
"googlemail.com",
|
|
330
|
+
"google.com",
|
|
323
331
|
"hotmail.com",
|
|
324
|
-
"
|
|
325
|
-
"
|
|
326
|
-
"
|
|
332
|
+
"hotmail.co.uk",
|
|
333
|
+
"icloud.com",
|
|
334
|
+
"live.com",
|
|
335
|
+
"live.in",
|
|
336
|
+
"live.co.uk",
|
|
327
337
|
"mail.com",
|
|
328
|
-
"
|
|
338
|
+
"msn.com",
|
|
339
|
+
"outlook.com",
|
|
329
340
|
"protonmail.com",
|
|
330
|
-
"
|
|
341
|
+
"protonmail.ch",
|
|
342
|
+
"proton.me",
|
|
343
|
+
"tutanota.com",
|
|
344
|
+
"tutanota.de",
|
|
345
|
+
"tutanota.org",
|
|
346
|
+
"tuta.io",
|
|
347
|
+
"yahoo.com",
|
|
348
|
+
"yahoo.co.uk",
|
|
349
|
+
"yahoo.co.in",
|
|
350
|
+
"yahoo.co.jp",
|
|
351
|
+
"yahoo.co.kr",
|
|
352
|
+
"yahoo.co.id",
|
|
353
|
+
"yahoo.com.sg",
|
|
354
|
+
"yahoo.com.ph",
|
|
355
|
+
"zoho.com",
|
|
356
|
+
"yandex.com",
|
|
357
|
+
"mail.ru",
|
|
358
|
+
"fastmail.fm",
|
|
359
|
+
"hushmail.com",
|
|
360
|
+
"qq.com",
|
|
361
|
+
"163.com",
|
|
362
|
+
"126.com",
|
|
363
|
+
"rediffmail.com",
|
|
364
|
+
"naver.com",
|
|
365
|
+
"daum.net",
|
|
366
|
+
"seznam.cz",
|
|
367
|
+
"web.de",
|
|
368
|
+
"libero.it",
|
|
369
|
+
"mailfence.com",
|
|
370
|
+
"yopmail.com"
|
|
331
371
|
];
|
|
332
372
|
}
|
|
333
373
|
validate(value) {
|
|
@@ -706,8 +746,7 @@ import {
|
|
|
706
746
|
IsNotEmpty as IsNotEmpty23,
|
|
707
747
|
IsEmail as IsEmail4,
|
|
708
748
|
Length as Length2,
|
|
709
|
-
IsUrl as IsUrl2
|
|
710
|
-
Matches as Matches5
|
|
749
|
+
IsUrl as IsUrl2
|
|
711
750
|
} from "class-validator";
|
|
712
751
|
var UpdateCompanyProfileDto = class {
|
|
713
752
|
};
|
|
@@ -731,11 +770,12 @@ __decorateClass([
|
|
|
731
770
|
IsNotEmpty23({ message: "Please enter mobile code." }),
|
|
732
771
|
IsString9({ message: "Mobile Code must be a string" })
|
|
733
772
|
], UpdateCompanyProfileDto.prototype, "mobileCode", 2);
|
|
773
|
+
// @Matches(/^(\+1\s?)?(\(?\d{3}\)?[\s.-]?)?\d{3}[\s.-]?\d{4}$/, {
|
|
774
|
+
// message: "Please enter a valid US phone number",
|
|
775
|
+
// })
|
|
734
776
|
__decorateClass([
|
|
735
777
|
IsNotEmpty23({ message: "Please enter phone number." }),
|
|
736
|
-
|
|
737
|
-
message: "Please enter a valid US phone number"
|
|
738
|
-
})
|
|
778
|
+
IsString9({ message: "Please enter valid phone number." })
|
|
739
779
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
740
780
|
__decorateClass([
|
|
741
781
|
IsNotEmpty23({ message: "Please enter email." }),
|