@nmshd/content 2.0.0-alpha.13 → 2.0.0-alpha.16
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/attributes/AbstractAttributeQuery.d.ts +3 -3
- package/dist/attributes/AbstractAttributeQuery.js +0 -1
- package/dist/attributes/AbstractAttributeQuery.js.map +1 -1
- package/dist/attributes/AbstractAttributeValue.d.ts +3 -0
- package/dist/attributes/AbstractAttributeValue.js +6 -0
- package/dist/attributes/AbstractAttributeValue.js.map +1 -1
- package/dist/attributes/RelationshipAttribute.d.ts +36 -0
- package/dist/attributes/RelationshipAttribute.js +51 -2
- package/dist/attributes/RelationshipAttribute.js.map +1 -1
- package/dist/attributes/RelationshipAttributeQuery.d.ts +7 -0
- package/dist/attributes/RelationshipAttributeQuery.js +11 -0
- package/dist/attributes/RelationshipAttributeQuery.js.map +1 -1
- package/dist/attributes/hints/RelationshipAttributeHints.d.ts +30 -0
- package/dist/attributes/hints/RelationshipAttributeHints.js +63 -0
- package/dist/attributes/hints/RelationshipAttributeHints.js.map +1 -0
- package/dist/attributes/hints/RenderHints.d.ts +70 -0
- package/dist/attributes/hints/RenderHints.js +111 -0
- package/dist/attributes/hints/RenderHints.js.map +1 -0
- package/dist/attributes/hints/ValueHints.d.ts +44 -0
- package/dist/attributes/hints/ValueHints.js +103 -0
- package/dist/attributes/hints/ValueHints.js.map +1 -0
- package/dist/attributes/hints/ValueHintsValue.d.ts +14 -0
- package/dist/attributes/hints/ValueHintsValue.js +33 -0
- package/dist/attributes/hints/ValueHintsValue.js.map +1 -0
- package/dist/attributes/hints/index.d.ts +4 -0
- package/dist/attributes/hints/index.js +21 -0
- package/dist/attributes/hints/index.js.map +1 -0
- package/dist/attributes/index.d.ts +1 -0
- package/dist/attributes/index.js +1 -0
- package/dist/attributes/index.js.map +1 -1
- package/dist/attributes/types/AbstractInteger.d.ts +4 -0
- package/dist/attributes/types/AbstractInteger.js +13 -0
- package/dist/attributes/types/AbstractInteger.js.map +1 -1
- package/dist/attributes/types/birth/BirthMonth.d.ts +2 -0
- package/dist/attributes/types/birth/BirthMonth.js +5 -0
- package/dist/attributes/types/birth/BirthMonth.js.map +1 -1
- package/dist/attributes/types/dates/AbstractMonth.d.ts +3 -1
- package/dist/attributes/types/dates/AbstractMonth.js +6 -0
- package/dist/attributes/types/dates/AbstractMonth.js.map +1 -1
- package/dist/attributes/types/files/FileReference.d.ts +3 -0
- package/dist/attributes/types/files/FileReference.js +18 -0
- package/dist/attributes/types/files/FileReference.js.map +1 -0
- package/dist/attributes/types/files/index.d.ts +1 -0
- package/dist/attributes/types/files/index.js +18 -0
- package/dist/attributes/types/files/index.js.map +1 -0
- package/dist/attributes/types/index.d.ts +1 -0
- package/dist/attributes/types/index.js +1 -0
- package/dist/attributes/types/index.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryFileReference.d.ts +3 -0
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js +18 -0
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js.map +1 -0
- package/dist/attributes/types/proprietary/ProprietaryInteger.d.ts +11 -1
- package/dist/attributes/types/proprietary/ProprietaryInteger.js +23 -0
- package/dist/attributes/types/proprietary/ProprietaryInteger.js.map +1 -1
- package/dist/attributes/types/proprietary/index.d.ts +1 -0
- package/dist/attributes/types/proprietary/index.js +1 -0
- package/dist/attributes/types/proprietary/index.js.map +1 -1
- package/dist/attributes/types/strings/AbstractFileReference.d.ts +3 -0
- package/dist/attributes/types/strings/AbstractFileReference.js +8 -0
- package/dist/attributes/types/strings/AbstractFileReference.js.map +1 -0
- package/dist/attributes/types/strings/index.d.ts +1 -0
- package/dist/attributes/types/strings/index.js +1 -0
- package/dist/attributes/types/strings/index.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/dist/relationships/RelationshipTemplateBody.d.ts +6 -6
- package/dist/relationships/RelationshipTemplateBody.js +2 -2
- package/dist/relationships/RelationshipTemplateBody.js.map +1 -1
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.d.ts +11 -0
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js +30 -0
- package/dist/requests/items/readAttribute/ReadAttributeRequestItem.js.map +1 -0
- package/dist/requests/items/readAttribute/ReadAttributeResponseItem.d.ts +16 -0
- package/dist/requests/items/readAttribute/ReadAttributeResponseItem.js +36 -0
- package/dist/requests/items/readAttribute/ReadAttributeResponseItem.js.map +1 -0
- package/lib-web/nmshd.content.js +599 -9
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
|
@@ -31,12 +31,12 @@ __decorate([
|
|
|
31
31
|
(0, ts_serval_1.serialize)(),
|
|
32
32
|
(0, ts_serval_1.validate)(),
|
|
33
33
|
__metadata("design:type", Request_1.Request)
|
|
34
|
-
], RelationshipTemplateBody.prototype, "
|
|
34
|
+
], RelationshipTemplateBody.prototype, "onNewRelationship", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, ts_serval_1.serialize)(),
|
|
37
37
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
38
|
__metadata("design:type", Request_1.Request)
|
|
39
|
-
], RelationshipTemplateBody.prototype, "
|
|
39
|
+
], RelationshipTemplateBody.prototype, "onExistingRelationship", void 0);
|
|
40
40
|
RelationshipTemplateBody = __decorate([
|
|
41
41
|
(0, ts_serval_1.type)("RelationshipTemplateBody")
|
|
42
42
|
], RelationshipTemplateBody);
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;8BACe,iBAAO;mEAAA;AAIjC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACG,iBAAO;wEAAA;AAf9B,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAoBpC;AApBY,4DAAwB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractAttributeQuery, IAbstractAttributeQuery } from "../../../attributes/AbstractAttributeQuery";
|
|
2
|
+
import { IRequestItem, RequestItem, RequestItemJSON } from "../../RequestItem";
|
|
3
|
+
export interface ReadAttributeRequestItemJSON extends RequestItemJSON {
|
|
4
|
+
}
|
|
5
|
+
export interface IReadAttributeRequestItem extends IRequestItem {
|
|
6
|
+
query: IAbstractAttributeQuery;
|
|
7
|
+
}
|
|
8
|
+
export declare class ReadAttributeRequestItem extends RequestItem implements IReadAttributeRequestItem {
|
|
9
|
+
query: AbstractAttributeQuery;
|
|
10
|
+
static from(value: IReadAttributeRequestItem): ReadAttributeRequestItem;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReadAttributeRequestItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const AbstractAttributeQuery_1 = require("../../../attributes/AbstractAttributeQuery");
|
|
15
|
+
const RequestItem_1 = require("../../RequestItem");
|
|
16
|
+
let ReadAttributeRequestItem = class ReadAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
17
|
+
static from(value) {
|
|
18
|
+
return this.fromAny(value);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.serialize)(),
|
|
23
|
+
(0, ts_serval_1.validate)(),
|
|
24
|
+
__metadata("design:type", AbstractAttributeQuery_1.AbstractAttributeQuery)
|
|
25
|
+
], ReadAttributeRequestItem.prototype, "query", void 0);
|
|
26
|
+
ReadAttributeRequestItem = __decorate([
|
|
27
|
+
(0, ts_serval_1.type)("ReadAttributeRequestItem")
|
|
28
|
+
], ReadAttributeRequestItem);
|
|
29
|
+
exports.ReadAttributeRequestItem = ReadAttributeRequestItem;
|
|
30
|
+
//# sourceMappingURL=ReadAttributeRequestItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,uFAA4G;AAC5G,mDAA8E;AAS9E,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,yBAAW;IAK9C,MAAM,CAAC,IAAI,CAAC,KAAgC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACG,+CAAsB;uDAAA;AAH3B,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAQpC;AARY,4DAAwB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
2
|
+
import { AbstractAttribute, AbstractAttributeJSON, IAbstractAttribute } from "../../../attributes/AbstractAttribute";
|
|
3
|
+
import { AcceptResponseItem, AcceptResponseItemJSON, IAcceptResponseItem } from "../../response";
|
|
4
|
+
export interface ReadAttributeAcceptResponseItemJSON extends AcceptResponseItemJSON {
|
|
5
|
+
attributeId: string;
|
|
6
|
+
attribute: AbstractAttributeJSON;
|
|
7
|
+
}
|
|
8
|
+
export interface IReadAttributeAcceptResponseItem extends IAcceptResponseItem {
|
|
9
|
+
attributeId: ICoreId;
|
|
10
|
+
attribute: IAbstractAttribute;
|
|
11
|
+
}
|
|
12
|
+
export declare class ReadAttributeAcceptResponseItem extends AcceptResponseItem implements IReadAttributeAcceptResponseItem {
|
|
13
|
+
attributeId: CoreId;
|
|
14
|
+
attribute: AbstractAttribute;
|
|
15
|
+
static from(value: IReadAttributeAcceptResponseItem | ReadAttributeAcceptResponseItemJSON): ReadAttributeAcceptResponseItem;
|
|
16
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReadAttributeAcceptResponseItem = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
|
+
const AbstractAttribute_1 = require("../../../attributes/AbstractAttribute");
|
|
16
|
+
const response_1 = require("../../response");
|
|
17
|
+
let ReadAttributeAcceptResponseItem = class ReadAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
|
|
18
|
+
static from(value) {
|
|
19
|
+
return this.fromAny(value);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
|
+
(0, ts_serval_1.validate)(),
|
|
25
|
+
__metadata("design:type", transport_1.CoreId)
|
|
26
|
+
], ReadAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, ts_serval_1.serialize)(),
|
|
29
|
+
(0, ts_serval_1.validate)(),
|
|
30
|
+
__metadata("design:type", AbstractAttribute_1.AbstractAttribute)
|
|
31
|
+
], ReadAttributeAcceptResponseItem.prototype, "attribute", void 0);
|
|
32
|
+
ReadAttributeAcceptResponseItem = __decorate([
|
|
33
|
+
(0, ts_serval_1.type)("AcceptReadAttributeResponseItem")
|
|
34
|
+
], ReadAttributeAcceptResponseItem);
|
|
35
|
+
exports.ReadAttributeAcceptResponseItem = ReadAttributeAcceptResponseItem;
|
|
36
|
+
//# sourceMappingURL=ReadAttributeResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadAttributeResponseItem.js","sourceRoot":"","sources":["../../../../src/requests/items/readAttribute/ReadAttributeResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAClD,6EAAoH;AACpH,6CAAgG;AAahG,IAAa,+BAA+B,GAA5C,MAAa,+BAAgC,SAAQ,6BAAkB;IAS5D,MAAM,CAAU,IAAI,CACvB,KAA6E;QAE7E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACS,kBAAM;oEAAA;AAI1B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACO,qCAAiB;kEAAA;AAP1B,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAc3C;AAdY,0EAA+B"}
|