files.com 1.0.173 → 1.0.174
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/Automation.js +6 -0
- package/package.json +1 -1
- package/src/models/Automation.js +9 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.174
|
package/lib/models/Automation.js
CHANGED
@@ -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, "getDisabled", function () {
|
57
|
+
return _this.attributes.disabled;
|
58
|
+
});
|
59
|
+
(0, _defineProperty2.default)(this, "setDisabled", function (value) {
|
60
|
+
_this.attributes.disabled = value;
|
61
|
+
});
|
56
62
|
(0, _defineProperty2.default)(this, "getTrigger", function () {
|
57
63
|
return _this.attributes.trigger;
|
58
64
|
});
|
package/package.json
CHANGED
package/src/models/Automation.js
CHANGED
@@ -36,6 +36,13 @@ class Automation {
|
|
36
36
|
this.attributes.automation = value
|
37
37
|
}
|
38
38
|
|
39
|
+
// boolean # If true, this automation will not run.
|
40
|
+
getDisabled = () => this.attributes.disabled
|
41
|
+
|
42
|
+
setDisabled = value => {
|
43
|
+
this.attributes.disabled = value
|
44
|
+
}
|
45
|
+
|
39
46
|
// string # How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
40
47
|
getTrigger = () => this.attributes.trigger
|
41
48
|
|
@@ -169,6 +176,7 @@ class Automation {
|
|
169
176
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
170
177
|
// schedule - object - Custom schedule for running this automation.
|
171
178
|
// description - string - Description for the this Automation.
|
179
|
+
// disabled - boolean - If true, this automation will not run.
|
172
180
|
// name - string - Name for this automation.
|
173
181
|
// trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
174
182
|
// trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|
@@ -360,6 +368,7 @@ class Automation {
|
|
360
368
|
// group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
361
369
|
// schedule - object - Custom schedule for running this automation.
|
362
370
|
// description - string - Description for the this Automation.
|
371
|
+
// disabled - boolean - If true, this automation will not run.
|
363
372
|
// name - string - Name for this automation.
|
364
373
|
// trigger - string - How this automation is triggered to run. One of: `realtime`, `daily`, `custom_schedule`, `webhook`, `email`, or `action`.
|
365
374
|
// trigger_actions - array(string) - If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
|