@twin.org/immutable-proof-service 0.0.1-next.16 → 0.0.1-next.18
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);
|
|
@@ -233,8 +233,8 @@ function generateRestRoutesImmutableProof(baseRouteName, componentName) {
|
|
|
233
233
|
operationId: "immutableProofVerify",
|
|
234
234
|
summary: "Verify a proof",
|
|
235
235
|
tag: tagsImmutableProof[0].name,
|
|
236
|
-
method: "
|
|
237
|
-
path: `${baseRouteName}/:id`,
|
|
236
|
+
method: "GET",
|
|
237
|
+
path: `${baseRouteName}/:id/verify`,
|
|
238
238
|
handler: async (httpRequestContext, request) => immutableProofVerify(httpRequestContext, componentName, request),
|
|
239
239
|
requestType: {
|
|
240
240
|
type: "IImmutableProofVerifyRequest",
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { property, SortDirection, entity, EntitySchemaFactory, EntitySchemaHelper } from '@twin.org/entity';
|
|
2
2
|
import { Guards, ComponentFactory, StringHelper, Is, Validation, Converter, RandomHelper, ObjectHelper, Urn, GeneralError, NotFoundError, JsonHelper } from '@twin.org/core';
|
|
3
3
|
import { ImmutableProofTypes, ImmutableProofFailure, ImmutableProofTopics } from '@twin.org/immutable-proof-models';
|
|
4
|
-
import {
|
|
4
|
+
import { DidCryptoSuites, DidTypes, DidContexts } from '@twin.org/standards-w3c-did';
|
|
5
5
|
import { HttpStatusCode, HeaderTypes, MimeTypes } from '@twin.org/web';
|
|
6
6
|
import { BackgroundTaskConnectorFactory, TaskStatus } from '@twin.org/background-task-models';
|
|
7
7
|
import { Blake2b, Sha256 } from '@twin.org/crypto';
|
|
@@ -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);
|
|
@@ -231,8 +231,8 @@ function generateRestRoutesImmutableProof(baseRouteName, componentName) {
|
|
|
231
231
|
operationId: "immutableProofVerify",
|
|
232
232
|
summary: "Verify a proof",
|
|
233
233
|
tag: tagsImmutableProof[0].name,
|
|
234
|
-
method: "
|
|
235
|
-
path: `${baseRouteName}/:id`,
|
|
234
|
+
method: "GET",
|
|
235
|
+
path: `${baseRouteName}/:id/verify`,
|
|
236
236
|
handler: async (httpRequestContext, request) => immutableProofVerify(httpRequestContext, componentName, request),
|
|
237
237
|
requestType: {
|
|
238
238
|
type: "IImmutableProofVerifyRequest",
|
package/docs/changelog.md
CHANGED