You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/models/Sync.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
"disabled": true,
23
23
"trigger": "example",
24
24
"trigger_file": "example",
25
+
"always_write_trigger_file": true,
25
26
"include_patterns": [
26
27
"example"
27
28
],
@@ -102,6 +103,7 @@
102
103
*`disabled` (boolean): Is this sync disabled?
103
104
*`trigger` (string): Trigger type: daily, custom_schedule, or manual
104
105
*`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.
105
107
*`include_patterns` (array(string)): Array of glob patterns to include
106
108
*`exclude_patterns` (array(string)): Array of glob patterns to exclude
107
109
*`created_at` (date-time): When this sync was created
@@ -170,6 +172,7 @@ await Sync.create({
170
172
'sync_interval_minutes': 1,
171
173
'trigger': "example",
172
174
'trigger_file': "example",
175
+
'always_write_trigger_file': true,
173
176
'workspace_id': 1,
174
177
})
175
178
```
@@ -197,6 +200,7 @@ await Sync.create({
197
200
*`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.
198
201
*`trigger` (string): Trigger type: daily, custom_schedule, or manual
199
202
*`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.
200
204
*`workspace_id` (int64): Workspace ID this sync belongs to
201
205
202
206
---
@@ -257,6 +261,7 @@ await sync.update({
257
261
'sync_interval_minutes': 1,
258
262
'trigger': "example",
259
263
'trigger_file': "example",
264
+
'always_write_trigger_file': true,
260
265
})
261
266
```
262
267
@@ -283,6 +288,7 @@ await sync.update({
283
288
*`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.
284
289
*`trigger` (string): Trigger type: daily, custom_schedule, or manual
285
290
*`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.
// 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.
// 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.
// 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.
// 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.
725
734
// workspace_id - int64 - Workspace ID this sync belongs to
// 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.
// 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.
306
314
update=async(params={})=>{
307
315
if(!this.attributes.id){
308
316
thrownewerrors.EmptyPropertyError('Current object has no id')
@@ -506,6 +514,7 @@ class Sync {
506
514
// 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.
// 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.
509
518
// workspace_id - int64 - Workspace ID this sync belongs to
0 commit comments