files.com 1.2.302 → 1.2.304

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.302
1
+ 1.2.304
@@ -44,7 +44,7 @@ await Behavior.list
44
44
  * `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.
45
45
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
46
46
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
47
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
47
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
48
48
 
49
49
  ---
50
50
 
@@ -75,7 +75,7 @@ await Behavior.listFor(path, {
75
75
  * `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.
76
76
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
77
77
  * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
78
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
78
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
79
79
  * `path` (string): Required - Path to operate on.
80
80
  * `ancestor_behaviors` (boolean): If `true`, behaviors above this path are shown.
81
81
 
@@ -53,5 +53,5 @@ await BundleRegistration.list({
53
53
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
54
54
  * `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.
55
55
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
56
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
56
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id` and `created_at`.
57
57
  * `bundle_id` (int64): ID of the associated Bundle
@@ -136,7 +136,6 @@ await Sync.create({
136
136
  'dest_path': "example",
137
137
  'src_remote_server_id': 1,
138
138
  'dest_remote_server_id': 1,
139
- 'two_way': false,
140
139
  'keep_after_copy': false,
141
140
  'delete_empty_folders': false,
142
141
  'disabled': false,
@@ -161,7 +160,6 @@ await Sync.create({
161
160
  * `dest_path` (string): Absolute destination path
162
161
  * `src_remote_server_id` (int64): Remote server ID for the source
163
162
  * `dest_remote_server_id` (int64): Remote server ID for the destination
164
- * `two_way` (boolean): Is this a two-way sync?
165
163
  * `keep_after_copy` (boolean): Keep files after copying?
166
164
  * `delete_empty_folders` (boolean): Delete empty folders after sync?
167
165
  * `disabled` (boolean): Is this sync disabled?
@@ -219,7 +217,6 @@ await sync.update({
219
217
  'dest_path': "example",
220
218
  'src_remote_server_id': 1,
221
219
  'dest_remote_server_id': 1,
222
- 'two_way': false,
223
220
  'keep_after_copy': false,
224
221
  'delete_empty_folders': false,
225
222
  'disabled': false,
@@ -244,7 +241,6 @@ await sync.update({
244
241
  * `dest_path` (string): Absolute destination path
245
242
  * `src_remote_server_id` (int64): Remote server ID for the source
246
243
  * `dest_remote_server_id` (int64): Remote server ID for the destination
247
- * `two_way` (boolean): Is this a two-way sync?
248
244
  * `keep_after_copy` (boolean): Keep files after copying?
249
245
  * `delete_empty_folders` (boolean): Delete empty folders after sync?
250
246
  * `disabled` (boolean): Is this sync disabled?
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.302';
15
+ var version = '1.2.304';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -285,7 +285,7 @@ _Behavior = Behavior;
285
285
  // 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.
286
286
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
287
287
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
288
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
288
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
289
289
  (0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
290
290
  var _response$data;
291
291
  var params,
@@ -383,7 +383,7 @@ _Behavior = Behavior;
383
383
  // 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.
384
384
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
385
385
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
386
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
386
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
387
387
  // path (required) - string - Path to operate on.
388
388
  // ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
389
389
  (0, _defineProperty2.default)(Behavior, "listFor", /*#__PURE__*/function () {
@@ -102,7 +102,7 @@ _BundleRegistration = BundleRegistration;
102
102
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
103
103
  // 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.
104
104
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
105
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
105
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id` and `created_at`.
106
106
  // bundle_id - int64 - ID of the associated Bundle
107
107
  (0, _defineProperty2.default)(BundleRegistration, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
108
108
  var _response$data;
@@ -320,7 +320,6 @@ var Sync = /*#__PURE__*/(0, _createClass2.default)(function Sync() {
320
320
  // dest_path - string - Absolute destination path
321
321
  // src_remote_server_id - int64 - Remote server ID for the source
322
322
  // dest_remote_server_id - int64 - Remote server ID for the destination
323
- // two_way - boolean - Is this a two-way sync?
324
323
  // keep_after_copy - boolean - Keep files after copying?
325
324
  // delete_empty_folders - boolean - Delete empty folders after sync?
326
325
  // disabled - boolean - Is this sync disabled?
@@ -672,7 +671,6 @@ _Sync = Sync;
672
671
  // dest_path - string - Absolute destination path
673
672
  // src_remote_server_id - int64 - Remote server ID for the source
674
673
  // dest_remote_server_id - int64 - Remote server ID for the destination
675
- // two_way - boolean - Is this a two-way sync?
676
674
  // keep_after_copy - boolean - Keep files after copying?
677
675
  // delete_empty_folders - boolean - Delete empty folders after sync?
678
676
  // disabled - boolean - Is this sync disabled?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.302",
3
+ "version": "1.2.304",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.302'
9
+ const version = '1.2.304'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -196,7 +196,7 @@ class Behavior {
196
196
  // 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.
197
197
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
198
198
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
199
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
199
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
200
200
  static list = async (params = {}, options = {}) => {
201
201
  if (params.cursor && !isString(params.cursor)) {
202
202
  throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
@@ -243,7 +243,7 @@ class Behavior {
243
243
  // 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.
244
244
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
245
245
  // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
246
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
246
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`. Valid field combinations are `[ impacts_ui, behavior ]`.
247
247
  // path (required) - string - Path to operate on.
248
248
  // ancestor_behaviors - boolean - If `true`, behaviors above this path are shown.
249
249
  static listFor = async (path, params = {}, options = {}) => {
@@ -71,7 +71,7 @@ class BundleRegistration {
71
71
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
72
72
  // 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.
73
73
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
74
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id`.
74
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `bundle_id` and `created_at`.
75
75
  // bundle_id - int64 - ID of the associated Bundle
76
76
  static list = async (params = {}, options = {}) => {
77
77
  if (params.user_id && !isInt(params.user_id)) {
@@ -268,7 +268,6 @@ class Sync {
268
268
  // dest_path - string - Absolute destination path
269
269
  // src_remote_server_id - int64 - Remote server ID for the source
270
270
  // dest_remote_server_id - int64 - Remote server ID for the destination
271
- // two_way - boolean - Is this a two-way sync?
272
271
  // keep_after_copy - boolean - Keep files after copying?
273
272
  // delete_empty_folders - boolean - Delete empty folders after sync?
274
273
  // disabled - boolean - Is this sync disabled?
@@ -460,7 +459,6 @@ class Sync {
460
459
  // dest_path - string - Absolute destination path
461
460
  // src_remote_server_id - int64 - Remote server ID for the source
462
461
  // dest_remote_server_id - int64 - Remote server ID for the destination
463
- // two_way - boolean - Is this a two-way sync?
464
462
  // keep_after_copy - boolean - Keep files after copying?
465
463
  // delete_empty_folders - boolean - Delete empty folders after sync?
466
464
  // disabled - boolean - Is this sync disabled?