@nmshd/consumption 3.6.2 → 3.6.4
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/modules/attributes/local/AttributeSuccessorParams.d.ts +11 -9
- package/dist/modules/attributes/local/AttributeSuccessorParams.js +8 -6
- package/dist/modules/attributes/local/AttributeSuccessorParams.js.map +1 -1
- package/dist/modules/attributes/local/LocalAttributeShareInfo.d.ts +3 -7
- package/dist/modules/attributes/local/LocalAttributeShareInfo.js.map +1 -1
- package/lib-web/nmshd.consumption.js +576 -235
- package/lib-web/nmshd.consumption.js.map +1 -1
- package/lib-web/nmshd.consumption.min.js +1 -1
- package/lib-web/nmshd.consumption.min.js.map +1 -1
- package/package.json +3 -3
package/dist/buildInformation.js
CHANGED
|
@@ -6,10 +6,10 @@ const content_1 = require("@nmshd/content");
|
|
|
6
6
|
const crypto_1 = require("@nmshd/crypto");
|
|
7
7
|
const transport_1 = require("@nmshd/transport");
|
|
8
8
|
exports.buildInformation = {
|
|
9
|
-
version: "3.6.
|
|
10
|
-
build: "
|
|
11
|
-
date: "2023-11-
|
|
12
|
-
commit: "
|
|
9
|
+
version: "3.6.4",
|
|
10
|
+
build: "118",
|
|
11
|
+
date: "2023-11-15T07:25:15+00:00",
|
|
12
|
+
commit: "cb9f401e1770fbb33b804826b93939826d831738",
|
|
13
13
|
dependencies: {"@js-soft/docdb-querytranslator":"^1.1.1","@nmshd/iql":"^0.0.4","ts-simple-nameof":"^1.3.1"},
|
|
14
14
|
libraries: {
|
|
15
15
|
transport: transport_1.buildInformation,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { IdentityAttribute, RelationshipAttribute } from "@nmshd/content";
|
|
3
|
+
import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/transport";
|
|
4
|
+
import { ILocalAttribute, LocalAttributeJSON } from "./LocalAttribute";
|
|
5
|
+
import { LocalAttributeShareInfo } from "./LocalAttributeShareInfo";
|
|
4
6
|
export type IAttributeSuccessorParams = Omit<ILocalAttribute, "id" | "createdAt"> & {
|
|
5
7
|
id?: ICoreId;
|
|
6
8
|
createdAt?: ICoreDate;
|
|
@@ -10,12 +12,12 @@ export type AttributeSuccessorParamsJSON = Omit<LocalAttributeJSON, "id" | "crea
|
|
|
10
12
|
createdAt?: string;
|
|
11
13
|
};
|
|
12
14
|
export declare class AttributeSuccessorParams extends Serializable implements IAttributeSuccessorParams {
|
|
13
|
-
id?:
|
|
14
|
-
content:
|
|
15
|
-
createdAt?:
|
|
16
|
-
succeeds
|
|
17
|
-
succeededBy
|
|
18
|
-
shareInfo
|
|
19
|
-
parentId
|
|
15
|
+
id?: CoreId;
|
|
16
|
+
content: IdentityAttribute | RelationshipAttribute;
|
|
17
|
+
createdAt?: CoreDate;
|
|
18
|
+
succeeds?: CoreId;
|
|
19
|
+
succeededBy?: CoreId;
|
|
20
|
+
shareInfo?: LocalAttributeShareInfo;
|
|
21
|
+
parentId?: CoreId;
|
|
20
22
|
static from(value: IAttributeSuccessorParams | AttributeSuccessorParamsJSON): AttributeSuccessorParams;
|
|
21
23
|
}
|
|
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AttributeSuccessorParams = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const content_1 = require("@nmshd/content");
|
|
15
|
+
const transport_1 = require("@nmshd/transport");
|
|
16
|
+
const LocalAttributeShareInfo_1 = require("./LocalAttributeShareInfo");
|
|
15
17
|
let AttributeSuccessorParams = class AttributeSuccessorParams extends ts_serval_1.Serializable {
|
|
16
18
|
static from(value) {
|
|
17
19
|
return this.fromAny(value);
|
|
@@ -21,7 +23,7 @@ exports.AttributeSuccessorParams = AttributeSuccessorParams;
|
|
|
21
23
|
__decorate([
|
|
22
24
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
23
25
|
(0, ts_serval_1.serialize)(),
|
|
24
|
-
__metadata("design:type",
|
|
26
|
+
__metadata("design:type", transport_1.CoreId)
|
|
25
27
|
], AttributeSuccessorParams.prototype, "id", void 0);
|
|
26
28
|
__decorate([
|
|
27
29
|
(0, ts_serval_1.validate)(),
|
|
@@ -31,27 +33,27 @@ __decorate([
|
|
|
31
33
|
__decorate([
|
|
32
34
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
33
35
|
(0, ts_serval_1.serialize)(),
|
|
34
|
-
__metadata("design:type",
|
|
36
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
35
37
|
], AttributeSuccessorParams.prototype, "createdAt", void 0);
|
|
36
38
|
__decorate([
|
|
37
39
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
40
|
(0, ts_serval_1.serialize)(),
|
|
39
|
-
__metadata("design:type",
|
|
41
|
+
__metadata("design:type", transport_1.CoreId)
|
|
40
42
|
], AttributeSuccessorParams.prototype, "succeeds", void 0);
|
|
41
43
|
__decorate([
|
|
42
44
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
43
45
|
(0, ts_serval_1.serialize)(),
|
|
44
|
-
__metadata("design:type",
|
|
46
|
+
__metadata("design:type", transport_1.CoreId)
|
|
45
47
|
], AttributeSuccessorParams.prototype, "succeededBy", void 0);
|
|
46
48
|
__decorate([
|
|
47
49
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
48
50
|
(0, ts_serval_1.serialize)(),
|
|
49
|
-
__metadata("design:type",
|
|
51
|
+
__metadata("design:type", LocalAttributeShareInfo_1.LocalAttributeShareInfo)
|
|
50
52
|
], AttributeSuccessorParams.prototype, "shareInfo", void 0);
|
|
51
53
|
__decorate([
|
|
52
54
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
53
55
|
(0, ts_serval_1.serialize)(),
|
|
54
|
-
__metadata("design:type",
|
|
56
|
+
__metadata("design:type", transport_1.CoreId)
|
|
55
57
|
], AttributeSuccessorParams.prototype, "parentId", void 0);
|
|
56
58
|
exports.AttributeSuccessorParams = AttributeSuccessorParams = __decorate([
|
|
57
59
|
(0, ts_serval_1.type)("AttributeSuccessorParams")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/AttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4E;AAC5E,4CAAyE;
|
|
1
|
+
{"version":3,"file":"AttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/AttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4E;AAC5E,4CAAyE;AACzE,gDAAuE;AAEvE,uEAAmE;AAa5D,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,wBAAY;IA6B/C,MAAM,CAAC,IAAI,CAAC,KAA+D;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;CACJ,CAAA;AAhCY,4DAAwB;AAG1B;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACA,kBAAM;oDAAA;AAIX;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;;yDACb;AAIlD;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACO,oBAAQ;2DAAA;AAIpB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACM,kBAAM;0DAAA;AAIjB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACS,kBAAM;6DAAA;AAIpB;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACO,iDAAuB;2DAAA;AAInC;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;8BACM,kBAAM;0DAAA;mCA3Bf,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAgCpC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Serializable } from "@js-soft/ts-serval";
|
|
2
2
|
import { CoreAddress, CoreId, CoreSerializable, ICoreAddress, ICoreId } from "@nmshd/transport";
|
|
3
|
-
interface
|
|
3
|
+
export interface LocalAttributeShareInfoJSON {
|
|
4
|
+
requestReference?: string;
|
|
5
|
+
notificationReference?: string;
|
|
4
6
|
peer: string;
|
|
5
7
|
sourceAttribute?: string;
|
|
6
8
|
}
|
|
7
|
-
export type LocalAttributeShareInfoJSON = ({
|
|
8
|
-
requestReference: string;
|
|
9
|
-
} & PartialShareInfoJSON) | ({
|
|
10
|
-
notificationReference: string;
|
|
11
|
-
} & PartialShareInfoJSON);
|
|
12
9
|
export interface ILocalAttributeShareInfo {
|
|
13
10
|
requestReference?: ICoreId;
|
|
14
11
|
notificationReference?: ICoreId;
|
|
@@ -23,4 +20,3 @@ export declare class LocalAttributeShareInfo extends CoreSerializable implements
|
|
|
23
20
|
static from(value: ILocalAttributeShareInfo | LocalAttributeShareInfoJSON): LocalAttributeShareInfo;
|
|
24
21
|
protected static postFrom<T extends Serializable>(value: T): T;
|
|
25
22
|
}
|
|
26
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalAttributeShareInfo.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/LocalAttributeShareInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAuF;AACvF,gDAA+F;AAC/F,uDAAyC;AACzC,4EAAwE;
|
|
1
|
+
{"version":3,"file":"LocalAttributeShareInfo.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/LocalAttributeShareInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAuF;AACvF,gDAA+F;AAC/F,uDAAyC;AACzC,4EAAwE;AAoBxE,MAAa,uBAAwB,SAAQ,4BAAgB;IAiBlD,MAAM,CAAC,IAAI,CAAC,KAA6D;QAC5E,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAA4B,CAAA;IAC1D,CAAC;IAES,MAAM,CAAU,QAAQ,CAAyB,KAAQ;QAC/D,IAAI,CAAC,CAAC,KAAK,YAAY,uBAAuB,CAAC,EAAE;YAC7C,MAAM,IAAI,mCAAgB,CAAC,0BAA0B,CAAC,CAAA;SACzD;QAED,IAAI,OAAO,KAAK,CAAC,gBAAgB,KAAK,WAAW,IAAI,OAAO,KAAK,CAAC,qBAAqB,KAAK,WAAW,EAAE;YACrG,MAAM,IAAI,2BAAe,CACrB,uBAAuB,CAAC,IAAI,EAC5B,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAC1D,UAAU,IAAA,yBAAM,EACZ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAC5B,OAAO,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC,eAAe,CACzF,CAAA;SACJ;QAED,IAAI,OAAO,KAAK,CAAC,gBAAgB,KAAK,WAAW,IAAI,OAAO,KAAK,CAAC,qBAAqB,KAAK,WAAW,EAAE;YACrG,MAAM,IAAI,2BAAe,CACrB,uBAAuB,CAAC,IAAI,EAC5B,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAC1D,WAAW,IAAA,yBAAM,EACb,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAC5B,OAAO,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC,mBAAmB,CAC7F,CAAA;SACJ;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;CACJ;AAhDD,0DAgDC;AA7CU;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACH,kBAAM;iEAAA;AAIzB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACE,kBAAM;sEAAA;AAI9B;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACC,uBAAW;qDAAA;AAIjB;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACJ,kBAAM;gEAAA"}
|