Skip to content

Commit 22c1684

Browse files
[Bot] push changes from Files.com
1 parent e965636 commit 22c1684

10 files changed

Lines changed: 44 additions & 10 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.509
1+
1.2.510

docs/models/ApiKey.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"name": "My Main API Key",
1818
"permission_set": "full",
1919
"platform": "win32",
20+
"site_id": 1,
21+
"site_name": "example",
2022
"url": "example",
2123
"user_id": 1
2224
}
@@ -35,6 +37,8 @@
3537
* `name` (string): Internal name for the API Key. For your use.
3638
* `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.
3739
* `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
3842
* `url` (string): URL for API host.
3943
* `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
4044
* `path` (string): Folder path restriction for `office_integration` permission set API keys.
@@ -55,7 +59,7 @@ await ApiKey.list({
5559
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
5660
* `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.
5761
* `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`.
5963
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
6064
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
6165
* `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({
177181
"name": "My Main API Key",
178182
"permission_set": "full",
179183
"platform": "win32",
184+
"site_id": 1,
185+
"site_name": "example",
180186
"url": "example",
181187
"user_id": 1
182188
}

docs/models/AutomationRun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ await AutomationRun.list({
5454
* `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.
5555
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
5656
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
57-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
57+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
5858
* `automation_id` (int64): Required - ID of the associated Automation.
5959

6060
---

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.509';
15+
var version = '1.2.510';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/ApiKey.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ var ApiKey = /*#__PURE__*/(0, _createClass2.default)(function ApiKey() {
120120
(0, _defineProperty2.default)(this, "setPlatform", function (value) {
121121
_this.attributes.platform = value;
122122
});
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+
});
123137
// string # URL for API host.
124138
(0, _defineProperty2.default)(this, "getUrl", function () {
125139
return _this.attributes.url;
@@ -313,7 +327,7 @@ _ApiKey = ApiKey;
313327
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
314328
// 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.
315329
// 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`.
317331
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
318332
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
319333
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.

lib/models/AutomationRun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ _AutomationRun = AutomationRun;
107107
// 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.
108108
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
109109
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
110-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
110+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
111111
// automation_id (required) - int64 - ID of the associated Automation.
112112
(0, _defineProperty2.default)(AutomationRun, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
113113
var _response$data;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "files.com",
3-
"version": "1.2.509",
3+
"version": "1.2.510",
44
"description": "Files.com SDK for JavaScript",
55
"keywords": [
66
"files.com",

src/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let apiKey
66
let baseUrl = 'https://app.files.com'
77
let sessionId = null
88
let language = null
9-
const version = '1.2.509'
9+
const version = '1.2.510'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

src/models/ApiKey.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,20 @@ class ApiKey {
115115
this.attributes.platform = value
116116
}
117117

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+
118132
// string # URL for API host.
119133
getUrl = () => this.attributes.url
120134

@@ -223,7 +237,7 @@ class ApiKey {
223237
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
224238
// 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.
225239
// 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`.
227241
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `expires_at`.
228242
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `expires_at`.
229243
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `expires_at`.

src/models/AutomationRun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class AutomationRun {
7575
// 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.
7676
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
7777
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
78-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
78+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
7979
// automation_id (required) - int64 - ID of the associated Automation.
8080
static list = async (params = {}, options = {}) => {
8181
if (!params.automation_id) {

0 commit comments

Comments
 (0)