@nmshd/content 2.0.0-alpha.1 → 2.0.0-alpha.2.2
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/forms/FormItem.js +4 -10
- package/dist/forms/FormItem.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/messages/Mail.js +2 -3
- package/dist/messages/Mail.js.map +1 -1
- package/dist/messages/RequestMail.d.ts +2 -2
- package/dist/messages/RequestMail.js +4 -4
- package/dist/messages/RequestMail.js.map +1 -1
- package/dist/relationships/RelationshipTemplateBody.d.ts +2 -2
- package/dist/relationships/RelationshipTemplateBody.js +1 -1
- package/dist/relationships/RelationshipTemplateBody.js.map +1 -1
- package/dist/requests/Request.d.ts +41 -0
- package/dist/requests/Request.js +40 -0
- package/dist/requests/Request.js.map +1 -0
- package/dist/requests/RequestItem.d.ts +62 -0
- package/dist/requests/RequestItem.js +37 -0
- package/dist/requests/RequestItem.js.map +1 -0
- package/dist/requests/RequestItemGroup.d.ts +83 -0
- package/dist/requests/RequestItemGroup.js +49 -0
- package/dist/requests/RequestItemGroup.js.map +1 -0
- package/dist/requests/index.d.ts +7 -0
- package/dist/requests/index.js +24 -0
- package/dist/requests/index.js.map +1 -0
- package/dist/requests/{AttributesChangeRequest.d.ts → old/AttributesChangeRequest.d.ts} +2 -2
- package/dist/requests/{AttributesChangeRequest.js → old/AttributesChangeRequest.js} +1 -1
- package/dist/requests/old/AttributesChangeRequest.js.map +1 -0
- package/dist/requests/{AttributesRequest.d.ts → old/AttributesRequest.d.ts} +1 -1
- package/dist/requests/{AttributesRequest.js → old/AttributesRequest.js} +0 -0
- package/dist/requests/old/AttributesRequest.js.map +1 -0
- package/dist/requests/{AttributesShareRequest.d.ts → old/AttributesShareRequest.d.ts} +1 -1
- package/dist/requests/{AttributesShareRequest.js → old/AttributesShareRequest.js} +0 -0
- package/dist/requests/old/AttributesShareRequest.js.map +1 -0
- package/dist/requests/response/AcceptResponseItem.d.ts +12 -0
- package/dist/requests/response/AcceptResponseItem.js +22 -0
- package/dist/requests/response/AcceptResponseItem.js.map +1 -0
- package/dist/requests/response/ErrorResponseItem.d.ts +18 -0
- package/dist/requests/response/ErrorResponseItem.js +35 -0
- package/dist/requests/response/ErrorResponseItem.js.map +1 -0
- package/dist/requests/response/RejectResponseItem.d.ts +18 -0
- package/dist/requests/response/RejectResponseItem.js +35 -0
- package/dist/requests/response/RejectResponseItem.js.map +1 -0
- package/dist/requests/response/Response.d.ts +18 -0
- package/dist/requests/response/Response.js +35 -0
- package/dist/requests/response/Response.js.map +1 -0
- package/dist/requests/response/ResponseItem.d.ts +15 -0
- package/dist/requests/response/ResponseItem.js +28 -0
- package/dist/requests/response/ResponseItem.js.map +1 -0
- package/dist/requests/response/ResponseItemGroup.d.ts +16 -0
- package/dist/requests/response/ResponseItemGroup.js +34 -0
- package/dist/requests/response/ResponseItemGroup.js.map +1 -0
- package/dist/requests/response/ResponseItemResult.d.ts +5 -0
- package/dist/requests/response/ResponseItemResult.js +10 -0
- package/dist/requests/response/ResponseItemResult.js.map +1 -0
- package/dist/requests/response/index.d.ts +7 -0
- package/dist/requests/response/index.js +24 -0
- package/dist/requests/response/index.js.map +1 -0
- package/lib-web/nmshd.content.js +579 -32
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +5 -5
- package/dist/requests/AttributesChangeRequest.js.map +0 -1
- package/dist/requests/AttributesRequest.js.map +0 -1
- package/dist/requests/AttributesShareRequest.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-03-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-alpha.2.2",
|
|
9
|
+
build: "32",
|
|
10
|
+
date: "2022-03-25T07:38:02+00:00",
|
|
11
|
+
commit: "27c734c0746bd12726fa5dd4a5917d76e7b3e323",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
package/dist/forms/FormItem.js
CHANGED
|
@@ -19,8 +19,8 @@ var FormType;
|
|
|
19
19
|
FormType["Date"] = "date";
|
|
20
20
|
FormType["Text"] = "text";
|
|
21
21
|
})(FormType = exports.FormType || (exports.FormType = {}));
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
class FormItem extends ts_serval_1.Serializable {
|
|
23
|
+
}
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, ts_serval_1.serialize)(),
|
|
26
26
|
(0, ts_serval_1.validate)(),
|
|
@@ -31,12 +31,9 @@ __decorate([
|
|
|
31
31
|
(0, ts_serval_1.validate)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], FormItem.prototype, "type", void 0);
|
|
34
|
-
FormItem = __decorate([
|
|
35
|
-
(0, ts_serval_1.type)("FormItem")
|
|
36
|
-
], FormItem);
|
|
37
34
|
exports.FormItem = FormItem;
|
|
38
|
-
|
|
39
|
-
}
|
|
35
|
+
class FormItemVisible extends FormItem {
|
|
36
|
+
}
|
|
40
37
|
__decorate([
|
|
41
38
|
(0, ts_serval_1.serialize)(),
|
|
42
39
|
(0, ts_serval_1.validate)(),
|
|
@@ -52,8 +49,5 @@ __decorate([
|
|
|
52
49
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
53
50
|
__metadata("design:type", String)
|
|
54
51
|
], FormItemVisible.prototype, "help", void 0);
|
|
55
|
-
FormItemVisible = __decorate([
|
|
56
|
-
(0, ts_serval_1.type)("FormItemVisible")
|
|
57
|
-
], FormItemVisible);
|
|
58
52
|
exports.FormItemVisible = FormItemVisible;
|
|
59
53
|
//# sourceMappingURL=FormItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../../src/forms/FormItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../../src/forms/FormItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AAGrF,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,yBAAa,CAAA;AACjB,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB;AAkBD,MAAsB,QAAS,SAAQ,wBAAY;CAQlD;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qCACO;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;sCACU;AAPzB,4BAQC;AAOD,MAAsB,eAAgB,SAAQ,QAAQ;CAYrD;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;8CACS;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACT;AAXxB,0CAYC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,5 +7,4 @@ export * from "./ContentJSON";
|
|
|
7
7
|
export * from "./forms";
|
|
8
8
|
export * from "./messages/Mail";
|
|
9
9
|
export * from "./messages/RequestMail";
|
|
10
|
-
export * from "./requests
|
|
11
|
-
export * from "./requests/AttributesShareRequest";
|
|
10
|
+
export * from "./requests";
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,5 @@ __exportStar(require("./ContentJSON"), exports);
|
|
|
23
23
|
__exportStar(require("./forms"), exports);
|
|
24
24
|
__exportStar(require("./messages/Mail"), exports);
|
|
25
25
|
__exportStar(require("./messages/RequestMail"), exports);
|
|
26
|
-
__exportStar(require("./requests
|
|
27
|
-
__exportStar(require("./requests/AttributesShareRequest"), exports);
|
|
26
|
+
__exportStar(require("./requests"), exports);
|
|
28
27
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,6DAA0C;AAC1C,kEAA+C;AAC/C,iEAA8C;AAC9C,qDAAkC;AAClC,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,yDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,6DAA0C;AAC1C,kEAA+C;AAC/C,iEAA8C;AAC9C,qDAAkC;AAClC,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,yDAAsC;AACtC,6CAA0B"}
|
package/dist/messages/Mail.js
CHANGED
|
@@ -25,13 +25,12 @@ let Mail = Mail_1 = class Mail extends ts_serval_1.SerializableAsync {
|
|
|
25
25
|
return await super.fromT(value, Mail_1);
|
|
26
26
|
}
|
|
27
27
|
static async fromJSON(value) {
|
|
28
|
-
var _a, _b;
|
|
29
28
|
return await this.from({
|
|
30
29
|
body: value.body,
|
|
31
30
|
subject: value.subject,
|
|
32
31
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
33
|
-
to:
|
|
34
|
-
cc:
|
|
32
|
+
to: value.to?.map((recipient) => transport_1.CoreAddress.from(recipient)),
|
|
33
|
+
cc: value.cc?.map((recipient) => transport_1.CoreAddress.from(recipient))
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mail.js","sourceRoot":"","sources":["../../src/messages/Mail.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAA4D;AAiB5D,IAAa,IAAI,YAAjB,MAAa,IAAK,SAAQ,6BAAiB;IAiBhC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAY;QACjC,IAAI,OAAO,KAAK,CAAC,EAAE,KAAK,WAAW,EAAE;YACjC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;SAChB;QACD,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,WAAW,IAAK,KAAa,CAAC,OAAO,EAAE;YAC7D,KAAK,CAAC,IAAI,GAAI,KAAa,CAAC,OAAO,CAAA;YACnC,OAAQ,KAAa,CAAC,OAAO,CAAA;SAChC;QAED,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,MAAI,CAAC,CAAA;IACzC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAe
|
|
1
|
+
{"version":3,"file":"Mail.js","sourceRoot":"","sources":["../../src/messages/Mail.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAA4D;AAiB5D,IAAa,IAAI,YAAjB,MAAa,IAAK,SAAQ,6BAAiB;IAiBhC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAY;QACjC,IAAI,OAAO,KAAK,CAAC,EAAE,KAAK,WAAW,EAAE;YACjC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;SAChB;QACD,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,WAAW,IAAK,KAAa,CAAC,OAAO,EAAE;YAC7D,KAAK,CAAC,IAAI,GAAI,KAAa,CAAC,OAAO,CAAA;YACnC,OAAQ,KAAa,CAAC,OAAO,CAAA;SAChC;QAED,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,MAAI,CAAC,CAAA;IACzC,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAe;QACxC,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,uEAAuE;YACvE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,uBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC7D,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,uBAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAChE,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAnCG;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,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;;gCAC9D;AAIxB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gCACJ;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qCACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kCACQ;AAfV,IAAI;IADhB,IAAA,gBAAI,EAAC,MAAM,CAAC;GACA,IAAI,CAsChB;AAtCY,oBAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/AttributesChangeRequest";
|
|
2
|
-
import { AttributesShareRequest, AttributesShareRequestJSON, IAttributesShareRequest } from "../requests/AttributesShareRequest";
|
|
1
|
+
import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/old/AttributesChangeRequest";
|
|
2
|
+
import { AttributesShareRequest, AttributesShareRequestJSON, IAttributesShareRequest } from "../requests/old/AttributesShareRequest";
|
|
3
3
|
import { IMail, Mail, MailJSON } from "./Mail";
|
|
4
4
|
export interface RequestMailJSON extends MailJSON {
|
|
5
5
|
requests: (AttributesChangeRequestJSON | AttributesShareRequestJSON)[];
|
|
@@ -12,8 +12,8 @@ var RequestMail_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.RequestMail = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
-
const AttributesChangeRequest_1 = require("../requests/AttributesChangeRequest");
|
|
16
|
-
const AttributesShareRequest_1 = require("../requests/AttributesShareRequest");
|
|
15
|
+
const AttributesChangeRequest_1 = require("../requests/old/AttributesChangeRequest");
|
|
16
|
+
const AttributesShareRequest_1 = require("../requests/old/AttributesShareRequest");
|
|
17
17
|
const Mail_1 = require("./Mail");
|
|
18
18
|
let RequestMail = RequestMail_1 = class RequestMail extends Mail_1.Mail {
|
|
19
19
|
static async from(value) {
|
|
@@ -24,9 +24,9 @@ let RequestMail = RequestMail_1 = class RequestMail extends Mail_1.Mail {
|
|
|
24
24
|
const requests = await Promise.all(value.requests.map((request) => {
|
|
25
25
|
switch (request["@type"]) {
|
|
26
26
|
case "AttributesChangeRequest":
|
|
27
|
-
return
|
|
27
|
+
return super.fromT(request, AttributesChangeRequest_1.AttributesChangeRequest);
|
|
28
28
|
case "AttributesShareRequest":
|
|
29
|
-
return
|
|
29
|
+
return super.fromT(request, AttributesShareRequest_1.AttributesShareRequest);
|
|
30
30
|
default:
|
|
31
31
|
throw new Error(`Unknown request type: ${request["@type"]}`);
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestMail.js","sourceRoot":"","sources":["../../src/messages/RequestMail.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RequestMail.js","sourceRoot":"","sources":["../../src/messages/RequestMail.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,qFAIgD;AAChD,mFAI+C;AAC/C,iCAA8C;AAW9C,IAAa,WAAW,mBAAxB,MAAa,WAAY,SAAQ,WAAI;IAK1B,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAmB;QACxC,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,aAAW,CAAC,CAAA;IAChD,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAsB;QAC/C,MAAM,IAAI,GAAS,MAAM,WAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC7C,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAC9B,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YAC3B,QAAQ,OAAO,CAAC,OAAO,CAAC,EAAE;gBACtB,KAAK,yBAAyB;oBAC1B,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,iDAAuB,CAAC,CAAA;gBACxD,KAAK,wBAAwB;oBACzB,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,+CAAsB,CAAC,CAAA;gBACvD;oBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;aACnE;QACL,CAAC,CAAC,CACL,CAAA;QAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,QAAQ,EAAE,QAAQ;SACrB,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AA7BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;6CAC0D;AAH5D,WAAW;IADvB,IAAA,gBAAI,EAAC,aAAa,CAAC;GACP,WAAW,CAgCvB;AAhCY,kCAAW"}
|
|
@@ -2,8 +2,8 @@ import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
|
2
2
|
import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
|
|
3
3
|
import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
|
|
4
4
|
import { ContentJSON } from "../ContentJSON";
|
|
5
|
-
import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/AttributesChangeRequest";
|
|
6
|
-
import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/AttributesRequest";
|
|
5
|
+
import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/old/AttributesChangeRequest";
|
|
6
|
+
import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/old/AttributesRequest";
|
|
7
7
|
import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
|
|
8
8
|
export interface RelationshipTemplateBodyJSON extends ContentJSON {
|
|
9
9
|
title?: string;
|
|
@@ -14,7 +14,7 @@ exports.RelationshipTemplateBody = void 0;
|
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const Attribute_1 = require("../attributes/Attribute");
|
|
16
16
|
const Authorization_1 = require("../authorizations/Authorization");
|
|
17
|
-
const AttributesRequest_1 = require("../requests/AttributesRequest");
|
|
17
|
+
const AttributesRequest_1 = require("../requests/old/AttributesRequest");
|
|
18
18
|
const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
|
|
19
19
|
let RelationshipTemplateBody = RelationshipTemplateBody_1 = class RelationshipTemplateBody extends ts_serval_1.SerializableAsync {
|
|
20
20
|
static async from(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,uDAA8E;AAC9E,mEAAkG;AAOlG,
|
|
1
|
+
{"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,uDAA8E;AAC9E,mEAAkG;AAOlG,yEAAgH;AAChH,yEAImC;AA4BnC,IAAa,wBAAwB,gCAArC,MAAa,wBAAyB,SAAQ,6BAAiB;IAqCpD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAgC;QACrD,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,0BAAwB,CAAC,CAA6B,CAAA;IAC1F,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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { CoreDate, CoreId, ICoreDate } from "@nmshd/transport";
|
|
3
|
+
import { ContentJSON } from "../ContentJSON";
|
|
4
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
|
|
5
|
+
import { IRequestItemGroup, RequestItemGroup, RequestItemGroupJSON } from "./RequestItemGroup";
|
|
6
|
+
export interface RequestJSON extends ContentJSON {
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
10
|
+
* valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer
|
|
11
|
+
* of interest).
|
|
12
|
+
* @default undefined - the request won't expire
|
|
13
|
+
*/
|
|
14
|
+
expiresAt?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The items of the Request. Can be either a single {@link RequestItemJSON RequestItem} or a {@link RequestItemGroupJSON RequestItemGroup}, which itself can contain
|
|
17
|
+
* further {@link RequestItemJSON RequestItems}.
|
|
18
|
+
*/
|
|
19
|
+
items: (RequestItemGroupJSON | RequestItemJSON)[];
|
|
20
|
+
}
|
|
21
|
+
export interface IRequest extends ISerializableAsync {
|
|
22
|
+
id?: CoreId;
|
|
23
|
+
/**
|
|
24
|
+
* The point in time the request is considered obsolete either technically (e.g. the request is no longer
|
|
25
|
+
* valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer
|
|
26
|
+
* of interest).
|
|
27
|
+
* @default undefined - the request won't expire
|
|
28
|
+
*/
|
|
29
|
+
expiresAt?: ICoreDate;
|
|
30
|
+
/**
|
|
31
|
+
* The items of the Request. Can be either a single {@link RequestItem RequestItem} or a {@link RequestItemGroup RequestItemGroup}, which itself can contain
|
|
32
|
+
* further {@link RequestItem RequestItems}.
|
|
33
|
+
*/
|
|
34
|
+
items: (IRequestItemGroup | IRequestItem)[];
|
|
35
|
+
}
|
|
36
|
+
export declare class Request extends SerializableAsync implements IRequest {
|
|
37
|
+
id?: CoreId;
|
|
38
|
+
expiresAt?: CoreDate;
|
|
39
|
+
items: (RequestItemGroup | RequestItem)[];
|
|
40
|
+
static from(value: IRequest | RequestJSON): Promise<Request>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
var Request_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Request = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
const transport_1 = require("@nmshd/transport");
|
|
16
|
+
let Request = Request_1 = class Request extends ts_serval_1.SerializableAsync {
|
|
17
|
+
static async from(value) {
|
|
18
|
+
return await super.fromT(value, Request_1);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.serialize)(),
|
|
23
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
24
|
+
__metadata("design:type", transport_1.CoreId)
|
|
25
|
+
], Request.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, ts_serval_1.serialize)(),
|
|
28
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
30
|
+
], Request.prototype, "expiresAt", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, ts_serval_1.serialize)(),
|
|
33
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], Request.prototype, "items", void 0);
|
|
36
|
+
Request = Request_1 = __decorate([
|
|
37
|
+
(0, ts_serval_1.type)("Request")
|
|
38
|
+
], Request);
|
|
39
|
+
exports.Request = Request;
|
|
40
|
+
//# sourceMappingURL=Request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAA8D;AA0C9D,IAAa,OAAO,eAApB,MAAa,OAAQ,SAAQ,6BAAiB;IAanC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA6B;QAClD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,SAAO,CAAC,CAAA;IAC5C,CAAC;CACJ,CAAA;AAbG;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;AAXvC,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAgBnB;AAhBY,0BAAO"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
export interface RequestItemJSON extends ContentJSON {
|
|
4
|
+
/**
|
|
5
|
+
* The human-readable title of this item.
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The human-readable description of this item.
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* This propertycan be used to add some arbitrary metadata to this item. The content
|
|
14
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
15
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
16
|
+
*/
|
|
17
|
+
responseMetadata?: object;
|
|
18
|
+
/**
|
|
19
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
20
|
+
* Request.
|
|
21
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
22
|
+
*
|
|
23
|
+
* Caution: this setting does not take effect in case it is inside of a
|
|
24
|
+
* {@link RequestItemGroupJSON RequestItemGroup}, which is not accepted by the recipient,
|
|
25
|
+
* since a {@link RequestItemJSON RequestItem} can only be accepted if the parent group
|
|
26
|
+
* is accepted as well.
|
|
27
|
+
*/
|
|
28
|
+
mustBeAccepted: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IRequestItem extends ISerializableAsync {
|
|
31
|
+
/**
|
|
32
|
+
* The human-readable title of this item.
|
|
33
|
+
*/
|
|
34
|
+
title?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The human-readable description of this item.
|
|
37
|
+
*/
|
|
38
|
+
description?: string;
|
|
39
|
+
/**
|
|
40
|
+
* This propertycan be used to add some arbitrary metadata to this item. The content
|
|
41
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
42
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
43
|
+
*/
|
|
44
|
+
responseMetadata?: object;
|
|
45
|
+
/**
|
|
46
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
47
|
+
* Request.
|
|
48
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
49
|
+
*
|
|
50
|
+
* Caution: this setting does not take effect in case it is inside of a
|
|
51
|
+
* {@link RequestItemGroup RequestItemGroup}, which is not accepted by the recipient,
|
|
52
|
+
* since a {@link RequestItem RequestItem} can only be accepted if the parent group
|
|
53
|
+
* is accepted as well.
|
|
54
|
+
*/
|
|
55
|
+
mustBeAccepted: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare abstract class RequestItem extends SerializableAsync {
|
|
58
|
+
title?: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
mustBeAccepted: boolean;
|
|
61
|
+
responseMetadata?: object;
|
|
62
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.RequestItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
class RequestItem extends ts_serval_1.SerializableAsync {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, ts_serval_1.serialize)(),
|
|
18
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], RequestItem.prototype, "title", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.serialize)(),
|
|
23
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], RequestItem.prototype, "description", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, ts_serval_1.serialize)(),
|
|
28
|
+
(0, ts_serval_1.validate)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], RequestItem.prototype, "mustBeAccepted", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, ts_serval_1.serialize)(),
|
|
33
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], RequestItem.prototype, "responseMetadata", void 0);
|
|
36
|
+
exports.RequestItem = RequestItem;
|
|
37
|
+
//# sourceMappingURL=RequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestItem.js","sourceRoot":"","sources":["../../src/requests/RequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA+F;AAiE/F,MAAsB,WAAY,SAAQ,6BAAiB;CAgB1D;AAbG;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;;qDACG;AAfpC,kCAgBC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
|
+
import { ContentJSON } from "../ContentJSON";
|
|
3
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "./RequestItem";
|
|
4
|
+
/**
|
|
5
|
+
* A RequestItemGroup can be used to group one or more {@link RequestItemJSON RequestItems}. This is useful
|
|
6
|
+
* if you want to
|
|
7
|
+
* * make sure that the items in the group can only be accepted together
|
|
8
|
+
*
|
|
9
|
+
* Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
|
|
10
|
+
* Request where the latter one targets an attribute created by the first one, it it should be impossible to
|
|
11
|
+
* reject the first item, while accepting the second one.
|
|
12
|
+
* * visually group items on the UI and give the a common title/description
|
|
13
|
+
*/
|
|
14
|
+
export interface RequestItemGroupJSON extends ContentJSON {
|
|
15
|
+
/**
|
|
16
|
+
* The human-readable title of this group.
|
|
17
|
+
*/
|
|
18
|
+
title?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The human-readable description of this group.
|
|
21
|
+
*/
|
|
22
|
+
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
25
|
+
* Request.
|
|
26
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
27
|
+
*/
|
|
28
|
+
mustBeAccepted: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* This propertycan be used to add some arbitrary metadata to this group. The content
|
|
31
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
32
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
33
|
+
*/
|
|
34
|
+
responseMetadata?: object;
|
|
35
|
+
/**
|
|
36
|
+
* The items of this group.
|
|
37
|
+
*/
|
|
38
|
+
items: RequestItemJSON[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A RequestItemGroup can be used to group one or more {@link RequestItem RequestItems}. This is useful
|
|
42
|
+
* if you want to
|
|
43
|
+
* * make sure that the items in the group can only be accepted together
|
|
44
|
+
*
|
|
45
|
+
* Example: when sending a `CreateAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single
|
|
46
|
+
* Request where the latter one targets an attribute created by the first one, it it should be impossible to
|
|
47
|
+
* reject the first item, while accepting the second one.
|
|
48
|
+
* * visually group items on the UI and give the a common title/description
|
|
49
|
+
*/
|
|
50
|
+
export interface IRequestItemGroup extends ISerializableAsync {
|
|
51
|
+
/**
|
|
52
|
+
* The human-readable title of this group.
|
|
53
|
+
*/
|
|
54
|
+
title?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The human-readable description of this group.
|
|
57
|
+
*/
|
|
58
|
+
description?: string;
|
|
59
|
+
/**
|
|
60
|
+
* If set to `true`, the recipient has to accept this group if he wants to accept the
|
|
61
|
+
* Request.
|
|
62
|
+
* If set to `false`, the recipient can decide whether he wants to accept it or not.
|
|
63
|
+
*/
|
|
64
|
+
mustBeAccepted: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* This propertycan be used to add some arbitrary metadata to this group. The content
|
|
67
|
+
* of this property will be copied into the response on the side of the recipient, so
|
|
68
|
+
* the sender can use it to identify the group content as they receive the response.
|
|
69
|
+
*/
|
|
70
|
+
responseMetadata?: object;
|
|
71
|
+
/**
|
|
72
|
+
* The items of this group.
|
|
73
|
+
*/
|
|
74
|
+
items: IRequestItem[];
|
|
75
|
+
}
|
|
76
|
+
export declare class RequestItemGroup extends SerializableAsync {
|
|
77
|
+
title?: string;
|
|
78
|
+
description?: string;
|
|
79
|
+
mustBeAccepted: boolean;
|
|
80
|
+
items: RequestItem[];
|
|
81
|
+
responseMetadata?: object;
|
|
82
|
+
static from(value: IRequestItemGroup | RequestItemGroupJSON): Promise<RequestItemGroup>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
var RequestItemGroup_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RequestItemGroup = void 0;
|
|
14
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
|
+
let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.SerializableAsync {
|
|
16
|
+
static async from(value) {
|
|
17
|
+
return await super.fromT(value, RequestItemGroup_1);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, ts_serval_1.serialize)(),
|
|
22
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RequestItemGroup.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ts_serval_1.serialize)(),
|
|
27
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], RequestItemGroup.prototype, "description", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, ts_serval_1.serialize)(),
|
|
32
|
+
(0, ts_serval_1.validate)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], RequestItemGroup.prototype, "mustBeAccepted", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, ts_serval_1.serialize)(),
|
|
37
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], RequestItemGroup.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
|
+
], RequestItemGroup.prototype, "responseMetadata", void 0);
|
|
45
|
+
RequestItemGroup = RequestItemGroup_1 = __decorate([
|
|
46
|
+
(0, ts_serval_1.type)("RequestItemGroup")
|
|
47
|
+
], RequestItemGroup);
|
|
48
|
+
exports.RequestItemGroup = RequestItemGroup;
|
|
49
|
+
//# sourceMappingURL=RequestItemGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AAuFrG,IAAa,gBAAgB,wBAA7B,MAAa,gBAAiB,SAAQ,6BAAiB;IAqB5C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA+C;QACpE,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,kBAAgB,CAAC,CAAA;IACrD,CAAC;CACJ,CAAA;AArBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAI9B;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;;+CAC3D;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACG;AAnBvB,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAwB5B;AAxBY,4CAAgB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./old/AttributesChangeRequest"), exports);
|
|
18
|
+
__exportStar(require("./old/AttributesRequest"), exports);
|
|
19
|
+
__exportStar(require("./old/AttributesShareRequest"), exports);
|
|
20
|
+
__exportStar(require("./Request"), exports);
|
|
21
|
+
__exportStar(require("./RequestItem"), exports);
|
|
22
|
+
__exportStar(require("./RequestItemGroup"), exports);
|
|
23
|
+
__exportStar(require("./response"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,0DAAuC;AACvC,+DAA4C;AAC5C,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,6CAA0B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISerializable, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
-
import { Attribute, AttributeJSON, IAttribute } from "
|
|
4
|
-
import { ContentJSON } from "
|
|
3
|
+
import { Attribute, AttributeJSON, IAttribute } from "../../attributes/Attribute";
|
|
4
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
5
5
|
export interface AttributesChangeRequestJSON extends ContentJSON {
|
|
6
6
|
id?: string;
|
|
7
7
|
key?: string;
|
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.AttributesChangeRequest = void 0;
|
|
14
14
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
15
15
|
const transport_1 = require("@nmshd/transport");
|
|
16
|
-
const Attribute_1 = require("
|
|
16
|
+
const Attribute_1 = require("../../attributes/Attribute");
|
|
17
17
|
let AttributesChangeRequest = AttributesChangeRequest_1 = class AttributesChangeRequest extends ts_serval_1.SerializableAsync {
|
|
18
18
|
static async from(value) {
|
|
19
19
|
return (await super.from(value, AttributesChangeRequest_1));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributesChangeRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesChangeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgG;AAChG,gDAAkG;AAClG,0DAAiF;AA+CjF,IAAa,uBAAuB,+BAApC,MAAa,uBAAwB,SAAQ,6BAAiB;IA6BnD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA+B;QACpD,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,yBAAuB,CAAC,CAA4B,CAAA;IACxF,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAkC;QAC3D,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;QAC9G,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YAChD,UAAU,EAAE,gBAAgB;YAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;YACpE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAzCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mDAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0DAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,GAAE;;2DACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,uBAAW;wDAAA;AA3BnB,uBAAuB;IADnC,IAAA,gBAAI,EAAC,yBAAyB,CAAC;GACnB,uBAAuB,CA4CnC;AA5CY,0DAAuB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
-
import { ContentJSON } from "
|
|
3
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
4
4
|
export interface AttributesRequestJSON extends ContentJSON {
|
|
5
5
|
id?: string;
|
|
6
6
|
key?: string;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributesRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAAuE;AA2CvE,IAAa,iBAAiB,yBAA9B,MAAa,iBAAkB,SAAQ,6BAAiB;IAyB7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAyB;QAC9C,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,mBAAiB,CAAC,CAAsB,CAAA;IAC5E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAA4B;QACrD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SAC3B,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AApCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;6CAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;oDAAA;AAI3B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;gDACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACJ;AAvBhB,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CAuC7B;AAvCY,8CAAiB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISerializable, SerializableAsync } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
-
import { ContentJSON } from "
|
|
3
|
+
import { ContentJSON } from "../../ContentJSON";
|
|
4
4
|
export interface AttributesShareRequestJSON extends ContentJSON {
|
|
5
5
|
id?: string;
|
|
6
6
|
key?: string;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributesShareRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesShareRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgG;AAChG,gDAAkG;AA+ClG,IAAa,sBAAsB,8BAAnC,MAAa,sBAAuB,SAAQ,6BAAiB;IA6BlD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA8B;QACnD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,wBAAsB,CAAC,CAAA;IAC3D,CAAC;CACJ,CAAA;AA7BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;kDAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;yDAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAItB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;0DACgB;AAI3B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,GAAE;;0DACqB;AA3BvB,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CAgClC;AAhCY,wDAAsB"}
|