Skip to content

Commit 3f17129

Browse files
[Bot] push changes from Files.com
1 parent f9fe8f8 commit 3f17129

13 files changed

Lines changed: 210 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.512
1+
1.2.513

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
---

docs/models/Bundle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ await Bundle.list({
154154
* `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.
155155
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
156156
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
157-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, created_at ]` and `[ user_id, expires_at ]`.
157+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
158158
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
159159
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
160160
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.

docs/models/PartnerSite.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# PartnerSite
2+
3+
## Example PartnerSite Object
4+
5+
```
6+
{
7+
"partner_id": 1,
8+
"partner_name": "Acme Corp",
9+
"linked_site_id": 1
10+
}
11+
```
12+
13+
* `partner_id` (int64): Partner ID
14+
* `partner_name` (string): Partner Name
15+
* `linked_site_id` (int64): Linked Site ID
16+
17+
---
18+
19+
## List Partner Sites
20+
21+
```
22+
await PartnerSite.list
23+
```
24+
25+
26+
### Parameters
27+
28+
* `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.
29+
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).

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.512';
15+
var version = '1.2.513';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

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;

lib/models/Bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ _Bundle = Bundle;
699699
// 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.
700700
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
701701
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `expires_at`.
702-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, created_at ]` and `[ user_id, expires_at ]`.
702+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `expires_at`, `code` or `user_id`. Valid field combinations are `[ user_id, expires_at ]`.
703703
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at` and `expires_at`.
704704
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at` and `expires_at`.
705705
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `code`.

lib/models/PartnerSite.js

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
"use strict";
2+
3+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4+
var _typeof = require("@babel/runtime/helpers/typeof");
5+
exports.__esModule = true;
6+
exports.default = void 0;
7+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
8+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
9+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13+
var _Api = _interopRequireDefault(require("../Api"));
14+
var errors = _interopRequireWildcard(require("../Errors"));
15+
var _utils = require("../utils");
16+
var _PartnerSite;
17+
/* eslint-disable no-unused-vars */
18+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21+
/* eslint-enable no-unused-vars */
22+
/**
23+
* Class PartnerSite
24+
*/
25+
var PartnerSite = /*#__PURE__*/(0, _createClass2.default)(function PartnerSite() {
26+
var _this = this;
27+
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
28+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
29+
(0, _classCallCheck2.default)(this, PartnerSite);
30+
(0, _defineProperty2.default)(this, "attributes", {});
31+
(0, _defineProperty2.default)(this, "options", {});
32+
(0, _defineProperty2.default)(this, "isLoaded", function () {
33+
return !!_this.attributes.id;
34+
});
35+
// int64 # Partner ID
36+
(0, _defineProperty2.default)(this, "getPartnerId", function () {
37+
return _this.attributes.partner_id;
38+
});
39+
// string # Partner Name
40+
(0, _defineProperty2.default)(this, "getPartnerName", function () {
41+
return _this.attributes.partner_name;
42+
});
43+
// int64 # Linked Site ID
44+
(0, _defineProperty2.default)(this, "getLinkedSiteId", function () {
45+
return _this.attributes.linked_site_id;
46+
});
47+
Object.entries(attributes).forEach(function (_ref) {
48+
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
49+
key = _ref2[0],
50+
value = _ref2[1];
51+
var normalizedKey = key.replace('?', '');
52+
_this.attributes[normalizedKey] = value;
53+
Object.defineProperty(_this, normalizedKey, {
54+
value: value,
55+
writable: false
56+
});
57+
});
58+
this.options = _objectSpread({}, options);
59+
});
60+
_PartnerSite = PartnerSite;
61+
// Parameters:
62+
// 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.
63+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
64+
(0, _defineProperty2.default)(PartnerSite, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
65+
var _response$data;
66+
var params,
67+
options,
68+
response,
69+
_args = arguments;
70+
return _regenerator.default.wrap(function (_context) {
71+
while (1) switch (_context.prev = _context.next) {
72+
case 0:
73+
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
74+
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
75+
if (!(params.cursor && !(0, _utils.isString)(params.cursor))) {
76+
_context.next = 1;
77+
break;
78+
}
79+
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params.cursor)));
80+
case 1:
81+
if (!(params.per_page && !(0, _utils.isInt)(params.per_page))) {
82+
_context.next = 2;
83+
break;
84+
}
85+
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
86+
case 2:
87+
_context.next = 3;
88+
return _Api.default.sendRequest('/partner_sites', 'GET', params, options);
89+
case 3:
90+
response = _context.sent;
91+
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
92+
return new _PartnerSite(obj, options);
93+
})) || []);
94+
case 4:
95+
case "end":
96+
return _context.stop();
97+
}
98+
}, _callee);
99+
})));
100+
(0, _defineProperty2.default)(PartnerSite, "all", function () {
101+
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
102+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
103+
return _PartnerSite.list(params, options);
104+
});
105+
var _default = exports.default = PartnerSite;
106+
module.exports = PartnerSite;
107+
module.exports.default = PartnerSite;

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.512",
3+
"version": "1.2.513",
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.512'
9+
const version = '1.2.513'
1010
let userAgent = `Files.com JavaScript SDK v${version}`
1111

1212
let logLevel = LogLevel.INFO

0 commit comments

Comments
 (0)