Skip to content

Commit 89b9182

Browse files
[Bot] push changes from Files.com
1 parent 034f70d commit 89b9182

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.593
1+
1.2.594

docs/models/Expectation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ await Expectation.create({
162162
```
163163
const expectation = await Expectation.find(id)
164164
165-
await expectation.trigger()
165+
await expectation.trigger_evaluation()
166166
```
167167

168168
### Parameters

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

lib/models/Expectation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ var Expectation = /*#__PURE__*/(0, _createClass2.default)(function Expectation()
216216
return _this.attributes.updated_at;
217217
});
218218
// Manually open an Expectation window
219-
(0, _defineProperty2.default)(this, "trigger", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
219+
(0, _defineProperty2.default)(this, "triggerEvaluation", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
220220
var params,
221221
response,
222222
ExpectationEvaluation,
@@ -259,7 +259,7 @@ var Expectation = /*#__PURE__*/(0, _createClass2.default)(function Expectation()
259259
throw new errors.MissingParameterError('Parameter missing: id');
260260
case 5:
261261
_context.next = 6;
262-
return _Api.default.sendRequest("/expectations/".concat(encodeURIComponent(params.id), "/trigger"), 'POST', params, _this.options);
262+
return _Api.default.sendRequest("/expectations/".concat(encodeURIComponent(params.id), "/trigger_evaluation"), 'POST', params, _this.options);
263263
case 6:
264264
response = _context.sent;
265265
ExpectationEvaluation = require('./ExpectationEvaluation.js').default;

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

1212
let logLevel = LogLevel.INFO

src/models/Expectation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class Expectation {
210210
getUpdatedAt = () => this.attributes.updated_at
211211

212212
// Manually open an Expectation window
213-
trigger = async (params = {}) => {
213+
triggerEvaluation = async (params = {}) => {
214214
if (!this.attributes.id) {
215215
throw new errors.EmptyPropertyError('Current object has no id')
216216
}
@@ -232,7 +232,7 @@ class Expectation {
232232
}
233233
}
234234

235-
const response = await Api.sendRequest(`/expectations/${encodeURIComponent(params.id)}/trigger`, 'POST', params, this.options)
235+
const response = await Api.sendRequest(`/expectations/${encodeURIComponent(params.id)}/trigger_evaluation`, 'POST', params, this.options)
236236

237237
const ExpectationEvaluation = require('./ExpectationEvaluation.js').default
238238
return new ExpectationEvaluation(response?.data, this.options)

0 commit comments

Comments
 (0)