@unito/integration-api 0.46.2 → 1.0.0
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/item.json +3 -0
- package/dist/schemas/itemSummary.json +3 -0
- package/dist/src/index.cjs +0 -1
- package/dist/src/types.d.ts +12 -3
- package/dist/src/types.js +0 -1
- package/package.json +2 -2
package/dist/schemas/item.json
CHANGED
package/dist/src/index.cjs
CHANGED
|
@@ -31,7 +31,6 @@ exports.FieldValueType = void 0;
|
|
|
31
31
|
*/
|
|
32
32
|
exports.Semantic = void 0;
|
|
33
33
|
(function (Semantic) {
|
|
34
|
-
Semantic["CANONICAL_PATH"] = "canonicalPath";
|
|
35
34
|
Semantic["CREATED_AT"] = "createdAt";
|
|
36
35
|
Semantic["DESCRIPTION"] = "description";
|
|
37
36
|
Semantic["DISPLAY_NAME"] = "displayName";
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Readable } from 'node:stream';
|
|
2
2
|
/**
|
|
3
3
|
* A Collection represents a paginated list of ItemSummary available through a Relation.
|
|
4
4
|
*/
|
|
@@ -191,7 +191,6 @@ export declare enum FieldValueType {
|
|
|
191
191
|
* by the consumers of the spec to better understand what that value means.
|
|
192
192
|
*/
|
|
193
193
|
export declare enum Semantic {
|
|
194
|
-
CANONICAL_PATH = "canonicalPath",
|
|
195
194
|
CREATED_AT = "createdAt",
|
|
196
195
|
DESCRIPTION = "description",
|
|
197
196
|
DISPLAY_NAME = "displayName",
|
|
@@ -242,6 +241,11 @@ export interface Item {
|
|
|
242
241
|
* The relations of the item
|
|
243
242
|
*/
|
|
244
243
|
relations: Relation[];
|
|
244
|
+
/**
|
|
245
|
+
* The canonical path of the item. This is the path / id that uniquely identifies the item in a provider.
|
|
246
|
+
* Even if the item is moved in the graph, the canonical path should remain the same.
|
|
247
|
+
*/
|
|
248
|
+
canonicalPath?: string;
|
|
245
249
|
}
|
|
246
250
|
/**
|
|
247
251
|
* An ItemSummary is a constituent of a collection.
|
|
@@ -268,6 +272,11 @@ export interface ItemSummary {
|
|
|
268
272
|
relations?: {
|
|
269
273
|
[k: string]: string;
|
|
270
274
|
};
|
|
275
|
+
/**
|
|
276
|
+
* The canonical path of the item. This is the path / id that uniquely identifies the item in a provider.
|
|
277
|
+
* Even if the item is moved in the graph, the canonical path should remain the same.
|
|
278
|
+
*/
|
|
279
|
+
canonicalPath?: string;
|
|
271
280
|
}
|
|
272
281
|
/**
|
|
273
282
|
* A BlobSummary contains a path to download the corresponding Blob.
|
|
@@ -373,7 +382,7 @@ export type CreateItemRequestPayload = Record<string, unknown>;
|
|
|
373
382
|
* A CreateBlobRequestPayload describes the shape of a request on a blob creation endpoint.
|
|
374
383
|
*/
|
|
375
384
|
export type CreateBlobRequestPayload = {
|
|
376
|
-
file:
|
|
385
|
+
file: Readable;
|
|
377
386
|
mimeType: string;
|
|
378
387
|
encoding: string;
|
|
379
388
|
filename: string;
|
package/dist/src/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unito/integration-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "The Unito Integration API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist/schemas/**/*"
|
|
17
17
|
],
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
19
|
+
"node": ">=20",
|
|
20
20
|
"npm": ">=10"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|