@palmetto/dispatch-sdk 0.8.1 → 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;
@@ -1104,10 +1120,7 @@ export interface operations {
1104
1120
  [name: string]: unknown;
1105
1121
  };
1106
1122
  content: {
1107
- "application/json": {
1108
- data: components["schemas"]["ProjectDto"][];
1109
- paging: components["schemas"]["PagingDto"];
1110
- };
1123
+ "application/json": components["schemas"]["ProjectDto"];
1111
1124
  };
1112
1125
  };
1113
1126
  /** @description When the request is invalid */
@@ -1374,7 +1387,7 @@ export interface operations {
1374
1387
  "application/json": components["schemas"]["DispatchDto"];
1375
1388
  };
1376
1389
  };
1377
- /** @description When the ID or body request is invalid */
1390
+ /** @description When the request is invalid */
1378
1391
  400: {
1379
1392
  headers: {
1380
1393
  [name: string]: unknown;
@@ -1410,6 +1423,24 @@ export interface operations {
1410
1423
  "application/json": components["schemas"]["NotFoundErrorDto"];
1411
1424
  };
1412
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
+ };
1413
1444
  /** @description When the request is valid, but something goes wrong on the server */
1414
1445
  500: {
1415
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.8.1";
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.8.1",
3
+ "version": "0.9.1",
4
4
  "main": "./dist/main.js",
5
5
  "files": [
6
6
  "dist/**/*",