@etainabl/nodejs-sdk 1.3.137 → 1.3.139

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;
@@ -1115,7 +1115,7 @@ interface Invoice<IDType = ObjectId | string, DateType = Date> {
1115
1115
  assignedTo?: string;
1116
1116
  noScrape?: boolean;
1117
1117
  scraperInvoiceId?: string;
1118
- captureComments: {
1118
+ captureComments?: {
1119
1119
  recipient: string;
1120
1120
  supplier: string;
1121
1121
  invoiceCosts: string;
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;
@@ -1115,7 +1115,7 @@ interface Invoice<IDType = ObjectId | string, DateType = Date> {
1115
1115
  assignedTo?: string;
1116
1116
  noScrape?: boolean;
1117
1117
  scraperInvoiceId?: string;
1118
- captureComments: {
1118
+ captureComments?: {
1119
1119
  recipient: string;
1120
1120
  supplier: string;
1121
1121
  invoiceCosts: string;
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
  }