@etainabl/nodejs-sdk 1.3.136 → 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;
@@ -1288,7 +1288,7 @@ interface ReportMetadata<IDType = ObjectId | string> {
1288
1288
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
1289
1289
  showSimulated?: boolean;
1290
1290
  chartOptions?: any;
1291
- customOptions?: any;
1291
+ customData?: any;
1292
1292
  readingSource?: Reading['source'];
1293
1293
  dateField?: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
1294
1294
  includeSubMeters?: boolean;
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;
@@ -1288,7 +1288,7 @@ interface ReportMetadata<IDType = ObjectId | string> {
1288
1288
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
1289
1289
  showSimulated?: boolean;
1290
1290
  chartOptions?: any;
1291
- customOptions?: any;
1291
+ customData?: any;
1292
1292
  readingSource?: Reading['source'];
1293
1293
  dateField?: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
1294
1294
  includeSubMeters?: boolean;
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
  }