@nmshd/consumption 3.9.3 → 3.9.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 +5 -5
- package/dist/consumption/CoreErrors.d.ts +1 -1
- package/dist/consumption/CoreErrors.d.ts.map +1 -1
- package/dist/consumption/CoreErrors.js +2 -2
- package/dist/consumption/CoreErrors.js.map +1 -1
- package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.d.ts +1 -1
- package/dist/modules/attributeListeners/local/CreateLocalAttributeListenerParams.d.ts.map +1 -1
- package/dist/modules/attributeListeners/local/LocalAttributeListener.d.ts +1 -1
- package/dist/modules/attributeListeners/local/LocalAttributeListener.d.ts.map +1 -1
- package/dist/modules/attributes/AttributesController.js +2 -2
- package/dist/modules/attributes/AttributesController.js.map +1 -1
- package/dist/modules/attributes/local/CreateLocalAttributeParams.d.ts +1 -1
- package/dist/modules/attributes/local/CreateLocalAttributeParams.d.ts.map +1 -1
- package/dist/modules/attributes/local/CreatePeerLocalAttributeParams.d.ts +1 -1
- package/dist/modules/attributes/local/CreatePeerLocalAttributeParams.d.ts.map +1 -1
- package/dist/modules/attributes/local/LocalAttribute.d.ts +1 -1
- package/dist/modules/attributes/local/LocalAttribute.d.ts.map +1 -1
- package/dist/modules/requests/incoming/IncomingRequestsController.d.ts.map +1 -1
- package/dist/modules/requests/incoming/IncomingRequestsController.js +1 -1
- package/dist/modules/requests/incoming/IncomingRequestsController.js.map +1 -1
- package/lib-web/nmshd.consumption.js +59 -46
- 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 +4 -4
|
@@ -28293,11 +28293,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
|
|
|
28293
28293
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
28294
28294
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
28295
28295
|
exports.buildInformation = {
|
|
28296
|
-
version: "3.9.
|
|
28297
|
-
build: "
|
|
28298
|
-
date: "2024-02-
|
|
28299
|
-
commit: "
|
|
28300
|
-
dependencies: {"@js-soft/docdb-querytranslator":"^1.1.2","@nmshd/iql":"^1.0.
|
|
28296
|
+
version: "3.9.4",
|
|
28297
|
+
build: "30",
|
|
28298
|
+
date: "2024-02-23T11:56:17+00:00",
|
|
28299
|
+
commit: "f595da4c58bfeccdfa4911aa46532be9b0898a44",
|
|
28300
|
+
dependencies: {"@js-soft/docdb-querytranslator":"^1.1.2","@nmshd/iql":"^1.0.2","ts-simple-nameof":"^1.3.1"},
|
|
28301
28301
|
libraries: {
|
|
28302
28302
|
transport: transport_1.buildInformation,
|
|
28303
28303
|
crypto: crypto_1.buildInformation,
|
|
@@ -28519,8 +28519,8 @@ class Attributes {
|
|
|
28519
28519
|
errorMessage += ` ${comment}`;
|
|
28520
28520
|
return new transport_1.CoreError("error.consumption.attributes.invalidSuccessionOfOwnSharedIdentityAttribute", errorMessage);
|
|
28521
28521
|
}
|
|
28522
|
-
|
|
28523
|
-
return new transport_1.CoreError("error.consumption.attributes.
|
|
28522
|
+
cannotSucceedChildOfComplexAttribute(parentId) {
|
|
28523
|
+
return new transport_1.CoreError("error.consumption.attributes.cannotSucceedChildOfComplexAttribute", `The attribute you want to succeed is child attribute of a complex attribute (id: ${parentId}), and cannot be succeeded on its own. Instead, succeed the parent which will implicitly succeed all its children.`);
|
|
28524
28524
|
}
|
|
28525
28525
|
successorMustNotYetExist() {
|
|
28526
28526
|
return new transport_1.CoreError("error.consumption.attributes.successorMustNotYetExist", "The predecessor attribute's successor must not exist. It will be created by the succession handlers and must not be created manually.");
|
|
@@ -29523,7 +29523,7 @@ class AttributesController extends ConsumptionBaseController_1.ConsumptionBaseCo
|
|
|
29523
29523
|
return common_1.ValidationResult.error(CoreErrors_1.CoreErrors.attributes.successorMustNotHaveASuccessor());
|
|
29524
29524
|
}
|
|
29525
29525
|
if (typeof successor.parentId !== "undefined") {
|
|
29526
|
-
return common_1.ValidationResult.error(CoreErrors_1.CoreErrors.attributes.
|
|
29526
|
+
return common_1.ValidationResult.error(CoreErrors_1.CoreErrors.attributes.cannotSucceedChildOfComplexAttribute(predecessorId.toString()));
|
|
29527
29527
|
}
|
|
29528
29528
|
const predecessor = await this.getLocalAttribute(predecessorId);
|
|
29529
29529
|
if (typeof predecessor === "undefined") {
|
|
@@ -29533,7 +29533,7 @@ class AttributesController extends ConsumptionBaseController_1.ConsumptionBaseCo
|
|
|
29533
29533
|
return common_1.ValidationResult.error(CoreErrors_1.CoreErrors.attributes.cannotSucceedAttributesWithASuccessor(predecessor.succeededBy.toString()));
|
|
29534
29534
|
}
|
|
29535
29535
|
if (typeof predecessor.parentId !== "undefined") {
|
|
29536
|
-
return common_1.ValidationResult.error(CoreErrors_1.CoreErrors.attributes.
|
|
29536
|
+
return common_1.ValidationResult.error(CoreErrors_1.CoreErrors.attributes.cannotSucceedChildOfComplexAttribute(predecessorId.toString()));
|
|
29537
29537
|
}
|
|
29538
29538
|
if (!predecessor.content.owner.equals(transport_1.CoreAddress.from(successor.content.owner))) {
|
|
29539
29539
|
return common_1.ValidationResult.error(CoreErrors_1.CoreErrors.attributes.successionMustNotChangeOwner());
|
|
@@ -31509,10 +31509,10 @@ const events_1 = __webpack_require__(/*! ../events */ "./dist/modules/requests/e
|
|
|
31509
31509
|
const LocalRequest_1 = __webpack_require__(/*! ../local/LocalRequest */ "./dist/modules/requests/local/LocalRequest.js");
|
|
31510
31510
|
const LocalRequestStatus_1 = __webpack_require__(/*! ../local/LocalRequestStatus */ "./dist/modules/requests/local/LocalRequestStatus.js");
|
|
31511
31511
|
const LocalResponse_1 = __webpack_require__(/*! ../local/LocalResponse */ "./dist/modules/requests/local/LocalResponse.js");
|
|
31512
|
+
const DecideRequestParametersValidator_1 = __webpack_require__(/*! ./DecideRequestParametersValidator */ "./dist/modules/requests/incoming/DecideRequestParametersValidator.js");
|
|
31512
31513
|
const CheckPrerequisitesOfIncomingRequestParameters_1 = __webpack_require__(/*! ./checkPrerequisites/CheckPrerequisitesOfIncomingRequestParameters */ "./dist/modules/requests/incoming/checkPrerequisites/CheckPrerequisitesOfIncomingRequestParameters.js");
|
|
31513
31514
|
const CompleteIncomingRequestParameters_1 = __webpack_require__(/*! ./complete/CompleteIncomingRequestParameters */ "./dist/modules/requests/incoming/complete/CompleteIncomingRequestParameters.js");
|
|
31514
31515
|
const InternalDecideRequestParameters_1 = __webpack_require__(/*! ./decide/InternalDecideRequestParameters */ "./dist/modules/requests/incoming/decide/InternalDecideRequestParameters.js");
|
|
31515
|
-
const DecideRequestParametersValidator_1 = __webpack_require__(/*! ./DecideRequestParametersValidator */ "./dist/modules/requests/incoming/DecideRequestParametersValidator.js");
|
|
31516
31516
|
const ReceivedIncomingRequestParameters_1 = __webpack_require__(/*! ./received/ReceivedIncomingRequestParameters */ "./dist/modules/requests/incoming/received/ReceivedIncomingRequestParameters.js");
|
|
31517
31517
|
const RequireManualDecisionOfIncomingRequestParameters_1 = __webpack_require__(/*! ./requireManualDecision/RequireManualDecisionOfIncomingRequestParameters */ "./dist/modules/requests/incoming/requireManualDecision/RequireManualDecisionOfIncomingRequestParameters.js");
|
|
31518
31518
|
class IncomingRequestsController extends ConsumptionBaseController_1.ConsumptionBaseController {
|
|
@@ -34091,7 +34091,7 @@ exports.validate = validate;
|
|
|
34091
34091
|
/***/ ((module) => {
|
|
34092
34092
|
|
|
34093
34093
|
"use strict";
|
|
34094
|
-
//
|
|
34094
|
+
// @generated by Peggy 4.0.0.
|
|
34095
34095
|
//
|
|
34096
34096
|
// https://peggyjs.org/
|
|
34097
34097
|
|
|
@@ -34421,14 +34421,14 @@ function peg$parse(input, options) {
|
|
|
34421
34421
|
var peg$f11 = function (val) {
|
|
34422
34422
|
return val.join("").replaceAll("\\\\", "\\").replaceAll("\\'", "'");
|
|
34423
34423
|
};
|
|
34424
|
-
var peg$currPos = 0;
|
|
34425
|
-
var peg$savedPos =
|
|
34424
|
+
var peg$currPos = options.peg$currPos | 0;
|
|
34425
|
+
var peg$savedPos = peg$currPos;
|
|
34426
34426
|
var peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
34427
|
-
var peg$maxFailPos =
|
|
34428
|
-
var peg$maxFailExpected = [];
|
|
34429
|
-
var peg$silentFails = 0;
|
|
34427
|
+
var peg$maxFailPos = peg$currPos;
|
|
34428
|
+
var peg$maxFailExpected = options.peg$maxFailExpected || [];
|
|
34429
|
+
var peg$silentFails = options.peg$silentFails | 0;
|
|
34430
34430
|
var peg$result;
|
|
34431
|
-
if (
|
|
34431
|
+
if (options.startRule) {
|
|
34432
34432
|
if (!(options.startRule in peg$startRuleFunctions)) {
|
|
34433
34433
|
throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
|
|
34434
34434
|
}
|
|
@@ -34484,9 +34484,12 @@ function peg$parse(input, options) {
|
|
|
34484
34484
|
return details;
|
|
34485
34485
|
}
|
|
34486
34486
|
else {
|
|
34487
|
-
|
|
34488
|
-
|
|
34489
|
-
|
|
34487
|
+
if (pos >= peg$posDetailsCache.length) {
|
|
34488
|
+
p = peg$posDetailsCache.length - 1;
|
|
34489
|
+
}
|
|
34490
|
+
else {
|
|
34491
|
+
p = pos;
|
|
34492
|
+
while (!peg$posDetailsCache[--p]) { }
|
|
34490
34493
|
}
|
|
34491
34494
|
details = peg$posDetailsCache[p];
|
|
34492
34495
|
details = {
|
|
@@ -35189,8 +35192,8 @@ function peg$parse(input, options) {
|
|
|
35189
35192
|
function peg$parsePredicate() {
|
|
35190
35193
|
var s0, s1, s2;
|
|
35191
35194
|
s0 = peg$currPos;
|
|
35192
|
-
|
|
35193
|
-
|
|
35195
|
+
s1 = input.charAt(peg$currPos);
|
|
35196
|
+
if (peg$r0.test(s1)) {
|
|
35194
35197
|
peg$currPos++;
|
|
35195
35198
|
}
|
|
35196
35199
|
else {
|
|
@@ -35216,8 +35219,8 @@ function peg$parse(input, options) {
|
|
|
35216
35219
|
}
|
|
35217
35220
|
if (s0 === peg$FAILED) {
|
|
35218
35221
|
s0 = peg$currPos;
|
|
35219
|
-
|
|
35220
|
-
|
|
35222
|
+
s1 = input.charAt(peg$currPos);
|
|
35223
|
+
if (peg$r1.test(s1)) {
|
|
35221
35224
|
peg$currPos++;
|
|
35222
35225
|
}
|
|
35223
35226
|
else {
|
|
@@ -35271,8 +35274,8 @@ function peg$parse(input, options) {
|
|
|
35271
35274
|
}
|
|
35272
35275
|
}
|
|
35273
35276
|
if (s3 === peg$FAILED) {
|
|
35274
|
-
|
|
35275
|
-
|
|
35277
|
+
s3 = input.charAt(peg$currPos);
|
|
35278
|
+
if (peg$r2.test(s3)) {
|
|
35276
35279
|
peg$currPos++;
|
|
35277
35280
|
}
|
|
35278
35281
|
else {
|
|
@@ -35307,8 +35310,8 @@ function peg$parse(input, options) {
|
|
|
35307
35310
|
}
|
|
35308
35311
|
}
|
|
35309
35312
|
if (s3 === peg$FAILED) {
|
|
35310
|
-
|
|
35311
|
-
|
|
35313
|
+
s3 = input.charAt(peg$currPos);
|
|
35314
|
+
if (peg$r2.test(s3)) {
|
|
35312
35315
|
peg$currPos++;
|
|
35313
35316
|
}
|
|
35314
35317
|
else {
|
|
@@ -35368,8 +35371,8 @@ function peg$parse(input, options) {
|
|
|
35368
35371
|
}
|
|
35369
35372
|
}
|
|
35370
35373
|
if (s2 === peg$FAILED) {
|
|
35371
|
-
|
|
35372
|
-
|
|
35374
|
+
s2 = input.charAt(peg$currPos);
|
|
35375
|
+
if (peg$r3.test(s2)) {
|
|
35373
35376
|
peg$currPos++;
|
|
35374
35377
|
}
|
|
35375
35378
|
else {
|
|
@@ -35404,8 +35407,8 @@ function peg$parse(input, options) {
|
|
|
35404
35407
|
}
|
|
35405
35408
|
}
|
|
35406
35409
|
if (s2 === peg$FAILED) {
|
|
35407
|
-
|
|
35408
|
-
|
|
35410
|
+
s2 = input.charAt(peg$currPos);
|
|
35411
|
+
if (peg$r3.test(s2)) {
|
|
35409
35412
|
peg$currPos++;
|
|
35410
35413
|
}
|
|
35411
35414
|
else {
|
|
@@ -35427,8 +35430,8 @@ function peg$parse(input, options) {
|
|
|
35427
35430
|
var s0, s1, s2, s3, s4;
|
|
35428
35431
|
s0 = peg$currPos;
|
|
35429
35432
|
s1 = peg$currPos;
|
|
35430
|
-
|
|
35431
|
-
|
|
35433
|
+
s2 = input.charAt(peg$currPos);
|
|
35434
|
+
if (peg$r4.test(s2)) {
|
|
35432
35435
|
peg$currPos++;
|
|
35433
35436
|
}
|
|
35434
35437
|
else {
|
|
@@ -35439,8 +35442,8 @@ function peg$parse(input, options) {
|
|
|
35439
35442
|
}
|
|
35440
35443
|
if (s2 !== peg$FAILED) {
|
|
35441
35444
|
s3 = [];
|
|
35442
|
-
|
|
35443
|
-
|
|
35445
|
+
s4 = input.charAt(peg$currPos);
|
|
35446
|
+
if (peg$r5.test(s4)) {
|
|
35444
35447
|
peg$currPos++;
|
|
35445
35448
|
}
|
|
35446
35449
|
else {
|
|
@@ -35452,8 +35455,8 @@ function peg$parse(input, options) {
|
|
|
35452
35455
|
if (s4 !== peg$FAILED) {
|
|
35453
35456
|
while (s4 !== peg$FAILED) {
|
|
35454
35457
|
s3.push(s4);
|
|
35455
|
-
|
|
35456
|
-
|
|
35458
|
+
s4 = input.charAt(peg$currPos);
|
|
35459
|
+
if (peg$r5.test(s4)) {
|
|
35457
35460
|
peg$currPos++;
|
|
35458
35461
|
}
|
|
35459
35462
|
else {
|
|
@@ -35493,8 +35496,8 @@ function peg$parse(input, options) {
|
|
|
35493
35496
|
peg$silentFails++;
|
|
35494
35497
|
s0 = peg$currPos;
|
|
35495
35498
|
s1 = peg$currPos;
|
|
35496
|
-
|
|
35497
|
-
|
|
35499
|
+
s2 = input.charAt(peg$currPos);
|
|
35500
|
+
if (peg$r6.test(s2)) {
|
|
35498
35501
|
peg$currPos++;
|
|
35499
35502
|
}
|
|
35500
35503
|
else {
|
|
@@ -35505,8 +35508,8 @@ function peg$parse(input, options) {
|
|
|
35505
35508
|
}
|
|
35506
35509
|
if (s2 !== peg$FAILED) {
|
|
35507
35510
|
s3 = [];
|
|
35508
|
-
|
|
35509
|
-
|
|
35511
|
+
s4 = input.charAt(peg$currPos);
|
|
35512
|
+
if (peg$r5.test(s4)) {
|
|
35510
35513
|
peg$currPos++;
|
|
35511
35514
|
}
|
|
35512
35515
|
else {
|
|
@@ -35517,8 +35520,8 @@ function peg$parse(input, options) {
|
|
|
35517
35520
|
}
|
|
35518
35521
|
while (s4 !== peg$FAILED) {
|
|
35519
35522
|
s3.push(s4);
|
|
35520
|
-
|
|
35521
|
-
|
|
35523
|
+
s4 = input.charAt(peg$currPos);
|
|
35524
|
+
if (peg$r5.test(s4)) {
|
|
35522
35525
|
peg$currPos++;
|
|
35523
35526
|
}
|
|
35524
35527
|
else {
|
|
@@ -35553,8 +35556,8 @@ function peg$parse(input, options) {
|
|
|
35553
35556
|
function peg$parse_() {
|
|
35554
35557
|
var s0, s1;
|
|
35555
35558
|
peg$silentFails++;
|
|
35556
|
-
|
|
35557
|
-
|
|
35559
|
+
s0 = input.charAt(peg$currPos);
|
|
35560
|
+
if (peg$r7.test(s0)) {
|
|
35558
35561
|
peg$currPos++;
|
|
35559
35562
|
}
|
|
35560
35563
|
else {
|
|
@@ -35573,6 +35576,15 @@ function peg$parse(input, options) {
|
|
|
35573
35576
|
return s0;
|
|
35574
35577
|
}
|
|
35575
35578
|
peg$result = peg$startRuleFunction();
|
|
35579
|
+
if (options.peg$library) {
|
|
35580
|
+
return /** @type {any} */ ({
|
|
35581
|
+
peg$result,
|
|
35582
|
+
peg$currPos,
|
|
35583
|
+
peg$FAILED,
|
|
35584
|
+
peg$maxFailExpected,
|
|
35585
|
+
peg$maxFailPos
|
|
35586
|
+
});
|
|
35587
|
+
}
|
|
35576
35588
|
if (peg$result !== peg$FAILED && peg$currPos === input.length) {
|
|
35577
35589
|
return peg$result;
|
|
35578
35590
|
}
|
|
@@ -35586,6 +35598,7 @@ function peg$parse(input, options) {
|
|
|
35586
35598
|
}
|
|
35587
35599
|
}
|
|
35588
35600
|
module.exports = {
|
|
35601
|
+
StartRules: ["Expr"],
|
|
35589
35602
|
SyntaxError: peg$SyntaxError,
|
|
35590
35603
|
parse: peg$parse
|
|
35591
35604
|
};
|