@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.
@@ -8,6 +8,7 @@
8
8
  204,
9
9
  400,
10
10
  401,
11
+ 403,
11
12
  404,
12
13
  406,
13
14
  408,
@@ -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";
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "0.44.1",
3
+ "version": "0.44.3",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",