@nmshd/content 2.0.0-alpha.29 → 2.0.0-alpha.31

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
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)(),
47
+ (0, ts_serval_1.validate)({ nullable: true }),
48
48
  __metadata("design:type", Object)
49
- ], RelationshipAttributeHints.prototype, "isTechnical", void 0);
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,GAAG,KAAK,CAAA;IAgB9B,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;;uEACH;AAS1B;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.29",
9
- build: "59",
10
- date: "2022-06-02T12:42:28+00:00",
11
- commit: "0c79f78ac708903d17a5b9c8324bfde7b4dabf3a",
8
+ version: "2.0.0-alpha.31",
9
+ build: "61",
10
+ date: "2022-06-03T12:27:33+00:00",
11
+ commit: "071ea400f2450675aee0e1d399f83111380b3cda",
12
12
  dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
13
13
  libraries: {
14
14
  serval: ts_serval_1.buildInformation,
@@ -1,4 +1,6 @@
1
1
  export * from "./createAttribute/CreateAttributeAcceptResponseItem";
2
2
  export * from "./createAttribute/CreateAttributeRequestItem";
3
+ export * from "./proposeAttribute/ProposeAttributeAcceptResponseItem";
4
+ export * from "./proposeAttribute/ProposeAttributeRequestItem";
3
5
  export * from "./readAttribute/ReadAttributeAcceptResponseItem";
4
6
  export * from "./readAttribute/ReadAttributeRequestItem";
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./createAttribute/CreateAttributeAcceptResponseItem"), exports);
18
18
  __exportStar(require("./createAttribute/CreateAttributeRequestItem"), exports);
19
+ __exportStar(require("./proposeAttribute/ProposeAttributeAcceptResponseItem"), exports);
20
+ __exportStar(require("./proposeAttribute/ProposeAttributeRequestItem"), exports);
19
21
  __exportStar(require("./readAttribute/ReadAttributeAcceptResponseItem"), exports);
20
22
  __exportStar(require("./readAttribute/ReadAttributeRequestItem"), exports);
21
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sFAAmE;AACnE,+EAA4D;AAC5D,kFAA+D;AAC/D,2EAAwD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sFAAmE;AACnE,+EAA4D;AAC5D,wFAAqE;AACrE,iFAA8D;AAC9D,kFAA+D;AAC/D,2EAAwD"}
@@ -0,0 +1,16 @@
1
+ import { CoreId, ICoreId } from "@nmshd/transport";
2
+ import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
3
+ import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
4
+ export interface ProposeAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
5
+ attributeId: string;
6
+ attribute?: IdentityAttributeJSON | RelationshipAttributeJSON;
7
+ }
8
+ export interface IProposeAttributeAcceptResponseItem extends IAcceptResponseItem {
9
+ attributeId: ICoreId;
10
+ attribute?: IIdentityAttribute | IRelationshipAttribute;
11
+ }
12
+ export declare class ProposeAttributeAcceptResponseItem extends AcceptResponseItem implements IProposeAttributeAcceptResponseItem {
13
+ attributeId: CoreId;
14
+ attribute?: IdentityAttribute | RelationshipAttribute;
15
+ static from(value: IProposeAttributeAcceptResponseItem | ProposeAttributeAcceptResponseItemJSON): ProposeAttributeAcceptResponseItem;
16
+ }
@@ -0,0 +1,36 @@
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.ProposeAttributeAcceptResponseItem = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const transport_1 = require("@nmshd/transport");
15
+ const attributes_1 = require("../../../attributes");
16
+ const response_1 = require("../../response");
17
+ let ProposeAttributeAcceptResponseItem = class ProposeAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
18
+ static from(value) {
19
+ return this.fromAny(value);
20
+ }
21
+ };
22
+ __decorate([
23
+ (0, ts_serval_1.serialize)(),
24
+ (0, ts_serval_1.validate)(),
25
+ __metadata("design:type", transport_1.CoreId)
26
+ ], ProposeAttributeAcceptResponseItem.prototype, "attributeId", void 0);
27
+ __decorate([
28
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
29
+ (0, ts_serval_1.validate)({ nullable: true }),
30
+ __metadata("design:type", Object)
31
+ ], ProposeAttributeAcceptResponseItem.prototype, "attribute", void 0);
32
+ ProposeAttributeAcceptResponseItem = __decorate([
33
+ (0, ts_serval_1.type)("ProposeAttributeAcceptResponseItem")
34
+ ], ProposeAttributeAcceptResponseItem);
35
+ exports.ProposeAttributeAcceptResponseItem = ProposeAttributeAcceptResponseItem;
36
+ //# sourceMappingURL=ProposeAttributeAcceptResponseItem.js.map
@@ -0,0 +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"}
@@ -0,0 +1,15 @@
1
+ import { IdentityAttribute, IdentityAttributeJSON, IdentityAttributeQuery, IdentityAttributeQueryJSON, IIdentityAttribute, IIdentityAttributeQuery, IRelationshipAttribute, IRelationshipAttributeQuery, RelationshipAttribute, RelationshipAttributeJSON, RelationshipAttributeQuery, RelationshipAttributeQueryJSON } from "../../../attributes";
2
+ import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
3
+ export interface ProposeAttributeRequestItemJSON extends RequestItemJSON {
4
+ query: IdentityAttributeQueryJSON | RelationshipAttributeQueryJSON;
5
+ attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
6
+ }
7
+ export interface IProposeAttributeRequestItem extends IRequestItem {
8
+ query: IIdentityAttributeQuery | IRelationshipAttributeQuery;
9
+ attribute: IIdentityAttribute | IRelationshipAttribute;
10
+ }
11
+ export declare class ProposeAttributeRequestItem extends RequestItem implements IProposeAttributeRequestItem {
12
+ query: IdentityAttributeQuery | RelationshipAttributeQuery;
13
+ attribute: IdentityAttribute | RelationshipAttribute;
14
+ static from(value: IProposeAttributeRequestItem): ProposeAttributeRequestItem;
15
+ }
@@ -0,0 +1,35 @@
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.ProposeAttributeRequestItem = void 0;
13
+ const ts_serval_1 = require("@js-soft/ts-serval");
14
+ const attributes_1 = require("../../../attributes");
15
+ const RequestItem_1 = require("../../RequestItem");
16
+ let ProposeAttributeRequestItem = class ProposeAttributeRequestItem extends RequestItem_1.RequestItem {
17
+ static from(value) {
18
+ return this.fromAny(value);
19
+ }
20
+ };
21
+ __decorate([
22
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttributeQuery, attributes_1.RelationshipAttributeQuery] }),
23
+ (0, ts_serval_1.validate)(),
24
+ __metadata("design:type", Object)
25
+ ], ProposeAttributeRequestItem.prototype, "query", void 0);
26
+ __decorate([
27
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
28
+ (0, ts_serval_1.validate)(),
29
+ __metadata("design:type", Object)
30
+ ], ProposeAttributeRequestItem.prototype, "attribute", void 0);
31
+ ProposeAttributeRequestItem = __decorate([
32
+ (0, ts_serval_1.type)("ProposeAttributeRequestItem")
33
+ ], ProposeAttributeRequestItem);
34
+ exports.ProposeAttributeRequestItem = ProposeAttributeRequestItem;
35
+ //# sourceMappingURL=ProposeAttributeRequestItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProposeAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/proposeAttribute/ProposeAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,oDAa4B;AAC5B,mDAA8E;AAY9E,IAAa,2BAA2B,GAAxC,MAAa,2BAA4B,SAAQ,yBAAW;IASjD,MAAM,CAAC,IAAI,CAAC,KAAmC;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,mCAAsB,EAAE,uCAA0B,CAAC,EAAE,CAAC;IAC/E,IAAA,oBAAQ,GAAE;;0DACsD;AAIjE;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;8DACgD;AAPlD,2BAA2B;IADvC,IAAA,gBAAI,EAAC,6BAA6B,CAAC;GACvB,2BAA2B,CAYvC;AAZY,kEAA2B"}
@@ -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)(),
1450
+ (0, ts_serval_1.validate)({ nullable: true }),
1451
1451
  __metadata("design:type", Object)
1452
- ], RelationshipAttributeHints.prototype, "isTechnical", void 0);
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.29",
4933
- build: "59",
4934
- date: "2022-06-02T12:42:28+00:00",
4935
- commit: "0c79f78ac708903d17a5b9c8324bfde7b4dabf3a",
4932
+ version: "2.0.0-alpha.31",
4933
+ build: "61",
4934
+ date: "2022-06-03T12:27:33+00:00",
4935
+ commit: "071ea400f2450675aee0e1d399f83111380b3cda",
4936
4936
  dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
4937
4937
  libraries: {
4938
4938
  serval: ts_serval_1.buildInformation,
@@ -5955,12 +5955,103 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
5955
5955
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5956
5956
  __exportStar(__webpack_require__(/*! ./createAttribute/CreateAttributeAcceptResponseItem */ "./dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js"), exports);
5957
5957
  __exportStar(__webpack_require__(/*! ./createAttribute/CreateAttributeRequestItem */ "./dist/requests/items/createAttribute/CreateAttributeRequestItem.js"), exports);
5958
+ __exportStar(__webpack_require__(/*! ./proposeAttribute/ProposeAttributeAcceptResponseItem */ "./dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js"), exports);
5959
+ __exportStar(__webpack_require__(/*! ./proposeAttribute/ProposeAttributeRequestItem */ "./dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js"), exports);
5958
5960
  __exportStar(__webpack_require__(/*! ./readAttribute/ReadAttributeAcceptResponseItem */ "./dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js"), exports);
5959
5961
  __exportStar(__webpack_require__(/*! ./readAttribute/ReadAttributeRequestItem */ "./dist/requests/items/readAttribute/ReadAttributeRequestItem.js"), exports);
5960
5962
  //# sourceMappingURL=index.js.map
5961
5963
 
5962
5964
  /***/ }),
5963
5965
 
5966
+ /***/ "./dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js":
5967
+ /*!************************************************************************************!*\
5968
+ !*** ./dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js ***!
5969
+ \************************************************************************************/
5970
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
5971
+
5972
+
5973
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5974
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
5975
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5976
+ 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;
5977
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
5978
+ };
5979
+ var __metadata = (this && this.__metadata) || function (k, v) {
5980
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
5981
+ };
5982
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
5983
+ exports.ProposeAttributeAcceptResponseItem = void 0;
5984
+ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
5985
+ const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
5986
+ const attributes_1 = __webpack_require__(/*! ../../../attributes */ "./dist/attributes/index.js");
5987
+ const response_1 = __webpack_require__(/*! ../../response */ "./dist/requests/response/index.js");
5988
+ let ProposeAttributeAcceptResponseItem = class ProposeAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
5989
+ static from(value) {
5990
+ return this.fromAny(value);
5991
+ }
5992
+ };
5993
+ __decorate([
5994
+ (0, ts_serval_1.serialize)(),
5995
+ (0, ts_serval_1.validate)(),
5996
+ __metadata("design:type", transport_1.CoreId)
5997
+ ], ProposeAttributeAcceptResponseItem.prototype, "attributeId", void 0);
5998
+ __decorate([
5999
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
6000
+ (0, ts_serval_1.validate)({ nullable: true }),
6001
+ __metadata("design:type", Object)
6002
+ ], ProposeAttributeAcceptResponseItem.prototype, "attribute", void 0);
6003
+ ProposeAttributeAcceptResponseItem = __decorate([
6004
+ (0, ts_serval_1.type)("ProposeAttributeAcceptResponseItem")
6005
+ ], ProposeAttributeAcceptResponseItem);
6006
+ exports.ProposeAttributeAcceptResponseItem = ProposeAttributeAcceptResponseItem;
6007
+ //# sourceMappingURL=ProposeAttributeAcceptResponseItem.js.map
6008
+
6009
+ /***/ }),
6010
+
6011
+ /***/ "./dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js":
6012
+ /*!*****************************************************************************!*\
6013
+ !*** ./dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js ***!
6014
+ \*****************************************************************************/
6015
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
6016
+
6017
+
6018
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
6019
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6020
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6021
+ 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;
6022
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6023
+ };
6024
+ var __metadata = (this && this.__metadata) || function (k, v) {
6025
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
6026
+ };
6027
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
6028
+ exports.ProposeAttributeRequestItem = void 0;
6029
+ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
6030
+ const attributes_1 = __webpack_require__(/*! ../../../attributes */ "./dist/attributes/index.js");
6031
+ const RequestItem_1 = __webpack_require__(/*! ../../RequestItem */ "./dist/requests/RequestItem.js");
6032
+ let ProposeAttributeRequestItem = class ProposeAttributeRequestItem extends RequestItem_1.RequestItem {
6033
+ static from(value) {
6034
+ return this.fromAny(value);
6035
+ }
6036
+ };
6037
+ __decorate([
6038
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttributeQuery, attributes_1.RelationshipAttributeQuery] }),
6039
+ (0, ts_serval_1.validate)(),
6040
+ __metadata("design:type", Object)
6041
+ ], ProposeAttributeRequestItem.prototype, "query", void 0);
6042
+ __decorate([
6043
+ (0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
6044
+ (0, ts_serval_1.validate)(),
6045
+ __metadata("design:type", Object)
6046
+ ], ProposeAttributeRequestItem.prototype, "attribute", void 0);
6047
+ ProposeAttributeRequestItem = __decorate([
6048
+ (0, ts_serval_1.type)("ProposeAttributeRequestItem")
6049
+ ], ProposeAttributeRequestItem);
6050
+ exports.ProposeAttributeRequestItem = ProposeAttributeRequestItem;
6051
+ //# sourceMappingURL=ProposeAttributeRequestItem.js.map
6052
+
6053
+ /***/ }),
6054
+
5964
6055
  /***/ "./dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js":
5965
6056
  /*!******************************************************************************!*\
5966
6057
  !*** ./dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js ***!