@etainabl/nodejs-sdk 1.3.152 → 1.3.154
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 +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -503,7 +503,9 @@ var api_default = (auth, instanceOptions = {}) => {
|
|
|
503
503
|
searchAutomationRun: factory.get(etainablApi, "automation-runs", "search"),
|
|
504
504
|
updateAutomationRunAccountResults: factory.update(etainablApi, "automation-runs", "account-results"),
|
|
505
505
|
// global search
|
|
506
|
-
globalSearch: factory.get(etainablApi, "global-search", "search")
|
|
506
|
+
globalSearch: factory.get(etainablApi, "global-search", "search"),
|
|
507
|
+
// global settings
|
|
508
|
+
getSettings: factory.list(etainablApi, "settings")
|
|
507
509
|
};
|
|
508
510
|
} catch (e4) {
|
|
509
511
|
log.error(e4);
|
|
@@ -9232,12 +9234,14 @@ async function uploadCsv({ csvContent, automationRun, s3Client, orgFilename, col
|
|
|
9232
9234
|
throw new Error(error);
|
|
9233
9235
|
}
|
|
9234
9236
|
}
|
|
9235
|
-
async function handleError({ etnApi, automationRun, error, lambdaSource, accountId, automation, messageId }) {
|
|
9237
|
+
async function handleError({ context, etnApi, automationRun, error, lambdaSource, accountId, automation, messageId }) {
|
|
9236
9238
|
await etnApi.createAutomationRunLog(automationRun._id, {
|
|
9237
9239
|
message: error.message,
|
|
9238
9240
|
status: "error",
|
|
9239
9241
|
lambdaSource,
|
|
9240
|
-
lambdaMessageId: messageId
|
|
9242
|
+
lambdaMessageId: messageId,
|
|
9243
|
+
lambdaLogStreamName: context.logStreamName,
|
|
9244
|
+
lambdaRequestId: context.awsRequestId
|
|
9241
9245
|
});
|
|
9242
9246
|
const { description, service } = automation;
|
|
9243
9247
|
const message = automationRun.source?.fileName ? `Automation "${description || service}" FAILED while processing file: ${automationRun.source.fileName}` : `Automation "${description}" FAILED.`;
|