@etainabl/nodejs-sdk 1.3.163 → 1.3.164

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
@@ -708,7 +708,7 @@ interface AccountResult<IDType = ObjectId | string, DateType = Date | string> {
708
708
  expectedFormat?: string;
709
709
  }[];
710
710
  }
711
- type ProblemCodes = 'ACCOUNT_NOT_FOUND' | 'INVALID_DATE_FORMAT' | 'INVALID_TIME_FORMAT' | 'COLUMN_LIMIT_EXCEEDED' | 'INVALID_TIMESTAMP' | 'MISSING_DEVICE_ID' | 'UNSUPPORTED_UTILITY_TYPE' | 'VALIDATION_ERROR' | 'METER_READS_ZERO';
711
+ type ProblemCodes = 'ACCOUNT_NOT_FOUND' | 'INVALID_DATE_FORMAT' | 'INVALID_TIME_FORMAT' | 'COLUMN_LIMIT_EXCEEDED' | 'INVALID_TIMESTAMP' | 'MISSING_DEVICE_ID' | 'UNSUPPORTED_UTILITY_TYPE' | 'VALIDATION_ERROR' | 'METER_READS_ZERO' | 'NO_DATA';
712
712
  type ProblemDetails = {
713
713
  deviceId?: string;
714
714
  row?: number;
package/dist/index.d.ts CHANGED
@@ -708,7 +708,7 @@ interface AccountResult<IDType = ObjectId | string, DateType = Date | string> {
708
708
  expectedFormat?: string;
709
709
  }[];
710
710
  }
711
- type ProblemCodes = 'ACCOUNT_NOT_FOUND' | 'INVALID_DATE_FORMAT' | 'INVALID_TIME_FORMAT' | 'COLUMN_LIMIT_EXCEEDED' | 'INVALID_TIMESTAMP' | 'MISSING_DEVICE_ID' | 'UNSUPPORTED_UTILITY_TYPE' | 'VALIDATION_ERROR' | 'METER_READS_ZERO';
711
+ type ProblemCodes = 'ACCOUNT_NOT_FOUND' | 'INVALID_DATE_FORMAT' | 'INVALID_TIME_FORMAT' | 'COLUMN_LIMIT_EXCEEDED' | 'INVALID_TIMESTAMP' | 'MISSING_DEVICE_ID' | 'UNSUPPORTED_UTILITY_TYPE' | 'VALIDATION_ERROR' | 'METER_READS_ZERO' | 'NO_DATA';
712
712
  type ProblemDetails = {
713
713
  deviceId?: string;
714
714
  row?: number;
package/dist/index.js CHANGED
@@ -25419,7 +25419,8 @@ var errorCodes = [
25419
25419
  "MISSING_DEVICE_ID",
25420
25420
  "UNSUPPORTED_UTILITY_TYPE",
25421
25421
  "VALIDATION_ERROR",
25422
- "METER_READS_ZERO"
25422
+ "METER_READS_ZERO",
25423
+ "NO_DATA"
25423
25424
  ];
25424
25425
  var errorCodeMap = {
25425
25426
  ACCOUNT_NOT_FOUND: {
@@ -25429,6 +25430,10 @@ var errorCodeMap = {
25429
25430
  return !problems.some((p7) => p7.code === "ACCOUNT_NOT_FOUND" && p7.details?.value === details?.value);
25430
25431
  }
25431
25432
  },
25433
+ NO_DATA: {
25434
+ status: "error",
25435
+ message: `No data found for this account in the file`
25436
+ },
25432
25437
  INVALID_DATE_FORMAT: {
25433
25438
  status: "error",
25434
25439
  message: "The date format in the file is invalid"