Skip to content

Commit 0f8be37

Browse files
v1.2.650
[Bot] push changes from Files.com
1 parent ef5cb57 commit 0f8be37

7 files changed

Lines changed: 29 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.649
1+
1.2.650

docs/models/Sync.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"disabled": true,
2323
"trigger": "example",
2424
"trigger_file": "example",
25+
"always_write_trigger_file": true,
2526
"include_patterns": [
2627
"example"
2728
],
@@ -102,6 +103,7 @@
102103
* `disabled` (boolean): Is this sync disabled?
103104
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
104105
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
106+
* `always_write_trigger_file` (boolean): If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
105107
* `include_patterns` (array(string)): Array of glob patterns to include
106108
* `exclude_patterns` (array(string)): Array of glob patterns to exclude
107109
* `created_at` (date-time): When this sync was created
@@ -170,6 +172,7 @@ await Sync.create({
170172
'sync_interval_minutes': 1,
171173
'trigger': "example",
172174
'trigger_file': "example",
175+
'always_write_trigger_file': true,
173176
'workspace_id': 1,
174177
})
175178
```
@@ -197,6 +200,7 @@ await Sync.create({
197200
* `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
198201
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
199202
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
203+
* `always_write_trigger_file` (boolean): If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
200204
* `workspace_id` (int64): Workspace ID this sync belongs to
201205

202206
---
@@ -257,6 +261,7 @@ await sync.update({
257261
'sync_interval_minutes': 1,
258262
'trigger': "example",
259263
'trigger_file': "example",
264+
'always_write_trigger_file': true,
260265
})
261266
```
262267

@@ -283,6 +288,7 @@ await sync.update({
283288
* `sync_interval_minutes` (int64): Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
284289
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
285290
* `trigger_file` (string): Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
291+
* `always_write_trigger_file` (boolean): If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
286292

287293
### Example Response
288294

@@ -306,6 +312,7 @@ await sync.update({
306312
"disabled": true,
307313
"trigger": "example",
308314
"trigger_file": "example",
315+
"always_write_trigger_file": true,
309316
"include_patterns": [
310317
"example"
311318
],

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.649';
15+
var version = '1.2.650';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/Sync.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ var Sync = /*#__PURE__*/(0, _createClass2.default)(function Sync() {
158158
(0, _defineProperty2.default)(this, "setTriggerFile", function (value) {
159159
_this.attributes.trigger_file = value;
160160
});
161+
// boolean # If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
162+
(0, _defineProperty2.default)(this, "getAlwaysWriteTriggerFile", function () {
163+
return _this.attributes.always_write_trigger_file;
164+
});
165+
(0, _defineProperty2.default)(this, "setAlwaysWriteTriggerFile", function (value) {
166+
_this.attributes.always_write_trigger_file = value;
167+
});
161168
// array(string) # Array of glob patterns to include
162169
(0, _defineProperty2.default)(this, "getIncludePatterns", function () {
163170
return _this.attributes.include_patterns;
@@ -355,6 +362,7 @@ var Sync = /*#__PURE__*/(0, _createClass2.default)(function Sync() {
355362
// sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
356363
// trigger - string - Trigger type: daily, custom_schedule, or manual
357364
// trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
365+
// always_write_trigger_file - boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
358366
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
359367
var params,
360368
response,
@@ -722,6 +730,7 @@ _Sync = Sync;
722730
// sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
723731
// trigger - string - Trigger type: daily, custom_schedule, or manual
724732
// trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
733+
// always_write_trigger_file - boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
725734
// workspace_id - int64 - Workspace ID this sync belongs to
726735
(0, _defineProperty2.default)(Sync, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
727736
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.649",
3+
"version": "1.2.650",
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.649'
9+
const version = '1.2.650'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/Sync.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ class Sync {
154154
this.attributes.trigger_file = value
155155
}
156156

157+
// boolean # If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
158+
getAlwaysWriteTriggerFile = () => this.attributes.always_write_trigger_file
159+
160+
setAlwaysWriteTriggerFile = value => {
161+
this.attributes.always_write_trigger_file = value
162+
}
163+
157164
// array(string) # Array of glob patterns to include
158165
getIncludePatterns = () => this.attributes.include_patterns
159166

@@ -303,6 +310,7 @@ class Sync {
303310
// sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
304311
// trigger - string - Trigger type: daily, custom_schedule, or manual
305312
// trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
313+
// always_write_trigger_file - boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
306314
update = async (params = {}) => {
307315
if (!this.attributes.id) {
308316
throw new errors.EmptyPropertyError('Current object has no id')
@@ -506,6 +514,7 @@ class Sync {
506514
// sync_interval_minutes - int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
507515
// trigger - string - Trigger type: daily, custom_schedule, or manual
508516
// trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
517+
// always_write_trigger_file - boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
509518
// workspace_id - int64 - Workspace ID this sync belongs to
510519
static create = async (params = {}, options = {}) => {
511520
if (params.description && !isString(params.description)) {

0 commit comments

Comments
 (0)