files.com 1.2.153 → 1.2.154

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.2.153
1
+ 1.2.154
@@ -56,7 +56,7 @@ await History.listForFile(path, {
56
56
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
57
57
  * `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.
58
58
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
59
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
59
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `path` or `created_at`.
60
60
  * `path` (string): Required - Path to operate on.
61
61
 
62
62
  ---
@@ -77,7 +77,7 @@ await History.listForFolder(path, {
77
77
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
78
78
  * `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.
79
79
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
80
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
80
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `folder` or `created_at`.
81
81
  * `path` (string): Required - Path to operate on.
82
82
 
83
83
  ---
@@ -98,7 +98,7 @@ await History.listForUser(user_id, {
98
98
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
99
99
  * `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.
100
100
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
101
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
101
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
102
102
  * `user_id` (int64): Required - User ID.
103
103
 
104
104
  ---
@@ -119,7 +119,7 @@ await History.listLogins({
119
119
  * `display` (string): Display format. Leave blank or set to `full` or `parent`.
120
120
  * `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.
121
121
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
122
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
122
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
123
123
 
124
124
  ---
125
125
 
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.153';
14
+ var version = '1.2.154';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -109,7 +109,7 @@ _History = History;
109
109
  // display - string - Display format. Leave blank or set to `full` or `parent`.
110
110
  // 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.
111
111
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
112
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
112
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `path` or `created_at`.
113
113
  // path (required) - string - Path to operate on.
114
114
  (0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
115
115
  var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(path) {
@@ -197,7 +197,7 @@ _History = History;
197
197
  // display - string - Display format. Leave blank or set to `full` or `parent`.
198
198
  // 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.
199
199
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
200
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
200
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `folder` or `created_at`.
201
201
  // path (required) - string - Path to operate on.
202
202
  (0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
203
203
  var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
@@ -285,7 +285,7 @@ _History = History;
285
285
  // display - string - Display format. Leave blank or set to `full` or `parent`.
286
286
  // 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.
287
287
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
288
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
288
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
289
289
  // user_id (required) - int64 - User ID.
290
290
  (0, _defineProperty2.default)(History, "listForUser", /*#__PURE__*/function () {
291
291
  var _ref5 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(userId) {
@@ -373,7 +373,7 @@ _History = History;
373
373
  // display - string - Display format. Leave blank or set to `full` or `parent`.
374
374
  // 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.
375
375
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
376
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
376
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
377
377
  (0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
378
378
  var _response$data4;
379
379
  var params,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.153",
3
+ "version": "1.2.154",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.153'
8
+ const version = '1.2.154'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -76,7 +76,7 @@ class History {
76
76
  // display - string - Display format. Leave blank or set to `full` or `parent`.
77
77
  // 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.
78
78
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
79
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
79
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `path` or `created_at`.
80
80
  // path (required) - string - Path to operate on.
81
81
  static listForFile = async (path, params = {}, options = {}) => {
82
82
  if (!isObject(params)) {
@@ -125,7 +125,7 @@ class History {
125
125
  // display - string - Display format. Leave blank or set to `full` or `parent`.
126
126
  // 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.
127
127
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
128
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
128
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `folder` or `created_at`.
129
129
  // path (required) - string - Path to operate on.
130
130
  static listForFolder = async (path, params = {}, options = {}) => {
131
131
  if (!isObject(params)) {
@@ -174,7 +174,7 @@ class History {
174
174
  // display - string - Display format. Leave blank or set to `full` or `parent`.
175
175
  // 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.
176
176
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
177
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
177
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id` and `created_at`.
178
178
  // user_id (required) - int64 - User ID.
179
179
  static listForUser = async (userId, params = {}, options = {}) => {
180
180
  if (!isObject(params)) {
@@ -223,7 +223,7 @@ class History {
223
223
  // display - string - Display format. Leave blank or set to `full` or `parent`.
224
224
  // 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.
225
225
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
226
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `user_id`, `created_at` or `site_id`.
226
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `id`.
227
227
  static listLogins = async (params = {}, options = {}) => {
228
228
  if (params.start_at && !isString(params.start_at)) {
229
229
  throw new errors.InvalidParameterError(`Bad parameter: start_at must be of type String, received ${getType(params.start_at)}`)