@nmshd/content 2.0.0-beta.34 → 2.0.0-beta.36
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/attributes/AbstractAttributeValue.d.ts +1 -2
- package/dist/attributes/AbstractAttributeValue.js +0 -3
- package/dist/attributes/AbstractAttributeValue.js.map +1 -1
- package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +18 -17
- package/dist/attributes/types/address/DeliveryBoxAddress.js +3 -0
- package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -1
- package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +17 -17
- package/dist/attributes/types/address/PostOfficeBoxAddress.js +3 -0
- package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -1
- package/dist/attributes/types/address/StreetAddress.d.ts +20 -19
- package/dist/attributes/types/address/StreetAddress.js +3 -0
- package/dist/attributes/types/address/StreetAddress.js.map +1 -1
- package/dist/attributes/types/affiliation/Affiliation.d.ts +17 -17
- package/dist/attributes/types/affiliation/Affiliation.js +3 -0
- package/dist/attributes/types/affiliation/Affiliation.js.map +1 -1
- package/dist/attributes/types/birth/BirthDate.d.ts +14 -13
- package/dist/attributes/types/birth/BirthDate.js +3 -0
- package/dist/attributes/types/birth/BirthDate.js.map +1 -1
- package/dist/attributes/types/birth/BirthPlace.d.ts +17 -16
- package/dist/attributes/types/birth/BirthPlace.js +3 -0
- package/dist/attributes/types/birth/BirthPlace.js.map +1 -1
- package/dist/attributes/types/name/PersonName.d.ts +18 -17
- package/dist/attributes/types/name/PersonName.js +3 -0
- package/dist/attributes/types/name/PersonName.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/lib-web/nmshd.content.js +25 -7
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { AbstractComplexValue, AbstractComplexValueJSON, IAbstractComplexValue } from "../../AbstractComplexValue";
|
|
2
2
|
import { RenderHints, ValueHints } from "../../hints";
|
|
3
|
-
import { GivenName,
|
|
4
|
-
import { HonorificPrefix,
|
|
5
|
-
import { HonorificSuffix,
|
|
6
|
-
import { IMiddleName, MiddleName
|
|
7
|
-
import { ISurname, Surname
|
|
3
|
+
import { GivenName, IGivenName } from "./GivenName";
|
|
4
|
+
import { HonorificPrefix, IHonorificPrefix } from "./HonorificPrefix";
|
|
5
|
+
import { HonorificSuffix, IHonorificSuffix } from "./HonorificSuffix";
|
|
6
|
+
import { IMiddleName, MiddleName } from "./MiddleName";
|
|
7
|
+
import { ISurname, Surname } from "./Surname";
|
|
8
8
|
export interface PersonNameJSON extends AbstractComplexValueJSON {
|
|
9
9
|
"@type": "PersonName";
|
|
10
|
-
givenName:
|
|
11
|
-
middleName?:
|
|
12
|
-
surname:
|
|
13
|
-
honorificSuffix?:
|
|
14
|
-
honorificPrefix?:
|
|
10
|
+
givenName: string;
|
|
11
|
+
middleName?: string;
|
|
12
|
+
surname: string;
|
|
13
|
+
honorificSuffix?: string;
|
|
14
|
+
honorificPrefix?: string;
|
|
15
15
|
}
|
|
16
16
|
export interface IPersonName extends IAbstractComplexValue {
|
|
17
17
|
givenName: IGivenName | string;
|
|
@@ -1419,6 +1419,13 @@ export declare class PersonName extends AbstractComplexValue implements IPersonN
|
|
|
1419
1419
|
valueOf: (path: import("easy-tsnameof").PathKey[]) => () => string;
|
|
1420
1420
|
[Symbol.toStringTag]: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
1421
1421
|
}>;
|
|
1422
|
+
toJSON: import("easy-tsnameof").PathHandlers<{
|
|
1423
|
+
$path: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
1424
|
+
$rawPath: (path: import("easy-tsnameof").PathKey[]) => import("easy-tsnameof").PathKey[];
|
|
1425
|
+
toString: (path: import("easy-tsnameof").PathKey[]) => () => string;
|
|
1426
|
+
valueOf: (path: import("easy-tsnameof").PathKey[]) => () => string;
|
|
1427
|
+
[Symbol.toStringTag]: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
1428
|
+
}>;
|
|
1422
1429
|
readonly valueHints: {
|
|
1423
1430
|
editHelp: import("easy-tsnameof").PathHandlers<{
|
|
1424
1431
|
$path: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
@@ -1668,13 +1675,6 @@ export declare class PersonName extends AbstractComplexValue implements IPersonN
|
|
|
1668
1675
|
valueOf: (path: import("easy-tsnameof").PathKey[]) => () => string;
|
|
1669
1676
|
[Symbol.toStringTag]: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
1670
1677
|
}>;
|
|
1671
|
-
toJSON: import("easy-tsnameof").PathHandlers<{
|
|
1672
|
-
$path: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
1673
|
-
$rawPath: (path: import("easy-tsnameof").PathKey[]) => import("easy-tsnameof").PathKey[];
|
|
1674
|
-
toString: (path: import("easy-tsnameof").PathKey[]) => () => string;
|
|
1675
|
-
valueOf: (path: import("easy-tsnameof").PathKey[]) => () => string;
|
|
1676
|
-
[Symbol.toStringTag]: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
1677
|
-
}>;
|
|
1678
1678
|
} & import("easy-tsnameof").PathHandlers<{
|
|
1679
1679
|
$path: (path: import("easy-tsnameof").PathKey[]) => string;
|
|
1680
1680
|
$rawPath: (path: import("easy-tsnameof").PathKey[]) => import("easy-tsnameof").PathKey[];
|
|
@@ -1691,4 +1691,5 @@ export declare class PersonName extends AbstractComplexValue implements IPersonN
|
|
|
1691
1691
|
static get renderHints(): RenderHints;
|
|
1692
1692
|
static from(value: IPersonName | Omit<PersonNameJSON, "@type">): PersonName;
|
|
1693
1693
|
toString(): string;
|
|
1694
|
+
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): PersonNameJSON;
|
|
1694
1695
|
}
|
|
@@ -61,6 +61,9 @@ let PersonName = class PersonName extends AbstractComplexValue_1.AbstractComplex
|
|
|
61
61
|
names.push(this.honorificSuffix.value);
|
|
62
62
|
return names.join(" ");
|
|
63
63
|
}
|
|
64
|
+
toJSON(verbose, serializeAsString) {
|
|
65
|
+
return super.toJSON(verbose, serializeAsString);
|
|
66
|
+
}
|
|
64
67
|
};
|
|
65
68
|
PersonName.propertyNames = (0, easy_tsnameof_1.default)();
|
|
66
69
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersonName.js","sourceRoot":"","sources":["../../../../src/attributes/types/name/PersonName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,kEAAkC;AAClC,yEAAqE;AACrE,qEAAkH;AAClH,uCAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"PersonName.js","sourceRoot":"","sources":["../../../../src/attributes/types/name/PersonName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,kEAAkC;AAClC,yEAAqE;AACrE,qEAAkH;AAClH,uCAAqD;AACrD,2CAAmD;AACnD,uDAAqE;AACrE,uDAAqE;AACrE,6CAAsD;AACtD,uCAA6C;AAoBtC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,2CAAoB;IAuBzC,MAAM,KAAK,UAAU;QACxB,OAAO,kBAAU,CAAC,IAAI,CAAC;YACnB,aAAa,EAAE;gBACX,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,qBAAS,CAAC,UAAU;gBAC1D,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,uBAAU,CAAC,UAAU;gBAC5D,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,iBAAO,CAAC,UAAU;gBACtD,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,iCAAe,CAAC,UAAU;gBACtE,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,iCAAe,CAAC,UAAU;aACzE;SACJ,CAAC,CAAA;IACN,CAA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,CAAC;IAEe,MAAM,CAAC,OAA6B,EAAE,iBAAuC;QACzF,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAmB,CAAA;IACrE,CAAC;;AA9DsB,wBAAa,GAAG,IAAA,uBAAM,GAAqB,CAAA;AAElE;IAAC,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,+CAAsB,CAAC,cAAc,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;8BACO,qBAAS;6CAAA;AAE3B;IAAC,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,+CAAsB,CAAC,cAAc,EAAE,CAAC;IACrE,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACT,uBAAU;8CAAA;AAE9B;IAAC,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,+CAAsB,CAAC,cAAc,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;8BACK,iBAAO;2CAAA;AAEvB;IAAC,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,+CAAsB,CAAC,cAAc,EAAE,CAAC;IACrE,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACJ,iCAAe;mDAAA;AAExC;IAAC,IAAA,qBAAS,EAAC,EAAE,eAAe,EAAE,+CAAsB,CAAC,cAAc,EAAE,CAAC;IACrE,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACJ,iCAAe;mDAAA;AArB/B,UAAU;IADtB,IAAA,gBAAI,EAAC,YAAY,CAAC;GACN,UAAU,CAgEtB;AAhEY,gCAAU"}
|
package/dist/buildInformation.js
CHANGED
|
@@ -5,10 +5,10 @@ const ts_serval_1 = require("@js-soft/ts-serval");
|
|
|
5
5
|
const crypto_1 = require("@nmshd/crypto");
|
|
6
6
|
const transport_1 = require("@nmshd/transport");
|
|
7
7
|
exports.buildInformation = {
|
|
8
|
-
version: "2.0.0-beta.
|
|
9
|
-
build: "
|
|
10
|
-
date: "2022-09-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-beta.36",
|
|
9
|
+
build: "113",
|
|
10
|
+
date: "2022-09-29T10:06:06+00:00",
|
|
11
|
+
commit: "204f8d66de8778941f4c47fd70abd5c185deb24e",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
package/lib-web/nmshd.content.js
CHANGED
|
@@ -108,9 +108,6 @@ class AbstractAttributeValue extends ts_serval_1.Serializable {
|
|
|
108
108
|
static valueGenerator(v) {
|
|
109
109
|
return v.value;
|
|
110
110
|
}
|
|
111
|
-
static valueArrayGenerator(v) {
|
|
112
|
-
return v.map((v) => v.value);
|
|
113
|
-
}
|
|
114
111
|
get valueHints() {
|
|
115
112
|
return this.constructor.valueHints;
|
|
116
113
|
}
|
|
@@ -2568,6 +2565,9 @@ let DeliveryBoxAddress = class DeliveryBoxAddress extends AbstractAddress_1.Abst
|
|
|
2568
2565
|
value.push(countryName ? countryName : this.country.toString());
|
|
2569
2566
|
return value.join("\n");
|
|
2570
2567
|
}
|
|
2568
|
+
toJSON(verbose, serializeAsString) {
|
|
2569
|
+
return super.toJSON(verbose, serializeAsString);
|
|
2570
|
+
}
|
|
2571
2571
|
};
|
|
2572
2572
|
DeliveryBoxAddress.propertyNames = (0, easy_tsnameof_1.default)();
|
|
2573
2573
|
__decorate([
|
|
@@ -2718,6 +2718,9 @@ let PostOfficeBoxAddress = class PostOfficeBoxAddress extends AbstractAddress_1.
|
|
|
2718
2718
|
value.push(countryName ? countryName : this.country.toString());
|
|
2719
2719
|
return value.join("\n");
|
|
2720
2720
|
}
|
|
2721
|
+
toJSON(verbose, serializeAsString) {
|
|
2722
|
+
return super.toJSON(verbose, serializeAsString);
|
|
2723
|
+
}
|
|
2721
2724
|
};
|
|
2722
2725
|
PostOfficeBoxAddress.propertyNames = (0, easy_tsnameof_1.default)();
|
|
2723
2726
|
__decorate([
|
|
@@ -2885,6 +2888,9 @@ let StreetAddress = class StreetAddress extends AbstractAddress_1.AbstractAddres
|
|
|
2885
2888
|
value.push(countryName ? countryName : this.country.toString());
|
|
2886
2889
|
return value.join("\n");
|
|
2887
2890
|
}
|
|
2891
|
+
toJSON(verbose, serializeAsString) {
|
|
2892
|
+
return super.toJSON(verbose, serializeAsString);
|
|
2893
|
+
}
|
|
2888
2894
|
};
|
|
2889
2895
|
StreetAddress.propertyNames = (0, easy_tsnameof_1.nameOf)();
|
|
2890
2896
|
__decorate([
|
|
@@ -3055,6 +3061,9 @@ let Affiliation = class Affiliation extends AbstractComplexValue_1.AbstractCompl
|
|
|
3055
3061
|
}
|
|
3056
3062
|
return value.join(", ");
|
|
3057
3063
|
}
|
|
3064
|
+
toJSON(verbose, serializeAsString) {
|
|
3065
|
+
return super.toJSON(verbose, serializeAsString);
|
|
3066
|
+
}
|
|
3058
3067
|
};
|
|
3059
3068
|
Affiliation.propertyNames = (0, easy_tsnameof_1.default)();
|
|
3060
3069
|
__decorate([
|
|
@@ -3334,6 +3343,9 @@ let BirthDate = class BirthDate extends AbstractComplexValue_1.AbstractComplexVa
|
|
|
3334
3343
|
year: this.year.value
|
|
3335
3344
|
}).toFormat("yyyy-MM-dd");
|
|
3336
3345
|
}
|
|
3346
|
+
toJSON(verbose, serializeAsString) {
|
|
3347
|
+
return super.toJSON(verbose, serializeAsString);
|
|
3348
|
+
}
|
|
3337
3349
|
};
|
|
3338
3350
|
BirthDate.propertyNames = (0, easy_tsnameof_1.default)();
|
|
3339
3351
|
__decorate([
|
|
@@ -3489,6 +3501,9 @@ let BirthPlace = class BirthPlace extends AbstractComplexValue_1.AbstractComplex
|
|
|
3489
3501
|
value.push(this.country.toString());
|
|
3490
3502
|
return value.join(", ");
|
|
3491
3503
|
}
|
|
3504
|
+
toJSON(verbose, serializeAsString) {
|
|
3505
|
+
return super.toJSON(verbose, serializeAsString);
|
|
3506
|
+
}
|
|
3492
3507
|
};
|
|
3493
3508
|
BirthPlace.propertyNames = (0, easy_tsnameof_1.default)();
|
|
3494
3509
|
__decorate([
|
|
@@ -4590,6 +4605,9 @@ let PersonName = class PersonName extends AbstractComplexValue_1.AbstractComplex
|
|
|
4590
4605
|
names.push(this.honorificSuffix.value);
|
|
4591
4606
|
return names.join(" ");
|
|
4592
4607
|
}
|
|
4608
|
+
toJSON(verbose, serializeAsString) {
|
|
4609
|
+
return super.toJSON(verbose, serializeAsString);
|
|
4610
|
+
}
|
|
4593
4611
|
};
|
|
4594
4612
|
PersonName.propertyNames = (0, easy_tsnameof_1.default)();
|
|
4595
4613
|
__decorate([
|
|
@@ -5864,10 +5882,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
5864
5882
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
5865
5883
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
5866
5884
|
exports.buildInformation = {
|
|
5867
|
-
version: "2.0.0-beta.
|
|
5868
|
-
build: "
|
|
5869
|
-
date: "2022-09-
|
|
5870
|
-
commit: "
|
|
5885
|
+
version: "2.0.0-beta.36",
|
|
5886
|
+
build: "113",
|
|
5887
|
+
date: "2022-09-29T10:06:06+00:00",
|
|
5888
|
+
commit: "204f8d66de8778941f4c47fd70abd5c185deb24e",
|
|
5871
5889
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
5872
5890
|
libraries: {
|
|
5873
5891
|
serval: ts_serval_1.buildInformation,
|