@twin.org/blob-storage-service 0.0.1-next.21 → 0.0.1-next.23
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/cjs/index.cjs +82 -43
- package/dist/esm/index.mjs +82 -43
- package/dist/types/blobStorageRoutes.d.ts +1 -1
- package/dist/types/blobStorageService.d.ts +7 -7
- package/dist/types/entities/blobStorageEntry.d.ts +6 -2
- package/dist/types/models/IBlobStorageServiceConstructorOptions.d.ts +1 -1
- package/docs/changelog.md +1 -1
- package/docs/open-api/spec.json +151 -121
- package/docs/reference/classes/BlobStorageEntry.md +11 -3
- package/docs/reference/classes/BlobStorageService.md +9 -9
- package/docs/reference/functions/blobStorageUpdate.md +1 -1
- package/docs/reference/interfaces/IBlobStorageServiceConstructorOptions.md +1 -1
- package/package.json +3 -2
|
@@ -50,9 +50,9 @@ Runtime name for the class.
|
|
|
50
50
|
|
|
51
51
|
### create()
|
|
52
52
|
|
|
53
|
-
> **create**(`blob`, `encodingFormat`?, `fileExtension`?, `
|
|
53
|
+
> **create**(`blob`, `encodingFormat`?, `fileExtension`?, `annotationObject`?, `namespace`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
|
|
54
54
|
|
|
55
|
-
Create the blob with some
|
|
55
|
+
Create the blob with some annotation.
|
|
56
56
|
|
|
57
57
|
#### Parameters
|
|
58
58
|
|
|
@@ -74,11 +74,11 @@ Mime type for the blob, will be detected if left undefined.
|
|
|
74
74
|
|
|
75
75
|
Extension for the blob, will be detected if left undefined.
|
|
76
76
|
|
|
77
|
-
#####
|
|
77
|
+
##### annotationObject?
|
|
78
78
|
|
|
79
79
|
`IJsonLdNodeObject`
|
|
80
80
|
|
|
81
|
-
Data for the custom
|
|
81
|
+
Data for the custom annotation as JSON-LD.
|
|
82
82
|
|
|
83
83
|
##### namespace?
|
|
84
84
|
|
|
@@ -128,7 +128,7 @@ The id of the blob to get in urn format.
|
|
|
128
128
|
|
|
129
129
|
`boolean`
|
|
130
130
|
|
|
131
|
-
Include the content, or just get the
|
|
131
|
+
Include the content, or just get the annotation.
|
|
132
132
|
|
|
133
133
|
##### userIdentity?
|
|
134
134
|
|
|
@@ -160,9 +160,9 @@ Not found error if the blob cannot be found.
|
|
|
160
160
|
|
|
161
161
|
### update()
|
|
162
162
|
|
|
163
|
-
> **update**(`id`, `encodingFormat`?, `fileExtension`?, `
|
|
163
|
+
> **update**(`id`, `encodingFormat`?, `fileExtension`?, `annotationObject`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
|
|
164
164
|
|
|
165
|
-
Update the blob with
|
|
165
|
+
Update the blob with annotation.
|
|
166
166
|
|
|
167
167
|
#### Parameters
|
|
168
168
|
|
|
@@ -184,11 +184,11 @@ Mime type for the blob, will be detected if left undefined.
|
|
|
184
184
|
|
|
185
185
|
Extension for the blob, will be detected if left undefined.
|
|
186
186
|
|
|
187
|
-
#####
|
|
187
|
+
##### annotationObject?
|
|
188
188
|
|
|
189
189
|
`IJsonLdNodeObject`
|
|
190
190
|
|
|
191
|
-
Data for the custom
|
|
191
|
+
Data for the custom annotation as JSON-LD.
|
|
192
192
|
|
|
193
193
|
##### userIdentity?
|
|
194
194
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/blob-storage-service",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.23",
|
|
4
4
|
"description": "Blob storage contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/api-models": "next",
|
|
18
|
-
"@twin.org/blob-storage-models": "0.0.1-next.
|
|
18
|
+
"@twin.org/blob-storage-models": "0.0.1-next.23",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
|
+
"@twin.org/crypto": "next",
|
|
20
21
|
"@twin.org/data-json-ld": "next",
|
|
21
22
|
"@twin.org/entity": "next",
|
|
22
23
|
"@twin.org/entity-storage-models": "next",
|