@nmshd/content 2.0.0-alpha.30 → 2.0.0-alpha.33

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.
@@ -1,23 +1,23 @@
1
1
  import { CoreAddress, ICoreAddress } from "@nmshd/transport";
2
2
  import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
3
- import { IRelationshipAttributeHints, RelationshipAttributeHints, RelationshipAttributeHintsJSON } from "./hints/RelationshipAttributeHints";
3
+ import { IRelationshipAttributeCreationHints, RelationshipAttributeCreationHints, RelationshipAttributeCreationHintsJSON } from "./hints/RelationshipAttributeHints";
4
4
  export interface RelationshipAttributeQueryJSON extends AbstractAttributeQueryJSON {
5
5
  key: string;
6
6
  owner: string;
7
- attributeHints: RelationshipAttributeHintsJSON;
8
7
  thirdParty?: string;
8
+ attributeCreationHints: RelationshipAttributeCreationHintsJSON;
9
9
  }
10
10
  export interface IRelationshipAttributeQuery extends IAbstractAttributeQuery {
11
11
  key: string;
12
12
  owner: ICoreAddress;
13
- attributeHints: IRelationshipAttributeHints;
14
13
  thirdParty?: ICoreAddress;
14
+ attributeCreationHints: IRelationshipAttributeCreationHints;
15
15
  }
16
16
  export declare class RelationshipAttributeQuery extends AbstractAttributeQuery implements IRelationshipAttributeQuery {
17
17
  key: string;
18
18
  owner: CoreAddress;
19
- attributeHints: RelationshipAttributeHints;
20
19
  thirdParty?: CoreAddress;
20
+ attributeCreationHints: RelationshipAttributeCreationHints;
21
21
  static from(value: IRelationshipAttributeQuery | RelationshipAttributeQueryJSON): RelationshipAttributeQuery;
22
22
  toJSON(): RelationshipAttributeQueryJSON;
23
23
  }
@@ -32,16 +32,16 @@ __decorate([
32
32
  (0, ts_serval_1.validate)(),
33
33
  __metadata("design:type", transport_1.CoreAddress)
34
34
  ], RelationshipAttributeQuery.prototype, "owner", void 0);
35
- __decorate([
36
- (0, ts_serval_1.serialize)(),
37
- (0, ts_serval_1.validate)(),
38
- __metadata("design:type", RelationshipAttributeHints_1.RelationshipAttributeHints)
39
- ], RelationshipAttributeQuery.prototype, "attributeHints", void 0);
40
35
  __decorate([
41
36
  (0, ts_serval_1.serialize)(),
42
37
  (0, ts_serval_1.validate)({ nullable: true }),
43
38
  __metadata("design:type", transport_1.CoreAddress)
44
39
  ], RelationshipAttributeQuery.prototype, "thirdParty", void 0);
40
+ __decorate([
41
+ (0, ts_serval_1.serialize)(),
42
+ (0, ts_serval_1.validate)(),
43
+ __metadata("design:type", RelationshipAttributeHints_1.RelationshipAttributeCreationHints)
44
+ ], RelationshipAttributeQuery.prototype, "attributeCreationHints", void 0);
45
45
  RelationshipAttributeQuery = __decorate([
46
46
  (0, ts_serval_1.type)("RelationshipAttributeQuery")
47
47
  ], RelationshipAttributeQuery);
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA4D;AAC5D,qEAAsH;AACtH,mFAI2C;AAiB3C,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,+CAAsB;IAiB3D,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAoC,CAAA;IAC3D,CAAC;CACJ,CAAA;AAvBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;uDACO;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,uBAAW;yDAAA;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACY,uDAA0B;kEAAA;AAIjD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACT,uBAAW;8DAAA;AAftB,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CA0BtC;AA1BY,gEAA0B"}
1
+ {"version":3,"file":"RelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA4D;AAC5D,qEAAsH;AACtH,mFAI2C;AAiB3C,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,+CAAsB;IAiB3D,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAoC,CAAA;IAC3D,CAAC;CACJ,CAAA;AAvBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;uDACO;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,uBAAW;yDAAA;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACT,uBAAW;8DAAA;AAI/B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACoB,+DAAkC;0EAAA;AAfxD,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CA0BtC;AA1BY,gEAA0B"}
@@ -1,14 +1,14 @@
1
1
  import { ISerializable, Serializable } from "@js-soft/ts-serval";
2
2
  import { RelationshipAttributeConfidentiality } from "../RelationshipAttribute";
3
3
  import { IValueHints, ValueHints, ValueHintsJSON } from "./ValueHints";
4
- export interface RelationshipAttributeHintsJSON {
4
+ export interface RelationshipAttributeCreationHintsJSON {
5
5
  title: string;
6
6
  description?: string;
7
7
  valueHints?: ValueHintsJSON;
8
8
  isTechnical?: boolean;
9
9
  confidentiality: RelationshipAttributeConfidentiality;
10
10
  }
11
- export interface IRelationshipAttributeHints extends ISerializable {
11
+ export interface IRelationshipAttributeCreationHints extends ISerializable {
12
12
  title: string;
13
13
  description?: string;
14
14
  valueHints?: IValueHints;
@@ -20,11 +20,11 @@ export interface IRelationshipAttributeHints extends ISerializable {
20
20
  * They are primarily used within `RelationshipAttributeQuery` to define the metadata of
21
21
  * a proprietary Attribute, even without such an Attribute existent.
22
22
  */
23
- export declare class RelationshipAttributeHints extends Serializable implements IRelationshipAttributeHints {
23
+ export declare class RelationshipAttributeCreationHints extends Serializable implements IRelationshipAttributeCreationHints {
24
24
  title: string;
25
25
  description?: string;
26
26
  valueHints?: ValueHints;
27
- isTechnical: boolean;
27
+ isTechnical?: boolean;
28
28
  confidentiality: RelationshipAttributeConfidentiality;
29
- static from(value: IRelationshipAttributeHints | RelationshipAttributeHintsJSON): RelationshipAttributeHints;
29
+ static from(value: IRelationshipAttributeCreationHints | RelationshipAttributeCreationHintsJSON): RelationshipAttributeCreationHints;
30
30
  }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RelationshipAttributeHints = void 0;
12
+ exports.RelationshipAttributeCreationHints = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
14
  const RelationshipAttribute_1 = require("../RelationshipAttribute");
15
15
  const ValueHints_1 = require("./ValueHints");
@@ -18,7 +18,7 @@ const ValueHints_1 = require("./ValueHints");
18
18
  * They are primarily used within `RelationshipAttributeQuery` to define the metadata of
19
19
  * a proprietary Attribute, even without such an Attribute existent.
20
20
  */
21
- let RelationshipAttributeHints = class RelationshipAttributeHints extends ts_serval_1.Serializable {
21
+ let RelationshipAttributeCreationHints = class RelationshipAttributeCreationHints extends ts_serval_1.Serializable {
22
22
  constructor() {
23
23
  super(...arguments);
24
24
  this.isTechnical = false;
@@ -31,22 +31,22 @@ __decorate([
31
31
  (0, ts_serval_1.serialize)(),
32
32
  (0, ts_serval_1.validate)(),
33
33
  __metadata("design:type", String)
34
- ], RelationshipAttributeHints.prototype, "title", void 0);
34
+ ], RelationshipAttributeCreationHints.prototype, "title", void 0);
35
35
  __decorate([
36
36
  (0, ts_serval_1.serialize)(),
37
37
  (0, ts_serval_1.validate)({ nullable: true }),
38
38
  __metadata("design:type", String)
39
- ], RelationshipAttributeHints.prototype, "description", void 0);
39
+ ], RelationshipAttributeCreationHints.prototype, "description", void 0);
40
40
  __decorate([
41
41
  (0, ts_serval_1.serialize)(),
42
42
  (0, ts_serval_1.validate)({ nullable: true }),
43
43
  __metadata("design:type", ValueHints_1.ValueHints)
44
- ], RelationshipAttributeHints.prototype, "valueHints", void 0);
44
+ ], RelationshipAttributeCreationHints.prototype, "valueHints", void 0);
45
45
  __decorate([
46
46
  (0, ts_serval_1.serialize)(),
47
- (0, ts_serval_1.validate)(),
48
- __metadata("design:type", Object)
49
- ], RelationshipAttributeHints.prototype, "isTechnical", void 0);
47
+ (0, ts_serval_1.validate)({ nullable: true }),
48
+ __metadata("design:type", Boolean)
49
+ ], RelationshipAttributeCreationHints.prototype, "isTechnical", void 0);
50
50
  __decorate([
51
51
  (0, ts_serval_1.serialize)(),
52
52
  (0, ts_serval_1.validate)({
@@ -55,9 +55,9 @@ __decorate([
55
55
  : undefined
56
56
  }),
57
57
  __metadata("design:type", String)
58
- ], RelationshipAttributeHints.prototype, "confidentiality", void 0);
59
- RelationshipAttributeHints = __decorate([
58
+ ], RelationshipAttributeCreationHints.prototype, "confidentiality", void 0);
59
+ RelationshipAttributeCreationHints = __decorate([
60
60
  (0, ts_serval_1.type)("RelationshipAttributeHints")
61
- ], RelationshipAttributeHints);
62
- exports.RelationshipAttributeHints = RelationshipAttributeHints;
61
+ ], RelationshipAttributeCreationHints);
62
+ exports.RelationshipAttributeCreationHints = RelationshipAttributeCreationHints;
63
63
  //# sourceMappingURL=RelationshipAttributeHints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RelationshipAttributeHints.js","sourceRoot":"","sources":["../../../src/attributes/hints/RelationshipAttributeHints.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,oEAA+E;AAC/E,6CAAsE;AAkBtE;;;;GAIG;AAEH,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,wBAAY;IAA5D;;QAeW,gBAAW,GAAG,KAAK,CAAA;IAe9B,CAAC;IALU,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AA3BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;yDACS;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACT,uBAAU;8DAAA;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;+DACe;AAQ1B;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,4DAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5D,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,4DAAoC,CAAC,EAAE;YAC1E,CAAC,CAAC,SAAS;KACtB,CAAC;;mEAC0D;AAvBnD,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CA8BtC;AA9BY,gEAA0B"}
1
+ {"version":3,"file":"RelationshipAttributeHints.js","sourceRoot":"","sources":["../../../src/attributes/hints/RelationshipAttributeHints.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,oEAA+E;AAC/E,6CAAsE;AAkBtE;;;;GAIG;AAEH,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,wBAAY;IAApE;;QAeW,gBAAW,GAAa,KAAK,CAAA;IAgBxC,CAAC;IALU,MAAM,CAAC,IAAI,CACd,KAAmF;QAEnF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AA5BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;iEACS;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACT,uBAAU;sEAAA;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACO;AASpC;IAPC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,MAAM,CAAC,MAAM,CAAC,4DAAoC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC5D,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,CAAC,4DAAoC,CAAC,EAAE;YAC1E,CAAC,CAAC,SAAS;KACtB,CAAC;;2EAC0D;AAxBnD,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,kCAAkC,CA+B9C;AA/BY,gFAAkC"}
@@ -5,10 +5,10 @@ const ts_serval_1 = require("@js-soft/ts-serval");
5
5
  const crypto_1 = require("@nmshd/crypto");
6
6
  const transport_1 = require("@nmshd/transport");
7
7
  exports.buildInformation = {
8
- version: "2.0.0-alpha.30",
9
- build: "60",
10
- date: "2022-06-03T12:03:09+00:00",
11
- commit: "93eca1b77baf59ee01a93bac84f5e2bd769fe5df",
8
+ version: "2.0.0-alpha.33",
9
+ build: "63",
10
+ date: "2022-06-07T13:00:13+00:00",
11
+ commit: "5de28c400ead3ef3ca61ca44c7d6063044692350",
12
12
  dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
13
13
  libraries: {
14
14
  serval: ts_serval_1.buildInformation,
@@ -12,6 +12,7 @@ var RequestItemGroup_1;
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.RequestItemGroup = void 0;
14
14
  const ts_serval_1 = require("@js-soft/ts-serval");
15
+ const ts_simple_nameof_1 = require("ts-simple-nameof");
15
16
  let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.Serializable {
16
17
  static from(value) {
17
18
  return this.fromAny(value);
@@ -20,7 +21,7 @@ let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_se
20
21
  if (!(value instanceof RequestItemGroup_1))
21
22
  throw new Error("this should never happen");
22
23
  if (value.mustBeAccepted && value.items.every((item) => !item.mustBeAccepted)) {
23
- throw new ts_serval_1.ValidationError("RequestItemGroup", "mustBeAccepted", "mustBeAccepted can only be true if at least one item is flagged as mustBeAccepted");
24
+ throw new ts_serval_1.ValidationError(RequestItemGroup_1.name, (0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted), `${(0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted)} can only be true if at least one item is flagged as ${(0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted)}`);
24
25
  }
25
26
  return value;
26
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;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BAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,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;;+CAC3D;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACG;AAnBvB,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CA0C5B;AA1CY,4CAAgB"}
@@ -3,14 +3,14 @@ import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelation
3
3
  import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
4
4
  export interface ProposeAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
5
5
  attributeId: string;
6
- attribute?: IdentityAttributeJSON | RelationshipAttributeJSON;
6
+ attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
7
7
  }
8
8
  export interface IProposeAttributeAcceptResponseItem extends IAcceptResponseItem {
9
9
  attributeId: ICoreId;
10
- attribute?: IIdentityAttribute | IRelationshipAttribute;
10
+ attribute: IIdentityAttribute | IRelationshipAttribute;
11
11
  }
12
12
  export declare class ProposeAttributeAcceptResponseItem extends AcceptResponseItem implements IProposeAttributeAcceptResponseItem {
13
13
  attributeId: CoreId;
14
- attribute?: IdentityAttribute | RelationshipAttribute;
14
+ attribute: IdentityAttribute | RelationshipAttribute;
15
15
  static from(value: IProposeAttributeAcceptResponseItem | ProposeAttributeAcceptResponseItemJSON): ProposeAttributeAcceptResponseItem;
16
16
  }
@@ -26,7 +26,7 @@ __decorate([
26
26
  ], ProposeAttributeAcceptResponseItem.prototype, "attributeId", void 0);
27
27
  __decorate([
28
28
  (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
29
- (0, ts_serval_1.validate)({ nullable: true }),
29
+ (0, ts_serval_1.validate)(),
30
30
  __metadata("design:type", Object)
31
31
  ], ProposeAttributeAcceptResponseItem.prototype, "attribute", void 0);
32
32
  ProposeAttributeAcceptResponseItem = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"ProposeAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,oDAO4B;AAC5B,6CAAgG;AAahG,IAAa,kCAAkC,GAA/C,MAAa,kCACT,SAAQ,6BAAkB;IAWnB,MAAM,CAAU,IAAI,CACvB,KAAmF;QAEnF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;uEAAA;AAI1B;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEAC+B;AAVnD,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,oCAAoC,CAAC;GAC9B,kCAAkC,CAiB9C;AAjBY,gFAAkC"}
1
+ {"version":3,"file":"ProposeAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,oDAO4B;AAC5B,6CAAgG;AAahG,IAAa,kCAAkC,GAA/C,MAAa,kCACT,SAAQ,6BAAkB;IAWnB,MAAM,CAAU,IAAI,CACvB,KAAmF;QAEnF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;uEAAA;AAI1B;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;qEACgD;AAVlD,kCAAkC;IAD9C,IAAA,gBAAI,EAAC,oCAAoC,CAAC;GAC9B,kCAAkC,CAiB9C;AAjBY,gFAAkC"}
@@ -447,16 +447,16 @@ __decorate([
447
447
  (0, ts_serval_1.validate)(),
448
448
  __metadata("design:type", transport_1.CoreAddress)
449
449
  ], RelationshipAttributeQuery.prototype, "owner", void 0);
450
- __decorate([
451
- (0, ts_serval_1.serialize)(),
452
- (0, ts_serval_1.validate)(),
453
- __metadata("design:type", RelationshipAttributeHints_1.RelationshipAttributeHints)
454
- ], RelationshipAttributeQuery.prototype, "attributeHints", void 0);
455
450
  __decorate([
456
451
  (0, ts_serval_1.serialize)(),
457
452
  (0, ts_serval_1.validate)({ nullable: true }),
458
453
  __metadata("design:type", transport_1.CoreAddress)
459
454
  ], RelationshipAttributeQuery.prototype, "thirdParty", void 0);
455
+ __decorate([
456
+ (0, ts_serval_1.serialize)(),
457
+ (0, ts_serval_1.validate)(),
458
+ __metadata("design:type", RelationshipAttributeHints_1.RelationshipAttributeCreationHints)
459
+ ], RelationshipAttributeQuery.prototype, "attributeCreationHints", void 0);
460
460
  RelationshipAttributeQuery = __decorate([
461
461
  (0, ts_serval_1.type)("RelationshipAttributeQuery")
462
462
  ], RelationshipAttributeQuery);
@@ -1412,7 +1412,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
1412
1412
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1413
1413
  };
1414
1414
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1415
- exports.RelationshipAttributeHints = void 0;
1415
+ exports.RelationshipAttributeCreationHints = void 0;
1416
1416
  const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
1417
1417
  const RelationshipAttribute_1 = __webpack_require__(/*! ../RelationshipAttribute */ "./dist/attributes/RelationshipAttribute.js");
1418
1418
  const ValueHints_1 = __webpack_require__(/*! ./ValueHints */ "./dist/attributes/hints/ValueHints.js");
@@ -1421,7 +1421,7 @@ const ValueHints_1 = __webpack_require__(/*! ./ValueHints */ "./dist/attributes/
1421
1421
  * They are primarily used within `RelationshipAttributeQuery` to define the metadata of
1422
1422
  * a proprietary Attribute, even without such an Attribute existent.
1423
1423
  */
1424
- let RelationshipAttributeHints = class RelationshipAttributeHints extends ts_serval_1.Serializable {
1424
+ let RelationshipAttributeCreationHints = class RelationshipAttributeCreationHints extends ts_serval_1.Serializable {
1425
1425
  constructor() {
1426
1426
  super(...arguments);
1427
1427
  this.isTechnical = false;
@@ -1434,22 +1434,22 @@ __decorate([
1434
1434
  (0, ts_serval_1.serialize)(),
1435
1435
  (0, ts_serval_1.validate)(),
1436
1436
  __metadata("design:type", String)
1437
- ], RelationshipAttributeHints.prototype, "title", void 0);
1437
+ ], RelationshipAttributeCreationHints.prototype, "title", void 0);
1438
1438
  __decorate([
1439
1439
  (0, ts_serval_1.serialize)(),
1440
1440
  (0, ts_serval_1.validate)({ nullable: true }),
1441
1441
  __metadata("design:type", String)
1442
- ], RelationshipAttributeHints.prototype, "description", void 0);
1442
+ ], RelationshipAttributeCreationHints.prototype, "description", void 0);
1443
1443
  __decorate([
1444
1444
  (0, ts_serval_1.serialize)(),
1445
1445
  (0, ts_serval_1.validate)({ nullable: true }),
1446
1446
  __metadata("design:type", ValueHints_1.ValueHints)
1447
- ], RelationshipAttributeHints.prototype, "valueHints", void 0);
1447
+ ], RelationshipAttributeCreationHints.prototype, "valueHints", void 0);
1448
1448
  __decorate([
1449
1449
  (0, ts_serval_1.serialize)(),
1450
- (0, ts_serval_1.validate)(),
1451
- __metadata("design:type", Object)
1452
- ], RelationshipAttributeHints.prototype, "isTechnical", void 0);
1450
+ (0, ts_serval_1.validate)({ nullable: true }),
1451
+ __metadata("design:type", Boolean)
1452
+ ], RelationshipAttributeCreationHints.prototype, "isTechnical", void 0);
1453
1453
  __decorate([
1454
1454
  (0, ts_serval_1.serialize)(),
1455
1455
  (0, ts_serval_1.validate)({
@@ -1458,11 +1458,11 @@ __decorate([
1458
1458
  : undefined
1459
1459
  }),
1460
1460
  __metadata("design:type", String)
1461
- ], RelationshipAttributeHints.prototype, "confidentiality", void 0);
1462
- RelationshipAttributeHints = __decorate([
1461
+ ], RelationshipAttributeCreationHints.prototype, "confidentiality", void 0);
1462
+ RelationshipAttributeCreationHints = __decorate([
1463
1463
  (0, ts_serval_1.type)("RelationshipAttributeHints")
1464
- ], RelationshipAttributeHints);
1465
- exports.RelationshipAttributeHints = RelationshipAttributeHints;
1464
+ ], RelationshipAttributeCreationHints);
1465
+ exports.RelationshipAttributeCreationHints = RelationshipAttributeCreationHints;
1466
1466
  //# sourceMappingURL=RelationshipAttributeHints.js.map
1467
1467
 
1468
1468
  /***/ }),
@@ -4929,10 +4929,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
4929
4929
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
4930
4930
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
4931
4931
  exports.buildInformation = {
4932
- version: "2.0.0-alpha.30",
4933
- build: "60",
4934
- date: "2022-06-03T12:03:09+00:00",
4935
- commit: "93eca1b77baf59ee01a93bac84f5e2bd769fe5df",
4932
+ version: "2.0.0-alpha.33",
4933
+ build: "63",
4934
+ date: "2022-06-07T13:00:13+00:00",
4935
+ commit: "5de28c400ead3ef3ca61ca44c7d6063044692350",
4936
4936
  dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
4937
4937
  libraries: {
4938
4938
  serval: ts_serval_1.buildInformation,
@@ -5774,6 +5774,7 @@ var RequestItemGroup_1;
5774
5774
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5775
5775
  exports.RequestItemGroup = void 0;
5776
5776
  const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
5777
+ const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_modules/ts-simple-nameof/index.js");
5777
5778
  let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.Serializable {
5778
5779
  static from(value) {
5779
5780
  return this.fromAny(value);
@@ -5782,7 +5783,7 @@ let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_se
5782
5783
  if (!(value instanceof RequestItemGroup_1))
5783
5784
  throw new Error("this should never happen");
5784
5785
  if (value.mustBeAccepted && value.items.every((item) => !item.mustBeAccepted)) {
5785
- throw new ts_serval_1.ValidationError("RequestItemGroup", "mustBeAccepted", "mustBeAccepted can only be true if at least one item is flagged as mustBeAccepted");
5786
+ throw new ts_serval_1.ValidationError(RequestItemGroup_1.name, (0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted), `${(0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted)} can only be true if at least one item is flagged as ${(0, ts_simple_nameof_1.nameof)((x) => x.mustBeAccepted)}`);
5786
5787
  }
5787
5788
  return value;
5788
5789
  }
@@ -5997,7 +5998,7 @@ __decorate([
5997
5998
  ], ProposeAttributeAcceptResponseItem.prototype, "attributeId", void 0);
5998
5999
  __decorate([
5999
6000
  (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
6000
- (0, ts_serval_1.validate)({ nullable: true }),
6001
+ (0, ts_serval_1.validate)(),
6001
6002
  __metadata("design:type", Object)
6002
6003
  ], ProposeAttributeAcceptResponseItem.prototype, "attribute", void 0);
6003
6004
  ProposeAttributeAcceptResponseItem = __decorate([
@@ -15175,6 +15176,73 @@ exports.Zone = Zone;
15175
15176
  //# sourceMappingURL=luxon.js.map
15176
15177
 
15177
15178
 
15179
+ /***/ }),
15180
+
15181
+ /***/ "./node_modules/ts-simple-nameof/index.js":
15182
+ /*!************************************************!*\
15183
+ !*** ./node_modules/ts-simple-nameof/index.js ***!
15184
+ \************************************************/
15185
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
15186
+
15187
+
15188
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
15189
+ exports.nameof = void 0;
15190
+ var nameof_1 = __webpack_require__(/*! ./src/nameof */ "./node_modules/ts-simple-nameof/src/nameof.js");
15191
+ Object.defineProperty(exports, "nameof", ({ enumerable: true, get: function () { return nameof_1.nameof; } }));
15192
+
15193
+
15194
+ /***/ }),
15195
+
15196
+ /***/ "./node_modules/ts-simple-nameof/src/nameof.js":
15197
+ /*!*****************************************************!*\
15198
+ !*** ./node_modules/ts-simple-nameof/src/nameof.js ***!
15199
+ \*****************************************************/
15200
+ /***/ ((__unused_webpack_module, exports) => {
15201
+
15202
+
15203
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
15204
+ exports.nameof = void 0;
15205
+ function cleanseAssertionOperators(parsedName) {
15206
+ return parsedName.replace(/[?!]/g, "");
15207
+ }
15208
+ function nameof(nameFunction, options) {
15209
+ var fnStr = nameFunction.toString();
15210
+ // ES6 class name:
15211
+ // "class ClassName { ..."
15212
+ if (fnStr.startsWith("class ")
15213
+ // Theoretically could, for some ill-advised reason, be "class => class.prop".
15214
+ && !fnStr.startsWith("class =>")) {
15215
+ return cleanseAssertionOperators(fnStr.substring("class ".length, fnStr.indexOf(" {")));
15216
+ }
15217
+ // ES6 prop selector:
15218
+ // "x => x.prop"
15219
+ if (fnStr.includes("=>")) {
15220
+ return cleanseAssertionOperators(fnStr.substring(fnStr.indexOf(".") + 1));
15221
+ }
15222
+ // ES5 prop selector:
15223
+ // "function (x) { return x.prop; }"
15224
+ // webpack production build excludes the spaces and optional trailing semicolon:
15225
+ // "function(x){return x.prop}"
15226
+ // FYI - during local dev testing i observed carriage returns after the curly brackets as well
15227
+ // Note by maintainer: See https://github.com/IRCraziestTaxi/ts-simple-nameof/pull/13#issuecomment-567171802 for explanation of this regex.
15228
+ var matchRegex = /function\s*\(\w+\)\s*\{[\r\n\s]*return\s+\w+\.((\w+\.)*(\w+))/i;
15229
+ var es5Match = fnStr.match(matchRegex);
15230
+ if (es5Match) {
15231
+ return (options && options.lastProp)
15232
+ ? es5Match[3]
15233
+ : es5Match[1];
15234
+ }
15235
+ // ES5 class name:
15236
+ // "function ClassName() { ..."
15237
+ if (fnStr.startsWith("function ")) {
15238
+ return cleanseAssertionOperators(fnStr.substring("function ".length, fnStr.indexOf("(")));
15239
+ }
15240
+ // Invalid function.
15241
+ throw new Error("ts-simple-nameof: Invalid function.");
15242
+ }
15243
+ exports.nameof = nameof;
15244
+
15245
+
15178
15246
  /***/ }),
15179
15247
 
15180
15248
  /***/ "@nmshd/crypto":