@nmshd/content 2.0.0-beta.2 → 2.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buildInformation.js +4 -4
- package/dist/requests/RequestItem.d.ts +6 -4
- package/dist/requests/RequestItem.js.map +1 -1
- package/dist/requests/items/consent/ConsentRequestItem.d.ts +17 -0
- package/dist/requests/items/consent/ConsentRequestItem.js +36 -0
- package/dist/requests/items/consent/ConsentRequestItem.js.map +1 -0
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem.d.ts +12 -0
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem.js +30 -0
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem.d.ts +13 -0
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem.js +29 -0
- package/dist/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem.js.map +1 -0
- package/dist/requests/items/index.d.ts +5 -2
- package/dist/requests/items/index.js +5 -2
- package/dist/requests/items/index.js.map +1 -1
- package/dist/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeAcceptResponseItem.d.ts +12 -0
- package/dist/requests/items/{createAttribute/CreateAttributeAcceptResponseItem.js → shareOwnIdentityAttribute/ShareOwnIdentityAttributeAcceptResponseItem.js} +8 -8
- package/dist/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem.d.ts +17 -0
- package/dist/requests/items/{createAttribute/CreateAttributeRequestItem.js → shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem.js} +12 -12
- package/dist/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem.js.map +1 -0
- package/dist/requests/response/AcceptResponseItem.d.ts +4 -4
- package/dist/requests/response/AcceptResponseItem.js.map +1 -1
- package/lib-web/nmshd.content.js +163 -38
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +4 -4
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.d.ts +0 -12
- package/dist/requests/items/createAttribute/CreateAttributeAcceptResponseItem.js.map +0 -1
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.d.ts +0 -17
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js.map +0 -1
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-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-beta.5",
|
|
9
|
+
build: "82",
|
|
10
|
+
date: "2022-08-04T10:02:54+00:00",
|
|
11
|
+
commit: "d1e9702c0f0d02eb66df6f64875b27226e1be145",
|
|
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,6 +1,8 @@
|
|
|
1
1
|
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
|
-
import {
|
|
3
|
+
import { ConsentRequestItem, ConsentRequestItemJSON, IConsentRequestItem, IProposeAttributeRequestItem, IReadAttributeRequestItem, IShareAttributeRequestItem, ProposeAttributeRequestItem, ProposeAttributeRequestItemJSON, ReadAttributeRequestItem, ReadAttributeRequestItemJSON, ShareAttributeRequestItem, ShareAttributeRequestItemJSON } from "./items";
|
|
4
|
+
import { CreateOwnRelationshipAttributeRequestItem, CreateOwnRelationshipAttributeRequestItemJSON, ICreateOwnRelationshipAttributeRequestItem } from "./items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem";
|
|
5
|
+
import { IShareOwnIdentityAttributeRequestItem, ShareOwnIdentityAttributeRequestItem, ShareOwnIdentityAttributeRequestItemJSON } from "./items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem";
|
|
4
6
|
export interface RequestItemJSON extends ContentJSON {
|
|
5
7
|
/**
|
|
6
8
|
* The human-readable title of this item.
|
|
@@ -28,7 +30,7 @@ export interface RequestItemJSON extends ContentJSON {
|
|
|
28
30
|
*/
|
|
29
31
|
mustBeAccepted: boolean;
|
|
30
32
|
}
|
|
31
|
-
export declare type RequestItemJSONDerivations = RequestItemJSON |
|
|
33
|
+
export declare type RequestItemJSONDerivations = RequestItemJSON | CreateOwnRelationshipAttributeRequestItemJSON | ShareOwnIdentityAttributeRequestItemJSON | ProposeAttributeRequestItemJSON | ReadAttributeRequestItemJSON | ShareAttributeRequestItemJSON | ConsentRequestItemJSON;
|
|
32
34
|
export interface IRequestItem extends ISerializable {
|
|
33
35
|
/**
|
|
34
36
|
* The human-readable title of this item.
|
|
@@ -56,7 +58,7 @@ export interface IRequestItem extends ISerializable {
|
|
|
56
58
|
*/
|
|
57
59
|
mustBeAccepted: boolean;
|
|
58
60
|
}
|
|
59
|
-
export declare type IRequestItemDerivations = IRequestItem |
|
|
61
|
+
export declare type IRequestItemDerivations = IRequestItem | ICreateOwnRelationshipAttributeRequestItem | IShareOwnIdentityAttributeRequestItem | IProposeAttributeRequestItem | IReadAttributeRequestItem | IShareAttributeRequestItem | IConsentRequestItem;
|
|
60
62
|
export declare abstract class RequestItem extends Serializable {
|
|
61
63
|
title?: string;
|
|
62
64
|
description?: string;
|
|
@@ -64,4 +66,4 @@ export declare abstract class RequestItem extends Serializable {
|
|
|
64
66
|
metadata?: object;
|
|
65
67
|
toJSON(): RequestItemJSON;
|
|
66
68
|
}
|
|
67
|
-
export declare type RequestItemDerivations = RequestItem |
|
|
69
|
+
export declare type RequestItemDerivations = RequestItem | CreateOwnRelationshipAttributeRequestItem | ShareOwnIdentityAttributeRequestItem | ProposeAttributeRequestItem | ReadAttributeRequestItem | ShareAttributeRequestItem | ConsentRequestItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;
|
|
1
|
+
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AA2GrF,MAAsB,WAAY,SAAQ,wBAAY;IAiBlC,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAAqB,CAAA;IAC5C,CAAC;CACJ;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACL;AAf5B,kCAoBC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
2
|
+
export interface ConsentRequestItemJSON extends RequestItemJSON {
|
|
3
|
+
consent: string;
|
|
4
|
+
link?: string;
|
|
5
|
+
requireActiveConsent?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface IConsentRequestItem extends IRequestItem {
|
|
8
|
+
consent: string;
|
|
9
|
+
link?: string;
|
|
10
|
+
requireActiveConsent?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class ConsentRequestItem extends RequestItem implements IConsentRequestItem {
|
|
13
|
+
consent: string;
|
|
14
|
+
link?: string;
|
|
15
|
+
requireActiveConsent?: boolean;
|
|
16
|
+
static from(value: IConsentRequestItem): ConsentRequestItem;
|
|
17
|
+
}
|
|
@@ -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.ConsentRequestItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const RequestItem_1 = require("../../RequestItem");
|
|
15
|
+
class ConsentRequestItem extends RequestItem_1.RequestItem {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ConsentRequestItem.prototype, "consent", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.serialize)(),
|
|
27
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ConsentRequestItem.prototype, "link", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.serialize)(),
|
|
32
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], ConsentRequestItem.prototype, "requireActiveConsent", void 0);
|
|
35
|
+
exports.ConsentRequestItem = ConsentRequestItem;
|
|
36
|
+
//# sourceMappingURL=ConsentRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsentRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/consent/ConsentRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAwD;AACxD,mDAA8E;AAc9E,MAAa,kBAAmB,SAAQ,yBAAW;IAaxC,MAAM,CAAC,IAAI,CAAC,KAA0B;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;mDACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACT;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACQ;AAXzC,gDAgBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
2
|
+
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
3
|
+
export interface CreateOwnRelationshipAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
4
|
+
attributeId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ICreateOwnRelationshipAttributeAcceptResponseItem extends IAcceptResponseItem {
|
|
7
|
+
attributeId: ICoreId;
|
|
8
|
+
}
|
|
9
|
+
export declare class CreateOwnRelationshipAttributeAcceptResponseItem extends AcceptResponseItem implements ICreateOwnRelationshipAttributeAcceptResponseItem {
|
|
10
|
+
attributeId: CoreId;
|
|
11
|
+
static from(value: ICreateOwnRelationshipAttributeAcceptResponseItem | CreateOwnRelationshipAttributeAcceptResponseItemJSON): CreateOwnRelationshipAttributeAcceptResponseItem;
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.CreateOwnRelationshipAttributeAcceptResponseItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
|
+
const response_1 = require("../../response");
|
|
16
|
+
let CreateOwnRelationshipAttributeAcceptResponseItem = class CreateOwnRelationshipAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.serialize)(),
|
|
23
|
+
(0, ts_serval_1.validate)(),
|
|
24
|
+
__metadata("design:type", transport_1.CoreId)
|
|
25
|
+
], CreateOwnRelationshipAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
26
|
+
CreateOwnRelationshipAttributeAcceptResponseItem = __decorate([
|
|
27
|
+
(0, ts_serval_1.type)("CreateOwnRelationshipAttributeAcceptResponseItem")
|
|
28
|
+
], CreateOwnRelationshipAttributeAcceptResponseItem);
|
|
29
|
+
exports.CreateOwnRelationshipAttributeAcceptResponseItem = CreateOwnRelationshipAttributeAcceptResponseItem;
|
|
30
|
+
//# sourceMappingURL=CreateOwnRelationshipAttributeAcceptResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateOwnRelationshipAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,6CAAgG;AAWhG,IAAa,gDAAgD,GAA7D,MAAa,gDACT,SAAQ,6BAAkB;IAOnB,MAAM,CAAU,IAAI,CACvB,KAA+G;QAE/G,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;qFAAA;AANjB,gDAAgD;IAD5D,IAAA,gBAAI,EAAC,kDAAkD,CAAC;GAC5C,gDAAgD,CAa5D;AAbY,4GAAgD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RequestItemJSON } from "../..";
|
|
2
|
+
import { IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
|
+
import { IRequestItem, RequestItem } from "../../RequestItem";
|
|
4
|
+
export interface CreateOwnRelationshipAttributeRequestItemJSON extends RequestItemJSON {
|
|
5
|
+
attribute: RelationshipAttributeJSON;
|
|
6
|
+
}
|
|
7
|
+
export interface ICreateOwnRelationshipAttributeRequestItem extends IRequestItem {
|
|
8
|
+
attribute: IRelationshipAttribute;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateOwnRelationshipAttributeRequestItem extends RequestItem implements ICreateOwnRelationshipAttributeRequestItem {
|
|
11
|
+
attribute: RelationshipAttribute;
|
|
12
|
+
static from(value: ICreateOwnRelationshipAttributeRequestItem | CreateOwnRelationshipAttributeRequestItemJSON): CreateOwnRelationshipAttributeRequestItem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.CreateOwnRelationshipAttributeRequestItem = 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 CreateOwnRelationshipAttributeRequestItem = class CreateOwnRelationshipAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.validate)(),
|
|
23
|
+
__metadata("design:type", attributes_1.RelationshipAttribute)
|
|
24
|
+
], CreateOwnRelationshipAttributeRequestItem.prototype, "attribute", void 0);
|
|
25
|
+
CreateOwnRelationshipAttributeRequestItem = __decorate([
|
|
26
|
+
(0, ts_serval_1.type)("CreateOwnRelationshipAttributeRequestItem")
|
|
27
|
+
], CreateOwnRelationshipAttributeRequestItem);
|
|
28
|
+
exports.CreateOwnRelationshipAttributeRequestItem = CreateOwnRelationshipAttributeRequestItem;
|
|
29
|
+
//# sourceMappingURL=CreateOwnRelationshipAttributeRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateOwnRelationshipAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAmD;AAEnD,oDAA8G;AAC9G,mDAA6D;AAW7D,IAAa,yCAAyC,GAAtD,MAAa,yCACT,SAAQ,yBAAW;IAMZ,MAAM,CAAC,IAAI,CACd,KAAiG;QAEjG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IADC,IAAA,oBAAQ,GAAE;8BACO,kCAAqB;4EAAA;AAL9B,yCAAyC;IADrD,IAAA,gBAAI,EAAC,2CAA2C,CAAC;GACrC,yCAAyC,CAYrD;AAZY,8FAAyC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./consent/ConsentRequestItem";
|
|
2
|
+
export * from "./createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem";
|
|
3
|
+
export * from "./createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem";
|
|
3
4
|
export * from "./proposeAttribute/ProposeAttributeAcceptResponseItem";
|
|
4
5
|
export * from "./proposeAttribute/ProposeAttributeRequestItem";
|
|
5
6
|
export * from "./readAttribute/ReadAttributeAcceptResponseItem";
|
|
6
7
|
export * from "./readAttribute/ReadAttributeRequestItem";
|
|
7
8
|
export * from "./shareAttribute/ShareAttributeRequestItem";
|
|
9
|
+
export * from "./shareOwnIdentityAttribute/ShareOwnIdentityAttributeAcceptResponseItem";
|
|
10
|
+
export * from "./shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem";
|
|
@@ -14,11 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./consent/ConsentRequestItem"), exports);
|
|
18
|
+
__exportStar(require("./createOwnRelationshipAttribute/CreateOwnRelationshipAttributeAcceptResponseItem"), exports);
|
|
19
|
+
__exportStar(require("./createOwnRelationshipAttribute/CreateOwnRelationshipAttributeRequestItem"), exports);
|
|
19
20
|
__exportStar(require("./proposeAttribute/ProposeAttributeAcceptResponseItem"), exports);
|
|
20
21
|
__exportStar(require("./proposeAttribute/ProposeAttributeRequestItem"), exports);
|
|
21
22
|
__exportStar(require("./readAttribute/ReadAttributeAcceptResponseItem"), exports);
|
|
22
23
|
__exportStar(require("./readAttribute/ReadAttributeRequestItem"), exports);
|
|
23
24
|
__exportStar(require("./shareAttribute/ShareAttributeRequestItem"), exports);
|
|
25
|
+
__exportStar(require("./shareOwnIdentityAttribute/ShareOwnIdentityAttributeAcceptResponseItem"), exports);
|
|
26
|
+
__exportStar(require("./shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem"), exports);
|
|
24
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/requests/items/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,oHAAiG;AACjG,6GAA0F;AAC1F,wFAAqE;AACrE,iFAA8D;AAC9D,kFAA+D;AAC/D,2EAAwD;AACxD,6EAA0D;AAC1D,0GAAuF;AACvF,mGAAgF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
2
|
+
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
3
|
+
export interface ShareOwnIdentityAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
4
|
+
attributeId: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IShareOwnIdentityAttributeAcceptResponseItem extends IAcceptResponseItem {
|
|
7
|
+
attributeId: ICoreId;
|
|
8
|
+
}
|
|
9
|
+
export declare class ShareOwnIdentityAttributeAcceptResponseItem extends AcceptResponseItem implements IShareOwnIdentityAttributeAcceptResponseItem {
|
|
10
|
+
attributeId: CoreId;
|
|
11
|
+
static from(value: IShareOwnIdentityAttributeAcceptResponseItem | ShareOwnIdentityAttributeAcceptResponseItemJSON): ShareOwnIdentityAttributeAcceptResponseItem;
|
|
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.ShareOwnIdentityAttributeAcceptResponseItem = 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 ShareOwnIdentityAttributeAcceptResponseItem = class ShareOwnIdentityAttributeAcceptResponseItem 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
|
+
], ShareOwnIdentityAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
26
|
+
ShareOwnIdentityAttributeAcceptResponseItem = __decorate([
|
|
27
|
+
(0, ts_serval_1.type)("ShareOwnIdentityAttributeAcceptResponseItem")
|
|
28
|
+
], ShareOwnIdentityAttributeAcceptResponseItem);
|
|
29
|
+
exports.ShareOwnIdentityAttributeAcceptResponseItem = ShareOwnIdentityAttributeAcceptResponseItem;
|
|
30
|
+
//# sourceMappingURL=ShareOwnIdentityAttributeAcceptResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareOwnIdentityAttributeAcceptResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeAcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,6CAAgG;AAWhG,IAAa,2CAA2C,GAAxD,MAAa,2CACT,SAAQ,6BAAkB;IAOnB,MAAM,CAAU,IAAI,CACvB,KAAqG;QAErG,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAPG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;gFAAA;AANjB,2CAA2C;IADvD,IAAA,gBAAI,EAAC,6CAA6C,CAAC;GACvC,2CAA2C,CAavD;AAbY,kGAA2C"}
|
package/dist/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
2
|
+
import { RequestItemJSON } from "../..";
|
|
3
|
+
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute } from "../../../attributes";
|
|
4
|
+
import { IRequestItem, RequestItem } from "../../RequestItem";
|
|
5
|
+
export interface ShareOwnIdentityAttributeRequestItemJSON extends RequestItemJSON {
|
|
6
|
+
attribute: IdentityAttributeJSON;
|
|
7
|
+
sourceAttributeId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IShareOwnIdentityAttributeRequestItem extends IRequestItem {
|
|
10
|
+
attribute: IIdentityAttribute;
|
|
11
|
+
sourceAttributeId: ICoreId;
|
|
12
|
+
}
|
|
13
|
+
export declare class ShareOwnIdentityAttributeRequestItem extends RequestItem implements IShareOwnIdentityAttributeRequestItem {
|
|
14
|
+
attribute: IdentityAttribute;
|
|
15
|
+
sourceAttributeId: CoreId;
|
|
16
|
+
static from(value: IShareOwnIdentityAttributeRequestItem | ShareOwnIdentityAttributeRequestItemJSON): ShareOwnIdentityAttributeRequestItem;
|
|
17
|
+
}
|
|
@@ -9,28 +9,28 @@ 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.ShareOwnIdentityAttributeRequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const transport_1 = require("@nmshd/transport");
|
|
15
15
|
const attributes_1 = require("../../../attributes");
|
|
16
16
|
const RequestItem_1 = require("../../RequestItem");
|
|
17
|
-
let
|
|
17
|
+
let ShareOwnIdentityAttributeRequestItem = class ShareOwnIdentityAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
18
18
|
static from(value) {
|
|
19
19
|
return this.fromAny(value);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, ts_serval_1.serialize)(
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
24
|
(0, ts_serval_1.validate)(),
|
|
25
|
-
__metadata("design:type",
|
|
26
|
-
],
|
|
25
|
+
__metadata("design:type", attributes_1.IdentityAttribute)
|
|
26
|
+
], ShareOwnIdentityAttributeRequestItem.prototype, "attribute", void 0);
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, ts_serval_1.serialize)(),
|
|
29
|
-
(0, ts_serval_1.validate)(
|
|
29
|
+
(0, ts_serval_1.validate)(),
|
|
30
30
|
__metadata("design:type", transport_1.CoreId)
|
|
31
|
-
],
|
|
32
|
-
|
|
33
|
-
(0, ts_serval_1.type)("
|
|
34
|
-
],
|
|
35
|
-
exports.
|
|
36
|
-
//# sourceMappingURL=
|
|
31
|
+
], ShareOwnIdentityAttributeRequestItem.prototype, "sourceAttributeId", void 0);
|
|
32
|
+
ShareOwnIdentityAttributeRequestItem = __decorate([
|
|
33
|
+
(0, ts_serval_1.type)("ShareOwnIdentityAttributeRequestItem")
|
|
34
|
+
], ShareOwnIdentityAttributeRequestItem);
|
|
35
|
+
exports.ShareOwnIdentityAttributeRequestItem = ShareOwnIdentityAttributeRequestItem;
|
|
36
|
+
//# sourceMappingURL=ShareOwnIdentityAttributeRequestItem.js.map
|
package/dist/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareOwnIdentityAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/shareOwnIdentityAttribute/ShareOwnIdentityAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAElD,oDAAkG;AAClG,mDAA6D;AAa7D,IAAa,oCAAoC,GAAjD,MAAa,oCAAqC,SAAQ,yBAAW;IAS1D,MAAM,CAAC,IAAI,CACd,KAAuF;QAEvF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,8BAAiB;uEAAA;AAInC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACe,kBAAM;+EAAA;AAPvB,oCAAoC;IADhD,IAAA,gBAAI,EAAC,sCAAsC,CAAC;GAChC,oCAAoC,CAchD;AAdY,oFAAoC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateOwnRelationshipAttributeAcceptResponseItem, CreateOwnRelationshipAttributeAcceptResponseItemJSON, ICreateOwnRelationshipAttributeAcceptResponseItem, IProposeAttributeAcceptResponseItem, IReadAttributeAcceptResponseItem, IShareOwnIdentityAttributeAcceptResponseItem, ProposeAttributeAcceptResponseItem, ProposeAttributeAcceptResponseItemJSON, ReadAttributeAcceptResponseItem, ReadAttributeAcceptResponseItemJSON, ShareOwnIdentityAttributeAcceptResponseItem, ShareOwnIdentityAttributeAcceptResponseItemJSON } 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 | CreateOwnRelationshipAttributeAcceptResponseItemJSON | ShareOwnIdentityAttributeAcceptResponseItemJSON | 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 | ICreateOwnRelationshipAttributeAcceptResponseItem | IShareOwnIdentityAttributeAcceptResponseItem | 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 | CreateOwnRelationshipAttributeAcceptResponseItem | ShareOwnIdentityAttributeAcceptResponseItem | ProposeAttributeAcceptResponseItem | ReadAttributeAcceptResponseItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcceptResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/AcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;
|
|
1
|
+
{"version":3,"file":"AcceptResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/AcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAyC;AAezC,iDAA8E;AA0B9E,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,2BAAY;IAGzC,MAAM,CAAC,IAAI,CAAC,KAAmD;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAEe,MAAM;QAClB,OAAO,KAAK,CAAC,MAAM,EAA4B,CAAA;IACnD,CAAC;CACJ,CAAA;AAVY,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAU9B;AAVY,gDAAkB"}
|