@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/index.d.cts
CHANGED
|
@@ -684,6 +684,7 @@ interface AccountResult<IDType = ObjectId | string, DateType = Date | string> {
|
|
|
684
684
|
deviceId?: string;
|
|
685
685
|
status: 'success' | 'warning' | 'error' | 'running';
|
|
686
686
|
rowsProcessed?: number;
|
|
687
|
+
thirdPartyDeviceIds?: string[];
|
|
687
688
|
dateRange?: {
|
|
688
689
|
from?: DateType;
|
|
689
690
|
to?: DateType;
|
|
@@ -1567,6 +1568,7 @@ declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefau
|
|
|
1567
1568
|
createScraperRun: (data: any, options?: AxiosRequestConfig) => Promise<ScraperRun<string>>;
|
|
1568
1569
|
createScraperRunLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<ScraperRun<string>>;
|
|
1569
1570
|
createAutomationRun: (data: Omit<AutomationRun<string, string>, "_id">, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
|
|
1571
|
+
createAutomationFetchRun: (data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
|
|
1570
1572
|
listAutomationRun: <P = AutomationRun<string, string | Date>>(options?: AxiosRequestConfig) => Promise<ETNPagedResponse<P>>;
|
|
1571
1573
|
getAutomationRun: (id: string, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
|
|
1572
1574
|
updateAutomationRun: (id: string, data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -684,6 +684,7 @@ interface AccountResult<IDType = ObjectId | string, DateType = Date | string> {
|
|
|
684
684
|
deviceId?: string;
|
|
685
685
|
status: 'success' | 'warning' | 'error' | 'running';
|
|
686
686
|
rowsProcessed?: number;
|
|
687
|
+
thirdPartyDeviceIds?: string[];
|
|
687
688
|
dateRange?: {
|
|
688
689
|
from?: DateType;
|
|
689
690
|
to?: DateType;
|
|
@@ -1567,6 +1568,7 @@ declare const _default$4: (auth: AuthOptions, instanceOptions?: CreateAxiosDefau
|
|
|
1567
1568
|
createScraperRun: (data: any, options?: AxiosRequestConfig) => Promise<ScraperRun<string>>;
|
|
1568
1569
|
createScraperRunLog: (id: string, data: any, options?: AxiosRequestConfig) => Promise<ScraperRun<string>>;
|
|
1569
1570
|
createAutomationRun: (data: Omit<AutomationRun<string, string>, "_id">, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
|
|
1571
|
+
createAutomationFetchRun: (data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
|
|
1570
1572
|
listAutomationRun: <P = AutomationRun<string, string | Date>>(options?: AxiosRequestConfig) => Promise<ETNPagedResponse<P>>;
|
|
1571
1573
|
getAutomationRun: (id: string, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string | Date>>;
|
|
1572
1574
|
updateAutomationRun: (id: string, data: any, options?: AxiosRequestConfig) => Promise<AutomationRun<string, string>>;
|
package/dist/index.js
CHANGED
|
@@ -16569,6 +16569,7 @@ var api_default = (auth, instanceOptions = {}) => {
|
|
|
16569
16569
|
createScraperRunLog: subFactory.create(etainablApi, "scraper-runs", "logs"),
|
|
16570
16570
|
// automation runs
|
|
16571
16571
|
createAutomationRun: factory.create(etainablApi, "automation-runs"),
|
|
16572
|
+
createAutomationFetchRun: factory.create(etainablApi, "automation-runs", "fetch-run"),
|
|
16572
16573
|
listAutomationRun: factory.list(etainablApi, "automation-runs"),
|
|
16573
16574
|
getAutomationRun: factory.getWithId(etainablApi, "automation-runs"),
|
|
16574
16575
|
updateAutomationRun: factory.update(etainablApi, "automation-runs"),
|
|
@@ -25573,7 +25574,7 @@ async function handleError({ context, etnApi, automationRun, error, lambdaSource
|
|
|
25573
25574
|
companyId: automationRun.companyId
|
|
25574
25575
|
});
|
|
25575
25576
|
if (automationRun.category === "account" && accountId) {
|
|
25576
|
-
await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error" });
|
|
25577
|
+
await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error", error: error.message });
|
|
25577
25578
|
}
|
|
25578
25579
|
}
|
|
25579
25580
|
async function deleteMessage(queueUrl, receiptHandle, sqsClient) {
|