@twin.org/blob-storage-models 0.0.1-next.27 → 0.0.1-next.29
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 +18 -8
- package/dist/esm/index.mjs +18 -9
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IBlobStorageEntry.d.ts +3 -2
- package/dist/types/models/IBlobStorageEntryList.d.ts +3 -2
- package/dist/types/models/blobStorageContexts.d.ts +17 -0
- package/dist/types/models/blobStorageTypes.d.ts +0 -8
- package/docs/changelog.md +8 -1
- package/docs/reference/index.md +2 -0
- package/docs/reference/type-aliases/BlobStorageContexts.md +5 -0
- package/docs/reference/variables/BlobStorageContexts.md +19 -0
- package/docs/reference/variables/BlobStorageTypes.md +0 -12
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -10,14 +10,6 @@ var core = require('@twin.org/core');
|
|
|
10
10
|
*/
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
12
|
const BlobStorageTypes = {
|
|
13
|
-
/**
|
|
14
|
-
* The context root for the blob storage types.
|
|
15
|
-
*/
|
|
16
|
-
ContextRoot: "https://schema.twindev.org/blob-storage/",
|
|
17
|
-
/**
|
|
18
|
-
* The context root for the common types.
|
|
19
|
-
*/
|
|
20
|
-
ContextRootCommon: "https://schema.twindev.org/common/",
|
|
21
13
|
/**
|
|
22
14
|
* Represents blob storage entry.
|
|
23
15
|
*/
|
|
@@ -134,6 +126,24 @@ class BlobStorageDataTypes {
|
|
|
134
126
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
135
127
|
const BlobStorageConnectorFactory = core.Factory.createFactory("blob-storage");
|
|
136
128
|
|
|
129
|
+
// Copyright 2024 IOTA Stiftung.
|
|
130
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
131
|
+
/**
|
|
132
|
+
* The contexts of blob storage data.
|
|
133
|
+
*/
|
|
134
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
135
|
+
const BlobStorageContexts = {
|
|
136
|
+
/**
|
|
137
|
+
* The context root for the blob storage types.
|
|
138
|
+
*/
|
|
139
|
+
ContextRoot: "https://schema.twindev.org/blob-storage/",
|
|
140
|
+
/**
|
|
141
|
+
* The context root for the common types.
|
|
142
|
+
*/
|
|
143
|
+
ContextRootCommon: "https://schema.twindev.org/common/"
|
|
144
|
+
};
|
|
145
|
+
|
|
137
146
|
exports.BlobStorageConnectorFactory = BlobStorageConnectorFactory;
|
|
147
|
+
exports.BlobStorageContexts = BlobStorageContexts;
|
|
138
148
|
exports.BlobStorageDataTypes = BlobStorageDataTypes;
|
|
139
149
|
exports.BlobStorageTypes = BlobStorageTypes;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -8,14 +8,6 @@ import { Factory } from '@twin.org/core';
|
|
|
8
8
|
*/
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10
10
|
const BlobStorageTypes = {
|
|
11
|
-
/**
|
|
12
|
-
* The context root for the blob storage types.
|
|
13
|
-
*/
|
|
14
|
-
ContextRoot: "https://schema.twindev.org/blob-storage/",
|
|
15
|
-
/**
|
|
16
|
-
* The context root for the common types.
|
|
17
|
-
*/
|
|
18
|
-
ContextRootCommon: "https://schema.twindev.org/common/",
|
|
19
11
|
/**
|
|
20
12
|
* Represents blob storage entry.
|
|
21
13
|
*/
|
|
@@ -132,4 +124,21 @@ class BlobStorageDataTypes {
|
|
|
132
124
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
133
125
|
const BlobStorageConnectorFactory = Factory.createFactory("blob-storage");
|
|
134
126
|
|
|
135
|
-
|
|
127
|
+
// Copyright 2024 IOTA Stiftung.
|
|
128
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
129
|
+
/**
|
|
130
|
+
* The contexts of blob storage data.
|
|
131
|
+
*/
|
|
132
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
133
|
+
const BlobStorageContexts = {
|
|
134
|
+
/**
|
|
135
|
+
* The context root for the blob storage types.
|
|
136
|
+
*/
|
|
137
|
+
ContextRoot: "https://schema.twindev.org/blob-storage/",
|
|
138
|
+
/**
|
|
139
|
+
* The context root for the common types.
|
|
140
|
+
*/
|
|
141
|
+
ContextRootCommon: "https://schema.twindev.org/common/"
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export { BlobStorageConnectorFactory, BlobStorageContexts, BlobStorageDataTypes, BlobStorageTypes };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./models/api/IBlobStorageListRequest";
|
|
|
9
9
|
export * from "./models/api/IBlobStorageListResponse";
|
|
10
10
|
export * from "./models/api/IBlobStorageRemoveRequest";
|
|
11
11
|
export * from "./models/api/IBlobStorageUpdateRequest";
|
|
12
|
+
export * from "./models/blobStorageContexts";
|
|
12
13
|
export * from "./models/blobStorageTypes";
|
|
13
14
|
export * from "./models/IBlobStorageComponent";
|
|
14
15
|
export * from "./models/IBlobStorageConnector";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { BlobStorageContexts } from "./blobStorageContexts";
|
|
2
3
|
import type { BlobStorageTypes } from "./blobStorageTypes";
|
|
3
4
|
/**
|
|
4
5
|
* Interface describing a blob storage entry.
|
|
@@ -8,8 +9,8 @@ export interface IBlobStorageEntry {
|
|
|
8
9
|
* JSON-LD Context.
|
|
9
10
|
*/
|
|
10
11
|
"@context": [
|
|
11
|
-
typeof
|
|
12
|
-
typeof
|
|
12
|
+
typeof BlobStorageContexts.ContextRoot,
|
|
13
|
+
typeof BlobStorageContexts.ContextRootCommon,
|
|
13
14
|
...IJsonLdContextDefinitionElement[]
|
|
14
15
|
];
|
|
15
16
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { BlobStorageContexts } from "./blobStorageContexts";
|
|
2
3
|
import type { BlobStorageTypes } from "./blobStorageTypes";
|
|
3
4
|
import type { IBlobStorageEntry } from "./IBlobStorageEntry";
|
|
4
5
|
/**
|
|
@@ -9,8 +10,8 @@ export interface IBlobStorageEntryList {
|
|
|
9
10
|
* JSON-LD Context.
|
|
10
11
|
*/
|
|
11
12
|
"@context": [
|
|
12
|
-
typeof
|
|
13
|
-
typeof
|
|
13
|
+
typeof BlobStorageContexts.ContextRoot,
|
|
14
|
+
typeof BlobStorageContexts.ContextRootCommon,
|
|
14
15
|
...IJsonLdContextDefinitionElement[]
|
|
15
16
|
];
|
|
16
17
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The contexts of blob storage data.
|
|
3
|
+
*/
|
|
4
|
+
export declare const BlobStorageContexts: {
|
|
5
|
+
/**
|
|
6
|
+
* The context root for the blob storage types.
|
|
7
|
+
*/
|
|
8
|
+
readonly ContextRoot: "https://schema.twindev.org/blob-storage/";
|
|
9
|
+
/**
|
|
10
|
+
* The context root for the common types.
|
|
11
|
+
*/
|
|
12
|
+
readonly ContextRootCommon: "https://schema.twindev.org/common/";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The contexts of blob storage data.
|
|
16
|
+
*/
|
|
17
|
+
export type BlobStorageContexts = (typeof BlobStorageContexts)[keyof typeof BlobStorageContexts];
|
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
* The types of blob storage data.
|
|
3
3
|
*/
|
|
4
4
|
export declare const BlobStorageTypes: {
|
|
5
|
-
/**
|
|
6
|
-
* The context root for the blob storage types.
|
|
7
|
-
*/
|
|
8
|
-
readonly ContextRoot: "https://schema.twindev.org/blob-storage/";
|
|
9
|
-
/**
|
|
10
|
-
* The context root for the common types.
|
|
11
|
-
*/
|
|
12
|
-
readonly ContextRootCommon: "https://schema.twindev.org/common/";
|
|
13
5
|
/**
|
|
14
6
|
* Represents blob storage entry.
|
|
15
7
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @twin.org/blob-storage-models - Changelog
|
|
2
2
|
|
|
3
|
-
## v0.0.1-next.
|
|
3
|
+
## [0.0.1-next.29](https://github.com/twinfoundation/blob-storage/compare/blob-storage-models-v0.0.1-next.28...blob-storage-models-v0.0.1-next.29) (2025-03-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Adding the optional flag to the entity ([#10](https://github.com/twinfoundation/blob-storage/issues/10)) ([626677e](https://github.com/twinfoundation/blob-storage/commit/626677e5730d23535a0eb1f36f8394d941ff2447))
|
|
9
|
+
|
|
10
|
+
## v0.0.1-next.28
|
|
4
11
|
|
|
5
12
|
- Initial Release
|
package/docs/reference/index.md
CHANGED
|
@@ -22,9 +22,11 @@
|
|
|
22
22
|
|
|
23
23
|
## Type Aliases
|
|
24
24
|
|
|
25
|
+
- [BlobStorageContexts](type-aliases/BlobStorageContexts.md)
|
|
25
26
|
- [BlobStorageTypes](type-aliases/BlobStorageTypes.md)
|
|
26
27
|
|
|
27
28
|
## Variables
|
|
28
29
|
|
|
29
30
|
- [BlobStorageConnectorFactory](variables/BlobStorageConnectorFactory.md)
|
|
31
|
+
- [BlobStorageContexts](variables/BlobStorageContexts.md)
|
|
30
32
|
- [BlobStorageTypes](variables/BlobStorageTypes.md)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: BlobStorageContexts
|
|
2
|
+
|
|
3
|
+
> `const` **BlobStorageContexts**: `object`
|
|
4
|
+
|
|
5
|
+
The contexts of blob storage data.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### ContextRoot
|
|
10
|
+
|
|
11
|
+
> `readonly` **ContextRoot**: `"https://schema.twindev.org/blob-storage/"` = `"https://schema.twindev.org/blob-storage/"`
|
|
12
|
+
|
|
13
|
+
The context root for the blob storage types.
|
|
14
|
+
|
|
15
|
+
### ContextRootCommon
|
|
16
|
+
|
|
17
|
+
> `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
18
|
+
|
|
19
|
+
The context root for the common types.
|
|
@@ -6,18 +6,6 @@ The types of blob storage data.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
### ContextRoot
|
|
10
|
-
|
|
11
|
-
> `readonly` **ContextRoot**: `"https://schema.twindev.org/blob-storage/"` = `"https://schema.twindev.org/blob-storage/"`
|
|
12
|
-
|
|
13
|
-
The context root for the blob storage types.
|
|
14
|
-
|
|
15
|
-
### ContextRootCommon
|
|
16
|
-
|
|
17
|
-
> `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
18
|
-
|
|
19
|
-
The context root for the common types.
|
|
20
|
-
|
|
21
9
|
### Entry
|
|
22
10
|
|
|
23
11
|
> `readonly` **Entry**: `"BlobStorageEntry"` = `"BlobStorageEntry"`
|