Skip to content

Commit 15b41ba

Browse files
[Bot] push changes from Files.com
1 parent e0fc54b commit 15b41ba

10 files changed

Lines changed: 375 additions & 227 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.598
1+
1.2.599

docs/models/FileComment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ await FileComment.listFor(path)
4141

4242
```
4343
await FileComment.create({
44-
'body': "body",
44+
'body': "What a great file!",
4545
'path': "path",
4646
})
4747
```
@@ -60,7 +60,7 @@ await FileComment.create({
6060
const [file_comment] = await FileComment.list()
6161
6262
await file_comment.update({
63-
'body': "body",
63+
'body': "What a great file!",
6464
})
6565
```
6666

docs/models/MessageComment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ await MessageComment.find(id)
6060
```
6161
await MessageComment.create({
6262
'user_id': 1,
63-
'body': "body",
63+
'body': "What a great idea, thank you!",
6464
})
6565
```
6666

@@ -78,7 +78,7 @@ await MessageComment.create({
7878
const message_comment = await MessageComment.find(id)
7979
8080
await message_comment.update({
81-
'body': "body",
81+
'body': "What a great idea, thank you!",
8282
})
8383
```
8484

docs/models/SiemHttpDestination.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ await SiemHttpDestination.sendTestEntry({
235235
'additional_headers': {"key":"example value"},
236236
'sending_active': true,
237237
'generic_payload_type': "example",
238+
'file_destination_path': "example",
239+
'file_format': "example",
238240
'file_interval_minutes': 1,
239241
'azure_dcr_immutable_id': "example",
240242
'azure_stream_name': "example",

docs/models/Sync.md

Lines changed: 68 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"dest_path": "example",
1515
"src_remote_server_id": 1,
1616
"dest_remote_server_id": 1,
17+
"src_site_id": 1,
18+
"dest_site_id": 1,
1719
"two_way": true,
1820
"keep_after_copy": true,
1921
"delete_empty_folders": true,
@@ -81,6 +83,8 @@
8183
* `dest_path` (string): Absolute destination path for the sync
8284
* `src_remote_server_id` (int64): Remote server ID for the source (if remote)
8385
* `dest_remote_server_id` (int64): Remote server ID for the destination (if remote)
86+
* `src_site_id` (int64): Source site ID if syncing from a child or partner site
87+
* `dest_site_id` (int64): Destination site ID if syncing to a child or partner site
8488
* `two_way` (boolean): Is this a two-way sync?
8589
* `keep_after_copy` (boolean): Keep files after copying?
8690
* `delete_empty_folders` (boolean): Delete empty folders after sync?
@@ -135,49 +139,57 @@ await Sync.find(id)
135139

136140
```
137141
await Sync.create({
138-
'name': "example",
142+
'delete_empty_folders': true,
139143
'description': "example",
140-
'src_path': "example",
141144
'dest_path': "example",
142-
'src_remote_server_id': 1,
143145
'dest_remote_server_id': 1,
144-
'keep_after_copy': false,
145-
'delete_empty_folders': false,
146-
'disabled': false,
147-
'interval': "week",
148-
'trigger': "example",
149-
'trigger_file': "example",
146+
'dest_site_id': 1,
147+
'disabled': true,
148+
'exclude_patterns': ["example"],
150149
'holiday_region': "us_dc",
151-
'sync_interval_minutes': 1,
150+
'include_patterns': ["example"],
151+
'interval': "week",
152+
'keep_after_copy': true,
153+
'name': "example",
152154
'recurring_day': 25,
153-
'schedule_time_zone': "Eastern Time (US & Canada)",
154155
'schedule_days_of_week': [0,2,4],
156+
'schedule_time_zone': "Eastern Time (US & Canada)",
155157
'schedule_times_of_day': ["06:30","14:30"],
158+
'src_path': "example",
159+
'src_remote_server_id': 1,
160+
'src_site_id': 1,
161+
'sync_interval_minutes': 1,
162+
'trigger': "example",
163+
'trigger_file': "example",
156164
'workspace_id': 1,
157165
})
158166
```
159167

160168

161169
### Parameters
162170

163-
* `name` (string): Name for this sync job
164-
* `description` (string): Description for this sync job
165-
* `src_path` (string): Absolute source path
166-
* `dest_path` (string): Absolute destination path
167-
* `src_remote_server_id` (int64): Remote server ID for the source
168-
* `dest_remote_server_id` (int64): Remote server ID for the destination
169-
* `keep_after_copy` (boolean): Keep files after copying?
170171
* `delete_empty_folders` (boolean): Delete empty folders after sync?
172+
* `description` (string): Description for this sync job
173+
* `dest_path` (string): Absolute destination path for the sync
174+
* `dest_remote_server_id` (int64): Remote server ID for the destination (if remote)
175+
* `dest_site_id` (int64): Destination site ID if syncing to a child or partner site
171176
* `disabled` (boolean): Is this sync disabled?
172-
* `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
173-
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
174-
* `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.
177+
* `exclude_patterns` (array(string)): Array of glob patterns to exclude
175178
* `holiday_region` (string): If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
176-
* `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.
179+
* `include_patterns` (array(string)): Array of glob patterns to include
180+
* `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
181+
* `keep_after_copy` (boolean): Keep files after copying?
182+
* `name` (string): Name for this sync job
177183
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
178-
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
179184
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
185+
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
180186
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
187+
* `src_path` (string): Absolute source path for the sync
188+
* `src_remote_server_id` (int64): Remote server ID for the source (if remote)
189+
* `src_site_id` (int64): Source site ID if syncing from a child or partner site
190+
* `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.
191+
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
192+
* `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.
181193
* `workspace_id` (int64): Workspace ID this sync belongs to
182194

183195
---
@@ -218,48 +230,56 @@ await sync.manual_run()
218230
const sync = await Sync.find(id)
219231
220232
await sync.update({
221-
'name': "example",
233+
'delete_empty_folders': true,
222234
'description': "example",
223-
'src_path': "example",
224235
'dest_path': "example",
225-
'src_remote_server_id': 1,
226236
'dest_remote_server_id': 1,
227-
'keep_after_copy': false,
228-
'delete_empty_folders': false,
229-
'disabled': false,
230-
'interval': "week",
231-
'trigger': "example",
232-
'trigger_file': "example",
237+
'dest_site_id': 1,
238+
'disabled': true,
239+
'exclude_patterns': ["example"],
233240
'holiday_region': "us_dc",
234-
'sync_interval_minutes': 1,
241+
'include_patterns': ["example"],
242+
'interval': "week",
243+
'keep_after_copy': true,
244+
'name': "example",
235245
'recurring_day': 25,
236-
'schedule_time_zone': "Eastern Time (US & Canada)",
237246
'schedule_days_of_week': [0,2,4],
247+
'schedule_time_zone': "Eastern Time (US & Canada)",
238248
'schedule_times_of_day': ["06:30","14:30"],
249+
'src_path': "example",
250+
'src_remote_server_id': 1,
251+
'src_site_id': 1,
252+
'sync_interval_minutes': 1,
253+
'trigger': "example",
254+
'trigger_file': "example",
239255
})
240256
```
241257

242258
### Parameters
243259

244260
* `id` (int64): Required - Sync ID.
245-
* `name` (string): Name for this sync job
246-
* `description` (string): Description for this sync job
247-
* `src_path` (string): Absolute source path
248-
* `dest_path` (string): Absolute destination path
249-
* `src_remote_server_id` (int64): Remote server ID for the source
250-
* `dest_remote_server_id` (int64): Remote server ID for the destination
251-
* `keep_after_copy` (boolean): Keep files after copying?
252261
* `delete_empty_folders` (boolean): Delete empty folders after sync?
262+
* `description` (string): Description for this sync job
263+
* `dest_path` (string): Absolute destination path for the sync
264+
* `dest_remote_server_id` (int64): Remote server ID for the destination (if remote)
265+
* `dest_site_id` (int64): Destination site ID if syncing to a child or partner site
253266
* `disabled` (boolean): Is this sync disabled?
254-
* `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
255-
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
256-
* `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.
267+
* `exclude_patterns` (array(string)): Array of glob patterns to exclude
257268
* `holiday_region` (string): If trigger is `custom_schedule`, the sync will check if there is a formal, observed holiday for the region, and if so, it will not run.
258-
* `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.
269+
* `include_patterns` (array(string)): Array of glob patterns to include
270+
* `interval` (string): If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
271+
* `keep_after_copy` (boolean): Keep files after copying?
272+
* `name` (string): Name for this sync job
259273
* `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
260-
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
261274
* `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
275+
* `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the sync should be run.
262276
* `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
277+
* `src_path` (string): Absolute source path for the sync
278+
* `src_remote_server_id` (int64): Remote server ID for the source (if remote)
279+
* `src_site_id` (int64): Source site ID if syncing from a child or partner site
280+
* `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.
281+
* `trigger` (string): Trigger type: daily, custom_schedule, or manual
282+
* `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.
263283

264284
### Example Response
265285

@@ -275,6 +295,8 @@ await sync.update({
275295
"dest_path": "example",
276296
"src_remote_server_id": 1,
277297
"dest_remote_server_id": 1,
298+
"src_site_id": 1,
299+
"dest_site_id": 1,
278300
"two_way": true,
279301
"keep_after_copy": true,
280302
"delete_empty_folders": true,

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

0 commit comments

Comments
 (0)