@nmshd/content 2.0.0-alpha.40 → 2.0.0-alpha.43
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/README.md +2 -2
- package/dist/attributes/AbstractAttributeValue.d.ts +1 -1
- package/dist/buildInformation.js +4 -4
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.d.ts +4 -0
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js +8 -1
- package/dist/requests/items/createAttribute/CreateAttributeRequestItem.js.map +1 -1
- package/lib-web/nmshd.content.js +12 -5
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The content library defines data structures that can be transmitted using the [t
|
|
|
7
7
|
|
|
8
8
|
## Documentation
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
You can find the documentation for Enmeshed on [enmeshed.eu](https://enmeshed.eu).
|
|
11
11
|
|
|
12
12
|
## Feedback
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ Share your feedback with the Enmeshed team by contributing to the [discussions](
|
|
|
17
17
|
|
|
18
18
|
## Contribute
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Contribution to this project is highly apprecicated. Head over to our [contribution guide](https://github.com/nmshd/.github/blob/main/CONTRIBUTING.md) to learn more.
|
|
21
21
|
|
|
22
22
|
## License
|
|
23
23
|
|
|
@@ -5,7 +5,7 @@ import { AbstractBoolean } from "./types/AbstractBoolean";
|
|
|
5
5
|
import { AbstractFloat } from "./types/AbstractFloat";
|
|
6
6
|
import { AbstractInteger } from "./types/AbstractInteger";
|
|
7
7
|
import { AbstractString } from "./types/AbstractString";
|
|
8
|
-
export interface AbstractAttributeValueJSON extends ContentJSON {
|
|
8
|
+
export interface AbstractAttributeValueJSON extends ContentJSON, Record<string, unknown> {
|
|
9
9
|
}
|
|
10
10
|
export interface IAbstractAttributeValue extends ISerializable {
|
|
11
11
|
}
|
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-07-
|
|
11
|
-
commit: "
|
|
8
|
+
version: "2.0.0-alpha.43",
|
|
9
|
+
build: "75",
|
|
10
|
+
date: "2022-07-07T13:05:33+00:00",
|
|
11
|
+
commit: "d91b94378e5766310330484b863bdc0b24eaa921",
|
|
12
12
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
13
13
|
libraries: {
|
|
14
14
|
serval: ts_serval_1.buildInformation,
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { CoreId, ICoreId } from "@nmshd/transport";
|
|
1
2
|
import { RequestItemJSON } from "../..";
|
|
2
3
|
import { IdentityAttribute, IdentityAttributeJSON, IIdentityAttribute, IRelationshipAttribute, RelationshipAttribute, RelationshipAttributeJSON } from "../../../attributes";
|
|
3
4
|
import { IRequestItem, RequestItem } from "../../RequestItem";
|
|
4
5
|
export interface CreateAttributeRequestItemJSON extends RequestItemJSON {
|
|
5
6
|
attribute: IdentityAttributeJSON | RelationshipAttributeJSON;
|
|
7
|
+
sourceAttributeId?: string;
|
|
6
8
|
}
|
|
7
9
|
export interface ICreateAttributeRequestItem extends IRequestItem {
|
|
8
10
|
attribute: IIdentityAttribute | IRelationshipAttribute;
|
|
11
|
+
sourceAttributeId?: ICoreId;
|
|
9
12
|
}
|
|
10
13
|
export declare class CreateAttributeRequestItem extends RequestItem implements ICreateAttributeRequestItem {
|
|
11
14
|
attribute: IdentityAttribute | RelationshipAttribute;
|
|
15
|
+
sourceAttributeId?: CoreId;
|
|
12
16
|
static from(value: ICreateAttributeRequestItem | CreateAttributeRequestItemJSON): CreateAttributeRequestItem;
|
|
13
17
|
}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateAttributeRequestItem = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const transport_1 = require("@nmshd/transport");
|
|
15
|
+
const attributes_1 = require("../../../attributes");
|
|
14
16
|
const RequestItem_1 = require("../../RequestItem");
|
|
15
17
|
let CreateAttributeRequestItem = class CreateAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
16
18
|
static from(value) {
|
|
@@ -18,10 +20,15 @@ let CreateAttributeRequestItem = class CreateAttributeRequestItem extends Reques
|
|
|
18
20
|
}
|
|
19
21
|
};
|
|
20
22
|
__decorate([
|
|
21
|
-
(0, ts_serval_1.serialize)(),
|
|
23
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
|
|
22
24
|
(0, ts_serval_1.validate)(),
|
|
23
25
|
__metadata("design:type", Object)
|
|
24
26
|
], CreateAttributeRequestItem.prototype, "attribute", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, ts_serval_1.serialize)(),
|
|
29
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", transport_1.CoreId)
|
|
31
|
+
], CreateAttributeRequestItem.prototype, "sourceAttributeId", void 0);
|
|
25
32
|
CreateAttributeRequestItem = __decorate([
|
|
26
33
|
(0, ts_serval_1.type)("CreateAttributeRequestItem")
|
|
27
34
|
], CreateAttributeRequestItem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createAttribute/CreateAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;
|
|
1
|
+
{"version":3,"file":"CreateAttributeRequestItem.js","sourceRoot":"","sources":["../../../../src/requests/items/createAttribute/CreateAttributeRequestItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAAkD;AAElD,oDAO4B;AAC5B,mDAA6D;AAa7D,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,yBAAW;IAShD,MAAM,CAAC,IAAI,CACd,KAAmE;QAEnE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAXG;IAFC,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,8BAAiB,EAAE,kCAAqB,CAAC,EAAE,CAAC;IACrE,IAAA,oBAAQ,GAAE;;6DACgD;AAI3D;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACF,kBAAM;qEAAA;AAPxB,0BAA0B;IADtC,IAAA,gBAAI,EAAC,4BAA4B,CAAC;GACtB,0BAA0B,CActC;AAdY,gEAA0B"}
|
package/lib-web/nmshd.content.js
CHANGED
|
@@ -4930,10 +4930,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
4930
4930
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
4931
4931
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
4932
4932
|
exports.buildInformation = {
|
|
4933
|
-
version: "2.0.0-alpha.
|
|
4934
|
-
build: "
|
|
4935
|
-
date: "2022-07-
|
|
4936
|
-
commit: "
|
|
4933
|
+
version: "2.0.0-alpha.43",
|
|
4934
|
+
build: "75",
|
|
4935
|
+
date: "2022-07-07T13:05:33+00:00",
|
|
4936
|
+
commit: "d91b94378e5766310330484b863bdc0b24eaa921",
|
|
4937
4937
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
|
|
4938
4938
|
libraries: {
|
|
4939
4939
|
serval: ts_serval_1.buildInformation,
|
|
@@ -5914,6 +5914,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
5914
5914
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5915
5915
|
exports.CreateAttributeRequestItem = void 0;
|
|
5916
5916
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5917
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
5918
|
+
const attributes_1 = __webpack_require__(/*! ../../../attributes */ "./dist/attributes/index.js");
|
|
5917
5919
|
const RequestItem_1 = __webpack_require__(/*! ../../RequestItem */ "./dist/requests/RequestItem.js");
|
|
5918
5920
|
let CreateAttributeRequestItem = class CreateAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
5919
5921
|
static from(value) {
|
|
@@ -5921,10 +5923,15 @@ let CreateAttributeRequestItem = class CreateAttributeRequestItem extends Reques
|
|
|
5921
5923
|
}
|
|
5922
5924
|
};
|
|
5923
5925
|
__decorate([
|
|
5924
|
-
(0, ts_serval_1.serialize)(),
|
|
5926
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
|
|
5925
5927
|
(0, ts_serval_1.validate)(),
|
|
5926
5928
|
__metadata("design:type", Object)
|
|
5927
5929
|
], CreateAttributeRequestItem.prototype, "attribute", void 0);
|
|
5930
|
+
__decorate([
|
|
5931
|
+
(0, ts_serval_1.serialize)(),
|
|
5932
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5933
|
+
__metadata("design:type", transport_1.CoreId)
|
|
5934
|
+
], CreateAttributeRequestItem.prototype, "sourceAttributeId", void 0);
|
|
5928
5935
|
CreateAttributeRequestItem = __decorate([
|
|
5929
5936
|
(0, ts_serval_1.type)("CreateAttributeRequestItem")
|
|
5930
5937
|
], CreateAttributeRequestItem);
|