@nmshd/content 2.0.0-alpha.10 → 2.0.0-alpha.13
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/RelationshipCreationChangeRequestBody.d.ts +8 -21
- package/dist/relationships/RelationshipCreationChangeRequestBody.js +5 -26
- package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +1 -1
- package/dist/relationships/RelationshipTemplateBody.d.ts +11 -31
- package/dist/relationships/RelationshipTemplateBody.js +6 -34
- package/dist/relationships/RelationshipTemplateBody.js.map +1 -1
- package/dist/relationships/index.d.ts +0 -2
- package/dist/relationships/index.js +0 -2
- 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 +25 -170
- 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 +0 -33
- package/dist/authorizations/Authorization.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/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-alpha.
|
|
9
|
-
build: "
|
|
10
|
-
date: "2022-05-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-alpha.13",
|
|
9
|
+
build: "42",
|
|
10
|
+
date: "2022-05-16T09:00:07+00:00",
|
|
11
|
+
commit: "6c0d143d6c35c50437bcaa007253cfbc551f9c88",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./attributes"), exports);
|
|
18
|
-
__exportStar(require("./authorizations/Authorization"), exports);
|
|
19
18
|
__exportStar(require("./buildInformation"), exports);
|
|
20
19
|
__exportStar(require("./ContentJSON"), exports);
|
|
21
20
|
__exportStar(require("./forms"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,qDAAkC;AAClC,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,yDAAsC;AACtC,kDAA+B;AAC/B,6CAA0B"}
|
|
@@ -1,29 +1,16 @@
|
|
|
1
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
2
|
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
import { IResponse, Response, ResponseJSON } from "../requests/response/Response";
|
|
5
4
|
export interface RelationshipCreationChangeRequestBodyJSON extends ContentJSON {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
metadata?: any;
|
|
9
|
-
sharedAttributes?: AttributeJSON[];
|
|
10
|
-
sharedCertificates?: any[];
|
|
11
|
-
sharedAuthorizations?: AuthorizationJSON[];
|
|
5
|
+
templateContentMetadata?: object;
|
|
6
|
+
response: ResponseJSON;
|
|
12
7
|
}
|
|
13
8
|
export interface IRelationshipCreationChangeRequestBody extends ISerializable {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
metadata?: any;
|
|
17
|
-
sharedAttributes?: IAttribute[];
|
|
18
|
-
sharedCertificates?: any[];
|
|
19
|
-
sharedAuthorizations?: IAuthorization[];
|
|
9
|
+
templateContentMetadata?: object;
|
|
10
|
+
response: IResponse;
|
|
20
11
|
}
|
|
21
12
|
export declare class RelationshipCreationChangeRequestBody extends Serializable implements IRelationshipCreationChangeRequestBody {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
sharedAttributes?: Attribute[];
|
|
26
|
-
sharedCertificates?: any[];
|
|
27
|
-
sharedAuthorizations?: Authorization[];
|
|
28
|
-
static from(value: IRelationshipCreationChangeRequestBody): RelationshipCreationChangeRequestBody;
|
|
13
|
+
templateContentMetadata?: object;
|
|
14
|
+
response: Response;
|
|
15
|
+
static from(value: IRelationshipCreationChangeRequestBody | RelationshipCreationChangeRequestBodyJSON): RelationshipCreationChangeRequestBody;
|
|
29
16
|
}
|
|
@@ -11,8 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RelationshipCreationChangeRequestBody = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
15
|
-
const Authorization_1 = require("../authorizations/Authorization");
|
|
14
|
+
const Response_1 = require("../requests/response/Response");
|
|
16
15
|
let RelationshipCreationChangeRequestBody = class RelationshipCreationChangeRequestBody extends ts_serval_1.Serializable {
|
|
17
16
|
static from(value) {
|
|
18
17
|
return this.fromAny(value);
|
|
@@ -21,33 +20,13 @@ let RelationshipCreationChangeRequestBody = class RelationshipCreationChangeRequ
|
|
|
21
20
|
__decorate([
|
|
22
21
|
(0, ts_serval_1.serialize)(),
|
|
23
22
|
(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
23
|
__metadata("design:type", Object)
|
|
35
|
-
], RelationshipCreationChangeRequestBody.prototype, "
|
|
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);
|
|
24
|
+
], RelationshipCreationChangeRequestBody.prototype, "templateContentMetadata", void 0);
|
|
41
25
|
__decorate([
|
|
42
26
|
(0, ts_serval_1.serialize)(),
|
|
43
|
-
(0, ts_serval_1.validate)(
|
|
44
|
-
__metadata("design:type",
|
|
45
|
-
], RelationshipCreationChangeRequestBody.prototype, "
|
|
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);
|
|
27
|
+
(0, ts_serval_1.validate)(),
|
|
28
|
+
__metadata("design:type", Response_1.Response)
|
|
29
|
+
], RelationshipCreationChangeRequestBody.prototype, "response", void 0);
|
|
51
30
|
RelationshipCreationChangeRequestBody = __decorate([
|
|
52
31
|
(0, ts_serval_1.type)("RelationshipCreationChangeRequestBody")
|
|
53
32
|
], RelationshipCreationChangeRequestBody);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,4DAAiF;AAajF,IAAa,qCAAqC,GAAlD,MAAa,qCACT,SAAQ,wBAAY;IAWb,MAAM,CAAC,IAAI,CACd,KAAyF;QAEzF,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sFACU;AAIvC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,mBAAQ;uEAAA;AAVhB,qCAAqC;IADjD,IAAA,gBAAI,EAAC,uCAAuC,CAAC;GACjC,qCAAqC,CAiBjD;AAjBY,sFAAqC"}
|
|
@@ -1,42 +1,22 @@
|
|
|
1
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
2
|
import { ContentJSON } from "../ContentJSON";
|
|
5
|
-
import {
|
|
6
|
-
import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/old/AttributesRequest";
|
|
7
|
-
import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
|
|
3
|
+
import { IRequest, Request, RequestJSON } from "../requests/Request";
|
|
8
4
|
export interface RelationshipTemplateBodyJSON extends ContentJSON {
|
|
9
5
|
title?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
sharedCertificates?: any[];
|
|
14
|
-
sharedAuthorizations?: AuthorizationJSON[];
|
|
15
|
-
requestedAttributesChanges?: AttributesChangeRequestJSON[];
|
|
16
|
-
requestedAttributes?: AttributesRequestJSON[];
|
|
17
|
-
requestedCertificates?: any[];
|
|
18
|
-
relationshipExistsAction?: RelationshipExistsActionJSON;
|
|
6
|
+
metadata?: object;
|
|
7
|
+
newRelationshipRequest: RequestJSON;
|
|
8
|
+
existingRelationshipRequest?: RequestJSON;
|
|
19
9
|
}
|
|
20
10
|
export interface IRelationshipTemplateBody extends ISerializable {
|
|
21
11
|
title?: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
sharedCertificates?: any[];
|
|
26
|
-
sharedAuthorizations?: IAuthorization[];
|
|
27
|
-
requestedAttributesChanges?: IAttributesChangeRequest[];
|
|
28
|
-
requestedAttributes?: IAttributesRequest[];
|
|
29
|
-
relationshipExistsAction?: IRelationshipExistsAction;
|
|
12
|
+
metadata?: object;
|
|
13
|
+
newRelationshipRequest: IRequest;
|
|
14
|
+
existingRelationshipRequest?: IRequest;
|
|
30
15
|
}
|
|
31
16
|
export declare class RelationshipTemplateBody extends Serializable implements IRelationshipTemplateBody {
|
|
32
17
|
title?: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
sharedAuthorizations?: Authorization[];
|
|
38
|
-
requestedAttributesChanges?: AttributesChangeRequest[];
|
|
39
|
-
requestedAttributes?: AttributesRequest[];
|
|
40
|
-
relationshipExistsAction?: RelationshipExistsAction;
|
|
41
|
-
static from(value: IRelationshipTemplateBody): RelationshipTemplateBody;
|
|
18
|
+
metadata?: object;
|
|
19
|
+
newRelationshipRequest: Request;
|
|
20
|
+
existingRelationshipRequest?: Request;
|
|
21
|
+
static from(value: IRelationshipTemplateBody | RelationshipTemplateBodyJSON): RelationshipTemplateBody;
|
|
42
22
|
}
|
|
@@ -11,10 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RelationshipTemplateBody = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
const
|
|
15
|
-
const Authorization_1 = require("../authorizations/Authorization");
|
|
16
|
-
const AttributesRequest_1 = require("../requests/old/AttributesRequest");
|
|
17
|
-
const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
|
|
14
|
+
const Request_1 = require("../requests/Request");
|
|
18
15
|
let RelationshipTemplateBody = class RelationshipTemplateBody extends ts_serval_1.Serializable {
|
|
19
16
|
static from(value) {
|
|
20
17
|
return this.fromAny(value);
|
|
@@ -28,43 +25,18 @@ __decorate([
|
|
|
28
25
|
__decorate([
|
|
29
26
|
(0, ts_serval_1.serialize)(),
|
|
30
27
|
(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
28
|
__metadata("design:type", Object)
|
|
37
29
|
], 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
30
|
__decorate([
|
|
44
31
|
(0, ts_serval_1.serialize)(),
|
|
45
|
-
(0, ts_serval_1.validate)(
|
|
46
|
-
__metadata("design:type",
|
|
47
|
-
], RelationshipTemplateBody.prototype, "
|
|
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);
|
|
32
|
+
(0, ts_serval_1.validate)(),
|
|
33
|
+
__metadata("design:type", Request_1.Request)
|
|
34
|
+
], RelationshipTemplateBody.prototype, "newRelationshipRequest", void 0);
|
|
63
35
|
__decorate([
|
|
64
36
|
(0, ts_serval_1.serialize)(),
|
|
65
37
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
66
|
-
__metadata("design:type",
|
|
67
|
-
], RelationshipTemplateBody.prototype, "
|
|
38
|
+
__metadata("design:type", Request_1.Request)
|
|
39
|
+
], RelationshipTemplateBody.prototype, "existingRelationshipRequest", void 0);
|
|
68
40
|
RelationshipTemplateBody = __decorate([
|
|
69
41
|
(0, ts_serval_1.type)("RelationshipTemplateBody")
|
|
70
42
|
], RelationshipTemplateBody);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,iDAAoE;AAiBpE,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,wBAAY;IAiB/C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;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;;0DACL;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACoB,iBAAO;wEAAA;AAItC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACQ,iBAAO;6EAAA;AAfnC,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAoBpC;AApBY,4DAAwB"}
|
|
@@ -15,7 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./RelationshipCreationChangeRequestBody"), exports);
|
|
18
|
-
__exportStar(require("./RelationshipExistsAction"), exports);
|
|
19
|
-
__exportStar(require("./RelationshipExistsMessageAction"), exports);
|
|
20
18
|
__exportStar(require("./RelationshipTemplateBody"), exports);
|
|
21
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAuD;AACvD,6DAA0C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0EAAuD;AACvD,6DAA0C"}
|
|
@@ -17,6 +17,11 @@ export interface RequestJSON extends ContentJSON {
|
|
|
17
17
|
* further {@link RequestItemJSON RequestItems}.
|
|
18
18
|
*/
|
|
19
19
|
items: (RequestItemGroupJSON | RequestItemJSON)[];
|
|
20
|
+
/**
|
|
21
|
+
* This property can be used to add some arbitrary metadata to this request. The content
|
|
22
|
+
* of this property will be copied into the response on the side of the recipient.
|
|
23
|
+
*/
|
|
24
|
+
responseMetadata?: object;
|
|
20
25
|
}
|
|
21
26
|
export interface IRequest extends ISerializable {
|
|
22
27
|
id?: CoreId;
|
|
@@ -32,10 +37,16 @@ export interface IRequest extends ISerializable {
|
|
|
32
37
|
* further {@link RequestItem RequestItems}.
|
|
33
38
|
*/
|
|
34
39
|
items: (IRequestItemGroup | IRequestItem)[];
|
|
40
|
+
/**
|
|
41
|
+
* This property can be used to add some arbitrary metadata to this request. The content
|
|
42
|
+
* of this property will be copied into the response on the side of the recipient.
|
|
43
|
+
*/
|
|
44
|
+
responseMetadata?: object;
|
|
35
45
|
}
|
|
36
46
|
export declare class Request extends Serializable implements IRequest {
|
|
37
47
|
id?: CoreId;
|
|
38
48
|
expiresAt?: CoreDate;
|
|
39
49
|
items: (RequestItemGroup | RequestItem)[];
|
|
50
|
+
responseMetadata?: object;
|
|
40
51
|
static from(value: IRequest | RequestJSON): Request;
|
|
41
52
|
}
|
package/dist/requests/Request.js
CHANGED
|
@@ -32,6 +32,11 @@ __decorate([
|
|
|
32
32
|
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
33
33
|
__metadata("design:type", Array)
|
|
34
34
|
], Request.prototype, "items", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.serialize)(),
|
|
37
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], Request.prototype, "responseMetadata", void 0);
|
|
35
40
|
Request = __decorate([
|
|
36
41
|
(0, ts_serval_1.type)("Request")
|
|
37
42
|
], Request);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAA8D;AAsD9D,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,wBAAY;IAiB9B,MAAM,CAAC,IAAI,CAAC,KAA6B;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mCAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;sCACtC;AAIhD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACG;AAfvB,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAoBnB;AApBY,0BAAO"}
|
|
@@ -10,7 +10,7 @@ export interface RequestItemJSON extends ContentJSON {
|
|
|
10
10
|
*/
|
|
11
11
|
description?: string;
|
|
12
12
|
/**
|
|
13
|
-
* This
|
|
13
|
+
* This property can be used to add some arbitrary metadata to this item. The content
|
|
14
14
|
* of this property will be copied into the response on the side of the recipient, so
|
|
15
15
|
* the sender can use it to identify the group content as they receive the response.
|
|
16
16
|
*/
|
|
@@ -37,7 +37,7 @@ export interface IRequestItem extends ISerializable {
|
|
|
37
37
|
*/
|
|
38
38
|
description?: string;
|
|
39
39
|
/**
|
|
40
|
-
* This
|
|
40
|
+
* This property can be used to add some arbitrary metadata to this item. The content
|
|
41
41
|
* of this property will be copied into the response on the side of the recipient, so
|
|
42
42
|
* the sender can use it to identify the group content as they receive the response.
|
|
43
43
|
*/
|
|
@@ -27,7 +27,7 @@ export interface RequestItemGroupJSON extends ContentJSON {
|
|
|
27
27
|
*/
|
|
28
28
|
mustBeAccepted: boolean;
|
|
29
29
|
/**
|
|
30
|
-
* This
|
|
30
|
+
* This property can be used to add some arbitrary metadata to this group. The content
|
|
31
31
|
* of this property will be copied into the response on the side of the recipient, so
|
|
32
32
|
* the sender can use it to identify the group content as they receive the response.
|
|
33
33
|
*/
|
|
@@ -63,7 +63,7 @@ export interface IRequestItemGroup extends ISerializable {
|
|
|
63
63
|
*/
|
|
64
64
|
mustBeAccepted: boolean;
|
|
65
65
|
/**
|
|
66
|
-
* This
|
|
66
|
+
* This property can be used to add some arbitrary metadata to this group. The content
|
|
67
67
|
* of this property will be copied into the response on the side of the recipient, so
|
|
68
68
|
* the sender can use it to identify the group content as they receive the response.
|
|
69
69
|
*/
|
|
@@ -11,15 +11,18 @@ export interface ResponseJSON extends ContentJSON {
|
|
|
11
11
|
result: ResponseResult;
|
|
12
12
|
requestId: string;
|
|
13
13
|
items: (ResponseItemGroupJSON | ResponseItemJSON)[];
|
|
14
|
+
metadata?: object;
|
|
14
15
|
}
|
|
15
16
|
export interface IResponse extends ISerializable {
|
|
16
17
|
result: ResponseResult;
|
|
17
18
|
requestId: ICoreId;
|
|
18
19
|
items: (IResponseItemGroup | IResponseItem)[];
|
|
20
|
+
metadata?: object;
|
|
19
21
|
}
|
|
20
22
|
export declare class Response extends Serializable {
|
|
21
23
|
result: ResponseResult;
|
|
22
24
|
requestId: CoreId;
|
|
23
25
|
items: (ResponseItemGroup | ResponseItem)[];
|
|
26
|
+
metadata?: object;
|
|
24
27
|
static from(value: IResponse | ResponseJSON): Response;
|
|
25
28
|
}
|
|
@@ -37,6 +37,11 @@ __decorate([
|
|
|
37
37
|
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
38
38
|
__metadata("design:type", Array)
|
|
39
39
|
], Response.prototype, "items", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, ts_serval_1.serialize)(),
|
|
42
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], Response.prototype, "metadata", void 0);
|
|
40
45
|
Response = __decorate([
|
|
41
46
|
(0, ts_serval_1.type)("Response")
|
|
42
47
|
], Response);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/requests/response/Response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAkD;AAKlD,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;AACzB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/requests/response/Response.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAC3F,gDAAkD;AAKlD,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;AACzB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAiBD,IAAa,QAAQ,GAArB,MAAa,QAAS,SAAQ,wBAAY;IAiB/B,MAAM,CAAC,IAAI,CAAC,KAA+B;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wCACkB;AAI7B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,kBAAM;2CAAA;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;uCACpC;AAIlD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACL;AAff,QAAQ;IADpB,IAAA,gBAAI,EAAC,UAAU,CAAC;GACJ,QAAQ,CAoBpB;AApBY,4BAAQ"}
|