files.com 1.0.217 → 1.0.221

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df4541a5bc5eba15a7adca76540ac107518332f7afb3f03cc967ca520dc00cb5
4
- data.tar.gz: 4215a8fea2ad437b8689050d8396a998eccb7d82ca137071cecb0868426089b4
3
+ metadata.gz: 35d424ac4aab256474b32522ecef3af8e8b2cea8142f390e643a7fa2862db9a8
4
+ data.tar.gz: b5b3cfd4ccbff04fdf849802d99195c3395def5caa8ccabd317b8bc93951e452
5
5
  SHA512:
6
- metadata.gz: bcea32ba1ebddc4f10841a384a0cd4fa56153e9ce0f09bc502e2a55842d5ea01e57a3408dc1d5a8ed2a56b1eced97dfac5aa608552db01a98c0d63a049f28b61
7
- data.tar.gz: a2ffe21e7323618a841c1aae62dfbe336d1c80e1335824dd0b5a6833773b5e8ef260492040721dfc2f0255c91df06a6ed1da249c400f2ce94a9e7f68fe2bf72a
6
+ metadata.gz: 1fefd2ed6233e8d67b708dc73e0140b0c0686a21a936c80382fa7372b1a4549cbc0f94a25206a0c89d0ebe52da81920d7b00b1c0c26718d7af0a4cbbf213e33a
7
+ data.tar.gz: e7de32d1d2326236aaaed051727e4429f92d33892f3e5e4fd9f8876f336cd62078096426d923e16a8f830bfdf836c670eb6eb16b31161b6d6d750163892ecfd5
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.217
1
+ 1.0.221
@@ -4,13 +4,19 @@
4
4
 
5
5
  ```
6
6
  {
7
+ "id": 1,
7
8
  "automation_id": 1,
9
+ "completed_at": "2000-01-01T01:00:00Z",
10
+ "created_at": "2000-01-01T01:00:00Z",
8
11
  "status": "success",
9
12
  "status_messages_url": "https://www.example.com/log_file.txt"
10
13
  }
11
14
  ```
12
15
 
16
+ * `id` (int64): ID.
13
17
  * `automation_id` (int64): ID of the associated Automation.
18
+ * `completed_at` (date-time): Automation run completion/failure date/time.
19
+ * `created_at` (date-time): Automation run start date/time.
14
20
  * `status` (string): The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
15
21
  * `status_messages_url` (string): Link to status messages log file.
16
22
 
@@ -40,3 +46,16 @@ Files::AutomationRun.list(
40
46
  * `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `status`.
41
47
  * `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `status`.
42
48
  * `automation_id` (int64): Required - ID of the associated Automation.
49
+
50
+
51
+ ---
52
+
53
+ ## Show Automation Run
54
+
55
+ ```
56
+ Files::AutomationRun.find(id)
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ * `id` (int64): Required - Automation Run ID.
@@ -13,6 +13,7 @@
13
13
  "clickwrap_body": "",
14
14
  "form_field_set_id": 1,
15
15
  "form_field_data": "",
16
+ "bundle_code": "",
16
17
  "bundle_id": 1,
17
18
  "bundle_recipient_id": 1
18
19
  }
@@ -27,6 +28,7 @@
27
28
  * `clickwrap_body` (string): Clickwrap text that was shown to the registrant
28
29
  * `form_field_set_id` (int64): Id of associated form field set
29
30
  * `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
31
+ * `bundle_code` (string): Bundle URL code
30
32
  * `bundle_id` (int64): Id of associated bundle
31
33
  * `bundle_recipient_id` (int64): Id of associated bundle recipient
32
34
 
@@ -45,7 +45,7 @@ Files::ExternalEvent.list(
45
45
 
46
46
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
47
47
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
48
- * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at`, `status`, `site_id` or `folder_behavior_id`.
48
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
49
49
  * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
50
50
  * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
51
51
  * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
data/docs/file.md CHANGED
@@ -27,7 +27,8 @@ may places where a Ruby File object can be used.
27
27
  "status": "complete",
28
28
  "download_uri": "https://mysite.files.com/...",
29
29
  "type": "complete",
30
- "size": 1024
30
+ "size": 1024,
31
+ "status_message": ""
31
32
  }
32
33
  }
33
34
  ```
data/docs/folder.md CHANGED
@@ -29,7 +29,8 @@ Files::Dir is an alias of Files::Folder
29
29
  "status": "complete",
30
30
  "download_uri": "https://mysite.files.com/...",
31
31
  "type": "complete",
32
- "size": 1024
32
+ "size": 1024,
33
+ "status_message": ""
33
34
  }
34
35
  }
35
36
  ```
@@ -12,7 +12,8 @@
12
12
  "form_field_set_id": 1,
13
13
  "form_field_data": "",
14
14
  "inbox_id": 1,
15
- "inbox_recipient_id": 1
15
+ "inbox_recipient_id": 1,
16
+ "inbox_title": ""
16
17
  }
17
18
  ```
18
19
 
@@ -25,6 +26,7 @@
25
26
  * `form_field_data` (string): Data for form field set with form field ids as keys and user data as values
26
27
  * `inbox_id` (int64): Id of associated inbox
27
28
  * `inbox_recipient_id` (int64): Id of associated inbox recipient
29
+ * `inbox_title` (string): Title of associated inbox
28
30
 
29
31
 
30
32
  ---
data/docs/preview.md CHANGED
@@ -8,7 +8,8 @@
8
8
  "status": "complete",
9
9
  "download_uri": "https://mysite.files.com/...",
10
10
  "type": "complete",
11
- "size": 1024
11
+ "size": 1024,
12
+ "status_message": ""
12
13
  }
13
14
  ```
14
15
 
@@ -17,3 +18,4 @@
17
18
  * `download_uri` (string): Link to download preview
18
19
  * `type` (string): Preview status. Can be invalid, not_generated, generating, complete, or file_too_large
19
20
  * `size` (int64): Preview size
21
+ * `status_message` (string): Preview status message. Addtional context from the preview generation process about the status
@@ -9,11 +9,26 @@ module Files
9
9
  @options = options || {}
10
10
  end
11
11
 
12
+ # int64 - ID.
13
+ def id
14
+ @attributes[:id]
15
+ end
16
+
12
17
  # int64 - ID of the associated Automation.
13
18
  def automation_id
14
19
  @attributes[:automation_id]
15
20
  end
16
21
 
22
+ # date-time - Automation run completion/failure date/time.
23
+ def completed_at
24
+ @attributes[:completed_at]
25
+ end
26
+
27
+ # date-time - Automation run start date/time.
28
+ def created_at
29
+ @attributes[:created_at]
30
+ end
31
+
17
32
  # string - The success status of the AutomationRun. One of `running`, `success`, `partial_failure`, or `failure`.
18
33
  def status
19
34
  @attributes[:status]
@@ -58,5 +73,21 @@ module Files
58
73
  def self.all(params = {}, options = {})
59
74
  list(params, options)
60
75
  end
76
+
77
+ # Parameters:
78
+ # id (required) - int64 - Automation Run ID.
79
+ def self.find(id, params = {}, options = {})
80
+ params ||= {}
81
+ params[:id] = id
82
+ raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params.dig(:id) and !params.dig(:id).is_a?(Integer)
83
+ raise MissingParameterError.new("Parameter missing: id") unless params.dig(:id)
84
+
85
+ response, options = Api.send_request("/automation_runs/#{params[:id]}", :get, params, options)
86
+ AutomationRun.new(response.data, options)
87
+ end
88
+
89
+ def self.get(id, params = {}, options = {})
90
+ find(id, params, options)
91
+ end
61
92
  end
62
93
  end
@@ -54,6 +54,11 @@ module Files
54
54
  @attributes[:form_field_data]
55
55
  end
56
56
 
57
+ # string - Bundle URL code
58
+ def bundle_code
59
+ @attributes[:bundle_code]
60
+ end
61
+
57
62
  # int64 - Id of associated bundle
58
63
  def bundle_id
59
64
  @attributes[:bundle_id]
@@ -116,7 +116,7 @@ module Files
116
116
  # Parameters:
117
117
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
118
118
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
119
- # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `event_type`, `created_at`, `status`, `site_id` or `folder_behavior_id`.
119
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `remote_server_type`, `site_id`, `folder_behavior_id`, `event_type`, `created_at` or `status`.
120
120
  # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
121
121
  # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
122
122
  # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status` or `folder_behavior_id`.
@@ -155,7 +155,7 @@ module Files
155
155
  etags ||= []
156
156
  bytes_written = 0
157
157
  loop do
158
- begin_upload = FileAction.begin_upload(path, { ref: upload&.ref, part: (upload&.part_number || 0) + 1 }, options)
158
+ begin_upload = File.begin_upload(path, { ref: upload&.ref, part: (upload&.part_number || 0) + 1 }, options)
159
159
  upload = begin_upload.is_a?(Enumerable) ? begin_upload.first : begin_upload
160
160
  buf = io.read(upload.partsize) || ""
161
161
  bytes_written += buf.length
@@ -54,6 +54,11 @@ module Files
54
54
  @attributes[:inbox_recipient_id]
55
55
  end
56
56
 
57
+ # string - Title of associated inbox
58
+ def inbox_title
59
+ @attributes[:inbox_title]
60
+ end
61
+
57
62
  # Parameters:
58
63
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
59
64
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -33,5 +33,10 @@ module Files
33
33
  def size
34
34
  @attributes[:size]
35
35
  end
36
+
37
+ # string - Preview status message. Addtional context from the preview generation process about the status
38
+ def status_message
39
+ @attributes[:status_message]
40
+ end
36
41
  end
37
42
  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.0.217
4
+ version: 1.0.221
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-30 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable