@nmshd/content 2.0.0-alpha.4 → 2.0.0-alpha.7
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/ContentJSON.d.ts +2 -1
- package/dist/attributes/Attribute.d.ts +9 -11
- package/dist/attributes/Attribute.js +27 -14
- package/dist/attributes/Attribute.js.map +1 -1
- package/dist/attributes/AttributeV2.d.ts +25 -0
- package/dist/attributes/AttributeV2.js +51 -0
- package/dist/attributes/AttributeV2.js.map +1 -0
- package/dist/attributes/index.d.ts +1 -0
- package/dist/attributes/index.js +1 -0
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/types/AbstractDateString.d.ts +5 -0
- package/dist/attributes/types/AbstractDateString.js +29 -0
- package/dist/attributes/types/AbstractDateString.js.map +1 -0
- package/dist/attributes/types/AbstractDay.d.ts +2 -2
- package/dist/attributes/types/AbstractDay.js +5 -3
- package/dist/attributes/types/AbstractDay.js.map +1 -1
- package/dist/attributes/types/AbstractFloatValue.d.ts +4 -0
- package/dist/attributes/types/AbstractFloatValue.js +23 -0
- package/dist/attributes/types/AbstractFloatValue.js.map +1 -0
- package/dist/attributes/types/AbstractIntegerValue.d.ts +4 -0
- package/dist/attributes/types/AbstractIntegerValue.js +23 -0
- package/dist/attributes/types/AbstractIntegerValue.js.map +1 -0
- package/dist/attributes/types/AbstractMonth.d.ts +2 -2
- package/dist/attributes/types/AbstractMonth.js +7 -3
- package/dist/attributes/types/AbstractMonth.js.map +1 -1
- package/dist/attributes/types/AbstractStringValue.d.ts +4 -0
- package/dist/attributes/types/AbstractStringValue.js +23 -0
- package/dist/attributes/types/AbstractStringValue.js.map +1 -0
- package/dist/attributes/types/AbstractYear.d.ts +2 -3
- package/dist/attributes/types/AbstractYear.js +2 -17
- package/dist/attributes/types/AbstractYear.js.map +1 -1
- package/dist/attributes/types/address/City.d.ts +2 -3
- package/dist/attributes/types/address/City.js +2 -10
- package/dist/attributes/types/address/City.js.map +1 -1
- package/dist/attributes/types/address/Country.d.ts +2 -3
- package/dist/attributes/types/address/Country.js +2 -10
- package/dist/attributes/types/address/Country.js.map +1 -1
- package/dist/attributes/types/address/HouseNumber.d.ts +2 -3
- package/dist/attributes/types/address/HouseNumber.js +2 -10
- package/dist/attributes/types/address/HouseNumber.js.map +1 -1
- package/dist/attributes/types/address/State.d.ts +2 -3
- package/dist/attributes/types/address/State.js +2 -10
- package/dist/attributes/types/address/State.js.map +1 -1
- package/dist/attributes/types/address/Street.d.ts +2 -3
- package/dist/attributes/types/address/Street.js +2 -10
- package/dist/attributes/types/address/Street.js.map +1 -1
- package/dist/attributes/types/address/ZipCode.d.ts +2 -3
- package/dist/attributes/types/address/ZipCode.js +2 -10
- package/dist/attributes/types/address/ZipCode.js.map +1 -1
- package/dist/attributes/types/birth/BirthPlace.js +2 -2
- package/dist/attributes/types/birth/BirthPlace.js.map +1 -1
- package/dist/attributes/types/idcard/IDCardAuthorityName.d.ts +2 -3
- package/dist/attributes/types/idcard/IDCardAuthorityName.js +2 -10
- package/dist/attributes/types/idcard/IDCardAuthorityName.js.map +1 -1
- package/dist/attributes/types/idcard/IDCardDE.d.ts +2 -0
- package/dist/attributes/types/idcard/IDCardDE.js +6 -0
- package/dist/attributes/types/idcard/IDCardDE.js.map +1 -1
- package/dist/attributes/types/idcard/IDCardIssuingDate.d.ts +2 -3
- package/dist/attributes/types/idcard/IDCardIssuingDate.js +2 -10
- package/dist/attributes/types/idcard/IDCardIssuingDate.js.map +1 -1
- package/dist/attributes/types/name/BirthName.d.ts +2 -3
- package/dist/attributes/types/name/BirthName.js +2 -10
- package/dist/attributes/types/name/BirthName.js.map +1 -1
- package/dist/attributes/types/name/DisplayName.d.ts +2 -3
- package/dist/attributes/types/name/DisplayName.js +2 -10
- package/dist/attributes/types/name/DisplayName.js.map +1 -1
- package/dist/attributes/types/name/GivenName.d.ts +2 -3
- package/dist/attributes/types/name/GivenName.js +2 -10
- package/dist/attributes/types/name/GivenName.js.map +1 -1
- package/dist/attributes/types/name/Pseudonym.d.ts +2 -3
- package/dist/attributes/types/name/Pseudonym.js +2 -10
- package/dist/attributes/types/name/Pseudonym.js.map +1 -1
- package/dist/attributes/types/name/Surname.d.ts +2 -3
- package/dist/attributes/types/name/Surname.js +2 -10
- package/dist/attributes/types/name/Surname.js.map +1 -1
- package/dist/attributes/types/name/Title.d.ts +2 -3
- package/dist/attributes/types/name/Title.js +2 -10
- package/dist/attributes/types/name/Title.js.map +1 -1
- package/dist/attributes/types/person/Age.d.ts +2 -3
- package/dist/attributes/types/person/Age.js +2 -10
- package/dist/attributes/types/person/Age.js.map +1 -1
- package/dist/attributes/types/person/Gender.d.ts +2 -3
- package/dist/attributes/types/person/Gender.js +2 -10
- package/dist/attributes/types/person/Gender.js.map +1 -1
- package/dist/attributes/types/person/PersonEyeColor.d.ts +2 -3
- package/dist/attributes/types/person/PersonEyeColor.js +2 -10
- package/dist/attributes/types/person/PersonEyeColor.js.map +1 -1
- package/dist/attributes/types/person/Sex.d.ts +6 -1
- package/dist/attributes/types/person/Sex.js +10 -2
- package/dist/attributes/types/person/Sex.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/relationships/index.d.ts +4 -0
- package/dist/relationships/index.js +21 -0
- package/dist/relationships/index.js.map +1 -0
- package/dist/requests/response/RejectResponseItem.js +2 -2
- package/dist/requests/response/RejectResponseItem.js.map +1 -1
- package/dist/requests/response/Response.d.ts +7 -0
- package/dist/requests/response/Response.js +11 -1
- package/dist/requests/response/Response.js.map +1 -1
- package/lib-web/nmshd.content.js +9001 -209
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +8 -8
- package/dist/relationships/RelationshipCreationChangeResponseBody.d.ts +0 -0
- package/dist/relationships/RelationshipCreationChangeResponseBody.js +0 -2
- package/dist/relationships/RelationshipCreationChangeResponseBody.js.map +0 -1
package/dist/ContentJSON.d.ts
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { CoreDate, CoreSerializable, ICoreDate, ICoreSerializable } from "@nmshd/transport";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
|
-
import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "./AbstractAttributeValue";
|
|
4
3
|
export interface AttributeJSON extends ContentJSON {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
tags?: string[];
|
|
4
|
+
name: string;
|
|
5
|
+
value: any;
|
|
8
6
|
validFrom?: string;
|
|
9
7
|
validTo?: string;
|
|
10
8
|
}
|
|
11
9
|
export interface IAttribute extends ICoreSerializable {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
tags?: string[] | undefined;
|
|
10
|
+
name: string;
|
|
11
|
+
value: any;
|
|
15
12
|
validFrom?: ICoreDate;
|
|
16
13
|
validTo?: ICoreDate;
|
|
17
14
|
}
|
|
18
15
|
export declare class Attribute extends CoreSerializable implements IAttribute {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
tags?: string[];
|
|
16
|
+
name: string;
|
|
17
|
+
value: any;
|
|
22
18
|
validFrom?: CoreDate;
|
|
23
19
|
validTo?: CoreDate;
|
|
20
|
+
get namespace(): string | undefined;
|
|
21
|
+
get attribute(): string | undefined;
|
|
24
22
|
static from(value: IAttribute): Attribute;
|
|
25
|
-
static fromJSON(
|
|
23
|
+
static fromJSON(value: AttributeJSON): Attribute;
|
|
26
24
|
}
|
|
@@ -13,30 +13,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.Attribute = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const transport_1 = require("@nmshd/transport");
|
|
16
|
-
const AbstractAttributeValue_1 = require("./AbstractAttributeValue");
|
|
17
16
|
let Attribute = Attribute_1 = class Attribute extends transport_1.CoreSerializable {
|
|
17
|
+
get namespace() {
|
|
18
|
+
if (!this.name)
|
|
19
|
+
return undefined;
|
|
20
|
+
const ar = this.name.split(".");
|
|
21
|
+
if (ar.length <= 1)
|
|
22
|
+
return undefined;
|
|
23
|
+
return ar[0];
|
|
24
|
+
}
|
|
25
|
+
get attribute() {
|
|
26
|
+
if (!this.name)
|
|
27
|
+
return undefined;
|
|
28
|
+
const ar = this.name.split(".");
|
|
29
|
+
return ar.pop();
|
|
30
|
+
}
|
|
18
31
|
static from(value) {
|
|
19
|
-
return super.
|
|
32
|
+
return super.from(value, Attribute_1);
|
|
20
33
|
}
|
|
21
|
-
static fromJSON(
|
|
22
|
-
return
|
|
34
|
+
static fromJSON(value) {
|
|
35
|
+
return this.from({
|
|
36
|
+
name: value.name,
|
|
37
|
+
value: value.value,
|
|
38
|
+
validFrom: value.validFrom ? transport_1.CoreDate.from(value.validFrom) : undefined,
|
|
39
|
+
validTo: value.validTo ? transport_1.CoreDate.from(value.validTo) : undefined
|
|
40
|
+
});
|
|
23
41
|
}
|
|
24
42
|
};
|
|
25
43
|
__decorate([
|
|
26
|
-
(0, ts_serval_1.validate)(),
|
|
27
44
|
(0, ts_serval_1.serialize)(),
|
|
28
|
-
__metadata("design:type", AbstractAttributeValue_1.AbstractAttributeValue)
|
|
29
|
-
], Attribute.prototype, "content", void 0);
|
|
30
|
-
__decorate([
|
|
31
45
|
(0, ts_serval_1.validate)(),
|
|
32
|
-
(
|
|
33
|
-
|
|
34
|
-
], Attribute.prototype, "createdAt", void 0);
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Attribute.prototype, "name", void 0);
|
|
35
48
|
__decorate([
|
|
36
|
-
(0, ts_serval_1.serialize)({
|
|
49
|
+
(0, ts_serval_1.serialize)({ any: true }),
|
|
37
50
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
|
-
__metadata("design:type",
|
|
39
|
-
], Attribute.prototype, "
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], Attribute.prototype, "value", void 0);
|
|
40
53
|
__decorate([
|
|
41
54
|
(0, ts_serval_1.serialize)(),
|
|
42
55
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Attribute.js","sourceRoot":"","sources":["../../src/attributes/Attribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA2F;
|
|
1
|
+
{"version":3,"file":"Attribute.js","sourceRoot":"","sources":["../../src/attributes/Attribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA2F;AAkB3F,IAAa,SAAS,iBAAtB,MAAa,SAAU,SAAQ,4BAAgB;IAiB3C,IAAW,SAAS;QAChB,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAA;QAChC,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC/B,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO,SAAS,CAAA;QACpC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAA;IAChB,CAAC;IAED,IAAW,SAAS;QAChB,IAAI,CAAC,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAA;QAChC,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC/B,OAAO,EAAE,CAAC,GAAG,EAAE,CAAA;IACnB,CAAC;IAEM,MAAM,CAAC,IAAI,CAAC,KAAiB;QAChC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,WAAS,CAAc,CAAA;IACpD,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAoB;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;SACpE,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAvCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;uCACQ;AAInB;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACZ;AAIjB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;4CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;0CAAA;AAfhB,SAAS;IADrB,IAAA,gBAAI,EAAC,WAAW,CAAC;GACL,SAAS,CA0CrB;AA1CY,8BAAS"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CoreDate, CoreSerializable, ICoreDate, ICoreSerializable } from "@nmshd/transport";
|
|
2
|
+
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "./AbstractAttributeValue";
|
|
4
|
+
export interface AttributeV2JSON extends ContentJSON {
|
|
5
|
+
value: AbstractAttributeValueJSON;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
tags?: string[];
|
|
8
|
+
validFrom?: string;
|
|
9
|
+
validTo?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IAttributeV2 extends ICoreSerializable {
|
|
12
|
+
value: IAbstractAttributeValue;
|
|
13
|
+
createdAt: ICoreDate;
|
|
14
|
+
tags?: string[] | undefined;
|
|
15
|
+
validFrom?: ICoreDate;
|
|
16
|
+
validTo?: ICoreDate;
|
|
17
|
+
}
|
|
18
|
+
export declare class AttributeV2 extends CoreSerializable implements IAttributeV2 {
|
|
19
|
+
value: AbstractAttributeValue;
|
|
20
|
+
createdAt: CoreDate;
|
|
21
|
+
tags?: string[];
|
|
22
|
+
validFrom?: CoreDate;
|
|
23
|
+
validTo?: CoreDate;
|
|
24
|
+
static from(attribute: IAttributeV2 | AttributeV2JSON): AttributeV2;
|
|
25
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var AttributeV2_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.AttributeV2 = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const transport_1 = require("@nmshd/transport");
|
|
16
|
+
const AbstractAttributeValue_1 = require("./AbstractAttributeValue");
|
|
17
|
+
let AttributeV2 = AttributeV2_1 = class AttributeV2 extends transport_1.CoreSerializable {
|
|
18
|
+
static from(attribute) {
|
|
19
|
+
return super.fromT(attribute, AttributeV2_1);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
|
+
(0, ts_serval_1.validate)(),
|
|
25
|
+
__metadata("design:type", AbstractAttributeValue_1.AbstractAttributeValue)
|
|
26
|
+
], AttributeV2.prototype, "value", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, ts_serval_1.validate)(),
|
|
29
|
+
(0, ts_serval_1.serialize)(),
|
|
30
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
31
|
+
], AttributeV2.prototype, "createdAt", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, ts_serval_1.serialize)({ type: String }),
|
|
34
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], AttributeV2.prototype, "tags", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, ts_serval_1.serialize)(),
|
|
39
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
40
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
41
|
+
], AttributeV2.prototype, "validFrom", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, ts_serval_1.serialize)(),
|
|
44
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
46
|
+
], AttributeV2.prototype, "validTo", void 0);
|
|
47
|
+
AttributeV2 = AttributeV2_1 = __decorate([
|
|
48
|
+
(0, ts_serval_1.type)("Attribute", { version: 2 })
|
|
49
|
+
], AttributeV2);
|
|
50
|
+
exports.AttributeV2 = AttributeV2;
|
|
51
|
+
//# sourceMappingURL=AttributeV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeV2.js","sourceRoot":"","sources":["../../src/attributes/AttributeV2.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA2F;AAE3F,qEAAsH;AAmBtH,IAAa,WAAW,mBAAxB,MAAa,WAAY,SAAQ,4BAAgB;IAqBtC,MAAM,CAAC,IAAI,CAAC,SAAyC;QACxD,OAAO,KAAK,CAAC,KAAK,CAAc,SAAS,EAAE,aAAW,CAAC,CAAA;IAC3D,CAAC;CACJ,CAAA;AArBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,+CAAsB;0CAAA;AAIpC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,oBAAQ;8CAAA;AAI1B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;8CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;4CAAA;AAnBhB,WAAW;IADvB,IAAA,gBAAI,EAAC,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;GACrB,WAAW,CAwBvB;AAxBY,kCAAW"}
|
package/dist/attributes/index.js
CHANGED
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AbstractAttributeValue"), exports);
|
|
18
18
|
__exportStar(require("./Attribute"), exports);
|
|
19
19
|
__exportStar(require("./AttributeQuery"), exports);
|
|
20
|
+
__exportStar(require("./AttributeV2"), exports);
|
|
20
21
|
__exportStar(require("./types"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,8CAA2B;AAC3B,mDAAgC;AAChC,0CAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,8CAA2B;AAC3B,mDAAgC;AAChC,gDAA6B;AAC7B,0CAAuB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AbstractDateString = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const luxon_1 = require("luxon");
|
|
15
|
+
const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
|
|
16
|
+
class AbstractDateString extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
17
|
+
}
|
|
18
|
+
AbstractDateString.format = "yyyy-MM-dd";
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, ts_serval_1.serialize)(),
|
|
21
|
+
(0, ts_serval_1.validate)({
|
|
22
|
+
customValidator: (v) => !luxon_1.DateTime.fromFormat(v, AbstractDateString.format).isValid
|
|
23
|
+
? `must match the following format: '${AbstractDateString.format}'`
|
|
24
|
+
: undefined
|
|
25
|
+
}),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], AbstractDateString.prototype, "value", void 0);
|
|
28
|
+
exports.AbstractDateString = AbstractDateString;
|
|
29
|
+
//# sourceMappingURL=AbstractDateString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractDateString.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractDateString.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,iCAAgC;AAChC,sEAAkE;AAElE,MAAsB,kBAAmB,SAAQ,+CAAsB;;AAC3C,yBAAM,GAAG,YAAY,CAAA;AAQ7C;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,gBAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,OAAO;YACtD,CAAC,CAAC,qCAAqC,kBAAkB,CAAC,MAAM,GAAG;YACnE,CAAC,CAAC,SAAS;KACtB,CAAC;;iDACkB;AATxB,gDAUC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractIntegerValue } from "./AbstractIntegerValue";
|
|
2
2
|
/**
|
|
3
3
|
* day values start with 1 = first day of month
|
|
4
4
|
*/
|
|
5
|
-
export declare abstract class AbstractDay extends
|
|
5
|
+
export declare abstract class AbstractDay extends AbstractIntegerValue {
|
|
6
6
|
value: number;
|
|
7
7
|
}
|
|
@@ -11,15 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractDay = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
14
|
+
const AbstractIntegerValue_1 = require("./AbstractIntegerValue");
|
|
15
15
|
/**
|
|
16
16
|
* day values start with 1 = first day of month
|
|
17
17
|
*/
|
|
18
|
-
class AbstractDay extends
|
|
18
|
+
class AbstractDay extends AbstractIntegerValue_1.AbstractIntegerValue {
|
|
19
19
|
}
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, ts_serval_1.serialize)(),
|
|
22
|
-
(0, ts_serval_1.validate)({
|
|
22
|
+
(0, ts_serval_1.validate)({
|
|
23
|
+
customValidator: (v) => v < 1 || v > 31 || !Number.isInteger(v) ? "must be an integer value between 1 and 31" : undefined
|
|
24
|
+
}),
|
|
23
25
|
__metadata("design:type", Number)
|
|
24
26
|
], AbstractDay.prototype, "value", void 0);
|
|
25
27
|
exports.AbstractDay = AbstractDay;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractDay.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractDay.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"AbstractDay.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractDay.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,iEAA6D;AAE7D;;GAEG;AACH,MAAsB,WAAY,SAAQ,2CAAoB;CAO7D;AADG;IALC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,2CAA2C,CAAC,CAAC,CAAC,SAAS;KACxG,CAAC;;0CACkB;AANxB,kCAOC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AbstractFloatValue = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
|
|
15
|
+
class AbstractFloatValue extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, ts_serval_1.serialize)(),
|
|
19
|
+
(0, ts_serval_1.validate)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], AbstractFloatValue.prototype, "value", void 0);
|
|
22
|
+
exports.AbstractFloatValue = AbstractFloatValue;
|
|
23
|
+
//# sourceMappingURL=AbstractFloatValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractFloatValue.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractFloatValue.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAkE;AAElE,MAAa,kBAAmB,SAAQ,+CAAsB;CAI7D;AADG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;iDACS;AAHxB,gDAIC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AbstractIntegerValue = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
|
|
15
|
+
class AbstractIntegerValue extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, ts_serval_1.serialize)(),
|
|
19
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (!Number.isInteger(v) ? "must be an integer" : undefined) }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], AbstractIntegerValue.prototype, "value", void 0);
|
|
22
|
+
exports.AbstractIntegerValue = AbstractIntegerValue;
|
|
23
|
+
//# sourceMappingURL=AbstractIntegerValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractIntegerValue.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractIntegerValue.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAkE;AAElE,MAAa,oBAAqB,SAAQ,+CAAsB;CAI/D;AADG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;mDAC5E;AAHxB,oDAIC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AbstractIntegerValue } from "./AbstractIntegerValue";
|
|
2
2
|
/**
|
|
3
3
|
* Month values: 1 (january) - 12 (december)
|
|
4
4
|
*/
|
|
@@ -19,7 +19,7 @@ declare enum Month {
|
|
|
19
19
|
/**
|
|
20
20
|
* Month value are continuously numbered: 1 (january) - 12 (december)
|
|
21
21
|
*/
|
|
22
|
-
export declare abstract class AbstractMonth extends
|
|
22
|
+
export declare abstract class AbstractMonth extends AbstractIntegerValue {
|
|
23
23
|
value: Month;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AbstractMonth = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
14
|
+
const AbstractIntegerValue_1 = require("./AbstractIntegerValue");
|
|
15
15
|
/**
|
|
16
16
|
* Month values: 1 (january) - 12 (december)
|
|
17
17
|
*/
|
|
@@ -33,11 +33,15 @@ var Month;
|
|
|
33
33
|
/**
|
|
34
34
|
* Month value are continuously numbered: 1 (january) - 12 (december)
|
|
35
35
|
*/
|
|
36
|
-
class AbstractMonth extends
|
|
36
|
+
class AbstractMonth extends AbstractIntegerValue_1.AbstractIntegerValue {
|
|
37
37
|
}
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, ts_serval_1.serialize)(),
|
|
40
|
-
(0, ts_serval_1.validate)({
|
|
40
|
+
(0, ts_serval_1.validate)({
|
|
41
|
+
customValidator: (v) => !Month[v] || !Number.isInteger(v)
|
|
42
|
+
? `must be an integer value between ${Month.January} and ${Month.December}`
|
|
43
|
+
: undefined
|
|
44
|
+
}),
|
|
41
45
|
__metadata("design:type", Number)
|
|
42
46
|
], AbstractMonth.prototype, "value", void 0);
|
|
43
47
|
exports.AbstractMonth = AbstractMonth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractMonth.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractMonth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"AbstractMonth.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractMonth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,iEAA6D;AAE7D;;GAEG;AACH,IAAK,KAaJ;AAbD,WAAK,KAAK;IACN,uCAAW,CAAA;IACX,yCAAY,CAAA;IACZ,mCAAS,CAAA;IACT,mCAAS,CAAA;IACT,+BAAO,CAAA;IACP,iCAAQ,CAAA;IACR,iCAAQ,CAAA;IACR,qCAAU,CAAA;IACV,2CAAa,CAAA;IACb,wCAAY,CAAA;IACZ,0CAAa,CAAA;IACb,0CAAa,CAAA;AACjB,CAAC,EAbI,KAAK,KAAL,KAAK,QAaT;AAED;;GAEG;AACH,MAAsB,aAAc,SAAQ,2CAAoB;CAS/D;AADG;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;YAC7B,CAAC,CAAC,oCAAoC,KAAK,CAAC,OAAO,QAAQ,KAAK,CAAC,QAAQ,EAAE;YAC3E,CAAC,CAAC,SAAS;KACtB,CAAC;;4CACiB;AARvB,sCASC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AbstractStringValue = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const AbstractAttributeValue_1 = require("../AbstractAttributeValue");
|
|
15
|
+
class AbstractStringValue extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, ts_serval_1.serialize)(),
|
|
19
|
+
(0, ts_serval_1.validate)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], AbstractStringValue.prototype, "value", void 0);
|
|
22
|
+
exports.AbstractStringValue = AbstractStringValue;
|
|
23
|
+
//# sourceMappingURL=AbstractStringValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractStringValue.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractStringValue.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,sEAAkE;AAElE,MAAa,mBAAoB,SAAQ,+CAAsB;CAI9D;AADG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kDACS;AAHxB,kDAIC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare abstract class AbstractYear extends
|
|
3
|
-
value: number;
|
|
1
|
+
import { AbstractIntegerValue } from "./AbstractIntegerValue";
|
|
2
|
+
export declare abstract class AbstractYear extends AbstractIntegerValue {
|
|
4
3
|
}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.AbstractYear = void 0;
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
class AbstractYear extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
4
|
+
const AbstractIntegerValue_1 = require("./AbstractIntegerValue");
|
|
5
|
+
class AbstractYear extends AbstractIntegerValue_1.AbstractIntegerValue {
|
|
16
6
|
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)(),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], AbstractYear.prototype, "value", void 0);
|
|
22
7
|
exports.AbstractYear = AbstractYear;
|
|
23
8
|
//# sourceMappingURL=AbstractYear.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractYear.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractYear.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractYear.js","sourceRoot":"","sources":["../../../src/attributes/types/AbstractYear.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D,MAAsB,YAAa,SAAQ,2CAAoB;CAAG;AAAlE,oCAAkE"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class City extends
|
|
3
|
-
value: string;
|
|
1
|
+
import { AbstractStringValue } from "../AbstractStringValue";
|
|
2
|
+
export declare class City extends AbstractStringValue {
|
|
4
3
|
}
|
|
@@ -5,20 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.City = void 0;
|
|
13
10
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
15
|
-
let City = class City extends
|
|
11
|
+
const AbstractStringValue_1 = require("../AbstractStringValue");
|
|
12
|
+
let City = class City extends AbstractStringValue_1.AbstractStringValue {
|
|
16
13
|
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], City.prototype, "value", void 0);
|
|
22
14
|
City = __decorate([
|
|
23
15
|
(0, ts_serval_1.type)("City")
|
|
24
16
|
], City);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"City.js","sourceRoot":"","sources":["../../../../src/attributes/types/address/City.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"City.js","sourceRoot":"","sources":["../../../../src/attributes/types/address/City.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AACzC,gEAA4D;AAG5D,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,yCAAmB;CAAG,CAAA;AAAnC,IAAI;IADhB,IAAA,gBAAI,EAAC,MAAM,CAAC;GACA,IAAI,CAA+B;AAAnC,oBAAI"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class Country extends
|
|
3
|
-
value: string;
|
|
1
|
+
import { AbstractStringValue } from "../AbstractStringValue";
|
|
2
|
+
export declare class Country extends AbstractStringValue {
|
|
4
3
|
}
|
|
@@ -5,20 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.Country = void 0;
|
|
13
10
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
15
|
-
let Country = class Country extends
|
|
11
|
+
const AbstractStringValue_1 = require("../AbstractStringValue");
|
|
12
|
+
let Country = class Country extends AbstractStringValue_1.AbstractStringValue {
|
|
16
13
|
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], Country.prototype, "value", void 0);
|
|
22
14
|
Country = __decorate([
|
|
23
15
|
(0, ts_serval_1.type)("Country")
|
|
24
16
|
], Country);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Country.js","sourceRoot":"","sources":["../../../../src/attributes/types/address/Country.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Country.js","sourceRoot":"","sources":["../../../../src/attributes/types/address/Country.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AACzC,gEAA4D;AAG5D,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,yCAAmB;CAAG,CAAA;AAAtC,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAA+B;AAAtC,0BAAO"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class HouseNumber extends
|
|
3
|
-
value: string;
|
|
1
|
+
import { AbstractStringValue } from "../AbstractStringValue";
|
|
2
|
+
export declare class HouseNumber extends AbstractStringValue {
|
|
4
3
|
}
|
|
@@ -5,20 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.HouseNumber = void 0;
|
|
13
10
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
15
|
-
let HouseNumber = class HouseNumber extends
|
|
11
|
+
const AbstractStringValue_1 = require("../AbstractStringValue");
|
|
12
|
+
let HouseNumber = class HouseNumber extends AbstractStringValue_1.AbstractStringValue {
|
|
16
13
|
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], HouseNumber.prototype, "value", void 0);
|
|
22
14
|
HouseNumber = __decorate([
|
|
23
15
|
(0, ts_serval_1.type)("HouseNumber")
|
|
24
16
|
], HouseNumber);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HouseNumber.js","sourceRoot":"","sources":["../../../../src/attributes/types/address/HouseNumber.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HouseNumber.js","sourceRoot":"","sources":["../../../../src/attributes/types/address/HouseNumber.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AACzC,gEAA4D;AAG5D,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,yCAAmB;CAAG,CAAA;AAA1C,WAAW;IADvB,IAAA,gBAAI,EAAC,aAAa,CAAC;GACP,WAAW,CAA+B;AAA1C,kCAAW"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class State extends
|
|
3
|
-
value: string;
|
|
1
|
+
import { AbstractStringValue } from "../AbstractStringValue";
|
|
2
|
+
export declare class State extends AbstractStringValue {
|
|
4
3
|
}
|