@twin.org/attestation-connector-open-attestation 0.0.2-next.2 → 0.0.2-next.4
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
|
@@ -13,7 +13,7 @@ class OpenAttestationConnector {
|
|
|
13
13
|
/**
|
|
14
14
|
* Runtime name for the class.
|
|
15
15
|
*/
|
|
16
|
-
CLASS_NAME = "OpenAttestationConnector";
|
|
16
|
+
static CLASS_NAME = "OpenAttestationConnector";
|
|
17
17
|
/**
|
|
18
18
|
* Create a new instance of OpenAttestationConnector.
|
|
19
19
|
* @param options The options for the attestation connector.
|
|
@@ -28,7 +28,7 @@ class OpenAttestationConnector {
|
|
|
28
28
|
* @returns The id.
|
|
29
29
|
*/
|
|
30
30
|
async create(controller, verificationMethodId, attestationObject) {
|
|
31
|
-
throw new core.NotImplementedError(
|
|
31
|
+
throw new core.NotImplementedError(OpenAttestationConnector.CLASS_NAME, "attest");
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Resolve and verify the attestation id.
|
|
@@ -36,7 +36,7 @@ class OpenAttestationConnector {
|
|
|
36
36
|
* @returns The verified attestation details.
|
|
37
37
|
*/
|
|
38
38
|
async get(id) {
|
|
39
|
-
throw new core.NotImplementedError(
|
|
39
|
+
throw new core.NotImplementedError(OpenAttestationConnector.CLASS_NAME, "verify");
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Transfer the attestation to a new holder.
|
|
@@ -47,7 +47,7 @@ class OpenAttestationConnector {
|
|
|
47
47
|
* @returns Nothing.
|
|
48
48
|
*/
|
|
49
49
|
async transfer(controller, attestationId, holderIdentity, holderAddress) {
|
|
50
|
-
throw new core.NotImplementedError(
|
|
50
|
+
throw new core.NotImplementedError(OpenAttestationConnector.CLASS_NAME, "transfer");
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Destroy the attestation.
|
|
@@ -56,7 +56,7 @@ class OpenAttestationConnector {
|
|
|
56
56
|
* @returns Nothing.
|
|
57
57
|
*/
|
|
58
58
|
async destroy(controller, attestationId) {
|
|
59
|
-
throw new core.NotImplementedError(
|
|
59
|
+
throw new core.NotImplementedError(OpenAttestationConnector.CLASS_NAME, "destroy");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
package/dist/esm/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ class OpenAttestationConnector {
|
|
|
11
11
|
/**
|
|
12
12
|
* Runtime name for the class.
|
|
13
13
|
*/
|
|
14
|
-
CLASS_NAME = "OpenAttestationConnector";
|
|
14
|
+
static CLASS_NAME = "OpenAttestationConnector";
|
|
15
15
|
/**
|
|
16
16
|
* Create a new instance of OpenAttestationConnector.
|
|
17
17
|
* @param options The options for the attestation connector.
|
|
@@ -26,7 +26,7 @@ class OpenAttestationConnector {
|
|
|
26
26
|
* @returns The id.
|
|
27
27
|
*/
|
|
28
28
|
async create(controller, verificationMethodId, attestationObject) {
|
|
29
|
-
throw new NotImplementedError(
|
|
29
|
+
throw new NotImplementedError(OpenAttestationConnector.CLASS_NAME, "attest");
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Resolve and verify the attestation id.
|
|
@@ -34,7 +34,7 @@ class OpenAttestationConnector {
|
|
|
34
34
|
* @returns The verified attestation details.
|
|
35
35
|
*/
|
|
36
36
|
async get(id) {
|
|
37
|
-
throw new NotImplementedError(
|
|
37
|
+
throw new NotImplementedError(OpenAttestationConnector.CLASS_NAME, "verify");
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Transfer the attestation to a new holder.
|
|
@@ -45,7 +45,7 @@ class OpenAttestationConnector {
|
|
|
45
45
|
* @returns Nothing.
|
|
46
46
|
*/
|
|
47
47
|
async transfer(controller, attestationId, holderIdentity, holderAddress) {
|
|
48
|
-
throw new NotImplementedError(
|
|
48
|
+
throw new NotImplementedError(OpenAttestationConnector.CLASS_NAME, "transfer");
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Destroy the attestation.
|
|
@@ -54,7 +54,7 @@ class OpenAttestationConnector {
|
|
|
54
54
|
* @returns Nothing.
|
|
55
55
|
*/
|
|
56
56
|
async destroy(controller, attestationId) {
|
|
57
|
-
throw new NotImplementedError(
|
|
57
|
+
throw new NotImplementedError(OpenAttestationConnector.CLASS_NAME, "destroy");
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -12,7 +12,7 @@ export declare class OpenAttestationConnector implements IAttestationConnector {
|
|
|
12
12
|
/**
|
|
13
13
|
* Runtime name for the class.
|
|
14
14
|
*/
|
|
15
|
-
readonly CLASS_NAME: string;
|
|
15
|
+
static readonly CLASS_NAME: string;
|
|
16
16
|
/**
|
|
17
17
|
* Create a new instance of OpenAttestationConnector.
|
|
18
18
|
* @param options The options for the attestation connector.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @twin.org/attestation-connector-open-attestation - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.4](https://github.com/twinfoundation/attestation/compare/attestation-connector-open-attestation-v0.0.2-next.3...attestation-connector-open-attestation-v0.0.2-next.4) (2025-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add validate-locales ([a1f9e13](https://github.com/twinfoundation/attestation/commit/a1f9e13875a661f612ce16dd9896e7df20c6a7ff))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/attestation-models bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
16
|
+
|
|
17
|
+
## [0.0.2-next.3](https://github.com/twinfoundation/attestation/compare/attestation-connector-open-attestation-v0.0.2-next.2...attestation-connector-open-attestation-v0.0.2-next.3) (2025-09-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **attestation-connector-open-attestation:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Dependencies
|
|
26
|
+
|
|
27
|
+
* The following workspace dependencies were updated
|
|
28
|
+
* dependencies
|
|
29
|
+
* @twin.org/attestation-models bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
30
|
+
|
|
3
31
|
## [0.0.2-next.2](https://github.com/twinfoundation/attestation/compare/attestation-connector-open-attestation-v0.0.2-next.1...attestation-connector-open-attestation-v0.0.2-next.2) (2025-08-29)
|
|
4
32
|
|
|
5
33
|
|
|
@@ -38,14 +38,10 @@ The namespace for the entities.
|
|
|
38
38
|
|
|
39
39
|
### CLASS\_NAME
|
|
40
40
|
|
|
41
|
-
> `readonly` **CLASS\_NAME**: `string`
|
|
41
|
+
> `readonly` `static` **CLASS\_NAME**: `string`
|
|
42
42
|
|
|
43
43
|
Runtime name for the class.
|
|
44
44
|
|
|
45
|
-
#### Implementation of
|
|
46
|
-
|
|
47
|
-
`IAttestationConnector.CLASS_NAME`
|
|
48
|
-
|
|
49
45
|
## Methods
|
|
50
46
|
|
|
51
47
|
### create()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/attestation-connector-open-attestation",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.4",
|
|
4
4
|
"description": "Attestation connector implementation using OpenAttestation",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@govtechsg/open-attestation": "6.9.7",
|
|
18
|
-
"@twin.org/attestation-models": "0.0.2-next.
|
|
18
|
+
"@twin.org/attestation-models": "0.0.2-next.4",
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/data-json-ld": "next",
|
|
21
21
|
"@twin.org/entity": "next",
|
|
@@ -39,5 +39,23 @@
|
|
|
39
39
|
"dist/types",
|
|
40
40
|
"locales",
|
|
41
41
|
"docs"
|
|
42
|
-
]
|
|
42
|
+
],
|
|
43
|
+
"keywords": [
|
|
44
|
+
"twin",
|
|
45
|
+
"trade",
|
|
46
|
+
"iota",
|
|
47
|
+
"framework",
|
|
48
|
+
"blockchain",
|
|
49
|
+
"attestation",
|
|
50
|
+
"verification",
|
|
51
|
+
"claims",
|
|
52
|
+
"trust",
|
|
53
|
+
"connector",
|
|
54
|
+
"adapter",
|
|
55
|
+
"integration"
|
|
56
|
+
],
|
|
57
|
+
"bugs": {
|
|
58
|
+
"url": "git+https://github.com/twinfoundation/attestation/issues"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://twindev.org"
|
|
43
61
|
}
|