@twin.org/immutable-proof-service 0.0.1-next.17 → 0.0.1-next.19
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
|
@@ -51,31 +51,31 @@ exports.ImmutableProof = class ImmutableProof {
|
|
|
51
51
|
__decorate([
|
|
52
52
|
entity.property({ type: "string", isPrimary: true }),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
|
-
], exports.ImmutableProof.prototype, "id",
|
|
54
|
+
], exports.ImmutableProof.prototype, "id", void 0);
|
|
55
55
|
__decorate([
|
|
56
56
|
entity.property({ type: "string" }),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
|
-
], exports.ImmutableProof.prototype, "nodeIdentity",
|
|
58
|
+
], exports.ImmutableProof.prototype, "nodeIdentity", void 0);
|
|
59
59
|
__decorate([
|
|
60
60
|
entity.property({ type: "string" }),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
|
-
], exports.ImmutableProof.prototype, "userIdentity",
|
|
62
|
+
], exports.ImmutableProof.prototype, "userIdentity", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
entity.property({ type: "string", format: "date-time", sortDirection: entity.SortDirection.Descending }),
|
|
65
65
|
__metadata("design:type", String)
|
|
66
|
-
], exports.ImmutableProof.prototype, "dateCreated",
|
|
66
|
+
], exports.ImmutableProof.prototype, "dateCreated", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
entity.property({ type: "string" }),
|
|
69
69
|
__metadata("design:type", String)
|
|
70
|
-
], exports.ImmutableProof.prototype, "proofObjectId",
|
|
70
|
+
], exports.ImmutableProof.prototype, "proofObjectId", void 0);
|
|
71
71
|
__decorate([
|
|
72
72
|
entity.property({ type: "string" }),
|
|
73
73
|
__metadata("design:type", String)
|
|
74
|
-
], exports.ImmutableProof.prototype, "proofObjectHash",
|
|
74
|
+
], exports.ImmutableProof.prototype, "proofObjectHash", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
entity.property({ type: "string" }),
|
|
77
77
|
__metadata("design:type", String)
|
|
78
|
-
], exports.ImmutableProof.prototype, "immutableStorageId",
|
|
78
|
+
], exports.ImmutableProof.prototype, "immutableStorageId", void 0);
|
|
79
79
|
exports.ImmutableProof = __decorate([
|
|
80
80
|
entity.entity()
|
|
81
81
|
], exports.ImmutableProof);
|
|
@@ -115,7 +115,7 @@ function generateRestRoutesImmutableProof(baseRouteName, componentName) {
|
|
|
115
115
|
request: {
|
|
116
116
|
body: {
|
|
117
117
|
proofObject: {
|
|
118
|
-
"@context": "
|
|
118
|
+
"@context": "https://schema.org",
|
|
119
119
|
type: "Person",
|
|
120
120
|
name: "John Smith"
|
|
121
121
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -49,31 +49,31 @@ let ImmutableProof = class ImmutableProof {
|
|
|
49
49
|
__decorate([
|
|
50
50
|
property({ type: "string", isPrimary: true }),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
|
-
], ImmutableProof.prototype, "id",
|
|
52
|
+
], ImmutableProof.prototype, "id", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
property({ type: "string" }),
|
|
55
55
|
__metadata("design:type", String)
|
|
56
|
-
], ImmutableProof.prototype, "nodeIdentity",
|
|
56
|
+
], ImmutableProof.prototype, "nodeIdentity", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
property({ type: "string" }),
|
|
59
59
|
__metadata("design:type", String)
|
|
60
|
-
], ImmutableProof.prototype, "userIdentity",
|
|
60
|
+
], ImmutableProof.prototype, "userIdentity", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
property({ type: "string", format: "date-time", sortDirection: SortDirection.Descending }),
|
|
63
63
|
__metadata("design:type", String)
|
|
64
|
-
], ImmutableProof.prototype, "dateCreated",
|
|
64
|
+
], ImmutableProof.prototype, "dateCreated", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
property({ type: "string" }),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
|
-
], ImmutableProof.prototype, "proofObjectId",
|
|
68
|
+
], ImmutableProof.prototype, "proofObjectId", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
property({ type: "string" }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
|
-
], ImmutableProof.prototype, "proofObjectHash",
|
|
72
|
+
], ImmutableProof.prototype, "proofObjectHash", void 0);
|
|
73
73
|
__decorate([
|
|
74
74
|
property({ type: "string" }),
|
|
75
75
|
__metadata("design:type", String)
|
|
76
|
-
], ImmutableProof.prototype, "immutableStorageId",
|
|
76
|
+
], ImmutableProof.prototype, "immutableStorageId", void 0);
|
|
77
77
|
ImmutableProof = __decorate([
|
|
78
78
|
entity()
|
|
79
79
|
], ImmutableProof);
|
|
@@ -113,7 +113,7 @@ function generateRestRoutesImmutableProof(baseRouteName, componentName) {
|
|
|
113
113
|
request: {
|
|
114
114
|
body: {
|
|
115
115
|
proofObject: {
|
|
116
|
-
"@context": "
|
|
116
|
+
"@context": "https://schema.org",
|
|
117
117
|
type: "Person",
|
|
118
118
|
name: "John Smith"
|
|
119
119
|
}
|
package/docs/changelog.md
CHANGED
package/docs/open-api/spec.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"immutableProofCreateRequestExample": {
|
|
46
46
|
"value": {
|
|
47
47
|
"proofObject": {
|
|
48
|
-
"@context": "
|
|
48
|
+
"@context": "https://schema.org",
|
|
49
49
|
"type": "Person",
|
|
50
50
|
"name": "John Smith"
|
|
51
51
|
}
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
}
|
|
509
509
|
],
|
|
510
510
|
"additionalItems": {
|
|
511
|
-
"
|
|
511
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
],
|
|
@@ -516,7 +516,6 @@
|
|
|
516
516
|
},
|
|
517
517
|
"type": {
|
|
518
518
|
"type": "string",
|
|
519
|
-
"const": "DataIntegrityProof",
|
|
520
519
|
"description": "JSON-LD Type."
|
|
521
520
|
},
|
|
522
521
|
"cryptosuite": {
|
|
@@ -592,7 +591,6 @@
|
|
|
592
591
|
}
|
|
593
592
|
},
|
|
594
593
|
"required": [
|
|
595
|
-
"@context",
|
|
596
594
|
"type",
|
|
597
595
|
"cryptosuite",
|
|
598
596
|
"proofPurpose",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Function: generateRestRoutesImmutableProof()
|
|
2
2
|
|
|
3
|
-
> **generateRestRoutesImmutableProof**(`baseRouteName`, `componentName`): `IRestRoute`[]
|
|
3
|
+
> **generateRestRoutesImmutableProof**(`baseRouteName`, `componentName`): `IRestRoute`\<`any`, `any`\>[]
|
|
4
4
|
|
|
5
5
|
The REST routes for immutable proof.
|
|
6
6
|
|
|
@@ -20,6 +20,6 @@ The name of the component to use in the routes stored in the ComponentFactory.
|
|
|
20
20
|
|
|
21
21
|
## Returns
|
|
22
22
|
|
|
23
|
-
`IRestRoute`[]
|
|
23
|
+
`IRestRoute`\<`any`, `any`\>[]
|
|
24
24
|
|
|
25
25
|
The generated routes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/immutable-proof-service",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.19",
|
|
4
4
|
"description": "Immutable proof contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,13 +19,12 @@
|
|
|
19
19
|
"@twin.org/core": "next",
|
|
20
20
|
"@twin.org/crypto": "next",
|
|
21
21
|
"@twin.org/data-json-ld": "next",
|
|
22
|
-
"@twin.org/data-schema-org": "next",
|
|
23
22
|
"@twin.org/entity": "next",
|
|
24
23
|
"@twin.org/entity-storage-models": "next",
|
|
25
24
|
"@twin.org/event-bus-models": "next",
|
|
26
25
|
"@twin.org/identity-models": "next",
|
|
27
|
-
"@twin.org/immutable-proof-models": "0.0.1-next.
|
|
28
|
-
"@twin.org/immutable-proof-task": "0.0.1-next.
|
|
26
|
+
"@twin.org/immutable-proof-models": "0.0.1-next.19",
|
|
27
|
+
"@twin.org/immutable-proof-task": "0.0.1-next.19",
|
|
29
28
|
"@twin.org/immutable-storage-models": "next",
|
|
30
29
|
"@twin.org/nameof": "next",
|
|
31
30
|
"@twin.org/standards-w3c-did": "next",
|