@twin.org/nft-service 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.
@@ -309,8 +309,9 @@ async function nftUpdate(httpRequestContext, componentName, request) {
309
309
  class NftService {
310
310
  /**
311
311
  * The namespace supported by the nft service.
312
+ * @internal
312
313
  */
313
- static NAMESPACE = "nft";
314
+ static _NAMESPACE = "nft";
314
315
  /**
315
316
  * Runtime name for the class.
316
317
  */
@@ -435,9 +436,9 @@ class NftService {
435
436
  */
436
437
  getConnector(id) {
437
438
  const idUri = core.Urn.fromValidString(id);
438
- if (idUri.namespaceIdentifier() !== NftService.NAMESPACE) {
439
+ if (idUri.namespaceIdentifier() !== NftService._NAMESPACE) {
439
440
  throw new core.GeneralError(this.CLASS_NAME, "namespaceMismatch", {
440
- namespace: NftService.NAMESPACE,
441
+ namespace: NftService._NAMESPACE,
441
442
  id
442
443
  });
443
444
  }
@@ -307,8 +307,9 @@ async function nftUpdate(httpRequestContext, componentName, request) {
307
307
  class NftService {
308
308
  /**
309
309
  * The namespace supported by the nft service.
310
+ * @internal
310
311
  */
311
- static NAMESPACE = "nft";
312
+ static _NAMESPACE = "nft";
312
313
  /**
313
314
  * Runtime name for the class.
314
315
  */
@@ -433,9 +434,9 @@ class NftService {
433
434
  */
434
435
  getConnector(id) {
435
436
  const idUri = Urn.fromValidString(id);
436
- if (idUri.namespaceIdentifier() !== NftService.NAMESPACE) {
437
+ if (idUri.namespaceIdentifier() !== NftService._NAMESPACE) {
437
438
  throw new GeneralError(this.CLASS_NAME, "namespaceMismatch", {
438
- namespace: NftService.NAMESPACE,
439
+ namespace: NftService._NAMESPACE,
439
440
  id
440
441
  });
441
442
  }
@@ -4,10 +4,6 @@ import type { INftServiceConstructorOptions } from "./models/INftServiceConstruc
4
4
  * Service for performing NFT operations to a connector.
5
5
  */
6
6
  export declare class NftService implements INftComponent {
7
- /**
8
- * The namespace supported by the nft service.
9
- */
10
- static readonly NAMESPACE: string;
11
7
  /**
12
8
  * Runtime name for the class.
13
9
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @twin.org/nft-service - Changelog
2
2
 
3
+ ## [0.0.2-next.2](https://github.com/twinfoundation/nft/compare/nft-service-v0.0.2-next.1...nft-service-v0.0.2-next.2) (2025-07-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * move to json integration ([#31](https://github.com/twinfoundation/nft/issues/31)) ([89944ba](https://github.com/twinfoundation/nft/commit/89944ba05b955944f84419224c3ae63fef28cc23))
9
+ * remove unused namespace ([48d2a92](https://github.com/twinfoundation/nft/commit/48d2a926d610fad0b0407311e71a215d15a99aa5))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * The following workspace dependencies were updated
15
+ * dependencies
16
+ * @twin.org/nft-models bumped from 0.0.2-next.1 to 0.0.2-next.2
17
+ * devDependencies
18
+ * @twin.org/nft-connector-entity-storage bumped from 0.0.2-next.1 to 0.0.2-next.2
19
+
20
+ ## [0.0.2-next.1](https://github.com/twinfoundation/nft/compare/nft-service-v0.0.2-next.0...nft-service-v0.0.2-next.1) (2025-07-16)
21
+
22
+
23
+ ### Features
24
+
25
+ * iota rebased release ([bfdd233](https://github.com/twinfoundation/nft/commit/bfdd23330e168962f7ad0a6fcd2c9c9a38a11697))
26
+ * update dependencies ([8660f76](https://github.com/twinfoundation/nft/commit/8660f76ca324b0f476e45544cac6bee4b3146c3b))
27
+ * use shared store mechanism ([#16](https://github.com/twinfoundation/nft/issues/16)) ([897bc78](https://github.com/twinfoundation/nft/commit/897bc7805248ba1388b2dd03df24c33f1633f344))
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * params order modified ([#19](https://github.com/twinfoundation/nft/issues/19)) ([c2ceb30](https://github.com/twinfoundation/nft/commit/c2ceb3040c12286d4fac09d51db77465366ba89d))
33
+
34
+
35
+ ### Dependencies
36
+
37
+ * The following workspace dependencies were updated
38
+ * dependencies
39
+ * @twin.org/nft-models bumped from 0.0.2-next.0 to 0.0.2-next.1
40
+ * devDependencies
41
+ * @twin.org/nft-connector-entity-storage bumped from 0.0.2-next.0 to 0.0.2-next.1
42
+
3
43
  ## 0.0.1 (2025-07-09)
4
44
 
5
45
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "openapi": "3.1.0",
2
+ "openapi": "3.1.1",
3
3
  "info": {
4
4
  "title": "TWIN - Test Endpoints",
5
5
  "description": "REST API for TWIN - Test Endpoints.",
@@ -28,14 +28,6 @@ The options for the service.
28
28
 
29
29
  ## Properties
30
30
 
31
- ### NAMESPACE
32
-
33
- > `readonly` `static` **NAMESPACE**: `string` = `"nft"`
34
-
35
- The namespace supported by the nft service.
36
-
37
- ***
38
-
39
31
  ### CLASS\_NAME
40
32
 
41
33
  > `readonly` **CLASS\_NAME**: `string`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/nft-service",
3
- "version": "0.0.1",
3
+ "version": "0.0.2-next.2",
4
4
  "description": "NFT contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,12 +14,12 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-models": "^0.0.2-next.1",
18
- "@twin.org/core": "^0.0.1",
19
- "@twin.org/entity": "^0.0.1",
20
- "@twin.org/nameof": "^0.0.1",
21
- "@twin.org/nft-models": "^0.0.1",
22
- "@twin.org/web": "^0.0.1"
17
+ "@twin.org/api-models": "next",
18
+ "@twin.org/core": "next",
19
+ "@twin.org/entity": "next",
20
+ "@twin.org/nameof": "next",
21
+ "@twin.org/nft-models": "0.0.2-next.2",
22
+ "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/cjs/index.cjs",
25
25
  "module": "./dist/esm/index.mjs",