@unito/integration-api 0.44.0 → 0.44.2
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.
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"title": "RelationSummary",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"additionalProperties": false,
|
|
6
|
-
"unito": true,
|
|
7
6
|
"required": ["name", "schema", "label"],
|
|
8
7
|
"properties": {
|
|
9
8
|
"name": {
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
"$ref": "https://unito.io/integration_api/definitions.schema.json#/$defs/relationSemantic"
|
|
22
21
|
},
|
|
23
22
|
"schema": {
|
|
24
|
-
"
|
|
23
|
+
"oneOf": [
|
|
25
24
|
{
|
|
26
25
|
"$ref": "https://unito.io/integration_api/relationSchema.schema.json"
|
|
27
26
|
},
|
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
|
*/
|