files.com 1.2.248 → 1.2.250

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/_VERSION +1 -1
  2. package/docs/models/Bundle.md +4 -2
  3. package/docs/models/FormFieldSet.md +5 -2
  4. package/lib/Api.js +72 -71
  5. package/lib/Files.js +1 -1
  6. package/lib/isomorphic/File.node.js +5 -5
  7. package/lib/models/ActionNotificationExport.js +38 -38
  8. package/lib/models/ActionNotificationExportResult.js +14 -14
  9. package/lib/models/ApiKey.js +100 -100
  10. package/lib/models/ApiRequestLog.js +8 -8
  11. package/lib/models/App.js +8 -8
  12. package/lib/models/As2IncomingMessage.js +10 -10
  13. package/lib/models/As2OutgoingMessage.js +10 -10
  14. package/lib/models/As2Partner.js +101 -101
  15. package/lib/models/As2Station.js +81 -81
  16. package/lib/models/Automation.js +167 -167
  17. package/lib/models/AutomationLog.js +8 -8
  18. package/lib/models/AutomationRun.js +24 -24
  19. package/lib/models/BandwidthSnapshot.js +8 -8
  20. package/lib/models/Behavior.js +106 -106
  21. package/lib/models/Bundle.js +143 -143
  22. package/lib/models/BundleAction.js +10 -10
  23. package/lib/models/BundleDownload.js +12 -12
  24. package/lib/models/BundleNotification.js +69 -69
  25. package/lib/models/BundleRecipient.js +40 -40
  26. package/lib/models/BundleRegistration.js +12 -12
  27. package/lib/models/Clickwrap.js +79 -79
  28. package/lib/models/DnsRecord.js +8 -8
  29. package/lib/models/EmailIncomingMessage.js +8 -8
  30. package/lib/models/EmailLog.js +8 -8
  31. package/lib/models/ExavaultApiRequestLog.js +8 -8
  32. package/lib/models/ExternalEvent.js +36 -36
  33. package/lib/models/File.js +269 -269
  34. package/lib/models/FileComment.js +70 -70
  35. package/lib/models/FileCommentReaction.js +34 -34
  36. package/lib/models/FileMigration.js +10 -10
  37. package/lib/models/FileMigrationLog.js +8 -8
  38. package/lib/models/Folder.js +36 -36
  39. package/lib/models/FormFieldSet.js +78 -71
  40. package/lib/models/FtpActionLog.js +8 -8
  41. package/lib/models/GpgKey.js +81 -81
  42. package/lib/models/Group.js +83 -83
  43. package/lib/models/GroupUser.js +89 -89
  44. package/lib/models/History.js +88 -88
  45. package/lib/models/HistoryExport.js +64 -64
  46. package/lib/models/HistoryExportResult.js +14 -14
  47. package/lib/models/InboxRecipient.js +36 -36
  48. package/lib/models/InboxRegistration.js +10 -10
  49. package/lib/models/InboxUpload.js +8 -8
  50. package/lib/models/Invoice.js +18 -18
  51. package/lib/models/IpAddress.js +32 -32
  52. package/lib/models/Lock.js +51 -51
  53. package/lib/models/Message.js +100 -100
  54. package/lib/models/MessageComment.js +78 -78
  55. package/lib/models/MessageCommentReaction.js +54 -54
  56. package/lib/models/MessageReaction.js +54 -54
  57. package/lib/models/Notification.js +91 -91
  58. package/lib/models/OutboundConnectionLog.js +8 -8
  59. package/lib/models/Payment.js +18 -18
  60. package/lib/models/Permission.js +54 -54
  61. package/lib/models/Priority.js +14 -14
  62. package/lib/models/Project.js +70 -70
  63. package/lib/models/PublicHostingRequestLog.js +8 -8
  64. package/lib/models/PublicKey.js +78 -78
  65. package/lib/models/RemoteBandwidthSnapshot.js +8 -8
  66. package/lib/models/RemoteServer.js +362 -362
  67. package/lib/models/Request.js +60 -60
  68. package/lib/models/Restore.js +24 -24
  69. package/lib/models/Session.js +21 -21
  70. package/lib/models/SettingsChange.js +8 -8
  71. package/lib/models/SftpActionLog.js +8 -8
  72. package/lib/models/SftpHostKey.js +67 -67
  73. package/lib/models/ShareGroup.js +79 -79
  74. package/lib/models/SiemHttpDestination.js +158 -158
  75. package/lib/models/Site.js +150 -150
  76. package/lib/models/Snapshot.js +85 -85
  77. package/lib/models/SsoStrategy.js +32 -32
  78. package/lib/models/Style.js +48 -48
  79. package/lib/models/SyncLog.js +8 -8
  80. package/lib/models/UsageDailySnapshot.js +8 -8
  81. package/lib/models/UsageSnapshot.js +8 -8
  82. package/lib/models/User.js +215 -215
  83. package/lib/models/UserCipherUse.js +10 -10
  84. package/lib/models/UserLifecycleRule.js +92 -92
  85. package/lib/models/UserRequest.js +56 -56
  86. package/lib/models/UserSftpClientUse.js +10 -10
  87. package/lib/models/WebDavActionLog.js +8 -8
  88. package/lib/models/WebhookTest.js +24 -24
  89. package/package.json +1 -1
  90. package/src/Files.js +1 -1
  91. package/src/models/FormFieldSet.js +7 -0
@@ -734,16 +734,16 @@ _Site = Site;
734
734
  var options,
735
735
  response,
736
736
  _args = arguments;
737
- return _regenerator.default.wrap(function _callee$(_context) {
737
+ return _regenerator.default.wrap(function (_context) {
738
738
  while (1) switch (_context.prev = _context.next) {
739
739
  case 0:
740
740
  options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
741
- _context.next = 3;
741
+ _context.next = 1;
742
742
  return _Api.default.sendRequest('/site', 'GET', {}, options);
743
- case 3:
743
+ case 1:
744
744
  response = _context.sent;
745
745
  return _context.abrupt("return", new _Site(response === null || response === void 0 ? void 0 : response.data, options));
746
- case 5:
746
+ case 2:
747
747
  case "end":
748
748
  return _context.stop();
749
749
  }
@@ -754,17 +754,17 @@ _Site = Site;
754
754
  response,
755
755
  UsageSnapshot,
756
756
  _args2 = arguments;
757
- return _regenerator.default.wrap(function _callee2$(_context2) {
757
+ return _regenerator.default.wrap(function (_context2) {
758
758
  while (1) switch (_context2.prev = _context2.next) {
759
759
  case 0:
760
760
  options = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
761
- _context2.next = 3;
761
+ _context2.next = 1;
762
762
  return _Api.default.sendRequest('/site/usage', 'GET', {}, options);
763
- case 3:
763
+ case 1:
764
764
  response = _context2.sent;
765
765
  UsageSnapshot = require('./UsageSnapshot.js').default;
766
766
  return _context2.abrupt("return", new UsageSnapshot(response === null || response === void 0 ? void 0 : response.data, options));
767
- case 6:
767
+ case 2:
768
768
  case "end":
769
769
  return _context2.stop();
770
770
  }
@@ -941,431 +941,431 @@ _Site = Site;
941
941
  options,
942
942
  response,
943
943
  _args3 = arguments;
944
- return _regenerator.default.wrap(function _callee3$(_context3) {
944
+ return _regenerator.default.wrap(function (_context3) {
945
945
  while (1) switch (_context3.prev = _context3.next) {
946
946
  case 0:
947
947
  params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
948
948
  options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
949
949
  if (!(params.name && !(0, _utils.isString)(params.name))) {
950
- _context3.next = 4;
950
+ _context3.next = 1;
951
951
  break;
952
952
  }
953
953
  throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
954
- case 4:
954
+ case 1:
955
955
  if (!(params.subdomain && !(0, _utils.isString)(params.subdomain))) {
956
- _context3.next = 6;
956
+ _context3.next = 2;
957
957
  break;
958
958
  }
959
959
  throw new errors.InvalidParameterError("Bad parameter: subdomain must be of type String, received ".concat((0, _utils.getType)(params.subdomain)));
960
- case 6:
960
+ case 2:
961
961
  if (!(params.domain && !(0, _utils.isString)(params.domain))) {
962
- _context3.next = 8;
962
+ _context3.next = 3;
963
963
  break;
964
964
  }
965
965
  throw new errors.InvalidParameterError("Bad parameter: domain must be of type String, received ".concat((0, _utils.getType)(params.domain)));
966
- case 8:
966
+ case 3:
967
967
  if (!(params.domain_letsencrypt_chain && !(0, _utils.isString)(params.domain_letsencrypt_chain))) {
968
- _context3.next = 10;
968
+ _context3.next = 4;
969
969
  break;
970
970
  }
971
971
  throw new errors.InvalidParameterError("Bad parameter: domain_letsencrypt_chain must be of type String, received ".concat((0, _utils.getType)(params.domain_letsencrypt_chain)));
972
- case 10:
972
+ case 4:
973
973
  if (!(params.email && !(0, _utils.isString)(params.email))) {
974
- _context3.next = 12;
974
+ _context3.next = 5;
975
975
  break;
976
976
  }
977
977
  throw new errors.InvalidParameterError("Bad parameter: email must be of type String, received ".concat((0, _utils.getType)(params.email)));
978
- case 12:
978
+ case 5:
979
979
  if (!(params.reply_to_email && !(0, _utils.isString)(params.reply_to_email))) {
980
- _context3.next = 14;
980
+ _context3.next = 6;
981
981
  break;
982
982
  }
983
983
  throw new errors.InvalidParameterError("Bad parameter: reply_to_email must be of type String, received ".concat((0, _utils.getType)(params.reply_to_email)));
984
- case 14:
984
+ case 6:
985
985
  if (!(params.bundle_expiration && !(0, _utils.isInt)(params.bundle_expiration))) {
986
- _context3.next = 16;
986
+ _context3.next = 7;
987
987
  break;
988
988
  }
989
989
  throw new errors.InvalidParameterError("Bad parameter: bundle_expiration must be of type Int, received ".concat((0, _utils.getType)(params.bundle_expiration)));
990
- case 16:
990
+ case 7:
991
991
  if (!(params.welcome_email_cc && !(0, _utils.isString)(params.welcome_email_cc))) {
992
- _context3.next = 18;
992
+ _context3.next = 8;
993
993
  break;
994
994
  }
995
995
  throw new errors.InvalidParameterError("Bad parameter: welcome_email_cc must be of type String, received ".concat((0, _utils.getType)(params.welcome_email_cc)));
996
- case 18:
996
+ case 8:
997
997
  if (!(params.welcome_email_subject && !(0, _utils.isString)(params.welcome_email_subject))) {
998
- _context3.next = 20;
998
+ _context3.next = 9;
999
999
  break;
1000
1000
  }
1001
1001
  throw new errors.InvalidParameterError("Bad parameter: welcome_email_subject must be of type String, received ".concat((0, _utils.getType)(params.welcome_email_subject)));
1002
- case 20:
1002
+ case 9:
1003
1003
  if (!(params.welcome_custom_text && !(0, _utils.isString)(params.welcome_custom_text))) {
1004
- _context3.next = 22;
1004
+ _context3.next = 10;
1005
1005
  break;
1006
1006
  }
1007
1007
  throw new errors.InvalidParameterError("Bad parameter: welcome_custom_text must be of type String, received ".concat((0, _utils.getType)(params.welcome_custom_text)));
1008
- case 22:
1008
+ case 10:
1009
1009
  if (!(params.language && !(0, _utils.isString)(params.language))) {
1010
- _context3.next = 24;
1010
+ _context3.next = 11;
1011
1011
  break;
1012
1012
  }
1013
1013
  throw new errors.InvalidParameterError("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(params.language)));
1014
- case 24:
1014
+ case 11:
1015
1015
  if (!(params.default_time_zone && !(0, _utils.isString)(params.default_time_zone))) {
1016
- _context3.next = 26;
1016
+ _context3.next = 12;
1017
1017
  break;
1018
1018
  }
1019
1019
  throw new errors.InvalidParameterError("Bad parameter: default_time_zone must be of type String, received ".concat((0, _utils.getType)(params.default_time_zone)));
1020
- case 26:
1020
+ case 12:
1021
1021
  if (!(params.desktop_app_session_lifetime && !(0, _utils.isInt)(params.desktop_app_session_lifetime))) {
1022
- _context3.next = 28;
1022
+ _context3.next = 13;
1023
1023
  break;
1024
1024
  }
1025
1025
  throw new errors.InvalidParameterError("Bad parameter: desktop_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(params.desktop_app_session_lifetime)));
1026
- case 28:
1026
+ case 13:
1027
1027
  if (!(params.mobile_app_session_lifetime && !(0, _utils.isInt)(params.mobile_app_session_lifetime))) {
1028
- _context3.next = 30;
1028
+ _context3.next = 14;
1029
1029
  break;
1030
1030
  }
1031
1031
  throw new errors.InvalidParameterError("Bad parameter: mobile_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(params.mobile_app_session_lifetime)));
1032
- case 30:
1032
+ case 14:
1033
1033
  if (!(params.welcome_screen && !(0, _utils.isString)(params.welcome_screen))) {
1034
- _context3.next = 32;
1034
+ _context3.next = 15;
1035
1035
  break;
1036
1036
  }
1037
1037
  throw new errors.InvalidParameterError("Bad parameter: welcome_screen must be of type String, received ".concat((0, _utils.getType)(params.welcome_screen)));
1038
- case 32:
1038
+ case 15:
1039
1039
  if (!(params.office_integration_type && !(0, _utils.isString)(params.office_integration_type))) {
1040
- _context3.next = 34;
1040
+ _context3.next = 16;
1041
1041
  break;
1042
1042
  }
1043
1043
  throw new errors.InvalidParameterError("Bad parameter: office_integration_type must be of type String, received ".concat((0, _utils.getType)(params.office_integration_type)));
1044
- case 34:
1044
+ case 16:
1045
1045
  if (!(params.motd_text && !(0, _utils.isString)(params.motd_text))) {
1046
- _context3.next = 36;
1046
+ _context3.next = 17;
1047
1047
  break;
1048
1048
  }
1049
1049
  throw new errors.InvalidParameterError("Bad parameter: motd_text must be of type String, received ".concat((0, _utils.getType)(params.motd_text)));
1050
- case 36:
1050
+ case 17:
1051
1051
  if (!(params.additional_text_file_types && !(0, _utils.isArray)(params.additional_text_file_types))) {
1052
- _context3.next = 38;
1052
+ _context3.next = 18;
1053
1053
  break;
1054
1054
  }
1055
1055
  throw new errors.InvalidParameterError("Bad parameter: additional_text_file_types must be of type Array, received ".concat((0, _utils.getType)(params.additional_text_file_types)));
1056
- case 38:
1056
+ case 18:
1057
1057
  if (!(params.user_lockout_tries && !(0, _utils.isInt)(params.user_lockout_tries))) {
1058
- _context3.next = 40;
1058
+ _context3.next = 19;
1059
1059
  break;
1060
1060
  }
1061
1061
  throw new errors.InvalidParameterError("Bad parameter: user_lockout_tries must be of type Int, received ".concat((0, _utils.getType)(params.user_lockout_tries)));
1062
- case 40:
1062
+ case 19:
1063
1063
  if (!(params.user_lockout_within && !(0, _utils.isInt)(params.user_lockout_within))) {
1064
- _context3.next = 42;
1064
+ _context3.next = 20;
1065
1065
  break;
1066
1066
  }
1067
1067
  throw new errors.InvalidParameterError("Bad parameter: user_lockout_within must be of type Int, received ".concat((0, _utils.getType)(params.user_lockout_within)));
1068
- case 42:
1068
+ case 20:
1069
1069
  if (!(params.user_lockout_lock_period && !(0, _utils.isInt)(params.user_lockout_lock_period))) {
1070
- _context3.next = 44;
1070
+ _context3.next = 21;
1071
1071
  break;
1072
1072
  }
1073
1073
  throw new errors.InvalidParameterError("Bad parameter: user_lockout_lock_period must be of type Int, received ".concat((0, _utils.getType)(params.user_lockout_lock_period)));
1074
- case 44:
1074
+ case 21:
1075
1075
  if (!(params.allowed_countries && !(0, _utils.isString)(params.allowed_countries))) {
1076
- _context3.next = 46;
1076
+ _context3.next = 22;
1077
1077
  break;
1078
1078
  }
1079
1079
  throw new errors.InvalidParameterError("Bad parameter: allowed_countries must be of type String, received ".concat((0, _utils.getType)(params.allowed_countries)));
1080
- case 46:
1080
+ case 22:
1081
1081
  if (!(params.allowed_ips && !(0, _utils.isString)(params.allowed_ips))) {
1082
- _context3.next = 48;
1082
+ _context3.next = 23;
1083
1083
  break;
1084
1084
  }
1085
1085
  throw new errors.InvalidParameterError("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(params.allowed_ips)));
1086
- case 48:
1086
+ case 23:
1087
1087
  if (!(params.disallowed_countries && !(0, _utils.isString)(params.disallowed_countries))) {
1088
- _context3.next = 50;
1088
+ _context3.next = 24;
1089
1089
  break;
1090
1090
  }
1091
1091
  throw new errors.InvalidParameterError("Bad parameter: disallowed_countries must be of type String, received ".concat((0, _utils.getType)(params.disallowed_countries)));
1092
- case 50:
1092
+ case 24:
1093
1093
  if (!(params.days_before_deleting_disabled_users && !(0, _utils.isInt)(params.days_before_deleting_disabled_users))) {
1094
- _context3.next = 52;
1094
+ _context3.next = 25;
1095
1095
  break;
1096
1096
  }
1097
1097
  throw new errors.InvalidParameterError("Bad parameter: days_before_deleting_disabled_users must be of type Int, received ".concat((0, _utils.getType)(params.days_before_deleting_disabled_users)));
1098
- case 52:
1098
+ case 25:
1099
1099
  if (!(params.days_to_retain_backups && !(0, _utils.isInt)(params.days_to_retain_backups))) {
1100
- _context3.next = 54;
1100
+ _context3.next = 26;
1101
1101
  break;
1102
1102
  }
1103
1103
  throw new errors.InvalidParameterError("Bad parameter: days_to_retain_backups must be of type Int, received ".concat((0, _utils.getType)(params.days_to_retain_backups)));
1104
- case 54:
1104
+ case 26:
1105
1105
  if (!(params.max_prior_passwords && !(0, _utils.isInt)(params.max_prior_passwords))) {
1106
- _context3.next = 56;
1106
+ _context3.next = 27;
1107
1107
  break;
1108
1108
  }
1109
1109
  throw new errors.InvalidParameterError("Bad parameter: max_prior_passwords must be of type Int, received ".concat((0, _utils.getType)(params.max_prior_passwords)));
1110
- case 56:
1110
+ case 27:
1111
1111
  if (!(params.password_validity_days && !(0, _utils.isInt)(params.password_validity_days))) {
1112
- _context3.next = 58;
1112
+ _context3.next = 28;
1113
1113
  break;
1114
1114
  }
1115
1115
  throw new errors.InvalidParameterError("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(params.password_validity_days)));
1116
- case 58:
1116
+ case 28:
1117
1117
  if (!(params.password_min_length && !(0, _utils.isInt)(params.password_min_length))) {
1118
- _context3.next = 60;
1118
+ _context3.next = 29;
1119
1119
  break;
1120
1120
  }
1121
1121
  throw new errors.InvalidParameterError("Bad parameter: password_min_length must be of type Int, received ".concat((0, _utils.getType)(params.password_min_length)));
1122
- case 60:
1122
+ case 29:
1123
1123
  if (!(params.bundle_not_found_message && !(0, _utils.isString)(params.bundle_not_found_message))) {
1124
- _context3.next = 62;
1124
+ _context3.next = 30;
1125
1125
  break;
1126
1126
  }
1127
1127
  throw new errors.InvalidParameterError("Bad parameter: bundle_not_found_message must be of type String, received ".concat((0, _utils.getType)(params.bundle_not_found_message)));
1128
- case 62:
1128
+ case 30:
1129
1129
  if (!(params.bundle_registration_notifications && !(0, _utils.isString)(params.bundle_registration_notifications))) {
1130
- _context3.next = 64;
1130
+ _context3.next = 31;
1131
1131
  break;
1132
1132
  }
1133
1133
  throw new errors.InvalidParameterError("Bad parameter: bundle_registration_notifications must be of type String, received ".concat((0, _utils.getType)(params.bundle_registration_notifications)));
1134
- case 64:
1134
+ case 31:
1135
1135
  if (!(params.bundle_activity_notifications && !(0, _utils.isString)(params.bundle_activity_notifications))) {
1136
- _context3.next = 66;
1136
+ _context3.next = 32;
1137
1137
  break;
1138
1138
  }
1139
1139
  throw new errors.InvalidParameterError("Bad parameter: bundle_activity_notifications must be of type String, received ".concat((0, _utils.getType)(params.bundle_activity_notifications)));
1140
- case 66:
1140
+ case 32:
1141
1141
  if (!(params.bundle_upload_receipt_notifications && !(0, _utils.isString)(params.bundle_upload_receipt_notifications))) {
1142
- _context3.next = 68;
1142
+ _context3.next = 33;
1143
1143
  break;
1144
1144
  }
1145
1145
  throw new errors.InvalidParameterError("Bad parameter: bundle_upload_receipt_notifications must be of type String, received ".concat((0, _utils.getType)(params.bundle_upload_receipt_notifications)));
1146
- case 68:
1146
+ case 33:
1147
1147
  if (!(params.disable_users_from_inactivity_period_days && !(0, _utils.isInt)(params.disable_users_from_inactivity_period_days))) {
1148
- _context3.next = 70;
1148
+ _context3.next = 34;
1149
1149
  break;
1150
1150
  }
1151
1151
  throw new errors.InvalidParameterError("Bad parameter: disable_users_from_inactivity_period_days must be of type Int, received ".concat((0, _utils.getType)(params.disable_users_from_inactivity_period_days)));
1152
- case 70:
1152
+ case 34:
1153
1153
  if (!(params.sftp_host_key_type && !(0, _utils.isString)(params.sftp_host_key_type))) {
1154
- _context3.next = 72;
1154
+ _context3.next = 35;
1155
1155
  break;
1156
1156
  }
1157
1157
  throw new errors.InvalidParameterError("Bad parameter: sftp_host_key_type must be of type String, received ".concat((0, _utils.getType)(params.sftp_host_key_type)));
1158
- case 72:
1158
+ case 35:
1159
1159
  if (!(params.active_sftp_host_key_id && !(0, _utils.isInt)(params.active_sftp_host_key_id))) {
1160
- _context3.next = 74;
1160
+ _context3.next = 36;
1161
1161
  break;
1162
1162
  }
1163
1163
  throw new errors.InvalidParameterError("Bad parameter: active_sftp_host_key_id must be of type Int, received ".concat((0, _utils.getType)(params.active_sftp_host_key_id)));
1164
- case 74:
1164
+ case 36:
1165
1165
  if (!(params.bundle_recipient_blacklist_domains && !(0, _utils.isArray)(params.bundle_recipient_blacklist_domains))) {
1166
- _context3.next = 76;
1166
+ _context3.next = 37;
1167
1167
  break;
1168
1168
  }
1169
1169
  throw new errors.InvalidParameterError("Bad parameter: bundle_recipient_blacklist_domains must be of type Array, received ".concat((0, _utils.getType)(params.bundle_recipient_blacklist_domains)));
1170
- case 76:
1170
+ case 37:
1171
1171
  if (!(params.require_2fa_user_type && !(0, _utils.isString)(params.require_2fa_user_type))) {
1172
- _context3.next = 78;
1172
+ _context3.next = 38;
1173
1173
  break;
1174
1174
  }
1175
1175
  throw new errors.InvalidParameterError("Bad parameter: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(params.require_2fa_user_type)));
1176
- case 78:
1176
+ case 38:
1177
1177
  if (!(params.color2_top && !(0, _utils.isString)(params.color2_top))) {
1178
- _context3.next = 80;
1178
+ _context3.next = 39;
1179
1179
  break;
1180
1180
  }
1181
1181
  throw new errors.InvalidParameterError("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(params.color2_top)));
1182
- case 80:
1182
+ case 39:
1183
1183
  if (!(params.color2_left && !(0, _utils.isString)(params.color2_left))) {
1184
- _context3.next = 82;
1184
+ _context3.next = 40;
1185
1185
  break;
1186
1186
  }
1187
1187
  throw new errors.InvalidParameterError("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(params.color2_left)));
1188
- case 82:
1188
+ case 40:
1189
1189
  if (!(params.color2_link && !(0, _utils.isString)(params.color2_link))) {
1190
- _context3.next = 84;
1190
+ _context3.next = 41;
1191
1191
  break;
1192
1192
  }
1193
1193
  throw new errors.InvalidParameterError("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(params.color2_link)));
1194
- case 84:
1194
+ case 41:
1195
1195
  if (!(params.color2_text && !(0, _utils.isString)(params.color2_text))) {
1196
- _context3.next = 86;
1196
+ _context3.next = 42;
1197
1197
  break;
1198
1198
  }
1199
1199
  throw new errors.InvalidParameterError("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(params.color2_text)));
1200
- case 86:
1200
+ case 42:
1201
1201
  if (!(params.color2_top_text && !(0, _utils.isString)(params.color2_top_text))) {
1202
- _context3.next = 88;
1202
+ _context3.next = 43;
1203
1203
  break;
1204
1204
  }
1205
1205
  throw new errors.InvalidParameterError("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(params.color2_top_text)));
1206
- case 88:
1206
+ case 43:
1207
1207
  if (!(params.site_header && !(0, _utils.isString)(params.site_header))) {
1208
- _context3.next = 90;
1208
+ _context3.next = 44;
1209
1209
  break;
1210
1210
  }
1211
1211
  throw new errors.InvalidParameterError("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(params.site_header)));
1212
- case 90:
1212
+ case 44:
1213
1213
  if (!(params.site_footer && !(0, _utils.isString)(params.site_footer))) {
1214
- _context3.next = 92;
1214
+ _context3.next = 45;
1215
1215
  break;
1216
1216
  }
1217
1217
  throw new errors.InvalidParameterError("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(params.site_footer)));
1218
- case 92:
1218
+ case 45:
1219
1219
  if (!(params.login_help_text && !(0, _utils.isString)(params.login_help_text))) {
1220
- _context3.next = 94;
1220
+ _context3.next = 46;
1221
1221
  break;
1222
1222
  }
1223
1223
  throw new errors.InvalidParameterError("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(params.login_help_text)));
1224
- case 94:
1224
+ case 46:
1225
1225
  if (!(params.smtp_address && !(0, _utils.isString)(params.smtp_address))) {
1226
- _context3.next = 96;
1226
+ _context3.next = 47;
1227
1227
  break;
1228
1228
  }
1229
1229
  throw new errors.InvalidParameterError("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(params.smtp_address)));
1230
- case 96:
1230
+ case 47:
1231
1231
  if (!(params.smtp_authentication && !(0, _utils.isString)(params.smtp_authentication))) {
1232
- _context3.next = 98;
1232
+ _context3.next = 48;
1233
1233
  break;
1234
1234
  }
1235
1235
  throw new errors.InvalidParameterError("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(params.smtp_authentication)));
1236
- case 98:
1236
+ case 48:
1237
1237
  if (!(params.smtp_from && !(0, _utils.isString)(params.smtp_from))) {
1238
- _context3.next = 100;
1238
+ _context3.next = 49;
1239
1239
  break;
1240
1240
  }
1241
1241
  throw new errors.InvalidParameterError("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(params.smtp_from)));
1242
- case 100:
1242
+ case 49:
1243
1243
  if (!(params.smtp_username && !(0, _utils.isString)(params.smtp_username))) {
1244
- _context3.next = 102;
1244
+ _context3.next = 50;
1245
1245
  break;
1246
1246
  }
1247
1247
  throw new errors.InvalidParameterError("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(params.smtp_username)));
1248
- case 102:
1248
+ case 50:
1249
1249
  if (!(params.smtp_port && !(0, _utils.isInt)(params.smtp_port))) {
1250
- _context3.next = 104;
1250
+ _context3.next = 51;
1251
1251
  break;
1252
1252
  }
1253
1253
  throw new errors.InvalidParameterError("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(params.smtp_port)));
1254
- case 104:
1254
+ case 51:
1255
1255
  if (!(params.ldap_type && !(0, _utils.isString)(params.ldap_type))) {
1256
- _context3.next = 106;
1256
+ _context3.next = 52;
1257
1257
  break;
1258
1258
  }
1259
1259
  throw new errors.InvalidParameterError("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(params.ldap_type)));
1260
- case 106:
1260
+ case 52:
1261
1261
  if (!(params.ldap_host && !(0, _utils.isString)(params.ldap_host))) {
1262
- _context3.next = 108;
1262
+ _context3.next = 53;
1263
1263
  break;
1264
1264
  }
1265
1265
  throw new errors.InvalidParameterError("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(params.ldap_host)));
1266
- case 108:
1266
+ case 53:
1267
1267
  if (!(params.ldap_host_2 && !(0, _utils.isString)(params.ldap_host_2))) {
1268
- _context3.next = 110;
1268
+ _context3.next = 54;
1269
1269
  break;
1270
1270
  }
1271
1271
  throw new errors.InvalidParameterError("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_2)));
1272
- case 110:
1272
+ case 54:
1273
1273
  if (!(params.ldap_host_3 && !(0, _utils.isString)(params.ldap_host_3))) {
1274
- _context3.next = 112;
1274
+ _context3.next = 55;
1275
1275
  break;
1276
1276
  }
1277
1277
  throw new errors.InvalidParameterError("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_3)));
1278
- case 112:
1278
+ case 55:
1279
1279
  if (!(params.ldap_port && !(0, _utils.isInt)(params.ldap_port))) {
1280
- _context3.next = 114;
1280
+ _context3.next = 56;
1281
1281
  break;
1282
1282
  }
1283
1283
  throw new errors.InvalidParameterError("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(params.ldap_port)));
1284
- case 114:
1284
+ case 56:
1285
1285
  if (!(params.ldap_username && !(0, _utils.isString)(params.ldap_username))) {
1286
- _context3.next = 116;
1286
+ _context3.next = 57;
1287
1287
  break;
1288
1288
  }
1289
1289
  throw new errors.InvalidParameterError("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(params.ldap_username)));
1290
- case 116:
1290
+ case 57:
1291
1291
  if (!(params.ldap_username_field && !(0, _utils.isString)(params.ldap_username_field))) {
1292
- _context3.next = 118;
1292
+ _context3.next = 58;
1293
1293
  break;
1294
1294
  }
1295
1295
  throw new errors.InvalidParameterError("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(params.ldap_username_field)));
1296
- case 118:
1296
+ case 58:
1297
1297
  if (!(params.ldap_domain && !(0, _utils.isString)(params.ldap_domain))) {
1298
- _context3.next = 120;
1298
+ _context3.next = 59;
1299
1299
  break;
1300
1300
  }
1301
1301
  throw new errors.InvalidParameterError("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(params.ldap_domain)));
1302
- case 120:
1302
+ case 59:
1303
1303
  if (!(params.ldap_user_action && !(0, _utils.isString)(params.ldap_user_action))) {
1304
- _context3.next = 122;
1304
+ _context3.next = 60;
1305
1305
  break;
1306
1306
  }
1307
1307
  throw new errors.InvalidParameterError("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_user_action)));
1308
- case 122:
1308
+ case 60:
1309
1309
  if (!(params.ldap_group_action && !(0, _utils.isString)(params.ldap_group_action))) {
1310
- _context3.next = 124;
1310
+ _context3.next = 61;
1311
1311
  break;
1312
1312
  }
1313
1313
  throw new errors.InvalidParameterError("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_action)));
1314
- case 124:
1314
+ case 61:
1315
1315
  if (!(params.ldap_user_include_groups && !(0, _utils.isString)(params.ldap_user_include_groups))) {
1316
- _context3.next = 126;
1316
+ _context3.next = 62;
1317
1317
  break;
1318
1318
  }
1319
1319
  throw new errors.InvalidParameterError("Bad parameter: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(params.ldap_user_include_groups)));
1320
- case 126:
1320
+ case 62:
1321
1321
  if (!(params.ldap_group_exclusion && !(0, _utils.isString)(params.ldap_group_exclusion))) {
1322
- _context3.next = 128;
1322
+ _context3.next = 63;
1323
1323
  break;
1324
1324
  }
1325
1325
  throw new errors.InvalidParameterError("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_exclusion)));
1326
- case 128:
1326
+ case 63:
1327
1327
  if (!(params.ldap_group_inclusion && !(0, _utils.isString)(params.ldap_group_inclusion))) {
1328
- _context3.next = 130;
1328
+ _context3.next = 64;
1329
1329
  break;
1330
1330
  }
1331
1331
  throw new errors.InvalidParameterError("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_inclusion)));
1332
- case 130:
1332
+ case 64:
1333
1333
  if (!(params.ldap_base_dn && !(0, _utils.isString)(params.ldap_base_dn))) {
1334
- _context3.next = 132;
1334
+ _context3.next = 65;
1335
1335
  break;
1336
1336
  }
1337
1337
  throw new errors.InvalidParameterError("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(params.ldap_base_dn)));
1338
- case 132:
1338
+ case 65:
1339
1339
  if (!(params.ldap_password_change && !(0, _utils.isString)(params.ldap_password_change))) {
1340
- _context3.next = 134;
1340
+ _context3.next = 66;
1341
1341
  break;
1342
1342
  }
1343
1343
  throw new errors.InvalidParameterError("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(params.ldap_password_change)));
1344
- case 134:
1344
+ case 66:
1345
1345
  if (!(params.ldap_password_change_confirmation && !(0, _utils.isString)(params.ldap_password_change_confirmation))) {
1346
- _context3.next = 136;
1346
+ _context3.next = 67;
1347
1347
  break;
1348
1348
  }
1349
1349
  throw new errors.InvalidParameterError("Bad parameter: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(params.ldap_password_change_confirmation)));
1350
- case 136:
1350
+ case 67:
1351
1351
  if (!(params.smtp_password && !(0, _utils.isString)(params.smtp_password))) {
1352
- _context3.next = 138;
1352
+ _context3.next = 68;
1353
1353
  break;
1354
1354
  }
1355
1355
  throw new errors.InvalidParameterError("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(params.smtp_password)));
1356
- case 138:
1356
+ case 68:
1357
1357
  if (!(params.session_expiry_minutes && !(0, _utils.isInt)(params.session_expiry_minutes))) {
1358
- _context3.next = 140;
1358
+ _context3.next = 69;
1359
1359
  break;
1360
1360
  }
1361
1361
  throw new errors.InvalidParameterError("Bad parameter: session_expiry_minutes must be of type Int, received ".concat((0, _utils.getType)(params.session_expiry_minutes)));
1362
- case 140:
1363
- _context3.next = 142;
1362
+ case 69:
1363
+ _context3.next = 70;
1364
1364
  return _Api.default.sendRequest('/site', 'PATCH', params, options);
1365
- case 142:
1365
+ case 70:
1366
1366
  response = _context3.sent;
1367
1367
  return _context3.abrupt("return", new _Site(response === null || response === void 0 ? void 0 : response.data, options));
1368
- case 144:
1368
+ case 71:
1369
1369
  case "end":
1370
1370
  return _context3.stop();
1371
1371
  }