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