files.com 1.2.371 → 1.2.372

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.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.371
1
+ 1.2.372
@@ -303,6 +303,7 @@
303
303
  "users_can_create_api_keys": true,
304
304
  "users_can_create_ssh_keys": true,
305
305
  "welcome_custom_text": "Welcome to my site!",
306
+ "email_footer_custom_text": "Copyright © %Y MyCompany Inc.",
306
307
  "welcome_email_cc": "example",
307
308
  "welcome_email_subject": "example",
308
309
  "welcome_email_enabled": true,
@@ -479,6 +480,7 @@
479
480
  * `users_can_create_api_keys` (boolean): Allow users to create their own API keys?
480
481
  * `users_can_create_ssh_keys` (boolean): Allow users to create their own SSH keys?
481
482
  * `welcome_custom_text` (string): Custom text send in user welcome email
483
+ * `email_footer_custom_text` (string): Custom footer text for system-generated emails. Supports standard strftime date/time patterns like %Y (4-digit year), %m (month), %d (day).
482
484
  * `welcome_email_cc` (email): Include this email in welcome emails if enabled
483
485
  * `welcome_email_subject` (string): Include this email subject in welcome emails if enabled
484
486
  * `welcome_email_enabled` (boolean): Will the welcome email be sent to new users?
@@ -634,6 +636,7 @@ await Site.update({
634
636
  'site_public_footer': "example",
635
637
  'login_help_text': "Login page help text.",
636
638
  'use_dedicated_ips_for_smtp': false,
639
+ 'email_footer_custom_text': "Copyright © %Y MyCompany Inc.",
637
640
  'smtp_address': "smtp.my-mail-server.com",
638
641
  'smtp_authentication': "plain",
639
642
  'smtp_from': "me@my-mail-server.com",
@@ -796,6 +799,7 @@ await Site.update({
796
799
  * `site_public_footer` (string): Custom site footer text for public pages
797
800
  * `login_help_text` (string): Login help text
798
801
  * `use_dedicated_ips_for_smtp` (boolean): If using custom SMTP, should we use dedicated IPs to deliver emails?
802
+ * `email_footer_custom_text` (string): Custom footer text for system-generated emails. Supports standard strftime date/time patterns like %Y (4-digit year), %m (month), %d (day).
799
803
  * `smtp_address` (string): SMTP server hostname or IP
800
804
  * `smtp_authentication` (string): SMTP server authentication type
801
805
  * `smtp_from` (string): From address to use when mailing through custom SMTP
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.371';
15
+ var version = '1.2.372';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -700,6 +700,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
700
700
  (0, _defineProperty2.default)(this, "getWelcomeCustomText", function () {
701
701
  return _this.attributes.welcome_custom_text;
702
702
  });
703
+ // string # Custom footer text for system-generated emails. Supports standard strftime date/time patterns like %Y (4-digit year), %m (month), %d (day).
704
+ (0, _defineProperty2.default)(this, "getEmailFooterCustomText", function () {
705
+ return _this.attributes.email_footer_custom_text;
706
+ });
703
707
  // email # Include this email in welcome emails if enabled
704
708
  (0, _defineProperty2.default)(this, "getWelcomeEmailCc", function () {
705
709
  return _this.attributes.welcome_email_cc;
@@ -904,6 +908,7 @@ _Site = Site;
904
908
  // site_public_footer - string - Custom site footer text for public pages
905
909
  // login_help_text - string - Login help text
906
910
  // use_dedicated_ips_for_smtp - boolean - If using custom SMTP, should we use dedicated IPs to deliver emails?
911
+ // email_footer_custom_text - string - Custom footer text for system-generated emails. Supports standard strftime date/time patterns like %Y (4-digit year), %m (month), %d (day).
907
912
  // smtp_address - string - SMTP server hostname or IP
908
913
  // smtp_authentication - string - SMTP server authentication type
909
914
  // smtp_from - string - From address to use when mailing through custom SMTP
@@ -1237,150 +1242,156 @@ _Site = Site;
1237
1242
  }
1238
1243
  throw new errors.InvalidParameterError("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(params.login_help_text)));
1239
1244
  case 47:
1240
- if (!(params.smtp_address && !(0, _utils.isString)(params.smtp_address))) {
1245
+ if (!(params.email_footer_custom_text && !(0, _utils.isString)(params.email_footer_custom_text))) {
1241
1246
  _context3.next = 48;
1242
1247
  break;
1243
1248
  }
1244
- throw new errors.InvalidParameterError("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(params.smtp_address)));
1249
+ throw new errors.InvalidParameterError("Bad parameter: email_footer_custom_text must be of type String, received ".concat((0, _utils.getType)(params.email_footer_custom_text)));
1245
1250
  case 48:
1246
- if (!(params.smtp_authentication && !(0, _utils.isString)(params.smtp_authentication))) {
1251
+ if (!(params.smtp_address && !(0, _utils.isString)(params.smtp_address))) {
1247
1252
  _context3.next = 49;
1248
1253
  break;
1249
1254
  }
1250
- throw new errors.InvalidParameterError("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(params.smtp_authentication)));
1255
+ throw new errors.InvalidParameterError("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(params.smtp_address)));
1251
1256
  case 49:
1252
- if (!(params.smtp_from && !(0, _utils.isString)(params.smtp_from))) {
1257
+ if (!(params.smtp_authentication && !(0, _utils.isString)(params.smtp_authentication))) {
1253
1258
  _context3.next = 50;
1254
1259
  break;
1255
1260
  }
1256
- throw new errors.InvalidParameterError("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(params.smtp_from)));
1261
+ throw new errors.InvalidParameterError("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(params.smtp_authentication)));
1257
1262
  case 50:
1258
- if (!(params.smtp_username && !(0, _utils.isString)(params.smtp_username))) {
1263
+ if (!(params.smtp_from && !(0, _utils.isString)(params.smtp_from))) {
1259
1264
  _context3.next = 51;
1260
1265
  break;
1261
1266
  }
1262
- throw new errors.InvalidParameterError("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(params.smtp_username)));
1267
+ throw new errors.InvalidParameterError("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(params.smtp_from)));
1263
1268
  case 51:
1264
- if (!(params.smtp_port && !(0, _utils.isInt)(params.smtp_port))) {
1269
+ if (!(params.smtp_username && !(0, _utils.isString)(params.smtp_username))) {
1265
1270
  _context3.next = 52;
1266
1271
  break;
1267
1272
  }
1268
- throw new errors.InvalidParameterError("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(params.smtp_port)));
1273
+ throw new errors.InvalidParameterError("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(params.smtp_username)));
1269
1274
  case 52:
1270
- if (!(params.ldap_type && !(0, _utils.isString)(params.ldap_type))) {
1275
+ if (!(params.smtp_port && !(0, _utils.isInt)(params.smtp_port))) {
1271
1276
  _context3.next = 53;
1272
1277
  break;
1273
1278
  }
1274
- throw new errors.InvalidParameterError("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(params.ldap_type)));
1279
+ throw new errors.InvalidParameterError("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(params.smtp_port)));
1275
1280
  case 53:
1276
- if (!(params.ldap_host && !(0, _utils.isString)(params.ldap_host))) {
1281
+ if (!(params.ldap_type && !(0, _utils.isString)(params.ldap_type))) {
1277
1282
  _context3.next = 54;
1278
1283
  break;
1279
1284
  }
1280
- throw new errors.InvalidParameterError("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(params.ldap_host)));
1285
+ throw new errors.InvalidParameterError("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(params.ldap_type)));
1281
1286
  case 54:
1282
- if (!(params.ldap_host_2 && !(0, _utils.isString)(params.ldap_host_2))) {
1287
+ if (!(params.ldap_host && !(0, _utils.isString)(params.ldap_host))) {
1283
1288
  _context3.next = 55;
1284
1289
  break;
1285
1290
  }
1286
- throw new errors.InvalidParameterError("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_2)));
1291
+ throw new errors.InvalidParameterError("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(params.ldap_host)));
1287
1292
  case 55:
1288
- if (!(params.ldap_host_3 && !(0, _utils.isString)(params.ldap_host_3))) {
1293
+ if (!(params.ldap_host_2 && !(0, _utils.isString)(params.ldap_host_2))) {
1289
1294
  _context3.next = 56;
1290
1295
  break;
1291
1296
  }
1292
- throw new errors.InvalidParameterError("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_3)));
1297
+ throw new errors.InvalidParameterError("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_2)));
1293
1298
  case 56:
1294
- if (!(params.ldap_port && !(0, _utils.isInt)(params.ldap_port))) {
1299
+ if (!(params.ldap_host_3 && !(0, _utils.isString)(params.ldap_host_3))) {
1295
1300
  _context3.next = 57;
1296
1301
  break;
1297
1302
  }
1298
- throw new errors.InvalidParameterError("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(params.ldap_port)));
1303
+ throw new errors.InvalidParameterError("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(params.ldap_host_3)));
1299
1304
  case 57:
1300
- if (!(params.ldap_username && !(0, _utils.isString)(params.ldap_username))) {
1305
+ if (!(params.ldap_port && !(0, _utils.isInt)(params.ldap_port))) {
1301
1306
  _context3.next = 58;
1302
1307
  break;
1303
1308
  }
1304
- throw new errors.InvalidParameterError("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(params.ldap_username)));
1309
+ throw new errors.InvalidParameterError("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(params.ldap_port)));
1305
1310
  case 58:
1306
- if (!(params.ldap_username_field && !(0, _utils.isString)(params.ldap_username_field))) {
1311
+ if (!(params.ldap_username && !(0, _utils.isString)(params.ldap_username))) {
1307
1312
  _context3.next = 59;
1308
1313
  break;
1309
1314
  }
1310
- throw new errors.InvalidParameterError("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(params.ldap_username_field)));
1315
+ throw new errors.InvalidParameterError("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(params.ldap_username)));
1311
1316
  case 59:
1312
- if (!(params.ldap_domain && !(0, _utils.isString)(params.ldap_domain))) {
1317
+ if (!(params.ldap_username_field && !(0, _utils.isString)(params.ldap_username_field))) {
1313
1318
  _context3.next = 60;
1314
1319
  break;
1315
1320
  }
1316
- throw new errors.InvalidParameterError("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(params.ldap_domain)));
1321
+ throw new errors.InvalidParameterError("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(params.ldap_username_field)));
1317
1322
  case 60:
1318
- if (!(params.ldap_user_action && !(0, _utils.isString)(params.ldap_user_action))) {
1323
+ if (!(params.ldap_domain && !(0, _utils.isString)(params.ldap_domain))) {
1319
1324
  _context3.next = 61;
1320
1325
  break;
1321
1326
  }
1322
- throw new errors.InvalidParameterError("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_user_action)));
1327
+ throw new errors.InvalidParameterError("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(params.ldap_domain)));
1323
1328
  case 61:
1324
- if (!(params.ldap_group_action && !(0, _utils.isString)(params.ldap_group_action))) {
1329
+ if (!(params.ldap_user_action && !(0, _utils.isString)(params.ldap_user_action))) {
1325
1330
  _context3.next = 62;
1326
1331
  break;
1327
1332
  }
1328
- throw new errors.InvalidParameterError("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_action)));
1333
+ throw new errors.InvalidParameterError("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_user_action)));
1329
1334
  case 62:
1330
- if (!(params.ldap_user_include_groups && !(0, _utils.isString)(params.ldap_user_include_groups))) {
1335
+ if (!(params.ldap_group_action && !(0, _utils.isString)(params.ldap_group_action))) {
1331
1336
  _context3.next = 63;
1332
1337
  break;
1333
1338
  }
1334
- 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)));
1339
+ throw new errors.InvalidParameterError("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_action)));
1335
1340
  case 63:
1336
- if (!(params.ldap_group_exclusion && !(0, _utils.isString)(params.ldap_group_exclusion))) {
1341
+ if (!(params.ldap_user_include_groups && !(0, _utils.isString)(params.ldap_user_include_groups))) {
1337
1342
  _context3.next = 64;
1338
1343
  break;
1339
1344
  }
1340
- throw new errors.InvalidParameterError("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_exclusion)));
1345
+ 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)));
1341
1346
  case 64:
1342
- if (!(params.ldap_group_inclusion && !(0, _utils.isString)(params.ldap_group_inclusion))) {
1347
+ if (!(params.ldap_group_exclusion && !(0, _utils.isString)(params.ldap_group_exclusion))) {
1343
1348
  _context3.next = 65;
1344
1349
  break;
1345
1350
  }
1346
- throw new errors.InvalidParameterError("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_inclusion)));
1351
+ throw new errors.InvalidParameterError("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_exclusion)));
1347
1352
  case 65:
1348
- if (!(params.ldap_base_dn && !(0, _utils.isString)(params.ldap_base_dn))) {
1353
+ if (!(params.ldap_group_inclusion && !(0, _utils.isString)(params.ldap_group_inclusion))) {
1349
1354
  _context3.next = 66;
1350
1355
  break;
1351
1356
  }
1352
- throw new errors.InvalidParameterError("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(params.ldap_base_dn)));
1357
+ throw new errors.InvalidParameterError("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(params.ldap_group_inclusion)));
1353
1358
  case 66:
1354
- if (!(params.ldap_password_change && !(0, _utils.isString)(params.ldap_password_change))) {
1359
+ if (!(params.ldap_base_dn && !(0, _utils.isString)(params.ldap_base_dn))) {
1355
1360
  _context3.next = 67;
1356
1361
  break;
1357
1362
  }
1358
- throw new errors.InvalidParameterError("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(params.ldap_password_change)));
1363
+ throw new errors.InvalidParameterError("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(params.ldap_base_dn)));
1359
1364
  case 67:
1360
- if (!(params.ldap_password_change_confirmation && !(0, _utils.isString)(params.ldap_password_change_confirmation))) {
1365
+ if (!(params.ldap_password_change && !(0, _utils.isString)(params.ldap_password_change))) {
1361
1366
  _context3.next = 68;
1362
1367
  break;
1363
1368
  }
1364
- 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)));
1369
+ throw new errors.InvalidParameterError("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(params.ldap_password_change)));
1365
1370
  case 68:
1366
- if (!(params.smtp_password && !(0, _utils.isString)(params.smtp_password))) {
1371
+ if (!(params.ldap_password_change_confirmation && !(0, _utils.isString)(params.ldap_password_change_confirmation))) {
1367
1372
  _context3.next = 69;
1368
1373
  break;
1369
1374
  }
1370
- throw new errors.InvalidParameterError("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(params.smtp_password)));
1375
+ 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)));
1371
1376
  case 69:
1372
- if (!(params.session_expiry_minutes && !(0, _utils.isInt)(params.session_expiry_minutes))) {
1377
+ if (!(params.smtp_password && !(0, _utils.isString)(params.smtp_password))) {
1373
1378
  _context3.next = 70;
1374
1379
  break;
1375
1380
  }
1376
- throw new errors.InvalidParameterError("Bad parameter: session_expiry_minutes must be of type Int, received ".concat((0, _utils.getType)(params.session_expiry_minutes)));
1381
+ throw new errors.InvalidParameterError("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(params.smtp_password)));
1377
1382
  case 70:
1378
- _context3.next = 71;
1379
- return _Api.default.sendRequest('/site', 'PATCH', params, options);
1383
+ if (!(params.session_expiry_minutes && !(0, _utils.isInt)(params.session_expiry_minutes))) {
1384
+ _context3.next = 71;
1385
+ break;
1386
+ }
1387
+ throw new errors.InvalidParameterError("Bad parameter: session_expiry_minutes must be of type Int, received ".concat((0, _utils.getType)(params.session_expiry_minutes)));
1380
1388
  case 71:
1389
+ _context3.next = 72;
1390
+ return _Api.default.sendRequest('/site', 'PATCH', params, options);
1391
+ case 72:
1381
1392
  response = _context3.sent;
1382
1393
  return _context3.abrupt("return", new _Site(response === null || response === void 0 ? void 0 : response.data, options));
1383
- case 72:
1394
+ case 73:
1384
1395
  case "end":
1385
1396
  return _context3.stop();
1386
1397
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.371",
3
+ "version": "1.2.372",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.371'
9
+ const version = '1.2.372'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -529,6 +529,9 @@ class Site {
529
529
  // string # Custom text send in user welcome email
530
530
  getWelcomeCustomText = () => this.attributes.welcome_custom_text
531
531
 
532
+ // string # Custom footer text for system-generated emails. Supports standard strftime date/time patterns like %Y (4-digit year), %m (month), %d (day).
533
+ getEmailFooterCustomText = () => this.attributes.email_footer_custom_text
534
+
532
535
  // email # Include this email in welcome emails if enabled
533
536
  getWelcomeEmailCc = () => this.attributes.welcome_email_cc
534
537
 
@@ -686,6 +689,7 @@ class Site {
686
689
  // site_public_footer - string - Custom site footer text for public pages
687
690
  // login_help_text - string - Login help text
688
691
  // use_dedicated_ips_for_smtp - boolean - If using custom SMTP, should we use dedicated IPs to deliver emails?
692
+ // email_footer_custom_text - string - Custom footer text for system-generated emails. Supports standard strftime date/time patterns like %Y (4-digit year), %m (month), %d (day).
689
693
  // smtp_address - string - SMTP server hostname or IP
690
694
  // smtp_authentication - string - SMTP server authentication type
691
695
  // smtp_from - string - From address to use when mailing through custom SMTP
@@ -916,6 +920,10 @@ class Site {
916
920
  throw new errors.InvalidParameterError(`Bad parameter: login_help_text must be of type String, received ${getType(params.login_help_text)}`)
917
921
  }
918
922
 
923
+ if (params.email_footer_custom_text && !isString(params.email_footer_custom_text)) {
924
+ throw new errors.InvalidParameterError(`Bad parameter: email_footer_custom_text must be of type String, received ${getType(params.email_footer_custom_text)}`)
925
+ }
926
+
919
927
  if (params.smtp_address && !isString(params.smtp_address)) {
920
928
  throw new errors.InvalidParameterError(`Bad parameter: smtp_address must be of type String, received ${getType(params.smtp_address)}`)
921
929
  }