files.com 1.0.259 → 1.0.262

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: d5c3d7ea27933bb474bbff51249d218778770d93fca742c07153d981c6f2590f
4
- data.tar.gz: 375a5bc28f28de70f7d353bc182254be316d5381d8e1b43c624417c647a12541
3
+ metadata.gz: f4f6ab56e4015c5b9666c3ed15e07ef511d6502d308d9105001992ffcad820f0
4
+ data.tar.gz: 40aac200d2f0d37df064e28883cd65e7927f9887a1611d76e1c80e9f5c55bfba
5
5
  SHA512:
6
- metadata.gz: 0d6c8fdf579c590329dd9487470ec38f5d50f8d8b7db909f8e48cea45b249629ebc9557ba4dd38a38ae5a6c8af026dd62f2e632fbbc315f525c8169e7c2ac15b
7
- data.tar.gz: 19b58031a0c372ddb1c0fe0dd231c8a05aeffc84af95f7706ec1cdb44f6641cee4026e9cba3a9f82cc453379f0125456b6709ae4be077721939ea28c076e1640
6
+ metadata.gz: 2a3663323fea63e3f354905571362f9205072d948f7fd4bdb85730f6dbd083a57ef7478ad3e83e53f7b7f48876e4e9a7376fa6f495a3968305f1eac7218c244e
7
+ data.tar.gz: e2e94f372c2f28c56d6147ac53cdf191e5f7a6946c0ba07170b6c4b98b3c53daea45118c0c3064041d789f226c4559828352ee11a9e1e6eac6df5f0fdc2cff06
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.259
1
+ 1.0.262
@@ -18,6 +18,7 @@
18
18
  "as2_from": "",
19
19
  "message_id": "",
20
20
  "subject": "",
21
+ "date": "",
21
22
  "body_size": "",
22
23
  "attachment_filename": "",
23
24
  "ip": "",
@@ -54,6 +55,7 @@
54
55
  * `as2_from` (string): AS2 FROM header of message
55
56
  * `message_id` (string): AS2 Message Id
56
57
  * `subject` (string): AS2 Subject Header
58
+ * `date` (string): Date Header
57
59
  * `body_size` (string): Encrypted Payload Body Size
58
60
  * `attachment_filename` (string): Filename of the file being received.
59
61
  * `ip` (string): IP Address of the Sender
@@ -90,4 +92,11 @@ Files::As2IncomingMessage.list(
90
92
 
91
93
  * `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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
92
94
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
95
+ * `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 `created_at` and `as2_partner_id`.
96
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
97
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
98
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
99
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
100
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
101
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
93
102
  * `as2_partner_id` (int64): As2 Partner ID. If provided, will return message specific to that partner.
@@ -15,6 +15,7 @@
15
15
  "mic_sha_256": "",
16
16
  "as2_to": "",
17
17
  "as2_from": "",
18
+ "date": "",
18
19
  "message_id": "",
19
20
  "body_size": "",
20
21
  "attachment_filename": "",
@@ -46,6 +47,7 @@
46
47
  * `mic_sha_256` (string): AS2 Message Integrity Check SHA256
47
48
  * `as2_to` (string): AS2 TO
48
49
  * `as2_from` (string): AS2 FROM
50
+ * `date` (string): Date Header
49
51
  * `message_id` (string): AS2 Message Id
50
52
  * `body_size` (string): Encrypted Payload Body Size
51
53
  * `attachment_filename` (string): Filename of the file being sent.
@@ -80,4 +82,11 @@ Files::As2OutgoingMessage.list(
80
82
 
81
83
  * `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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
82
84
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
85
+ * `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 `created_at` and `as2_partner_id`.
86
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
87
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
88
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
89
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
90
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
91
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
83
92
  * `as2_partner_id` (int64): As2 Partner ID. If provided, will return message specific to that partner.
data/docs/folder.md CHANGED
@@ -50,6 +50,7 @@ Files::Dir is an alias of Files::Folder
50
50
  * `priority_color` (string): Bookmark/priority color of file/folder
51
51
  * `preview_id` (int64): File preview ID
52
52
  * `preview` (Preview): File preview
53
+ * `mkdir_parents` (boolean): Create parent directories if they do not exist?
53
54
 
54
55
 
55
56
  ---
@@ -83,9 +84,12 @@ Files::Folder.list_for(path,
83
84
  ## Create folder
84
85
 
85
86
  ```
86
- Files::Folder.create(path)
87
+ Files::Folder.create(path,
88
+ mkdir_parents: true
89
+ )
87
90
  ```
88
91
 
89
92
  ### Parameters
90
93
 
91
94
  * `path` (string): Required - Path to operate on.
95
+ * `mkdir_parents` (boolean): Create parent directories if they do not exist?
@@ -79,6 +79,11 @@ module Files
79
79
  @attributes[:subject]
80
80
  end
81
81
 
82
+ # string - Date Header
83
+ def date
84
+ @attributes[:date]
85
+ end
86
+
82
87
  # string - Encrypted Payload Body Size
83
88
  def body_size
84
89
  @attributes[:body_size]
@@ -177,10 +182,24 @@ module Files
177
182
  # Parameters:
178
183
  # 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
179
184
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
185
+ # 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 `created_at` and `as2_partner_id`.
186
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
187
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
188
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
189
+ # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
190
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
191
+ # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
180
192
  # as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
181
193
  def self.list(params = {}, options = {})
182
194
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
183
195
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
196
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
197
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
198
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
199
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
200
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
201
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
202
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
184
203
  raise InvalidParameterError.new("Bad parameter: as2_partner_id must be an Integer") if params.dig(:as2_partner_id) and !params.dig(:as2_partner_id).is_a?(Integer)
185
204
 
186
205
  List.new(As2IncomingMessage, params) do
@@ -64,6 +64,11 @@ module Files
64
64
  @attributes[:as2_from]
65
65
  end
66
66
 
67
+ # string - Date Header
68
+ def date
69
+ @attributes[:date]
70
+ end
71
+
67
72
  # string - AS2 Message Id
68
73
  def message_id
69
74
  @attributes[:message_id]
@@ -152,10 +157,24 @@ module Files
152
157
  # Parameters:
153
158
  # 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 either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
154
159
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
160
+ # 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 `created_at` and `as2_partner_id`.
161
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
162
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
163
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
164
+ # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
165
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
166
+ # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
155
167
  # as2_partner_id - int64 - As2 Partner ID. If provided, will return message specific to that partner.
156
168
  def self.list(params = {}, options = {})
157
169
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
158
170
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
171
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
172
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
173
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
174
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
175
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
176
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
177
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
159
178
  raise InvalidParameterError.new("Bad parameter: as2_partner_id must be an Integer") if params.dig(:as2_partner_id) and !params.dig(:as2_partner_id).is_a?(Integer)
160
179
 
161
180
  List.new(As2OutgoingMessage, params) do
@@ -294,6 +294,15 @@ module Files
294
294
  @attributes[:preview] = value
295
295
  end
296
296
 
297
+ # boolean - Create parent directories if they do not exist?
298
+ def mkdir_parents
299
+ @attributes[:mkdir_parents]
300
+ end
301
+
302
+ def mkdir_parents=(value)
303
+ @attributes[:mkdir_parents] = value
304
+ end
305
+
297
306
  def save
298
307
  new_obj = Folder.create(path, @attributes, @options)
299
308
  @attributes = new_obj.attributes
@@ -327,6 +336,7 @@ module Files
327
336
 
328
337
  # Parameters:
329
338
  # path (required) - string - Path to operate on.
339
+ # mkdir_parents - boolean - Create parent directories if they do not exist?
330
340
  def self.create(path, params = {}, options = {})
331
341
  params ||= {}
332
342
  params[:path] = path
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.259
4
+ version: 1.0.262
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-15 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable