Skip to content

Commit fdb1cbe

Browse files
[Bot] push changes from Files.com
1 parent f8db67e commit fdb1cbe

7 files changed

Lines changed: 42 additions & 4 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.643
1+
1.2.644

docs/models/Bundle.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
"id": 1,
5858
"bypasses_site_expiration_rules": true,
5959
"created_at": "2000-01-01T01:00:00Z",
60+
"deleted": true,
61+
"deleted_at": "2000-01-01T01:00:00Z",
6062
"dont_separate_submissions_by_folder": true,
6163
"max_uses": 1,
6264
"note": "The internal note on the bundle.",
@@ -116,6 +118,8 @@
116118
* `id` (int64): Bundle ID
117119
* `bypasses_site_expiration_rules` (boolean): If true, this Share Link bypasses site-wide expiration rules. Only site admins may set this.
118120
* `created_at` (date-time): Bundle created at date/time
121+
* `deleted` (boolean): Indicates if the bundle has been deleted.
122+
* `deleted_at` (date-time): Bundle deleted at date/time
119123
* `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.
120124
* `max_uses` (int64): Maximum number of times bundle can be accessed
121125
* `note` (string): Bundle internal note
@@ -150,6 +154,7 @@
150154
```
151155
await Bundle.list({
152156
'user_id': 1,
157+
'deleted': false,
153158
})
154159
```
155160

@@ -166,6 +171,7 @@ await Bundle.list({
166171
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
167172
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
168173
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
174+
* `deleted` (boolean): If true, only list deleted Share Links.
169175

170176
---
171177

@@ -405,6 +411,8 @@ await bundle.update({
405411
"id": 1,
406412
"bypasses_site_expiration_rules": true,
407413
"created_at": "2000-01-01T01:00:00Z",
414+
"deleted": true,
415+
"deleted_at": "2000-01-01T01:00:00Z",
408416
"dont_separate_submissions_by_folder": true,
409417
"max_uses": 1,
410418
"note": "The internal note on the bundle.",

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.643';
15+
var version = '1.2.644';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/Bundle.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,20 @@ var Bundle = /*#__PURE__*/(0, _createClass2.default)(function Bundle() {
197197
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
198198
return _this.attributes.created_at;
199199
});
200+
// boolean # Indicates if the bundle has been deleted.
201+
(0, _defineProperty2.default)(this, "getDeleted", function () {
202+
return _this.attributes.deleted;
203+
});
204+
(0, _defineProperty2.default)(this, "setDeleted", function (value) {
205+
_this.attributes.deleted = value;
206+
});
207+
// date-time # Bundle deleted at date/time
208+
(0, _defineProperty2.default)(this, "getDeletedAt", function () {
209+
return _this.attributes.deleted_at;
210+
});
211+
(0, _defineProperty2.default)(this, "setDeletedAt", function (value) {
212+
_this.attributes.deleted_at = value;
213+
});
200214
// 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.
201215
(0, _defineProperty2.default)(this, "getDontSeparateSubmissionsByFolder", function () {
202216
return _this.attributes.dont_separate_submissions_by_folder;
@@ -741,6 +755,7 @@ _Bundle = Bundle;
741755
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
742756
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
743757
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
758+
// deleted - boolean - If true, only list deleted Share Links.
744759
(0, _defineProperty2.default)(Bundle, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
745760
var _response$data;
746761
var params,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.643",
3+
"version": "1.2.644",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.643'
9+
const version = '1.2.644'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/Bundle.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,20 @@ class Bundle {
192192
// date-time # Bundle created at date/time
193193
getCreatedAt = () => this.attributes.created_at
194194

195+
// boolean # Indicates if the bundle has been deleted.
196+
getDeleted = () => this.attributes.deleted
197+
198+
setDeleted = value => {
199+
this.attributes.deleted = value
200+
}
201+
202+
// date-time # Bundle deleted at date/time
203+
getDeletedAt = () => this.attributes.deleted_at
204+
205+
setDeletedAt = value => {
206+
this.attributes.deleted_at = value
207+
}
208+
195209
// 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.
196210
getDontSeparateSubmissionsByFolder = () => this.attributes.dont_separate_submissions_by_folder
197211

@@ -594,6 +608,7 @@ class Bundle {
594608
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.
595609
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at` and `expires_at`.
596610
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
611+
// deleted - boolean - If true, only list deleted Share Links.
597612
static list = async (params = {}, options = {}) => {
598613
if (params.user_id && !isInt(params.user_id)) {
599614
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params.user_id)}`)

0 commit comments

Comments
 (0)