@unito/integration-api 0.43.10 → 0.43.11
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.
|
@@ -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/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.
|
|
@@ -262,6 +272,15 @@ export interface ItemSummary {
|
|
|
262
272
|
*/
|
|
263
273
|
requestSchema?: RequestSchema;
|
|
264
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* A BlobSummary contains a path to download the corresponding Blob.
|
|
277
|
+
*/
|
|
278
|
+
export interface BlobSummary {
|
|
279
|
+
/**
|
|
280
|
+
* Link to download the Blob.
|
|
281
|
+
*/
|
|
282
|
+
path: string;
|
|
283
|
+
}
|
|
265
284
|
/**
|
|
266
285
|
* A Relation points to a Collection and describes the shape of the items it contains.
|
|
267
286
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unito/integration-api",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.11",
|
|
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",
|