@unito/integration-api 0.45.1 → 0.46.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.
- package/dist/schemas/itemSummary.json +8 -0
- package/dist/src/index.cjs +1 -0
- package/dist/src/types.d.ts +7 -1
- package/dist/src/types.js +1 -0
- package/package.json +1 -1
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
"type": "object",
|
|
15
15
|
"additionalProperties": true
|
|
16
16
|
},
|
|
17
|
+
"relations": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "uri-reference",
|
|
22
|
+
"pattern": "^\/.*$"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
17
25
|
"requestSchema": {
|
|
18
26
|
"$ref": "https://unito.io/integration_api/requestSchema.schema.json"
|
|
19
27
|
}
|
package/dist/src/index.cjs
CHANGED
|
@@ -77,6 +77,7 @@ exports.StatusCode = void 0;
|
|
|
77
77
|
(function (StatusCode) {
|
|
78
78
|
StatusCode[StatusCode["OK"] = 200] = "OK";
|
|
79
79
|
StatusCode[StatusCode["CREATED"] = 201] = "CREATED";
|
|
80
|
+
StatusCode[StatusCode["ACCEPTED"] = 202] = "ACCEPTED";
|
|
80
81
|
StatusCode[StatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
81
82
|
StatusCode[StatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
82
83
|
StatusCode[StatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
1
|
import stream from 'node:stream';
|
|
3
2
|
/**
|
|
4
3
|
* A Collection represents a paginated list of ItemSummary available through a Relation.
|
|
@@ -263,6 +262,12 @@ export interface ItemSummary {
|
|
|
263
262
|
* The shape of the request parameters.
|
|
264
263
|
*/
|
|
265
264
|
requestSchema?: RequestSchema;
|
|
265
|
+
/**
|
|
266
|
+
* Optional list of relation paths.
|
|
267
|
+
*/
|
|
268
|
+
relations?: {
|
|
269
|
+
[k: string]: string;
|
|
270
|
+
};
|
|
266
271
|
}
|
|
267
272
|
/**
|
|
268
273
|
* A BlobSummary contains a path to download the corresponding Blob.
|
|
@@ -399,6 +404,7 @@ export interface RequestSchema {
|
|
|
399
404
|
export declare enum StatusCode {
|
|
400
405
|
OK = 200,
|
|
401
406
|
CREATED = 201,
|
|
407
|
+
ACCEPTED = 202,
|
|
402
408
|
NO_CONTENT = 204,
|
|
403
409
|
BAD_REQUEST = 400,
|
|
404
410
|
UNAUTHORIZED = 401,
|
package/dist/src/types.js
CHANGED
|
@@ -75,6 +75,7 @@ export var StatusCode;
|
|
|
75
75
|
(function (StatusCode) {
|
|
76
76
|
StatusCode[StatusCode["OK"] = 200] = "OK";
|
|
77
77
|
StatusCode[StatusCode["CREATED"] = 201] = "CREATED";
|
|
78
|
+
StatusCode[StatusCode["ACCEPTED"] = 202] = "ACCEPTED";
|
|
78
79
|
StatusCode[StatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
79
80
|
StatusCode[StatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
80
81
|
StatusCode[StatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|