@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/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.11",
|
|
9
|
+
build: "40",
|
|
10
|
+
date: "2022-05-13T09:47:48+00:00",
|
|
11
|
+
commit: "512d8c8ee7eba065590d07c2c5adc8a2c78c182c",
|
|
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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
import { IResponse, Response, ResponseJSON } from "../requests/response/Response";
|
|
4
|
+
export interface IRelationshipCreationChangeRequestContentJSON extends ContentJSON {
|
|
5
|
+
templateContentMetadata?: object;
|
|
6
|
+
response: ResponseJSON;
|
|
7
|
+
}
|
|
8
|
+
export interface IRelationshipCreationChangeRequestContent extends ISerializable {
|
|
9
|
+
templateContentMetadata?: object;
|
|
10
|
+
response: IResponse;
|
|
11
|
+
}
|
|
12
|
+
export declare class RelationshipCreationChangeRequestContent extends Serializable implements IRelationshipCreationChangeRequestContent {
|
|
13
|
+
templateContentMetadata?: object;
|
|
14
|
+
response: Response;
|
|
15
|
+
static from(value: IRelationshipCreationChangeRequestContent): RelationshipCreationChangeRequestContent;
|
|
16
|
+
}
|
|
@@ -9,25 +9,26 @@ 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.RelationshipCreationChangeRequestContent = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
-
|
|
14
|
+
const Response_1 = require("../requests/response/Response");
|
|
15
|
+
let RelationshipCreationChangeRequestContent = class RelationshipCreationChangeRequestContent extends ts_serval_1.Serializable {
|
|
15
16
|
static from(value) {
|
|
16
17
|
return this.fromAny(value);
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
20
|
__decorate([
|
|
20
|
-
(0, ts_serval_1.validate)(),
|
|
21
21
|
(0, ts_serval_1.serialize)(),
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], RelationshipCreationChangeRequestContent.prototype, "templateContentMetadata", void 0);
|
|
24
25
|
__decorate([
|
|
25
|
-
(0, ts_serval_1.validate)(),
|
|
26
26
|
(0, ts_serval_1.serialize)(),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
(0, ts_serval_1.validate)(),
|
|
28
|
+
__metadata("design:type", Response_1.Response)
|
|
29
|
+
], RelationshipCreationChangeRequestContent.prototype, "response", void 0);
|
|
30
|
+
RelationshipCreationChangeRequestContent = __decorate([
|
|
31
|
+
(0, ts_serval_1.type)("RelationshipCreationChangeRequestContent")
|
|
32
|
+
], RelationshipCreationChangeRequestContent);
|
|
33
|
+
exports.RelationshipCreationChangeRequestContent = RelationshipCreationChangeRequestContent;
|
|
34
|
+
//# sourceMappingURL=RelationshipCreationChangeRequestContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipCreationChangeRequestContent.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestContent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,4DAAiF;AAajF,IAAa,wCAAwC,GAArD,MAAa,wCACT,SAAQ,wBAAY;IAWb,MAAM,CAAC,IAAI,CAAC,KAAgD;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yFACU;AAIvC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACM,mBAAQ;0EAAA;AAVhB,wCAAwC;IADpD,IAAA,gBAAI,EAAC,0CAA0C,CAAC;GACpC,wCAAwC,CAepD;AAfY,4FAAwC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ISerializable, Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
import { IRequest, Request, RequestJSON } from "../requests/Request";
|
|
4
|
+
export interface RelationshipTemplateContentJSON extends ContentJSON {
|
|
5
|
+
title?: string;
|
|
6
|
+
metadata?: object;
|
|
7
|
+
newRelationshipRequest: RequestJSON;
|
|
8
|
+
existingRelationshipRequest?: RequestJSON;
|
|
9
|
+
}
|
|
10
|
+
export interface IRelationshipTemplateContent extends ISerializable {
|
|
11
|
+
title?: string;
|
|
12
|
+
metadata?: object;
|
|
13
|
+
newRelationshipRequest: IRequest;
|
|
14
|
+
existingRelationshipRequest?: IRequest;
|
|
15
|
+
}
|
|
16
|
+
export declare class RelationshipTemplateContent extends Serializable implements IRelationshipTemplateContent {
|
|
17
|
+
title?: string;
|
|
18
|
+
metadata?: object;
|
|
19
|
+
newRelationshipRequest: Request;
|
|
20
|
+
existingRelationshipRequest?: Request;
|
|
21
|
+
static from(value: IRelationshipTemplateContent): RelationshipTemplateContent;
|
|
22
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.RelationshipTemplateContent = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const Request_1 = require("../requests/Request");
|
|
15
|
+
let RelationshipTemplateContent = class RelationshipTemplateContent extends ts_serval_1.Serializable {
|
|
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)({ nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RelationshipTemplateContent.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.serialize)(),
|
|
27
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], RelationshipTemplateContent.prototype, "metadata", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.serialize)(),
|
|
32
|
+
(0, ts_serval_1.validate)(),
|
|
33
|
+
__metadata("design:type", Request_1.Request)
|
|
34
|
+
], RelationshipTemplateContent.prototype, "newRelationshipRequest", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.serialize)(),
|
|
37
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
|
+
__metadata("design:type", Request_1.Request)
|
|
39
|
+
], RelationshipTemplateContent.prototype, "existingRelationshipRequest", void 0);
|
|
40
|
+
RelationshipTemplateContent = __decorate([
|
|
41
|
+
(0, ts_serval_1.type)("RelationshipTemplateContent")
|
|
42
|
+
], RelationshipTemplateContent);
|
|
43
|
+
exports.RelationshipTemplateContent = RelationshipTemplateContent;
|
|
44
|
+
//# sourceMappingURL=RelationshipTemplateContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateContent.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateContent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAE3F,iDAAoE;AAiBpE,IAAa,2BAA2B,GAAxC,MAAa,2BAA4B,SAAQ,wBAAY;IAiBlD,MAAM,CAAC,IAAI,CAAC,KAAmC;QAClD,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;;0DACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACL;AAIxB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACoB,iBAAO;2EAAA;AAItC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACQ,iBAAO;gFAAA;AAfnC,2BAA2B;IADvC,IAAA,gBAAI,EAAC,6BAA6B,CAAC;GACvB,2BAA2B,CAoBvC;AApBY,kEAA2B"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./RelationshipExistsMessageAction";
|
|
4
|
-
export * from "./RelationshipTemplateBody";
|
|
1
|
+
export * from "./RelationshipCreationChangeRequestContent";
|
|
2
|
+
export * from "./RelationshipTemplateContent";
|
|
@@ -14,8 +14,6 @@ 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("./
|
|
19
|
-
__exportStar(require("./RelationshipExistsMessageAction"), exports);
|
|
20
|
-
__exportStar(require("./RelationshipTemplateBody"), exports);
|
|
17
|
+
__exportStar(require("./RelationshipCreationChangeRequestContent"), exports);
|
|
18
|
+
__exportStar(require("./RelationshipTemplateContent"), exports);
|
|
21
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/relationships/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6EAA0D;AAC1D,gEAA6C"}
|
|
@@ -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"}
|