@kohost/api-client 3.1.14 → 3.1.16

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/utils.js CHANGED
@@ -7751,6 +7751,7 @@ var require_AppError = __commonJS({
7751
7751
  super(message, options);
7752
7752
  this.type = this.constructor.name;
7753
7753
  this.statusCode = 500;
7754
+ this.name = "AppError";
7754
7755
  Object.setPrototypeOf(this, AppError.prototype);
7755
7756
  }
7756
7757
  };
@@ -7768,6 +7769,7 @@ var require_AuthenticationError = __commonJS({
7768
7769
  constructor(message = "Authentication Error", options = {}) {
7769
7770
  super(message, options);
7770
7771
  this.statusCode = 401;
7772
+ this.name = "AuthenticationError";
7771
7773
  Object.setPrototypeOf(this, AuthenticationError.prototype);
7772
7774
  }
7773
7775
  };
@@ -7785,6 +7787,7 @@ var require_AuthorizationError = __commonJS({
7785
7787
  constructor(message = "Authorization Error", options = {}) {
7786
7788
  super(message, options);
7787
7789
  this.statusCode = 403;
7790
+ this.name = "AuthorizationError";
7788
7791
  Object.setPrototypeOf(this, AuthorizationError.prototype);
7789
7792
  }
7790
7793
  };
@@ -7802,6 +7805,7 @@ var require_ConflictError = __commonJS({
7802
7805
  constructor(message = "Bad Request", options = {}) {
7803
7806
  super(message, options);
7804
7807
  this.statusCode = 409;
7808
+ this.name = "ConflictError";
7805
7809
  Object.setPrototypeOf(this, ConflictError.prototype);
7806
7810
  }
7807
7811
  };
@@ -7819,6 +7823,7 @@ var require_DeviceCommError = __commonJS({
7819
7823
  constructor(message = "Device Communication Error", options = {}) {
7820
7824
  super(message, options);
7821
7825
  this.statusCode = 503;
7826
+ this.name = "DeviceCommError";
7822
7827
  Object.setPrototypeOf(this, DeviceCommError.prototype);
7823
7828
  }
7824
7829
  };
@@ -7836,6 +7841,7 @@ var require_LoginError = __commonJS({
7836
7841
  constructor(message = "Invalid Login information provided", options = {}) {
7837
7842
  super(message, options);
7838
7843
  this.statusCode = 401;
7844
+ this.name = "LoginError";
7839
7845
  Object.setPrototypeOf(this, LoginError.prototype);
7840
7846
  }
7841
7847
  };
@@ -7853,6 +7859,7 @@ var require_NotFoundError = __commonJS({
7853
7859
  constructor(message = "Resource Not Found", options = {}) {
7854
7860
  super(message, options);
7855
7861
  this.statusCode = 404;
7862
+ this.name = "NotFoundError";
7856
7863
  Object.setPrototypeOf(this, NotFoundError.prototype);
7857
7864
  }
7858
7865
  };
@@ -7870,6 +7877,7 @@ var require_RequestError = __commonJS({
7870
7877
  constructor(message = "Bad Request", options = {}) {
7871
7878
  super(message, options);
7872
7879
  this.statusCode = 400;
7880
+ this.name = "RequestError";
7873
7881
  Object.setPrototypeOf(this, RequestError.prototype);
7874
7882
  }
7875
7883
  };
@@ -7887,6 +7895,7 @@ var require_SystemCommError = __commonJS({
7887
7895
  constructor(message = "System Communication Error", options = {}) {
7888
7896
  super(message, options);
7889
7897
  this.statusCode = 503;
7898
+ this.name = "SystemCommError";
7890
7899
  Object.setPrototypeOf(this, SystemCommError.prototype);
7891
7900
  }
7892
7901
  };
@@ -7904,6 +7913,7 @@ var require_TokenExpiredError = __commonJS({
7904
7913
  constructor(message = "Token Expired", options = {}) {
7905
7914
  super(message, options);
7906
7915
  this.statusCode = 401;
7916
+ this.name = "TokenExpiredError";
7907
7917
  Object.setPrototypeOf(this, TokenExpiredError.prototype);
7908
7918
  }
7909
7919
  };
@@ -7921,6 +7931,7 @@ var require_UnprocessableRequestError = __commonJS({
7921
7931
  constructor(message = "Unprocessable Request Error", options = {}) {
7922
7932
  super(message, options);
7923
7933
  this.statusCode = 422;
7934
+ this.name = "UnprocessableRequestError";
7924
7935
  Object.setPrototypeOf(this, UnprocessableRequestError.prototype);
7925
7936
  }
7926
7937
  };
@@ -7938,6 +7949,7 @@ var require_ValidationError = __commonJS({
7938
7949
  constructor(message = "Validation Error", options = {}) {
7939
7950
  super(message, options);
7940
7951
  this.statusCode = 400;
7952
+ this.name = "ValidationError";
7941
7953
  Object.setPrototypeOf(this, ValidationError.prototype);
7942
7954
  }
7943
7955
  };