@etainabl/nodejs-sdk 1.3.137 → 1.3.138

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/index.d.cts CHANGED
@@ -736,7 +736,7 @@ interface AutomationRun<IDType = ObjectId | string, DateType = Date | string> {
736
736
  automationId: IDType;
737
737
  companyId: IDType;
738
738
  active: boolean;
739
- category: 'dataFetcher' | 'dataExtractor';
739
+ category: 'account' | 'company';
740
740
  status: 'running' | 'success' | 'failed' | 'warning';
741
741
  collectionType?: CollectionType;
742
742
  source?: SourceMetadata;
package/dist/index.d.ts CHANGED
@@ -736,7 +736,7 @@ interface AutomationRun<IDType = ObjectId | string, DateType = Date | string> {
736
736
  automationId: IDType;
737
737
  companyId: IDType;
738
738
  active: boolean;
739
- category: 'dataFetcher' | 'dataExtractor';
739
+ category: 'account' | 'company';
740
740
  status: 'running' | 'success' | 'failed' | 'warning';
741
741
  collectionType?: CollectionType;
742
742
  source?: SourceMetadata;
package/dist/index.js CHANGED
@@ -22307,7 +22307,7 @@ async function handleError({ etnApi, automationRun, error, lambdaSource, account
22307
22307
  userSub: lambdaSource,
22308
22308
  companyId: automationRun.companyId
22309
22309
  });
22310
- if (automationRun.category === "dataFetcher" && accountId) {
22310
+ if (automationRun.category === "account" && accountId) {
22311
22311
  await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error" });
22312
22312
  }
22313
22313
  }