@unito/integration-api 0.44.1 → 0.44.3
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/statusCode.json +1 -0
- package/dist/src/index.cjs +1 -0
- package/dist/src/types.d.ts +12 -0
- package/dist/src/types.js +1 -0
- package/package.json +1 -1
package/dist/src/index.cjs
CHANGED
|
@@ -80,6 +80,7 @@ exports.StatusCode = void 0;
|
|
|
80
80
|
StatusCode[StatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
81
81
|
StatusCode[StatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
82
82
|
StatusCode[StatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
83
|
+
StatusCode[StatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
83
84
|
StatusCode[StatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
84
85
|
StatusCode[StatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
85
86
|
StatusCode[StatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
import stream from 'node:stream';
|
|
1
3
|
/**
|
|
2
4
|
* A Collection represents a paginated list of ItemSummary available through a Relation.
|
|
3
5
|
*/
|
|
@@ -387,6 +389,15 @@ export interface RelationSchema {
|
|
|
387
389
|
* A CreateItemRequestPayload describes the shape of a request on an item creation endpoint.
|
|
388
390
|
*/
|
|
389
391
|
export type CreateItemRequestPayload = Record<string, unknown>;
|
|
392
|
+
/**
|
|
393
|
+
* A CreateBlobRequestPayload describes the shape of a request on a blob creation endpoint.
|
|
394
|
+
*/
|
|
395
|
+
export type CreateBlobRequestPayload = {
|
|
396
|
+
file: stream.Readable;
|
|
397
|
+
mimeType: string;
|
|
398
|
+
encoding: string;
|
|
399
|
+
filename: string;
|
|
400
|
+
};
|
|
390
401
|
/**
|
|
391
402
|
* A UpdateItemRequestPayload describes the shape of a request on an item update endpoint.
|
|
392
403
|
*/
|
|
@@ -416,6 +427,7 @@ export declare enum StatusCode {
|
|
|
416
427
|
NO_CONTENT = 204,
|
|
417
428
|
BAD_REQUEST = 400,
|
|
418
429
|
UNAUTHORIZED = 401,
|
|
430
|
+
FORBIDDEN = 403,
|
|
419
431
|
NOT_FOUND = 404,
|
|
420
432
|
NOT_ACCEPTABLE = 406,
|
|
421
433
|
REQUEST_TIMEOUT = 408,
|
package/dist/src/types.js
CHANGED
|
@@ -78,6 +78,7 @@ export var StatusCode;
|
|
|
78
78
|
StatusCode[StatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
79
79
|
StatusCode[StatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
80
80
|
StatusCode[StatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
81
|
+
StatusCode[StatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
81
82
|
StatusCode[StatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
82
83
|
StatusCode[StatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
83
84
|
StatusCode[StatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|