@nmshd/content 2.0.0-alpha.10 → 2.0.0-alpha.11
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/relationships/RelationshipCreationChangeRequestContent.d.ts +16 -0
- package/dist/{authorizations/Authorization.js → relationships/RelationshipCreationChangeRequestContent.js} +14 -13
- package/dist/relationships/RelationshipCreationChangeRequestContent.js.map +1 -0
- package/dist/relationships/RelationshipTemplateContent.d.ts +22 -0
- package/dist/relationships/RelationshipTemplateContent.js +44 -0
- package/dist/relationships/RelationshipTemplateContent.js.map +1 -0
- package/dist/relationships/index.d.ts +2 -4
- package/dist/relationships/index.js +2 -4
- package/dist/relationships/index.js.map +1 -1
- package/dist/requests/Request.d.ts +11 -0
- package/dist/requests/Request.js +5 -0
- package/dist/requests/Request.js.map +1 -1
- package/dist/requests/RequestItem.d.ts +2 -2
- package/dist/requests/RequestItemGroup.d.ts +2 -2
- package/dist/requests/response/Response.d.ts +3 -0
- package/dist/requests/response/Response.js +5 -0
- package/dist/requests/response/Response.js.map +1 -1
- package/lib-web/nmshd.content.js +50 -195
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +7 -7
- package/dist/authorizations/Authorization.d.ts +0 -14
- package/dist/authorizations/Authorization.js.map +0 -1
- package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +0 -29
- package/dist/relationships/RelationshipCreationChangeRequestBody.js +0 -55
- package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +0 -1
- package/dist/relationships/RelationshipExistsAction.d.ts +0 -7
- package/dist/relationships/RelationshipExistsAction.js +0 -17
- package/dist/relationships/RelationshipExistsAction.js.map +0 -1
- package/dist/relationships/RelationshipExistsMessageAction.d.ts +0 -11
- package/dist/relationships/RelationshipExistsMessageAction.js +0 -26
- package/dist/relationships/RelationshipExistsMessageAction.js.map +0 -1
- package/dist/relationships/RelationshipTemplateBody.d.ts +0 -42
- package/dist/relationships/RelationshipTemplateBody.js +0 -72
- package/dist/relationships/RelationshipTemplateBody.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/content",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.11",
|
|
4
4
|
"description": "The content library defines data structures that can be transmitted using the transport library.",
|
|
5
5
|
"homepage": "https://enmeshed.eu",
|
|
6
6
|
"repository": "github:nmshd/cns-content",
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
"@nmshd/crypto": "2.0.1",
|
|
48
48
|
"@nmshd/transport": "2.0.0-alpha.1",
|
|
49
49
|
"@types/chai": "^4.3.1",
|
|
50
|
-
"@types/luxon": "^2.3.
|
|
50
|
+
"@types/luxon": "^2.3.2",
|
|
51
51
|
"@types/mocha": "^9.1.1",
|
|
52
|
-
"@types/node": "^17.0.
|
|
52
|
+
"@types/node": "^17.0.33",
|
|
53
53
|
"bt-runner": "^2.0.5",
|
|
54
54
|
"chai": "^4.3.6",
|
|
55
55
|
"copy-webpack-plugin": "^10.2.4",
|
|
56
|
-
"eslint": "^8.
|
|
56
|
+
"eslint": "^8.15.0",
|
|
57
57
|
"madge": "^5.0.1",
|
|
58
|
-
"mocha": "^
|
|
58
|
+
"mocha": "^10.0.0",
|
|
59
59
|
"prettier": "^2.6.2",
|
|
60
60
|
"terser-webpack-plugin": "5.3.1",
|
|
61
61
|
"ts-node": "^10.7.0",
|
|
62
|
-
"tsconfig-paths": "^
|
|
62
|
+
"tsconfig-paths": "^4.0.0",
|
|
63
63
|
"typescript": "^4.6.4",
|
|
64
|
-
"webpack": "^5.72.
|
|
64
|
+
"webpack": "^5.72.1",
|
|
65
65
|
"webpack-cli": "^4.9.2"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
export interface AuthorizationJSON {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IAuthorization {
|
|
7
|
-
name: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class Authorization extends Serializable implements IAuthorization {
|
|
11
|
-
name: string;
|
|
12
|
-
value: string;
|
|
13
|
-
static from(value: IAuthorization): Authorization;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Authorization.js","sourceRoot":"","sources":["../../src/authorizations/Authorization.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4E;AAa5E,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,wBAAY;IASpC,MAAM,CAAC,IAAI,CAAC,KAAqB;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;2CACO;AAInB;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;;4CACQ;AAPX,aAAa;IADzB,IAAA,gBAAI,EAAC,eAAe,CAAC;GACT,aAAa,CAYzB;AAZY,sCAAa"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
|
|
3
|
-
import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
|
|
4
|
-
import { ContentJSON } from "../ContentJSON";
|
|
5
|
-
export interface RelationshipCreationChangeRequestBodyJSON extends ContentJSON {
|
|
6
|
-
title?: string;
|
|
7
|
-
sessionIdentifier?: string;
|
|
8
|
-
metadata?: any;
|
|
9
|
-
sharedAttributes?: AttributeJSON[];
|
|
10
|
-
sharedCertificates?: any[];
|
|
11
|
-
sharedAuthorizations?: AuthorizationJSON[];
|
|
12
|
-
}
|
|
13
|
-
export interface IRelationshipCreationChangeRequestBody extends ISerializable {
|
|
14
|
-
title?: string;
|
|
15
|
-
sessionIdentifier?: string;
|
|
16
|
-
metadata?: any;
|
|
17
|
-
sharedAttributes?: IAttribute[];
|
|
18
|
-
sharedCertificates?: any[];
|
|
19
|
-
sharedAuthorizations?: IAuthorization[];
|
|
20
|
-
}
|
|
21
|
-
export declare class RelationshipCreationChangeRequestBody extends Serializable implements IRelationshipCreationChangeRequestBody {
|
|
22
|
-
title?: string;
|
|
23
|
-
sessionIdentifier?: string;
|
|
24
|
-
metadata?: any;
|
|
25
|
-
sharedAttributes?: Attribute[];
|
|
26
|
-
sharedCertificates?: any[];
|
|
27
|
-
sharedAuthorizations?: Authorization[];
|
|
28
|
-
static from(value: IRelationshipCreationChangeRequestBody): RelationshipCreationChangeRequestBody;
|
|
29
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
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.RelationshipCreationChangeRequestBody = void 0;
|
|
13
|
-
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const Attribute_1 = require("../attributes/Attribute");
|
|
15
|
-
const Authorization_1 = require("../authorizations/Authorization");
|
|
16
|
-
let RelationshipCreationChangeRequestBody = class RelationshipCreationChangeRequestBody extends ts_serval_1.Serializable {
|
|
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)({ nullable: true }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], RelationshipCreationChangeRequestBody.prototype, "title", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, ts_serval_1.serialize)(),
|
|
28
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], RelationshipCreationChangeRequestBody.prototype, "sessionIdentifier", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, ts_serval_1.serialize)({ any: true }),
|
|
33
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
34
|
-
__metadata("design:type", Object)
|
|
35
|
-
], RelationshipCreationChangeRequestBody.prototype, "metadata", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
38
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
39
|
-
__metadata("design:type", Array)
|
|
40
|
-
], RelationshipCreationChangeRequestBody.prototype, "sharedAttributes", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, ts_serval_1.serialize)(),
|
|
43
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
44
|
-
__metadata("design:type", Array)
|
|
45
|
-
], RelationshipCreationChangeRequestBody.prototype, "sharedCertificates", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
|
|
48
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
49
|
-
__metadata("design:type", Array)
|
|
50
|
-
], RelationshipCreationChangeRequestBody.prototype, "sharedAuthorizations", void 0);
|
|
51
|
-
RelationshipCreationChangeRequestBody = __decorate([
|
|
52
|
-
(0, ts_serval_1.type)("RelationshipCreationChangeRequestBody")
|
|
53
|
-
], RelationshipCreationChangeRequestBody);
|
|
54
|
-
exports.RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody;
|
|
55
|
-
//# sourceMappingURL=RelationshipCreationChangeRequestBody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,uDAA8E;AAC9E,mEAAkG;AAsBlG,IAAa,qCAAqC,GAAlD,MAAa,qCACT,SAAQ,wBAAY;IA2Bb,MAAM,CAAC,IAAI,CAAC,KAA6C;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAzBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mFACgB;AA1BpC,qCAAqC;IADjD,IAAA,gBAAI,EAAC,uCAAuC,CAAC;GACjC,qCAAqC,CA+BjD;AA/BY,sFAAqC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
export interface RelationshipExistsActionJSON {
|
|
3
|
-
}
|
|
4
|
-
export interface IRelationshipExistsAction {
|
|
5
|
-
}
|
|
6
|
-
export declare abstract class RelationshipExistsAction extends Serializable implements IRelationshipExistsAction {
|
|
7
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.RelationshipExistsAction = void 0;
|
|
10
|
-
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
11
|
-
let RelationshipExistsAction = class RelationshipExistsAction extends ts_serval_1.Serializable {
|
|
12
|
-
};
|
|
13
|
-
RelationshipExistsAction = __decorate([
|
|
14
|
-
(0, ts_serval_1.type)("RelationshipExistsAction")
|
|
15
|
-
], RelationshipExistsAction);
|
|
16
|
-
exports.RelationshipExistsAction = RelationshipExistsAction;
|
|
17
|
-
//# sourceMappingURL=RelationshipExistsAction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipExistsAction.js","sourceRoot":"","sources":["../../src/relationships/RelationshipExistsAction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAuD;AAOvD,IAAsB,wBAAwB,GAA9C,MAAsB,wBAAyB,SAAQ,wBAAY;CAAwC,CAAA;AAArF,wBAAwB;IAD7C,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACX,wBAAwB,CAA6D;AAArF,4DAAwB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
|
|
3
|
-
export interface RelationshipExistsMessageActionJSON extends RelationshipExistsActionJSON {
|
|
4
|
-
content: any;
|
|
5
|
-
}
|
|
6
|
-
export interface IRelationshipExistsMessageAction extends IRelationshipExistsAction {
|
|
7
|
-
content: ISerializable;
|
|
8
|
-
}
|
|
9
|
-
export declare class RelationshipExistsMessageAction extends RelationshipExistsAction implements IRelationshipExistsMessageAction {
|
|
10
|
-
content: Serializable;
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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.RelationshipExistsMessageAction = void 0;
|
|
13
|
-
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
|
|
15
|
-
let RelationshipExistsMessageAction = class RelationshipExistsMessageAction extends RelationshipExistsAction_1.RelationshipExistsAction {
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ts_serval_1.serialize)(),
|
|
19
|
-
(0, ts_serval_1.validate)(),
|
|
20
|
-
__metadata("design:type", ts_serval_1.Serializable)
|
|
21
|
-
], RelationshipExistsMessageAction.prototype, "content", void 0);
|
|
22
|
-
RelationshipExistsMessageAction = __decorate([
|
|
23
|
-
(0, ts_serval_1.type)("RelationshipExistsMessageAction")
|
|
24
|
-
], RelationshipExistsMessageAction);
|
|
25
|
-
exports.RelationshipExistsMessageAction = RelationshipExistsMessageAction;
|
|
26
|
-
//# sourceMappingURL=RelationshipExistsMessageAction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipExistsMessageAction.js","sourceRoot":"","sources":["../../src/relationships/RelationshipExistsMessageAction.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,yEAImC;AAWnC,IAAa,+BAA+B,GAA5C,MAAa,+BACT,SAAQ,mDAAwB;CAMnC,CAAA;AADG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,wBAAY;gEAAA;AANnB,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAO3C;AAPY,0EAA+B"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
|
|
3
|
-
import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
|
|
4
|
-
import { ContentJSON } from "../ContentJSON";
|
|
5
|
-
import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/old/AttributesChangeRequest";
|
|
6
|
-
import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/old/AttributesRequest";
|
|
7
|
-
import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
|
|
8
|
-
export interface RelationshipTemplateBodyJSON extends ContentJSON {
|
|
9
|
-
title?: string;
|
|
10
|
-
sessionIdentifier?: string;
|
|
11
|
-
metadata?: any;
|
|
12
|
-
sharedAttributes?: AttributeJSON[];
|
|
13
|
-
sharedCertificates?: any[];
|
|
14
|
-
sharedAuthorizations?: AuthorizationJSON[];
|
|
15
|
-
requestedAttributesChanges?: AttributesChangeRequestJSON[];
|
|
16
|
-
requestedAttributes?: AttributesRequestJSON[];
|
|
17
|
-
requestedCertificates?: any[];
|
|
18
|
-
relationshipExistsAction?: RelationshipExistsActionJSON;
|
|
19
|
-
}
|
|
20
|
-
export interface IRelationshipTemplateBody extends ISerializable {
|
|
21
|
-
title?: string;
|
|
22
|
-
sessionIdentifier?: string;
|
|
23
|
-
metadata?: any;
|
|
24
|
-
sharedAttributes?: IAttribute[];
|
|
25
|
-
sharedCertificates?: any[];
|
|
26
|
-
sharedAuthorizations?: IAuthorization[];
|
|
27
|
-
requestedAttributesChanges?: IAttributesChangeRequest[];
|
|
28
|
-
requestedAttributes?: IAttributesRequest[];
|
|
29
|
-
relationshipExistsAction?: IRelationshipExistsAction;
|
|
30
|
-
}
|
|
31
|
-
export declare class RelationshipTemplateBody extends Serializable implements IRelationshipTemplateBody {
|
|
32
|
-
title?: string;
|
|
33
|
-
sessionIdentifier?: string;
|
|
34
|
-
metadata?: any;
|
|
35
|
-
sharedAttributes?: Attribute[];
|
|
36
|
-
sharedCertificates?: any[];
|
|
37
|
-
sharedAuthorizations?: Authorization[];
|
|
38
|
-
requestedAttributesChanges?: AttributesChangeRequest[];
|
|
39
|
-
requestedAttributes?: AttributesRequest[];
|
|
40
|
-
relationshipExistsAction?: RelationshipExistsAction;
|
|
41
|
-
static from(value: IRelationshipTemplateBody): RelationshipTemplateBody;
|
|
42
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
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.RelationshipTemplateBody = void 0;
|
|
13
|
-
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const Attribute_1 = require("../attributes/Attribute");
|
|
15
|
-
const Authorization_1 = require("../authorizations/Authorization");
|
|
16
|
-
const AttributesRequest_1 = require("../requests/old/AttributesRequest");
|
|
17
|
-
const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
|
|
18
|
-
let RelationshipTemplateBody = class RelationshipTemplateBody extends ts_serval_1.Serializable {
|
|
19
|
-
static from(value) {
|
|
20
|
-
return this.fromAny(value);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, ts_serval_1.serialize)(),
|
|
25
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], RelationshipTemplateBody.prototype, "title", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, ts_serval_1.serialize)(),
|
|
30
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], RelationshipTemplateBody.prototype, "sessionIdentifier", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, ts_serval_1.serialize)({ any: true }),
|
|
35
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
36
|
-
__metadata("design:type", Object)
|
|
37
|
-
], RelationshipTemplateBody.prototype, "metadata", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
40
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
41
|
-
__metadata("design:type", Array)
|
|
42
|
-
], RelationshipTemplateBody.prototype, "sharedAttributes", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, ts_serval_1.serialize)(),
|
|
45
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
46
|
-
__metadata("design:type", Array)
|
|
47
|
-
], RelationshipTemplateBody.prototype, "sharedCertificates", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
|
|
50
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
51
|
-
__metadata("design:type", Array)
|
|
52
|
-
], RelationshipTemplateBody.prototype, "sharedAuthorizations", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
|
|
55
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
56
|
-
__metadata("design:type", Array)
|
|
57
|
-
], RelationshipTemplateBody.prototype, "requestedAttributesChanges", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, ts_serval_1.serialize)({ type: AttributesRequest_1.AttributesRequest }),
|
|
60
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
61
|
-
__metadata("design:type", Array)
|
|
62
|
-
], RelationshipTemplateBody.prototype, "requestedAttributes", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, ts_serval_1.serialize)(),
|
|
65
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
66
|
-
__metadata("design:type", RelationshipExistsAction_1.RelationshipExistsAction)
|
|
67
|
-
], RelationshipTemplateBody.prototype, "relationshipExistsAction", void 0);
|
|
68
|
-
RelationshipTemplateBody = __decorate([
|
|
69
|
-
(0, ts_serval_1.type)("RelationshipTemplateBody")
|
|
70
|
-
], RelationshipTemplateBody);
|
|
71
|
-
exports.RelationshipTemplateBody = RelationshipTemplateBody;
|
|
72
|
-
//# sourceMappingURL=RelationshipTemplateBody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,uDAA8E;AAC9E,mEAAkG;AAOlG,yEAAgH;AAChH,yEAImC;AA4BnC,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAY;IAqC/C,MAAM,CAAC,IAAI,CAAC,KAAgC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AArCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACgB;AAI7C;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4EACgC;AAI7D;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qCAAiB,EAAE,CAAC;IACtC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACmB;AAIhD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACK,mDAAwB;0EAAA;AAnCjD,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAwCpC;AAxCY,4DAAwB"}
|