files.com 1.1.605 → 1.1.607

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: b897c4afdd2176526743b2a4202037c7b6908a274bd7a2d8e437fb7d8a3ed1ad
4
- data.tar.gz: '078b68d769eb4c9a4ff551f3a00ecd7fa47ae8814c1aab2a48c37a5435d620f6'
3
+ metadata.gz: c750e089a2513efc74c8b5e5becf64083f89e985ac31a75449f25252ca82c642
4
+ data.tar.gz: d13e2abe226fa3bd2f857fdf659d03fd618614c84c053bea951513e70ecc5c83
5
5
  SHA512:
6
- metadata.gz: f847476d8069f9720e8d8f84121431349e5012a8ed01de64caafa21b2df61fb2a8f914c0fe2d021bdaaaf3fc3e7a4b8173ad45a848bdcd58008943dd436f8fd2
7
- data.tar.gz: f361e278971ea7874d5147915ecbde80eed6b41a245d94831288266d1eb68046e507fe7b5b5a196ca45c483d90106300bc0e566a30ed34e241a2ceb4bb87d76d
6
+ metadata.gz: 2727026e2c04db76f3c06760e919bfe28e910021125c94961dab36ee40b05276e09b40f225ba2d0daf1800b5efe3293db10908a8fd1ef565324490f99ddd2005
7
+ data.tar.gz: 62f8ec0f44df4c05f971299083961d2fb3c653653b40fa107a9b28878e40d4eacdc164d007db534232f171ac00d7868ed4de67fa1d19ef989e45641b3177701b
data/Gemfile.lock CHANGED
@@ -103,4 +103,4 @@ DEPENDENCIES
103
103
  rubocop
104
104
 
105
105
  BUNDLED WITH
106
- 2.7.2
106
+ 4.0.5
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.605
1
+ 1.1.607
data/docs/notification.md CHANGED
@@ -29,6 +29,7 @@
29
29
  "notify_on_upload": true,
30
30
  "recursive": true,
31
31
  "send_interval": "fifteen_minutes",
32
+ "subject": "Vendor A CSV Activity",
32
33
  "message": "custom notification email message",
33
34
  "triggering_filenames": [
34
35
  "*.jpg",
@@ -59,6 +60,7 @@
59
60
  * `notify_on_upload` (boolean): Trigger on files created/uploaded/updated/changed in this path?
60
61
  * `recursive` (boolean): Apply notification recursively? This will enable notifications for each subfolder.
61
62
  * `send_interval` (string): The time interval that notifications are aggregated to
63
+ * `subject` (string): Custom subject line to use for notification emails
62
64
  * `message` (string): Custom message to include in notification emails
63
65
  * `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
64
66
  * `unsubscribed` (boolean): Is the user unsubscribed from this notification?
@@ -119,6 +121,7 @@ Files::Notification.create(
119
121
  notify_user_actions: false,
120
122
  recursive: false,
121
123
  send_interval: "daily",
124
+ subject: "Vendor A CSV Activity",
122
125
  message: "custom notification email message",
123
126
  triggering_filenames: ["*.jpg","notify_file.txt"],
124
127
  triggering_group_ids: [1],
@@ -141,6 +144,7 @@ Files::Notification.create(
141
144
  * `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
142
145
  * `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
143
146
  * `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
147
+ * `subject` (string): Custom subject line to use for notification emails
144
148
  * `message` (string): Custom message to include in notification emails
145
149
  * `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
146
150
  * `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
@@ -166,6 +170,7 @@ Files::Notification.update(id,
166
170
  notify_user_actions: false,
167
171
  recursive: false,
168
172
  send_interval: "daily",
173
+ subject: "Vendor A CSV Activity",
169
174
  message: "custom notification email message",
170
175
  triggering_filenames: ["*.jpg","notify_file.txt"],
171
176
  triggering_group_ids: [1],
@@ -185,6 +190,7 @@ Files::Notification.update(id,
185
190
  * `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
186
191
  * `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
187
192
  * `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
193
+ * `subject` (string): Custom subject line to use for notification emails
188
194
  * `message` (string): Custom message to include in notification emails
189
195
  * `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
190
196
  * `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
@@ -221,6 +227,7 @@ notification.update(
221
227
  notify_user_actions: false,
222
228
  recursive: false,
223
229
  send_interval: "daily",
230
+ subject: "Vendor A CSV Activity",
224
231
  message: "custom notification email message",
225
232
  triggering_filenames: ["*.jpg","notify_file.txt"],
226
233
  triggering_group_ids: [1],
@@ -240,6 +247,7 @@ notification.update(
240
247
  * `notify_user_actions` (boolean): If `true` actions initiated by the user will still result in a notification
241
248
  * `recursive` (boolean): If `true`, enable notifications for each subfolder in this path
242
249
  * `send_interval` (string): The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
250
+ * `subject` (string): Custom subject line to use for notification emails
243
251
  * `message` (string): Custom message to include in notification emails
244
252
  * `triggering_filenames` (array(string)): Array of filenames (possibly with wildcards) to scope trigger
245
253
  * `triggering_group_ids` (array(int64)): If set, will only notify on actions made by a member of one of the specified groups
@@ -162,6 +162,15 @@ module Files
162
162
  @attributes[:send_interval] = value
163
163
  end
164
164
 
165
+ # string - Custom subject line to use for notification emails
166
+ def subject
167
+ @attributes[:subject]
168
+ end
169
+
170
+ def subject=(value)
171
+ @attributes[:subject] = value
172
+ end
173
+
165
174
  # string - Custom message to include in notification emails
166
175
  def message
167
176
  @attributes[:message]
@@ -234,6 +243,7 @@ module Files
234
243
  # notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
235
244
  # recursive - boolean - If `true`, enable notifications for each subfolder in this path
236
245
  # send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
246
+ # subject - string - Custom subject line to use for notification emails
237
247
  # message - string - Custom message to include in notification emails
238
248
  # triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
239
249
  # triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
@@ -245,6 +255,7 @@ module Files
245
255
  raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id]
246
256
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
247
257
  raise InvalidParameterError.new("Bad parameter: send_interval must be an String") if params[:send_interval] and !params[:send_interval].is_a?(String)
258
+ raise InvalidParameterError.new("Bad parameter: subject must be an String") if params[:subject] and !params[:subject].is_a?(String)
248
259
  raise InvalidParameterError.new("Bad parameter: message must be an String") if params[:message] and !params[:message].is_a?(String)
249
260
  raise InvalidParameterError.new("Bad parameter: triggering_filenames must be an Array") if params[:triggering_filenames] and !params[:triggering_filenames].is_a?(Array)
250
261
  raise InvalidParameterError.new("Bad parameter: triggering_group_ids must be an Array") if params[:triggering_group_ids] and !params[:triggering_group_ids].is_a?(Array)
@@ -333,6 +344,7 @@ module Files
333
344
  # notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
334
345
  # recursive - boolean - If `true`, enable notifications for each subfolder in this path
335
346
  # send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
347
+ # subject - string - Custom subject line to use for notification emails
336
348
  # message - string - Custom message to include in notification emails
337
349
  # triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
338
350
  # triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
@@ -345,6 +357,7 @@ module Files
345
357
  def self.create(params = {}, options = {})
346
358
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params[:user_id] and !params[:user_id].is_a?(Integer)
347
359
  raise InvalidParameterError.new("Bad parameter: send_interval must be an String") if params[:send_interval] and !params[:send_interval].is_a?(String)
360
+ raise InvalidParameterError.new("Bad parameter: subject must be an String") if params[:subject] and !params[:subject].is_a?(String)
348
361
  raise InvalidParameterError.new("Bad parameter: message must be an String") if params[:message] and !params[:message].is_a?(String)
349
362
  raise InvalidParameterError.new("Bad parameter: triggering_filenames must be an Array") if params[:triggering_filenames] and !params[:triggering_filenames].is_a?(Array)
350
363
  raise InvalidParameterError.new("Bad parameter: triggering_group_ids must be an Array") if params[:triggering_group_ids] and !params[:triggering_group_ids].is_a?(Array)
@@ -367,6 +380,7 @@ module Files
367
380
  # notify_user_actions - boolean - If `true` actions initiated by the user will still result in a notification
368
381
  # recursive - boolean - If `true`, enable notifications for each subfolder in this path
369
382
  # send_interval - string - The time interval that notifications are aggregated by. Can be `five_minutes`, `fifteen_minutes`, `hourly`, or `daily`.
383
+ # subject - string - Custom subject line to use for notification emails
370
384
  # message - string - Custom message to include in notification emails
371
385
  # triggering_filenames - array(string) - Array of filenames (possibly with wildcards) to scope trigger
372
386
  # triggering_group_ids - array(int64) - If set, will only notify on actions made by a member of one of the specified groups
@@ -377,6 +391,7 @@ module Files
377
391
  params[:id] = id
378
392
  raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer)
379
393
  raise InvalidParameterError.new("Bad parameter: send_interval must be an String") if params[:send_interval] and !params[:send_interval].is_a?(String)
394
+ raise InvalidParameterError.new("Bad parameter: subject must be an String") if params[:subject] and !params[:subject].is_a?(String)
380
395
  raise InvalidParameterError.new("Bad parameter: message must be an String") if params[:message] and !params[:message].is_a?(String)
381
396
  raise InvalidParameterError.new("Bad parameter: triggering_filenames must be an Array") if params[:triggering_filenames] and !params[:triggering_filenames].is_a?(Array)
382
397
  raise InvalidParameterError.new("Bad parameter: triggering_group_ids must be an Array") if params[:triggering_group_ids] and !params[:triggering_group_ids].is_a?(Array)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.605"
4
+ VERSION = "1.1.607"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.605
4
+ version: 1.1.607
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com