files.com 1.2.14 → 1.2.15

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.2.14
1
+ 1.2.15
@@ -24,6 +24,8 @@
24
24
  "name": "example",
25
25
  "path": "example",
26
26
  "recurring_day": 25,
27
+ "schedule": "example",
28
+ "human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
27
29
  "schedule_days_of_week": [
28
30
  0,
29
31
  2,
@@ -70,9 +72,11 @@
70
72
  * `name` (string): Name for this automation.
71
73
  * `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
72
74
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
73
- * `schedule_days_of_week` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
74
- * `schedule_times_of_day` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
75
- * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
75
+ * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
76
+ * `human_readable_schedule` (string): If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
77
+ * `schedule_days_of_week` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
78
+ * `schedule_times_of_day` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
79
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
76
80
  * `source` (string): Source Path
77
81
  * `sync_ids` (array): IDs of remote sync folder behaviors to run by this Automation
78
82
  * `trigger_actions` (array): 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
@@ -273,6 +277,8 @@ await automation.update({
273
277
  "name": "example",
274
278
  "path": "example",
275
279
  "recurring_day": 25,
280
+ "schedule": "example",
281
+ "human_readable_schedule": "Triggered every Monday, Wednesday at 6:30 AM,\n 2:30 PM Eastern Time (US & Canada) TZ",
276
282
  "schedule_days_of_week": [
277
283
  0,
278
284
  2,
package/lib/Files.js CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
11
11
  var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
- var version = '1.2.14';
14
+ var version = '1.2.15';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -138,21 +138,35 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
138
138
  (0, _defineProperty2.default)(this, "setRecurringDay", function (value) {
139
139
  _this.attributes.recurring_day = value;
140
140
  });
141
- // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
141
+ // object # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
142
+ (0, _defineProperty2.default)(this, "getSchedule", function () {
143
+ return _this.attributes.schedule;
144
+ });
145
+ (0, _defineProperty2.default)(this, "setSchedule", function (value) {
146
+ _this.attributes.schedule = value;
147
+ });
148
+ // string # If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
149
+ (0, _defineProperty2.default)(this, "getHumanReadableSchedule", function () {
150
+ return _this.attributes.human_readable_schedule;
151
+ });
152
+ (0, _defineProperty2.default)(this, "setHumanReadableSchedule", function (value) {
153
+ _this.attributes.human_readable_schedule = value;
154
+ });
155
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
142
156
  (0, _defineProperty2.default)(this, "getScheduleDaysOfWeek", function () {
143
157
  return _this.attributes.schedule_days_of_week;
144
158
  });
145
159
  (0, _defineProperty2.default)(this, "setScheduleDaysOfWeek", function (value) {
146
160
  _this.attributes.schedule_days_of_week = value;
147
161
  });
148
- // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
162
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
149
163
  (0, _defineProperty2.default)(this, "getScheduleTimesOfDay", function () {
150
164
  return _this.attributes.schedule_times_of_day;
151
165
  });
152
166
  (0, _defineProperty2.default)(this, "setScheduleTimesOfDay", function (value) {
153
167
  _this.attributes.schedule_times_of_day = value;
154
168
  });
155
- // string # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
169
+ // string # If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
156
170
  (0, _defineProperty2.default)(this, "getScheduleTimeZone", function () {
157
171
  return _this.attributes.schedule_time_zone;
158
172
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.14'
8
+ const version = '1.2.15'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -133,21 +133,35 @@ class Automation {
133
133
  this.attributes.recurring_day = value
134
134
  }
135
135
 
136
- // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
136
+ // object # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run in json format.
137
+ getSchedule = () => this.attributes.schedule
138
+
139
+ setSchedule = value => {
140
+ this.attributes.schedule = value
141
+ }
142
+
143
+ // string # If trigger is `custom_schedule`, Human readable Custom schedule description for when the automation should be run.
144
+ getHumanReadableSchedule = () => this.attributes.human_readable_schedule
145
+
146
+ setHumanReadableSchedule = value => {
147
+ this.attributes.human_readable_schedule = value
148
+ }
149
+
150
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
137
151
  getScheduleDaysOfWeek = () => this.attributes.schedule_days_of_week
138
152
 
139
153
  setScheduleDaysOfWeek = value => {
140
154
  this.attributes.schedule_days_of_week = value
141
155
  }
142
156
 
143
- // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
157
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
144
158
  getScheduleTimesOfDay = () => this.attributes.schedule_times_of_day
145
159
 
146
160
  setScheduleTimesOfDay = value => {
147
161
  this.attributes.schedule_times_of_day = value
148
162
  }
149
163
 
150
- // string # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
164
+ // string # If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
151
165
  getScheduleTimeZone = () => this.attributes.schedule_time_zone
152
166
 
153
167
  setScheduleTimeZone = value => {