files.com 1.0.133 → 1.0.134

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.133
1
+ 1.0.134
@@ -150,6 +150,9 @@ var Site = function Site() {
150
150
  (0, _defineProperty2.default)(this, "getDomainHstsHeader", function () {
151
151
  return _this.attributes.domain_hsts_header;
152
152
  });
153
+ (0, _defineProperty2.default)(this, "getDomainLetsencryptChain", function () {
154
+ return _this.attributes.domain_letsencrypt_chain;
155
+ });
153
156
  (0, _defineProperty2.default)(this, "getEmail", function () {
154
157
  return _this.attributes.email;
155
158
  });
@@ -515,430 +518,438 @@ var Site = function Site() {
515
518
  throw new Error("Bad parameter: domain must be of type String, received ".concat((0, _utils.getType)(domain)));
516
519
 
517
520
  case 8:
518
- if (!(params['email'] && !(0, _utils.isString)(params['email']))) {
521
+ if (!(params['domain_letsencrypt_chain'] && !(0, _utils.isString)(params['domain_letsencrypt_chain']))) {
519
522
  _context3.next = 10;
520
523
  break;
521
524
  }
522
525
 
523
- throw new Error("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(email)));
526
+ throw new Error("Bad parameter: domain_letsencrypt_chain must be of type String, received ".concat((0, _utils.getType)(domain_letsencrypt_chain)));
524
527
 
525
528
  case 10:
526
- if (!(params['reply_to_email'] && !(0, _utils.isString)(params['reply_to_email']))) {
529
+ if (!(params['email'] && !(0, _utils.isString)(params['email']))) {
527
530
  _context3.next = 12;
528
531
  break;
529
532
  }
530
533
 
531
- throw new Error("Bad parameter: reply_to_email must be of type String, received ".concat((0, _utils.getType)(reply_to_email)));
534
+ throw new Error("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(email)));
532
535
 
533
536
  case 12:
534
- if (!(params['bundle_expiration'] && !(0, _utils.isInt)(params['bundle_expiration']))) {
537
+ if (!(params['reply_to_email'] && !(0, _utils.isString)(params['reply_to_email']))) {
535
538
  _context3.next = 14;
536
539
  break;
537
540
  }
538
541
 
539
- throw new Error("Bad parameter: bundle_expiration must be of type Int, received ".concat((0, _utils.getType)(bundle_expiration)));
542
+ throw new Error("Bad parameter: reply_to_email must be of type String, received ".concat((0, _utils.getType)(reply_to_email)));
540
543
 
541
544
  case 14:
542
- if (!(params['welcome_email_cc'] && !(0, _utils.isString)(params['welcome_email_cc']))) {
545
+ if (!(params['bundle_expiration'] && !(0, _utils.isInt)(params['bundle_expiration']))) {
543
546
  _context3.next = 16;
544
547
  break;
545
548
  }
546
549
 
547
- throw new Error("Bad parameter: welcome_email_cc must be of type String, received ".concat((0, _utils.getType)(welcome_email_cc)));
550
+ throw new Error("Bad parameter: bundle_expiration must be of type Int, received ".concat((0, _utils.getType)(bundle_expiration)));
548
551
 
549
552
  case 16:
550
- if (!(params['welcome_custom_text'] && !(0, _utils.isString)(params['welcome_custom_text']))) {
553
+ if (!(params['welcome_email_cc'] && !(0, _utils.isString)(params['welcome_email_cc']))) {
551
554
  _context3.next = 18;
552
555
  break;
553
556
  }
554
557
 
555
- throw new Error("Bad parameter: welcome_custom_text must be of type String, received ".concat((0, _utils.getType)(welcome_custom_text)));
558
+ throw new Error("Bad parameter: welcome_email_cc must be of type String, received ".concat((0, _utils.getType)(welcome_email_cc)));
556
559
 
557
560
  case 18:
558
- if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
561
+ if (!(params['welcome_custom_text'] && !(0, _utils.isString)(params['welcome_custom_text']))) {
559
562
  _context3.next = 20;
560
563
  break;
561
564
  }
562
565
 
563
- throw new Error("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(language)));
566
+ throw new Error("Bad parameter: welcome_custom_text must be of type String, received ".concat((0, _utils.getType)(welcome_custom_text)));
564
567
 
565
568
  case 20:
566
- if (!(params['default_time_zone'] && !(0, _utils.isString)(params['default_time_zone']))) {
569
+ if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
567
570
  _context3.next = 22;
568
571
  break;
569
572
  }
570
573
 
571
- throw new Error("Bad parameter: default_time_zone must be of type String, received ".concat((0, _utils.getType)(default_time_zone)));
574
+ throw new Error("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(language)));
572
575
 
573
576
  case 22:
574
- if (!(params['desktop_app_session_lifetime'] && !(0, _utils.isInt)(params['desktop_app_session_lifetime']))) {
577
+ if (!(params['default_time_zone'] && !(0, _utils.isString)(params['default_time_zone']))) {
575
578
  _context3.next = 24;
576
579
  break;
577
580
  }
578
581
 
579
- throw new Error("Bad parameter: desktop_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(desktop_app_session_lifetime)));
582
+ throw new Error("Bad parameter: default_time_zone must be of type String, received ".concat((0, _utils.getType)(default_time_zone)));
580
583
 
581
584
  case 24:
582
- if (!(params['mobile_app_session_lifetime'] && !(0, _utils.isInt)(params['mobile_app_session_lifetime']))) {
585
+ if (!(params['desktop_app_session_lifetime'] && !(0, _utils.isInt)(params['desktop_app_session_lifetime']))) {
583
586
  _context3.next = 26;
584
587
  break;
585
588
  }
586
589
 
587
- throw new Error("Bad parameter: mobile_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(mobile_app_session_lifetime)));
590
+ throw new Error("Bad parameter: desktop_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(desktop_app_session_lifetime)));
588
591
 
589
592
  case 26:
590
- if (!(params['welcome_screen'] && !(0, _utils.isString)(params['welcome_screen']))) {
593
+ if (!(params['mobile_app_session_lifetime'] && !(0, _utils.isInt)(params['mobile_app_session_lifetime']))) {
591
594
  _context3.next = 28;
592
595
  break;
593
596
  }
594
597
 
595
- throw new Error("Bad parameter: welcome_screen must be of type String, received ".concat((0, _utils.getType)(welcome_screen)));
598
+ throw new Error("Bad parameter: mobile_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(mobile_app_session_lifetime)));
596
599
 
597
600
  case 28:
598
- if (!(params['user_lockout_tries'] && !(0, _utils.isInt)(params['user_lockout_tries']))) {
601
+ if (!(params['welcome_screen'] && !(0, _utils.isString)(params['welcome_screen']))) {
599
602
  _context3.next = 30;
600
603
  break;
601
604
  }
602
605
 
603
- throw new Error("Bad parameter: user_lockout_tries must be of type Int, received ".concat((0, _utils.getType)(user_lockout_tries)));
606
+ throw new Error("Bad parameter: welcome_screen must be of type String, received ".concat((0, _utils.getType)(welcome_screen)));
604
607
 
605
608
  case 30:
606
- if (!(params['user_lockout_within'] && !(0, _utils.isInt)(params['user_lockout_within']))) {
609
+ if (!(params['user_lockout_tries'] && !(0, _utils.isInt)(params['user_lockout_tries']))) {
607
610
  _context3.next = 32;
608
611
  break;
609
612
  }
610
613
 
611
- throw new Error("Bad parameter: user_lockout_within must be of type Int, received ".concat((0, _utils.getType)(user_lockout_within)));
614
+ throw new Error("Bad parameter: user_lockout_tries must be of type Int, received ".concat((0, _utils.getType)(user_lockout_tries)));
612
615
 
613
616
  case 32:
614
- if (!(params['user_lockout_lock_period'] && !(0, _utils.isInt)(params['user_lockout_lock_period']))) {
617
+ if (!(params['user_lockout_within'] && !(0, _utils.isInt)(params['user_lockout_within']))) {
615
618
  _context3.next = 34;
616
619
  break;
617
620
  }
618
621
 
619
- throw new Error("Bad parameter: user_lockout_lock_period must be of type Int, received ".concat((0, _utils.getType)(user_lockout_lock_period)));
622
+ throw new Error("Bad parameter: user_lockout_within must be of type Int, received ".concat((0, _utils.getType)(user_lockout_within)));
620
623
 
621
624
  case 34:
622
- if (!(params['allowed_countries'] && !(0, _utils.isString)(params['allowed_countries']))) {
625
+ if (!(params['user_lockout_lock_period'] && !(0, _utils.isInt)(params['user_lockout_lock_period']))) {
623
626
  _context3.next = 36;
624
627
  break;
625
628
  }
626
629
 
627
- throw new Error("Bad parameter: allowed_countries must be of type String, received ".concat((0, _utils.getType)(allowed_countries)));
630
+ throw new Error("Bad parameter: user_lockout_lock_period must be of type Int, received ".concat((0, _utils.getType)(user_lockout_lock_period)));
628
631
 
629
632
  case 36:
630
- if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
633
+ if (!(params['allowed_countries'] && !(0, _utils.isString)(params['allowed_countries']))) {
631
634
  _context3.next = 38;
632
635
  break;
633
636
  }
634
637
 
635
- throw new Error("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(allowed_ips)));
638
+ throw new Error("Bad parameter: allowed_countries must be of type String, received ".concat((0, _utils.getType)(allowed_countries)));
636
639
 
637
640
  case 38:
638
- if (!(params['disallowed_countries'] && !(0, _utils.isString)(params['disallowed_countries']))) {
641
+ if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
639
642
  _context3.next = 40;
640
643
  break;
641
644
  }
642
645
 
643
- throw new Error("Bad parameter: disallowed_countries must be of type String, received ".concat((0, _utils.getType)(disallowed_countries)));
646
+ throw new Error("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(allowed_ips)));
644
647
 
645
648
  case 40:
646
- if (!(params['days_to_retain_backups'] && !(0, _utils.isInt)(params['days_to_retain_backups']))) {
649
+ if (!(params['disallowed_countries'] && !(0, _utils.isString)(params['disallowed_countries']))) {
647
650
  _context3.next = 42;
648
651
  break;
649
652
  }
650
653
 
651
- throw new Error("Bad parameter: days_to_retain_backups must be of type Int, received ".concat((0, _utils.getType)(days_to_retain_backups)));
654
+ throw new Error("Bad parameter: disallowed_countries must be of type String, received ".concat((0, _utils.getType)(disallowed_countries)));
652
655
 
653
656
  case 42:
654
- if (!(params['max_prior_passwords'] && !(0, _utils.isInt)(params['max_prior_passwords']))) {
657
+ if (!(params['days_to_retain_backups'] && !(0, _utils.isInt)(params['days_to_retain_backups']))) {
655
658
  _context3.next = 44;
656
659
  break;
657
660
  }
658
661
 
659
- throw new Error("Bad parameter: max_prior_passwords must be of type Int, received ".concat((0, _utils.getType)(max_prior_passwords)));
662
+ throw new Error("Bad parameter: days_to_retain_backups must be of type Int, received ".concat((0, _utils.getType)(days_to_retain_backups)));
660
663
 
661
664
  case 44:
662
- if (!(params['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
665
+ if (!(params['max_prior_passwords'] && !(0, _utils.isInt)(params['max_prior_passwords']))) {
663
666
  _context3.next = 46;
664
667
  break;
665
668
  }
666
669
 
667
- throw new Error("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(password_validity_days)));
670
+ throw new Error("Bad parameter: max_prior_passwords must be of type Int, received ".concat((0, _utils.getType)(max_prior_passwords)));
668
671
 
669
672
  case 46:
670
- if (!(params['password_min_length'] && !(0, _utils.isInt)(params['password_min_length']))) {
673
+ if (!(params['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
671
674
  _context3.next = 48;
672
675
  break;
673
676
  }
674
677
 
675
- throw new Error("Bad parameter: password_min_length must be of type Int, received ".concat((0, _utils.getType)(password_min_length)));
678
+ throw new Error("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(password_validity_days)));
676
679
 
677
680
  case 48:
678
- if (!(params['disable_users_from_inactivity_period_days'] && !(0, _utils.isInt)(params['disable_users_from_inactivity_period_days']))) {
681
+ if (!(params['password_min_length'] && !(0, _utils.isInt)(params['password_min_length']))) {
679
682
  _context3.next = 50;
680
683
  break;
681
684
  }
682
685
 
683
- 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)));
686
+ throw new Error("Bad parameter: password_min_length must be of type Int, received ".concat((0, _utils.getType)(password_min_length)));
684
687
 
685
688
  case 50:
686
- if (!(params['require_2fa_user_type'] && !(0, _utils.isString)(params['require_2fa_user_type']))) {
689
+ if (!(params['disable_users_from_inactivity_period_days'] && !(0, _utils.isInt)(params['disable_users_from_inactivity_period_days']))) {
687
690
  _context3.next = 52;
688
691
  break;
689
692
  }
690
693
 
691
- throw new Error("Bad parameter: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(require_2fa_user_type)));
694
+ 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)));
692
695
 
693
696
  case 52:
694
- if (!(params['color2_top'] && !(0, _utils.isString)(params['color2_top']))) {
697
+ if (!(params['require_2fa_user_type'] && !(0, _utils.isString)(params['require_2fa_user_type']))) {
695
698
  _context3.next = 54;
696
699
  break;
697
700
  }
698
701
 
699
- throw new Error("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(color2_top)));
702
+ throw new Error("Bad parameter: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(require_2fa_user_type)));
700
703
 
701
704
  case 54:
702
- if (!(params['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
705
+ if (!(params['color2_top'] && !(0, _utils.isString)(params['color2_top']))) {
703
706
  _context3.next = 56;
704
707
  break;
705
708
  }
706
709
 
707
- throw new Error("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(color2_left)));
710
+ throw new Error("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(color2_top)));
708
711
 
709
712
  case 56:
710
- if (!(params['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
713
+ if (!(params['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
711
714
  _context3.next = 58;
712
715
  break;
713
716
  }
714
717
 
715
- throw new Error("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(color2_link)));
718
+ throw new Error("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(color2_left)));
716
719
 
717
720
  case 58:
718
- if (!(params['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
721
+ if (!(params['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
719
722
  _context3.next = 60;
720
723
  break;
721
724
  }
722
725
 
723
- throw new Error("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(color2_text)));
726
+ throw new Error("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(color2_link)));
724
727
 
725
728
  case 60:
726
- if (!(params['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
729
+ if (!(params['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
727
730
  _context3.next = 62;
728
731
  break;
729
732
  }
730
733
 
731
- throw new Error("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(color2_top_text)));
734
+ throw new Error("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(color2_text)));
732
735
 
733
736
  case 62:
734
- if (!(params['site_header'] && !(0, _utils.isString)(params['site_header']))) {
737
+ if (!(params['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
735
738
  _context3.next = 64;
736
739
  break;
737
740
  }
738
741
 
739
- throw new Error("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(site_header)));
742
+ throw new Error("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(color2_top_text)));
740
743
 
741
744
  case 64:
742
- if (!(params['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
745
+ if (!(params['site_header'] && !(0, _utils.isString)(params['site_header']))) {
743
746
  _context3.next = 66;
744
747
  break;
745
748
  }
746
749
 
747
- throw new Error("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(site_footer)));
750
+ throw new Error("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(site_header)));
748
751
 
749
752
  case 66:
750
- if (!(params['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
753
+ if (!(params['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
751
754
  _context3.next = 68;
752
755
  break;
753
756
  }
754
757
 
755
- throw new Error("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(login_help_text)));
758
+ throw new Error("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(site_footer)));
756
759
 
757
760
  case 68:
758
- if (!(params['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
761
+ if (!(params['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
759
762
  _context3.next = 70;
760
763
  break;
761
764
  }
762
765
 
763
- throw new Error("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(smtp_address)));
766
+ throw new Error("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(login_help_text)));
764
767
 
765
768
  case 70:
766
- if (!(params['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
769
+ if (!(params['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
767
770
  _context3.next = 72;
768
771
  break;
769
772
  }
770
773
 
771
- throw new Error("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(smtp_authentication)));
774
+ throw new Error("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(smtp_address)));
772
775
 
773
776
  case 72:
774
- if (!(params['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
777
+ if (!(params['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
775
778
  _context3.next = 74;
776
779
  break;
777
780
  }
778
781
 
779
- throw new Error("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(smtp_from)));
782
+ throw new Error("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(smtp_authentication)));
780
783
 
781
784
  case 74:
782
- if (!(params['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
785
+ if (!(params['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
783
786
  _context3.next = 76;
784
787
  break;
785
788
  }
786
789
 
787
- throw new Error("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(smtp_username)));
790
+ throw new Error("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(smtp_from)));
788
791
 
789
792
  case 76:
790
- if (!(params['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
793
+ if (!(params['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
791
794
  _context3.next = 78;
792
795
  break;
793
796
  }
794
797
 
795
- throw new Error("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(smtp_port)));
798
+ throw new Error("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(smtp_username)));
796
799
 
797
800
  case 78:
798
- if (!(params['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
801
+ if (!(params['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
799
802
  _context3.next = 80;
800
803
  break;
801
804
  }
802
805
 
803
- throw new Error("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(ldap_type)));
806
+ throw new Error("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(smtp_port)));
804
807
 
805
808
  case 80:
806
- if (!(params['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
809
+ if (!(params['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
807
810
  _context3.next = 82;
808
811
  break;
809
812
  }
810
813
 
811
- throw new Error("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(ldap_host)));
814
+ throw new Error("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(ldap_type)));
812
815
 
813
816
  case 82:
814
- if (!(params['ldap_host_2'] && !(0, _utils.isString)(params['ldap_host_2']))) {
817
+ if (!(params['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
815
818
  _context3.next = 84;
816
819
  break;
817
820
  }
818
821
 
819
- throw new Error("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(ldap_host_2)));
822
+ throw new Error("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(ldap_host)));
820
823
 
821
824
  case 84:
822
- if (!(params['ldap_host_3'] && !(0, _utils.isString)(params['ldap_host_3']))) {
825
+ if (!(params['ldap_host_2'] && !(0, _utils.isString)(params['ldap_host_2']))) {
823
826
  _context3.next = 86;
824
827
  break;
825
828
  }
826
829
 
827
- throw new Error("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(ldap_host_3)));
830
+ throw new Error("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(ldap_host_2)));
828
831
 
829
832
  case 86:
830
- if (!(params['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
833
+ if (!(params['ldap_host_3'] && !(0, _utils.isString)(params['ldap_host_3']))) {
831
834
  _context3.next = 88;
832
835
  break;
833
836
  }
834
837
 
835
- throw new Error("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(ldap_port)));
838
+ throw new Error("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(ldap_host_3)));
836
839
 
837
840
  case 88:
838
- if (!(params['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
841
+ if (!(params['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
839
842
  _context3.next = 90;
840
843
  break;
841
844
  }
842
845
 
843
- throw new Error("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(ldap_username)));
846
+ throw new Error("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(ldap_port)));
844
847
 
845
848
  case 90:
846
- if (!(params['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
849
+ if (!(params['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
847
850
  _context3.next = 92;
848
851
  break;
849
852
  }
850
853
 
851
- throw new Error("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(ldap_username_field)));
854
+ throw new Error("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(ldap_username)));
852
855
 
853
856
  case 92:
854
- if (!(params['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
857
+ if (!(params['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
855
858
  _context3.next = 94;
856
859
  break;
857
860
  }
858
861
 
859
- throw new Error("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(ldap_domain)));
862
+ throw new Error("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(ldap_username_field)));
860
863
 
861
864
  case 94:
862
- if (!(params['ldap_user_action'] && !(0, _utils.isString)(params['ldap_user_action']))) {
865
+ if (!(params['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
863
866
  _context3.next = 96;
864
867
  break;
865
868
  }
866
869
 
867
- throw new Error("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(ldap_user_action)));
870
+ throw new Error("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(ldap_domain)));
868
871
 
869
872
  case 96:
870
- if (!(params['ldap_group_action'] && !(0, _utils.isString)(params['ldap_group_action']))) {
873
+ if (!(params['ldap_user_action'] && !(0, _utils.isString)(params['ldap_user_action']))) {
871
874
  _context3.next = 98;
872
875
  break;
873
876
  }
874
877
 
875
- throw new Error("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(ldap_group_action)));
878
+ throw new Error("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(ldap_user_action)));
876
879
 
877
880
  case 98:
878
- if (!(params['ldap_user_include_groups'] && !(0, _utils.isString)(params['ldap_user_include_groups']))) {
881
+ if (!(params['ldap_group_action'] && !(0, _utils.isString)(params['ldap_group_action']))) {
879
882
  _context3.next = 100;
880
883
  break;
881
884
  }
882
885
 
883
- throw new Error("Bad parameter: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(ldap_user_include_groups)));
886
+ throw new Error("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(ldap_group_action)));
884
887
 
885
888
  case 100:
886
- if (!(params['ldap_group_exclusion'] && !(0, _utils.isString)(params['ldap_group_exclusion']))) {
889
+ if (!(params['ldap_user_include_groups'] && !(0, _utils.isString)(params['ldap_user_include_groups']))) {
887
890
  _context3.next = 102;
888
891
  break;
889
892
  }
890
893
 
891
- throw new Error("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_exclusion)));
894
+ throw new Error("Bad parameter: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(ldap_user_include_groups)));
892
895
 
893
896
  case 102:
894
- if (!(params['ldap_group_inclusion'] && !(0, _utils.isString)(params['ldap_group_inclusion']))) {
897
+ if (!(params['ldap_group_exclusion'] && !(0, _utils.isString)(params['ldap_group_exclusion']))) {
895
898
  _context3.next = 104;
896
899
  break;
897
900
  }
898
901
 
899
- throw new Error("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_inclusion)));
902
+ throw new Error("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_exclusion)));
900
903
 
901
904
  case 104:
902
- if (!(params['ldap_base_dn'] && !(0, _utils.isString)(params['ldap_base_dn']))) {
905
+ if (!(params['ldap_group_inclusion'] && !(0, _utils.isString)(params['ldap_group_inclusion']))) {
903
906
  _context3.next = 106;
904
907
  break;
905
908
  }
906
909
 
907
- throw new Error("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(ldap_base_dn)));
910
+ throw new Error("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_inclusion)));
908
911
 
909
912
  case 106:
910
- if (!(params['ldap_password_change'] && !(0, _utils.isString)(params['ldap_password_change']))) {
913
+ if (!(params['ldap_base_dn'] && !(0, _utils.isString)(params['ldap_base_dn']))) {
911
914
  _context3.next = 108;
912
915
  break;
913
916
  }
914
917
 
915
- throw new Error("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(ldap_password_change)));
918
+ throw new Error("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(ldap_base_dn)));
916
919
 
917
920
  case 108:
918
- if (!(params['ldap_password_change_confirmation'] && !(0, _utils.isString)(params['ldap_password_change_confirmation']))) {
921
+ if (!(params['ldap_password_change'] && !(0, _utils.isString)(params['ldap_password_change']))) {
919
922
  _context3.next = 110;
920
923
  break;
921
924
  }
922
925
 
923
- throw new Error("Bad parameter: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(ldap_password_change_confirmation)));
926
+ throw new Error("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(ldap_password_change)));
924
927
 
925
928
  case 110:
926
- if (!(params['smtp_password'] && !(0, _utils.isString)(params['smtp_password']))) {
929
+ if (!(params['ldap_password_change_confirmation'] && !(0, _utils.isString)(params['ldap_password_change_confirmation']))) {
927
930
  _context3.next = 112;
928
931
  break;
929
932
  }
930
933
 
931
- throw new Error("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(smtp_password)));
934
+ throw new Error("Bad parameter: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(ldap_password_change_confirmation)));
932
935
 
933
936
  case 112:
934
- _context3.next = 114;
935
- return _Api.default.sendRequest("/site", 'PATCH', params, options);
937
+ if (!(params['smtp_password'] && !(0, _utils.isString)(params['smtp_password']))) {
938
+ _context3.next = 114;
939
+ break;
940
+ }
941
+
942
+ throw new Error("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(smtp_password)));
936
943
 
937
944
  case 114:
945
+ _context3.next = 116;
946
+ return _Api.default.sendRequest("/site", 'PATCH', params, options);
947
+
948
+ case 116:
938
949
  response = _context3.sent;
939
950
  return _context3.abrupt("return", new Site(response === null || response === void 0 ? void 0 : response.data, options));
940
951
 
941
- case 116:
952
+ case 118:
942
953
  case "end":
943
954
  return _context3.stop();
944
955
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.133",
3
+ "version": "1.0.134",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -133,6 +133,9 @@ class Site {
133
133
  // boolean # Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
134
134
  getDomainHstsHeader = () => this.attributes.domain_hsts_header
135
135
 
136
+ // string # Letsencrypt chain to use when registering SSL Certificate for domain.
137
+ getDomainLetsencryptChain = () => this.attributes.domain_letsencrypt_chain
138
+
136
139
  // email # Main email for this site
137
140
  getEmail = () => this.attributes.email
138
141
 
@@ -415,6 +418,7 @@ class Site {
415
418
  // subdomain - string - Site subdomain
416
419
  // domain - string - Custom domain
417
420
  // domain_hsts_header - boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
421
+ // domain_letsencrypt_chain - string - Letsencrypt chain to use when registering SSL Certificate for domain.
418
422
  // email - string - Main email for this site
419
423
  // reply_to_email - string - Reply-to email for this site
420
424
  // allow_bundle_names - boolean - Are manual Bundle names allowed?
@@ -539,6 +543,10 @@ class Site {
539
543
  throw new Error(`Bad parameter: domain must be of type String, received ${getType(domain)}`)
540
544
  }
541
545
 
546
+ if (params['domain_letsencrypt_chain'] && !isString(params['domain_letsencrypt_chain'])) {
547
+ throw new Error(`Bad parameter: domain_letsencrypt_chain must be of type String, received ${getType(domain_letsencrypt_chain)}`)
548
+ }
549
+
542
550
  if (params['email'] && !isString(params['email'])) {
543
551
  throw new Error(`Bad parameter: email must be of type String, received ${getType(email)}`)
544
552
  }