files.com 1.0.234 → 1.0.236

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.234
1
+ 1.0.236
@@ -24,6 +24,7 @@
24
24
  "max_uses": 1,
25
25
  "note": "The internal note on the bundle.",
26
26
  "path_template": "{{name}}_{{ip}}",
27
+ "send_email_receipt_to_uploader": true,
27
28
  "user_id": 1,
28
29
  "username": "user",
29
30
  "clickwrap_id": 1,
@@ -59,6 +60,7 @@
59
60
  * `max_uses` (int64): Maximum number of times bundle can be accessed
60
61
  * `note` (string): Bundle internal note
61
62
  * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
63
+ * `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
62
64
  * `user_id` (int64): Bundle creator user ID
63
65
  * `username` (string): Bundle creator username
64
66
  * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
@@ -133,6 +135,7 @@ await Bundle.create({
133
135
  'clickwrap_id': 1,
134
136
  'inbox_id': 1,
135
137
  'require_share_recipient': true,
138
+ 'send_email_receipt_to_uploader': true,
136
139
  'skip_email': true,
137
140
  'skip_name': true,
138
141
  'skip_company': true,
@@ -159,6 +162,7 @@ await Bundle.create({
159
162
  * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
160
163
  * `inbox_id` (int64): ID of the associated inbox, if available.
161
164
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
165
+ * `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
162
166
  * `skip_email` (boolean): BundleRegistrations can be saved without providing email?
163
167
  * `skip_name` (boolean): BundleRegistrations can be saved without providing name?
164
168
  * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
@@ -210,9 +214,10 @@ await bundle.update({
210
214
  'preview_only': true,
211
215
  'require_registration': true,
212
216
  'require_share_recipient': true,
217
+ 'send_email_receipt_to_uploader': true,
218
+ 'skip_company': true,
213
219
  'skip_email': true,
214
220
  'skip_name': true,
215
- 'skip_company': true,
216
221
  'watermark_attachment_delete': true,
217
222
  })
218
223
  ```
@@ -236,9 +241,10 @@ await bundle.update({
236
241
  * `preview_only` (boolean): Restrict users to previewing files only?
237
242
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
238
243
  * `require_share_recipient` (boolean): Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
244
+ * `send_email_receipt_to_uploader` (boolean): Send delivery receipt to the uploader. Note: For writable share only
245
+ * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
239
246
  * `skip_email` (boolean): BundleRegistrations can be saved without providing email?
240
247
  * `skip_name` (boolean): BundleRegistrations can be saved without providing name?
241
- * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
242
248
  * `watermark_attachment_delete` (boolean): If true, will delete the file stored in watermark_attachment
243
249
  * `watermark_attachment_file` (file): Preview watermark image applied to all bundle items.
244
250
 
@@ -266,6 +272,7 @@ await bundle.update({
266
272
  "max_uses": 1,
267
273
  "note": "The internal note on the bundle.",
268
274
  "path_template": "{{name}}_{{ip}}",
275
+ "send_email_receipt_to_uploader": true,
269
276
  "user_id": 1,
270
277
  "username": "user",
271
278
  "clickwrap_id": 1,
@@ -17,7 +17,8 @@
17
17
  },
18
18
  "bundle_code": "example",
19
19
  "bundle_id": 1,
20
- "bundle_recipient_id": 1
20
+ "bundle_recipient_id": 1,
21
+ "created_at": "2000-01-01T01:00:00Z"
21
22
  }
22
23
  ```
23
24
 
@@ -33,6 +34,7 @@
33
34
  * `bundle_code` (string): Bundle URL code
34
35
  * `bundle_id` (int64): Id of associated bundle
35
36
  * `bundle_recipient_id` (int64): Id of associated bundle recipient
37
+ * `created_at` (date-time): Registration creation date/time
36
38
 
37
39
  ---
38
40
 
@@ -15,7 +15,8 @@
15
15
  },
16
16
  "inbox_id": 1,
17
17
  "inbox_recipient_id": 1,
18
- "inbox_title": "example"
18
+ "inbox_title": "example",
19
+ "created_at": "2000-01-01T01:00:00Z"
19
20
  }
20
21
  ```
21
22
 
@@ -29,6 +30,7 @@
29
30
  * `inbox_id` (int64): Id of associated inbox
30
31
  * `inbox_recipient_id` (int64): Id of associated inbox recipient
31
32
  * `inbox_title` (string): Title of associated inbox
33
+ * `created_at` (date-time): Registration creation date/time
32
34
 
33
35
  ---
34
36
 
@@ -7,8 +7,7 @@
7
7
  "amount": 1.0,
8
8
  "created_at": "2000-01-01T01:00:00Z",
9
9
  "invoice_id": 1,
10
- "payment_id": 1,
11
- "updated_at": "2000-01-01T01:00:00Z"
10
+ "payment_id": 1
12
11
  }
13
12
  ```
14
13
 
@@ -16,4 +15,3 @@
16
15
  * `created_at` (date-time): Payment line item created at date/time
17
16
  * `invoice_id` (int64): Invoice ID
18
17
  * `payment_id` (int64): Payment ID
19
- * `updated_at` (date-time): Payment line item updated at date/time
@@ -124,6 +124,7 @@
124
124
  "smtp_port": 25,
125
125
  "smtp_username": "mail",
126
126
  "session_expiry": 6.0,
127
+ "session_expiry_minutes": 360,
127
128
  "ssl_required": true,
128
129
  "subdomain": "mysite",
129
130
  "switch_to_plan_date": "2000-01-01T01:00:00Z",
@@ -267,6 +268,7 @@
267
268
  * `smtp_port` (int64): SMTP server port
268
269
  * `smtp_username` (string): SMTP server username
269
270
  * `session_expiry` (double): Session expiry in hours
271
+ * `session_expiry_minutes` (int64): Session expiry in minutes
270
272
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
271
273
  * `subdomain` (string): Site subdomain
272
274
  * `switch_to_plan_date` (date-time): If switching plans, when does the new plan take effect?
@@ -7,13 +7,9 @@
7
7
  "id": 1,
8
8
  "start_at": "2000-01-01T01:00:00Z",
9
9
  "end_at": "2000-01-01T01:00:00Z",
10
- "created_at": "2000-01-01T01:00:00Z",
11
10
  "high_water_user_count": 1.0,
12
11
  "current_storage": 1.0,
13
12
  "high_water_storage": 1.0,
14
- "total_downloads": 1,
15
- "total_uploads": 1,
16
- "updated_at": "2000-01-01T01:00:00Z",
17
13
  "usage_by_top_level_dir": {
18
14
  "key": "example value"
19
15
  },
@@ -31,13 +27,9 @@
31
27
  * `id` (int64): Usage snapshot ID
32
28
  * `start_at` (date-time): Usage snapshot start date/time
33
29
  * `end_at` (date-time): Usage snapshot end date/time
34
- * `created_at` (date-time): DEPRECATED: Usage snapshot created at date/time
35
30
  * `high_water_user_count` (double): Highest user count number in time period
36
31
  * `current_storage` (double): Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)
37
32
  * `high_water_storage` (double): Highest Storage Usage GB recorded in time period (used for billing)
38
- * `total_downloads` (int64): DEPRECATED: Number of downloads in report time period
39
- * `total_uploads` (int64): DEPRECATED: Number of uploads in time period
40
- * `updated_at` (date-time): DEPRECATED: The last time this site usage report was updated
41
33
  * `usage_by_top_level_dir` (object): Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
42
34
  * `root_storage` (double): Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)
43
35
  * `deleted_files_counted_in_minimum` (double): Storage Usage for files that are deleted but uploaded within last 30 days as of end date (not necessarily high water mark, which is used for billing)
@@ -62,7 +62,6 @@
62
62
  "externally_managed": true,
63
63
  "time_zone": "Pacific Time (US & Canada)",
64
64
  "type_of_2fa": "yubi",
65
- "updated_at": "2000-01-01T01:00:00Z",
66
65
  "user_root": "example",
67
66
  "days_remaining_until_password_expire": 1,
68
67
  "password_expire_at": "2000-01-01T01:00:00Z"
@@ -125,7 +124,6 @@
125
124
  * `externally_managed` (boolean): Is this user managed by a SsoStrategy?
126
125
  * `time_zone` (string): User time zone
127
126
  * `type_of_2fa` (string): Type(s) of 2FA methods in use. Will be either `sms`, `totp`, `u2f`, `yubi`, or multiple values sorted alphabetically and joined by an underscore.
128
- * `updated_at` (date-time): User record most recently updated at. Note this may be incremented because of internal or external updates.
129
127
  * `user_root` (string): Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
130
128
  * `days_remaining_until_password_expire` (int64): Number of days remaining until password expires
131
129
  * `password_expire_at` (date-time): Password expiration datetime
@@ -482,7 +480,6 @@ await user.update({
482
480
  "externally_managed": true,
483
481
  "time_zone": "Pacific Time (US & Canada)",
484
482
  "type_of_2fa": "yubi",
485
- "updated_at": "2000-01-01T01:00:00Z",
486
483
  "user_root": "example",
487
484
  "days_remaining_until_password_expire": 1,
488
485
  "password_expire_at": "2000-01-01T01:00:00Z"
@@ -148,6 +148,12 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
148
148
  (0, _defineProperty2.default)(this, "setPathTemplate", function (value) {
149
149
  _this.attributes.path_template = value;
150
150
  });
151
+ (0, _defineProperty2.default)(this, "getSendEmailReceiptToUploader", function () {
152
+ return _this.attributes.send_email_receipt_to_uploader;
153
+ });
154
+ (0, _defineProperty2.default)(this, "setSendEmailReceiptToUploader", function (value) {
155
+ _this.attributes.send_email_receipt_to_uploader = value;
156
+ });
151
157
  (0, _defineProperty2.default)(this, "getUserId", function () {
152
158
  return _this.attributes.user_id;
153
159
  });
@@ -67,6 +67,9 @@ var BundleRegistration = /*#__PURE__*/(0, _createClass2.default)(function Bundle
67
67
  (0, _defineProperty2.default)(this, "getBundleRecipientId", function () {
68
68
  return _this.attributes.bundle_recipient_id;
69
69
  });
70
+ (0, _defineProperty2.default)(this, "getCreatedAt", function () {
71
+ return _this.attributes.created_at;
72
+ });
70
73
  Object.entries(attributes).forEach(function (_ref) {
71
74
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
72
75
  key = _ref2[0],
@@ -61,6 +61,9 @@ var InboxRegistration = /*#__PURE__*/(0, _createClass2.default)(function InboxRe
61
61
  (0, _defineProperty2.default)(this, "getInboxTitle", function () {
62
62
  return _this.attributes.inbox_title;
63
63
  });
64
+ (0, _defineProperty2.default)(this, "getCreatedAt", function () {
65
+ return _this.attributes.created_at;
66
+ });
64
67
  Object.entries(attributes).forEach(function (_ref) {
65
68
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
66
69
  key = _ref2[0],
@@ -41,9 +41,6 @@ var PaymentLineItem = /*#__PURE__*/(0, _createClass2.default)(function PaymentLi
41
41
  (0, _defineProperty2.default)(this, "getPaymentId", function () {
42
42
  return _this.attributes.payment_id;
43
43
  });
44
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
45
- return _this.attributes.updated_at;
46
- });
47
44
  Object.entries(attributes).forEach(function (_ref) {
48
45
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
49
46
  key = _ref2[0],
@@ -385,6 +385,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
385
385
  (0, _defineProperty2.default)(this, "getSessionExpiry", function () {
386
386
  return _this.attributes.session_expiry;
387
387
  });
388
+ (0, _defineProperty2.default)(this, "getSessionExpiryMinutes", function () {
389
+ return _this.attributes.session_expiry_minutes;
390
+ });
388
391
  (0, _defineProperty2.default)(this, "getSslRequired", function () {
389
392
  return _this.attributes.ssl_required;
390
393
  });
@@ -40,9 +40,6 @@ var UsageSnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageSnapsh
40
40
  (0, _defineProperty2.default)(this, "getEndAt", function () {
41
41
  return _this.attributes.end_at;
42
42
  });
43
- (0, _defineProperty2.default)(this, "getCreatedAt", function () {
44
- return _this.attributes.created_at;
45
- });
46
43
  (0, _defineProperty2.default)(this, "getHighWaterUserCount", function () {
47
44
  return _this.attributes.high_water_user_count;
48
45
  });
@@ -52,15 +49,6 @@ var UsageSnapshot = /*#__PURE__*/(0, _createClass2.default)(function UsageSnapsh
52
49
  (0, _defineProperty2.default)(this, "getHighWaterStorage", function () {
53
50
  return _this.attributes.high_water_storage;
54
51
  });
55
- (0, _defineProperty2.default)(this, "getTotalDownloads", function () {
56
- return _this.attributes.total_downloads;
57
- });
58
- (0, _defineProperty2.default)(this, "getTotalUploads", function () {
59
- return _this.attributes.total_uploads;
60
- });
61
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
62
- return _this.attributes.updated_at;
63
- });
64
52
  (0, _defineProperty2.default)(this, "getUsageByTopLevelDir", function () {
65
53
  return _this.attributes.usage_by_top_level_dir;
66
54
  });
@@ -364,9 +364,6 @@ var User = /*#__PURE__*/(0, _createClass2.default)(function User() {
364
364
  (0, _defineProperty2.default)(this, "setTypeOf2fa", function (value) {
365
365
  _this.attributes.type_of_2fa = value;
366
366
  });
367
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
368
- return _this.attributes.updated_at;
369
- });
370
367
  (0, _defineProperty2.default)(this, "getUserRoot", function () {
371
368
  return _this.attributes.user_root;
372
369
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.234",
3
+ "version": "1.0.236",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -159,6 +159,13 @@ class Bundle {
159
159
  this.attributes.path_template = value
160
160
  }
161
161
 
162
+ // boolean # Send delivery receipt to the uploader. Note: For writable share only
163
+ getSendEmailReceiptToUploader = () => this.attributes.send_email_receipt_to_uploader
164
+
165
+ setSendEmailReceiptToUploader = value => {
166
+ this.attributes.send_email_receipt_to_uploader = value
167
+ }
168
+
162
169
  // int64 # Bundle creator user ID
163
170
  getUserId = () => this.attributes.user_id
164
171
 
@@ -303,9 +310,10 @@ class Bundle {
303
310
  // preview_only - boolean - Restrict users to previewing files only?
304
311
  // require_registration - boolean - Show a registration page that captures the downloader's name and email address?
305
312
  // require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
313
+ // send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
314
+ // skip_company - boolean - BundleRegistrations can be saved without providing company?
306
315
  // skip_email - boolean - BundleRegistrations can be saved without providing email?
307
316
  // skip_name - boolean - BundleRegistrations can be saved without providing name?
308
- // skip_company - boolean - BundleRegistrations can be saved without providing company?
309
317
  // watermark_attachment_delete - boolean - If true, will delete the file stored in watermark_attachment
310
318
  // watermark_attachment_file - file - Preview watermark image applied to all bundle items.
311
319
  update = async (params = {}) => {
@@ -486,6 +494,7 @@ class Bundle {
486
494
  // clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
487
495
  // inbox_id - int64 - ID of the associated inbox, if available.
488
496
  // require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
497
+ // send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
489
498
  // skip_email - boolean - BundleRegistrations can be saved without providing email?
490
499
  // skip_name - boolean - BundleRegistrations can be saved without providing name?
491
500
  // skip_company - boolean - BundleRegistrations can be saved without providing company?
@@ -59,6 +59,9 @@ class BundleRegistration {
59
59
  // int64 # Id of associated bundle recipient
60
60
  getBundleRecipientId = () => this.attributes.bundle_recipient_id
61
61
 
62
+ // date-time # Registration creation date/time
63
+ getCreatedAt = () => this.attributes.created_at
64
+
62
65
 
63
66
  // Parameters:
64
67
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
@@ -53,6 +53,9 @@ class InboxRegistration {
53
53
  // string # Title of associated inbox
54
54
  getInboxTitle = () => this.attributes.inbox_title
55
55
 
56
+ // date-time # Registration creation date/time
57
+ getCreatedAt = () => this.attributes.created_at
58
+
56
59
 
57
60
  // Parameters:
58
61
  // 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
@@ -35,9 +35,6 @@ class PaymentLineItem {
35
35
  // int64 # Payment ID
36
36
  getPaymentId = () => this.attributes.payment_id
37
37
 
38
- // date-time # Payment line item updated at date/time
39
- getUpdatedAt = () => this.attributes.updated_at
40
-
41
38
  }
42
39
 
43
40
  export default PaymentLineItem
@@ -377,6 +377,9 @@ class Site {
377
377
  // double # Session expiry in hours
378
378
  getSessionExpiry = () => this.attributes.session_expiry
379
379
 
380
+ // int64 # Session expiry in minutes
381
+ getSessionExpiryMinutes = () => this.attributes.session_expiry_minutes
382
+
380
383
  // boolean # Is SSL required? Disabling this is insecure.
381
384
  getSslRequired = () => this.attributes.ssl_required
382
385
 
@@ -32,9 +32,6 @@ class UsageSnapshot {
32
32
  // date-time # Usage snapshot end date/time
33
33
  getEndAt = () => this.attributes.end_at
34
34
 
35
- // date-time # DEPRECATED: Usage snapshot created at date/time
36
- getCreatedAt = () => this.attributes.created_at
37
-
38
35
  // double # Highest user count number in time period
39
36
  getHighWaterUserCount = () => this.attributes.high_water_user_count
40
37
 
@@ -44,15 +41,6 @@ class UsageSnapshot {
44
41
  // double # Highest Storage Usage GB recorded in time period (used for billing)
45
42
  getHighWaterStorage = () => this.attributes.high_water_storage
46
43
 
47
- // int64 # DEPRECATED: Number of downloads in report time period
48
- getTotalDownloads = () => this.attributes.total_downloads
49
-
50
- // int64 # DEPRECATED: Number of uploads in time period
51
- getTotalUploads = () => this.attributes.total_uploads
52
-
53
- // date-time # DEPRECATED: The last time this site usage report was updated
54
- getUpdatedAt = () => this.attributes.updated_at
55
-
56
44
  // object # Storage Usage - map of root folders to their usage as of end date (not necessarily high water mark, which is used for billing)
57
45
  getUsageByTopLevelDir = () => this.attributes.usage_by_top_level_dir
58
46
 
@@ -411,9 +411,6 @@ class User {
411
411
  this.attributes.type_of_2fa = value
412
412
  }
413
413
 
414
- // date-time # User record most recently updated at. Note this may be incremented because of internal or external updates.
415
- getUpdatedAt = () => this.attributes.updated_at
416
-
417
414
  // string # Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set.) Note that this is not used for API, Desktop, or Web interface.
418
415
  getUserRoot = () => this.attributes.user_root
419
416