backendless 7.3.1 → 7.3.2
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/backendless.d.ts +1 -1
- package/dist/backendless.js +17 -5
- package/dist/backendless.js.map +1 -1
- package/dist/backendless.min.js +2 -2
- package/es/automations/index.js +16 -4
- package/lib/automations/index.js +16 -4
- package/package.json +1 -1
- package/src/automations/index.js +14 -3
package/backendless.d.ts
CHANGED
|
@@ -615,7 +615,7 @@ declare module Backendless {
|
|
|
615
615
|
function activateFlow(flowName: string, initialData?: object): Promise<void>
|
|
616
616
|
function activateFlowById(flowId: string, initialData?: object): Promise<void>
|
|
617
617
|
function activateFlowTrigger(flowName: string, triggerName: string, data?: object): Promise<void>
|
|
618
|
-
function activateFlowTriggerById(flowId: string, triggerId: string, data?: object): Promise<void>
|
|
618
|
+
function activateFlowTriggerById(flowId: string, triggerId: string, data?: object, executionId?: string): Promise<void>
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
/**
|
package/dist/backendless.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ********************************************************************************************************************
|
|
3
|
-
* Backendless SDK for JavaScript. Version: 7.3.
|
|
3
|
+
* Backendless SDK for JavaScript. Version: 7.3.2
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
|
|
6
6
|
*
|
|
@@ -166,7 +166,8 @@ var Automations = /*#__PURE__*/function () {
|
|
|
166
166
|
}, {
|
|
167
167
|
key: "activateFlowTriggerById",
|
|
168
168
|
value: function () {
|
|
169
|
-
var _activateFlowTriggerById = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(flowId, triggerId, data) {
|
|
169
|
+
var _activateFlowTriggerById = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(flowId, triggerId, data, executionId) {
|
|
170
|
+
var query;
|
|
170
171
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
171
172
|
while (1) switch (_context4.prev = _context4.next) {
|
|
172
173
|
case 0:
|
|
@@ -188,17 +189,28 @@ var Automations = /*#__PURE__*/function () {
|
|
|
188
189
|
}
|
|
189
190
|
throw new Error('The "data" argument must be an object.');
|
|
190
191
|
case 6:
|
|
192
|
+
if (!(executionId !== undefined && (typeof executionId !== 'string' || !executionId))) {
|
|
193
|
+
_context4.next = 8;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
throw new Error('The "executionId" argument must be a non-empty string.');
|
|
197
|
+
case 8:
|
|
198
|
+
query = {};
|
|
199
|
+
if (executionId) {
|
|
200
|
+
query.executionId = executionId;
|
|
201
|
+
}
|
|
191
202
|
return _context4.abrupt("return", this.app.request.post({
|
|
192
203
|
url: "".concat(this.app.urls.automationFlow(), "/").concat(flowId, "/trigger/").concat(triggerId, "/activate"),
|
|
193
|
-
data: data || {}
|
|
204
|
+
data: data || {},
|
|
205
|
+
query: query
|
|
194
206
|
}));
|
|
195
|
-
case
|
|
207
|
+
case 11:
|
|
196
208
|
case "end":
|
|
197
209
|
return _context4.stop();
|
|
198
210
|
}
|
|
199
211
|
}, _callee4, this);
|
|
200
212
|
}));
|
|
201
|
-
function activateFlowTriggerById(_x8, _x9, _x10) {
|
|
213
|
+
function activateFlowTriggerById(_x8, _x9, _x10, _x11) {
|
|
202
214
|
return _activateFlowTriggerById.apply(this, arguments);
|
|
203
215
|
}
|
|
204
216
|
return activateFlowTriggerById;
|