@etainabl/nodejs-sdk 1.3.162 → 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/esm/index.js CHANGED
@@ -415,6 +415,7 @@ var api_default = (auth, instanceOptions = {}) => {
415
415
  listLogs: factory.list(etainablApi, "logs"),
416
416
  updateLog: factory.update(etainablApi, "logs"),
417
417
  createLog: factory.create(etainablApi, "logs"),
418
+ createLogBulk: factory.create(etainablApi, "logs", "bulk"),
418
419
  removeLog: factory.remove(etainablApi, "logs"),
419
420
  // readings
420
421
  getReading: factory.getWithId(etainablApi, "readings"),
@@ -9104,7 +9105,8 @@ var errorCodes = [
9104
9105
  "MISSING_DEVICE_ID",
9105
9106
  "UNSUPPORTED_UTILITY_TYPE",
9106
9107
  "VALIDATION_ERROR",
9107
- "METER_READS_ZERO"
9108
+ "METER_READS_ZERO",
9109
+ "NO_DATA"
9108
9110
  ];
9109
9111
  var errorCodeMap = {
9110
9112
  ACCOUNT_NOT_FOUND: {
@@ -9114,6 +9116,10 @@ var errorCodeMap = {
9114
9116
  return !problems.some((p4) => p4.code === "ACCOUNT_NOT_FOUND" && p4.details?.value === details?.value);
9115
9117
  }
9116
9118
  },
9119
+ NO_DATA: {
9120
+ status: "error",
9121
+ message: `No data found for this account in the file`
9122
+ },
9117
9123
  INVALID_DATE_FORMAT: {
9118
9124
  status: "error",
9119
9125
  message: "The date format in the file is invalid"