@twin.org/auditable-item-stream-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.
@@ -296,14 +296,12 @@ class AuditableItemStreamClient extends apiCore.BaseRestClient {
296
296
  return response.body;
297
297
  }
298
298
  /**
299
- * Remove the verifiable storage for the stream and entries.
299
+ * Remove the verifiable storage for the stream and entries, not supported on client.
300
300
  * @param id The id of the stream to remove the storage from.
301
- * @param nodeIdentity The node identity to use for vault operations.
302
301
  * @returns Nothing.
303
302
  * @throws NotFoundError if the vertex is not found.
304
- * @internal
305
303
  */
306
- async removeVerifiable(id, nodeIdentity) {
304
+ async removeVerifiable(id) {
307
305
  throw new core.NotSupportedError(this.CLASS_NAME, "removeVerifiable");
308
306
  }
309
307
  }
@@ -294,14 +294,12 @@ class AuditableItemStreamClient extends BaseRestClient {
294
294
  return response.body;
295
295
  }
296
296
  /**
297
- * Remove the verifiable storage for the stream and entries.
297
+ * Remove the verifiable storage for the stream and entries, not supported on client.
298
298
  * @param id The id of the stream to remove the storage from.
299
- * @param nodeIdentity The node identity to use for vault operations.
300
299
  * @returns Nothing.
301
300
  * @throws NotFoundError if the vertex is not found.
302
- * @internal
303
301
  */
304
- async removeVerifiable(id, nodeIdentity) {
302
+ async removeVerifiable(id) {
305
303
  throw new NotSupportedError(this.CLASS_NAME, "removeVerifiable");
306
304
  }
307
305
  }
@@ -161,4 +161,11 @@ export declare class AuditableItemStreamClient extends BaseRestClient implements
161
161
  cursor?: string;
162
162
  order?: SortDirection;
163
163
  }): Promise<IAuditableItemStreamEntryObjectList>;
164
+ /**
165
+ * Remove the verifiable storage for the stream and entries, not supported on client.
166
+ * @param id The id of the stream to remove the storage from.
167
+ * @returns Nothing.
168
+ * @throws NotFoundError if the vertex is not found.
169
+ */
170
+ removeVerifiable(id: string): Promise<void>;
164
171
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @twin.org/auditable-item-stream-rest-client - Changelog
2
2
 
3
+ ## [0.0.2-next.2](https://github.com/twinfoundation/auditable-item-stream/compare/auditable-item-stream-rest-client-v0.0.2-next.1...auditable-item-stream-rest-client-v0.0.2-next.2) (2025-08-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * update framework core ([5621601](https://github.com/twinfoundation/auditable-item-stream/commit/562160167c5082b9dae1b0bf68482ce2af1e7dce))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/auditable-item-stream-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-stream/compare/auditable-item-stream-rest-client-v0.0.2-next.0...auditable-item-stream-rest-client-v0.0.2-next.1) (2025-07-21)
18
+
19
+
20
+ ### Features
21
+
22
+ * export remove verifiable on client ([554749b](https://github.com/twinfoundation/auditable-item-stream/commit/554749b8369896a69de6392881171023a70f5cf1))
23
+ * update dependencies ([9ff038b](https://github.com/twinfoundation/auditable-item-stream/commit/9ff038b7e76e9fb586be4f2321231f04258ef794))
24
+ * use shared store mechanism ([#7](https://github.com/twinfoundation/auditable-item-stream/issues/7)) ([2aca4b8](https://github.com/twinfoundation/auditable-item-stream/commit/2aca4b85b0102f91c90619f02b116541786cf539))
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * query params force coercion ([fcdd52c](https://github.com/twinfoundation/auditable-item-stream/commit/fcdd52cf8262a3bc19f6e7e9e6ef145890a9c8aa))
30
+
31
+
32
+ ### Dependencies
33
+
34
+ * The following workspace dependencies were updated
35
+ * dependencies
36
+ * @twin.org/auditable-item-stream-models bumped from 0.0.2-next.0 to 0.0.2-next.1
37
+
3
38
  ## 0.0.1 (2025-07-09)
4
39
 
5
40
 
@@ -586,3 +586,33 @@ NotFoundError if the stream is not found.
586
586
  #### Implementation of
587
587
 
588
588
  `IAuditableItemStreamComponent.getEntryObjects`
589
+
590
+ ***
591
+
592
+ ### removeVerifiable()
593
+
594
+ > **removeVerifiable**(`id`): `Promise`\<`void`\>
595
+
596
+ Remove the verifiable storage for the stream and entries, not supported on client.
597
+
598
+ #### Parameters
599
+
600
+ ##### id
601
+
602
+ `string`
603
+
604
+ The id of the stream to remove the storage from.
605
+
606
+ #### Returns
607
+
608
+ `Promise`\<`void`\>
609
+
610
+ Nothing.
611
+
612
+ #### Throws
613
+
614
+ NotFoundError if the vertex is not found.
615
+
616
+ #### Implementation of
617
+
618
+ `IAuditableItemStreamComponent.removeVerifiable`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/auditable-item-stream-rest-client",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-next.2",
4
4
  "description": "Auditable Item Stream contract implementation which can connect to REST endpoints",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,45 +13,15 @@
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": "^0.0.2-next.1",
34
- "@twin.org/api-models": "^0.0.2-next.1",
35
- "@twin.org/auditable-item-stream-models": "^0.0.1",
36
- "@twin.org/core": "^0.0.1",
37
- "@twin.org/data-json-ld": "^0.0.1",
38
- "@twin.org/entity": "^0.0.1",
39
- "@twin.org/nameof": "^0.0.1",
40
- "@twin.org/web": "^0.0.1"
41
- },
42
- "devDependencies": {
43
- "@twin.org/nameof-transformer": "^0.0.1",
44
- "@twin.org/nameof-vitest-plugin": "^0.0.1",
45
- "@vitest/coverage-v8": "3.2.3",
46
- "copyfiles": "2.4.1",
47
- "nodemon": "3.1.10",
48
- "rimraf": "6.0.1",
49
- "rollup": "4.43.0",
50
- "ts-patch": "3.3.0",
51
- "typedoc": "0.28.5",
52
- "typedoc-plugin-markdown": "4.6.4",
53
- "typescript": "5.8.3",
54
- "vitest": "3.2.3"
17
+ "@twin.org/api-core": "next",
18
+ "@twin.org/api-models": "next",
19
+ "@twin.org/auditable-item-stream-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/nameof": "next",
24
+ "@twin.org/web": "next"
55
25
  },
56
26
  "main": "./dist/cjs/index.cjs",
57
27
  "module": "./dist/esm/index.mjs",