@etainabl/nodejs-sdk 1.3.157 → 1.3.159
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/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -492,6 +492,7 @@ var api_default = (auth, instanceOptions = {}) => {
|
|
|
492
492
|
createScraperRunLog: subFactory.create(etainablApi, "scraper-runs", "logs"),
|
|
493
493
|
// automation runs
|
|
494
494
|
createAutomationRun: factory.create(etainablApi, "automation-runs"),
|
|
495
|
+
createAutomationFetchRun: factory.create(etainablApi, "automation-runs", "fetch-run"),
|
|
495
496
|
listAutomationRun: factory.list(etainablApi, "automation-runs"),
|
|
496
497
|
getAutomationRun: factory.getWithId(etainablApi, "automation-runs"),
|
|
497
498
|
updateAutomationRun: factory.update(etainablApi, "automation-runs"),
|
|
@@ -9259,7 +9260,7 @@ async function handleError({ context, etnApi, automationRun, error, lambdaSource
|
|
|
9259
9260
|
companyId: automationRun.companyId
|
|
9260
9261
|
});
|
|
9261
9262
|
if (automationRun.category === "account" && accountId) {
|
|
9262
|
-
await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error" });
|
|
9263
|
+
await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error", error: error.message });
|
|
9263
9264
|
}
|
|
9264
9265
|
}
|
|
9265
9266
|
async function deleteMessage(queueUrl, receiptHandle, sqsClient) {
|