Skip to content

Commit 0b5c02a

Browse files
[Bot] push changes from Files.com
1 parent 34a5a60 commit 0b5c02a

File tree

8 files changed

+33
-66
lines changed

8 files changed

+33
-66
lines changed

Diff for: _VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.255
1+
1.0.256

Diff for: docs/models/File.md

+1
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ await file.begin_upload({
322322
"http_method": "PUT",
323323
"next_partsize": 1,
324324
"parallel_parts": true,
325+
"retry_parts": true,
325326
"parameters": {
326327
"key": "example value"
327328
},

Diff for: docs/models/FileUploadPart.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"http_method": "PUT",
1818
"next_partsize": 1,
1919
"parallel_parts": true,
20+
"retry_parts": true,
2021
"parameters": {
2122
"key": "example value"
2223
},
@@ -37,6 +38,7 @@
3738
* `http_method` (string): HTTP Method to use for uploading the part, usually `PUT`
3839
* `next_partsize` (int64): Size in bytes for this part
3940
* `parallel_parts` (boolean): If `true`, multiple parts may be uploaded in parallel. If `false`, be sure to only upload one part at a time, in order.
41+
* `retry_parts` (boolean): If `true`, parts may be retried. If `false`, a part cannot be retried and the upload should be restarted.
4042
* `parameters` (object): Additional HTTP parameters to send with the upload
4143
* `part_number` (int64): Number of this upload part
4244
* `partsize` (int64): Size in bytes for the next upload part

Diff for: docs/models/InboxRecipient.md

-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* `note` (string): A note sent to the recipient with the inbox.
1818
* `recipient` (string): The recipient's email address.
1919
* `sent_at` (date-time): When the Inbox was shared with this recipient.
20-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
2120
* `inbox_id` (int64): Inbox to share.
2221
* `share_after_create` (boolean): Set to true to share the link with the recipient upon creation.
2322

@@ -27,7 +26,6 @@
2726

2827
```
2928
await InboxRecipient.list({
30-
'user_id': 1,
3129
'per_page': 1,
3230
'inbox_id': 1,
3331
})
@@ -36,7 +34,6 @@ await InboxRecipient.list({
3634

3735
### Parameters
3836

39-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
4037
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
4138
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
4239
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
@@ -49,7 +46,6 @@ await InboxRecipient.list({
4946

5047
```
5148
await InboxRecipient.create({
52-
'user_id': 1,
5349
'inbox_id': 1,
5450
'recipient': "[email protected]",
5551
'name': "John Smith",
@@ -62,7 +58,6 @@ await InboxRecipient.create({
6258

6359
### Parameters
6460

65-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
6661
* `inbox_id` (int64): Required - Inbox to share.
6762
* `recipient` (string): Required - Email address to share this inbox with.
6863
* `name` (string): Name of recipient.

Diff for: lib/models/FileUploadPart.js

+4
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ var FileUploadPart = /*#__PURE__*/(0, _createClass2.default)(function FileUpload
6565
(0, _defineProperty2.default)(this, "getParallelParts", function () {
6666
return _this.attributes.parallel_parts;
6767
});
68+
// boolean # If `true`, parts may be retried. If `false`, a part cannot be retried and the upload should be restarted.
69+
(0, _defineProperty2.default)(this, "getRetryParts", function () {
70+
return _this.attributes.retry_parts;
71+
});
6872
// object # Additional HTTP parameters to send with the upload
6973
(0, _defineProperty2.default)(this, "getParameters", function () {
7074
return _this.attributes.parameters;

Diff for: lib/models/InboxRecipient.js

+22-43
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
6666
(0, _defineProperty2.default)(this, "setSentAt", function (value) {
6767
_this.attributes.sent_at = value;
6868
});
69-
// int64 # User ID. Provide a value of `0` to operate the current session's user.
70-
(0, _defineProperty2.default)(this, "getUserId", function () {
71-
return _this.attributes.user_id;
72-
});
73-
(0, _defineProperty2.default)(this, "setUserId", function (value) {
74-
_this.attributes.user_id = value;
75-
});
7669
// int64 # Inbox to share.
7770
(0, _defineProperty2.default)(this, "getInboxId", function () {
7871
return _this.attributes.inbox_id;
@@ -110,7 +103,6 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
110103
this.options = _objectSpread({}, options);
111104
});
112105
// Parameters:
113-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
114106
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
115107
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
116108
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
@@ -133,38 +125,32 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
133125
}
134126
throw new errors.MissingParameterError('Parameter missing: inbox_id');
135127
case 4:
136-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
137-
_context.next = 6;
138-
break;
139-
}
140-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
141-
case 6:
142128
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
143-
_context.next = 8;
129+
_context.next = 6;
144130
break;
145131
}
146132
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
147-
case 8:
133+
case 6:
148134
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
149-
_context.next = 10;
135+
_context.next = 8;
150136
break;
151137
}
152138
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
153-
case 10:
139+
case 8:
154140
if (!(params['inbox_id'] && !(0, _utils.isInt)(params['inbox_id']))) {
155-
_context.next = 12;
141+
_context.next = 10;
156142
break;
157143
}
158144
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params['inbox_id'])));
159-
case 12:
160-
_context.next = 14;
145+
case 10:
146+
_context.next = 12;
161147
return _Api.default.sendRequest("/inbox_recipients", 'GET', params, options);
162-
case 14:
148+
case 12:
163149
response = _context.sent;
164150
return _context.abrupt("return", (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
165151
return new InboxRecipient(obj, options);
166152
})) || []);
167-
case 16:
153+
case 14:
168154
case "end":
169155
return _context.stop();
170156
}
@@ -176,7 +162,6 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
176162
return InboxRecipient.list(params, options);
177163
});
178164
// Parameters:
179-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
180165
// inbox_id (required) - int64 - Inbox to share.
181166
// recipient (required) - string - Email address to share this inbox with.
182167
// name - string - Name of recipient.
@@ -205,48 +190,42 @@ var InboxRecipient = /*#__PURE__*/(0, _createClass2.default)(function InboxRecip
205190
}
206191
throw new errors.MissingParameterError('Parameter missing: recipient');
207192
case 6:
208-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
209-
_context2.next = 8;
210-
break;
211-
}
212-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
213-
case 8:
214193
if (!(params['inbox_id'] && !(0, _utils.isInt)(params['inbox_id']))) {
215-
_context2.next = 10;
194+
_context2.next = 8;
216195
break;
217196
}
218197
throw new errors.InvalidParameterError("Bad parameter: inbox_id must be of type Int, received ".concat((0, _utils.getType)(params['inbox_id'])));
219-
case 10:
198+
case 8:
220199
if (!(params['recipient'] && !(0, _utils.isString)(params['recipient']))) {
221-
_context2.next = 12;
200+
_context2.next = 10;
222201
break;
223202
}
224203
throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params['recipient'])));
225-
case 12:
204+
case 10:
226205
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
227-
_context2.next = 14;
206+
_context2.next = 12;
228207
break;
229208
}
230209
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
231-
case 14:
210+
case 12:
232211
if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
233-
_context2.next = 16;
212+
_context2.next = 14;
234213
break;
235214
}
236215
throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
237-
case 16:
216+
case 14:
238217
if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
239-
_context2.next = 18;
218+
_context2.next = 16;
240219
break;
241220
}
242221
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
243-
case 18:
244-
_context2.next = 20;
222+
case 16:
223+
_context2.next = 18;
245224
return _Api.default.sendRequest("/inbox_recipients", 'POST', params, options);
246-
case 20:
225+
case 18:
247226
response = _context2.sent;
248227
return _context2.abrupt("return", new InboxRecipient(response === null || response === void 0 ? void 0 : response.data, options));
249-
case 22:
228+
case 20:
250229
case "end":
251230
return _context2.stop();
252231
}

Diff for: src/models/FileUploadPart.js

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class FileUploadPart {
5050
// boolean # If `true`, multiple parts may be uploaded in parallel. If `false`, be sure to only upload one part at a time, in order.
5151
getParallelParts = () => this.attributes.parallel_parts
5252

53+
// boolean # If `true`, parts may be retried. If `false`, a part cannot be retried and the upload should be restarted.
54+
getRetryParts = () => this.attributes.retry_parts
55+
5356
// object # Additional HTTP parameters to send with the upload
5457
getParameters = () => this.attributes.parameters
5558

Diff for: src/models/InboxRecipient.js

-17
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ class InboxRecipient {
5858
this.attributes.sent_at = value
5959
}
6060

61-
// int64 # User ID. Provide a value of `0` to operate the current session's user.
62-
getUserId = () => this.attributes.user_id
63-
64-
setUserId = value => {
65-
this.attributes.user_id = value
66-
}
67-
6861
// int64 # Inbox to share.
6962
getInboxId = () => this.attributes.inbox_id
7063

@@ -91,7 +84,6 @@ class InboxRecipient {
9184
}
9285

9386
// Parameters:
94-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
9587
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
9688
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
9789
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
@@ -102,10 +94,6 @@ class InboxRecipient {
10294
throw new errors.MissingParameterError('Parameter missing: inbox_id')
10395
}
10496

105-
if (params['user_id'] && !isInt(params['user_id'])) {
106-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
107-
}
108-
10997
if (params['cursor'] && !isString(params['cursor'])) {
11098
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
11199
}
@@ -127,7 +115,6 @@ class InboxRecipient {
127115
InboxRecipient.list(params, options)
128116

129117
// Parameters:
130-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
131118
// inbox_id (required) - int64 - Inbox to share.
132119
// recipient (required) - string - Email address to share this inbox with.
133120
// name - string - Name of recipient.
@@ -143,10 +130,6 @@ class InboxRecipient {
143130
throw new errors.MissingParameterError('Parameter missing: recipient')
144131
}
145132

146-
if (params['user_id'] && !isInt(params['user_id'])) {
147-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
148-
}
149-
150133
if (params['inbox_id'] && !isInt(params['inbox_id'])) {
151134
throw new errors.InvalidParameterError(`Bad parameter: inbox_id must be of type Int, received ${getType(params['inbox_id'])}`)
152135
}

0 commit comments

Comments
 (0)