@unito/integration-api 4.7.1 → 5.0.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.
@@ -54,11 +54,6 @@
54
54
  "info": {
55
55
  "type": "string"
56
56
  },
57
- "readOnly": {
58
- "type": "boolean",
59
- "deprecated": true,
60
- "default": false
61
- },
62
57
  "canSetOnCreate": {
63
58
  "type": "boolean",
64
59
  "default": true
@@ -75,6 +75,7 @@ const StatusCodes = {
75
75
  NO_CONTENT: 204,
76
76
  BAD_REQUEST: 400,
77
77
  UNAUTHORIZED: 401,
78
+ PAYMENT_REQUIRED: 402,
78
79
  FORBIDDEN: 403,
79
80
  NOT_FOUND: 404,
80
81
  NOT_ACCEPTABLE: 406,
@@ -75,11 +75,6 @@ interface AbstractFieldSchema {
75
75
  * Description of the field. For information purposes only.
76
76
  */
77
77
  info?: string;
78
- /**
79
- * Whether the field is read only.
80
- * @deprecated Use canSetOnCreate/canSetOnUpdate instead.
81
- */
82
- readOnly?: boolean;
83
78
  /**
84
79
  * Whether the field can be set during creation.
85
80
  * Defaults to true.
@@ -476,6 +471,7 @@ export declare const StatusCodes: {
476
471
  readonly NO_CONTENT: 204;
477
472
  readonly BAD_REQUEST: 400;
478
473
  readonly UNAUTHORIZED: 401;
474
+ readonly PAYMENT_REQUIRED: 402;
479
475
  readonly FORBIDDEN: 403;
480
476
  readonly NOT_FOUND: 404;
481
477
  readonly NOT_ACCEPTABLE: 406;
package/dist/src/types.js CHANGED
@@ -73,6 +73,7 @@ export const StatusCodes = {
73
73
  NO_CONTENT: 204,
74
74
  BAD_REQUEST: 400,
75
75
  UNAUTHORIZED: 401,
76
+ PAYMENT_REQUIRED: 402,
76
77
  FORBIDDEN: 403,
77
78
  NOT_FOUND: 404,
78
79
  NOT_ACCEPTABLE: 406,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "4.7.1",
3
+ "version": "5.0.1",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",