@nmshd/consumption 3.6.1 → 3.6.3
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/consumption/CoreErrors.d.ts +1 -0
- package/dist/consumption/CoreErrors.js +3 -0
- package/dist/consumption/CoreErrors.js.map +1 -1
- package/dist/modules/attributes/AttributesController.d.ts +12 -12
- package/dist/modules/attributes/AttributesController.js +133 -85
- package/dist/modules/attributes/AttributesController.js.map +1 -1
- package/dist/modules/attributes/index.d.ts +1 -1
- package/dist/modules/attributes/index.js +1 -1
- package/dist/modules/attributes/index.js.map +1 -1
- package/dist/modules/attributes/local/AttributeSuccessorParams.d.ts +21 -0
- package/dist/modules/attributes/local/AttributeSuccessorParams.js +59 -0
- package/dist/modules/attributes/local/AttributeSuccessorParams.js.map +1 -0
- 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 +774 -328
- 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/modules/attributes/local/IAttributeSuccessorParams.d.ts +0 -6
- package/dist/modules/attributes/local/IAttributeSuccessorParams.js +0 -3
- package/dist/modules/attributes/local/IAttributeSuccessorParams.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Serializable } from "@js-soft/ts-serval";
|
|
2
|
+
import { ICoreDate, ICoreId } from "@nmshd/transport";
|
|
3
|
+
import { ILocalAttribute, LocalAttribute, LocalAttributeJSON } from "./LocalAttribute";
|
|
4
|
+
export type IAttributeSuccessorParams = Omit<ILocalAttribute, "id" | "createdAt"> & {
|
|
5
|
+
id?: ICoreId;
|
|
6
|
+
createdAt?: ICoreDate;
|
|
7
|
+
};
|
|
8
|
+
export type AttributeSuccessorParamsJSON = Omit<LocalAttributeJSON, "id" | "createdAt"> & {
|
|
9
|
+
id?: string;
|
|
10
|
+
createdAt?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class AttributeSuccessorParams extends Serializable implements IAttributeSuccessorParams {
|
|
13
|
+
id?: LocalAttribute["id"];
|
|
14
|
+
content: LocalAttribute["content"];
|
|
15
|
+
createdAt?: LocalAttribute["createdAt"];
|
|
16
|
+
succeeds: LocalAttribute["succeeds"];
|
|
17
|
+
succeededBy: LocalAttribute["succeededBy"];
|
|
18
|
+
shareInfo: LocalAttribute["shareInfo"];
|
|
19
|
+
parentId: LocalAttribute["parentId"];
|
|
20
|
+
static from(value: IAttributeSuccessorParams | AttributeSuccessorParamsJSON): AttributeSuccessorParams;
|
|
21
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.AttributeSuccessorParams = void 0;
|
|
13
|
+
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
|
+
const content_1 = require("@nmshd/content");
|
|
15
|
+
let AttributeSuccessorParams = class AttributeSuccessorParams extends ts_serval_1.Serializable {
|
|
16
|
+
static from(value) {
|
|
17
|
+
return this.fromAny(value);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.AttributeSuccessorParams = AttributeSuccessorParams;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
23
|
+
(0, ts_serval_1.serialize)(),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], AttributeSuccessorParams.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, ts_serval_1.validate)(),
|
|
28
|
+
(0, ts_serval_1.serialize)({ unionTypes: [content_1.IdentityAttribute, content_1.RelationshipAttribute] }),
|
|
29
|
+
__metadata("design:type", Object)
|
|
30
|
+
], AttributeSuccessorParams.prototype, "content", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
33
|
+
(0, ts_serval_1.serialize)(),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], AttributeSuccessorParams.prototype, "createdAt", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
38
|
+
(0, ts_serval_1.serialize)(),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], AttributeSuccessorParams.prototype, "succeeds", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
43
|
+
(0, ts_serval_1.serialize)(),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
|
+
], AttributeSuccessorParams.prototype, "succeededBy", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
48
|
+
(0, ts_serval_1.serialize)(),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], AttributeSuccessorParams.prototype, "shareInfo", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
53
|
+
(0, ts_serval_1.serialize)(),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
|
+
], AttributeSuccessorParams.prototype, "parentId", void 0);
|
|
56
|
+
exports.AttributeSuccessorParams = AttributeSuccessorParams = __decorate([
|
|
57
|
+
(0, ts_serval_1.type)("AttributeSuccessorParams")
|
|
58
|
+
], AttributeSuccessorParams);
|
|
59
|
+
//# sourceMappingURL=AttributeSuccessorParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttributeSuccessorParams.js","sourceRoot":"","sources":["../../../../src/modules/attributes/local/AttributeSuccessorParams.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA4E;AAC5E,4CAAyE;AAelE,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;;oDACoB;AAIzB;IAFN,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,EAAC,EAAE,UAAU,EAAE,CAAC,2BAAiB,EAAE,+BAAqB,CAAC,EAAE,CAAC;;yDAC7B;AAIlC;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;2DACkC;AAIvC;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;0DAC+B;AAIpC;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;6DACqC;AAI1C;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;2DACiC;AAItC;IAFN,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,qBAAS,GAAE;;0DAC+B;mCA3BlC,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":"","s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