@nizam-os/dashboard-sdk 5.0.0 → 5.1.0

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.
@@ -19,6 +19,7 @@ export declare class AssignmentsClient {
19
19
  * @param {NizamDashboard.OpenAssignmentRequest} request
20
20
  * @param {AssignmentsClient.RequestOptions} requestOptions - Request-specific configuration.
21
21
  *
22
+ * @throws {@link NizamDashboard.BadRequestError}
22
23
  * @throws {@link NizamDashboard.UnauthorizedError}
23
24
  * @throws {@link NizamDashboard.ForbiddenError}
24
25
  * @throws {@link NizamDashboard.ConflictError}
@@ -55,6 +55,7 @@ class AssignmentsClient {
55
55
  * @param {NizamDashboard.OpenAssignmentRequest} request
56
56
  * @param {AssignmentsClient.RequestOptions} requestOptions - Request-specific configuration.
57
57
  *
58
+ * @throws {@link NizamDashboard.BadRequestError}
58
59
  * @throws {@link NizamDashboard.UnauthorizedError}
59
60
  * @throws {@link NizamDashboard.ForbiddenError}
60
61
  * @throws {@link NizamDashboard.ConflictError}
@@ -95,6 +96,8 @@ class AssignmentsClient {
95
96
  }
96
97
  if (_response.error.reason === "status-code") {
97
98
  switch (_response.error.statusCode) {
99
+ case 400:
100
+ throw new NizamDashboard.BadRequestError(_response.error.body, _response.rawResponse);
98
101
  case 401:
99
102
  throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
100
103
  case 403:
@@ -19,6 +19,7 @@ export declare class OperatorsClient {
19
19
  * @param {NizamDashboard.CreateOperatorRequest} request
20
20
  * @param {OperatorsClient.RequestOptions} requestOptions - Request-specific configuration.
21
21
  *
22
+ * @throws {@link NizamDashboard.BadRequestError}
22
23
  * @throws {@link NizamDashboard.UnauthorizedError}
23
24
  * @throws {@link NizamDashboard.ForbiddenError}
24
25
  * @throws {@link NizamDashboard.UnprocessableEntityError}
@@ -55,6 +55,7 @@ class OperatorsClient {
55
55
  * @param {NizamDashboard.CreateOperatorRequest} request
56
56
  * @param {OperatorsClient.RequestOptions} requestOptions - Request-specific configuration.
57
57
  *
58
+ * @throws {@link NizamDashboard.BadRequestError}
58
59
  * @throws {@link NizamDashboard.UnauthorizedError}
59
60
  * @throws {@link NizamDashboard.ForbiddenError}
60
61
  * @throws {@link NizamDashboard.UnprocessableEntityError}
@@ -108,6 +109,8 @@ class OperatorsClient {
108
109
  }
109
110
  if (_response.error.reason === "status-code") {
110
111
  switch (_response.error.statusCode) {
112
+ case 400:
113
+ throw new NizamDashboard.BadRequestError(_response.error.body, _response.rawResponse);
111
114
  case 401:
112
115
  throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
113
116
  case 403:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nizam-os/dashboard-sdk",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "Nizam Dashboard API SDK for TypeScript / JavaScript.",
5
5
  "license": "MIT",
6
6
  "private": false,