@nmshd/transport 1.1.2 → 1.1.3
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/buildInformation.js +4 -4
- package/dist/modules/accounts/data/Identity.d.ts +17 -0
- package/dist/modules/accounts/data/Identity.js +32 -1
- package/dist/modules/accounts/data/Identity.js.map +1 -1
- package/lib-web/nmshd.transport.js +36 -5
- package/lib-web/nmshd.transport.js.map +1 -1
- package/lib-web/nmshd.transport.min.js +1 -1
- package/lib-web/nmshd.transport.min.js.map +1 -1
- package/package.json +1 -1
package/dist/buildInformation.js
CHANGED
|
@@ -4,10 +4,10 @@ exports.buildInformation = void 0;
|
|
|
4
4
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
5
5
|
const crypto_1 = require("@nmshd/crypto");
|
|
6
6
|
exports.buildInformation = {
|
|
7
|
-
version: "1.1.
|
|
8
|
-
build: "
|
|
9
|
-
date: "2021-12-
|
|
10
|
-
commit: "
|
|
7
|
+
version: "1.1.3",
|
|
8
|
+
build: "15",
|
|
9
|
+
date: "2021-12-28T16:36:51+00:00",
|
|
10
|
+
commit: "d926ace865b9799f0fdc997dfeefe087f158fa26",
|
|
11
11
|
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/simple-logger":"1.0.0","@js-soft/ts-utils":"1.1.1","axios":"^0.24.0","deep-equal":"^2.0.5","fast-json-patch":"^3.1.0","form-data":"^4.0.0","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^2.2.0","qs":"^6.10.2","reflect-metadata":"^0.1.13","ts-simple-nameof":"^1.3.1","uuid":"^8.3.2"},
|
|
12
12
|
libraries: {
|
|
13
13
|
crypto: crypto_1.buildInformation,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CryptoSignaturePublicKey, ICryptoSignaturePublicKey } from "@nmshd/crypto";
|
|
2
2
|
import { CoreSerializableAsync, ICoreSerializableAsync } from "../../../core/CoreSerializableAsync";
|
|
3
3
|
import { CoreAddress } from "../../../core/types/CoreAddress";
|
|
4
|
+
import { CoreDate } from "../../../core/types/CoreDate";
|
|
4
5
|
export interface IIdentity extends ICoreSerializableAsync {
|
|
5
6
|
address: CoreAddress;
|
|
6
7
|
publicKey: ICryptoSignaturePublicKey;
|
|
@@ -15,5 +16,21 @@ export declare class Identity extends CoreSerializableAsync implements IIdentity
|
|
|
15
16
|
address: CoreAddress;
|
|
16
17
|
publicKey: CryptoSignaturePublicKey;
|
|
17
18
|
realm: Realm;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
26
|
+
description: string;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
30
|
+
createdAt: CoreDate;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
34
|
+
type: string;
|
|
18
35
|
static from(value: IIdentity): Promise<Identity>;
|
|
19
36
|
}
|
|
@@ -15,6 +15,7 @@ const ts_serval_1 = require("@js-soft/ts-serval");
|
|
|
15
15
|
const crypto_1 = require("@nmshd/crypto");
|
|
16
16
|
const CoreSerializableAsync_1 = require("../../../core/CoreSerializableAsync");
|
|
17
17
|
const CoreAddress_1 = require("../../../core/types/CoreAddress");
|
|
18
|
+
const CoreDate_1 = require("../../../core/types/CoreDate");
|
|
18
19
|
var Realm;
|
|
19
20
|
(function (Realm) {
|
|
20
21
|
Realm["Dev"] = "dev";
|
|
@@ -23,7 +24,13 @@ var Realm;
|
|
|
23
24
|
})(Realm = exports.Realm || (exports.Realm = {}));
|
|
24
25
|
let Identity = Identity_1 = class Identity extends CoreSerializableAsync_1.CoreSerializableAsync {
|
|
25
26
|
static async from(value) {
|
|
26
|
-
|
|
27
|
+
const identity = await super.fromT(value, Identity_1);
|
|
28
|
+
// TODO: Remove these default values once we're sure that nobody is accessing the deprecated properties anymore
|
|
29
|
+
identity.name = "";
|
|
30
|
+
identity.description = "";
|
|
31
|
+
identity.type = "unknown";
|
|
32
|
+
identity.createdAt = CoreDate_1.CoreDate.from("2020-01-01T00:00:00Z");
|
|
33
|
+
return identity;
|
|
27
34
|
}
|
|
28
35
|
};
|
|
29
36
|
__decorate([
|
|
@@ -41,6 +48,30 @@ __decorate([
|
|
|
41
48
|
(0, ts_serval_1.serialize)(),
|
|
42
49
|
__metadata("design:type", String)
|
|
43
50
|
], Identity.prototype, "realm", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
53
|
+
(0, ts_serval_1.serialize)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], Identity.prototype, "name", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
58
|
+
(0, ts_serval_1.serialize)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Identity.prototype, "description", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
63
|
+
(0, ts_serval_1.serialize)(),
|
|
64
|
+
__metadata("design:type", CoreDate_1.CoreDate
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated
|
|
67
|
+
*/
|
|
68
|
+
)
|
|
69
|
+
], Identity.prototype, "createdAt", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
72
|
+
(0, ts_serval_1.serialize)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], Identity.prototype, "type", void 0);
|
|
44
75
|
Identity = Identity_1 = __decorate([
|
|
45
76
|
(0, ts_serval_1.type)("Identity")
|
|
46
77
|
], Identity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Identity.js","sourceRoot":"","sources":["../../../../src/modules/accounts/data/Identity.ts"],"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,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;6CACc;AAO1B;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACM,mBAAQ;IAE1B;;OAEG;;2CAJuB;AAO1B;IAFC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;sCACO;AAvCV,QAAQ;IADpB,IAAA,gBAAI,EAAC,UAAU,CAAC;GACJ,QAAQ,CAmDpB;AAnDY,4BAAQ"}
|
|
@@ -15,10 +15,10 @@ exports.buildInformation = void 0;
|
|
|
15
15
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
16
16
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
17
17
|
exports.buildInformation = {
|
|
18
|
-
version: "1.1.
|
|
19
|
-
build: "
|
|
20
|
-
date: "2021-12-
|
|
21
|
-
commit: "
|
|
18
|
+
version: "1.1.3",
|
|
19
|
+
build: "15",
|
|
20
|
+
date: "2021-12-28T16:36:51+00:00",
|
|
21
|
+
commit: "d926ace865b9799f0fdc997dfeefe087f158fa26",
|
|
22
22
|
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/simple-logger":"1.0.0","@js-soft/ts-utils":"1.1.1","axios":"^0.24.0","deep-equal":"^2.0.5","fast-json-patch":"^3.1.0","form-data":"^4.0.0","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^2.2.0","qs":"^6.10.2","reflect-metadata":"^0.1.13","ts-simple-nameof":"^1.3.1","uuid":"^8.3.2"},
|
|
23
23
|
libraries: {
|
|
24
24
|
crypto: crypto_1.buildInformation,
|
|
@@ -3118,6 +3118,7 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
3118
3118
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
3119
3119
|
const CoreSerializableAsync_1 = __webpack_require__(/*! ../../../core/CoreSerializableAsync */ "./dist/core/CoreSerializableAsync.js");
|
|
3120
3120
|
const CoreAddress_1 = __webpack_require__(/*! ../../../core/types/CoreAddress */ "./dist/core/types/CoreAddress.js");
|
|
3121
|
+
const CoreDate_1 = __webpack_require__(/*! ../../../core/types/CoreDate */ "./dist/core/types/CoreDate.js");
|
|
3121
3122
|
var Realm;
|
|
3122
3123
|
(function (Realm) {
|
|
3123
3124
|
Realm["Dev"] = "dev";
|
|
@@ -3126,7 +3127,13 @@ var Realm;
|
|
|
3126
3127
|
})(Realm = exports.Realm || (exports.Realm = {}));
|
|
3127
3128
|
let Identity = Identity_1 = class Identity extends CoreSerializableAsync_1.CoreSerializableAsync {
|
|
3128
3129
|
static async from(value) {
|
|
3129
|
-
|
|
3130
|
+
const identity = await super.fromT(value, Identity_1);
|
|
3131
|
+
// TODO: Remove these default values once we're sure that nobody is accessing the deprecated properties anymore
|
|
3132
|
+
identity.name = "";
|
|
3133
|
+
identity.description = "";
|
|
3134
|
+
identity.type = "unknown";
|
|
3135
|
+
identity.createdAt = CoreDate_1.CoreDate.from("2020-01-01T00:00:00Z");
|
|
3136
|
+
return identity;
|
|
3130
3137
|
}
|
|
3131
3138
|
};
|
|
3132
3139
|
__decorate([
|
|
@@ -3144,6 +3151,30 @@ __decorate([
|
|
|
3144
3151
|
(0, ts_serval_1.serialize)(),
|
|
3145
3152
|
__metadata("design:type", String)
|
|
3146
3153
|
], Identity.prototype, "realm", void 0);
|
|
3154
|
+
__decorate([
|
|
3155
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
3156
|
+
(0, ts_serval_1.serialize)(),
|
|
3157
|
+
__metadata("design:type", String)
|
|
3158
|
+
], Identity.prototype, "name", void 0);
|
|
3159
|
+
__decorate([
|
|
3160
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
3161
|
+
(0, ts_serval_1.serialize)(),
|
|
3162
|
+
__metadata("design:type", String)
|
|
3163
|
+
], Identity.prototype, "description", void 0);
|
|
3164
|
+
__decorate([
|
|
3165
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
3166
|
+
(0, ts_serval_1.serialize)(),
|
|
3167
|
+
__metadata("design:type", CoreDate_1.CoreDate
|
|
3168
|
+
/**
|
|
3169
|
+
* @deprecated
|
|
3170
|
+
*/
|
|
3171
|
+
)
|
|
3172
|
+
], Identity.prototype, "createdAt", void 0);
|
|
3173
|
+
__decorate([
|
|
3174
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
3175
|
+
(0, ts_serval_1.serialize)(),
|
|
3176
|
+
__metadata("design:type", String)
|
|
3177
|
+
], Identity.prototype, "type", void 0);
|
|
3147
3178
|
Identity = Identity_1 = __decorate([
|
|
3148
3179
|
(0, ts_serval_1.type)("Identity")
|
|
3149
3180
|
], Identity);
|