files.com 1.0.280 → 1.0.282

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.0.280
1
+ 1.0.282
@@ -7,6 +7,7 @@
7
7
  "code": "abc123",
8
8
  "url": "https://subdomain.files.com/f/12345678",
9
9
  "description": "The public description of the bundle.",
10
+ "expires_at": "2000-01-01T01:00:00Z",
10
11
  "password_protected": true,
11
12
  "permissions": "read",
12
13
  "preview_only": true,
@@ -35,7 +36,6 @@
35
36
  "id": 1,
36
37
  "created_at": "2000-01-01T01:00:00Z",
37
38
  "dont_separate_submissions_by_folder": true,
38
- "expires_at": "2000-01-01T01:00:00Z",
39
39
  "max_uses": 1,
40
40
  "note": "The internal note on the bundle.",
41
41
  "path_template": "{{name}}_{{ip}}",
@@ -59,9 +59,10 @@
59
59
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
60
60
  * `url` (string): Public URL of Share Link
61
61
  * `description` (string): Public description
62
+ * `expires_at` (date-time): Bundle expiration date/time
62
63
  * `password_protected` (boolean): Is this bundle password protected?
63
64
  * `permissions` (string): Permissions that apply to Folders in this Share Link.
64
- * `preview_only` (boolean): Restrict users to previewing files only?
65
+ * `preview_only` (boolean): DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
65
66
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
66
67
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
67
68
  * `clickwrap_body` (string): Legal text that must be agreed to prior to accessing Bundle.
@@ -72,7 +73,6 @@
72
73
  * `id` (int64): Bundle ID
73
74
  * `created_at` (date-time): Bundle created at date/time
74
75
  * `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
75
- * `expires_at` (date-time): Bundle expiration date/time
76
76
  * `max_uses` (int64): Maximum number of times bundle can be accessed
77
77
  * `note` (string): Bundle internal note
78
78
  * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
@@ -180,7 +180,7 @@ await Bundle.create({
180
180
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
181
181
  * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
182
182
  * `permissions` (string): Permissions that apply to Folders in this Share Link.
183
- * `preview_only` (boolean): Restrict users to previewing files only?
183
+ * `preview_only` (boolean): DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
184
184
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
185
185
  * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
186
186
  * `inbox_id` (int64): ID of the associated inbox, if available.
@@ -266,7 +266,7 @@ await bundle.update({
266
266
  * `note` (string): Bundle internal note
267
267
  * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
268
268
  * `permissions` (string): Permissions that apply to Folders in this Share Link.
269
- * `preview_only` (boolean): Restrict users to previewing files only?
269
+ * `preview_only` (boolean): DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
270
270
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
271
271
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
272
272
  * `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
@@ -283,6 +283,7 @@ await bundle.update({
283
283
  "code": "abc123",
284
284
  "url": "https://subdomain.files.com/f/12345678",
285
285
  "description": "The public description of the bundle.",
286
+ "expires_at": "2000-01-01T01:00:00Z",
286
287
  "password_protected": true,
287
288
  "permissions": "read",
288
289
  "preview_only": true,
@@ -311,7 +312,6 @@ await bundle.update({
311
312
  "id": 1,
312
313
  "created_at": "2000-01-01T01:00:00Z",
313
314
  "dont_separate_submissions_by_folder": true,
314
- "expires_at": "2000-01-01T01:00:00Z",
315
315
  "max_uses": 1,
316
316
  "note": "The internal note on the bundle.",
317
317
  "path_template": "{{name}}_{{ip}}",
@@ -52,6 +52,13 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
52
52
  (0, _defineProperty2.default)(this, "setDescription", function (value) {
53
53
  _this.attributes.description = value;
54
54
  });
55
+ // date-time # Bundle expiration date/time
56
+ (0, _defineProperty2.default)(this, "getExpiresAt", function () {
57
+ return _this.attributes.expires_at;
58
+ });
59
+ (0, _defineProperty2.default)(this, "setExpiresAt", function (value) {
60
+ _this.attributes.expires_at = value;
61
+ });
55
62
  // boolean # Is this bundle password protected?
56
63
  (0, _defineProperty2.default)(this, "getPasswordProtected", function () {
57
64
  return _this.attributes.password_protected;
@@ -66,7 +73,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
66
73
  (0, _defineProperty2.default)(this, "setPermissions", function (value) {
67
74
  _this.attributes.permissions = value;
68
75
  });
69
- // boolean # Restrict users to previewing files only?
76
+ // boolean # DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
70
77
  (0, _defineProperty2.default)(this, "getPreviewOnly", function () {
71
78
  return _this.attributes.preview_only;
72
79
  });
@@ -140,13 +147,6 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
140
147
  (0, _defineProperty2.default)(this, "setDontSeparateSubmissionsByFolder", function (value) {
141
148
  _this.attributes.dont_separate_submissions_by_folder = value;
142
149
  });
143
- // date-time # Bundle expiration date/time
144
- (0, _defineProperty2.default)(this, "getExpiresAt", function () {
145
- return _this.attributes.expires_at;
146
- });
147
- (0, _defineProperty2.default)(this, "setExpiresAt", function (value) {
148
- _this.attributes.expires_at = value;
149
- });
150
150
  // int64 # Maximum number of times bundle can be accessed
151
151
  (0, _defineProperty2.default)(this, "getMaxUses", function () {
152
152
  return _this.attributes.max_uses;
@@ -372,7 +372,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
372
372
  // note - string - Bundle internal note
373
373
  // path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
374
374
  // permissions - string - Permissions that apply to Folders in this Share Link.
375
- // preview_only - boolean - Restrict users to previewing files only?
375
+ // preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
376
376
  // require_registration - boolean - Show a registration page that captures the downloader's name and email address?
377
377
  // require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
378
378
  // send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
@@ -707,7 +707,7 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
707
707
  // code - string - Bundle code. This code forms the end part of the Public URL.
708
708
  // path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
709
709
  // permissions - string - Permissions that apply to Folders in this Share Link.
710
- // preview_only - boolean - Restrict users to previewing files only?
710
+ // preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
711
711
  // require_registration - boolean - Show a registration page that captures the downloader's name and email address?
712
712
  // clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
713
713
  // inbox_id - int64 - ID of the associated inbox, if available.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.280",
3
+ "version": "1.0.282",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -44,6 +44,13 @@ class Bundle {
44
44
  this.attributes.description = value
45
45
  }
46
46
 
47
+ // date-time # Bundle expiration date/time
48
+ getExpiresAt = () => this.attributes.expires_at
49
+
50
+ setExpiresAt = value => {
51
+ this.attributes.expires_at = value
52
+ }
53
+
47
54
  // boolean # Is this bundle password protected?
48
55
  getPasswordProtected = () => this.attributes.password_protected
49
56
 
@@ -58,7 +65,7 @@ class Bundle {
58
65
  this.attributes.permissions = value
59
66
  }
60
67
 
61
- // boolean # Restrict users to previewing files only?
68
+ // boolean # DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
62
69
  getPreviewOnly = () => this.attributes.preview_only
63
70
 
64
71
  setPreviewOnly = value => {
@@ -131,13 +138,6 @@ class Bundle {
131
138
  this.attributes.dont_separate_submissions_by_folder = value
132
139
  }
133
140
 
134
- // date-time # Bundle expiration date/time
135
- getExpiresAt = () => this.attributes.expires_at
136
-
137
- setExpiresAt = value => {
138
- this.attributes.expires_at = value
139
- }
140
-
141
141
  // int64 # Maximum number of times bundle can be accessed
142
142
  getMaxUses = () => this.attributes.max_uses
143
143
 
@@ -330,7 +330,7 @@ class Bundle {
330
330
  // note - string - Bundle internal note
331
331
  // path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
332
332
  // permissions - string - Permissions that apply to Folders in this Share Link.
333
- // preview_only - boolean - Restrict users to previewing files only?
333
+ // preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
334
334
  // require_registration - boolean - Show a registration page that captures the downloader's name and email address?
335
335
  // require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
336
336
  // send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
@@ -513,7 +513,7 @@ class Bundle {
513
513
  // code - string - Bundle code. This code forms the end part of the Public URL.
514
514
  // path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
515
515
  // permissions - string - Permissions that apply to Folders in this Share Link.
516
- // preview_only - boolean - Restrict users to previewing files only?
516
+ // preview_only - boolean - DEPRECATED: Restrict users to previewing files only. Use `permissions` instead.
517
517
  // require_registration - boolean - Show a registration page that captures the downloader's name and email address?
518
518
  // clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
519
519
  // inbox_id - int64 - ID of the associated inbox, if available.