files.com 1.0.176 → 1.0.177

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.176
1
+ 1.0.177
@@ -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['welcome_custom_text'] && !(0, _utils.isString)(params['welcome_custom_text']))) {
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: welcome_custom_text must be of type String, received ".concat((0, _utils.getType)(welcome_custom_text)));
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['language'] && !(0, _utils.isString)(params['language']))) {
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: language must be of type String, received ".concat((0, _utils.getType)(language)));
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['default_time_zone'] && !(0, _utils.isString)(params['default_time_zone']))) {
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: default_time_zone must be of type String, received ".concat((0, _utils.getType)(default_time_zone)));
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['desktop_app_session_lifetime'] && !(0, _utils.isInt)(params['desktop_app_session_lifetime']))) {
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: desktop_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(desktop_app_session_lifetime)));
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['mobile_app_session_lifetime'] && !(0, _utils.isInt)(params['mobile_app_session_lifetime']))) {
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: mobile_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(mobile_app_session_lifetime)));
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['welcome_screen'] && !(0, _utils.isString)(params['welcome_screen']))) {
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: welcome_screen must be of type String, received ".concat((0, _utils.getType)(welcome_screen)));
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['user_lockout_tries'] && !(0, _utils.isInt)(params['user_lockout_tries']))) {
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: user_lockout_tries must be of type Int, received ".concat((0, _utils.getType)(user_lockout_tries)));
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['user_lockout_within'] && !(0, _utils.isInt)(params['user_lockout_within']))) {
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: user_lockout_within must be of type Int, received ".concat((0, _utils.getType)(user_lockout_within)));
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['user_lockout_lock_period'] && !(0, _utils.isInt)(params['user_lockout_lock_period']))) {
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: user_lockout_lock_period must be of type Int, received ".concat((0, _utils.getType)(user_lockout_lock_period)));
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['allowed_countries'] && !(0, _utils.isString)(params['allowed_countries']))) {
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: allowed_countries must be of type String, received ".concat((0, _utils.getType)(allowed_countries)));
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['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
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: allowed_ips must be of type String, received ".concat((0, _utils.getType)(allowed_ips)));
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['disallowed_countries'] && !(0, _utils.isString)(params['disallowed_countries']))) {
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: disallowed_countries must be of type String, received ".concat((0, _utils.getType)(disallowed_countries)));
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['days_to_retain_backups'] && !(0, _utils.isInt)(params['days_to_retain_backups']))) {
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: days_to_retain_backups must be of type Int, received ".concat((0, _utils.getType)(days_to_retain_backups)));
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['max_prior_passwords'] && !(0, _utils.isInt)(params['max_prior_passwords']))) {
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: max_prior_passwords must be of type Int, received ".concat((0, _utils.getType)(max_prior_passwords)));
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['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
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: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(password_validity_days)));
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['password_min_length'] && !(0, _utils.isInt)(params['password_min_length']))) {
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: password_min_length must be of type Int, received ".concat((0, _utils.getType)(password_min_length)));
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['disable_users_from_inactivity_period_days'] && !(0, _utils.isInt)(params['disable_users_from_inactivity_period_days']))) {
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: disable_users_from_inactivity_period_days must be of type Int, received ".concat((0, _utils.getType)(disable_users_from_inactivity_period_days)));
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['require_2fa_user_type'] && !(0, _utils.isString)(params['require_2fa_user_type']))) {
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: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(require_2fa_user_type)));
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['color2_top'] && !(0, _utils.isString)(params['color2_top']))) {
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: color2_top must be of type String, received ".concat((0, _utils.getType)(color2_top)));
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['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
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: color2_left must be of type String, received ".concat((0, _utils.getType)(color2_left)));
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['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
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: color2_link must be of type String, received ".concat((0, _utils.getType)(color2_link)));
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['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
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: color2_text must be of type String, received ".concat((0, _utils.getType)(color2_text)));
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['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
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: color2_top_text must be of type String, received ".concat((0, _utils.getType)(color2_top_text)));
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['site_header'] && !(0, _utils.isString)(params['site_header']))) {
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: site_header must be of type String, received ".concat((0, _utils.getType)(site_header)));
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['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
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: site_footer must be of type String, received ".concat((0, _utils.getType)(site_footer)));
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['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
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: login_help_text must be of type String, received ".concat((0, _utils.getType)(login_help_text)));
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['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
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: smtp_address must be of type String, received ".concat((0, _utils.getType)(smtp_address)));
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['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
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: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(smtp_authentication)));
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['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
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: smtp_from must be of type String, received ".concat((0, _utils.getType)(smtp_from)));
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['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
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: smtp_username must be of type String, received ".concat((0, _utils.getType)(smtp_username)));
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['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
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: smtp_port must be of type Int, received ".concat((0, _utils.getType)(smtp_port)));
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['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
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: ldap_type must be of type String, received ".concat((0, _utils.getType)(ldap_type)));
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['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
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: ldap_host must be of type String, received ".concat((0, _utils.getType)(ldap_host)));
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['ldap_host_2'] && !(0, _utils.isString)(params['ldap_host_2']))) {
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: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(ldap_host_2)));
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['ldap_host_3'] && !(0, _utils.isString)(params['ldap_host_3']))) {
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: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(ldap_host_3)));
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['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
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: ldap_port must be of type Int, received ".concat((0, _utils.getType)(ldap_port)));
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['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
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: ldap_username must be of type String, received ".concat((0, _utils.getType)(ldap_username)));
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['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
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: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(ldap_username_field)));
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['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
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: ldap_domain must be of type String, received ".concat((0, _utils.getType)(ldap_domain)));
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['ldap_user_action'] && !(0, _utils.isString)(params['ldap_user_action']))) {
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: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(ldap_user_action)));
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['ldap_group_action'] && !(0, _utils.isString)(params['ldap_group_action']))) {
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: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(ldap_group_action)));
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['ldap_user_include_groups'] && !(0, _utils.isString)(params['ldap_user_include_groups']))) {
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: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(ldap_user_include_groups)));
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['ldap_group_exclusion'] && !(0, _utils.isString)(params['ldap_group_exclusion']))) {
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: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_exclusion)));
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['ldap_group_inclusion'] && !(0, _utils.isString)(params['ldap_group_inclusion']))) {
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: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_inclusion)));
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['ldap_base_dn'] && !(0, _utils.isString)(params['ldap_base_dn']))) {
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: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(ldap_base_dn)));
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['ldap_password_change'] && !(0, _utils.isString)(params['ldap_password_change']))) {
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: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(ldap_password_change)));
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['ldap_password_change_confirmation'] && !(0, _utils.isString)(params['ldap_password_change_confirmation']))) {
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: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(ldap_password_change_confirmation)));
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['smtp_password'] && !(0, _utils.isString)(params['smtp_password']))) {
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: smtp_password must be of type String, received ".concat((0, _utils.getType)(smtp_password)));
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
- _context3.next = 116;
950
- return _Api.default.sendRequest("/site", 'PATCH', params, options);
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 118:
967
+ case 120:
957
968
  case "end":
958
969
  return _context3.stop();
959
970
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -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
  }