files.com 1.2.13 → 1.2.15

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.13
1
+ 1.2.15
@@ -18,7 +18,6 @@
18
18
  "type": "invoice",
19
19
  "service_end_at": "2000-01-01T01:00:00Z",
20
20
  "service_start_at": "2000-01-01T01:00:00Z",
21
- "updated_at": "2000-01-01T01:00:00Z",
22
21
  "plan": "Premier",
23
22
  "site": "My site"
24
23
  }
@@ -35,8 +34,7 @@
35
34
  "payment_reversed_at": "2000-01-01T01:00:00Z",
36
35
  "payment_type": "example",
37
36
  "site_name": "My Site",
38
- "type": "invoice",
39
- "updated_at": "2000-01-01T01:00:00Z"
37
+ "type": "invoice"
40
38
  }
41
39
  ```
42
40
 
@@ -53,4 +51,3 @@
53
51
  * `payment_type` (string): Type of payment if applicable
54
52
  * `site_name` (string): Site name this line item is for
55
53
  * `type` (string): Type of line item, either payment or invoice
56
- * `updated_at` (date-time): Line item updated at
@@ -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,
@@ -18,7 +18,6 @@
18
18
  "type": "invoice",
19
19
  "service_end_at": "2000-01-01T01:00:00Z",
20
20
  "service_start_at": "2000-01-01T01:00:00Z",
21
- "updated_at": "2000-01-01T01:00:00Z",
22
21
  "plan": "Premier",
23
22
  "site": "My site"
24
23
  }
@@ -35,8 +34,7 @@
35
34
  "payment_reversed_at": "2000-01-01T01:00:00Z",
36
35
  "payment_type": "example",
37
36
  "site_name": "My Site",
38
- "type": "invoice",
39
- "updated_at": "2000-01-01T01:00:00Z"
37
+ "type": "invoice"
40
38
  }
41
39
  ```
42
40
 
@@ -53,7 +51,6 @@
53
51
  * `payment_type` (string): Type of payment if applicable
54
52
  * `site_name` (string): Site name this line item is for
55
53
  * `type` (string): Type of line item, either payment or invoice
56
- * `updated_at` (date-time): Line item updated at
57
54
 
58
55
  ---
59
56
 
@@ -10,7 +10,6 @@
10
10
  "type": "invoice",
11
11
  "service_end_at": "2000-01-01T01:00:00Z",
12
12
  "service_start_at": "2000-01-01T01:00:00Z",
13
- "updated_at": "2000-01-01T01:00:00Z",
14
13
  "plan": "Premier",
15
14
  "site": "My site"
16
15
  }
@@ -22,6 +21,5 @@
22
21
  * `type` (string): Invoice line item type
23
22
  * `service_end_at` (date-time): Invoice line item service end date/time
24
23
  * `service_start_at` (date-time): Invoice line item service start date/time
25
- * `updated_at` (date-time): Invoice line item updated date/time
26
24
  * `plan` (string): Plan name
27
25
  * `site` (string): Site name
@@ -18,7 +18,6 @@
18
18
  "type": "invoice",
19
19
  "service_end_at": "2000-01-01T01:00:00Z",
20
20
  "service_start_at": "2000-01-01T01:00:00Z",
21
- "updated_at": "2000-01-01T01:00:00Z",
22
21
  "plan": "Premier",
23
22
  "site": "My site"
24
23
  }
@@ -35,8 +34,7 @@
35
34
  "payment_reversed_at": "2000-01-01T01:00:00Z",
36
35
  "payment_type": "example",
37
36
  "site_name": "My Site",
38
- "type": "invoice",
39
- "updated_at": "2000-01-01T01:00:00Z"
37
+ "type": "invoice"
40
38
  }
41
39
  ```
42
40
 
@@ -53,7 +51,6 @@
53
51
  * `payment_type` (string): Type of payment if applicable
54
52
  * `site_name` (string): Site name this line item is for
55
53
  * `type` (string): Type of line item, either payment or invoice
56
- * `updated_at` (date-time): Line item updated at
57
54
 
58
55
  ---
59
56
 
@@ -186,7 +186,6 @@
186
186
  "tls_disabled": true,
187
187
  "trial_days_left": 1,
188
188
  "trial_until": "2000-01-01T01:00:00Z",
189
- "updated_at": "2000-01-01T01:00:00Z",
190
189
  "use_provided_modified_at": true,
191
190
  "user": {
192
191
  "id": 1,
@@ -406,7 +405,6 @@
406
405
  * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
407
406
  * `trial_days_left` (int64): Number of days left in trial
408
407
  * `trial_until` (date-time): When does this Site trial expire?
409
- * `updated_at` (date-time): Last time this Site was updated
410
408
  * `use_provided_modified_at` (boolean): Allow uploaders to set `provided_modified_at` for uploaded files?
411
409
  * `user` (User): User of current session
412
410
  * `user_lockout` (boolean): Will users be locked out after incorrect login attempts?
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.13';
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;
@@ -81,10 +81,6 @@ var AccountLineItem = /*#__PURE__*/(0, _createClass2.default)(function AccountLi
81
81
  (0, _defineProperty2.default)(this, "getType", function () {
82
82
  return _this.attributes.type;
83
83
  });
84
- // date-time # Line item updated at
85
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
86
- return _this.attributes.updated_at;
87
- });
88
84
  Object.entries(attributes).forEach(function (_ref) {
89
85
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
90
86
  key = _ref2[0],
@@ -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
  });
@@ -85,10 +85,6 @@ var Invoice = /*#__PURE__*/(0, _createClass2.default)(function Invoice() {
85
85
  (0, _defineProperty2.default)(this, "getType", function () {
86
86
  return _this.attributes.type;
87
87
  });
88
- // date-time # Line item updated at
89
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
90
- return _this.attributes.updated_at;
91
- });
92
88
  Object.entries(attributes).forEach(function (_ref) {
93
89
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
94
90
  key = _ref2[0],
@@ -53,10 +53,6 @@ var InvoiceLineItem = /*#__PURE__*/(0, _createClass2.default)(function InvoiceLi
53
53
  (0, _defineProperty2.default)(this, "getServiceStartAt", function () {
54
54
  return _this.attributes.service_start_at;
55
55
  });
56
- // date-time # Invoice line item updated date/time
57
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
58
- return _this.attributes.updated_at;
59
- });
60
56
  // string # Plan name
61
57
  (0, _defineProperty2.default)(this, "getPlan", function () {
62
58
  return _this.attributes.plan;
@@ -85,10 +85,6 @@ var Payment = /*#__PURE__*/(0, _createClass2.default)(function Payment() {
85
85
  (0, _defineProperty2.default)(this, "getType", function () {
86
86
  return _this.attributes.type;
87
87
  });
88
- // date-time # Line item updated at
89
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
90
- return _this.attributes.updated_at;
91
- });
92
88
  Object.entries(attributes).forEach(function (_ref) {
93
89
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
94
90
  key = _ref2[0],
@@ -577,10 +577,6 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
577
577
  (0, _defineProperty2.default)(this, "getTrialUntil", function () {
578
578
  return _this.attributes.trial_until;
579
579
  });
580
- // date-time # Last time this Site was updated
581
- (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
582
- return _this.attributes.updated_at;
583
- });
584
580
  // boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
585
581
  (0, _defineProperty2.default)(this, "getUseProvidedModifiedAt", function () {
586
582
  return _this.attributes.use_provided_modified_at;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.13",
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.13'
8
+ const version = '1.2.15'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -66,9 +66,6 @@ class AccountLineItem {
66
66
 
67
67
  // string # Type of line item, either payment or invoice
68
68
  getType = () => this.attributes.type
69
-
70
- // date-time # Line item updated at
71
- getUpdatedAt = () => this.attributes.updated_at
72
69
  }
73
70
 
74
71
  export default AccountLineItem
@@ -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 => {
@@ -67,9 +67,6 @@ class Invoice {
67
67
  // string # Type of line item, either payment or invoice
68
68
  getType = () => this.attributes.type
69
69
 
70
- // date-time # Line item updated at
71
- getUpdatedAt = () => this.attributes.updated_at
72
-
73
70
  // Parameters:
74
71
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
75
72
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -46,9 +46,6 @@ class InvoiceLineItem {
46
46
  // date-time # Invoice line item service start date/time
47
47
  getServiceStartAt = () => this.attributes.service_start_at
48
48
 
49
- // date-time # Invoice line item updated date/time
50
- getUpdatedAt = () => this.attributes.updated_at
51
-
52
49
  // string # Plan name
53
50
  getPlan = () => this.attributes.plan
54
51
 
@@ -67,9 +67,6 @@ class Payment {
67
67
  // string # Type of line item, either payment or invoice
68
68
  getType = () => this.attributes.type
69
69
 
70
- // date-time # Line item updated at
71
- getUpdatedAt = () => this.attributes.updated_at
72
-
73
70
  // Parameters:
74
71
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
75
72
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
@@ -436,9 +436,6 @@ class Site {
436
436
  // date-time # When does this Site trial expire?
437
437
  getTrialUntil = () => this.attributes.trial_until
438
438
 
439
- // date-time # Last time this Site was updated
440
- getUpdatedAt = () => this.attributes.updated_at
441
-
442
439
  // boolean # Allow uploaders to set `provided_modified_at` for uploaded files?
443
440
  getUseProvidedModifiedAt = () => this.attributes.use_provided_modified_at
444
441