@unito/integration-api 0.43.10 → 0.43.12
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/blobSummary.json +14 -0
- package/dist/schemas/definitions.json +1 -0
- package/dist/schemas/fieldSchema.json +15 -0
- package/dist/schemas/statusCode.json +1 -0
- package/dist/src/index.cjs +2 -0
- package/dist/src/types.d.ts +24 -3
- package/dist/src/types.js +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://unito.io/integration_api/blobSummary.schema.json",
|
|
3
|
+
"title": "BlobSummary",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["path"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"path": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uri-reference",
|
|
11
|
+
"pattern": "^/.*$"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -76,6 +76,21 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
"if": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"type": { "const": "blob" }
|
|
84
|
+
},
|
|
85
|
+
"required": ["type"]
|
|
86
|
+
},
|
|
87
|
+
"then": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"isArray": { "enum": [false] }
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
79
94
|
{
|
|
80
95
|
"if": {
|
|
81
96
|
"type": "object",
|
package/dist/src/index.cjs
CHANGED
|
@@ -38,6 +38,7 @@ exports.Semantic = void 0;
|
|
|
38
38
|
Semantic["PROVIDER_URL"] = "providerUrl";
|
|
39
39
|
Semantic["UPDATED_AT"] = "updatedAt";
|
|
40
40
|
Semantic["USER"] = "user";
|
|
41
|
+
Semantic["PARENT"] = "parent";
|
|
41
42
|
})(exports.Semantic || (exports.Semantic = {}));
|
|
42
43
|
/**
|
|
43
44
|
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
@@ -79,6 +80,7 @@ exports.StatusCode = void 0;
|
|
|
79
80
|
StatusCode[StatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
80
81
|
StatusCode[StatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
81
82
|
StatusCode[StatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
83
|
+
StatusCode[StatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
82
84
|
StatusCode[StatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
83
85
|
StatusCode[StatusCode["UNPROCESSABLE_CONTENT"] = 422] = "UNPROCESSABLE_CONTENT";
|
|
84
86
|
StatusCode[StatusCode["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
package/dist/src/types.d.ts
CHANGED
|
@@ -97,7 +97,17 @@ export interface BasicFieldSchema extends AbstractFieldSchema {
|
|
|
97
97
|
/**
|
|
98
98
|
* The type of the field.
|
|
99
99
|
*/
|
|
100
|
-
type: Exclude<FieldValueType, FieldValueType.REFERENCE | FieldValueType.OBJECT | FieldValueType.DATETIME_RANGE | FieldValueType.DATE_RANGE>;
|
|
100
|
+
type: Exclude<FieldValueType, FieldValueType.BLOB | FieldValueType.REFERENCE | FieldValueType.OBJECT | FieldValueType.DATETIME_RANGE | FieldValueType.DATE_RANGE>;
|
|
101
|
+
}
|
|
102
|
+
export interface BlobFieldSchema extends AbstractFieldSchema {
|
|
103
|
+
/**
|
|
104
|
+
* The type of the field.
|
|
105
|
+
*/
|
|
106
|
+
type: FieldValueType.BLOB;
|
|
107
|
+
/**
|
|
108
|
+
* Cannot be an array.
|
|
109
|
+
*/
|
|
110
|
+
isArray?: false;
|
|
101
111
|
}
|
|
102
112
|
export interface ReferenceFieldSchema extends AbstractFieldSchema {
|
|
103
113
|
/**
|
|
@@ -162,7 +172,7 @@ export interface ObjectFieldSchema extends AbstractFieldSchema {
|
|
|
162
172
|
/**
|
|
163
173
|
* A FieldSchema describes the shape of a field.
|
|
164
174
|
*/
|
|
165
|
-
export type FieldSchema = BasicFieldSchema | ReferenceFieldSchema | ObjectFieldSchema | DateRangeFieldSchema | DatetimeRangeFieldSchema;
|
|
175
|
+
export type FieldSchema = BasicFieldSchema | BlobFieldSchema | ReferenceFieldSchema | ObjectFieldSchema | DateRangeFieldSchema | DatetimeRangeFieldSchema;
|
|
166
176
|
/**
|
|
167
177
|
* A FieldValueType determines the type of an item's value.
|
|
168
178
|
* The type represents a unique scalar value such as a string or an integer.
|
|
@@ -198,7 +208,8 @@ export declare enum Semantic {
|
|
|
198
208
|
DISPLAY_NAME = "displayName",
|
|
199
209
|
PROVIDER_URL = "providerUrl",
|
|
200
210
|
UPDATED_AT = "updatedAt",
|
|
201
|
-
USER = "user"
|
|
211
|
+
USER = "user",
|
|
212
|
+
PARENT = "parent"
|
|
202
213
|
}
|
|
203
214
|
/**
|
|
204
215
|
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
@@ -262,6 +273,15 @@ export interface ItemSummary {
|
|
|
262
273
|
*/
|
|
263
274
|
requestSchema?: RequestSchema;
|
|
264
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* A BlobSummary contains a path to download the corresponding Blob.
|
|
278
|
+
*/
|
|
279
|
+
export interface BlobSummary {
|
|
280
|
+
/**
|
|
281
|
+
* Link to download the Blob.
|
|
282
|
+
*/
|
|
283
|
+
path: string;
|
|
284
|
+
}
|
|
265
285
|
/**
|
|
266
286
|
* A Relation points to a Collection and describes the shape of the items it contains.
|
|
267
287
|
*/
|
|
@@ -383,6 +403,7 @@ export declare enum StatusCode {
|
|
|
383
403
|
BAD_REQUEST = 400,
|
|
384
404
|
UNAUTHORIZED = 401,
|
|
385
405
|
NOT_FOUND = 404,
|
|
406
|
+
NOT_ACCEPTABLE = 406,
|
|
386
407
|
REQUEST_TIMEOUT = 408,
|
|
387
408
|
UNPROCESSABLE_CONTENT = 422,
|
|
388
409
|
TOO_MANY_REQUESTS = 429,
|
package/dist/src/types.js
CHANGED
|
@@ -36,6 +36,7 @@ export var Semantic;
|
|
|
36
36
|
Semantic["PROVIDER_URL"] = "providerUrl";
|
|
37
37
|
Semantic["UPDATED_AT"] = "updatedAt";
|
|
38
38
|
Semantic["USER"] = "user";
|
|
39
|
+
Semantic["PARENT"] = "parent";
|
|
39
40
|
})(Semantic || (Semantic = {}));
|
|
40
41
|
/**
|
|
41
42
|
* A Relation Semantic gives meaning to a Relation in the Unito platform. A relation with a
|
|
@@ -77,6 +78,7 @@ export var StatusCode;
|
|
|
77
78
|
StatusCode[StatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
78
79
|
StatusCode[StatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
79
80
|
StatusCode[StatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
81
|
+
StatusCode[StatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
80
82
|
StatusCode[StatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
81
83
|
StatusCode[StatusCode["UNPROCESSABLE_CONTENT"] = 422] = "UNPROCESSABLE_CONTENT";
|
|
82
84
|
StatusCode[StatusCode["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unito/integration-api",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.12",
|
|
4
4
|
"description": "The Unito Integration API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
],
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "18.x",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "
|
|
51
|
-
"@typescript-eslint/parser": "
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "7.x",
|
|
51
|
+
"@typescript-eslint/parser": "7.x",
|
|
52
52
|
"c8": "9.x",
|
|
53
53
|
"eslint": "8.x",
|
|
54
54
|
"prettier": "3.x",
|