files.com 1.2.508 → 1.2.510

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.508
1
+ 1.2.510
@@ -17,6 +17,8 @@
17
17
  "name": "My Main API Key",
18
18
  "permission_set": "full",
19
19
  "platform": "win32",
20
+ "site_id": 1,
21
+ "site_name": "example",
20
22
  "url": "example",
21
23
  "user_id": 1
22
24
  }
@@ -35,6 +37,8 @@
35
37
  * `name` (string): Internal name for the API Key. For your use.
36
38
  * `permission_set` (string): Permissions for this API Key. It must be full for site-wide API Keys. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
37
39
  * `platform` (string): If this API key represents a Desktop app, what platform was it created on?
40
+ * `site_id` (int64): Site ID
41
+ * `site_name` (string): Site Name
38
42
  * `url` (string): URL for API host.
39
43
  * `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
40
44
  * `path` (string): Folder path restriction for `office_integration` permission set API keys.
@@ -55,7 +59,7 @@ await ApiKey.list({
55
59
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
56
60
  * `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.
57
61
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
58
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
62
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `expires_at`.
59
63
  * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
60
64
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
61
65
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.
@@ -177,6 +181,8 @@ await api_key.update({
177
181
  "name": "My Main API Key",
178
182
  "permission_set": "full",
179
183
  "platform": "win32",
184
+ "site_id": 1,
185
+ "site_name": "example",
180
186
  "url": "example",
181
187
  "user_id": 1
182
188
  }
package/lib/Files.js CHANGED
@@ -12,7 +12,7 @@ var apiKey;
12
12
  var baseUrl = 'https://app.files.com';
13
13
  var sessionId = null;
14
14
  var language = null;
15
- var version = '1.2.508';
15
+ var version = '1.2.510';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -120,6 +120,20 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
120
120
  (0, _defineProperty2.default)(this, "setPlatform", function (value) {
121
121
  _this.attributes.platform = value;
122
122
  });
123
+ // int64 # Site ID
124
+ (0, _defineProperty2.default)(this, "getSiteId", function () {
125
+ return _this.attributes.site_id;
126
+ });
127
+ (0, _defineProperty2.default)(this, "setSiteId", function (value) {
128
+ _this.attributes.site_id = value;
129
+ });
130
+ // string # Site Name
131
+ (0, _defineProperty2.default)(this, "getSiteName", function () {
132
+ return _this.attributes.site_name;
133
+ });
134
+ (0, _defineProperty2.default)(this, "setSiteName", function (value) {
135
+ _this.attributes.site_name = value;
136
+ });
123
137
  // string # URL for API host.
124
138
  (0, _defineProperty2.default)(this, "getUrl", function () {
125
139
  return _this.attributes.url;
@@ -313,7 +327,7 @@ _ApiKey = ApiKey;
313
327
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
314
328
  // 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.
315
329
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
316
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
330
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `expires_at`.
317
331
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
318
332
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
319
333
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.508",
3
+ "version": "1.2.510",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.508'
9
+ const version = '1.2.510'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -115,6 +115,20 @@ class ApiKey {
115
115
  this.attributes.platform = value
116
116
  }
117
117
 
118
+ // int64 # Site ID
119
+ getSiteId = () => this.attributes.site_id
120
+
121
+ setSiteId = value => {
122
+ this.attributes.site_id = value
123
+ }
124
+
125
+ // string # Site Name
126
+ getSiteName = () => this.attributes.site_name
127
+
128
+ setSiteName = value => {
129
+ this.attributes.site_name = value
130
+ }
131
+
118
132
  // string # URL for API host.
119
133
  getUrl = () => this.attributes.url
120
134
 
@@ -223,7 +237,7 @@ class ApiKey {
223
237
  // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
224
238
  // 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.
225
239
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
226
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
240
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id` and `expires_at`.
227
241
  // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
228
242
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
229
243
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.