@twin.org/blob-storage-models 0.0.1-next.19 → 0.0.1-next.21
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 +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/types/models/IBlobStorageEntry.d.ts +3 -3
- package/docs/changelog.md +1 -1
- package/docs/reference/interfaces/IBlobStorageConnector.md +2 -2
- package/docs/reference/interfaces/IBlobStorageEntry.md +2 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -42,7 +42,7 @@ var properties = {
|
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
additionalItems: {
|
|
45
|
-
|
|
45
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
],
|
|
@@ -83,7 +83,7 @@ var properties = {
|
|
|
83
83
|
},
|
|
84
84
|
blob: {
|
|
85
85
|
type: "string",
|
|
86
|
-
description: "The blob in base64 format, if the includeContent flag was set in the request."
|
|
86
|
+
description: "The blob in base64 format, included if the includeContent flag was set in the request."
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
var required = [
|
package/dist/esm/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ var properties = {
|
|
|
40
40
|
}
|
|
41
41
|
],
|
|
42
42
|
additionalItems: {
|
|
43
|
-
|
|
43
|
+
$ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
],
|
|
@@ -81,7 +81,7 @@ var properties = {
|
|
|
81
81
|
},
|
|
82
82
|
blob: {
|
|
83
83
|
type: "string",
|
|
84
|
-
description: "The blob in base64 format, if the includeContent flag was set in the request."
|
|
84
|
+
description: "The blob in base64 format, included if the includeContent flag was set in the request."
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
var required = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
1
|
+
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { BlobStorageTypes } from "./blobStorageTypes";
|
|
3
3
|
/**
|
|
4
4
|
* Interface describing a blob storage entry.
|
|
@@ -7,7 +7,7 @@ export interface IBlobStorageEntry {
|
|
|
7
7
|
/**
|
|
8
8
|
* JSON-LD Context.
|
|
9
9
|
*/
|
|
10
|
-
"@context": typeof BlobStorageTypes.ContextRoot | [typeof BlobStorageTypes.ContextRoot, ...
|
|
10
|
+
"@context": typeof BlobStorageTypes.ContextRoot | [typeof BlobStorageTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
|
|
11
11
|
/**
|
|
12
12
|
* JSON-LD Type.
|
|
13
13
|
*/
|
|
@@ -41,7 +41,7 @@ export interface IBlobStorageEntry {
|
|
|
41
41
|
*/
|
|
42
42
|
metadata?: IJsonLdNodeObject;
|
|
43
43
|
/**
|
|
44
|
-
* The blob in base64 format, if the includeContent flag was set in the request.
|
|
44
|
+
* The blob in base64 format, included if the includeContent flag was set in the request.
|
|
45
45
|
*/
|
|
46
46
|
blob?: string;
|
|
47
47
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -32,7 +32,7 @@ The id of the stored blob in urn format.
|
|
|
32
32
|
|
|
33
33
|
### get()
|
|
34
34
|
|
|
35
|
-
> **get**(`id`): `Promise`\<`undefined` \| `Uint8Array
|
|
35
|
+
> **get**(`id`): `Promise`\<`undefined` \| `Uint8Array`\<`ArrayBufferLike`\>\>
|
|
36
36
|
|
|
37
37
|
Get the blob.
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@ The id of the blob to get in urn format.
|
|
|
46
46
|
|
|
47
47
|
#### Returns
|
|
48
48
|
|
|
49
|
-
`Promise`\<`undefined` \| `Uint8Array
|
|
49
|
+
`Promise`\<`undefined` \| `Uint8Array`\<`ArrayBufferLike`\>\>
|
|
50
50
|
|
|
51
51
|
The data for the blob if it can be found or undefined.
|
|
52
52
|
|
|
@@ -6,7 +6,7 @@ Interface describing a blob storage entry.
|
|
|
6
6
|
|
|
7
7
|
### @context
|
|
8
8
|
|
|
9
|
-
> **@context**: `"https://schema.twindev.org/blob-storage/"` \| \[`"https://schema.twindev.org/blob-storage/"`, `...
|
|
9
|
+
> **@context**: `"https://schema.twindev.org/blob-storage/"` \| \[`"https://schema.twindev.org/blob-storage/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
|
@@ -80,4 +80,4 @@ The metadata for the blob as JSON-LD.
|
|
|
80
80
|
|
|
81
81
|
> `optional` **blob**: `string`
|
|
82
82
|
|
|
83
|
-
The blob in base64 format, if the includeContent flag was set in the request.
|
|
83
|
+
The blob in base64 format, included if the includeContent flag was set in the request.
|