files.com 1.1.605 → 1.1.606
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 +4 -4
- data/_VERSION +1 -1
- data/docs/notification.md +8 -0
- data/lib/files.com/models/notification.rb +15 -0
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bcea2f73759be6497b990dda431e103791e52a802d152204964b6326fa10b1fe
|
|
4
|
+
data.tar.gz: add0d09637d06150d1b927e37f87b25fced8ad8272aff3e0d7ab368fcbe8179e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 552e7ec8fa51eb57daff1162a763d9e7cab01339be50be9afc0630e53c6650b2dda31ad163e363e9260ee1c76a567c5e800256654947fb7161415aaa52d22acc
|
|
7
|
+
data.tar.gz: '059ee6bfe5f55c7e50db8cd7dea3f9d87f4181b664813009b61235137f136a6a9beb539e404c58f8975c4359f7c047cf9213a040c89e29a374a588d1f7240a8d'
|
data/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.606
|
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)
|
data/lib/files.com/version.rb
CHANGED