@nmshd/content 2.3.4 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attributes/AbstractAttributeQuery.d.ts +1 -7
- package/dist/attributes/AbstractAttributeQuery.js +0 -20
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -1
- package/dist/attributes/IdentityAttributeQuery.d.ts +7 -0
- package/dist/attributes/IdentityAttributeQuery.js +11 -0
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -1
- package/dist/attributes/RelationshipAttributeQuery.d.ts +14 -2
- package/dist/attributes/RelationshipAttributeQuery.js +21 -1
- package/dist/attributes/RelationshipAttributeQuery.js.map +1 -1
- package/dist/attributes/ThirdPartyRelationshipAttributeQuery.d.ts +7 -1
- package/dist/attributes/ThirdPartyRelationshipAttributeQuery.js +10 -0
- package/dist/attributes/ThirdPartyRelationshipAttributeQuery.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/lib-web/nmshd.content.js +47 -26
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CoreSerializable, ICoreSerializable } from "@nmshd/transport";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
3
|
export interface AbstractAttributeQueryJSON extends ContentJSON {
|
|
4
|
-
validFrom?: string;
|
|
5
|
-
validTo?: string;
|
|
6
4
|
}
|
|
7
5
|
export interface IAbstractAttributeQuery extends ICoreSerializable {
|
|
8
|
-
validFrom?: ICoreDate;
|
|
9
|
-
validTo?: ICoreDate;
|
|
10
6
|
}
|
|
11
7
|
export declare abstract class AbstractAttributeQuery extends CoreSerializable implements IAbstractAttributeQuery {
|
|
12
|
-
validFrom?: CoreDate;
|
|
13
|
-
validTo?: CoreDate;
|
|
14
8
|
}
|
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.AbstractAttributeQuery = void 0;
|
|
13
|
-
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
4
|
const transport_1 = require("@nmshd/transport");
|
|
15
5
|
class AbstractAttributeQuery extends transport_1.CoreSerializable {
|
|
16
6
|
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
20
|
-
__metadata("design:type", transport_1.CoreDate)
|
|
21
|
-
], AbstractAttributeQuery.prototype, "validFrom", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, ts_serval_1.serialize)(),
|
|
24
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", transport_1.CoreDate)
|
|
26
|
-
], AbstractAttributeQuery.prototype, "validTo", void 0);
|
|
27
7
|
exports.AbstractAttributeQuery = AbstractAttributeQuery;
|
|
28
8
|
//# sourceMappingURL=AbstractAttributeQuery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeQuery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/AbstractAttributeQuery.ts"],"names":[],"mappings":";;;AAAA,gDAAsE;AAKtE,MAAsB,sBAAuB,SAAQ,4BAAgB;CAAsC;AAA3G,wDAA2G"}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
+
import { CoreDate, ICoreDate } from "@nmshd/transport";
|
|
1
2
|
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
|
|
2
3
|
import { AttributeValues } from "./AttributeValueTypes";
|
|
3
4
|
export interface IdentityAttributeQueryJSON extends AbstractAttributeQueryJSON {
|
|
4
5
|
"@type": "IdentityAttributeQuery";
|
|
5
6
|
valueType: AttributeValues.Identity.TypeName;
|
|
6
7
|
tags?: string[];
|
|
8
|
+
validFrom?: string;
|
|
9
|
+
validTo?: string;
|
|
7
10
|
}
|
|
8
11
|
export interface IIdentityAttributeQuery extends IAbstractAttributeQuery {
|
|
9
12
|
valueType: AttributeValues.Identity.TypeName;
|
|
10
13
|
tags?: string[];
|
|
14
|
+
validFrom?: ICoreDate;
|
|
15
|
+
validTo?: ICoreDate;
|
|
11
16
|
}
|
|
12
17
|
export declare class IdentityAttributeQuery extends AbstractAttributeQuery implements IIdentityAttributeQuery {
|
|
13
18
|
valueType: AttributeValues.Identity.TypeName;
|
|
14
19
|
tags?: string[];
|
|
20
|
+
validFrom?: CoreDate;
|
|
21
|
+
validTo?: CoreDate;
|
|
15
22
|
static from(value: IIdentityAttributeQuery | Omit<IdentityAttributeQueryJSON, "@type">): IdentityAttributeQuery;
|
|
16
23
|
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): IdentityAttributeQueryJSON;
|
|
17
24
|
private static validateTags;
|
|
@@ -12,6 +12,7 @@ var IdentityAttributeQuery_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.IdentityAttributeQuery = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
16
|
const AbstractAttributeQuery_1 = require("./AbstractAttributeQuery");
|
|
16
17
|
const AttributeValueTypes_1 = require("./AttributeValueTypes");
|
|
17
18
|
let IdentityAttributeQuery = IdentityAttributeQuery_1 = class IdentityAttributeQuery extends AbstractAttributeQuery_1.AbstractAttributeQuery {
|
|
@@ -45,6 +46,16 @@ __decorate([
|
|
|
45
46
|
(0, ts_serval_1.validate)({ nullable: true, customValidator: IdentityAttributeQuery_1.validateTags }),
|
|
46
47
|
__metadata("design:type", Array)
|
|
47
48
|
], IdentityAttributeQuery.prototype, "tags", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, ts_serval_1.serialize)(),
|
|
51
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
53
|
+
], IdentityAttributeQuery.prototype, "validFrom", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, ts_serval_1.serialize)(),
|
|
56
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
58
|
+
], IdentityAttributeQuery.prototype, "validTo", void 0);
|
|
48
59
|
IdentityAttributeQuery = IdentityAttributeQuery_1 = __decorate([
|
|
49
60
|
(0, ts_serval_1.type)("IdentityAttributeQuery")
|
|
50
61
|
], IdentityAttributeQuery);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qEAAsH;AACtH,+DAAuD;
|
|
1
|
+
{"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;A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B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;uDAAA;AApBhB,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CA8ClC;AA9CY,wDAAsB"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { CoreAddress, ICoreAddress } from "@nmshd/transport";
|
|
2
|
+
import { CoreAddress, CoreDate, ICoreAddress, ICoreDate } from "@nmshd/transport";
|
|
3
3
|
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
|
|
4
4
|
import { AttributeValues } from "./AttributeValueTypes";
|
|
5
|
-
import { IValueHints, ValueHints, ValueHintsJSON } from "./hints";
|
|
6
5
|
import { RelationshipAttributeConfidentiality } from "./RelationshipAttributeConfidentiality";
|
|
6
|
+
import { IValueHints, ValueHints, ValueHintsJSON } from "./hints";
|
|
7
7
|
export interface RelationshipAttributeCreationHintsJSON {
|
|
8
8
|
title: string;
|
|
9
9
|
valueType: AttributeValues.Relationship.TypeName;
|
|
10
10
|
description?: string;
|
|
11
11
|
valueHints?: ValueHintsJSON;
|
|
12
12
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
13
|
+
validFrom?: string;
|
|
14
|
+
validTo?: string;
|
|
13
15
|
}
|
|
14
16
|
export interface IRelationshipAttributeCreationHints extends ISerializable {
|
|
15
17
|
title: string;
|
|
@@ -17,6 +19,8 @@ export interface IRelationshipAttributeCreationHints extends ISerializable {
|
|
|
17
19
|
description?: string;
|
|
18
20
|
valueHints?: IValueHints;
|
|
19
21
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
22
|
+
validFrom?: ICoreDate;
|
|
23
|
+
validTo?: ICoreDate;
|
|
20
24
|
}
|
|
21
25
|
/**
|
|
22
26
|
* AttributeHints are rendering hints with a `title` and a possible `description` set.
|
|
@@ -29,6 +33,8 @@ export declare class RelationshipAttributeCreationHints extends Serializable imp
|
|
|
29
33
|
description?: string;
|
|
30
34
|
valueHints?: ValueHints;
|
|
31
35
|
confidentiality: RelationshipAttributeConfidentiality;
|
|
36
|
+
validFrom?: CoreDate;
|
|
37
|
+
validTo?: CoreDate;
|
|
32
38
|
protected static preFrom(value: any): any;
|
|
33
39
|
static from(value: IRelationshipAttributeCreationHints | Omit<RelationshipAttributeCreationHintsJSON, "@type">): RelationshipAttributeCreationHints;
|
|
34
40
|
}
|
|
@@ -37,16 +43,22 @@ export interface RelationshipAttributeQueryJSON extends AbstractAttributeQueryJS
|
|
|
37
43
|
key: string;
|
|
38
44
|
owner: string;
|
|
39
45
|
attributeCreationHints: RelationshipAttributeCreationHintsJSON;
|
|
46
|
+
validFrom?: string;
|
|
47
|
+
validTo?: string;
|
|
40
48
|
}
|
|
41
49
|
export interface IRelationshipAttributeQuery extends IAbstractAttributeQuery {
|
|
42
50
|
key: string;
|
|
43
51
|
owner: ICoreAddress;
|
|
44
52
|
attributeCreationHints: IRelationshipAttributeCreationHints;
|
|
53
|
+
validFrom?: ICoreDate;
|
|
54
|
+
validTo?: ICoreDate;
|
|
45
55
|
}
|
|
46
56
|
export declare class RelationshipAttributeQuery extends AbstractAttributeQuery implements IRelationshipAttributeQuery {
|
|
47
57
|
key: string;
|
|
48
58
|
owner: CoreAddress;
|
|
49
59
|
attributeCreationHints: RelationshipAttributeCreationHints;
|
|
60
|
+
validFrom?: CoreDate;
|
|
61
|
+
validTo?: CoreDate;
|
|
50
62
|
static from(value: IRelationshipAttributeQuery | Omit<RelationshipAttributeQueryJSON, "@type">): RelationshipAttributeQuery;
|
|
51
63
|
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): RelationshipAttributeQueryJSON;
|
|
52
64
|
}
|
|
@@ -14,8 +14,8 @@ const ts_serval_1 = require("@js-soft/ts-serval");
|
|
|
14
14
|
const transport_1 = require("@nmshd/transport");
|
|
15
15
|
const AbstractAttributeQuery_1 = require("./AbstractAttributeQuery");
|
|
16
16
|
const AttributeValueTypes_1 = require("./AttributeValueTypes");
|
|
17
|
-
const hints_1 = require("./hints");
|
|
18
17
|
const RelationshipAttributeConfidentiality_1 = require("./RelationshipAttributeConfidentiality");
|
|
18
|
+
const hints_1 = require("./hints");
|
|
19
19
|
const ProprietaryAttributeValue_1 = require("./types/proprietary/ProprietaryAttributeValue");
|
|
20
20
|
/**
|
|
21
21
|
* AttributeHints are rendering hints with a `title` and a possible `description` set.
|
|
@@ -65,6 +65,16 @@ __decorate([
|
|
|
65
65
|
}),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], RelationshipAttributeCreationHints.prototype, "confidentiality", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, ts_serval_1.serialize)(),
|
|
70
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
71
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
72
|
+
], RelationshipAttributeCreationHints.prototype, "validFrom", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, ts_serval_1.serialize)(),
|
|
75
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
76
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
77
|
+
], RelationshipAttributeCreationHints.prototype, "validTo", void 0);
|
|
68
78
|
RelationshipAttributeCreationHints = __decorate([
|
|
69
79
|
(0, ts_serval_1.type)("RelationshipAttributeCreationHints")
|
|
70
80
|
], RelationshipAttributeCreationHints);
|
|
@@ -92,6 +102,16 @@ __decorate([
|
|
|
92
102
|
(0, ts_serval_1.validate)(),
|
|
93
103
|
__metadata("design:type", RelationshipAttributeCreationHints)
|
|
94
104
|
], RelationshipAttributeQuery.prototype, "attributeCreationHints", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, ts_serval_1.serialize)(),
|
|
107
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
108
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
109
|
+
], RelationshipAttributeQuery.prototype, "validFrom", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, ts_serval_1.serialize)(),
|
|
112
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
113
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
114
|
+
], RelationshipAttributeQuery.prototype, "validTo", void 0);
|
|
95
115
|
RelationshipAttributeQuery = __decorate([
|
|
96
116
|
(0, ts_serval_1.type)("RelationshipAttributeQuery")
|
|
97
117
|
], RelationshipAttributeQuery);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,
|
|
1
|
+
{"version":3,"file":"RelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAiF;AACjF,qEAAsH;AACtH,+DAAuD;AACvD,iGAA6F;AAC7F,mCAAiE;AACjE,6FAA4G;AAsB5G;;;;GAIG;AAEI,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,wBAAY;IAuCtD,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,WAAW;YAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAA;QAEvE,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,IAAI,CACd,KAAkG;QAElG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjDG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;;iEACH;AAEpB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ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OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAmC,CAAA;IACrF,CAAC;CACJ,CAAA;AAhCG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;;uDACL;AAElB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,uBAAW;yDAAA;AAEzB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACoB,kCAAkC;0EAAA;AAEjE;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;6DAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;2DAAA;AAnBhB,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAiCtC;AAjCY,gEAA0B"}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import { CoreAddress, ICoreAddress } from "@nmshd/transport";
|
|
1
|
+
import { CoreAddress, CoreDate, ICoreAddress, ICoreDate } from "@nmshd/transport";
|
|
2
2
|
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
|
|
3
3
|
export interface ThirdPartyRelationshipAttributeQueryJSON extends AbstractAttributeQueryJSON {
|
|
4
4
|
"@type": "ThirdPartyRelationshipAttributeQuery";
|
|
5
5
|
key: string;
|
|
6
6
|
owner: string;
|
|
7
7
|
thirdParty: string[];
|
|
8
|
+
validFrom?: string;
|
|
9
|
+
validTo?: string;
|
|
8
10
|
}
|
|
9
11
|
export interface IThirdPartyRelationshipAttributeQuery extends IAbstractAttributeQuery {
|
|
10
12
|
key: string;
|
|
11
13
|
owner: ICoreAddress;
|
|
12
14
|
thirdParty: ICoreAddress[];
|
|
15
|
+
validFrom?: ICoreDate;
|
|
16
|
+
validTo?: ICoreDate;
|
|
13
17
|
}
|
|
14
18
|
export declare class ThirdPartyRelationshipAttributeQuery extends AbstractAttributeQuery implements IThirdPartyRelationshipAttributeQuery {
|
|
15
19
|
key: string;
|
|
16
20
|
owner: CoreAddress;
|
|
17
21
|
thirdParty: CoreAddress[];
|
|
22
|
+
validFrom?: CoreDate;
|
|
23
|
+
validTo?: CoreDate;
|
|
18
24
|
protected static preFrom(value: any): any;
|
|
19
25
|
static from(value: IThirdPartyRelationshipAttributeQuery | Omit<ThirdPartyRelationshipAttributeQueryJSON, "@type">): ThirdPartyRelationshipAttributeQuery;
|
|
20
26
|
toJSON(verbose?: boolean | undefined, serializeAsString?: boolean | undefined): ThirdPartyRelationshipAttributeQueryJSON;
|
|
@@ -42,6 +42,16 @@ __decorate([
|
|
|
42
42
|
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
43
43
|
__metadata("design:type", Array)
|
|
44
44
|
], ThirdPartyRelationshipAttributeQuery.prototype, "thirdParty", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, ts_serval_1.serialize)(),
|
|
47
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
49
|
+
], ThirdPartyRelationshipAttributeQuery.prototype, "validFrom", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, ts_serval_1.serialize)(),
|
|
52
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
53
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
54
|
+
], ThirdPartyRelationshipAttributeQuery.prototype, "validTo", void 0);
|
|
45
55
|
ThirdPartyRelationshipAttributeQuery = __decorate([
|
|
46
56
|
(0, ts_serval_1.type)("ThirdPartyRelationshipAttributeQuery")
|
|
47
57
|
], ThirdPartyRelationshipAttributeQuery);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThirdPartyRelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/ThirdPartyRelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"ThirdPartyRelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/ThirdPartyRelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAiF;AACjF,qEAAsH;AAmB/G,IAAM,oCAAoC,GAA1C,MAAM,oCACT,SAAQ,+CAAsB;IAuBpB,MAAM,CAAU,OAAO,CAAC,KAAU;QACxC,IAAI,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ,IAAI,SAAS,IAAI,KAAK,CAAC,UAAU,EAAE;YACvE,KAAK,CAAC,UAAU,GAAG,CAAC,uBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAA;SAC1D;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAEM,MAAM,CAAC,IAAI,CACd,KAAsG;QAEtG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM,CAClB,OAA6B,EAC7B,iBAAuC;QAEvC,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAA6C,CAAA;IAC/F,CAAC;CACJ,CAAA;AAxCG;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;;iEACL;AAElB;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,uBAAW;mEAAA;AAEzB;IAAC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;wEACtD;AAEhC;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;uEAAA;AAE3B;IAAC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;qEAAA;AAtBhB,oCAAoC;IADhD,IAAA,gBAAI,EAAC,sCAAsC,CAAC;GAChC,oCAAoC,CA4ChD;AA5CY,oFAAoC"}
|
package/dist/buildInformation.js
CHANGED
|
@@ -5,10 +5,10 @@ const ts_serval_1 = require("@js-soft/ts-serval");
|
|
|
5
5
|
const crypto_1 = require("@nmshd/crypto");
|
|
6
6
|
const transport_1 = require("@nmshd/transport");
|
|
7
7
|
exports.buildInformation = {
|
|
8
|
-
version: "2.3.
|
|
9
|
-
build: "
|
|
10
|
-
date: "2023-07-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.3.6",
|
|
9
|
+
build: "135",
|
|
10
|
+
date: "2023-07-13T13:49:20+00:00",
|
|
11
|
+
commit: "ff07b752ed0c24d6882d9c106c43233286e847c2",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","@nmshd/iql":"^0.0.1","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
package/lib-web/nmshd.content.js
CHANGED
|
@@ -61,34 +61,14 @@ exports.AbstractAttribute = AbstractAttribute;
|
|
|
61
61
|
/*!***************************************************!*\
|
|
62
62
|
!*** ./dist/attributes/AbstractAttributeQuery.js ***!
|
|
63
63
|
\***************************************************/
|
|
64
|
-
/***/ (
|
|
64
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
68
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
69
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
70
|
-
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;
|
|
71
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
72
|
-
};
|
|
73
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
74
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
75
|
-
};
|
|
76
67
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77
68
|
exports.AbstractAttributeQuery = void 0;
|
|
78
|
-
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
79
69
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
80
70
|
class AbstractAttributeQuery extends transport_1.CoreSerializable {
|
|
81
71
|
}
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, ts_serval_1.serialize)(),
|
|
84
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
85
|
-
__metadata("design:type", transport_1.CoreDate)
|
|
86
|
-
], AbstractAttributeQuery.prototype, "validFrom", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, ts_serval_1.serialize)(),
|
|
89
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
90
|
-
__metadata("design:type", transport_1.CoreDate)
|
|
91
|
-
], AbstractAttributeQuery.prototype, "validTo", void 0);
|
|
92
72
|
exports.AbstractAttributeQuery = AbstractAttributeQuery;
|
|
93
73
|
//# sourceMappingURL=AbstractAttributeQuery.js.map
|
|
94
74
|
|
|
@@ -451,6 +431,7 @@ var IdentityAttributeQuery_1;
|
|
|
451
431
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
452
432
|
exports.IdentityAttributeQuery = void 0;
|
|
453
433
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
434
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
454
435
|
const AbstractAttributeQuery_1 = __webpack_require__(/*! ./AbstractAttributeQuery */ "./dist/attributes/AbstractAttributeQuery.js");
|
|
455
436
|
const AttributeValueTypes_1 = __webpack_require__(/*! ./AttributeValueTypes */ "./dist/attributes/AttributeValueTypes.js");
|
|
456
437
|
let IdentityAttributeQuery = IdentityAttributeQuery_1 = class IdentityAttributeQuery extends AbstractAttributeQuery_1.AbstractAttributeQuery {
|
|
@@ -484,6 +465,16 @@ __decorate([
|
|
|
484
465
|
(0, ts_serval_1.validate)({ nullable: true, customValidator: IdentityAttributeQuery_1.validateTags }),
|
|
485
466
|
__metadata("design:type", Array)
|
|
486
467
|
], IdentityAttributeQuery.prototype, "tags", void 0);
|
|
468
|
+
__decorate([
|
|
469
|
+
(0, ts_serval_1.serialize)(),
|
|
470
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
471
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
472
|
+
], IdentityAttributeQuery.prototype, "validFrom", void 0);
|
|
473
|
+
__decorate([
|
|
474
|
+
(0, ts_serval_1.serialize)(),
|
|
475
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
476
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
477
|
+
], IdentityAttributeQuery.prototype, "validTo", void 0);
|
|
487
478
|
IdentityAttributeQuery = IdentityAttributeQuery_1 = __decorate([
|
|
488
479
|
(0, ts_serval_1.type)("IdentityAttributeQuery")
|
|
489
480
|
], IdentityAttributeQuery);
|
|
@@ -625,8 +616,8 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
625
616
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
626
617
|
const AbstractAttributeQuery_1 = __webpack_require__(/*! ./AbstractAttributeQuery */ "./dist/attributes/AbstractAttributeQuery.js");
|
|
627
618
|
const AttributeValueTypes_1 = __webpack_require__(/*! ./AttributeValueTypes */ "./dist/attributes/AttributeValueTypes.js");
|
|
628
|
-
const hints_1 = __webpack_require__(/*! ./hints */ "./dist/attributes/hints/index.js");
|
|
629
619
|
const RelationshipAttributeConfidentiality_1 = __webpack_require__(/*! ./RelationshipAttributeConfidentiality */ "./dist/attributes/RelationshipAttributeConfidentiality.js");
|
|
620
|
+
const hints_1 = __webpack_require__(/*! ./hints */ "./dist/attributes/hints/index.js");
|
|
630
621
|
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./types/proprietary/ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
631
622
|
/**
|
|
632
623
|
* AttributeHints are rendering hints with a `title` and a possible `description` set.
|
|
@@ -676,6 +667,16 @@ __decorate([
|
|
|
676
667
|
}),
|
|
677
668
|
__metadata("design:type", String)
|
|
678
669
|
], RelationshipAttributeCreationHints.prototype, "confidentiality", void 0);
|
|
670
|
+
__decorate([
|
|
671
|
+
(0, ts_serval_1.serialize)(),
|
|
672
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
673
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
674
|
+
], RelationshipAttributeCreationHints.prototype, "validFrom", void 0);
|
|
675
|
+
__decorate([
|
|
676
|
+
(0, ts_serval_1.serialize)(),
|
|
677
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
678
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
679
|
+
], RelationshipAttributeCreationHints.prototype, "validTo", void 0);
|
|
679
680
|
RelationshipAttributeCreationHints = __decorate([
|
|
680
681
|
(0, ts_serval_1.type)("RelationshipAttributeCreationHints")
|
|
681
682
|
], RelationshipAttributeCreationHints);
|
|
@@ -703,6 +704,16 @@ __decorate([
|
|
|
703
704
|
(0, ts_serval_1.validate)(),
|
|
704
705
|
__metadata("design:type", RelationshipAttributeCreationHints)
|
|
705
706
|
], RelationshipAttributeQuery.prototype, "attributeCreationHints", void 0);
|
|
707
|
+
__decorate([
|
|
708
|
+
(0, ts_serval_1.serialize)(),
|
|
709
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
710
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
711
|
+
], RelationshipAttributeQuery.prototype, "validFrom", void 0);
|
|
712
|
+
__decorate([
|
|
713
|
+
(0, ts_serval_1.serialize)(),
|
|
714
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
715
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
716
|
+
], RelationshipAttributeQuery.prototype, "validTo", void 0);
|
|
706
717
|
RelationshipAttributeQuery = __decorate([
|
|
707
718
|
(0, ts_serval_1.type)("RelationshipAttributeQuery")
|
|
708
719
|
], RelationshipAttributeQuery);
|
|
@@ -761,6 +772,16 @@ __decorate([
|
|
|
761
772
|
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
762
773
|
__metadata("design:type", Array)
|
|
763
774
|
], ThirdPartyRelationshipAttributeQuery.prototype, "thirdParty", void 0);
|
|
775
|
+
__decorate([
|
|
776
|
+
(0, ts_serval_1.serialize)(),
|
|
777
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
778
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
779
|
+
], ThirdPartyRelationshipAttributeQuery.prototype, "validFrom", void 0);
|
|
780
|
+
__decorate([
|
|
781
|
+
(0, ts_serval_1.serialize)(),
|
|
782
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
783
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
784
|
+
], ThirdPartyRelationshipAttributeQuery.prototype, "validTo", void 0);
|
|
764
785
|
ThirdPartyRelationshipAttributeQuery = __decorate([
|
|
765
786
|
(0, ts_serval_1.type)("ThirdPartyRelationshipAttributeQuery")
|
|
766
787
|
], ThirdPartyRelationshipAttributeQuery);
|
|
@@ -6221,10 +6242,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
6221
6242
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
6222
6243
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6223
6244
|
exports.buildInformation = {
|
|
6224
|
-
version: "2.3.
|
|
6225
|
-
build: "
|
|
6226
|
-
date: "2023-07-
|
|
6227
|
-
commit: "
|
|
6245
|
+
version: "2.3.6",
|
|
6246
|
+
build: "135",
|
|
6247
|
+
date: "2023-07-13T13:49:20+00:00",
|
|
6248
|
+
commit: "ff07b752ed0c24d6882d9c106c43233286e847c2",
|
|
6228
6249
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","@nmshd/iql":"^0.0.1","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
6229
6250
|
libraries: {
|
|
6230
6251
|
serval: ts_serval_1.buildInformation,
|