@nmshd/content 2.0.0-beta.15 → 2.0.0-beta.18
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/IdentityAttributeQuery.d.ts +1 -0
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -1
- package/dist/attributes/RelationshipAttributeQuery.d.ts +4 -3
- package/dist/attributes/RelationshipAttributeQuery.js +1 -1
- package/dist/attributes/RelationshipAttributeQuery.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/dist/requests/RequestItem.d.ts +4 -4
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.d.ts +12 -0
- package/dist/requests/items/createRelationshipAttribute/{CreateRelationshipAttributeAcceptResponseItem.js → CreateAttributeAcceptResponseItem.js} +8 -8
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.d.ts +13 -0
- package/dist/requests/items/createRelationshipAttribute/{CreateRelationshipAttributeRequestItem.js → CreateAttributeRequestItem.js} +9 -10
- package/dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.js.map +1 -0
- package/dist/requests/items/index.d.ts +2 -2
- package/dist/requests/items/index.js +2 -2
- package/dist/requests/items/index.js.map +1 -1
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +4 -4
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js +1 -2
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -1
- package/dist/requests/response/AcceptResponseItem.d.ts +4 -4
- package/lib-web/nmshd.content.js +33 -35
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
- package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.d.ts +0 -12
- package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeAcceptResponseItem.js.map +0 -1
- package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.d.ts +0 -13
- package/dist/requests/items/createRelationshipAttribute/CreateRelationshipAttributeRequestItem.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
|
|
2
2
|
export interface IdentityAttributeQueryJSON extends AbstractAttributeQueryJSON {
|
|
3
|
+
"@type": "IdentityAttributeQuery";
|
|
3
4
|
valueType: string;
|
|
4
5
|
tags?: string[];
|
|
5
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qEAAsH;
|
|
1
|
+
{"version":3,"file":"IdentityAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/IdentityAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qEAAsH;AActH,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,+CAAsB;IAWvD,MAAM,CAAC,IAAI,CAAC,KAA2D;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAgC,CAAA;IACvD,CAAC;CACJ,CAAA;AAbG;IAJC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC;QACN,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,SAAS,CAAC;KACjF,CAAC;;yDACsB;AAIxB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AATb,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CAkBlC;AAlBY,wDAAsB"}
|
|
@@ -2,21 +2,22 @@ import { CoreAddress, ICoreAddress } from "@nmshd/transport";
|
|
|
2
2
|
import { AbstractAttributeQuery, AbstractAttributeQueryJSON, IAbstractAttributeQuery } from "./AbstractAttributeQuery";
|
|
3
3
|
import { IRelationshipAttributeCreationHints, RelationshipAttributeCreationHints, RelationshipAttributeCreationHintsJSON } from "./hints/RelationshipAttributeCreationHints";
|
|
4
4
|
export interface RelationshipAttributeQueryJSON extends AbstractAttributeQueryJSON {
|
|
5
|
+
"@type": "RelationshipAttributeQuery";
|
|
5
6
|
key: string;
|
|
6
7
|
owner: string;
|
|
7
|
-
thirdParty
|
|
8
|
+
thirdParty?: string;
|
|
8
9
|
attributeCreationHints: RelationshipAttributeCreationHintsJSON;
|
|
9
10
|
}
|
|
10
11
|
export interface IRelationshipAttributeQuery extends IAbstractAttributeQuery {
|
|
11
12
|
key: string;
|
|
12
13
|
owner: ICoreAddress;
|
|
13
|
-
thirdParty
|
|
14
|
+
thirdParty?: ICoreAddress;
|
|
14
15
|
attributeCreationHints: IRelationshipAttributeCreationHints;
|
|
15
16
|
}
|
|
16
17
|
export declare class RelationshipAttributeQuery extends AbstractAttributeQuery implements IRelationshipAttributeQuery {
|
|
17
18
|
key: string;
|
|
18
19
|
owner: CoreAddress;
|
|
19
|
-
thirdParty
|
|
20
|
+
thirdParty?: CoreAddress;
|
|
20
21
|
attributeCreationHints: RelationshipAttributeCreationHints;
|
|
21
22
|
static from(value: IRelationshipAttributeQuery | RelationshipAttributeQueryJSON): RelationshipAttributeQuery;
|
|
22
23
|
toJSON(): RelationshipAttributeQueryJSON;
|
|
@@ -34,7 +34,7 @@ __decorate([
|
|
|
34
34
|
], RelationshipAttributeQuery.prototype, "owner", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, ts_serval_1.serialize)(),
|
|
37
|
-
(0, ts_serval_1.validate)(),
|
|
37
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
38
|
__metadata("design:type", transport_1.CoreAddress)
|
|
39
39
|
], RelationshipAttributeQuery.prototype, "thirdParty", void 0);
|
|
40
40
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA4D;AAC5D,qEAAsH;AACtH,mGAImD;
|
|
1
|
+
{"version":3,"file":"RelationshipAttributeQuery.js","sourceRoot":"","sources":["../../src/attributes/RelationshipAttributeQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA4D;AAC5D,qEAAsH;AACtH,mGAImD;AAkBnD,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,uEAAkC;0EAAA;AAfxD,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CA0BtC;AA1BY,gEAA0B"}
|
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.0.0-beta.
|
|
9
|
-
build: "
|
|
10
|
-
date: "2022-09-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-beta.18",
|
|
9
|
+
build: "95",
|
|
10
|
+
date: "2022-09-07T13:10:38+00:00",
|
|
11
|
+
commit: "49c3e4006da2fe4e7eab6c6e9de69eb3af20716f",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
3
|
import { AuthenticationRequestItem, AuthenticationRequestItemJSON, ConsentRequestItem, ConsentRequestItemJSON, IAuthenticationRequestItem, IConsentRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON } from "./items";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateAttributeRequestItem, CreateAttributeRequestItemJSON, ICreateAttributeRequestItem } from "./items/createRelationshipAttribute/CreateAttributeRequestItem";
|
|
5
5
|
import { IShareAttributeRequestItem, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items/shareAttribute/ShareAttributeRequestItem";
|
|
6
6
|
export interface RequestItemJSON extends ContentJSON {
|
|
7
7
|
/**
|
|
@@ -35,7 +35,7 @@ export interface RequestItemJSON extends ContentJSON {
|
|
|
35
35
|
*/
|
|
36
36
|
requireManualDecision?: boolean;
|
|
37
37
|
}
|
|
38
|
-
export declare type RequestItemJSONDerivations = RequestItemJSON |
|
|
38
|
+
export declare type RequestItemJSONDerivations = RequestItemJSON | CreateAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ConsentRequestItemJSON | AuthenticationRequestItemJSON;
|
|
39
39
|
export interface IRequestItem extends ISerializable {
|
|
40
40
|
/**
|
|
41
41
|
* The human-readable title of this item.
|
|
@@ -68,7 +68,7 @@ export interface IRequestItem extends ISerializable {
|
|
|
68
68
|
*/
|
|
69
69
|
requireManualDecision?: boolean;
|
|
70
70
|
}
|
|
71
|
-
export declare type IRequestItemDerivations = IRequestItem |
|
|
71
|
+
export declare type IRequestItemDerivations = IRequestItem | ICreateAttributeRequestItem | IShareAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IConsentRequestItem | IAuthenticationRequestItem;
|
|
72
72
|
export declare abstract class RequestItem extends Serializable {
|
|
73
73
|
title?: string;
|
|
74
74
|
description?: string;
|
|
@@ -77,4 +77,4 @@ export declare abstract class RequestItem extends Serializable {
|
|
|
77
77
|
requireManualDecision?: boolean;
|
|
78
78
|
toJSON(): RequestItemJSON;
|
|
79
79
|
}
|
|
80
|
-
export declare type RequestItemDerivations = RequestItem |
|
|
80
|
+
export declare type RequestItemDerivations = RequestItem | CreateAttributeRequestItem | ShareAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ConsentRequestItem | AuthenticationRequestItem;
|
package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
2
|
+
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
3
|
+
export interface CreateAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
4
|
+
attributeId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ICreateAttributeAcceptResponseItem extends IAcceptResponseItem {
|
|
7
|
+
attributeId: ICoreId;
|
|
8
|
+
}
|
|
9
|
+
export declare class CreateAttributeAcceptResponseItem extends AcceptResponseItem implements ICreateAttributeAcceptResponseItem {
|
|
10
|
+
attributeId: CoreId;
|
|
11
|
+
static from(value: ICreateAttributeAcceptResponseItem | CreateAttributeAcceptResponseItemJSON): CreateAttributeAcceptResponseItem;
|
|
12
|
+
}
|
|
@@ -9,11 +9,11 @@ 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.
|
|
12
|
+
exports.CreateAttributeAcceptResponseItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const transport_1 = require("@nmshd/transport");
|
|
15
15
|
const response_1 = require("../../response");
|
|
16
|
-
let
|
|
16
|
+
let CreateAttributeAcceptResponseItem = class CreateAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
|
|
17
17
|
static from(value) {
|
|
18
18
|
return this.fromAny(value);
|
|
19
19
|
}
|
|
@@ -22,9 +22,9 @@ __decorate([
|
|
|
22
22
|
(0, ts_serval_1.serialize)(),
|
|
23
23
|
(0, ts_serval_1.validate)(),
|
|
24
24
|
__metadata("design:type", transport_1.CoreId)
|
|
25
|
-
],
|
|
26
|
-
|
|
27
|
-
(0, ts_serval_1.type)("
|
|
28
|
-
],
|
|
29
|
-
exports.
|
|
30
|
-
//# sourceMappingURL=
|
|
25
|
+
], CreateAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
26
|
+
CreateAttributeAcceptResponseItem = __decorate([
|
|
27
|
+
(0, ts_serval_1.type)("CreateAttributeAcceptResponseItem")
|
|
28
|
+
], CreateAttributeAcceptResponseItem);
|
|
29
|
+
exports.CreateAttributeAcceptResponseItem = CreateAttributeAcceptResponseItem;
|
|
30
|
+
//# sourceMappingURL=CreateAttributeAcceptResponseItem.js.map
|
package/dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,6CAAgG;AAWhG,IAAa,iCAAiC,GAA9C,MAAa,iCACT,SAAQ,6BAAkB;IAOnB,MAAM,CAAU,IAAI,CACvB,KAAiF;QAEjF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;sEAAA;AANjB,iCAAiC;IAD7C,IAAA,gBAAI,EAAC,mCAAmC,CAAC;GAC7B,iCAAiC,CAa7C;AAbY,8EAAiC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RequestItemJSON } from "../..";
|
|
2
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
|
+
import { IRequestItem, RequestItem } from "../../RequestItem";
|
|
4
|
+
export interface CreateAttributeRequestItemJSON extends RequestItemJSON {
|
|
5
|
+
attribute: RelationshipAttributeJSON | IdentityAttributeJSON;
|
|
6
|
+
}
|
|
7
|
+
export interface ICreateAttributeRequestItem extends IRequestItem {
|
|
8
|
+
attribute: IRelationshipAttribute | IIdentityAttribute;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateAttributeRequestItem extends RequestItem implements ICreateAttributeRequestItem {
|
|
11
|
+
attribute: RelationshipAttribute | IdentityAttribute;
|
|
12
|
+
static from(value: ICreateAttributeRequestItem | CreateAttributeRequestItemJSON): CreateAttributeRequestItem;
|
|
13
|
+
}
|
|
@@ -9,21 +9,20 @@ 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.
|
|
12
|
+
exports.CreateAttributeRequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const attributes_1 = require("../../../attributes");
|
|
15
14
|
const RequestItem_1 = require("../../RequestItem");
|
|
16
|
-
let
|
|
15
|
+
let CreateAttributeRequestItem = class CreateAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
17
16
|
static from(value) {
|
|
18
17
|
return this.fromAny(value);
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
__decorate([
|
|
22
21
|
(0, ts_serval_1.validate)(),
|
|
23
|
-
__metadata("design:type",
|
|
24
|
-
],
|
|
25
|
-
|
|
26
|
-
(0, ts_serval_1.type)("
|
|
27
|
-
],
|
|
28
|
-
exports.
|
|
29
|
-
//# sourceMappingURL=
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], CreateAttributeRequestItem.prototype, "attribute", void 0);
|
|
24
|
+
CreateAttributeRequestItem = __decorate([
|
|
25
|
+
(0, ts_serval_1.type)("CreateAttributeRequestItem")
|
|
26
|
+
], CreateAttributeRequestItem);
|
|
27
|
+
exports.CreateAttributeRequestItem = CreateAttributeRequestItem;
|
|
28
|
+
//# sourceMappingURL=CreateAttributeRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAmD;AAUnD,mDAA6D;AAW7D,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,yBAAW;IAIhD,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IADC,IAAA,oBAAQ,GAAE;;6DACgD;AAFlD,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CAStC;AATY,gEAA0B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./authentication/AuthenticationRequestItem";
|
|
2
2
|
export * from "./consent/ConsentRequestItem";
|
|
3
|
-
export * from "./createRelationshipAttribute/
|
|
4
|
-
export * from "./createRelationshipAttribute/
|
|
3
|
+
export * from "./createRelationshipAttribute/CreateAttributeAcceptResponseItem";
|
|
4
|
+
export * from "./createRelationshipAttribute/CreateAttributeRequestItem";
|
|
5
5
|
export * from "./proposeAttribute/ProposeAttributeAcceptResponseItem";
|
|
6
6
|
export * from "./proposeAttribute/ProposeAttributeRequestItem";
|
|
7
7
|
export * from "./readAttribute/ReadAttributeAcceptResponseItem";
|
|
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./authentication/AuthenticationRequestItem"), exports);
|
|
18
18
|
__exportStar(require("./consent/ConsentRequestItem"), exports);
|
|
19
|
-
__exportStar(require("./createRelationshipAttribute/
|
|
20
|
-
__exportStar(require("./createRelationshipAttribute/
|
|
19
|
+
__exportStar(require("./createRelationshipAttribute/CreateAttributeAcceptResponseItem"), exports);
|
|
20
|
+
__exportStar(require("./createRelationshipAttribute/CreateAttributeRequestItem"), exports);
|
|
21
21
|
__exportStar(require("./proposeAttribute/ProposeAttributeAcceptResponseItem"), exports);
|
|
22
22
|
__exportStar(require("./proposeAttribute/ProposeAttributeRequestItem"), exports);
|
|
23
23
|
__exportStar(require("./readAttribute/ReadAttributeAcceptResponseItem"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA0D;AAC1D,+DAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA0D;AAC1D,+DAA4C;AAC5C,kGAA+E;AAC/E,2FAAwE;AACxE,wFAAqE;AACrE,iFAA8D;AAC9D,kFAA+D;AAC/D,2EAAwD;AACxD,oFAAiE;AACjE,6EAA0D"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IdentityAttributeQuery, IdentityAttributeQueryJSON, IIdentityAttributeQuery, IRelationshipAttributeQuery, RelationshipAttributeQuery, RelationshipAttributeQueryJSON } from "../../../attributes";
|
|
2
2
|
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
3
3
|
export interface ReadAttributeRequestItemJSON extends RequestItemJSON {
|
|
4
|
-
query:
|
|
4
|
+
query: IdentityAttributeQueryJSON | RelationshipAttributeQueryJSON;
|
|
5
5
|
}
|
|
6
6
|
export interface IReadAttributeRequestItem extends IRequestItem {
|
|
7
|
-
query:
|
|
7
|
+
query: IIdentityAttributeQuery | IRelationshipAttributeQuery;
|
|
8
8
|
}
|
|
9
9
|
export declare class ReadAttributeRequestItem extends RequestItem implements IReadAttributeRequestItem {
|
|
10
|
-
query:
|
|
10
|
+
query: IdentityAttributeQuery | RelationshipAttributeQuery;
|
|
11
11
|
static from(value: IReadAttributeRequestItem | ReadAttributeRequestItemJSON): ReadAttributeRequestItem;
|
|
12
12
|
}
|
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ReadAttributeRequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const AbstractAttributeQuery_1 = require("../../../attributes/AbstractAttributeQuery");
|
|
15
14
|
const RequestItem_1 = require("../../RequestItem");
|
|
16
15
|
let ReadAttributeRequestItem = class ReadAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
17
16
|
static from(value) {
|
|
@@ -21,7 +20,7 @@ let ReadAttributeRequestItem = class ReadAttributeRequestItem extends RequestIte
|
|
|
21
20
|
__decorate([
|
|
22
21
|
(0, ts_serval_1.serialize)(),
|
|
23
22
|
(0, ts_serval_1.validate)(),
|
|
24
|
-
__metadata("design:type",
|
|
23
|
+
__metadata("design:type", Object)
|
|
25
24
|
], ReadAttributeRequestItem.prototype, "query", void 0);
|
|
26
25
|
ReadAttributeRequestItem = __decorate([
|
|
27
26
|
(0, ts_serval_1.type)("ReadAttributeRequestItem")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;
|
|
1
|
+
{"version":3,"file":"ReadAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAS9D,mDAA8E;AAW9E,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,yBAAW;IAK9C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;uDACsD;AAHxD,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAQpC;AARY,4DAAwB"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateAttributeAcceptResponseItem, CreateAttributeAcceptResponseItemJSON, ICreateAttributeAcceptResponseItem, IProposeAttributeAcceptResponseItem, IReadAttributeAcceptResponseItem, IShareAttributeAcceptResponseItem, ProposeAttributeAcceptResponseItem, ProposeAttributeAcceptResponseItemJSON, ReadAttributeAcceptResponseItem, ReadAttributeAcceptResponseItemJSON, ShareAttributeAcceptResponseItem, ShareAttributeAcceptResponseItemJSON } from "../items";
|
|
2
2
|
import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
|
|
3
3
|
import { ResponseItemResult } from "./ResponseItemResult";
|
|
4
4
|
export interface AcceptResponseItemJSON extends ResponseItemJSON {
|
|
5
5
|
result: ResponseItemResult.Accepted;
|
|
6
6
|
}
|
|
7
|
-
export declare type AcceptResponseItemJSONDerivations = AcceptResponseItemJSON |
|
|
7
|
+
export declare type AcceptResponseItemJSONDerivations = AcceptResponseItemJSON | CreateAttributeAcceptResponseItemJSON | ShareAttributeAcceptResponseItemJSON | ProposeAttributeAcceptResponseItemJSON | ReadAttributeAcceptResponseItemJSON;
|
|
8
8
|
export interface IAcceptResponseItem extends IResponseItem {
|
|
9
9
|
result: ResponseItemResult.Accepted;
|
|
10
10
|
}
|
|
11
|
-
export declare type IAcceptResponseItemDerivations = IAcceptResponseItem |
|
|
11
|
+
export declare type IAcceptResponseItemDerivations = IAcceptResponseItem | ICreateAttributeAcceptResponseItem | IShareAttributeAcceptResponseItem | IProposeAttributeAcceptResponseItem | IReadAttributeAcceptResponseItem;
|
|
12
12
|
export declare class AcceptResponseItem extends ResponseItem implements IAcceptResponseItem {
|
|
13
13
|
result: ResponseItemResult.Accepted;
|
|
14
14
|
static from(value: IAcceptResponseItem | AcceptResponseItemJSON): AcceptResponseItem;
|
|
15
15
|
toJSON(): AcceptResponseItemJSON;
|
|
16
16
|
}
|
|
17
|
-
export declare type AcceptResponseItemDerivations = AcceptResponseItem |
|
|
17
|
+
export declare type AcceptResponseItemDerivations = AcceptResponseItem | CreateAttributeAcceptResponseItem | ShareAttributeAcceptResponseItem | ProposeAttributeAcceptResponseItem | ReadAttributeAcceptResponseItem;
|
package/lib-web/nmshd.content.js
CHANGED
|
@@ -456,7 +456,7 @@ __decorate([
|
|
|
456
456
|
], RelationshipAttributeQuery.prototype, "owner", void 0);
|
|
457
457
|
__decorate([
|
|
458
458
|
(0, ts_serval_1.serialize)(),
|
|
459
|
-
(0, ts_serval_1.validate)(),
|
|
459
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
460
460
|
__metadata("design:type", transport_1.CoreAddress)
|
|
461
461
|
], RelationshipAttributeQuery.prototype, "thirdParty", void 0);
|
|
462
462
|
__decorate([
|
|
@@ -5487,10 +5487,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
5487
5487
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
5488
5488
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
5489
5489
|
exports.buildInformation = {
|
|
5490
|
-
version: "2.0.0-beta.
|
|
5491
|
-
build: "
|
|
5492
|
-
date: "2022-09-
|
|
5493
|
-
commit: "
|
|
5490
|
+
version: "2.0.0-beta.18",
|
|
5491
|
+
build: "95",
|
|
5492
|
+
date: "2022-09-07T13:10:38+00:00",
|
|
5493
|
+
commit: "49c3e4006da2fe4e7eab6c6e9de69eb3af20716f",
|
|
5494
5494
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6"},
|
|
5495
5495
|
libraries: {
|
|
5496
5496
|
serval: ts_serval_1.buildInformation,
|
|
@@ -6497,10 +6497,10 @@ exports.ConsentRequestItem = ConsentRequestItem;
|
|
|
6497
6497
|
|
|
6498
6498
|
/***/ }),
|
|
6499
6499
|
|
|
6500
|
-
/***/ "./dist/requests/items/createRelationshipAttribute/
|
|
6501
|
-
|
|
6502
|
-
!*** ./dist/requests/items/createRelationshipAttribute/
|
|
6503
|
-
|
|
6500
|
+
/***/ "./dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js":
|
|
6501
|
+
/*!**********************************************************************************************!*\
|
|
6502
|
+
!*** ./dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js ***!
|
|
6503
|
+
\**********************************************************************************************/
|
|
6504
6504
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6505
6505
|
|
|
6506
6506
|
|
|
@@ -6514,11 +6514,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
6514
6514
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6515
6515
|
};
|
|
6516
6516
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6517
|
-
exports.
|
|
6517
|
+
exports.CreateAttributeAcceptResponseItem = void 0;
|
|
6518
6518
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6519
6519
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6520
6520
|
const response_1 = __webpack_require__(/*! ../../response */ "./dist/requests/response/index.js");
|
|
6521
|
-
let
|
|
6521
|
+
let CreateAttributeAcceptResponseItem = class CreateAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
|
|
6522
6522
|
static from(value) {
|
|
6523
6523
|
return this.fromAny(value);
|
|
6524
6524
|
}
|
|
@@ -6527,19 +6527,19 @@ __decorate([
|
|
|
6527
6527
|
(0, ts_serval_1.serialize)(),
|
|
6528
6528
|
(0, ts_serval_1.validate)(),
|
|
6529
6529
|
__metadata("design:type", transport_1.CoreId)
|
|
6530
|
-
],
|
|
6531
|
-
|
|
6532
|
-
(0, ts_serval_1.type)("
|
|
6533
|
-
],
|
|
6534
|
-
exports.
|
|
6535
|
-
//# sourceMappingURL=
|
|
6530
|
+
], CreateAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
6531
|
+
CreateAttributeAcceptResponseItem = __decorate([
|
|
6532
|
+
(0, ts_serval_1.type)("CreateAttributeAcceptResponseItem")
|
|
6533
|
+
], CreateAttributeAcceptResponseItem);
|
|
6534
|
+
exports.CreateAttributeAcceptResponseItem = CreateAttributeAcceptResponseItem;
|
|
6535
|
+
//# sourceMappingURL=CreateAttributeAcceptResponseItem.js.map
|
|
6536
6536
|
|
|
6537
6537
|
/***/ }),
|
|
6538
6538
|
|
|
6539
|
-
/***/ "./dist/requests/items/createRelationshipAttribute/
|
|
6540
|
-
|
|
6541
|
-
!*** ./dist/requests/items/createRelationshipAttribute/
|
|
6542
|
-
|
|
6539
|
+
/***/ "./dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.js":
|
|
6540
|
+
/*!***************************************************************************************!*\
|
|
6541
|
+
!*** ./dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.js ***!
|
|
6542
|
+
\***************************************************************************************/
|
|
6543
6543
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6544
6544
|
|
|
6545
6545
|
|
|
@@ -6553,24 +6553,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
6553
6553
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6554
6554
|
};
|
|
6555
6555
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6556
|
-
exports.
|
|
6556
|
+
exports.CreateAttributeRequestItem = void 0;
|
|
6557
6557
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6558
|
-
const attributes_1 = __webpack_require__(/*! ../../../attributes */ "./dist/attributes/index.js");
|
|
6559
6558
|
const RequestItem_1 = __webpack_require__(/*! ../../RequestItem */ "./dist/requests/RequestItem.js");
|
|
6560
|
-
let
|
|
6559
|
+
let CreateAttributeRequestItem = class CreateAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
6561
6560
|
static from(value) {
|
|
6562
6561
|
return this.fromAny(value);
|
|
6563
6562
|
}
|
|
6564
6563
|
};
|
|
6565
6564
|
__decorate([
|
|
6566
6565
|
(0, ts_serval_1.validate)(),
|
|
6567
|
-
__metadata("design:type",
|
|
6568
|
-
],
|
|
6569
|
-
|
|
6570
|
-
(0, ts_serval_1.type)("
|
|
6571
|
-
],
|
|
6572
|
-
exports.
|
|
6573
|
-
//# sourceMappingURL=
|
|
6566
|
+
__metadata("design:type", Object)
|
|
6567
|
+
], CreateAttributeRequestItem.prototype, "attribute", void 0);
|
|
6568
|
+
CreateAttributeRequestItem = __decorate([
|
|
6569
|
+
(0, ts_serval_1.type)("CreateAttributeRequestItem")
|
|
6570
|
+
], CreateAttributeRequestItem);
|
|
6571
|
+
exports.CreateAttributeRequestItem = CreateAttributeRequestItem;
|
|
6572
|
+
//# sourceMappingURL=CreateAttributeRequestItem.js.map
|
|
6574
6573
|
|
|
6575
6574
|
/***/ }),
|
|
6576
6575
|
|
|
@@ -6598,8 +6597,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6598
6597
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6599
6598
|
__exportStar(__webpack_require__(/*! ./authentication/AuthenticationRequestItem */ "./dist/requests/items/authentication/AuthenticationRequestItem.js"), exports);
|
|
6600
6599
|
__exportStar(__webpack_require__(/*! ./consent/ConsentRequestItem */ "./dist/requests/items/consent/ConsentRequestItem.js"), exports);
|
|
6601
|
-
__exportStar(__webpack_require__(/*! ./createRelationshipAttribute/
|
|
6602
|
-
__exportStar(__webpack_require__(/*! ./createRelationshipAttribute/
|
|
6600
|
+
__exportStar(__webpack_require__(/*! ./createRelationshipAttribute/CreateAttributeAcceptResponseItem */ "./dist/requests/items/createRelationshipAttribute/CreateAttributeAcceptResponseItem.js"), exports);
|
|
6601
|
+
__exportStar(__webpack_require__(/*! ./createRelationshipAttribute/CreateAttributeRequestItem */ "./dist/requests/items/createRelationshipAttribute/CreateAttributeRequestItem.js"), exports);
|
|
6603
6602
|
__exportStar(__webpack_require__(/*! ./proposeAttribute/ProposeAttributeAcceptResponseItem */ "./dist/requests/items/proposeAttribute/ProposeAttributeAcceptResponseItem.js"), exports);
|
|
6604
6603
|
__exportStar(__webpack_require__(/*! ./proposeAttribute/ProposeAttributeRequestItem */ "./dist/requests/items/proposeAttribute/ProposeAttributeRequestItem.js"), exports);
|
|
6605
6604
|
__exportStar(__webpack_require__(/*! ./readAttribute/ReadAttributeAcceptResponseItem */ "./dist/requests/items/readAttribute/ReadAttributeAcceptResponseItem.js"), exports);
|
|
@@ -6783,7 +6782,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
6783
6782
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6784
6783
|
exports.ReadAttributeRequestItem = void 0;
|
|
6785
6784
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6786
|
-
const AbstractAttributeQuery_1 = __webpack_require__(/*! ../../../attributes/AbstractAttributeQuery */ "./dist/attributes/AbstractAttributeQuery.js");
|
|
6787
6785
|
const RequestItem_1 = __webpack_require__(/*! ../../RequestItem */ "./dist/requests/RequestItem.js");
|
|
6788
6786
|
let ReadAttributeRequestItem = class ReadAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
6789
6787
|
static from(value) {
|
|
@@ -6793,7 +6791,7 @@ let ReadAttributeRequestItem = class ReadAttributeRequestItem extends RequestIte
|
|
|
6793
6791
|
__decorate([
|
|
6794
6792
|
(0, ts_serval_1.serialize)(),
|
|
6795
6793
|
(0, ts_serval_1.validate)(),
|
|
6796
|
-
__metadata("design:type",
|
|
6794
|
+
__metadata("design:type", Object)
|
|
6797
6795
|
], ReadAttributeRequestItem.prototype, "query", void 0);
|
|
6798
6796
|
ReadAttributeRequestItem = __decorate([
|
|
6799
6797
|
(0, ts_serval_1.type)("ReadAttributeRequestItem")
|