files.com 1.2.227 → 1.2.229
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/README.md +1 -0
- package/_VERSION +1 -1
- package/docs/Errors.md +1 -0
- package/docs/models/Automation.md +3 -3
- package/lib/Errors.js +504 -492
- package/lib/Files.js +1 -1
- package/lib/models/Automation.js +3 -3
- package/package.json +1 -1
- package/src/Errors.js +1 -0
- package/src/Files.js +1 -1
- package/src/models/Automation.js +3 -3
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.
|
|
14
|
+
var version = '1.2.229';
|
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
|
17
17
|
var debugRequest = false;
|
package/lib/models/Automation.js
CHANGED
|
@@ -159,7 +159,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
|
159
159
|
(0, _defineProperty2.default)(this, "setName", function (value) {
|
|
160
160
|
_this.attributes.name = value;
|
|
161
161
|
});
|
|
162
|
-
// boolean # If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
162
|
+
// boolean # If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten on Copy automations if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
163
163
|
(0, _defineProperty2.default)(this, "getOverwriteFiles", function () {
|
|
164
164
|
return _this.attributes.overwrite_files;
|
|
165
165
|
});
|
|
@@ -363,7 +363,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
|
|
|
363
363
|
// ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
364
364
|
// legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
|
365
365
|
// name - string - Name for this automation.
|
|
366
|
-
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
366
|
+
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten on Copy automations if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
367
367
|
// path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
|
368
368
|
// retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
|
369
369
|
// retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
|
@@ -780,7 +780,7 @@ _Automation = Automation;
|
|
|
780
780
|
// ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
781
781
|
// legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
|
782
782
|
// name - string - Name for this automation.
|
|
783
|
-
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
783
|
+
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten on Copy automations if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
784
784
|
// path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
|
785
785
|
// retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
|
786
786
|
// retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
package/package.json
CHANGED
package/src/Errors.js
CHANGED
|
@@ -167,6 +167,7 @@ export class NotAuthorized_ApiKeyOnlyForOfficeIntegrationError extends NotAuthor
|
|
|
167
167
|
export class NotAuthorized_BillingOrSiteAdminPermissionRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_BillingOrSiteAdminPermissionRequiredError' } } errorClasses.NotAuthorized_BillingOrSiteAdminPermissionRequiredError = NotAuthorized_BillingOrSiteAdminPermissionRequiredError
|
|
168
168
|
export class NotAuthorized_BillingPermissionRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_BillingPermissionRequiredError' } } errorClasses.NotAuthorized_BillingPermissionRequiredError = NotAuthorized_BillingPermissionRequiredError
|
|
169
169
|
export class NotAuthorized_BundleMaximumUsesReachedError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_BundleMaximumUsesReachedError' } } errorClasses.NotAuthorized_BundleMaximumUsesReachedError = NotAuthorized_BundleMaximumUsesReachedError
|
|
170
|
+
export class NotAuthorized_BundlePermissionRequiredError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_BundlePermissionRequiredError' } } errorClasses.NotAuthorized_BundlePermissionRequiredError = NotAuthorized_BundlePermissionRequiredError
|
|
170
171
|
export class NotAuthorized_CannotLoginWhileUsingKeyError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_CannotLoginWhileUsingKeyError' } } errorClasses.NotAuthorized_CannotLoginWhileUsingKeyError = NotAuthorized_CannotLoginWhileUsingKeyError
|
|
171
172
|
export class NotAuthorized_CantActForOtherUserError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_CantActForOtherUserError' } } errorClasses.NotAuthorized_CantActForOtherUserError = NotAuthorized_CantActForOtherUserError
|
|
172
173
|
export class NotAuthorized_ContactAdminForPasswordChangeHelpError extends NotAuthorizedError { constructor(message, code, errorData) { super(message, code, errorData); this.name = 'NotAuthorized_ContactAdminForPasswordChangeHelpError' } } errorClasses.NotAuthorized_ContactAdminForPasswordChangeHelpError = NotAuthorized_ContactAdminForPasswordChangeHelpError
|
package/src/Files.js
CHANGED
package/src/models/Automation.js
CHANGED
|
@@ -154,7 +154,7 @@ class Automation {
|
|
|
154
154
|
this.attributes.name = value
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
// boolean # If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
157
|
+
// boolean # If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten on Copy automations if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
158
158
|
getOverwriteFiles = () => this.attributes.overwrite_files
|
|
159
159
|
|
|
160
160
|
setOverwriteFiles = value => {
|
|
@@ -335,7 +335,7 @@ class Automation {
|
|
|
335
335
|
// ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
336
336
|
// legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
|
337
337
|
// name - string - Name for this automation.
|
|
338
|
-
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
338
|
+
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten on Copy automations if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
339
339
|
// path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
|
340
340
|
// retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
|
341
341
|
// retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|
|
@@ -576,7 +576,7 @@ class Automation {
|
|
|
576
576
|
// ignore_locked_folders - boolean - If true, the Lock Folders behavior will be disregarded for automated actions.
|
|
577
577
|
// legacy_folder_matching - boolean - DEPRECATED: If `true`, use the legacy behavior for this automation, where it can operate on folders in addition to just files. This behavior no longer works and should not be used.
|
|
578
578
|
// name - string - Name for this automation.
|
|
579
|
-
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
579
|
+
// overwrite_files - boolean - If true, existing files will be overwritten with new files on Move/Copy automations. Note: by default files will not be overwritten on Copy automations if they appear to be the same file size as the newly incoming file. Use the `always_overwrite_size_matching_files` option in conjunction with `overwrite_files` to override this behavior and overwrite files no matter what.
|
|
580
580
|
// path_time_zone - string - Timezone to use when rendering timestamps in paths.
|
|
581
581
|
// retry_on_failure_interval_in_minutes - int64 - If the Automation fails, retry at this interval (in minutes). Acceptable values are 5 through 1440 (one day). Set to null to disable.
|
|
582
582
|
// retry_on_failure_number_of_attempts - int64 - If the Automation fails, retry at most this many times. Maximum allowed value: 10. Set to null to disable.
|