@nmshd/content 2.3.3 → 2.3.5
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 +8 -2
- package/dist/attributes/RelationshipAttributeQuery.js +11 -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/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js +4 -2
- package/dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js.map +1 -1
- package/lib-web/nmshd.content.js +41 -28
- 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":"IdentityA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AS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;yDAAA;AAE3B;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
|
}
|
|
@@ -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);
|
|
@@ -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,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,qCAAe,CAAC,YAAY,CAAC,UAAU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AAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,iBAAiB,CAAmC,CAAA;IACrF,CAAC;CACJ,CAAA;AAxBG;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;AAXxD,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAyBtC;AAzBY,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/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;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.5",
|
|
9
|
+
build: "134",
|
|
10
|
+
date: "2023-07-13T12:50:19+00:00",
|
|
11
|
+
commit: "6cc29a9c7249d3bfd403a04eccf43355680bc9de",
|
|
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,
|
|
@@ -29,11 +29,13 @@ let ProposeAttributeRequestItem = ProposeAttributeRequestItem_1 = class ProposeA
|
|
|
29
29
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, `${(0, ts_simple_nameof_1.nameof)((x) => x.query)}.${(0, ts_simple_nameof_1.nameof)((x) => x.valueType)}`, `You cannot propose an Attribute whose type of the value ('${attributeValueType}') is different from the value type of the query ('${queryValueType}').`);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
// IQL queries might also be possible for Relationship Attributes in the future
|
|
32
33
|
if (value.attribute instanceof attributes_1.RelationshipAttribute && !(value.query instanceof attributes_1.RelationshipAttributeQuery)) {
|
|
33
34
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing a RelationshipAttribute, the corresponding query has to be a RelationshipAttributeQuery.");
|
|
34
35
|
}
|
|
35
|
-
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
36
|
-
|
|
36
|
+
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
37
|
+
!(value.query instanceof attributes_1.IdentityAttributeQuery || value.query instanceof attributes_1.IQLQuery)) {
|
|
38
|
+
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing an IdentityAttribute, the corresponding query has to be a IdentityAttributeQuery or IQLQuery");
|
|
37
39
|
}
|
|
38
40
|
return value;
|
|
39
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA6F;AAC7F,uDAAyC;AACzC,oDAgB4B;AAC5B,mDAA8E;AAcvE,IAAM,2BAA2B,mCAAjC,MAAM,2BAA4B,SAAQ,yBAAW;IASjD,MAAM,CAAC,IAAI,CACd,KAAoF;QAEpF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,6BAA2B,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAEhG,IAAI,KAAK,CAAC,KAAK,YAAY,mCAAsB,EAAE;YAC/C,MAAM,kBAAkB,GAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAU,CAAC,OAAO,CAAC,CAAA;YAC3E,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAA;YAE5C,IAAI,kBAAkB,KAAK,cAAc,EAAE;gBACvC,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAAC,IAAI,EAChC,GAAG,IAAA,yBAAM,EAA8B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,IAAA,yBAAM,EAC5D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACrB,EAAE,EACH,6DAA6D,kBAAkB,sDAAsD,cAAc,KAAK,CAC3J,CAAA;aACJ;SACJ;QAED,IAAI,KAAK,CAAC,SAAS,YAAY,kCAAqB,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,YAAY,uCAA0B,CAAC,EAAE;YAC1G,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAAC,IAAI,EAChC,EAAE,EACF,yGAAyG,CAC5G,CAAA;SACJ;QAED,
|
|
1
|
+
{"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA6F;AAC7F,uDAAyC;AACzC,oDAgB4B;AAC5B,mDAA8E;AAcvE,IAAM,2BAA2B,mCAAjC,MAAM,2BAA4B,SAAQ,yBAAW;IASjD,MAAM,CAAC,IAAI,CACd,KAAoF;QAEpF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,6BAA2B,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAEhG,IAAI,KAAK,CAAC,KAAK,YAAY,mCAAsB,EAAE;YAC/C,MAAM,kBAAkB,GAAI,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAU,CAAC,OAAO,CAAC,CAAA;YAC3E,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAA;YAE5C,IAAI,kBAAkB,KAAK,cAAc,EAAE;gBACvC,MAAM,IAAI,2BAAe,CACrB,6BAA2B,CAA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C;AA9DY,kEAA2B"}
|
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);
|
|
@@ -761,6 +762,16 @@ __decorate([
|
|
|
761
762
|
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
762
763
|
__metadata("design:type", Array)
|
|
763
764
|
], ThirdPartyRelationshipAttributeQuery.prototype, "thirdParty", void 0);
|
|
765
|
+
__decorate([
|
|
766
|
+
(0, ts_serval_1.serialize)(),
|
|
767
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
768
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
769
|
+
], ThirdPartyRelationshipAttributeQuery.prototype, "validFrom", void 0);
|
|
770
|
+
__decorate([
|
|
771
|
+
(0, ts_serval_1.serialize)(),
|
|
772
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
773
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
774
|
+
], ThirdPartyRelationshipAttributeQuery.prototype, "validTo", void 0);
|
|
764
775
|
ThirdPartyRelationshipAttributeQuery = __decorate([
|
|
765
776
|
(0, ts_serval_1.type)("ThirdPartyRelationshipAttributeQuery")
|
|
766
777
|
], ThirdPartyRelationshipAttributeQuery);
|
|
@@ -6221,10 +6232,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
6221
6232
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
6222
6233
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6223
6234
|
exports.buildInformation = {
|
|
6224
|
-
version: "2.3.
|
|
6225
|
-
build: "
|
|
6226
|
-
date: "2023-07-
|
|
6227
|
-
commit: "
|
|
6235
|
+
version: "2.3.5",
|
|
6236
|
+
build: "134",
|
|
6237
|
+
date: "2023-07-13T12:50:19+00:00",
|
|
6238
|
+
commit: "6cc29a9c7249d3bfd403a04eccf43355680bc9de",
|
|
6228
6239
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","@nmshd/iql":"^0.0.1","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
6229
6240
|
libraries: {
|
|
6230
6241
|
serval: ts_serval_1.buildInformation,
|
|
@@ -7033,11 +7044,13 @@ let ProposeAttributeRequestItem = ProposeAttributeRequestItem_1 = class ProposeA
|
|
|
7033
7044
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, `${(0, ts_simple_nameof_1.nameof)((x) => x.query)}.${(0, ts_simple_nameof_1.nameof)((x) => x.valueType)}`, `You cannot propose an Attribute whose type of the value ('${attributeValueType}') is different from the value type of the query ('${queryValueType}').`);
|
|
7034
7045
|
}
|
|
7035
7046
|
}
|
|
7047
|
+
// IQL queries might also be possible for Relationship Attributes in the future
|
|
7036
7048
|
if (value.attribute instanceof attributes_1.RelationshipAttribute && !(value.query instanceof attributes_1.RelationshipAttributeQuery)) {
|
|
7037
7049
|
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing a RelationshipAttribute, the corresponding query has to be a RelationshipAttributeQuery.");
|
|
7038
7050
|
}
|
|
7039
|
-
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
7040
|
-
|
|
7051
|
+
if (value.attribute instanceof attributes_1.IdentityAttribute &&
|
|
7052
|
+
!(value.query instanceof attributes_1.IdentityAttributeQuery || value.query instanceof attributes_1.IQLQuery)) {
|
|
7053
|
+
throw new ts_serval_1.ValidationError(ProposeAttributeRequestItem_1.name, "", "When proposing an IdentityAttribute, the corresponding query has to be a IdentityAttributeQuery or IQLQuery");
|
|
7041
7054
|
}
|
|
7042
7055
|
return value;
|
|
7043
7056
|
}
|