@etainabl/nodejs-sdk 1.3.135 → 1.3.137

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
@@ -721,6 +721,7 @@ interface SourceMetadata {
721
721
  uploadMethod: 'manual' | 'email' | 'ftp' | 's3';
722
722
  s3Bucket?: string;
723
723
  s3Key?: string;
724
+ customerS3Key?: string;
724
725
  }
725
726
  interface AutomationRunSummary {
726
727
  totalRows?: number;
@@ -745,7 +746,7 @@ interface AutomationRun<IDType = ObjectId | string, DateType = Date | string> {
745
746
  problems?: Problem[];
746
747
  ingestFile?: {
747
748
  s3Bucket: string;
748
- s3Key: string;
749
+ customerS3Key: string;
749
750
  fileName: string;
750
751
  totalRecords: number;
751
752
  fileSize: number;
@@ -1287,7 +1288,7 @@ interface ReportMetadata<IDType = ObjectId | string> {
1287
1288
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
1288
1289
  showSimulated?: boolean;
1289
1290
  chartOptions?: any;
1290
- customOptions?: any;
1291
+ customData?: any;
1291
1292
  readingSource?: Reading['source'];
1292
1293
  dateField?: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
1293
1294
  includeSubMeters?: boolean;
package/dist/index.d.ts CHANGED
@@ -721,6 +721,7 @@ interface SourceMetadata {
721
721
  uploadMethod: 'manual' | 'email' | 'ftp' | 's3';
722
722
  s3Bucket?: string;
723
723
  s3Key?: string;
724
+ customerS3Key?: string;
724
725
  }
725
726
  interface AutomationRunSummary {
726
727
  totalRows?: number;
@@ -745,7 +746,7 @@ interface AutomationRun<IDType = ObjectId | string, DateType = Date | string> {
745
746
  problems?: Problem[];
746
747
  ingestFile?: {
747
748
  s3Bucket: string;
748
- s3Key: string;
749
+ customerS3Key: string;
749
750
  fileName: string;
750
751
  totalRecords: number;
751
752
  fileSize: number;
@@ -1287,7 +1288,7 @@ interface ReportMetadata<IDType = ObjectId | string> {
1287
1288
  consumptionSource?: 'reading' | 'invoice' | 'combined' | 'hh' | 'reading-hh';
1288
1289
  showSimulated?: boolean;
1289
1290
  chartOptions?: any;
1290
- customOptions?: any;
1291
+ customData?: any;
1291
1292
  readingSource?: Reading['source'];
1292
1293
  dateField?: 'startDateEndDate' | 'startDate' | 'endDate' | 'confirmedAt';
1293
1294
  includeSubMeters?: boolean;
package/dist/index.js CHANGED
@@ -21798,7 +21798,6 @@ var IngestHandler = class {
21798
21798
  if (records.length > 1) throw new Error("Multiple records in SNS event");
21799
21799
  const record = records[0];
21800
21800
  const message = JSON.parse(record.Sns.Message);
21801
- console.log("Processing SNS message:", message);
21802
21801
  if (this.isS3Event(message)) {
21803
21802
  this.event = message;
21804
21803
  return this.handleS3Event("S3_SNS_SQS");
@@ -22309,7 +22308,7 @@ async function handleError({ etnApi, automationRun, error, lambdaSource, account
22309
22308
  companyId: automationRun.companyId
22310
22309
  });
22311
22310
  if (automationRun.category === "dataFetcher" && accountId) {
22312
- await etnApi.updateAccountStatusForAutomation(automationRun.automationId, accountId, { status: "error" });
22311
+ await etnApi.updateAccountStatusForAutomation(automation._id, accountId, { status: "error" });
22313
22312
  }
22314
22313
  }
22315
22314
  async function deleteMessage(queueUrl, receiptHandle, sqsClient) {