files.com 1.0.308 → 1.0.309
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 +1 -1
- package/docs/models/Bundle.md +2 -0
- package/lib/models/Bundle.js +15 -8
- package/package.json +1 -1
- package/src/models/Bundle.js +4 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.309
|
package/docs/models/Bundle.md
CHANGED
@@ -258,6 +258,7 @@ await bundle.update({
|
|
258
258
|
'require_share_recipient': true,
|
259
259
|
'send_email_receipt_to_uploader': true,
|
260
260
|
'skip_company': true,
|
261
|
+
'start_access_on_date': "2000-01-01T01:00:00Z",
|
261
262
|
'skip_email': true,
|
262
263
|
'skip_name': true,
|
263
264
|
'watermark_attachment_delete': true,
|
@@ -287,6 +288,7 @@ await bundle.update({
|
|
287
288
|
* `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
288
289
|
* `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
|
289
290
|
* `skip_company` (boolean): BundleRegistrations can be saved without providing company?
|
291
|
+
* `start_access_on_date` (string): Date when share will start to be accessible. If `nil` access granted right after create.
|
290
292
|
* `skip_email` (boolean): BundleRegistrations can be saved without providing email?
|
291
293
|
* `skip_name` (boolean): BundleRegistrations can be saved without providing name?
|
292
294
|
* `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
|
package/lib/models/Bundle.js
CHANGED
@@ -426,6 +426,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
426
426
|
// require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
427
427
|
// send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
|
428
428
|
// skip_company - boolean - BundleRegistrations can be saved without providing company?
|
429
|
+
// start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
|
429
430
|
// skip_email - boolean - BundleRegistrations can be saved without providing email?
|
430
431
|
// skip_name - boolean - BundleRegistrations can be saved without providing name?
|
431
432
|
// watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
|
@@ -529,26 +530,32 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
|
|
529
530
|
}
|
530
531
|
throw new errors.InvalidParameterError("Bad parameter: permissions must be of type String, received ".concat((0, _utils.getType)(permissions)));
|
531
532
|
case 32:
|
533
|
+
if (!(params['start_access_on_date'] && !(0, _utils.isString)(params['start_access_on_date']))) {
|
534
|
+
_context2.next = 34;
|
535
|
+
break;
|
536
|
+
}
|
537
|
+
throw new errors.InvalidParameterError("Bad parameter: start_access_on_date must be of type String, received ".concat((0, _utils.getType)(start_access_on_date)));
|
538
|
+
case 34:
|
532
539
|
if (params['id']) {
|
533
|
-
_context2.next =
|
540
|
+
_context2.next = 40;
|
534
541
|
break;
|
535
542
|
}
|
536
543
|
if (!_this.attributes.id) {
|
537
|
-
_context2.next =
|
544
|
+
_context2.next = 39;
|
538
545
|
break;
|
539
546
|
}
|
540
547
|
params['id'] = _this.id;
|
541
|
-
_context2.next =
|
548
|
+
_context2.next = 40;
|
542
549
|
break;
|
543
|
-
case
|
550
|
+
case 39:
|
544
551
|
throw new errors.MissingParameterError('Parameter missing: id');
|
545
|
-
case 38:
|
546
|
-
_context2.next = 40;
|
547
|
-
return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
548
552
|
case 40:
|
553
|
+
_context2.next = 42;
|
554
|
+
return _Api.default.sendRequest("/bundles/".concat(encodeURIComponent(params['id'])), 'PATCH', params, _this.options);
|
555
|
+
case 42:
|
549
556
|
response = _context2.sent;
|
550
557
|
return _context2.abrupt("return", new Bundle(response === null || response === void 0 ? void 0 : response.data, _this.options));
|
551
|
-
case
|
558
|
+
case 44:
|
552
559
|
case "end":
|
553
560
|
return _context2.stop();
|
554
561
|
}
|
package/package.json
CHANGED
package/src/models/Bundle.js
CHANGED
@@ -384,6 +384,7 @@ class Bundle {
|
|
384
384
|
// require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
|
385
385
|
// send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
|
386
386
|
// skip_company - boolean - BundleRegistrations can be saved without providing company?
|
387
|
+
// start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
|
387
388
|
// skip_email - boolean - BundleRegistrations can be saved without providing email?
|
388
389
|
// skip_name - boolean - BundleRegistrations can be saved without providing name?
|
389
390
|
// watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
|
@@ -437,6 +438,9 @@ class Bundle {
|
|
437
438
|
if (params['permissions'] && !isString(params['permissions'])) {
|
438
439
|
throw new errors.InvalidParameterError(`Bad parameter: permissions must be of type String, received ${getType(permissions)}`)
|
439
440
|
}
|
441
|
+
if (params['start_access_on_date'] && !isString(params['start_access_on_date'])) {
|
442
|
+
throw new errors.InvalidParameterError(`Bad parameter: start_access_on_date must be of type String, received ${getType(start_access_on_date)}`)
|
443
|
+
}
|
440
444
|
|
441
445
|
if (!params['id']) {
|
442
446
|
if (this.attributes.id) {
|