files.com 1.0.131 → 1.0.135

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.131
1
+ 1.0.135
@@ -78,6 +78,12 @@ var Site = function Site() {
78
78
  (0, _defineProperty2.default)(this, "getBundleRequireShareRecipient", function () {
79
79
  return _this.attributes.bundle_require_share_recipient;
80
80
  });
81
+ (0, _defineProperty2.default)(this, "getBundleWatermarkAttachment", function () {
82
+ return _this.attributes.bundle_watermark_attachment;
83
+ });
84
+ (0, _defineProperty2.default)(this, "getBundleWatermarkValue", function () {
85
+ return _this.attributes.bundle_watermark_value;
86
+ });
81
87
  (0, _defineProperty2.default)(this, "getColor2Left", function () {
82
88
  return _this.attributes.color2_left;
83
89
  });
@@ -141,6 +147,12 @@ var Site = function Site() {
141
147
  (0, _defineProperty2.default)(this, "getDomain", function () {
142
148
  return _this.attributes.domain;
143
149
  });
150
+ (0, _defineProperty2.default)(this, "getDomainHstsHeader", function () {
151
+ return _this.attributes.domain_hsts_header;
152
+ });
153
+ (0, _defineProperty2.default)(this, "getDomainLetsencryptChain", function () {
154
+ return _this.attributes.domain_letsencrypt_chain;
155
+ });
144
156
  (0, _defineProperty2.default)(this, "getEmail", function () {
145
157
  return _this.attributes.email;
146
158
  });
@@ -506,430 +518,438 @@ var Site = function Site() {
506
518
  throw new Error("Bad parameter: domain must be of type String, received ".concat((0, _utils.getType)(domain)));
507
519
 
508
520
  case 8:
509
- if (!(params['email'] && !(0, _utils.isString)(params['email']))) {
521
+ if (!(params['domain_letsencrypt_chain'] && !(0, _utils.isString)(params['domain_letsencrypt_chain']))) {
510
522
  _context3.next = 10;
511
523
  break;
512
524
  }
513
525
 
514
- 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)));
515
527
 
516
528
  case 10:
517
- if (!(params['reply_to_email'] && !(0, _utils.isString)(params['reply_to_email']))) {
529
+ if (!(params['email'] && !(0, _utils.isString)(params['email']))) {
518
530
  _context3.next = 12;
519
531
  break;
520
532
  }
521
533
 
522
- 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)));
523
535
 
524
536
  case 12:
525
- if (!(params['bundle_expiration'] && !(0, _utils.isInt)(params['bundle_expiration']))) {
537
+ if (!(params['reply_to_email'] && !(0, _utils.isString)(params['reply_to_email']))) {
526
538
  _context3.next = 14;
527
539
  break;
528
540
  }
529
541
 
530
- 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)));
531
543
 
532
544
  case 14:
533
- if (!(params['welcome_email_cc'] && !(0, _utils.isString)(params['welcome_email_cc']))) {
545
+ if (!(params['bundle_expiration'] && !(0, _utils.isInt)(params['bundle_expiration']))) {
534
546
  _context3.next = 16;
535
547
  break;
536
548
  }
537
549
 
538
- 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)));
539
551
 
540
552
  case 16:
541
- 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']))) {
542
554
  _context3.next = 18;
543
555
  break;
544
556
  }
545
557
 
546
- 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)));
547
559
 
548
560
  case 18:
549
- if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
561
+ if (!(params['welcome_custom_text'] && !(0, _utils.isString)(params['welcome_custom_text']))) {
550
562
  _context3.next = 20;
551
563
  break;
552
564
  }
553
565
 
554
- 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)));
555
567
 
556
568
  case 20:
557
- if (!(params['default_time_zone'] && !(0, _utils.isString)(params['default_time_zone']))) {
569
+ if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
558
570
  _context3.next = 22;
559
571
  break;
560
572
  }
561
573
 
562
- 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)));
563
575
 
564
576
  case 22:
565
- 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']))) {
566
578
  _context3.next = 24;
567
579
  break;
568
580
  }
569
581
 
570
- 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)));
571
583
 
572
584
  case 24:
573
- 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']))) {
574
586
  _context3.next = 26;
575
587
  break;
576
588
  }
577
589
 
578
- 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)));
579
591
 
580
592
  case 26:
581
- 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']))) {
582
594
  _context3.next = 28;
583
595
  break;
584
596
  }
585
597
 
586
- 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)));
587
599
 
588
600
  case 28:
589
- if (!(params['user_lockout_tries'] && !(0, _utils.isInt)(params['user_lockout_tries']))) {
601
+ if (!(params['welcome_screen'] && !(0, _utils.isString)(params['welcome_screen']))) {
590
602
  _context3.next = 30;
591
603
  break;
592
604
  }
593
605
 
594
- 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)));
595
607
 
596
608
  case 30:
597
- 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']))) {
598
610
  _context3.next = 32;
599
611
  break;
600
612
  }
601
613
 
602
- 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)));
603
615
 
604
616
  case 32:
605
- 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']))) {
606
618
  _context3.next = 34;
607
619
  break;
608
620
  }
609
621
 
610
- 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)));
611
623
 
612
624
  case 34:
613
- 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']))) {
614
626
  _context3.next = 36;
615
627
  break;
616
628
  }
617
629
 
618
- 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)));
619
631
 
620
632
  case 36:
621
- if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
633
+ if (!(params['allowed_countries'] && !(0, _utils.isString)(params['allowed_countries']))) {
622
634
  _context3.next = 38;
623
635
  break;
624
636
  }
625
637
 
626
- 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)));
627
639
 
628
640
  case 38:
629
- if (!(params['disallowed_countries'] && !(0, _utils.isString)(params['disallowed_countries']))) {
641
+ if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
630
642
  _context3.next = 40;
631
643
  break;
632
644
  }
633
645
 
634
- 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)));
635
647
 
636
648
  case 40:
637
- 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']))) {
638
650
  _context3.next = 42;
639
651
  break;
640
652
  }
641
653
 
642
- 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)));
643
655
 
644
656
  case 42:
645
- 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']))) {
646
658
  _context3.next = 44;
647
659
  break;
648
660
  }
649
661
 
650
- 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)));
651
663
 
652
664
  case 44:
653
- 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']))) {
654
666
  _context3.next = 46;
655
667
  break;
656
668
  }
657
669
 
658
- 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)));
659
671
 
660
672
  case 46:
661
- 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']))) {
662
674
  _context3.next = 48;
663
675
  break;
664
676
  }
665
677
 
666
- 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)));
667
679
 
668
680
  case 48:
669
- 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']))) {
670
682
  _context3.next = 50;
671
683
  break;
672
684
  }
673
685
 
674
- 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)));
675
687
 
676
688
  case 50:
677
- 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']))) {
678
690
  _context3.next = 52;
679
691
  break;
680
692
  }
681
693
 
682
- 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)));
683
695
 
684
696
  case 52:
685
- 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']))) {
686
698
  _context3.next = 54;
687
699
  break;
688
700
  }
689
701
 
690
- 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)));
691
703
 
692
704
  case 54:
693
- if (!(params['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
705
+ if (!(params['color2_top'] && !(0, _utils.isString)(params['color2_top']))) {
694
706
  _context3.next = 56;
695
707
  break;
696
708
  }
697
709
 
698
- 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)));
699
711
 
700
712
  case 56:
701
- if (!(params['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
713
+ if (!(params['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
702
714
  _context3.next = 58;
703
715
  break;
704
716
  }
705
717
 
706
- 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)));
707
719
 
708
720
  case 58:
709
- if (!(params['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
721
+ if (!(params['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
710
722
  _context3.next = 60;
711
723
  break;
712
724
  }
713
725
 
714
- 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)));
715
727
 
716
728
  case 60:
717
- if (!(params['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
729
+ if (!(params['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
718
730
  _context3.next = 62;
719
731
  break;
720
732
  }
721
733
 
722
- 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)));
723
735
 
724
736
  case 62:
725
- if (!(params['site_header'] && !(0, _utils.isString)(params['site_header']))) {
737
+ if (!(params['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
726
738
  _context3.next = 64;
727
739
  break;
728
740
  }
729
741
 
730
- 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)));
731
743
 
732
744
  case 64:
733
- if (!(params['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
745
+ if (!(params['site_header'] && !(0, _utils.isString)(params['site_header']))) {
734
746
  _context3.next = 66;
735
747
  break;
736
748
  }
737
749
 
738
- 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)));
739
751
 
740
752
  case 66:
741
- if (!(params['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
753
+ if (!(params['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
742
754
  _context3.next = 68;
743
755
  break;
744
756
  }
745
757
 
746
- 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)));
747
759
 
748
760
  case 68:
749
- if (!(params['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
761
+ if (!(params['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
750
762
  _context3.next = 70;
751
763
  break;
752
764
  }
753
765
 
754
- 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)));
755
767
 
756
768
  case 70:
757
- if (!(params['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
769
+ if (!(params['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
758
770
  _context3.next = 72;
759
771
  break;
760
772
  }
761
773
 
762
- 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)));
763
775
 
764
776
  case 72:
765
- if (!(params['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
777
+ if (!(params['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
766
778
  _context3.next = 74;
767
779
  break;
768
780
  }
769
781
 
770
- 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)));
771
783
 
772
784
  case 74:
773
- if (!(params['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
785
+ if (!(params['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
774
786
  _context3.next = 76;
775
787
  break;
776
788
  }
777
789
 
778
- 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)));
779
791
 
780
792
  case 76:
781
- if (!(params['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
793
+ if (!(params['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
782
794
  _context3.next = 78;
783
795
  break;
784
796
  }
785
797
 
786
- 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)));
787
799
 
788
800
  case 78:
789
- if (!(params['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
801
+ if (!(params['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
790
802
  _context3.next = 80;
791
803
  break;
792
804
  }
793
805
 
794
- 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)));
795
807
 
796
808
  case 80:
797
- if (!(params['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
809
+ if (!(params['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
798
810
  _context3.next = 82;
799
811
  break;
800
812
  }
801
813
 
802
- 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)));
803
815
 
804
816
  case 82:
805
- if (!(params['ldap_host_2'] && !(0, _utils.isString)(params['ldap_host_2']))) {
817
+ if (!(params['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
806
818
  _context3.next = 84;
807
819
  break;
808
820
  }
809
821
 
810
- 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)));
811
823
 
812
824
  case 84:
813
- 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']))) {
814
826
  _context3.next = 86;
815
827
  break;
816
828
  }
817
829
 
818
- 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)));
819
831
 
820
832
  case 86:
821
- if (!(params['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
833
+ if (!(params['ldap_host_3'] && !(0, _utils.isString)(params['ldap_host_3']))) {
822
834
  _context3.next = 88;
823
835
  break;
824
836
  }
825
837
 
826
- 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)));
827
839
 
828
840
  case 88:
829
- if (!(params['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
841
+ if (!(params['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
830
842
  _context3.next = 90;
831
843
  break;
832
844
  }
833
845
 
834
- 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)));
835
847
 
836
848
  case 90:
837
- if (!(params['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
849
+ if (!(params['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
838
850
  _context3.next = 92;
839
851
  break;
840
852
  }
841
853
 
842
- 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)));
843
855
 
844
856
  case 92:
845
- if (!(params['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
857
+ if (!(params['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
846
858
  _context3.next = 94;
847
859
  break;
848
860
  }
849
861
 
850
- 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)));
851
863
 
852
864
  case 94:
853
- if (!(params['ldap_user_action'] && !(0, _utils.isString)(params['ldap_user_action']))) {
865
+ if (!(params['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
854
866
  _context3.next = 96;
855
867
  break;
856
868
  }
857
869
 
858
- 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)));
859
871
 
860
872
  case 96:
861
- 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']))) {
862
874
  _context3.next = 98;
863
875
  break;
864
876
  }
865
877
 
866
- 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)));
867
879
 
868
880
  case 98:
869
- 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']))) {
870
882
  _context3.next = 100;
871
883
  break;
872
884
  }
873
885
 
874
- 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)));
875
887
 
876
888
  case 100:
877
- 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']))) {
878
890
  _context3.next = 102;
879
891
  break;
880
892
  }
881
893
 
882
- 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)));
883
895
 
884
896
  case 102:
885
- 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']))) {
886
898
  _context3.next = 104;
887
899
  break;
888
900
  }
889
901
 
890
- 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)));
891
903
 
892
904
  case 104:
893
- 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']))) {
894
906
  _context3.next = 106;
895
907
  break;
896
908
  }
897
909
 
898
- 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)));
899
911
 
900
912
  case 106:
901
- 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']))) {
902
914
  _context3.next = 108;
903
915
  break;
904
916
  }
905
917
 
906
- 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)));
907
919
 
908
920
  case 108:
909
- 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']))) {
910
922
  _context3.next = 110;
911
923
  break;
912
924
  }
913
925
 
914
- 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)));
915
927
 
916
928
  case 110:
917
- 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']))) {
918
930
  _context3.next = 112;
919
931
  break;
920
932
  }
921
933
 
922
- 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)));
923
935
 
924
936
  case 112:
925
- _context3.next = 114;
926
- 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)));
927
943
 
928
944
  case 114:
945
+ _context3.next = 116;
946
+ return _Api.default.sendRequest("/site", 'PATCH', params, options);
947
+
948
+ case 116:
929
949
  response = _context3.sent;
930
950
  return _context3.abrupt("return", new Site(response === null || response === void 0 ? void 0 : response.data, options));
931
951
 
932
- case 116:
952
+ case 118:
933
953
  case "end":
934
954
  return _context3.stop();
935
955
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.131",
3
+ "version": "1.0.135",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -109,7 +109,7 @@ class ExternalEvent {
109
109
  // Parameters:
110
110
  // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
111
111
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
112
- // sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at`, `status`, `site_id` or `folder_behavior_id`.
112
+ // sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
113
113
  // filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
114
114
  // filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
115
115
  // filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
@@ -61,6 +61,12 @@ class Site {
61
61
  // boolean # Do Bundles require recipients for sharing?
62
62
  getBundleRequireShareRecipient = () => this.attributes.bundle_require_share_recipient
63
63
 
64
+ // Preview watermark image applied to all bundle items.
65
+ getBundleWatermarkAttachment = () => this.attributes.bundle_watermark_attachment
66
+
67
+ // object # Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
68
+ getBundleWatermarkValue = () => this.attributes.bundle_watermark_value
69
+
64
70
  // string # Page link and button color
65
71
  getColor2Left = () => this.attributes.color2_left
66
72
 
@@ -124,6 +130,12 @@ class Site {
124
130
  // string # Custom domain
125
131
  getDomain = () => this.attributes.domain
126
132
 
133
+ // boolean # Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
134
+ getDomainHstsHeader = () => this.attributes.domain_hsts_header
135
+
136
+ // string # Letsencrypt chain to use when registering SSL Certificate for domain.
137
+ getDomainLetsencryptChain = () => this.attributes.domain_letsencrypt_chain
138
+
127
139
  // email # Main email for this site
128
140
  getEmail = () => this.attributes.email
129
141
 
@@ -405,6 +417,8 @@ class Site {
405
417
  // name - string - Site name
406
418
  // subdomain - string - Site subdomain
407
419
  // domain - string - Custom domain
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.
408
422
  // email - string - Main email for this site
409
423
  // reply_to_email - string - Reply-to email for this site
410
424
  // allow_bundle_names - boolean - Are manual Bundle names allowed?
@@ -510,6 +524,8 @@ class Site {
510
524
  // icon128_delete - boolean - If true, will delete the file stored in icon128
511
525
  // logo_file - file
512
526
  // logo_delete - boolean - If true, will delete the file stored in logo
527
+ // bundle_watermark_attachment_file - file
528
+ // bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
513
529
  // disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
514
530
  // ldap_password_change - string - New LDAP password.
515
531
  // ldap_password_change_confirmation - string - Confirm new LDAP password.
@@ -527,6 +543,10 @@ class Site {
527
543
  throw new Error(`Bad parameter: domain must be of type String, received ${getType(domain)}`)
528
544
  }
529
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
+
530
550
  if (params['email'] && !isString(params['email'])) {
531
551
  throw new Error(`Bad parameter: email must be of type String, received ${getType(email)}`)
532
552
  }