files.com 1.0.176 → 1.0.179
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/As2IncomingMessage.js +3 -0
- package/lib/models/As2OutgoingMessage.js +3 -0
- package/lib/models/Folder.js +6 -0
- package/lib/models/Site.js +110 -99
- package/package.json +1 -1
- package/src/models/As2IncomingMessage.js +3 -0
- package/src/models/As2OutgoingMessage.js +3 -0
- package/src/models/Folder.js +8 -0
- package/src/models/Site.js +8 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.179
|
@@ -83,6 +83,9 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
|
|
83
83
|
(0, _defineProperty2.default)(this, "getSubject", function () {
|
84
84
|
return _this.attributes.subject;
|
85
85
|
});
|
86
|
+
(0, _defineProperty2.default)(this, "getDate", function () {
|
87
|
+
return _this.attributes.date;
|
88
|
+
});
|
86
89
|
(0, _defineProperty2.default)(this, "getBodySize", function () {
|
87
90
|
return _this.attributes.body_size;
|
88
91
|
});
|
@@ -74,6 +74,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
74
74
|
(0, _defineProperty2.default)(this, "getAs2From", function () {
|
75
75
|
return _this.attributes.as2_from;
|
76
76
|
});
|
77
|
+
(0, _defineProperty2.default)(this, "getDate", function () {
|
78
|
+
return _this.attributes.date;
|
79
|
+
});
|
77
80
|
(0, _defineProperty2.default)(this, "getMessageId", function () {
|
78
81
|
return _this.attributes.message_id;
|
79
82
|
});
|
package/lib/models/Folder.js
CHANGED
@@ -139,6 +139,12 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
|
|
139
139
|
(0, _defineProperty2.default)(this, "setPreview", function (value) {
|
140
140
|
_this.attributes.preview = value;
|
141
141
|
});
|
142
|
+
(0, _defineProperty2.default)(this, "getMkdirParents", function () {
|
143
|
+
return _this.attributes.mkdir_parents;
|
144
|
+
});
|
145
|
+
(0, _defineProperty2.default)(this, "setMkdirParents", function (value) {
|
146
|
+
_this.attributes.mkdir_parents = value;
|
147
|
+
});
|
142
148
|
(0, _defineProperty2.default)(this, "save", function () {
|
143
149
|
var newObject = Folder.create(_this.attributes.path, _this.attributes, _this.options);
|
144
150
|
_this.attributes = _objectSpread({}, newObject.attributes);
|
package/lib/models/Site.js
CHANGED
@@ -410,6 +410,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
410
410
|
(0, _defineProperty2.default)(this, "getWelcomeEmailCc", function () {
|
411
411
|
return _this.attributes.welcome_email_cc;
|
412
412
|
});
|
413
|
+
(0, _defineProperty2.default)(this, "getWelcomeEmailSubject", function () {
|
414
|
+
return _this.attributes.welcome_email_subject;
|
415
|
+
});
|
413
416
|
(0, _defineProperty2.default)(this, "getWelcomeEmailEnabled", function () {
|
414
417
|
return _this.attributes.welcome_email_enabled;
|
415
418
|
});
|
@@ -562,398 +565,406 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
562
565
|
throw new Error("Bad parameter: welcome_email_cc must be of type String, received ".concat((0, _utils.getType)(welcome_email_cc)));
|
563
566
|
|
564
567
|
case 18:
|
565
|
-
if (!(params['
|
568
|
+
if (!(params['welcome_email_subject'] && !(0, _utils.isString)(params['welcome_email_subject']))) {
|
566
569
|
_context3.next = 20;
|
567
570
|
break;
|
568
571
|
}
|
569
572
|
|
570
|
-
throw new Error("Bad parameter:
|
573
|
+
throw new Error("Bad parameter: welcome_email_subject must be of type String, received ".concat((0, _utils.getType)(welcome_email_subject)));
|
571
574
|
|
572
575
|
case 20:
|
573
|
-
if (!(params['
|
576
|
+
if (!(params['welcome_custom_text'] && !(0, _utils.isString)(params['welcome_custom_text']))) {
|
574
577
|
_context3.next = 22;
|
575
578
|
break;
|
576
579
|
}
|
577
580
|
|
578
|
-
throw new Error("Bad parameter:
|
581
|
+
throw new Error("Bad parameter: welcome_custom_text must be of type String, received ".concat((0, _utils.getType)(welcome_custom_text)));
|
579
582
|
|
580
583
|
case 22:
|
581
|
-
if (!(params['
|
584
|
+
if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
|
582
585
|
_context3.next = 24;
|
583
586
|
break;
|
584
587
|
}
|
585
588
|
|
586
|
-
throw new Error("Bad parameter:
|
589
|
+
throw new Error("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(language)));
|
587
590
|
|
588
591
|
case 24:
|
589
|
-
if (!(params['
|
592
|
+
if (!(params['default_time_zone'] && !(0, _utils.isString)(params['default_time_zone']))) {
|
590
593
|
_context3.next = 26;
|
591
594
|
break;
|
592
595
|
}
|
593
596
|
|
594
|
-
throw new Error("Bad parameter:
|
597
|
+
throw new Error("Bad parameter: default_time_zone must be of type String, received ".concat((0, _utils.getType)(default_time_zone)));
|
595
598
|
|
596
599
|
case 26:
|
597
|
-
if (!(params['
|
600
|
+
if (!(params['desktop_app_session_lifetime'] && !(0, _utils.isInt)(params['desktop_app_session_lifetime']))) {
|
598
601
|
_context3.next = 28;
|
599
602
|
break;
|
600
603
|
}
|
601
604
|
|
602
|
-
throw new Error("Bad parameter:
|
605
|
+
throw new Error("Bad parameter: desktop_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(desktop_app_session_lifetime)));
|
603
606
|
|
604
607
|
case 28:
|
605
|
-
if (!(params['
|
608
|
+
if (!(params['mobile_app_session_lifetime'] && !(0, _utils.isInt)(params['mobile_app_session_lifetime']))) {
|
606
609
|
_context3.next = 30;
|
607
610
|
break;
|
608
611
|
}
|
609
612
|
|
610
|
-
throw new Error("Bad parameter:
|
613
|
+
throw new Error("Bad parameter: mobile_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(mobile_app_session_lifetime)));
|
611
614
|
|
612
615
|
case 30:
|
613
|
-
if (!(params['
|
616
|
+
if (!(params['welcome_screen'] && !(0, _utils.isString)(params['welcome_screen']))) {
|
614
617
|
_context3.next = 32;
|
615
618
|
break;
|
616
619
|
}
|
617
620
|
|
618
|
-
throw new Error("Bad parameter:
|
621
|
+
throw new Error("Bad parameter: welcome_screen must be of type String, received ".concat((0, _utils.getType)(welcome_screen)));
|
619
622
|
|
620
623
|
case 32:
|
621
|
-
if (!(params['
|
624
|
+
if (!(params['user_lockout_tries'] && !(0, _utils.isInt)(params['user_lockout_tries']))) {
|
622
625
|
_context3.next = 34;
|
623
626
|
break;
|
624
627
|
}
|
625
628
|
|
626
|
-
throw new Error("Bad parameter:
|
629
|
+
throw new Error("Bad parameter: user_lockout_tries must be of type Int, received ".concat((0, _utils.getType)(user_lockout_tries)));
|
627
630
|
|
628
631
|
case 34:
|
629
|
-
if (!(params['
|
632
|
+
if (!(params['user_lockout_within'] && !(0, _utils.isInt)(params['user_lockout_within']))) {
|
630
633
|
_context3.next = 36;
|
631
634
|
break;
|
632
635
|
}
|
633
636
|
|
634
|
-
throw new Error("Bad parameter:
|
637
|
+
throw new Error("Bad parameter: user_lockout_within must be of type Int, received ".concat((0, _utils.getType)(user_lockout_within)));
|
635
638
|
|
636
639
|
case 36:
|
637
|
-
if (!(params['
|
640
|
+
if (!(params['user_lockout_lock_period'] && !(0, _utils.isInt)(params['user_lockout_lock_period']))) {
|
638
641
|
_context3.next = 38;
|
639
642
|
break;
|
640
643
|
}
|
641
644
|
|
642
|
-
throw new Error("Bad parameter:
|
645
|
+
throw new Error("Bad parameter: user_lockout_lock_period must be of type Int, received ".concat((0, _utils.getType)(user_lockout_lock_period)));
|
643
646
|
|
644
647
|
case 38:
|
645
|
-
if (!(params['
|
648
|
+
if (!(params['allowed_countries'] && !(0, _utils.isString)(params['allowed_countries']))) {
|
646
649
|
_context3.next = 40;
|
647
650
|
break;
|
648
651
|
}
|
649
652
|
|
650
|
-
throw new Error("Bad parameter:
|
653
|
+
throw new Error("Bad parameter: allowed_countries must be of type String, received ".concat((0, _utils.getType)(allowed_countries)));
|
651
654
|
|
652
655
|
case 40:
|
653
|
-
if (!(params['
|
656
|
+
if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
|
654
657
|
_context3.next = 42;
|
655
658
|
break;
|
656
659
|
}
|
657
660
|
|
658
|
-
throw new Error("Bad parameter:
|
661
|
+
throw new Error("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(allowed_ips)));
|
659
662
|
|
660
663
|
case 42:
|
661
|
-
if (!(params['
|
664
|
+
if (!(params['disallowed_countries'] && !(0, _utils.isString)(params['disallowed_countries']))) {
|
662
665
|
_context3.next = 44;
|
663
666
|
break;
|
664
667
|
}
|
665
668
|
|
666
|
-
throw new Error("Bad parameter:
|
669
|
+
throw new Error("Bad parameter: disallowed_countries must be of type String, received ".concat((0, _utils.getType)(disallowed_countries)));
|
667
670
|
|
668
671
|
case 44:
|
669
|
-
if (!(params['
|
672
|
+
if (!(params['days_to_retain_backups'] && !(0, _utils.isInt)(params['days_to_retain_backups']))) {
|
670
673
|
_context3.next = 46;
|
671
674
|
break;
|
672
675
|
}
|
673
676
|
|
674
|
-
throw new Error("Bad parameter:
|
677
|
+
throw new Error("Bad parameter: days_to_retain_backups must be of type Int, received ".concat((0, _utils.getType)(days_to_retain_backups)));
|
675
678
|
|
676
679
|
case 46:
|
677
|
-
if (!(params['
|
680
|
+
if (!(params['max_prior_passwords'] && !(0, _utils.isInt)(params['max_prior_passwords']))) {
|
678
681
|
_context3.next = 48;
|
679
682
|
break;
|
680
683
|
}
|
681
684
|
|
682
|
-
throw new Error("Bad parameter:
|
685
|
+
throw new Error("Bad parameter: max_prior_passwords must be of type Int, received ".concat((0, _utils.getType)(max_prior_passwords)));
|
683
686
|
|
684
687
|
case 48:
|
685
|
-
if (!(params['
|
688
|
+
if (!(params['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
|
686
689
|
_context3.next = 50;
|
687
690
|
break;
|
688
691
|
}
|
689
692
|
|
690
|
-
throw new Error("Bad parameter:
|
693
|
+
throw new Error("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(password_validity_days)));
|
691
694
|
|
692
695
|
case 50:
|
693
|
-
if (!(params['
|
696
|
+
if (!(params['password_min_length'] && !(0, _utils.isInt)(params['password_min_length']))) {
|
694
697
|
_context3.next = 52;
|
695
698
|
break;
|
696
699
|
}
|
697
700
|
|
698
|
-
throw new Error("Bad parameter:
|
701
|
+
throw new Error("Bad parameter: password_min_length must be of type Int, received ".concat((0, _utils.getType)(password_min_length)));
|
699
702
|
|
700
703
|
case 52:
|
701
|
-
if (!(params['
|
704
|
+
if (!(params['disable_users_from_inactivity_period_days'] && !(0, _utils.isInt)(params['disable_users_from_inactivity_period_days']))) {
|
702
705
|
_context3.next = 54;
|
703
706
|
break;
|
704
707
|
}
|
705
708
|
|
706
|
-
throw new Error("Bad parameter:
|
709
|
+
throw new Error("Bad parameter: disable_users_from_inactivity_period_days must be of type Int, received ".concat((0, _utils.getType)(disable_users_from_inactivity_period_days)));
|
707
710
|
|
708
711
|
case 54:
|
709
|
-
if (!(params['
|
712
|
+
if (!(params['require_2fa_user_type'] && !(0, _utils.isString)(params['require_2fa_user_type']))) {
|
710
713
|
_context3.next = 56;
|
711
714
|
break;
|
712
715
|
}
|
713
716
|
|
714
|
-
throw new Error("Bad parameter:
|
717
|
+
throw new Error("Bad parameter: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(require_2fa_user_type)));
|
715
718
|
|
716
719
|
case 56:
|
717
|
-
if (!(params['
|
720
|
+
if (!(params['color2_top'] && !(0, _utils.isString)(params['color2_top']))) {
|
718
721
|
_context3.next = 58;
|
719
722
|
break;
|
720
723
|
}
|
721
724
|
|
722
|
-
throw new Error("Bad parameter:
|
725
|
+
throw new Error("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(color2_top)));
|
723
726
|
|
724
727
|
case 58:
|
725
|
-
if (!(params['
|
728
|
+
if (!(params['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
|
726
729
|
_context3.next = 60;
|
727
730
|
break;
|
728
731
|
}
|
729
732
|
|
730
|
-
throw new Error("Bad parameter:
|
733
|
+
throw new Error("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(color2_left)));
|
731
734
|
|
732
735
|
case 60:
|
733
|
-
if (!(params['
|
736
|
+
if (!(params['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
|
734
737
|
_context3.next = 62;
|
735
738
|
break;
|
736
739
|
}
|
737
740
|
|
738
|
-
throw new Error("Bad parameter:
|
741
|
+
throw new Error("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(color2_link)));
|
739
742
|
|
740
743
|
case 62:
|
741
|
-
if (!(params['
|
744
|
+
if (!(params['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
|
742
745
|
_context3.next = 64;
|
743
746
|
break;
|
744
747
|
}
|
745
748
|
|
746
|
-
throw new Error("Bad parameter:
|
749
|
+
throw new Error("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(color2_text)));
|
747
750
|
|
748
751
|
case 64:
|
749
|
-
if (!(params['
|
752
|
+
if (!(params['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
|
750
753
|
_context3.next = 66;
|
751
754
|
break;
|
752
755
|
}
|
753
756
|
|
754
|
-
throw new Error("Bad parameter:
|
757
|
+
throw new Error("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(color2_top_text)));
|
755
758
|
|
756
759
|
case 66:
|
757
|
-
if (!(params['
|
760
|
+
if (!(params['site_header'] && !(0, _utils.isString)(params['site_header']))) {
|
758
761
|
_context3.next = 68;
|
759
762
|
break;
|
760
763
|
}
|
761
764
|
|
762
|
-
throw new Error("Bad parameter:
|
765
|
+
throw new Error("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(site_header)));
|
763
766
|
|
764
767
|
case 68:
|
765
|
-
if (!(params['
|
768
|
+
if (!(params['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
|
766
769
|
_context3.next = 70;
|
767
770
|
break;
|
768
771
|
}
|
769
772
|
|
770
|
-
throw new Error("Bad parameter:
|
773
|
+
throw new Error("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(site_footer)));
|
771
774
|
|
772
775
|
case 70:
|
773
|
-
if (!(params['
|
776
|
+
if (!(params['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
|
774
777
|
_context3.next = 72;
|
775
778
|
break;
|
776
779
|
}
|
777
780
|
|
778
|
-
throw new Error("Bad parameter:
|
781
|
+
throw new Error("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(login_help_text)));
|
779
782
|
|
780
783
|
case 72:
|
781
|
-
if (!(params['
|
784
|
+
if (!(params['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
|
782
785
|
_context3.next = 74;
|
783
786
|
break;
|
784
787
|
}
|
785
788
|
|
786
|
-
throw new Error("Bad parameter:
|
789
|
+
throw new Error("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(smtp_address)));
|
787
790
|
|
788
791
|
case 74:
|
789
|
-
if (!(params['
|
792
|
+
if (!(params['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
|
790
793
|
_context3.next = 76;
|
791
794
|
break;
|
792
795
|
}
|
793
796
|
|
794
|
-
throw new Error("Bad parameter:
|
797
|
+
throw new Error("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(smtp_authentication)));
|
795
798
|
|
796
799
|
case 76:
|
797
|
-
if (!(params['
|
800
|
+
if (!(params['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
|
798
801
|
_context3.next = 78;
|
799
802
|
break;
|
800
803
|
}
|
801
804
|
|
802
|
-
throw new Error("Bad parameter:
|
805
|
+
throw new Error("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(smtp_from)));
|
803
806
|
|
804
807
|
case 78:
|
805
|
-
if (!(params['
|
808
|
+
if (!(params['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
|
806
809
|
_context3.next = 80;
|
807
810
|
break;
|
808
811
|
}
|
809
812
|
|
810
|
-
throw new Error("Bad parameter:
|
813
|
+
throw new Error("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(smtp_username)));
|
811
814
|
|
812
815
|
case 80:
|
813
|
-
if (!(params['
|
816
|
+
if (!(params['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
|
814
817
|
_context3.next = 82;
|
815
818
|
break;
|
816
819
|
}
|
817
820
|
|
818
|
-
throw new Error("Bad parameter:
|
821
|
+
throw new Error("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(smtp_port)));
|
819
822
|
|
820
823
|
case 82:
|
821
|
-
if (!(params['
|
824
|
+
if (!(params['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
|
822
825
|
_context3.next = 84;
|
823
826
|
break;
|
824
827
|
}
|
825
828
|
|
826
|
-
throw new Error("Bad parameter:
|
829
|
+
throw new Error("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(ldap_type)));
|
827
830
|
|
828
831
|
case 84:
|
829
|
-
if (!(params['
|
832
|
+
if (!(params['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
|
830
833
|
_context3.next = 86;
|
831
834
|
break;
|
832
835
|
}
|
833
836
|
|
834
|
-
throw new Error("Bad parameter:
|
837
|
+
throw new Error("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(ldap_host)));
|
835
838
|
|
836
839
|
case 86:
|
837
|
-
if (!(params['
|
840
|
+
if (!(params['ldap_host_2'] && !(0, _utils.isString)(params['ldap_host_2']))) {
|
838
841
|
_context3.next = 88;
|
839
842
|
break;
|
840
843
|
}
|
841
844
|
|
842
|
-
throw new Error("Bad parameter:
|
845
|
+
throw new Error("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(ldap_host_2)));
|
843
846
|
|
844
847
|
case 88:
|
845
|
-
if (!(params['
|
848
|
+
if (!(params['ldap_host_3'] && !(0, _utils.isString)(params['ldap_host_3']))) {
|
846
849
|
_context3.next = 90;
|
847
850
|
break;
|
848
851
|
}
|
849
852
|
|
850
|
-
throw new Error("Bad parameter:
|
853
|
+
throw new Error("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(ldap_host_3)));
|
851
854
|
|
852
855
|
case 90:
|
853
|
-
if (!(params['
|
856
|
+
if (!(params['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
|
854
857
|
_context3.next = 92;
|
855
858
|
break;
|
856
859
|
}
|
857
860
|
|
858
|
-
throw new Error("Bad parameter:
|
861
|
+
throw new Error("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(ldap_port)));
|
859
862
|
|
860
863
|
case 92:
|
861
|
-
if (!(params['
|
864
|
+
if (!(params['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
|
862
865
|
_context3.next = 94;
|
863
866
|
break;
|
864
867
|
}
|
865
868
|
|
866
|
-
throw new Error("Bad parameter:
|
869
|
+
throw new Error("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(ldap_username)));
|
867
870
|
|
868
871
|
case 94:
|
869
|
-
if (!(params['
|
872
|
+
if (!(params['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
|
870
873
|
_context3.next = 96;
|
871
874
|
break;
|
872
875
|
}
|
873
876
|
|
874
|
-
throw new Error("Bad parameter:
|
877
|
+
throw new Error("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(ldap_username_field)));
|
875
878
|
|
876
879
|
case 96:
|
877
|
-
if (!(params['
|
880
|
+
if (!(params['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
|
878
881
|
_context3.next = 98;
|
879
882
|
break;
|
880
883
|
}
|
881
884
|
|
882
|
-
throw new Error("Bad parameter:
|
885
|
+
throw new Error("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(ldap_domain)));
|
883
886
|
|
884
887
|
case 98:
|
885
|
-
if (!(params['
|
888
|
+
if (!(params['ldap_user_action'] && !(0, _utils.isString)(params['ldap_user_action']))) {
|
886
889
|
_context3.next = 100;
|
887
890
|
break;
|
888
891
|
}
|
889
892
|
|
890
|
-
throw new Error("Bad parameter:
|
893
|
+
throw new Error("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(ldap_user_action)));
|
891
894
|
|
892
895
|
case 100:
|
893
|
-
if (!(params['
|
896
|
+
if (!(params['ldap_group_action'] && !(0, _utils.isString)(params['ldap_group_action']))) {
|
894
897
|
_context3.next = 102;
|
895
898
|
break;
|
896
899
|
}
|
897
900
|
|
898
|
-
throw new Error("Bad parameter:
|
901
|
+
throw new Error("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(ldap_group_action)));
|
899
902
|
|
900
903
|
case 102:
|
901
|
-
if (!(params['
|
904
|
+
if (!(params['ldap_user_include_groups'] && !(0, _utils.isString)(params['ldap_user_include_groups']))) {
|
902
905
|
_context3.next = 104;
|
903
906
|
break;
|
904
907
|
}
|
905
908
|
|
906
|
-
throw new Error("Bad parameter:
|
909
|
+
throw new Error("Bad parameter: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(ldap_user_include_groups)));
|
907
910
|
|
908
911
|
case 104:
|
909
|
-
if (!(params['
|
912
|
+
if (!(params['ldap_group_exclusion'] && !(0, _utils.isString)(params['ldap_group_exclusion']))) {
|
910
913
|
_context3.next = 106;
|
911
914
|
break;
|
912
915
|
}
|
913
916
|
|
914
|
-
throw new Error("Bad parameter:
|
917
|
+
throw new Error("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_exclusion)));
|
915
918
|
|
916
919
|
case 106:
|
917
|
-
if (!(params['
|
920
|
+
if (!(params['ldap_group_inclusion'] && !(0, _utils.isString)(params['ldap_group_inclusion']))) {
|
918
921
|
_context3.next = 108;
|
919
922
|
break;
|
920
923
|
}
|
921
924
|
|
922
|
-
throw new Error("Bad parameter:
|
925
|
+
throw new Error("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_inclusion)));
|
923
926
|
|
924
927
|
case 108:
|
925
|
-
if (!(params['
|
928
|
+
if (!(params['ldap_base_dn'] && !(0, _utils.isString)(params['ldap_base_dn']))) {
|
926
929
|
_context3.next = 110;
|
927
930
|
break;
|
928
931
|
}
|
929
932
|
|
930
|
-
throw new Error("Bad parameter:
|
933
|
+
throw new Error("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(ldap_base_dn)));
|
931
934
|
|
932
935
|
case 110:
|
933
|
-
if (!(params['
|
936
|
+
if (!(params['ldap_password_change'] && !(0, _utils.isString)(params['ldap_password_change']))) {
|
934
937
|
_context3.next = 112;
|
935
938
|
break;
|
936
939
|
}
|
937
940
|
|
938
|
-
throw new Error("Bad parameter:
|
941
|
+
throw new Error("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(ldap_password_change)));
|
939
942
|
|
940
943
|
case 112:
|
941
|
-
if (!(params['
|
944
|
+
if (!(params['ldap_password_change_confirmation'] && !(0, _utils.isString)(params['ldap_password_change_confirmation']))) {
|
942
945
|
_context3.next = 114;
|
943
946
|
break;
|
944
947
|
}
|
945
948
|
|
946
|
-
throw new Error("Bad parameter:
|
949
|
+
throw new Error("Bad parameter: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(ldap_password_change_confirmation)));
|
947
950
|
|
948
951
|
case 114:
|
949
|
-
|
950
|
-
|
952
|
+
if (!(params['smtp_password'] && !(0, _utils.isString)(params['smtp_password']))) {
|
953
|
+
_context3.next = 116;
|
954
|
+
break;
|
955
|
+
}
|
956
|
+
|
957
|
+
throw new Error("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(smtp_password)));
|
951
958
|
|
952
959
|
case 116:
|
960
|
+
_context3.next = 118;
|
961
|
+
return _Api.default.sendRequest("/site", 'PATCH', params, options);
|
962
|
+
|
963
|
+
case 118:
|
953
964
|
response = _context3.sent;
|
954
965
|
return _context3.abrupt("return", new Site(response === null || response === void 0 ? void 0 : response.data, options));
|
955
966
|
|
956
|
-
case
|
967
|
+
case 120:
|
957
968
|
case "end":
|
958
969
|
return _context3.stop();
|
959
970
|
}
|
package/package.json
CHANGED
@@ -64,6 +64,9 @@ class As2IncomingMessage {
|
|
64
64
|
// string # AS2 Subject Header
|
65
65
|
getSubject = () => this.attributes.subject
|
66
66
|
|
67
|
+
// string # Date Header
|
68
|
+
getDate = () => this.attributes.date
|
69
|
+
|
67
70
|
// string # Encrypted Payload Body Size
|
68
71
|
getBodySize = () => this.attributes.body_size
|
69
72
|
|
package/src/models/Folder.js
CHANGED
@@ -135,6 +135,13 @@ class Folder {
|
|
135
135
|
this.attributes.preview = value
|
136
136
|
}
|
137
137
|
|
138
|
+
// boolean # Create parent directories if they do not exist?
|
139
|
+
getMkdirParents = () => this.attributes.mkdir_parents
|
140
|
+
|
141
|
+
setMkdirParents = value => {
|
142
|
+
this.attributes.mkdir_parents = value
|
143
|
+
}
|
144
|
+
|
138
145
|
|
139
146
|
save = () => {
|
140
147
|
const newObject = Folder.create(this.attributes.path, this.attributes, this.options)
|
@@ -194,6 +201,7 @@ class Folder {
|
|
194
201
|
|
195
202
|
// Parameters:
|
196
203
|
// path (required) - string - Path to operate on.
|
204
|
+
// mkdir_parents - boolean - Create parent directories if they do not exist?
|
197
205
|
static create = async (path, params = {}, options = {}) => {
|
198
206
|
if (!isObject(params)) {
|
199
207
|
throw new Error(`Bad parameter: params must be of type object, received ${getType(params)}`)
|
package/src/models/Site.js
CHANGED
@@ -391,6 +391,9 @@ class Site {
|
|
391
391
|
// email # Include this email in welcome emails if enabled
|
392
392
|
getWelcomeEmailCc = () => this.attributes.welcome_email_cc
|
393
393
|
|
394
|
+
// string # Include this email subject in welcome emails if enabled
|
395
|
+
getWelcomeEmailSubject = () => this.attributes.welcome_email_subject
|
396
|
+
|
394
397
|
// boolean # Will the welcome email be sent to new users?
|
395
398
|
getWelcomeEmailEnabled = () => this.attributes.welcome_email_enabled
|
396
399
|
|
@@ -431,6 +434,7 @@ class Site {
|
|
431
434
|
// ask_about_overwrites - boolean - If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
|
432
435
|
// show_request_access_link - boolean - Show request access link for users without access? Currently unused.
|
433
436
|
// welcome_email_cc - string - Include this email in welcome emails if enabled
|
437
|
+
// welcome_email_subject - string - Include this email subject in welcome emails if enabled
|
434
438
|
// welcome_custom_text - string - Custom text send in user welcome email
|
435
439
|
// language - string - Site default language
|
436
440
|
// windows_mode_ftp - boolean - Does FTP user Windows emulation mode?
|
@@ -567,6 +571,10 @@ class Site {
|
|
567
571
|
throw new Error(`Bad parameter: welcome_email_cc must be of type String, received ${getType(welcome_email_cc)}`)
|
568
572
|
}
|
569
573
|
|
574
|
+
if (params['welcome_email_subject'] && !isString(params['welcome_email_subject'])) {
|
575
|
+
throw new Error(`Bad parameter: welcome_email_subject must be of type String, received ${getType(welcome_email_subject)}`)
|
576
|
+
}
|
577
|
+
|
570
578
|
if (params['welcome_custom_text'] && !isString(params['welcome_custom_text'])) {
|
571
579
|
throw new Error(`Bad parameter: welcome_custom_text must be of type String, received ${getType(welcome_custom_text)}`)
|
572
580
|
}
|