@kohost/api-client 3.1.13 → 3.1.15

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.
Files changed (34) hide show
  1. package/dist/cjs/Errors/AppError.js +1 -0
  2. package/dist/cjs/Errors/AuthenticationError.js +1 -0
  3. package/dist/cjs/Errors/AuthorizationError.js +1 -0
  4. package/dist/cjs/Errors/ConflictError.js +1 -0
  5. package/dist/cjs/Errors/DeviceCommError.js +1 -0
  6. package/dist/cjs/Errors/LoginError.js +1 -0
  7. package/dist/cjs/Errors/NotFoundError.js +1 -0
  8. package/dist/cjs/Errors/RequestError.js +1 -0
  9. package/dist/cjs/Errors/SystemCommError.js +1 -0
  10. package/dist/cjs/Errors/TokenExpiredError.js +1 -0
  11. package/dist/cjs/Errors/UnprocessableRequestError.js +1 -0
  12. package/dist/cjs/Errors/ValidationError.js +1 -0
  13. package/dist/cjs/schemas/AlarmSchema.d.ts +5 -2
  14. package/dist/cjs/schemas/CameraSchema.d.ts +5 -2
  15. package/dist/cjs/schemas/CourtesySchema.d.ts +5 -2
  16. package/dist/cjs/schemas/DimmerSchema.d.ts +5 -2
  17. package/dist/cjs/schemas/GatewaySchema.d.ts +5 -2
  18. package/dist/cjs/schemas/LockSchema.d.ts +5 -2
  19. package/dist/cjs/schemas/MediaSourceSchema.d.ts +5 -2
  20. package/dist/cjs/schemas/MotionSensorSchema.d.ts +5 -2
  21. package/dist/cjs/schemas/RoomSchema.d.ts +23 -11
  22. package/dist/cjs/schemas/SwitchSchema.d.ts +5 -2
  23. package/dist/cjs/schemas/ThermostatSchema.d.ts +5 -2
  24. package/dist/cjs/schemas/WindowCoveringSchema.d.ts +5 -2
  25. package/dist/cjs/schemas/definitions.json +2 -1
  26. package/dist/esm/Commands.js +12 -0
  27. package/dist/esm/Commands.js.map +2 -2
  28. package/dist/esm/Errors.js +12 -0
  29. package/dist/esm/Errors.js.map +2 -2
  30. package/dist/esm/Models.js +14 -1
  31. package/dist/esm/Models.js.map +2 -2
  32. package/dist/esm/utils.js +14 -1
  33. package/dist/esm/utils.js.map +2 -2
  34. package/package.json +1 -1
package/dist/esm/utils.js CHANGED
@@ -7654,7 +7654,8 @@ var require_definitions = __commonJS({
7654
7654
  "outsideSafeTemperatureRange",
7655
7655
  "outsideSafeHumidityRange",
7656
7656
  "scheduleMaintenance",
7657
- "doorAjar"
7657
+ "doorAjar",
7658
+ "communicationFailure"
7658
7659
  ]
7659
7660
  }
7660
7661
  },
@@ -7750,6 +7751,7 @@ var require_AppError = __commonJS({
7750
7751
  super(message, options);
7751
7752
  this.type = this.constructor.name;
7752
7753
  this.statusCode = 500;
7754
+ this.name = "AppError";
7753
7755
  Object.setPrototypeOf(this, AppError.prototype);
7754
7756
  }
7755
7757
  };
@@ -7767,6 +7769,7 @@ var require_AuthenticationError = __commonJS({
7767
7769
  constructor(message = "Authentication Error", options = {}) {
7768
7770
  super(message, options);
7769
7771
  this.statusCode = 401;
7772
+ this.name = "AuthenticationError";
7770
7773
  Object.setPrototypeOf(this, AuthenticationError.prototype);
7771
7774
  }
7772
7775
  };
@@ -7784,6 +7787,7 @@ var require_AuthorizationError = __commonJS({
7784
7787
  constructor(message = "Authorization Error", options = {}) {
7785
7788
  super(message, options);
7786
7789
  this.statusCode = 403;
7790
+ this.name = "AuthorizationError";
7787
7791
  Object.setPrototypeOf(this, AuthorizationError.prototype);
7788
7792
  }
7789
7793
  };
@@ -7801,6 +7805,7 @@ var require_ConflictError = __commonJS({
7801
7805
  constructor(message = "Bad Request", options = {}) {
7802
7806
  super(message, options);
7803
7807
  this.statusCode = 409;
7808
+ this.name = "ConflictError";
7804
7809
  Object.setPrototypeOf(this, ConflictError.prototype);
7805
7810
  }
7806
7811
  };
@@ -7818,6 +7823,7 @@ var require_DeviceCommError = __commonJS({
7818
7823
  constructor(message = "Device Communication Error", options = {}) {
7819
7824
  super(message, options);
7820
7825
  this.statusCode = 503;
7826
+ this.name = "DeviceCommError";
7821
7827
  Object.setPrototypeOf(this, DeviceCommError.prototype);
7822
7828
  }
7823
7829
  };
@@ -7835,6 +7841,7 @@ var require_LoginError = __commonJS({
7835
7841
  constructor(message = "Invalid Login information provided", options = {}) {
7836
7842
  super(message, options);
7837
7843
  this.statusCode = 401;
7844
+ this.name = "LoginError";
7838
7845
  Object.setPrototypeOf(this, LoginError.prototype);
7839
7846
  }
7840
7847
  };
@@ -7852,6 +7859,7 @@ var require_NotFoundError = __commonJS({
7852
7859
  constructor(message = "Resource Not Found", options = {}) {
7853
7860
  super(message, options);
7854
7861
  this.statusCode = 404;
7862
+ this.name = "NotFoundError";
7855
7863
  Object.setPrototypeOf(this, NotFoundError.prototype);
7856
7864
  }
7857
7865
  };
@@ -7869,6 +7877,7 @@ var require_RequestError = __commonJS({
7869
7877
  constructor(message = "Bad Request", options = {}) {
7870
7878
  super(message, options);
7871
7879
  this.statusCode = 400;
7880
+ this.name = "RequestError";
7872
7881
  Object.setPrototypeOf(this, RequestError.prototype);
7873
7882
  }
7874
7883
  };
@@ -7886,6 +7895,7 @@ var require_SystemCommError = __commonJS({
7886
7895
  constructor(message = "System Communication Error", options = {}) {
7887
7896
  super(message, options);
7888
7897
  this.statusCode = 503;
7898
+ this.name = "SystemCommError";
7889
7899
  Object.setPrototypeOf(this, SystemCommError.prototype);
7890
7900
  }
7891
7901
  };
@@ -7903,6 +7913,7 @@ var require_TokenExpiredError = __commonJS({
7903
7913
  constructor(message = "Token Expired", options = {}) {
7904
7914
  super(message, options);
7905
7915
  this.statusCode = 401;
7916
+ this.name = "TokenExpiredError";
7906
7917
  Object.setPrototypeOf(this, TokenExpiredError.prototype);
7907
7918
  }
7908
7919
  };
@@ -7920,6 +7931,7 @@ var require_UnprocessableRequestError = __commonJS({
7920
7931
  constructor(message = "Unprocessable Request Error", options = {}) {
7921
7932
  super(message, options);
7922
7933
  this.statusCode = 422;
7934
+ this.name = "UnprocessableRequestError";
7923
7935
  Object.setPrototypeOf(this, UnprocessableRequestError.prototype);
7924
7936
  }
7925
7937
  };
@@ -7937,6 +7949,7 @@ var require_ValidationError = __commonJS({
7937
7949
  constructor(message = "Validation Error", options = {}) {
7938
7950
  super(message, options);
7939
7951
  this.statusCode = 400;
7952
+ this.name = "ValidationError";
7940
7953
  Object.setPrototypeOf(this, ValidationError.prototype);
7941
7954
  }
7942
7955
  };