@palmetto/dispatch-sdk 0.9.0 → 0.9.1

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.
@@ -648,6 +648,22 @@ export interface components {
648
648
  reason: "MANUAL";
649
649
  };
650
650
  };
651
+ UnprocessableErrorDto: {
652
+ /**
653
+ * @example Unprocessable
654
+ * @constant
655
+ */
656
+ error: "Unprocessable";
657
+ /**
658
+ * @example 422
659
+ * @constant
660
+ */
661
+ statusCode: 422;
662
+ /** @example That action is not valid to perform */
663
+ message: string;
664
+ /** @example Technical error description */
665
+ reason: string;
666
+ };
651
667
  CoverageAreaDto: {
652
668
  id: string;
653
669
  supplierId: string;
@@ -1371,7 +1387,7 @@ export interface operations {
1371
1387
  "application/json": components["schemas"]["DispatchDto"];
1372
1388
  };
1373
1389
  };
1374
- /** @description When the ID or body request is invalid */
1390
+ /** @description When the request is invalid */
1375
1391
  400: {
1376
1392
  headers: {
1377
1393
  [name: string]: unknown;
@@ -1407,6 +1423,24 @@ export interface operations {
1407
1423
  "application/json": components["schemas"]["NotFoundErrorDto"];
1408
1424
  };
1409
1425
  };
1426
+ /** @description When the status is concurrently modified */
1427
+ 409: {
1428
+ headers: {
1429
+ [name: string]: unknown;
1430
+ };
1431
+ content: {
1432
+ "application/json": components["schemas"]["ConflictErrorDto"];
1433
+ };
1434
+ };
1435
+ /** @description When the status transition is invalid */
1436
+ 422: {
1437
+ headers: {
1438
+ [name: string]: unknown;
1439
+ };
1440
+ content: {
1441
+ "application/json": components["schemas"]["UnprocessableErrorDto"];
1442
+ };
1443
+ };
1410
1444
  /** @description When the request is valid, but something goes wrong on the server */
1411
1445
  500: {
1412
1446
  headers: {
package/dist/client.js CHANGED
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.DispatchClient = void 0;
24
24
  const base_sdk_client_1 = require("@palmetto/base-sdk-client");
25
25
  const result_1 = require("@palmetto/result");
26
- const SDK_VERSION_SLUG = "palmetto-dispatch-sdk/0.9.0";
26
+ const SDK_VERSION_SLUG = "palmetto-dispatch-sdk/0.9.1";
27
27
  class DispatchClient extends base_sdk_client_1.BaseSdkClient {
28
28
  constructor(input) {
29
29
  super(Object.assign(Object.assign({}, input), { sdkVersion: SDK_VERSION_SLUG }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmetto/dispatch-sdk",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "main": "./dist/main.js",
5
5
  "files": [
6
6
  "dist/**/*",