@twin.org/auditable-item-graph-rest-client 0.0.1 → 0.0.2-next.2
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
CHANGED
|
@@ -86,11 +86,10 @@ class AuditableItemGraphClient extends apiCore.BaseRestClient {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Remove the verifiable storage for an item.
|
|
89
|
+
* Remove the verifiable storage for an item, not supported on client.
|
|
90
90
|
* @param id The id of the vertex to get.
|
|
91
91
|
* @returns Nothing.
|
|
92
92
|
* @throws NotFoundError if the vertex is not found.
|
|
93
|
-
* @internal
|
|
94
93
|
*/
|
|
95
94
|
async removeVerifiable(id) {
|
|
96
95
|
throw new core.NotSupportedError(this.CLASS_NAME, "removeVerifiable");
|
package/dist/esm/index.mjs
CHANGED
|
@@ -84,11 +84,10 @@ class AuditableItemGraphClient extends BaseRestClient {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
* Remove the verifiable storage for an item.
|
|
87
|
+
* Remove the verifiable storage for an item, not supported on client.
|
|
88
88
|
* @param id The id of the vertex to get.
|
|
89
89
|
* @returns Nothing.
|
|
90
90
|
* @throws NotFoundError if the vertex is not found.
|
|
91
|
-
* @internal
|
|
92
91
|
*/
|
|
93
92
|
async removeVerifiable(id) {
|
|
94
93
|
throw new NotSupportedError(this.CLASS_NAME, "removeVerifiable");
|
|
@@ -85,6 +85,13 @@ export declare class AuditableItemGraphClient extends BaseRestClient implements
|
|
|
85
85
|
annotationObject?: IJsonLdNodeObject;
|
|
86
86
|
}[];
|
|
87
87
|
}): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Remove the verifiable storage for an item, not supported on client.
|
|
90
|
+
* @param id The id of the vertex to get.
|
|
91
|
+
* @returns Nothing.
|
|
92
|
+
* @throws NotFoundError if the vertex is not found.
|
|
93
|
+
*/
|
|
94
|
+
removeVerifiable(id: string): Promise<void>;
|
|
88
95
|
/**
|
|
89
96
|
* Query the graph for vertices.
|
|
90
97
|
* @param options The query options.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @twin.org/auditable-item-graph-rest-client - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.2](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-rest-client-v0.0.2-next.1...auditable-item-graph-rest-client-v0.0.2-next.2) (2025-08-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update framework core ([88ad4e6](https://github.com/twinfoundation/auditable-item-graph/commit/88ad4e6421132c3c6c45579b078d982a26f16990))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/auditable-item-graph-models bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
16
|
+
|
|
17
|
+
## [0.0.2-next.1](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-rest-client-v0.0.2-next.0...auditable-item-graph-rest-client-v0.0.2-next.1) (2025-07-21)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* rest client expose remove verifiable ([a22a743](https://github.com/twinfoundation/auditable-item-graph/commit/a22a743ddc39377630ea0a51ca3f6e97890832c9))
|
|
23
|
+
* update dependencies ([6986689](https://github.com/twinfoundation/auditable-item-graph/commit/698668957a1fcb7f85ce2f117914d5980043924f))
|
|
24
|
+
* use shared store mechanism ([#10](https://github.com/twinfoundation/auditable-item-graph/issues/10)) ([da035e5](https://github.com/twinfoundation/auditable-item-graph/commit/da035e5eb8f157482b4eb2bdbc689c6c0647ff7d))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* only include alias in index if not deleted ([#6](https://github.com/twinfoundation/auditable-item-graph/issues/6)) ([5da3c41](https://github.com/twinfoundation/auditable-item-graph/commit/5da3c419fafa2afefd34b1c570d103012b888a75))
|
|
30
|
+
* query params force coercion ([2dd9afe](https://github.com/twinfoundation/auditable-item-graph/commit/2dd9afe9ec37e2a91c110317fe289f7495c187a0))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* The following workspace dependencies were updated
|
|
36
|
+
* dependencies
|
|
37
|
+
* @twin.org/auditable-item-graph-models bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
38
|
+
|
|
3
39
|
## 0.0.1 (2025-07-09)
|
|
4
40
|
|
|
5
41
|
|
|
@@ -202,6 +202,36 @@ Nothing.
|
|
|
202
202
|
|
|
203
203
|
***
|
|
204
204
|
|
|
205
|
+
### removeVerifiable()
|
|
206
|
+
|
|
207
|
+
> **removeVerifiable**(`id`): `Promise`\<`void`\>
|
|
208
|
+
|
|
209
|
+
Remove the verifiable storage for an item, not supported on client.
|
|
210
|
+
|
|
211
|
+
#### Parameters
|
|
212
|
+
|
|
213
|
+
##### id
|
|
214
|
+
|
|
215
|
+
`string`
|
|
216
|
+
|
|
217
|
+
The id of the vertex to get.
|
|
218
|
+
|
|
219
|
+
#### Returns
|
|
220
|
+
|
|
221
|
+
`Promise`\<`void`\>
|
|
222
|
+
|
|
223
|
+
Nothing.
|
|
224
|
+
|
|
225
|
+
#### Throws
|
|
226
|
+
|
|
227
|
+
NotFoundError if the vertex is not found.
|
|
228
|
+
|
|
229
|
+
#### Implementation of
|
|
230
|
+
|
|
231
|
+
`IAuditableItemGraphComponent.removeVerifiable`
|
|
232
|
+
|
|
233
|
+
***
|
|
234
|
+
|
|
205
235
|
### query()
|
|
206
236
|
|
|
207
237
|
> **query**(`options?`, `conditions?`, `orderBy?`, `orderByDirection?`, `properties?`, `cursor?`, `pageSize?`): `Promise`\<`IAuditableItemGraphVertexList`\>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-rest-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-next.2",
|
|
4
4
|
"description": "Auditable Item Graph contract implementation which can connect to REST endpoints",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,46 +13,16 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"clean": "rimraf dist coverage docs/reference",
|
|
18
|
-
"build": "tsc",
|
|
19
|
-
"dev": "nodemon --watch src --ext ts --exec \"npm run build && npm run bundle:esm\"",
|
|
20
|
-
"test": "vitest --run --config ./vitest.config.ts --no-cache",
|
|
21
|
-
"coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
|
|
22
|
-
"bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
|
|
23
|
-
"bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
|
|
24
|
-
"bundle": "npm run bundle:esm && npm run bundle:cjs",
|
|
25
|
-
"docs:clean": "rimraf docs/reference",
|
|
26
|
-
"docs:generate": "typedoc",
|
|
27
|
-
"docs": "npm run docs:clean && npm run docs:generate",
|
|
28
|
-
"dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs",
|
|
29
|
-
"dist:no-test": "npm run clean && npm run build && npm run bundle && npm run docs",
|
|
30
|
-
"prepare": "ts-patch install -s"
|
|
31
|
-
},
|
|
32
16
|
"dependencies": {
|
|
33
|
-
"@twin.org/api-core": "
|
|
34
|
-
"@twin.org/api-models": "
|
|
35
|
-
"@twin.org/auditable-item-graph-models": "
|
|
36
|
-
"@twin.org/core": "
|
|
37
|
-
"@twin.org/data-json-ld": "
|
|
38
|
-
"@twin.org/entity": "
|
|
39
|
-
"@twin.org/immutable-proof-models": "
|
|
40
|
-
"@twin.org/nameof": "
|
|
41
|
-
"@twin.org/web": "
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@twin.org/nameof-transformer": "^0.0.1",
|
|
45
|
-
"@twin.org/nameof-vitest-plugin": "^0.0.1",
|
|
46
|
-
"@vitest/coverage-v8": "3.2.3",
|
|
47
|
-
"copyfiles": "2.4.1",
|
|
48
|
-
"nodemon": "3.1.10",
|
|
49
|
-
"rimraf": "6.0.1",
|
|
50
|
-
"rollup": "4.43.0",
|
|
51
|
-
"ts-patch": "3.3.0",
|
|
52
|
-
"typedoc": "0.28.5",
|
|
53
|
-
"typedoc-plugin-markdown": "4.6.4",
|
|
54
|
-
"typescript": "5.8.3",
|
|
55
|
-
"vitest": "3.2.3"
|
|
17
|
+
"@twin.org/api-core": "next",
|
|
18
|
+
"@twin.org/api-models": "next",
|
|
19
|
+
"@twin.org/auditable-item-graph-models": "0.0.2-next.2",
|
|
20
|
+
"@twin.org/core": "next",
|
|
21
|
+
"@twin.org/data-json-ld": "next",
|
|
22
|
+
"@twin.org/entity": "next",
|
|
23
|
+
"@twin.org/immutable-proof-models": "next",
|
|
24
|
+
"@twin.org/nameof": "next",
|
|
25
|
+
"@twin.org/web": "next"
|
|
56
26
|
},
|
|
57
27
|
"main": "./dist/cjs/index.cjs",
|
|
58
28
|
"module": "./dist/esm/index.mjs",
|