@nmshd/content 1.3.0 → 2.0.0-alpha.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/relationships/RelationshipCreationChangeRequestBody.d.ts +29 -0
- package/dist/relationships/RelationshipCreationChangeRequestBody.js +56 -0
- package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +1 -0
- package/dist/relationships/RelationshipCreationChangeResponseBody.d.ts +0 -0
- package/dist/relationships/RelationshipCreationChangeResponseBody.js +2 -0
- package/dist/relationships/RelationshipCreationChangeResponseBody.js.map +1 -0
- package/dist/relationships/RelationshipExistsAction.d.ts +7 -0
- package/dist/relationships/RelationshipExistsAction.js +17 -0
- package/dist/relationships/RelationshipExistsAction.js.map +1 -0
- package/dist/relationships/RelationshipExistsMessageAction.d.ts +11 -0
- package/dist/relationships/RelationshipExistsMessageAction.js +26 -0
- package/dist/relationships/RelationshipExistsMessageAction.js.map +1 -0
- package/dist/relationships/RelationshipTemplateBody.d.ts +42 -0
- package/dist/relationships/RelationshipTemplateBody.js +73 -0
- package/dist/relationships/RelationshipTemplateBody.js.map +1 -0
- package/dist/requests/AttributesChangeRequest.d.ts +1 -1
- package/dist/requests/AttributesChangeRequest.js +3 -3
- package/dist/requests/AttributesChangeRequest.js.map +1 -1
- package/dist/requests/AttributesRequest.d.ts +49 -0
- package/dist/requests/AttributesRequest.js +65 -0
- package/dist/requests/AttributesRequest.js.map +1 -0
- package/lib-web/nmshd.content.js +7 -7
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +6 -6
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: "
|
|
9
|
-
build: "
|
|
10
|
-
date: "2022-03-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-alpha.3",
|
|
9
|
+
build: "20",
|
|
10
|
+
date: "2022-03-21T13:01:58+00:00",
|
|
11
|
+
commit: "2579c3ec2119e23653f1c564234f849d0193c6d6",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
|
|
3
|
+
import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
|
|
4
|
+
import { ContentJSON } from "../ContentJSON";
|
|
5
|
+
export interface RelationshipCreationChangeRequestBodyJSON extends ContentJSON {
|
|
6
|
+
title?: string;
|
|
7
|
+
sessionIdentifier?: string;
|
|
8
|
+
metadata?: any;
|
|
9
|
+
sharedAttributes?: AttributeJSON[];
|
|
10
|
+
sharedCertificates?: any[];
|
|
11
|
+
sharedAuthorizations?: AuthorizationJSON[];
|
|
12
|
+
}
|
|
13
|
+
export interface IRelationshipCreationChangeRequestBody extends ISerializableAsync {
|
|
14
|
+
title?: string;
|
|
15
|
+
sessionIdentifier?: string;
|
|
16
|
+
metadata?: any;
|
|
17
|
+
sharedAttributes?: IAttribute[];
|
|
18
|
+
sharedCertificates?: any[];
|
|
19
|
+
sharedAuthorizations?: IAuthorization[];
|
|
20
|
+
}
|
|
21
|
+
export declare class RelationshipCreationChangeRequestBody extends SerializableAsync implements IRelationshipCreationChangeRequestBody {
|
|
22
|
+
title?: string;
|
|
23
|
+
sessionIdentifier?: string;
|
|
24
|
+
metadata?: any;
|
|
25
|
+
sharedAttributes?: Attribute[];
|
|
26
|
+
sharedCertificates?: any[];
|
|
27
|
+
sharedAuthorizations?: Authorization[];
|
|
28
|
+
static from(value: IRelationshipCreationChangeRequestBody): Promise<RelationshipCreationChangeRequestBody>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 RelationshipCreationChangeRequestBody_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipCreationChangeRequestBody = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const Attribute_1 = require("../attributes/Attribute");
|
|
16
|
+
const Authorization_1 = require("../authorizations/Authorization");
|
|
17
|
+
let RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody_1 = class RelationshipCreationChangeRequestBody extends ts_serval_1.SerializableAsync {
|
|
18
|
+
static async from(value) {
|
|
19
|
+
return (await super.from(value, RelationshipCreationChangeRequestBody_1));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], RelationshipCreationChangeRequestBody.prototype, "title", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, ts_serval_1.serialize)(),
|
|
29
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], RelationshipCreationChangeRequestBody.prototype, "sessionIdentifier", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, ts_serval_1.serialize)({ any: true }),
|
|
34
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], RelationshipCreationChangeRequestBody.prototype, "metadata", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
39
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], RelationshipCreationChangeRequestBody.prototype, "sharedAttributes", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, ts_serval_1.serialize)(),
|
|
44
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], RelationshipCreationChangeRequestBody.prototype, "sharedCertificates", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
|
|
49
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], RelationshipCreationChangeRequestBody.prototype, "sharedAuthorizations", void 0);
|
|
52
|
+
RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody_1 = __decorate([
|
|
53
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeRequestBody")
|
|
54
|
+
], RelationshipCreationChangeRequestBody);
|
|
55
|
+
exports.RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody;
|
|
56
|
+
//# sourceMappingURL=RelationshipCreationChangeRequestBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,uDAA8E;AAC9E,mEAAkG;AAsBlG,IAAa,qCAAqC,6CAAlD,MAAa,qCACT,SAAQ,6BAAiB;IA2BlB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAA6C;QAE7C,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,uCAAqC,CAAC,CAA0C,CAAA;IACpH,CAAC;CACJ,CAAA;AA3BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mFACgB;AA1BpC,qCAAqC;IADjD,IAAA,gBAAI,EAAC,uCAAuC,CAAC;GACjC,qCAAqC,CAiCjD;AAjCY,sFAAqC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeResponseBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeResponseBody.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
export interface RelationshipExistsActionJSON {
|
|
3
|
+
}
|
|
4
|
+
export interface IRelationshipExistsAction {
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class RelationshipExistsAction extends Serializable implements IRelationshipExistsAction {
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.RelationshipExistsAction = void 0;
|
|
10
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
11
|
+
let RelationshipExistsAction = class RelationshipExistsAction extends ts_serval_1.Serializable {
|
|
12
|
+
};
|
|
13
|
+
RelationshipExistsAction = __decorate([
|
|
14
|
+
(0, ts_serval_1.type)("RelationshipExistsAction")
|
|
15
|
+
], RelationshipExistsAction);
|
|
16
|
+
exports.RelationshipExistsAction = RelationshipExistsAction;
|
|
17
|
+
//# sourceMappingURL=RelationshipExistsAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipExistsAction.js","sourceRoot":"","sources":["../../src/relationships/RelationshipExistsAction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAuD;AAOvD,IAAsB,wBAAwB,GAA9C,MAAsB,wBAAyB,SAAQ,wBAAY;CAAwC,CAAA;AAArF,wBAAwB;IAD7C,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACX,wBAAwB,CAA6D;AAArF,4DAAwB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
|
|
3
|
+
export interface RelationshipExistsMessageActionJSON extends RelationshipExistsActionJSON {
|
|
4
|
+
content: any;
|
|
5
|
+
}
|
|
6
|
+
export interface IRelationshipExistsMessageAction extends IRelationshipExistsAction {
|
|
7
|
+
content: ISerializableAsync;
|
|
8
|
+
}
|
|
9
|
+
export declare class RelationshipExistsMessageAction extends RelationshipExistsAction implements IRelationshipExistsMessageAction {
|
|
10
|
+
content: SerializableAsync;
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.RelationshipExistsMessageAction = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
|
|
15
|
+
let RelationshipExistsMessageAction = class RelationshipExistsMessageAction extends RelationshipExistsAction_1.RelationshipExistsAction {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, ts_serval_1.serialize)(),
|
|
19
|
+
(0, ts_serval_1.validate)(),
|
|
20
|
+
__metadata("design:type", ts_serval_1.SerializableAsync)
|
|
21
|
+
], RelationshipExistsMessageAction.prototype, "content", void 0);
|
|
22
|
+
RelationshipExistsMessageAction = __decorate([
|
|
23
|
+
(0, ts_serval_1.type)("RelationshipExistsMessageAction")
|
|
24
|
+
], RelationshipExistsMessageAction);
|
|
25
|
+
exports.RelationshipExistsMessageAction = RelationshipExistsMessageAction;
|
|
26
|
+
//# sourceMappingURL=RelationshipExistsMessageAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipExistsMessageAction.js","sourceRoot":"","sources":["../../src/relationships/RelationshipExistsMessageAction.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqG;AACrG,yEAImC;AAWnC,IAAa,+BAA+B,GAA5C,MAAa,+BACT,SAAQ,mDAAwB;CAMnC,CAAA;AADG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,6BAAiB;gEAAA;AANxB,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAO3C;AAPY,0EAA+B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
|
|
3
|
+
import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
|
|
4
|
+
import { ContentJSON } from "../ContentJSON";
|
|
5
|
+
import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/AttributesChangeRequest";
|
|
6
|
+
import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/AttributesRequest";
|
|
7
|
+
import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
|
|
8
|
+
export interface RelationshipTemplateBodyJSON extends ContentJSON {
|
|
9
|
+
title?: string;
|
|
10
|
+
sessionIdentifier?: string;
|
|
11
|
+
metadata?: any;
|
|
12
|
+
sharedAttributes?: AttributeJSON[];
|
|
13
|
+
sharedCertificates?: any[];
|
|
14
|
+
sharedAuthorizations?: AuthorizationJSON[];
|
|
15
|
+
requestedAttributesChanges?: AttributesChangeRequestJSON[];
|
|
16
|
+
requestedAttributes?: AttributesRequestJSON[];
|
|
17
|
+
requestedCertificates?: any[];
|
|
18
|
+
relationshipExistsAction?: RelationshipExistsActionJSON;
|
|
19
|
+
}
|
|
20
|
+
export interface IRelationshipTemplateBody extends ISerializableAsync {
|
|
21
|
+
title?: string;
|
|
22
|
+
sessionIdentifier?: string;
|
|
23
|
+
metadata?: any;
|
|
24
|
+
sharedAttributes?: IAttribute[];
|
|
25
|
+
sharedCertificates?: any[];
|
|
26
|
+
sharedAuthorizations?: IAuthorization[];
|
|
27
|
+
requestedAttributesChanges?: IAttributesChangeRequest[];
|
|
28
|
+
requestedAttributes?: IAttributesRequest[];
|
|
29
|
+
relationshipExistsAction?: IRelationshipExistsAction;
|
|
30
|
+
}
|
|
31
|
+
export declare class RelationshipTemplateBody extends SerializableAsync implements IRelationshipTemplateBody {
|
|
32
|
+
title?: string;
|
|
33
|
+
sessionIdentifier?: string;
|
|
34
|
+
metadata?: any;
|
|
35
|
+
sharedAttributes?: Attribute[];
|
|
36
|
+
sharedCertificates?: any[];
|
|
37
|
+
sharedAuthorizations?: Authorization[];
|
|
38
|
+
requestedAttributesChanges?: AttributesChangeRequest[];
|
|
39
|
+
requestedAttributes?: AttributesRequest[];
|
|
40
|
+
relationshipExistsAction?: RelationshipExistsAction;
|
|
41
|
+
static from(value: IRelationshipTemplateBody): Promise<RelationshipTemplateBody>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 RelationshipTemplateBody_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RelationshipTemplateBody = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const Attribute_1 = require("../attributes/Attribute");
|
|
16
|
+
const Authorization_1 = require("../authorizations/Authorization");
|
|
17
|
+
const AttributesRequest_1 = require("../requests/AttributesRequest");
|
|
18
|
+
const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
|
|
19
|
+
let RelationshipTemplateBody = RelationshipTemplateBody_1 = class RelationshipTemplateBody extends ts_serval_1.SerializableAsync {
|
|
20
|
+
static async from(value) {
|
|
21
|
+
return (await super.from(value, RelationshipTemplateBody_1));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, ts_serval_1.serialize)(),
|
|
26
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], RelationshipTemplateBody.prototype, "title", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, ts_serval_1.serialize)(),
|
|
31
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], RelationshipTemplateBody.prototype, "sessionIdentifier", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, ts_serval_1.serialize)({ any: true }),
|
|
36
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
37
|
+
__metadata("design:type", Object)
|
|
38
|
+
], RelationshipTemplateBody.prototype, "metadata", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
41
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], RelationshipTemplateBody.prototype, "sharedAttributes", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, ts_serval_1.serialize)(),
|
|
46
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], RelationshipTemplateBody.prototype, "sharedCertificates", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
|
|
51
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], RelationshipTemplateBody.prototype, "sharedAuthorizations", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
56
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], RelationshipTemplateBody.prototype, "requestedAttributesChanges", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, ts_serval_1.serialize)({ type: AttributesRequest_1.AttributesRequest }),
|
|
61
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], RelationshipTemplateBody.prototype, "requestedAttributes", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, ts_serval_1.serialize)(),
|
|
66
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
67
|
+
__metadata("design:type", RelationshipExistsAction_1.RelationshipExistsAction)
|
|
68
|
+
], RelationshipTemplateBody.prototype, "relationshipExistsAction", void 0);
|
|
69
|
+
RelationshipTemplateBody = RelationshipTemplateBody_1 = __decorate([
|
|
70
|
+
(0, ts_serval_1.type)("RelationshipTemplateBody")
|
|
71
|
+
], RelationshipTemplateBody);
|
|
72
|
+
exports.RelationshipTemplateBody = RelationshipTemplateBody;
|
|
73
|
+
//# sourceMappingURL=RelationshipTemplateBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,uDAA8E;AAC9E,mEAAkG;AAOlG,qEAA4G;AAC5G,yEAImC;AA4BnC,IAAa,wBAAwB,gCAArC,MAAa,wBAAyB,SAAQ,6BAAiB;IAqCpD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAgC;QACrD,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,0BAAwB,CAAC,CAA6B,CAAA;IAC1F,CAAC;CACJ,CAAA;AArCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACgB;AAI7C;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4EACgC;AAI7D;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qCAAiB,EAAE,CAAC;IACtC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACmB;AAIhD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACK,mDAAwB;0EAAA;AAnCjD,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAwCpC;AAxCY,4DAAwB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISerializable, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
-
import { Attribute, AttributeJSON, IAttribute } from "../attributes";
|
|
3
|
+
import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
|
|
4
4
|
import { ContentJSON } from "../ContentJSON";
|
|
5
5
|
export interface AttributesChangeRequestJSON extends ContentJSON {
|
|
6
6
|
id?: string;
|
|
@@ -13,13 +13,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.AttributesChangeRequest = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const transport_1 = require("@nmshd/transport");
|
|
16
|
-
const
|
|
16
|
+
const Attribute_1 = require("../attributes/Attribute");
|
|
17
17
|
let AttributesChangeRequest = AttributesChangeRequest_1 = class AttributesChangeRequest extends ts_serval_1.SerializableAsync {
|
|
18
18
|
static async from(value) {
|
|
19
19
|
return (await super.from(value, AttributesChangeRequest_1));
|
|
20
20
|
}
|
|
21
21
|
static async fromJSON(value) {
|
|
22
|
-
const parsedAttributes = await Promise.all(value.attributes.map((attribute) =>
|
|
22
|
+
const parsedAttributes = await Promise.all(value.attributes.map((attribute) => Attribute_1.Attribute.fromJSON(attribute)));
|
|
23
23
|
return await this.from({
|
|
24
24
|
id: value.id ? transport_1.CoreId.from(value.id) : undefined,
|
|
25
25
|
attributes: parsedAttributes,
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], AttributesChangeRequest.prototype, "impact", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, ts_serval_1.serialize)({ type:
|
|
59
|
+
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
60
60
|
(0, ts_serval_1.validate)(),
|
|
61
61
|
__metadata("design:type", Array)
|
|
62
62
|
], AttributesChangeRequest.prototype, "attributes", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributesChangeRequest.js","sourceRoot":"","sources":["../../src/requests/AttributesChangeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgG;AAChG,gDAAkG;AAClG,
|
|
1
|
+
{"version":3,"file":"AttributesChangeRequest.js","sourceRoot":"","sources":["../../src/requests/AttributesChangeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgG;AAChG,gDAAkG;AAClG,uDAA8E;AA+C9E,IAAa,uBAAuB,+BAApC,MAAa,uBAAwB,SAAQ,6BAAiB;IA6BnD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA+B;QACpD,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,yBAAuB,CAAC,CAA4B,CAAA;IACxF,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAkC;QAC3D,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;QAC9G,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YAChD,UAAU,EAAE,gBAAgB;YAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;YACpE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAzCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mDAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0DAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,GAAE;;2DACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,uBAAW;wDAAA;AA3BnB,uBAAuB;IADnC,IAAA,gBAAI,EAAC,yBAAyB,CAAC;GACnB,uBAAuB,CA4CnC;AA5CY,0DAAuB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
+
import { ContentJSON } from "../ContentJSON";
|
|
4
|
+
export interface AttributesRequestJSON extends ContentJSON {
|
|
5
|
+
id?: string;
|
|
6
|
+
key?: string;
|
|
7
|
+
reason?: string;
|
|
8
|
+
expiresAt?: string;
|
|
9
|
+
names: string[];
|
|
10
|
+
required: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IAttributesRequest extends ISerializableAsync {
|
|
13
|
+
id?: ICoreId;
|
|
14
|
+
/**
|
|
15
|
+
* The technial key of the request which is submitted back with the answer. This can be used
|
|
16
|
+
* for mapping requests and answers. The key should be unique and non-personal, best a random UUID.
|
|
17
|
+
* @default undefined - no key is used
|
|
18
|
+
*/
|
|
19
|
+
key?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The human-readable reason for this request. This can be used to provide the user with more input
|
|
22
|
+
* why this request is necessary and should be answered.
|
|
23
|
+
* @default undefined - no reason is given
|
|
24
|
+
*/
|
|
25
|
+
reason?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
28
|
+
* valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer
|
|
29
|
+
* of interest).
|
|
30
|
+
* @default undefined - the request won't expire
|
|
31
|
+
*/
|
|
32
|
+
expiresAt?: ICoreDate;
|
|
33
|
+
names: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Whether or not this attribute request is required or optional
|
|
36
|
+
* @default undefined - the attribute request is optional
|
|
37
|
+
*/
|
|
38
|
+
required?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare class AttributesRequest extends SerializableAsync implements IAttributesRequest {
|
|
41
|
+
id?: CoreId;
|
|
42
|
+
key?: string;
|
|
43
|
+
reason?: string;
|
|
44
|
+
expiresAt?: CoreDate;
|
|
45
|
+
names: string[];
|
|
46
|
+
required?: boolean;
|
|
47
|
+
static from(value: IAttributesRequest): Promise<AttributesRequest>;
|
|
48
|
+
static fromJSON(value: AttributesRequestJSON): Promise<AttributesRequest>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 AttributesRequest_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.AttributesRequest = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const transport_1 = require("@nmshd/transport");
|
|
16
|
+
let AttributesRequest = AttributesRequest_1 = class AttributesRequest extends ts_serval_1.SerializableAsync {
|
|
17
|
+
static async from(value) {
|
|
18
|
+
return (await super.from(value, AttributesRequest_1));
|
|
19
|
+
}
|
|
20
|
+
static async fromJSON(value) {
|
|
21
|
+
return await this.from({
|
|
22
|
+
id: value.id ? transport_1.CoreId.from(value.id) : undefined,
|
|
23
|
+
expiresAt: value.expiresAt ? transport_1.CoreDate.from(value.expiresAt) : undefined,
|
|
24
|
+
key: value.key,
|
|
25
|
+
reason: value.reason,
|
|
26
|
+
names: value.names,
|
|
27
|
+
required: value.required
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, ts_serval_1.serialize)(),
|
|
33
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", transport_1.CoreId)
|
|
35
|
+
], AttributesRequest.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, ts_serval_1.serialize)(),
|
|
38
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AttributesRequest.prototype, "key", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, ts_serval_1.serialize)(),
|
|
43
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], AttributesRequest.prototype, "reason", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, ts_serval_1.serialize)(),
|
|
48
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
49
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
50
|
+
], AttributesRequest.prototype, "expiresAt", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, ts_serval_1.serialize)({ type: String }),
|
|
53
|
+
(0, ts_serval_1.validate)(),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], AttributesRequest.prototype, "names", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, ts_serval_1.serialize)(),
|
|
58
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], AttributesRequest.prototype, "required", void 0);
|
|
61
|
+
AttributesRequest = AttributesRequest_1 = __decorate([
|
|
62
|
+
(0, ts_serval_1.type)("AttributesRequest")
|
|
63
|
+
], AttributesRequest);
|
|
64
|
+
exports.AttributesRequest = AttributesRequest;
|
|
65
|
+
//# sourceMappingURL=AttributesRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributesRequest.js","sourceRoot":"","sources":["../../src/requests/AttributesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAAuE;AA2CvE,IAAa,iBAAiB,yBAA9B,MAAa,iBAAkB,SAAQ,6BAAiB;IAyB7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAyB;QAC9C,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,mBAAiB,CAAC,CAAsB,CAAA;IAC5E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAA4B;QACrD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SAC3B,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AApCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;6CAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;oDAAA;AAI3B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;gDACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACJ;AAvBhB,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CAuC7B;AAvCY,8CAAiB"}
|
package/lib-web/nmshd.content.js
CHANGED
|
@@ -2019,10 +2019,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
2019
2019
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
2020
2020
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
2021
2021
|
exports.buildInformation = {
|
|
2022
|
-
version: "
|
|
2023
|
-
build: "
|
|
2024
|
-
date: "2022-03-
|
|
2025
|
-
commit: "
|
|
2022
|
+
version: "2.0.0-alpha.3",
|
|
2023
|
+
build: "20",
|
|
2024
|
+
date: "2022-03-21T13:01:58+00:00",
|
|
2025
|
+
commit: "2579c3ec2119e23653f1c564234f849d0193c6d6",
|
|
2026
2026
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
2027
2027
|
libraries: {
|
|
2028
2028
|
serval: ts_serval_1.buildInformation,
|
|
@@ -2649,13 +2649,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2649
2649
|
exports.AttributesChangeRequest = void 0;
|
|
2650
2650
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
2651
2651
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
2652
|
-
const
|
|
2652
|
+
const Attribute_1 = __webpack_require__(/*! ../attributes/Attribute */ "./dist/attributes/Attribute.js");
|
|
2653
2653
|
let AttributesChangeRequest = AttributesChangeRequest_1 = class AttributesChangeRequest extends ts_serval_1.SerializableAsync {
|
|
2654
2654
|
static async from(value) {
|
|
2655
2655
|
return (await super.from(value, AttributesChangeRequest_1));
|
|
2656
2656
|
}
|
|
2657
2657
|
static async fromJSON(value) {
|
|
2658
|
-
const parsedAttributes = await Promise.all(value.attributes.map((attribute) =>
|
|
2658
|
+
const parsedAttributes = await Promise.all(value.attributes.map((attribute) => Attribute_1.Attribute.fromJSON(attribute)));
|
|
2659
2659
|
return await this.from({
|
|
2660
2660
|
id: value.id ? transport_1.CoreId.from(value.id) : undefined,
|
|
2661
2661
|
attributes: parsedAttributes,
|
|
@@ -2692,7 +2692,7 @@ __decorate([
|
|
|
2692
2692
|
__metadata("design:type", String)
|
|
2693
2693
|
], AttributesChangeRequest.prototype, "impact", void 0);
|
|
2694
2694
|
__decorate([
|
|
2695
|
-
(0, ts_serval_1.serialize)({ type:
|
|
2695
|
+
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
2696
2696
|
(0, ts_serval_1.validate)(),
|
|
2697
2697
|
__metadata("design:type", Array)
|
|
2698
2698
|
], AttributesChangeRequest.prototype, "attributes", void 0);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var NMSHDContent;(()=>{"use strict";var e={8564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4183:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractAttributeValue=void 0;const o=r(194);class AbstractAttributeValue extends o.Serializable{}t.AbstractAttributeValue=AbstractAttributeValue},6652:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Attribute=void 0;const n=r(194),l=r(9663),c=r(4183);let s=o=class Attribute extends l.CoreSerializable{static from(e){return super.fromT(e,o)}static fromJSON(e){return super.fromT(e,o)}};i([(0,n.validate)(),(0,n.serialize)(),a("design:type",c.AbstractAttributeValue)],s.prototype,"content",void 0),i([(0,n.validate)(),(0,n.serialize)(),a("design:type",l.CoreDate)],s.prototype,"createdAt",void 0),i([(0,n.serialize)({type:String}),(0,n.validate)({nullable:!0}),a("design:type",Array)],s.prototype,"tags",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],s.prototype,"validFrom",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],s.prototype,"validTo",void 0),s=o=i([(0,n.type)("Attribute")],s),t.Attribute=s},2751:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeQuery=void 0;const n=r(194),l=r(9663);let c=o=class AttributeQuery extends l.CoreSerializable{static from(e){return super.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)(),a("design:type",Boolean)],c.prototype,"onlyValid",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0,customValidator:e=>""===e?"must not be an empty string":void 0}),a("design:type",String)],c.prototype,"attributeType",void 0),i([(0,n.serialize)({type:String}),(0,n.validate)({nullable:!0}),a("design:type",Array)],c.prototype,"tags",void 0),c=o=i([(0,n.type)("AttributeQuery")],c),t.AttributeQuery=c},3700:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4183),t),i(r(6652),t),i(r(2751),t),i(r(3383),t)},5980:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractDay=void 0;const a=r(194),n=r(4183);class AbstractDay extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>e<1||e>31?"has invalid value":void 0}),i("design:type",Number)],AbstractDay.prototype,"value",void 0),t.AbstractDay=AbstractDay},8732:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMonth=void 0;const a=r(194),n=r(4183);var l;!function(e){e[e.January=1]="January",e[e.February=2]="February",e[e.March=3]="March",e[e.April=4]="April",e[e.May=5]="May",e[e.June=6]="June",e[e.July=7]="July",e[e.August=8]="August",e[e.September=9]="September",e[e.October=10]="October",e[e.November=11]="November",e[e.December=12]="December"}(l||(l={}));class AbstractMonth extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>l[e]?void 0:"has invalid value"}),i("design:type",Number)],AbstractMonth.prototype,"value",void 0),t.AbstractMonth=AbstractMonth},68:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractYear=void 0;const a=r(194),n=r(4183);class AbstractYear extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Number)],AbstractYear.prototype,"value",void 0),t.AbstractYear=AbstractYear},3149:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractAddress=void 0;const a=r(194),n=r(4183);class AbstractAddress extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],AbstractAddress.prototype,"recipient",void 0),t.AbstractAddress=AbstractAddress},4967:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.City=void 0;const a=r(194),n=r(4183);let l=class City extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("City")],l),t.City=l},9042:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Country=void 0;const a=r(194),n=r(4183);let l=class Country extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Country")],l),t.Country=l},9498:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DeliveryBoxAddress=void 0;const a=r(194),n=r(3149),l=r(4967),c=r(9042),s=r(699),d=r(7474);let f=class DeliveryBoxAddress extends n.AbstractAddress{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],f.prototype,"userId",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],f.prototype,"deliveryBoxId",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",d.ZipCode)],f.prototype,"zipCode",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.City)],f.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.Country)],f.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.State)],f.prototype,"state",void 0),f=o([(0,a.type)("DeliveryBoxAddress")],f),t.DeliveryBoxAddress=f},7036:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.HouseNumber=void 0;const a=r(194),n=r(4183);let l=class HouseNumber extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("HouseNumber")],l),t.HouseNumber=l},8542:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PostOfficeBoxAddress=void 0;const a=r(194),n=r(3149),l=r(4967),c=r(9042),s=r(699),d=r(7474);let f=class PostOfficeBoxAddress extends n.AbstractAddress{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],f.prototype,"boxId",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",d.ZipCode)],f.prototype,"zipCode",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.City)],f.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.Country)],f.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.State)],f.prototype,"state",void 0),f=o([(0,a.type)("PostOfficeBoxAddress")],f),t.PostOfficeBoxAddress=f},699:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;const a=r(194),n=r(4183);let l=class State extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("State")],l),t.State=l},8098:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Street=void 0;const a=r(194),n=r(4183);let l=class Street extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Street")],l),t.Street=l},7584:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.StreetAddress=void 0;const a=r(194),n=r(3149),l=r(4967),c=r(9042),s=r(7036),d=r(699),f=r(8098),p=r(7474);let u=class StreetAddress extends n.AbstractAddress{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",f.Street)],u.prototype,"street",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.HouseNumber)],u.prototype,"houseNo",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",p.ZipCode)],u.prototype,"zipCode",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.City)],u.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.Country)],u.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",d.State)],u.prototype,"state",void 0),u=o([(0,a.type)("StreetAddress")],u),t.StreetAddress=u},7474:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.ZipCode=void 0;const a=r(194),n=r(4183);let l=class ZipCode extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("ZipCode")],l),t.ZipCode=l},1649:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3149),t),i(r(4967),t),i(r(9042),t),i(r(9498),t),i(r(7036),t),i(r(8542),t),i(r(699),t),i(r(8098),t),i(r(7584),t),i(r(7474),t)},6185:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthCity=void 0;const i=r(194),a=r(4967);let n=class BirthCity extends a.City{};n=o([(0,i.type)("BirthCity")],n),t.BirthCity=n},4945:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthCountry=void 0;const i=r(194),a=r(9042);let n=class BirthCountry extends a.Country{};n=o([(0,i.type)("BirthCountry")],n),t.BirthCountry=n},4472:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthDate=void 0;const a=r(194),n=r(4183),l=r(386),c=r(5772),s=r(7438);let d=class BirthDate extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.BirthDay)],d.prototype,"day",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.BirthMonth)],d.prototype,"month",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.BirthYear)],d.prototype,"year",void 0),d=o([(0,a.type)("BirthDate")],d),t.BirthDate=d},386:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthDay=void 0;const i=r(194),a=r(5980);let n=class BirthDay extends a.AbstractDay{};n=o([(0,i.type)("BirthDay")],n),t.BirthDay=n},5772:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthMonth=void 0;const i=r(194),a=r(8732);let n=class BirthMonth extends a.AbstractMonth{};n=o([(0,i.type)("BirthMonth")],n),t.BirthMonth=n},1538:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthPlace=void 0;const a=r(194),n=r(4183),l=r(6185),c=r(4945),s=r(6140);let d=class BirthPlace extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.BirthCity)],d.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.BirthCountry)],d.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.BirthState)],d.prototype,"state",void 0),d=o([(0,a.type)("BirthPlace")],d),t.BirthPlace=d},6140:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthState=void 0;const i=r(194),a=r(699);let n=class BirthState extends a.State{};n=o([(0,i.type)("BirthState")],n),t.BirthState=n},7438:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthYear=void 0;const i=r(194),a=r(68);let n=class BirthYear extends a.AbstractYear{};n=o([(0,i.type)("BirthYear")],n),t.BirthYear=n},4947:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6185),t),i(r(4945),t),i(r(4472),t),i(r(386),t),i(r(5772),t),i(r(1538),t),i(r(6140),t),i(r(7438),t)},247:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractIDCard=void 0;const o=r(4183);class AbstractIDCard extends o.AbstractAttributeValue{}t.AbstractIDCard=AbstractIDCard},5170:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.IDCardAuthorityName=void 0;const a=r(194),n=r(4183);let l=class IDCardAuthorityName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("IDCardAuthorityName")],l),t.IDCardAuthorityName=l},6059:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.IDCardDE=void 0;const a=r(194),n=r(7584),l=r(4472),c=r(1538),s=r(5553),d=r(247);let f=class IDCardDE extends d.AbstractIDCard{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.LegalNameDE)],f.prototype,"legalName",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.BirthDate)],f.prototype,"birthDate",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.BirthPlace)],f.prototype,"birthPlace",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",n.StreetAddress)],f.prototype,"address",void 0),f=o([(0,a.type)("IDCardDE")],f),t.IDCardDE=f},2448:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.IDCardIssuingDate=void 0;const a=r(194),n=r(4183);let l=class IDCardIssuingDate extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("IDCardIssuingDate")],l),t.IDCardIssuingDate=l},5529:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(247),t),i(r(5170),t),i(r(6059),t),i(r(2448),t)},3383:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1649),t),i(r(4947),t),i(r(5529),t),i(r(1348),t),i(r(8867),t),i(r(9438),t)},5485:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMeasurement=void 0;const a=r(194),n=r(4183);class AbstractMeasurement extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],AbstractMeasurement.prototype,"unit",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Number)],AbstractMeasurement.prototype,"value",void 0),t.AbstractMeasurement=AbstractMeasurement},9726:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.LengthMeasurement=t.LengthUnit=void 0;const a=r(194),n=r(5485);var l;!function(e){e.NM="nm",e.UM="um",e.MM="mm",e.CM="cm",e.DM="dm",e.M="m",e.KM="km",e.MI="mi",e.YD="yd",e.FT="ft",e.SM="sm",e.IN="in"}(l=t.LengthUnit||(t.LengthUnit={}));let c=class LengthMeasurement extends n.AbstractMeasurement{};o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>Object.values(l).includes(e)?void 0:`must be one of: ${Object.values(l)}`}),i("design:type",String)],c.prototype,"unit",void 0),c=o([(0,a.type)("LengthMeasurement")],c),t.LengthMeasurement=c},1348:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(9726),t)},349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractLegalName=void 0;const o=r(4183);class AbstractLegalName extends o.AbstractAttributeValue{}t.AbstractLegalName=AbstractLegalName},90:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthName=void 0;const a=r(194),n=r(4183);let l=class BirthName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("BirthName")],l),t.BirthName=l},9460:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayName=void 0;const a=r(194),n=r(4183);let l=class DisplayName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("DisplayName")],l),t.DisplayName=l},5642:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.GivenName=void 0;const a=r(194),n=r(4183);let l=class GivenName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("GivenName")],l),t.GivenName=l},5553:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.LegalNameDE=void 0;const a=r(194),n=r(349),l=r(90),c=r(5642),s=r(2877),d=r(2234);let f=class LegalNameDE extends n.AbstractLegalName{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",d.Surname)],f.prototype,"surname",void 0),o([(0,a.serialize)({type:c.GivenName}),(0,a.validate)(),i("design:type",Array)],f.prototype,"givenNames",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",l.BirthName)],f.prototype,"birthName",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.Pseudonym)],f.prototype,"pseudonym",void 0),f=o([(0,a.type)("LegalNameDE")],f),t.LegalNameDE=f},2877:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Pseudonym=void 0;const a=r(194),n=r(4183);let l=class Pseudonym extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Pseudonym")],l),t.Pseudonym=l},5227:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Salutation=void 0;const a=r(194),n=r(4183),l=r(9460),c=r(5642),s=r(2234),d=r(3722);let f=class Salutation extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.DisplayName)],f.prototype,"displayName",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",c.GivenName)],f.prototype,"givenName",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.Surname)],f.prototype,"surname",void 0),o([(0,a.serialize)({type:d.Title}),(0,a.validate)({nullable:!0}),i("design:type",Array)],f.prototype,"titles",void 0),f=o([(0,a.type)("Salutation")],f),t.Salutation=f},2234:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Surname=void 0;const a=r(194),n=r(4183);let l=class Surname extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Surname")],l),t.Surname=l},3722:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const a=r(194),n=r(4183);let l=class Title extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Title")],l),t.Title=l},8867:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(349),t),i(r(90),t),i(r(9460),t),i(r(5642),t),i(r(5553),t),i(r(2877),t),i(r(5227),t),i(r(2234),t),i(r(3722),t)},6351:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Age=void 0;const a=r(194),n=r(4183);let l=class Age extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Number)],l.prototype,"value",void 0),l=o([(0,a.type)("Age")],l),t.Age=l},6346:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Gender=void 0;const a=r(194),n=r(4183);let l=class Gender extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Gender")],l),t.Gender=l},3772:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PersonEyeColor=void 0;const a=r(194),n=r(4183);let l=class PersonEyeColor extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("PersonEyeColor")],l),t.PersonEyeColor=l},9931:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PersonHeight=void 0;const a=r(194),n=r(9726),l=[n.LengthUnit.CM,n.LengthUnit.M];let c=class PersonHeight extends n.LengthMeasurement{};o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>l.includes(e)?void 0:`must be one of: ${l}`}),i("design:type",String)],c.prototype,"unit",void 0),c=o([(0,a.type)("PersonHeight")],c),t.PersonHeight=c},6735:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Sex=void 0;const a=r(194),n=r(4183);let l=class Sex extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Sex")],l),t.Sex=l},9438:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6351),t),i(r(6346),t),i(r(3772),t),i(r(9931),t),i(r(6735),t)},7825:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Authorization=void 0;const n=r(194);let l=o=class Authorization extends n.Serializable{static from(e){return super.from(e,o)}};i([(0,n.validate)(),(0,n.serialize)(),a("design:type",String)],l.prototype,"name",void 0),i([(0,n.validate)(),(0,n.serialize)(),a("design:type",String)],l.prototype,"value",void 0),l=o=i([(0,n.type)("Authorization")],l),t.Authorization=l},2500:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildInformation=void 0;const o=r(194),i=r(2890),a=r(9663);t.buildInformation={version:"1.3.0",build:"16",date:"2022-03-18T06:15:58+00:00",commit:"3759e23312fd9be031f9beb9b8c9cf098a1d44b2",dependencies:{"@js-soft/logging-abstractions":"^1.0.0"},libraries:{serval:o.buildInformation,crypto:i.buildInformation,transport:a.buildInformation}}},4198:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Form=void 0;const a=r(194),n=r(3331);let l=class Form extends a.Serializable{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"title",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"description",void 0),o([(0,a.serialize)({type:n.FormItem}),(0,a.validate)(),i("design:type",Array)],l.prototype,"items",void 0),l=o([(0,a.type)("Form")],l),t.Form=l},3331:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemVisible=t.FormItem=t.FormType=void 0;const a=r(194);!function(e){e.Invisible="invisible",e.String="string",e.Select="select",e.Date="date",e.Text="text"}(t.FormType||(t.FormType={}));class FormItem extends a.Serializable{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],FormItem.prototype,"key",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],FormItem.prototype,"type",void 0),t.FormItem=FormItem;class FormItemVisible extends FormItem{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],FormItemVisible.prototype,"label",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Boolean)],FormItemVisible.prototype,"readonly",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],FormItemVisible.prototype,"help",void 0),t.FormItemVisible=FormItemVisible},6985:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4198),t),i(r(3331),t),i(r(2644),t),i(r(1488),t),i(r(3717),t),i(r(4106),t),i(r(6440),t),i(r(897),t)},2644:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemDate=void 0;const a=r(194),n=r(3331);let l=class FormItemDate extends n.FormItemVisible{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"placeholder",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"value",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"minDate",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"maxDate",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"duration",void 0),l=o([(0,a.type)("FormItemDate")],l),t.FormItemDate=l},1488:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemInvisible=void 0;const a=r(194),n=r(3331);let l=class FormItemInvisible extends n.FormItem{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("FormItemInvisible")],l),t.FormItemInvisible=l},3717:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemSelect=void 0;const a=r(194),n=r(3331),l=r(4106);let c=class FormItemSelect extends n.FormItemVisible{};o([(0,a.serialize)({type:l.FormItemSelectItem}),(0,a.validate)(),i("design:type",Array)],c.prototype,"items",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],c.prototype,"selectedKey",void 0),c=o([(0,a.type)("FormItemSelect")],c),t.FormItemSelect=c},4106:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemSelectItem=void 0;const a=r(194);let n=class FormItemSelectItem extends a.Serializable{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"key",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"label",void 0),n=o([(0,a.type)("FormItemSelectItem")],n),t.FormItemSelectItem=n},6440:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemString=void 0;const a=r(194),n=r(3331);let l=class FormItemString extends n.FormItemVisible{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"placeholder",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"value",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"minLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"maxLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"allowedRegex",void 0),l=o([(0,a.type)("FormItemString")],l),t.FormItemString=l},897:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemText=void 0;const a=r(194),n=r(3331);let l=class FormItemText extends n.FormItemVisible{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"placeholder",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"value",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"minLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"maxLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"allowedRegex",void 0),l=o([(0,a.type)("FormItemText")],l),t.FormItemText=l},5590:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3700),t),i(r(7825),t),i(r(2500),t),i(r(8564),t),i(r(6985),t),i(r(7502),t),i(r(127),t),i(r(583),t),i(r(2090),t),i(r(9016),t),i(r(705),t),i(r(5135),t),i(r(877),t),i(r(9074),t),i(r(204),t),i(r(6669),t)},7502:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Mail=void 0;const n=r(194),l=r(9663);let c=o=class Mail extends n.SerializableAsync{static async from(e){return void 0===e.cc&&(e.cc=[]),void 0===e.body&&e.content&&(e.body=e.content,delete e.content),await super.fromT(e,o)}static async fromJSON(e){return await this.from({body:e.body,subject:e.subject,to:e.to?.map((e=>l.CoreAddress.from(e))),cc:e.cc?.map((e=>l.CoreAddress.from(e)))})}};i([(0,n.serialize)({type:l.CoreAddress}),(0,n.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),a("design:type",Array)],c.prototype,"to",void 0),i([(0,n.serialize)({type:l.CoreAddress}),(0,n.validate)({nullable:!0}),a("design:type",Array)],c.prototype,"cc",void 0),i([(0,n.serialize)(),(0,n.validate)(),a("design:type",String)],c.prototype,"subject",void 0),i([(0,n.serialize)(),(0,n.validate)(),a("design:type",String)],c.prototype,"body",void 0),c=o=i([(0,n.type)("Mail")],c),t.Mail=c},127:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMail=void 0;const n=r(194),l=r(583),c=r(2090),s=r(7502);let d=o=class RequestMail extends s.Mail{static async from(e){return await super.fromT(e,o)}static async fromJSON(e){const t=await s.Mail.fromJSON(e),r=await Promise.all(e.requests.map((e=>{switch(e["@type"]){case"AttributesChangeRequest":return n.SerializableAsync.fromT(e,l.AttributesChangeRequest);case"AttributesShareRequest":return n.SerializableAsync.fromT(e,c.AttributesShareRequest);default:throw new Error(`Unknown request type: ${e["@type"]}`)}})));return await this.from({body:t.body,subject:t.subject,to:t.to,cc:t.cc,requests:r})}};i([(0,n.serialize)(),(0,n.validate)(),a("design:type",Array)],d.prototype,"requests",void 0),d=o=i([(0,n.type)("RequestMail")],d),t.RequestMail=d},583:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesChangeRequest=void 0;const n=r(194),l=r(9663),c=r(3700);let s=o=class AttributesChangeRequest extends n.SerializableAsync{static async from(e){return await super.from(e,o)}static async fromJSON(e){const t=await Promise.all(e.attributes.map((e=>c.Attribute.fromJSON(e))));return await this.from({id:e.id?l.CoreId.from(e.id):void 0,attributes:t,applyTo:e.applyTo?l.CoreAddress.from(e.applyTo):void 0,expiresAt:e.expiresAt?l.CoreDate.from(e.expiresAt):void 0,key:e.key,reason:e.reason})}};i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreId)],s.prototype,"id",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],s.prototype,"key",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],s.prototype,"reason",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],s.prototype,"expiresAt",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],s.prototype,"impact",void 0),i([(0,n.serialize)({type:c.Attribute}),(0,n.validate)(),a("design:type",Array)],s.prototype,"attributes",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreAddress)],s.prototype,"applyTo",void 0),s=o=i([(0,n.type)("AttributesChangeRequest")],s),t.AttributesChangeRequest=s},2090:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesShareRequest=void 0;const n=r(194),l=r(9663);let c=o=class AttributesShareRequest extends n.SerializableAsync{static async from(e){return await super.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreId)],c.prototype,"id",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],c.prototype,"key",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],c.prototype,"reason",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],c.prototype,"expiresAt",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],c.prototype,"impact",void 0),i([(0,n.serialize)({type:String}),(0,n.validate)(),a("design:type",Array)],c.prototype,"attributes",void 0),i([(0,n.serialize)({type:l.CoreAddress}),(0,n.validate)(),a("design:type",Array)],c.prototype,"recipients",void 0),c=o=i([(0,n.type)("AttributesShareRequest")],c),t.AttributesShareRequest=c},9016:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=void 0;const n=r(194),l=r(9663);let c=o=class Request extends n.SerializableAsync{static async from(e){return await n.SerializableAsync.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreId)],c.prototype,"id",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],c.prototype,"expiresAt",void 0),i([(0,n.serialize)(),(0,n.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),a("design:type",Array)],c.prototype,"items",void 0),c=o=i([(0,n.type)("Request")],c),t.Request=c},705:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestItem=void 0;const a=r(194);class RequestItem extends a.SerializableAsync{}o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],RequestItem.prototype,"title",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],RequestItem.prototype,"description",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Boolean)],RequestItem.prototype,"mustBeAccepted",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],RequestItem.prototype,"responseMetadata",void 0),t.RequestItem=RequestItem},5135:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestItemGroup=void 0;const a=r(194);let n=class RequestItemGroup extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],n.prototype,"title",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],n.prototype,"description",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Boolean)],n.prototype,"mustBeAccepted",void 0),o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),i("design:type",Array)],n.prototype,"items",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],n.prototype,"responseMetadata",void 0),n=o([(0,a.type)("RequestItemGroup")],n),t.RequestItemGroup=n},877:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;const n=r(194),l=r(9663);let c=o=class Response extends n.SerializableAsync{static async from(e){return await n.SerializableAsync.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)(),a("design:type",l.CoreId)],c.prototype,"requestId",void 0),i([(0,n.serialize)(),(0,n.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),a("design:type",Array)],c.prototype,"items",void 0),c=o=i([(0,n.type)("Response")],c),t.Response=c},9074:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseItem=t.ResponseItemErrorContent=t.ResponseItemRejectContent=t.ResponseItemAcceptContent=void 0;const a=r(194);r(6669);class ResponseItemAcceptContent extends a.SerializableAsync{}t.ResponseItemAcceptContent=ResponseItemAcceptContent;let n=class ResponseItemRejectContent extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"code",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"message",void 0),n=o([(0,a.type)("ResponseItemRejectContent")],n),t.ResponseItemRejectContent=n;let l=class ResponseItemErrorContent extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"code",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"message",void 0),l=o([(0,a.type)("ResponseItemErrorContent")],l),t.ResponseItemErrorContent=l;let c=class ResponseItem extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],c.prototype,"result",void 0),o([(0,a.serialize)({unionTypes:[ResponseItemAcceptContent,n,l]}),(0,a.validate)({nullable:!0}),i("design:type",Object)],c.prototype,"content",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],c.prototype,"metadata",void 0),c=o([(0,a.type)("ResponseItem")],c),t.ResponseItem=c},204:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseItemGroup=void 0;const a=r(194);let n=class ResponseItemGroup extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),i("design:type",Array)],n.prototype,"items",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],n.prototype,"metadata",void 0),n=o([(0,a.type)("ResponseItemGroup")],n),t.ResponseItemGroup=n},6669:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseItemResult=void 0,function(e){e.Accepted="Accepted",e.Rejected="Rejected",e.Failed="Error"}(t.ResponseItemResult||(t.ResponseItemResult={}))},2890:e=>{e.exports=NMSHDCrypto},9663:e=>{e.exports=NMSHDTransport},194:e=>{e.exports=TSServal}},t={};var r=function __webpack_require__(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,__webpack_require__),i.exports}(5590);NMSHDContent=r})();
|
|
1
|
+
var NMSHDContent;(()=>{"use strict";var e={8564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},4183:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractAttributeValue=void 0;const o=r(194);class AbstractAttributeValue extends o.Serializable{}t.AbstractAttributeValue=AbstractAttributeValue},6652:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Attribute=void 0;const n=r(194),l=r(9663),c=r(4183);let s=o=class Attribute extends l.CoreSerializable{static from(e){return super.fromT(e,o)}static fromJSON(e){return super.fromT(e,o)}};i([(0,n.validate)(),(0,n.serialize)(),a("design:type",c.AbstractAttributeValue)],s.prototype,"content",void 0),i([(0,n.validate)(),(0,n.serialize)(),a("design:type",l.CoreDate)],s.prototype,"createdAt",void 0),i([(0,n.serialize)({type:String}),(0,n.validate)({nullable:!0}),a("design:type",Array)],s.prototype,"tags",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],s.prototype,"validFrom",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],s.prototype,"validTo",void 0),s=o=i([(0,n.type)("Attribute")],s),t.Attribute=s},2751:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeQuery=void 0;const n=r(194),l=r(9663);let c=o=class AttributeQuery extends l.CoreSerializable{static from(e){return super.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)(),a("design:type",Boolean)],c.prototype,"onlyValid",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0,customValidator:e=>""===e?"must not be an empty string":void 0}),a("design:type",String)],c.prototype,"attributeType",void 0),i([(0,n.serialize)({type:String}),(0,n.validate)({nullable:!0}),a("design:type",Array)],c.prototype,"tags",void 0),c=o=i([(0,n.type)("AttributeQuery")],c),t.AttributeQuery=c},3700:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4183),t),i(r(6652),t),i(r(2751),t),i(r(3383),t)},5980:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractDay=void 0;const a=r(194),n=r(4183);class AbstractDay extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>e<1||e>31?"has invalid value":void 0}),i("design:type",Number)],AbstractDay.prototype,"value",void 0),t.AbstractDay=AbstractDay},8732:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMonth=void 0;const a=r(194),n=r(4183);var l;!function(e){e[e.January=1]="January",e[e.February=2]="February",e[e.March=3]="March",e[e.April=4]="April",e[e.May=5]="May",e[e.June=6]="June",e[e.July=7]="July",e[e.August=8]="August",e[e.September=9]="September",e[e.October=10]="October",e[e.November=11]="November",e[e.December=12]="December"}(l||(l={}));class AbstractMonth extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>l[e]?void 0:"has invalid value"}),i("design:type",Number)],AbstractMonth.prototype,"value",void 0),t.AbstractMonth=AbstractMonth},68:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractYear=void 0;const a=r(194),n=r(4183);class AbstractYear extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Number)],AbstractYear.prototype,"value",void 0),t.AbstractYear=AbstractYear},3149:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractAddress=void 0;const a=r(194),n=r(4183);class AbstractAddress extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],AbstractAddress.prototype,"recipient",void 0),t.AbstractAddress=AbstractAddress},4967:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.City=void 0;const a=r(194),n=r(4183);let l=class City extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("City")],l),t.City=l},9042:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Country=void 0;const a=r(194),n=r(4183);let l=class Country extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Country")],l),t.Country=l},9498:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DeliveryBoxAddress=void 0;const a=r(194),n=r(3149),l=r(4967),c=r(9042),s=r(699),d=r(7474);let f=class DeliveryBoxAddress extends n.AbstractAddress{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],f.prototype,"userId",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],f.prototype,"deliveryBoxId",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",d.ZipCode)],f.prototype,"zipCode",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.City)],f.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.Country)],f.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.State)],f.prototype,"state",void 0),f=o([(0,a.type)("DeliveryBoxAddress")],f),t.DeliveryBoxAddress=f},7036:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.HouseNumber=void 0;const a=r(194),n=r(4183);let l=class HouseNumber extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("HouseNumber")],l),t.HouseNumber=l},8542:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PostOfficeBoxAddress=void 0;const a=r(194),n=r(3149),l=r(4967),c=r(9042),s=r(699),d=r(7474);let f=class PostOfficeBoxAddress extends n.AbstractAddress{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],f.prototype,"boxId",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",d.ZipCode)],f.prototype,"zipCode",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.City)],f.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.Country)],f.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.State)],f.prototype,"state",void 0),f=o([(0,a.type)("PostOfficeBoxAddress")],f),t.PostOfficeBoxAddress=f},699:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;const a=r(194),n=r(4183);let l=class State extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("State")],l),t.State=l},8098:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Street=void 0;const a=r(194),n=r(4183);let l=class Street extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Street")],l),t.Street=l},7584:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.StreetAddress=void 0;const a=r(194),n=r(3149),l=r(4967),c=r(9042),s=r(7036),d=r(699),f=r(8098),p=r(7474);let u=class StreetAddress extends n.AbstractAddress{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",f.Street)],u.prototype,"street",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.HouseNumber)],u.prototype,"houseNo",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",p.ZipCode)],u.prototype,"zipCode",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.City)],u.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.Country)],u.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",d.State)],u.prototype,"state",void 0),u=o([(0,a.type)("StreetAddress")],u),t.StreetAddress=u},7474:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.ZipCode=void 0;const a=r(194),n=r(4183);let l=class ZipCode extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("ZipCode")],l),t.ZipCode=l},1649:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3149),t),i(r(4967),t),i(r(9042),t),i(r(9498),t),i(r(7036),t),i(r(8542),t),i(r(699),t),i(r(8098),t),i(r(7584),t),i(r(7474),t)},6185:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthCity=void 0;const i=r(194),a=r(4967);let n=class BirthCity extends a.City{};n=o([(0,i.type)("BirthCity")],n),t.BirthCity=n},4945:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthCountry=void 0;const i=r(194),a=r(9042);let n=class BirthCountry extends a.Country{};n=o([(0,i.type)("BirthCountry")],n),t.BirthCountry=n},4472:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthDate=void 0;const a=r(194),n=r(4183),l=r(386),c=r(5772),s=r(7438);let d=class BirthDate extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.BirthDay)],d.prototype,"day",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.BirthMonth)],d.prototype,"month",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.BirthYear)],d.prototype,"year",void 0),d=o([(0,a.type)("BirthDate")],d),t.BirthDate=d},386:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthDay=void 0;const i=r(194),a=r(5980);let n=class BirthDay extends a.AbstractDay{};n=o([(0,i.type)("BirthDay")],n),t.BirthDay=n},5772:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthMonth=void 0;const i=r(194),a=r(8732);let n=class BirthMonth extends a.AbstractMonth{};n=o([(0,i.type)("BirthMonth")],n),t.BirthMonth=n},1538:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthPlace=void 0;const a=r(194),n=r(4183),l=r(6185),c=r(4945),s=r(6140);let d=class BirthPlace extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.BirthCity)],d.prototype,"city",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.BirthCountry)],d.prototype,"country",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.BirthState)],d.prototype,"state",void 0),d=o([(0,a.type)("BirthPlace")],d),t.BirthPlace=d},6140:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthState=void 0;const i=r(194),a=r(699);let n=class BirthState extends a.State{};n=o([(0,i.type)("BirthState")],n),t.BirthState=n},7438:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthYear=void 0;const i=r(194),a=r(68);let n=class BirthYear extends a.AbstractYear{};n=o([(0,i.type)("BirthYear")],n),t.BirthYear=n},4947:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6185),t),i(r(4945),t),i(r(4472),t),i(r(386),t),i(r(5772),t),i(r(1538),t),i(r(6140),t),i(r(7438),t)},247:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractIDCard=void 0;const o=r(4183);class AbstractIDCard extends o.AbstractAttributeValue{}t.AbstractIDCard=AbstractIDCard},5170:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.IDCardAuthorityName=void 0;const a=r(194),n=r(4183);let l=class IDCardAuthorityName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("IDCardAuthorityName")],l),t.IDCardAuthorityName=l},6059:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.IDCardDE=void 0;const a=r(194),n=r(7584),l=r(4472),c=r(1538),s=r(5553),d=r(247);let f=class IDCardDE extends d.AbstractIDCard{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",s.LegalNameDE)],f.prototype,"legalName",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.BirthDate)],f.prototype,"birthDate",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",c.BirthPlace)],f.prototype,"birthPlace",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",n.StreetAddress)],f.prototype,"address",void 0),f=o([(0,a.type)("IDCardDE")],f),t.IDCardDE=f},2448:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.IDCardIssuingDate=void 0;const a=r(194),n=r(4183);let l=class IDCardIssuingDate extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("IDCardIssuingDate")],l),t.IDCardIssuingDate=l},5529:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(247),t),i(r(5170),t),i(r(6059),t),i(r(2448),t)},3383:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1649),t),i(r(4947),t),i(r(5529),t),i(r(1348),t),i(r(8867),t),i(r(9438),t)},5485:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMeasurement=void 0;const a=r(194),n=r(4183);class AbstractMeasurement extends n.AbstractAttributeValue{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],AbstractMeasurement.prototype,"unit",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Number)],AbstractMeasurement.prototype,"value",void 0),t.AbstractMeasurement=AbstractMeasurement},9726:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.LengthMeasurement=t.LengthUnit=void 0;const a=r(194),n=r(5485);var l;!function(e){e.NM="nm",e.UM="um",e.MM="mm",e.CM="cm",e.DM="dm",e.M="m",e.KM="km",e.MI="mi",e.YD="yd",e.FT="ft",e.SM="sm",e.IN="in"}(l=t.LengthUnit||(t.LengthUnit={}));let c=class LengthMeasurement extends n.AbstractMeasurement{};o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>Object.values(l).includes(e)?void 0:`must be one of: ${Object.values(l)}`}),i("design:type",String)],c.prototype,"unit",void 0),c=o([(0,a.type)("LengthMeasurement")],c),t.LengthMeasurement=c},1348:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(9726),t)},349:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractLegalName=void 0;const o=r(4183);class AbstractLegalName extends o.AbstractAttributeValue{}t.AbstractLegalName=AbstractLegalName},90:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BirthName=void 0;const a=r(194),n=r(4183);let l=class BirthName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("BirthName")],l),t.BirthName=l},9460:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayName=void 0;const a=r(194),n=r(4183);let l=class DisplayName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("DisplayName")],l),t.DisplayName=l},5642:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.GivenName=void 0;const a=r(194),n=r(4183);let l=class GivenName extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("GivenName")],l),t.GivenName=l},5553:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.LegalNameDE=void 0;const a=r(194),n=r(349),l=r(90),c=r(5642),s=r(2877),d=r(2234);let f=class LegalNameDE extends n.AbstractLegalName{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",d.Surname)],f.prototype,"surname",void 0),o([(0,a.serialize)({type:c.GivenName}),(0,a.validate)(),i("design:type",Array)],f.prototype,"givenNames",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",l.BirthName)],f.prototype,"birthName",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.Pseudonym)],f.prototype,"pseudonym",void 0),f=o([(0,a.type)("LegalNameDE")],f),t.LegalNameDE=f},2877:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Pseudonym=void 0;const a=r(194),n=r(4183);let l=class Pseudonym extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Pseudonym")],l),t.Pseudonym=l},5227:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Salutation=void 0;const a=r(194),n=r(4183),l=r(9460),c=r(5642),s=r(2234),d=r(3722);let f=class Salutation extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",l.DisplayName)],f.prototype,"displayName",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",c.GivenName)],f.prototype,"givenName",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",s.Surname)],f.prototype,"surname",void 0),o([(0,a.serialize)({type:d.Title}),(0,a.validate)({nullable:!0}),i("design:type",Array)],f.prototype,"titles",void 0),f=o([(0,a.type)("Salutation")],f),t.Salutation=f},2234:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Surname=void 0;const a=r(194),n=r(4183);let l=class Surname extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Surname")],l),t.Surname=l},3722:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const a=r(194),n=r(4183);let l=class Title extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Title")],l),t.Title=l},8867:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(349),t),i(r(90),t),i(r(9460),t),i(r(5642),t),i(r(5553),t),i(r(2877),t),i(r(5227),t),i(r(2234),t),i(r(3722),t)},6351:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Age=void 0;const a=r(194),n=r(4183);let l=class Age extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Number)],l.prototype,"value",void 0),l=o([(0,a.type)("Age")],l),t.Age=l},6346:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Gender=void 0;const a=r(194),n=r(4183);let l=class Gender extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Gender")],l),t.Gender=l},3772:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PersonEyeColor=void 0;const a=r(194),n=r(4183);let l=class PersonEyeColor extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("PersonEyeColor")],l),t.PersonEyeColor=l},9931:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.PersonHeight=void 0;const a=r(194),n=r(9726),l=[n.LengthUnit.CM,n.LengthUnit.M];let c=class PersonHeight extends n.LengthMeasurement{};o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>l.includes(e)?void 0:`must be one of: ${l}`}),i("design:type",String)],c.prototype,"unit",void 0),c=o([(0,a.type)("PersonHeight")],c),t.PersonHeight=c},6735:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Sex=void 0;const a=r(194),n=r(4183);let l=class Sex extends n.AbstractAttributeValue{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("Sex")],l),t.Sex=l},9438:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(6351),t),i(r(6346),t),i(r(3772),t),i(r(9931),t),i(r(6735),t)},7825:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Authorization=void 0;const n=r(194);let l=o=class Authorization extends n.Serializable{static from(e){return super.from(e,o)}};i([(0,n.validate)(),(0,n.serialize)(),a("design:type",String)],l.prototype,"name",void 0),i([(0,n.validate)(),(0,n.serialize)(),a("design:type",String)],l.prototype,"value",void 0),l=o=i([(0,n.type)("Authorization")],l),t.Authorization=l},2500:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildInformation=void 0;const o=r(194),i=r(2890),a=r(9663);t.buildInformation={version:"2.0.0-alpha.3",build:"20",date:"2022-03-21T13:01:58+00:00",commit:"2579c3ec2119e23653f1c564234f849d0193c6d6",dependencies:{"@js-soft/logging-abstractions":"^1.0.0"},libraries:{serval:o.buildInformation,crypto:i.buildInformation,transport:a.buildInformation}}},4198:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Form=void 0;const a=r(194),n=r(3331);let l=class Form extends a.Serializable{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"title",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"description",void 0),o([(0,a.serialize)({type:n.FormItem}),(0,a.validate)(),i("design:type",Array)],l.prototype,"items",void 0),l=o([(0,a.type)("Form")],l),t.Form=l},3331:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemVisible=t.FormItem=t.FormType=void 0;const a=r(194);!function(e){e.Invisible="invisible",e.String="string",e.Select="select",e.Date="date",e.Text="text"}(t.FormType||(t.FormType={}));class FormItem extends a.Serializable{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],FormItem.prototype,"key",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],FormItem.prototype,"type",void 0),t.FormItem=FormItem;class FormItemVisible extends FormItem{}o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],FormItemVisible.prototype,"label",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Boolean)],FormItemVisible.prototype,"readonly",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],FormItemVisible.prototype,"help",void 0),t.FormItemVisible=FormItemVisible},6985:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4198),t),i(r(3331),t),i(r(2644),t),i(r(1488),t),i(r(3717),t),i(r(4106),t),i(r(6440),t),i(r(897),t)},2644:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemDate=void 0;const a=r(194),n=r(3331);let l=class FormItemDate extends n.FormItemVisible{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"placeholder",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"value",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"minDate",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"maxDate",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"duration",void 0),l=o([(0,a.type)("FormItemDate")],l),t.FormItemDate=l},1488:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemInvisible=void 0;const a=r(194),n=r(3331);let l=class FormItemInvisible extends n.FormItem{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"value",void 0),l=o([(0,a.type)("FormItemInvisible")],l),t.FormItemInvisible=l},3717:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemSelect=void 0;const a=r(194),n=r(3331),l=r(4106);let c=class FormItemSelect extends n.FormItemVisible{};o([(0,a.serialize)({type:l.FormItemSelectItem}),(0,a.validate)(),i("design:type",Array)],c.prototype,"items",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],c.prototype,"selectedKey",void 0),c=o([(0,a.type)("FormItemSelect")],c),t.FormItemSelect=c},4106:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemSelectItem=void 0;const a=r(194);let n=class FormItemSelectItem extends a.Serializable{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"key",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"label",void 0),n=o([(0,a.type)("FormItemSelectItem")],n),t.FormItemSelectItem=n},6440:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemString=void 0;const a=r(194),n=r(3331);let l=class FormItemString extends n.FormItemVisible{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"placeholder",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"value",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"minLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"maxLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"allowedRegex",void 0),l=o([(0,a.type)("FormItemString")],l),t.FormItemString=l},897:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemText=void 0;const a=r(194),n=r(3331);let l=class FormItemText extends n.FormItemVisible{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"placeholder",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"value",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"minLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Number)],l.prototype,"maxLength",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],l.prototype,"allowedRegex",void 0),l=o([(0,a.type)("FormItemText")],l),t.FormItemText=l},5590:function(e,t,r){var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3700),t),i(r(7825),t),i(r(2500),t),i(r(8564),t),i(r(6985),t),i(r(7502),t),i(r(127),t),i(r(583),t),i(r(2090),t),i(r(9016),t),i(r(705),t),i(r(5135),t),i(r(877),t),i(r(9074),t),i(r(204),t),i(r(6669),t)},7502:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Mail=void 0;const n=r(194),l=r(9663);let c=o=class Mail extends n.SerializableAsync{static async from(e){return void 0===e.cc&&(e.cc=[]),void 0===e.body&&e.content&&(e.body=e.content,delete e.content),await super.fromT(e,o)}static async fromJSON(e){return await this.from({body:e.body,subject:e.subject,to:e.to?.map((e=>l.CoreAddress.from(e))),cc:e.cc?.map((e=>l.CoreAddress.from(e)))})}};i([(0,n.serialize)({type:l.CoreAddress}),(0,n.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),a("design:type",Array)],c.prototype,"to",void 0),i([(0,n.serialize)({type:l.CoreAddress}),(0,n.validate)({nullable:!0}),a("design:type",Array)],c.prototype,"cc",void 0),i([(0,n.serialize)(),(0,n.validate)(),a("design:type",String)],c.prototype,"subject",void 0),i([(0,n.serialize)(),(0,n.validate)(),a("design:type",String)],c.prototype,"body",void 0),c=o=i([(0,n.type)("Mail")],c),t.Mail=c},127:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMail=void 0;const n=r(194),l=r(583),c=r(2090),s=r(7502);let d=o=class RequestMail extends s.Mail{static async from(e){return await super.fromT(e,o)}static async fromJSON(e){const t=await s.Mail.fromJSON(e),r=await Promise.all(e.requests.map((e=>{switch(e["@type"]){case"AttributesChangeRequest":return n.SerializableAsync.fromT(e,l.AttributesChangeRequest);case"AttributesShareRequest":return n.SerializableAsync.fromT(e,c.AttributesShareRequest);default:throw new Error(`Unknown request type: ${e["@type"]}`)}})));return await this.from({body:t.body,subject:t.subject,to:t.to,cc:t.cc,requests:r})}};i([(0,n.serialize)(),(0,n.validate)(),a("design:type",Array)],d.prototype,"requests",void 0),d=o=i([(0,n.type)("RequestMail")],d),t.RequestMail=d},583:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesChangeRequest=void 0;const n=r(194),l=r(9663),c=r(6652);let s=o=class AttributesChangeRequest extends n.SerializableAsync{static async from(e){return await super.from(e,o)}static async fromJSON(e){const t=await Promise.all(e.attributes.map((e=>c.Attribute.fromJSON(e))));return await this.from({id:e.id?l.CoreId.from(e.id):void 0,attributes:t,applyTo:e.applyTo?l.CoreAddress.from(e.applyTo):void 0,expiresAt:e.expiresAt?l.CoreDate.from(e.expiresAt):void 0,key:e.key,reason:e.reason})}};i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreId)],s.prototype,"id",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],s.prototype,"key",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],s.prototype,"reason",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],s.prototype,"expiresAt",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],s.prototype,"impact",void 0),i([(0,n.serialize)({type:c.Attribute}),(0,n.validate)(),a("design:type",Array)],s.prototype,"attributes",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreAddress)],s.prototype,"applyTo",void 0),s=o=i([(0,n.type)("AttributesChangeRequest")],s),t.AttributesChangeRequest=s},2090:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesShareRequest=void 0;const n=r(194),l=r(9663);let c=o=class AttributesShareRequest extends n.SerializableAsync{static async from(e){return await super.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreId)],c.prototype,"id",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],c.prototype,"key",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],c.prototype,"reason",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],c.prototype,"expiresAt",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",String)],c.prototype,"impact",void 0),i([(0,n.serialize)({type:String}),(0,n.validate)(),a("design:type",Array)],c.prototype,"attributes",void 0),i([(0,n.serialize)({type:l.CoreAddress}),(0,n.validate)(),a("design:type",Array)],c.prototype,"recipients",void 0),c=o=i([(0,n.type)("AttributesShareRequest")],c),t.AttributesShareRequest=c},9016:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=void 0;const n=r(194),l=r(9663);let c=o=class Request extends n.SerializableAsync{static async from(e){return await n.SerializableAsync.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreId)],c.prototype,"id",void 0),i([(0,n.serialize)(),(0,n.validate)({nullable:!0}),a("design:type",l.CoreDate)],c.prototype,"expiresAt",void 0),i([(0,n.serialize)(),(0,n.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),a("design:type",Array)],c.prototype,"items",void 0),c=o=i([(0,n.type)("Request")],c),t.Request=c},705:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestItem=void 0;const a=r(194);class RequestItem extends a.SerializableAsync{}o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],RequestItem.prototype,"title",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],RequestItem.prototype,"description",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Boolean)],RequestItem.prototype,"mustBeAccepted",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],RequestItem.prototype,"responseMetadata",void 0),t.RequestItem=RequestItem},5135:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.RequestItemGroup=void 0;const a=r(194);let n=class RequestItemGroup extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],n.prototype,"title",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",String)],n.prototype,"description",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",Boolean)],n.prototype,"mustBeAccepted",void 0),o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),i("design:type",Array)],n.prototype,"items",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],n.prototype,"responseMetadata",void 0),n=o([(0,a.type)("RequestItemGroup")],n),t.RequestItemGroup=n},877:function(e,t,r){var o,i=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.Response=void 0;const n=r(194),l=r(9663);let c=o=class Response extends n.SerializableAsync{static async from(e){return await n.SerializableAsync.fromT(e,o)}};i([(0,n.serialize)(),(0,n.validate)(),a("design:type",l.CoreId)],c.prototype,"requestId",void 0),i([(0,n.serialize)(),(0,n.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),a("design:type",Array)],c.prototype,"items",void 0),c=o=i([(0,n.type)("Response")],c),t.Response=c},9074:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseItem=t.ResponseItemErrorContent=t.ResponseItemRejectContent=t.ResponseItemAcceptContent=void 0;const a=r(194);r(6669);class ResponseItemAcceptContent extends a.SerializableAsync{}t.ResponseItemAcceptContent=ResponseItemAcceptContent;let n=class ResponseItemRejectContent extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"code",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],n.prototype,"message",void 0),n=o([(0,a.type)("ResponseItemRejectContent")],n),t.ResponseItemRejectContent=n;let l=class ResponseItemErrorContent extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"code",void 0),o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],l.prototype,"message",void 0),l=o([(0,a.type)("ResponseItemErrorContent")],l),t.ResponseItemErrorContent=l;let c=class ResponseItem extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)(),i("design:type",String)],c.prototype,"result",void 0),o([(0,a.serialize)({unionTypes:[ResponseItemAcceptContent,n,l]}),(0,a.validate)({nullable:!0}),i("design:type",Object)],c.prototype,"content",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],c.prototype,"metadata",void 0),c=o([(0,a.type)("ResponseItem")],c),t.ResponseItem=c},204:function(e,t,r){var o=this&&this.__decorate||function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseItemGroup=void 0;const a=r(194);let n=class ResponseItemGroup extends a.SerializableAsync{};o([(0,a.serialize)(),(0,a.validate)({customValidator:e=>e.length<1?"may not be empty":void 0}),i("design:type",Array)],n.prototype,"items",void 0),o([(0,a.serialize)(),(0,a.validate)({nullable:!0}),i("design:type",Object)],n.prototype,"metadata",void 0),n=o([(0,a.type)("ResponseItemGroup")],n),t.ResponseItemGroup=n},6669:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseItemResult=void 0,function(e){e.Accepted="Accepted",e.Rejected="Rejected",e.Failed="Error"}(t.ResponseItemResult||(t.ResponseItemResult={}))},2890:e=>{e.exports=NMSHDCrypto},9663:e=>{e.exports=NMSHDTransport},194:e=>{e.exports=TSServal}},t={};var r=function __webpack_require__(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,__webpack_require__),i.exports}(5590);NMSHDContent=r})();
|
|
2
2
|
//# sourceMappingURL=nmshd.content.min.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/content",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "The content library defines data structures that can be transmitted using the transport library.",
|
|
5
5
|
"homepage": "https://enmeshed.eu",
|
|
6
6
|
"repository": "github:nmshd/cns-content",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"@nmshd/crypto": "1.0.8",
|
|
48
48
|
"@nmshd/transport": "1.1.10",
|
|
49
49
|
"@types/chai": "^4.3.0",
|
|
50
|
-
"@types/luxon": "^2.3.
|
|
50
|
+
"@types/luxon": "^2.3.1",
|
|
51
51
|
"@types/mocha": "^9.1.0",
|
|
52
52
|
"@types/node": "^17.0.21",
|
|
53
53
|
"bt-runner": "^2.0.5",
|
|
54
54
|
"chai": "^4.3.6",
|
|
55
55
|
"copy-webpack-plugin": "^10.2.4",
|
|
56
|
-
"eslint": "^8.
|
|
56
|
+
"eslint": "^8.11.0",
|
|
57
57
|
"madge": "^5.0.1",
|
|
58
|
-
"mocha": "^9.2.
|
|
59
|
-
"prettier": "^2.
|
|
58
|
+
"mocha": "^9.2.2",
|
|
59
|
+
"prettier": "^2.6.0",
|
|
60
60
|
"terser-webpack-plugin": "5.3.1",
|
|
61
61
|
"ts-node": "^10.7.0",
|
|
62
|
-
"tsconfig-paths": "^3.
|
|
62
|
+
"tsconfig-paths": "^3.14.0",
|
|
63
63
|
"typescript": "^4.6.2",
|
|
64
64
|
"webpack": "^5.70.0",
|
|
65
65
|
"webpack-cli": "^4.9.2"
|