files.com 1.1.641 → 1.1.643

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e86c6e57011fc81b6b86580334297b14845b2cebdb3ee23d2d3ff8372d209a99
4
- data.tar.gz: 511e07781d82e027691e3ada0e3fcd20fe9a8978842c2bd01895003c49b0299c
3
+ metadata.gz: 365657906a08b7bdd69fe314516b9fb06af1ab15162e9f6063d79fd8e3678140
4
+ data.tar.gz: f45d41f49389fcdea12b29fd1697e3772034f1330c5514463de8c8f331fd74aa
5
5
  SHA512:
6
- metadata.gz: 10ab540261b5b9e3968fd712802423ecd4a533f66fbf53eaf90a438ddaaf506690a60434a0522e287e6c7b26d0d55c4c55a803ee0df7958f6662757d7d25459b
7
- data.tar.gz: dbe335416162c24caf2a0861e0fc0af1bfdf5396edc57f469d1c1384c8dc082bbd97ccb478bf13244d66573d71e304e7db9621157fb876ad2d6bcd5071919323
6
+ metadata.gz: 1c368ddbfaf1a009d2c32bcb7da091c494a374a138f4b5e678f62fe18ac21ee51b7d9b5b05f49c96a08c3687ceb5e64f3f970d5746c273ffed6842e9cfbbfe76
7
+ data.tar.gz: eda9e502c2a5bb72a7f5218714a1a1c56cf24e85769862235a6e4b7b2b365d22de287e0125669936242324c6cbe98199e644f87d061d2e32b06f25f47932ad66
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.641
1
+ 1.1.643
data/docs/partner.md CHANGED
@@ -19,6 +19,7 @@
19
19
  2,
20
20
  3
21
21
  ],
22
+ "partnership_role": "host",
22
23
  "responsible_group_id": 1,
23
24
  "responsible_user_id": 1,
24
25
  "root_folder": "/AcmeCorp",
@@ -42,6 +43,7 @@
42
43
  * `name` (string): The name of the Partner.
43
44
  * `notes` (string): Notes about this Partner.
44
45
  * `partner_admin_ids` (array(int64)): Array of User IDs that are Partner Admins for this Partner.
46
+ * `partnership_role` (string): This site's role in Partner Site relationships for this Partner. Can be `host`, `guest`, `host_and_guest`, or null.
45
47
  * `responsible_group_id` (int64): ID of the Group responsible for this Partner.
46
48
  * `responsible_user_id` (int64): ID of the User responsible for this Partner.
47
49
  * `root_folder` (string): The root folder path for this Partner.
data/docs/partner_site.md CHANGED
@@ -4,21 +4,27 @@
4
4
 
5
5
  ```
6
6
  {
7
- "partner_id": 1,
8
- "partner_name": "Acme Corp",
9
- "linked_site_id": 1,
10
- "linked_site_name": "Acme's Partner Site",
11
- "main_site_id": 2,
12
- "main_site_name": "Acme Site"
7
+ "host_partner_id": 1,
8
+ "host_partner_name": "Acme Corp",
9
+ "guest_partner_id": 2,
10
+ "guest_partner_name": "Example Corp",
11
+ "host_site_id": 1,
12
+ "host_site_name": "Acme Site",
13
+ "guest_site_id": 2,
14
+ "guest_site_name": "Example Site",
15
+ "workspace_id": 1
13
16
  }
14
17
  ```
15
18
 
16
- * `partner_id` (int64): Partner ID
17
- * `partner_name` (string): Partner Name
18
- * `linked_site_id` (int64): Linked Site ID
19
- * `linked_site_name` (string): Linked Site Name
20
- * `main_site_id` (int64): Main Site ID
21
- * `main_site_name` (string): Main Site Name
19
+ * `host_partner_id` (int64): Host Partner ID
20
+ * `host_partner_name` (string): Host Partner Name
21
+ * `guest_partner_id` (int64): Guest Partner ID
22
+ * `guest_partner_name` (string): Guest Partner Name
23
+ * `host_site_id` (int64): Host Site ID
24
+ * `host_site_name` (string): Host Site Name
25
+ * `guest_site_id` (int64): Guest Site ID
26
+ * `guest_site_name` (string): Guest Site Name
27
+ * `workspace_id` (int64): Workspace ID for the Host Partner
22
28
 
23
29
 
24
30
  ---
@@ -5,10 +5,10 @@
5
5
  ```
6
6
  {
7
7
  "id": 1,
8
- "partner_id": 1,
9
- "linked_site_id": 1,
8
+ "host_partner_id": 1,
9
+ "guest_site_id": 1,
10
10
  "status": "pending",
11
- "main_site_name": "Acme Site",
11
+ "host_site_name": "Acme Site",
12
12
  "pairing_key": "abc123xyz",
13
13
  "created_at": "2000-01-01T01:00:00Z",
14
14
  "updated_at": "2000-01-01T01:00:00Z"
@@ -16,11 +16,11 @@
16
16
  ```
17
17
 
18
18
  * `id` (int64): Partner Site Request ID
19
- * `partner_id` (int64): Partner ID
20
- * `linked_site_id` (int64): Linked Site ID
19
+ * `host_partner_id` (int64): Host Partner ID
20
+ * `guest_site_id` (int64): Guest Site ID
21
21
  * `status` (string): Request status (pending, approved, rejected)
22
- * `main_site_name` (string): Main Site Name
23
- * `pairing_key` (string): Pairing key used to approve this request on the target site
22
+ * `host_site_name` (string): Host Site Name
23
+ * `pairing_key` (string): Pairing key used to approve this request on the Guest Site
24
24
  * `created_at` (date-time): Request creation date/time
25
25
  * `updated_at` (date-time): Request last updated date/time
26
26
  * `site_url` (string): Site URL to link to
@@ -61,14 +61,14 @@ Files::PartnerSiteRequest.find_by_pairing_key(
61
61
 
62
62
  ```
63
63
  Files::PartnerSiteRequest.create(
64
- partner_id: 1,
64
+ host_partner_id: 1,
65
65
  site_url: "site_url"
66
66
  )
67
67
  ```
68
68
 
69
69
  ### Parameters
70
70
 
71
- * `partner_id` (int64): Required - Partner ID to link with
71
+ * `host_partner_id` (int64): Required - Host Partner ID to link with
72
72
  * `site_url` (string): Required - Site URL to link to
73
73
 
74
74
 
data/docs/sync.md CHANGED
@@ -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
@@ -171,6 +173,7 @@ Files::Sync.create(
171
173
  sync_interval_minutes: 1,
172
174
  trigger: "example",
173
175
  trigger_file: "example",
176
+ always_write_trigger_file: true,
174
177
  workspace_id: 1
175
178
  )
176
179
  ```
@@ -197,6 +200,7 @@ Files::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
 
@@ -251,7 +255,8 @@ Files::Sync.update(id,
251
255
  src_remote_server_id: 1,
252
256
  sync_interval_minutes: 1,
253
257
  trigger: "example",
254
- trigger_file: "example"
258
+ trigger_file: "example",
259
+ always_write_trigger_file: true
255
260
  )
256
261
  ```
257
262
 
@@ -278,6 +283,7 @@ Files::Sync.update(id,
278
283
  * `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.
279
284
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
280
285
  * `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.
286
+ * `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.
281
287
 
282
288
 
283
289
  ---
@@ -350,7 +356,8 @@ sync.update(
350
356
  src_remote_server_id: 1,
351
357
  sync_interval_minutes: 1,
352
358
  trigger: "example",
353
- trigger_file: "example"
359
+ trigger_file: "example",
360
+ always_write_trigger_file: true
354
361
  )
355
362
  ```
356
363
 
@@ -377,6 +384,7 @@ sync.update(
377
384
  * `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.
378
385
  * `trigger` (string): Trigger type: daily, custom_schedule, or manual
379
386
  * `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.
387
+ * `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.
380
388
 
381
389
 
382
390
  ---
@@ -108,6 +108,15 @@ module Files
108
108
  @attributes[:partner_admin_ids] = value
109
109
  end
110
110
 
111
+ # string - This site's role in Partner Site relationships for this Partner. Can be `host`, `guest`, `host_and_guest`, or null.
112
+ def partnership_role
113
+ @attributes[:partnership_role]
114
+ end
115
+
116
+ def partnership_role=(value)
117
+ @attributes[:partnership_role] = value
118
+ end
119
+
111
120
  # int64 - ID of the Group responsible for this Partner.
112
121
  def responsible_group_id
113
122
  @attributes[:responsible_group_id]
@@ -9,34 +9,49 @@ module Files
9
9
  @options = options || {}
10
10
  end
11
11
 
12
- # int64 - Partner ID
13
- def partner_id
14
- @attributes[:partner_id]
12
+ # int64 - Host Partner ID
13
+ def host_partner_id
14
+ @attributes[:host_partner_id]
15
15
  end
16
16
 
17
- # string - Partner Name
18
- def partner_name
19
- @attributes[:partner_name]
17
+ # string - Host Partner Name
18
+ def host_partner_name
19
+ @attributes[:host_partner_name]
20
20
  end
21
21
 
22
- # int64 - Linked Site ID
23
- def linked_site_id
24
- @attributes[:linked_site_id]
22
+ # int64 - Guest Partner ID
23
+ def guest_partner_id
24
+ @attributes[:guest_partner_id]
25
25
  end
26
26
 
27
- # string - Linked Site Name
28
- def linked_site_name
29
- @attributes[:linked_site_name]
27
+ # string - Guest Partner Name
28
+ def guest_partner_name
29
+ @attributes[:guest_partner_name]
30
30
  end
31
31
 
32
- # int64 - Main Site ID
33
- def main_site_id
34
- @attributes[:main_site_id]
32
+ # int64 - Host Site ID
33
+ def host_site_id
34
+ @attributes[:host_site_id]
35
35
  end
36
36
 
37
- # string - Main Site Name
38
- def main_site_name
39
- @attributes[:main_site_name]
37
+ # string - Host Site Name
38
+ def host_site_name
39
+ @attributes[:host_site_name]
40
+ end
41
+
42
+ # int64 - Guest Site ID
43
+ def guest_site_id
44
+ @attributes[:guest_site_id]
45
+ end
46
+
47
+ # string - Guest Site Name
48
+ def guest_site_name
49
+ @attributes[:guest_site_name]
50
+ end
51
+
52
+ # int64 - Workspace ID for the Host Partner
53
+ def workspace_id
54
+ @attributes[:workspace_id]
40
55
  end
41
56
 
42
57
  def self.linkeds(params = {}, options = {})
@@ -18,22 +18,22 @@ module Files
18
18
  @attributes[:id] = value
19
19
  end
20
20
 
21
- # int64 - Partner ID
22
- def partner_id
23
- @attributes[:partner_id]
21
+ # int64 - Host Partner ID
22
+ def host_partner_id
23
+ @attributes[:host_partner_id]
24
24
  end
25
25
 
26
- def partner_id=(value)
27
- @attributes[:partner_id] = value
26
+ def host_partner_id=(value)
27
+ @attributes[:host_partner_id] = value
28
28
  end
29
29
 
30
- # int64 - Linked Site ID
31
- def linked_site_id
32
- @attributes[:linked_site_id]
30
+ # int64 - Guest Site ID
31
+ def guest_site_id
32
+ @attributes[:guest_site_id]
33
33
  end
34
34
 
35
- def linked_site_id=(value)
36
- @attributes[:linked_site_id] = value
35
+ def guest_site_id=(value)
36
+ @attributes[:guest_site_id] = value
37
37
  end
38
38
 
39
39
  # string - Request status (pending, approved, rejected)
@@ -45,16 +45,16 @@ module Files
45
45
  @attributes[:status] = value
46
46
  end
47
47
 
48
- # string - Main Site Name
49
- def main_site_name
50
- @attributes[:main_site_name]
48
+ # string - Host Site Name
49
+ def host_site_name
50
+ @attributes[:host_site_name]
51
51
  end
52
52
 
53
- def main_site_name=(value)
54
- @attributes[:main_site_name] = value
53
+ def host_site_name=(value)
54
+ @attributes[:host_site_name] = value
55
55
  end
56
56
 
57
- # string - Pairing key used to approve this request on the target site
57
+ # string - Pairing key used to approve this request on the Guest Site
58
58
  def pairing_key
59
59
  @attributes[:pairing_key]
60
60
  end
@@ -157,12 +157,12 @@ module Files
157
157
  end
158
158
 
159
159
  # Parameters:
160
- # partner_id (required) - int64 - Partner ID to link with
160
+ # host_partner_id (required) - int64 - Host Partner ID to link with
161
161
  # site_url (required) - string - Site URL to link to
162
162
  def self.create(params = {}, options = {})
163
- raise InvalidParameterError.new("Bad parameter: partner_id must be an Integer") if params[:partner_id] and !params[:partner_id].is_a?(Integer)
163
+ raise InvalidParameterError.new("Bad parameter: host_partner_id must be an Integer") if params[:host_partner_id] and !params[:host_partner_id].is_a?(Integer)
164
164
  raise InvalidParameterError.new("Bad parameter: site_url must be an String") if params[:site_url] and !params[:site_url].is_a?(String)
165
- raise MissingParameterError.new("Parameter missing: partner_id") unless params[:partner_id]
165
+ raise MissingParameterError.new("Parameter missing: host_partner_id") unless params[:host_partner_id]
166
166
  raise MissingParameterError.new("Parameter missing: site_url") unless params[:site_url]
167
167
 
168
168
  response, options = Api.send_request("/partner_site_requests", :post, params, options)
@@ -171,6 +171,15 @@ module Files
171
171
  @attributes[:trigger_file] = value
172
172
  end
173
173
 
174
+ # boolean - If true, the trigger file will be sent at the end of a successful sync even when no files were transferred.
175
+ def always_write_trigger_file
176
+ @attributes[:always_write_trigger_file]
177
+ end
178
+
179
+ def always_write_trigger_file=(value)
180
+ @attributes[:always_write_trigger_file] = value
181
+ end
182
+
174
183
  # array(string) - Array of glob patterns to include
175
184
  def include_patterns
176
185
  @attributes[:include_patterns]
@@ -314,6 +323,7 @@ module Files
314
323
  # 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.
315
324
  # trigger - string - Trigger type: daily, custom_schedule, or manual
316
325
  # 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.
326
+ # 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.
317
327
  def update(params = {})
318
328
  params ||= {}
319
329
  params[:id] = @attributes[:id]
@@ -424,6 +434,7 @@ module Files
424
434
  # 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.
425
435
  # trigger - string - Trigger type: daily, custom_schedule, or manual
426
436
  # 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.
437
+ # 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.
427
438
  # workspace_id - int64 - Workspace ID this sync belongs to
428
439
  def self.create(params = {}, options = {})
429
440
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
@@ -492,6 +503,7 @@ module Files
492
503
  # 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.
493
504
  # trigger - string - Trigger type: daily, custom_schedule, or manual
494
505
  # 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.
506
+ # 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.
495
507
  def self.update(id, params = {}, options = {})
496
508
  params ||= {}
497
509
  params[:id] = id
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.641"
4
+ VERSION = "1.1.643"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.641
4
+ version: 1.1.643
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-10 00:00:00.000000000 Z
11
+ date: 2026-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable