files.com 1.0.185 → 1.0.188

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.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.185
1
+ 1.0.188
@@ -53,6 +53,12 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
53
53
  (0, _defineProperty2.default)(this, "setAutomation", function (value) {
54
54
  _this.attributes.automation = value;
55
55
  });
56
+ (0, _defineProperty2.default)(this, "getDeleted", function () {
57
+ return _this.attributes.deleted;
58
+ });
59
+ (0, _defineProperty2.default)(this, "setDeleted", function (value) {
60
+ _this.attributes.deleted = value;
61
+ });
56
62
  (0, _defineProperty2.default)(this, "getDisabled", function () {
57
63
  return _this.attributes.disabled;
58
64
  });
@@ -71,6 +77,12 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
71
77
  (0, _defineProperty2.default)(this, "setInterval", function (value) {
72
78
  _this.attributes.interval = value;
73
79
  });
80
+ (0, _defineProperty2.default)(this, "getLastModifiedAt", function () {
81
+ return _this.attributes.last_modified_at;
82
+ });
83
+ (0, _defineProperty2.default)(this, "setLastModifiedAt", function (value) {
84
+ _this.attributes.last_modified_at = value;
85
+ });
74
86
  (0, _defineProperty2.default)(this, "getName", function () {
75
87
  return _this.attributes.name;
76
88
  });
@@ -161,6 +173,12 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
161
173
  (0, _defineProperty2.default)(this, "setDestination", function (value) {
162
174
  _this.attributes.destination = value;
163
175
  });
176
+ (0, _defineProperty2.default)(this, "getClonedFrom", function () {
177
+ return _this.attributes.cloned_from;
178
+ });
179
+ (0, _defineProperty2.default)(this, "setClonedFrom", function (value) {
180
+ _this.attributes.cloned_from = value;
181
+ });
164
182
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
165
183
  var params,
166
184
  response,
@@ -197,116 +215,116 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
197
215
  throw new Error("Bad parameter: id must be of type Int, received ".concat((0, _utils.getType)(id)));
198
216
 
199
217
  case 8:
200
- if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
218
+ if (!(params['source'] && !(0, _utils.isString)(params['source']))) {
201
219
  _context.next = 10;
202
220
  break;
203
221
  }
204
222
 
205
- throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
223
+ throw new Error("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(source)));
206
224
 
207
225
  case 10:
208
- if (!(params['source'] && !(0, _utils.isString)(params['source']))) {
226
+ if (!(params['destination'] && !(0, _utils.isString)(params['destination']))) {
209
227
  _context.next = 12;
210
228
  break;
211
229
  }
212
230
 
213
- throw new Error("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(source)));
231
+ throw new Error("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(destination)));
214
232
 
215
233
  case 12:
216
- if (!(params['destination'] && !(0, _utils.isString)(params['destination']))) {
234
+ if (!(params['destinations'] && !(0, _utils.isArray)(params['destinations']))) {
217
235
  _context.next = 14;
218
236
  break;
219
237
  }
220
238
 
221
- throw new Error("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(destination)));
239
+ throw new Error("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(destinations)));
222
240
 
223
241
  case 14:
224
- if (!(params['destinations'] && !(0, _utils.isArray)(params['destinations']))) {
242
+ if (!(params['destination_replace_from'] && !(0, _utils.isString)(params['destination_replace_from']))) {
225
243
  _context.next = 16;
226
244
  break;
227
245
  }
228
246
 
229
- throw new Error("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(destinations)));
247
+ throw new Error("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(destination_replace_from)));
230
248
 
231
249
  case 16:
232
- if (!(params['destination_replace_from'] && !(0, _utils.isString)(params['destination_replace_from']))) {
250
+ if (!(params['destination_replace_to'] && !(0, _utils.isString)(params['destination_replace_to']))) {
233
251
  _context.next = 18;
234
252
  break;
235
253
  }
236
254
 
237
- throw new Error("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(destination_replace_from)));
255
+ throw new Error("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(destination_replace_to)));
238
256
 
239
257
  case 18:
240
- if (!(params['destination_replace_to'] && !(0, _utils.isString)(params['destination_replace_to']))) {
258
+ if (!(params['interval'] && !(0, _utils.isString)(params['interval']))) {
241
259
  _context.next = 20;
242
260
  break;
243
261
  }
244
262
 
245
- throw new Error("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(destination_replace_to)));
263
+ throw new Error("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(interval)));
246
264
 
247
265
  case 20:
248
- if (!(params['interval'] && !(0, _utils.isString)(params['interval']))) {
266
+ if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
249
267
  _context.next = 22;
250
268
  break;
251
269
  }
252
270
 
253
- throw new Error("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(interval)));
271
+ throw new Error("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
254
272
 
255
273
  case 22:
256
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
274
+ if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
257
275
  _context.next = 24;
258
276
  break;
259
277
  }
260
278
 
261
- throw new Error("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
279
+ throw new Error("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(user_ids)));
262
280
 
263
281
  case 24:
264
- if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
282
+ if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
265
283
  _context.next = 26;
266
284
  break;
267
285
  }
268
286
 
269
- throw new Error("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(user_ids)));
287
+ throw new Error("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(group_ids)));
270
288
 
271
289
  case 26:
272
- if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
290
+ if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
273
291
  _context.next = 28;
274
292
  break;
275
293
  }
276
294
 
277
- throw new Error("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(group_ids)));
295
+ throw new Error("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
278
296
 
279
297
  case 28:
280
- if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
298
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
281
299
  _context.next = 30;
282
300
  break;
283
301
  }
284
302
 
285
- throw new Error("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
303
+ throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
286
304
 
287
305
  case 30:
288
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
306
+ if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
289
307
  _context.next = 32;
290
308
  break;
291
309
  }
292
310
 
293
- throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
311
+ throw new Error("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(trigger)));
294
312
 
295
313
  case 32:
296
- if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
314
+ if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
297
315
  _context.next = 34;
298
316
  break;
299
317
  }
300
318
 
301
- throw new Error("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(trigger)));
319
+ throw new Error("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(trigger_actions)));
302
320
 
303
321
  case 34:
304
- if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
322
+ if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
305
323
  _context.next = 36;
306
324
  break;
307
325
  }
308
326
 
309
- throw new Error("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(trigger_actions)));
327
+ throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
310
328
 
311
329
  case 36:
312
330
  if (params['id']) {
@@ -327,32 +345,14 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
327
345
  throw new Error('Parameter missing: id');
328
346
 
329
347
  case 42:
330
- if (params['automation']) {
331
- _context.next = 48;
332
- break;
333
- }
334
-
335
- if (!_this.attributes.automation) {
336
- _context.next = 47;
337
- break;
338
- }
339
-
340
- params['automation'] = _this.automation;
341
- _context.next = 48;
342
- break;
343
-
344
- case 47:
345
- throw new Error('Parameter missing: automation');
346
-
347
- case 48:
348
- _context.next = 50;
348
+ _context.next = 44;
349
349
  return _Api.default.sendRequest("/automations/".concat(params['id']), 'PATCH', params, _this.options);
350
350
 
351
- case 50:
351
+ case 44:
352
352
  response = _context.sent;
353
353
  return _context.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
354
354
 
355
- case 52:
355
+ case 46:
356
356
  case "end":
357
357
  return _context.stop();
358
358
  }
@@ -596,126 +596,134 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
596
596
  throw new Error('Parameter missing: automation');
597
597
 
598
598
  case 4:
599
- if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
599
+ if (!(params['source'] && !(0, _utils.isString)(params['source']))) {
600
600
  _context5.next = 6;
601
601
  break;
602
602
  }
603
603
 
604
- throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
604
+ throw new Error("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(source)));
605
605
 
606
606
  case 6:
607
- if (!(params['source'] && !(0, _utils.isString)(params['source']))) {
607
+ if (!(params['destination'] && !(0, _utils.isString)(params['destination']))) {
608
608
  _context5.next = 8;
609
609
  break;
610
610
  }
611
611
 
612
- throw new Error("Bad parameter: source must be of type String, received ".concat((0, _utils.getType)(source)));
612
+ throw new Error("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(destination)));
613
613
 
614
614
  case 8:
615
- if (!(params['destination'] && !(0, _utils.isString)(params['destination']))) {
615
+ if (!(params['destinations'] && !(0, _utils.isArray)(params['destinations']))) {
616
616
  _context5.next = 10;
617
617
  break;
618
618
  }
619
619
 
620
- throw new Error("Bad parameter: destination must be of type String, received ".concat((0, _utils.getType)(destination)));
620
+ throw new Error("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(destinations)));
621
621
 
622
622
  case 10:
623
- if (!(params['destinations'] && !(0, _utils.isArray)(params['destinations']))) {
623
+ if (!(params['destination_replace_from'] && !(0, _utils.isString)(params['destination_replace_from']))) {
624
624
  _context5.next = 12;
625
625
  break;
626
626
  }
627
627
 
628
- throw new Error("Bad parameter: destinations must be of type Array, received ".concat((0, _utils.getType)(destinations)));
628
+ throw new Error("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(destination_replace_from)));
629
629
 
630
630
  case 12:
631
- if (!(params['destination_replace_from'] && !(0, _utils.isString)(params['destination_replace_from']))) {
631
+ if (!(params['destination_replace_to'] && !(0, _utils.isString)(params['destination_replace_to']))) {
632
632
  _context5.next = 14;
633
633
  break;
634
634
  }
635
635
 
636
- throw new Error("Bad parameter: destination_replace_from must be of type String, received ".concat((0, _utils.getType)(destination_replace_from)));
636
+ throw new Error("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(destination_replace_to)));
637
637
 
638
638
  case 14:
639
- if (!(params['destination_replace_to'] && !(0, _utils.isString)(params['destination_replace_to']))) {
639
+ if (!(params['interval'] && !(0, _utils.isString)(params['interval']))) {
640
640
  _context5.next = 16;
641
641
  break;
642
642
  }
643
643
 
644
- throw new Error("Bad parameter: destination_replace_to must be of type String, received ".concat((0, _utils.getType)(destination_replace_to)));
644
+ throw new Error("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(interval)));
645
645
 
646
646
  case 16:
647
- if (!(params['interval'] && !(0, _utils.isString)(params['interval']))) {
647
+ if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
648
648
  _context5.next = 18;
649
649
  break;
650
650
  }
651
651
 
652
- throw new Error("Bad parameter: interval must be of type String, received ".concat((0, _utils.getType)(interval)));
652
+ throw new Error("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
653
653
 
654
654
  case 18:
655
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
655
+ if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
656
656
  _context5.next = 20;
657
657
  break;
658
658
  }
659
659
 
660
- throw new Error("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
660
+ throw new Error("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(user_ids)));
661
661
 
662
662
  case 20:
663
- if (!(params['user_ids'] && !(0, _utils.isString)(params['user_ids']))) {
663
+ if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
664
664
  _context5.next = 22;
665
665
  break;
666
666
  }
667
667
 
668
- throw new Error("Bad parameter: user_ids must be of type String, received ".concat((0, _utils.getType)(user_ids)));
668
+ throw new Error("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(group_ids)));
669
669
 
670
670
  case 22:
671
- if (!(params['group_ids'] && !(0, _utils.isString)(params['group_ids']))) {
671
+ if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
672
672
  _context5.next = 24;
673
673
  break;
674
674
  }
675
675
 
676
- throw new Error("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(group_ids)));
676
+ throw new Error("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
677
677
 
678
678
  case 24:
679
- if (!(params['description'] && !(0, _utils.isString)(params['description']))) {
679
+ if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
680
680
  _context5.next = 26;
681
681
  break;
682
682
  }
683
683
 
684
- throw new Error("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(description)));
684
+ throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
685
685
 
686
686
  case 26:
687
- if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
687
+ if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
688
688
  _context5.next = 28;
689
689
  break;
690
690
  }
691
691
 
692
- throw new Error("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(name)));
692
+ throw new Error("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(trigger)));
693
693
 
694
694
  case 28:
695
- if (!(params['trigger'] && !(0, _utils.isString)(params['trigger']))) {
695
+ if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
696
696
  _context5.next = 30;
697
697
  break;
698
698
  }
699
699
 
700
- throw new Error("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(trigger)));
700
+ throw new Error("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(trigger_actions)));
701
701
 
702
702
  case 30:
703
- if (!(params['trigger_actions'] && !(0, _utils.isArray)(params['trigger_actions']))) {
703
+ if (!(params['automation'] && !(0, _utils.isString)(params['automation']))) {
704
704
  _context5.next = 32;
705
705
  break;
706
706
  }
707
707
 
708
- throw new Error("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(trigger_actions)));
708
+ throw new Error("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(automation)));
709
709
 
710
710
  case 32:
711
- _context5.next = 34;
712
- return _Api.default.sendRequest("/automations", 'POST', params, options);
711
+ if (!(params['cloned_from'] && !(0, _utils.isInt)(params['cloned_from']))) {
712
+ _context5.next = 34;
713
+ break;
714
+ }
715
+
716
+ throw new Error("Bad parameter: cloned_from must be of type Int, received ".concat((0, _utils.getType)(cloned_from)));
713
717
 
714
718
  case 34:
719
+ _context5.next = 36;
720
+ return _Api.default.sendRequest("/automations", 'POST', params, options);
721
+
722
+ case 36:
715
723
  response = _context5.sent;
716
724
  return _context5.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, options));
717
725
 
718
- case 36:
726
+ case 38:
719
727
  case "end":
720
728
  return _context5.stop();
721
729
  }
@@ -65,6 +65,24 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
65
65
  (0, _defineProperty2.default)(this, "setGroupName", function (value) {
66
66
  _this.attributes.group_name = value;
67
67
  });
68
+ (0, _defineProperty2.default)(this, "getTriggeringGroupIds", function () {
69
+ return _this.attributes.triggering_group_ids;
70
+ });
71
+ (0, _defineProperty2.default)(this, "setTriggeringGroupIds", function (value) {
72
+ _this.attributes.triggering_group_ids = value;
73
+ });
74
+ (0, _defineProperty2.default)(this, "getTriggeringUserIds", function () {
75
+ return _this.attributes.triggering_user_ids;
76
+ });
77
+ (0, _defineProperty2.default)(this, "setTriggeringUserIds", function (value) {
78
+ _this.attributes.triggering_user_ids = value;
79
+ });
80
+ (0, _defineProperty2.default)(this, "getTriggerByShareRecipients", function () {
81
+ return _this.attributes.trigger_by_share_recipients;
82
+ });
83
+ (0, _defineProperty2.default)(this, "setTriggerByShareRecipients", function (value) {
84
+ _this.attributes.trigger_by_share_recipients = value;
85
+ });
68
86
  (0, _defineProperty2.default)(this, "getNotifyUserActions", function () {
69
87
  return _this.attributes.notify_user_actions;
70
88
  });
@@ -77,6 +95,30 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
77
95
  (0, _defineProperty2.default)(this, "setNotifyOnCopy", function (value) {
78
96
  _this.attributes.notify_on_copy = value;
79
97
  });
98
+ (0, _defineProperty2.default)(this, "getNotifyOnDelete", function () {
99
+ return _this.attributes.notify_on_delete;
100
+ });
101
+ (0, _defineProperty2.default)(this, "setNotifyOnDelete", function (value) {
102
+ _this.attributes.notify_on_delete = value;
103
+ });
104
+ (0, _defineProperty2.default)(this, "getNotifyOnDownload", function () {
105
+ return _this.attributes.notify_on_download;
106
+ });
107
+ (0, _defineProperty2.default)(this, "setNotifyOnDownload", function (value) {
108
+ _this.attributes.notify_on_download = value;
109
+ });
110
+ (0, _defineProperty2.default)(this, "getNotifyOnMove", function () {
111
+ return _this.attributes.notify_on_move;
112
+ });
113
+ (0, _defineProperty2.default)(this, "setNotifyOnMove", function (value) {
114
+ _this.attributes.notify_on_move = value;
115
+ });
116
+ (0, _defineProperty2.default)(this, "getNotifyOnUpload", function () {
117
+ return _this.attributes.notify_on_upload;
118
+ });
119
+ (0, _defineProperty2.default)(this, "setNotifyOnUpload", function (value) {
120
+ _this.attributes.notify_on_upload = value;
121
+ });
80
122
  (0, _defineProperty2.default)(this, "getRecursive", function () {
81
123
  return _this.attributes.recursive;
82
124
  });
@@ -95,6 +137,12 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
95
137
  (0, _defineProperty2.default)(this, "setMessage", function (value) {
96
138
  _this.attributes.message = value;
97
139
  });
140
+ (0, _defineProperty2.default)(this, "getTriggeringFilenames", function () {
141
+ return _this.attributes.triggering_filenames;
142
+ });
143
+ (0, _defineProperty2.default)(this, "setTriggeringFilenames", function (value) {
144
+ _this.attributes.triggering_filenames = value;
145
+ });
98
146
  (0, _defineProperty2.default)(this, "getUnsubscribed", function () {
99
147
  return _this.attributes.unsubscribed;
100
148
  });
@@ -177,32 +225,56 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
177
225
  throw new Error("Bad parameter: message must be of type String, received ".concat((0, _utils.getType)(message)));
178
226
 
179
227
  case 12:
180
- if (params['id']) {
228
+ if (!(params['triggering_filenames'] && !(0, _utils.isArray)(params['triggering_filenames']))) {
229
+ _context.next = 14;
230
+ break;
231
+ }
232
+
233
+ throw new Error("Bad parameter: triggering_filenames must be of type Array, received ".concat((0, _utils.getType)(triggering_filenames)));
234
+
235
+ case 14:
236
+ if (!(params['triggering_group_ids'] && !(0, _utils.isArray)(params['triggering_group_ids']))) {
237
+ _context.next = 16;
238
+ break;
239
+ }
240
+
241
+ throw new Error("Bad parameter: triggering_group_ids must be of type Array, received ".concat((0, _utils.getType)(triggering_group_ids)));
242
+
243
+ case 16:
244
+ if (!(params['triggering_user_ids'] && !(0, _utils.isArray)(params['triggering_user_ids']))) {
181
245
  _context.next = 18;
182
246
  break;
183
247
  }
184
248
 
249
+ throw new Error("Bad parameter: triggering_user_ids must be of type Array, received ".concat((0, _utils.getType)(triggering_user_ids)));
250
+
251
+ case 18:
252
+ if (params['id']) {
253
+ _context.next = 24;
254
+ break;
255
+ }
256
+
185
257
  if (!_this.attributes.id) {
186
- _context.next = 17;
258
+ _context.next = 23;
187
259
  break;
188
260
  }
189
261
 
190
262
  params['id'] = _this.id;
191
- _context.next = 18;
263
+ _context.next = 24;
192
264
  break;
193
265
 
194
- case 17:
266
+ case 23:
195
267
  throw new Error('Parameter missing: id');
196
268
 
197
- case 18:
198
- _context.next = 20;
269
+ case 24:
270
+ _context.next = 26;
199
271
  return _Api.default.sendRequest("/notifications/".concat(params['id']), 'PATCH', params, _this.options);
200
272
 
201
- case 20:
273
+ case 26:
202
274
  response = _context.sent;
203
275
  return _context.abrupt("return", new Notification(response === null || response === void 0 ? void 0 : response.data, _this.options));
204
276
 
205
- case 22:
277
+ case 28:
206
278
  case "end":
207
279
  return _context.stop();
208
280
  }
@@ -478,38 +550,62 @@ var Notification = /*#__PURE__*/(0, _createClass2.default)(function Notification
478
550
  throw new Error("Bad parameter: message must be of type String, received ".concat((0, _utils.getType)(message)));
479
551
 
480
552
  case 8:
481
- if (!(params['group_id'] && !(0, _utils.isInt)(params['group_id']))) {
553
+ if (!(params['triggering_filenames'] && !(0, _utils.isArray)(params['triggering_filenames']))) {
482
554
  _context5.next = 10;
483
555
  break;
484
556
  }
485
557
 
486
- throw new Error("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(group_id)));
558
+ throw new Error("Bad parameter: triggering_filenames must be of type Array, received ".concat((0, _utils.getType)(triggering_filenames)));
487
559
 
488
560
  case 10:
489
- if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
561
+ if (!(params['triggering_group_ids'] && !(0, _utils.isArray)(params['triggering_group_ids']))) {
490
562
  _context5.next = 12;
491
563
  break;
492
564
  }
493
565
 
494
- throw new Error("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
566
+ throw new Error("Bad parameter: triggering_group_ids must be of type Array, received ".concat((0, _utils.getType)(triggering_group_ids)));
495
567
 
496
568
  case 12:
497
- if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
569
+ if (!(params['triggering_user_ids'] && !(0, _utils.isArray)(params['triggering_user_ids']))) {
498
570
  _context5.next = 14;
499
571
  break;
500
572
  }
501
573
 
502
- throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
574
+ throw new Error("Bad parameter: triggering_user_ids must be of type Array, received ".concat((0, _utils.getType)(triggering_user_ids)));
503
575
 
504
576
  case 14:
505
- _context5.next = 16;
506
- return _Api.default.sendRequest("/notifications", 'POST', params, options);
577
+ if (!(params['group_id'] && !(0, _utils.isInt)(params['group_id']))) {
578
+ _context5.next = 16;
579
+ break;
580
+ }
581
+
582
+ throw new Error("Bad parameter: group_id must be of type Int, received ".concat((0, _utils.getType)(group_id)));
507
583
 
508
584
  case 16:
585
+ if (!(params['path'] && !(0, _utils.isString)(params['path']))) {
586
+ _context5.next = 18;
587
+ break;
588
+ }
589
+
590
+ throw new Error("Bad parameter: path must be of type String, received ".concat((0, _utils.getType)(path)));
591
+
592
+ case 18:
593
+ if (!(params['username'] && !(0, _utils.isString)(params['username']))) {
594
+ _context5.next = 20;
595
+ break;
596
+ }
597
+
598
+ throw new Error("Bad parameter: username must be of type String, received ".concat((0, _utils.getType)(username)));
599
+
600
+ case 20:
601
+ _context5.next = 22;
602
+ return _Api.default.sendRequest("/notifications", 'POST', params, options);
603
+
604
+ case 22:
509
605
  response = _context5.sent;
510
606
  return _context5.abrupt("return", new Notification(response === null || response === void 0 ? void 0 : response.data, options));
511
607
 
512
- case 18:
608
+ case 24:
513
609
  case "end":
514
610
  return _context5.stop();
515
611
  }