@nmshd/runtime 7.0.0-alpha.26 → 7.0.0-alpha.27

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.
Files changed (34) hide show
  1. package/dist/buildInformation.js +4 -4
  2. package/dist/events/EventProxy.d.ts.map +1 -1
  3. package/dist/events/EventProxy.js +3 -0
  4. package/dist/events/EventProxy.js.map +1 -1
  5. package/dist/events/transport/RelationshipTemplateAllocationsExhaustedEvent.d.ts +7 -0
  6. package/dist/events/transport/RelationshipTemplateAllocationsExhaustedEvent.d.ts.map +1 -0
  7. package/dist/events/transport/RelationshipTemplateAllocationsExhaustedEvent.js +12 -0
  8. package/dist/events/transport/RelationshipTemplateAllocationsExhaustedEvent.js.map +1 -0
  9. package/dist/events/transport/index.d.ts +1 -0
  10. package/dist/events/transport/index.d.ts.map +1 -1
  11. package/dist/events/transport/index.js +1 -0
  12. package/dist/events/transport/index.js.map +1 -1
  13. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +4 -2
  14. package/dist/extensibility/facades/consumption/AttributesFacade.d.ts.map +1 -1
  15. package/dist/extensibility/facades/consumption/AttributesFacade.js +8 -2
  16. package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
  17. package/dist/modules/RequestModule.d.ts.map +1 -1
  18. package/dist/modules/RequestModule.js +5 -0
  19. package/dist/modules/RequestModule.js.map +1 -1
  20. package/dist/useCases/common/Schemas.d.ts +1 -0
  21. package/dist/useCases/common/Schemas.d.ts.map +1 -1
  22. package/dist/useCases/common/Schemas.js +96 -4
  23. package/dist/useCases/common/Schemas.js.map +1 -1
  24. package/dist/useCases/consumption/attributes/SetAttributeDeletionInfoOfDeletionProposedRelationship.d.ts +18 -0
  25. package/dist/useCases/consumption/attributes/SetAttributeDeletionInfoOfDeletionProposedRelationship.d.ts.map +1 -0
  26. package/dist/useCases/consumption/attributes/SetAttributeDeletionInfoOfDeletionProposedRelationship.js +52 -0
  27. package/dist/useCases/consumption/attributes/SetAttributeDeletionInfoOfDeletionProposedRelationship.js.map +1 -0
  28. package/dist/useCases/consumption/attributes/index.d.ts +1 -0
  29. package/dist/useCases/consumption/attributes/index.d.ts.map +1 -1
  30. package/dist/useCases/consumption/attributes/index.js +1 -0
  31. package/dist/useCases/consumption/attributes/index.js.map +1 -1
  32. package/dist/useCases/transport/devices/SetCommunicationLanguage.d.ts +1 -1
  33. package/dist/useCases/transport/devices/SetCommunicationLanguage.d.ts.map +1 -1
  34. package/package.json +5 -5
@@ -0,0 +1,18 @@
1
+ import { Result } from "@js-soft/ts-utils";
2
+ import { AttributesController } from "@nmshd/consumption";
3
+ import { AccountController } from "@nmshd/transport";
4
+ import { RelationshipIdString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
+ export interface SetAttributeDeletionInfoOfDeletionProposedRelationshipRequest {
6
+ relationshipId: RelationshipIdString;
7
+ }
8
+ declare class Validator extends SchemaValidator<SetAttributeDeletionInfoOfDeletionProposedRelationshipRequest> {
9
+ constructor(schemaRepository: SchemaRepository);
10
+ }
11
+ export declare class SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase extends UseCase<SetAttributeDeletionInfoOfDeletionProposedRelationshipRequest, void> {
12
+ private readonly attributeController;
13
+ private readonly accountController;
14
+ constructor(attributeController: AttributesController, accountController: AccountController, validator: Validator);
15
+ protected executeInternal(request: SetAttributeDeletionInfoOfDeletionProposedRelationshipRequest): Promise<Result<void>>;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=SetAttributeDeletionInfoOfDeletionProposedRelationship.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetAttributeDeletionInfoOfDeletionProposedRelationship.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/SetAttributeDeletionInfoOfDeletionProposedRelationship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEhG,MAAM,WAAW,6DAA6D;IAC1E,cAAc,EAAE,oBAAoB,CAAC;CACxC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,6DAA6D,CAAC;gBACvE,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,6DAA8D,SAAQ,OAAO,CAAC,6DAA6D,EAAE,IAAI,CAAC;IAE/I,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBADjB,mBAAmB,EAAE,oBAAoB,EACzC,iBAAiB,EAAE,iBAAiB,EACrD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,6DAA6D,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;CAOjI"}
@@ -0,0 +1,52 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase = void 0;
16
+ const ts_utils_1 = require("@js-soft/ts-utils");
17
+ const consumption_1 = require("@nmshd/consumption");
18
+ const core_types_1 = require("@nmshd/core-types");
19
+ const transport_1 = require("@nmshd/transport");
20
+ const typescript_ioc_1 = require("@nmshd/typescript-ioc");
21
+ const common_1 = require("../../common");
22
+ let Validator = class Validator extends common_1.SchemaValidator {
23
+ constructor(schemaRepository) {
24
+ super(schemaRepository.getSchema("SetAttributeDeletionInfoOfDeletionProposedRelationshipRequest"));
25
+ }
26
+ };
27
+ Validator = __decorate([
28
+ __param(0, typescript_ioc_1.Inject),
29
+ __metadata("design:paramtypes", [common_1.SchemaRepository])
30
+ ], Validator);
31
+ let SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase = class SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase extends common_1.UseCase {
32
+ constructor(attributeController, accountController, validator) {
33
+ super(validator);
34
+ this.attributeController = attributeController;
35
+ this.accountController = accountController;
36
+ }
37
+ async executeInternal(request) {
38
+ await this.attributeController.setAttributeDeletionInfoOfDeletionProposedRelationship(core_types_1.CoreId.from(request.relationshipId));
39
+ await this.accountController.syncDatawallet();
40
+ return ts_utils_1.Result.ok(undefined);
41
+ }
42
+ };
43
+ exports.SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase = SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase;
44
+ exports.SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase = SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase = __decorate([
45
+ __param(0, typescript_ioc_1.Inject),
46
+ __param(1, typescript_ioc_1.Inject),
47
+ __param(2, typescript_ioc_1.Inject),
48
+ __metadata("design:paramtypes", [consumption_1.AttributesController,
49
+ transport_1.AccountController,
50
+ Validator])
51
+ ], SetAttributeDeletionInfoOfDeletionProposedRelationshipUseCase);
52
+ //# sourceMappingURL=SetAttributeDeletionInfoOfDeletionProposedRelationship.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetAttributeDeletionInfoOfDeletionProposedRelationship.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/SetAttributeDeletionInfoOfDeletionProposedRelationship.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0D;AAC1D,kDAA2C;AAC3C,gDAAqD;AACrD,0DAA+C;AAC/C,yCAAgG;AAMhG,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA8E;IAClG,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,+DAA+D,CAAC,CAAC,CAAC;IACvG,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,6DAA6D,GAA1E,MAAa,6DAA8D,SAAQ,gBAA4E;IAC3J,YAC6B,mBAAyC,EACzC,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAAsE;QAClG,MAAM,IAAI,CAAC,mBAAmB,CAAC,sDAAsD,CAAC,mBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;QAE3H,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAChC,CAAC;CACJ,CAAA;AAhBY,sIAA6D;wEAA7D,6DAA6D;IAEjE,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,kCAAoB;QACtB,6BAAiB;QAC1C,SAAS;GAJvB,6DAA6D,CAgBzE"}
@@ -22,6 +22,7 @@ export * from "./GetRepositoryAttributes";
22
22
  export * from "./GetSharedVersionsOfAttribute";
23
23
  export * from "./GetVersionsOfAttribute";
24
24
  export * from "./NotifyPeerAboutRepositoryAttributeSuccession";
25
+ export * from "./SetAttributeDeletionInfoOfDeletionProposedRelationship";
25
26
  export * from "./ShareRepositoryAttribute";
26
27
  export * from "./SucceedRelationshipAttributeAndNotifyPeer";
27
28
  export * from "./SucceedRepositoryAttribute";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0DAA0D,CAAC;AACzE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0DAA0D,CAAC;AACzE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0DAA0D,CAAC;AACzE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
@@ -38,6 +38,7 @@ __exportStar(require("./GetRepositoryAttributes"), exports);
38
38
  __exportStar(require("./GetSharedVersionsOfAttribute"), exports);
39
39
  __exportStar(require("./GetVersionsOfAttribute"), exports);
40
40
  __exportStar(require("./NotifyPeerAboutRepositoryAttributeSuccession"), exports);
41
+ __exportStar(require("./SetAttributeDeletionInfoOfDeletionProposedRelationship"), exports);
41
42
  __exportStar(require("./ShareRepositoryAttribute"), exports);
42
43
  __exportStar(require("./SucceedRelationshipAttributeAndNotifyPeer"), exports);
43
44
  __exportStar(require("./SucceedRepositoryAttribute"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iEAA+C;AAC/C,iEAA+C;AAC/C,qEAAmD;AACnD,wEAAsD;AACtD,8DAA4C;AAC5C,0EAAwD;AACxD,4EAA0D;AAC1D,8DAA4C;AAC5C,2FAAyE;AACzE,uFAAqE;AACrE,kEAAgD;AAChD,oDAAkC;AAClC,sEAAoD;AACpD,gFAA8D;AAC9D,iDAA+B;AAC/B,kDAAgC;AAChC,8DAA4C;AAC5C,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,iEAA+C;AAC/C,2DAAyC;AACzC,iFAA+D;AAC/D,6DAA2C;AAC3C,8EAA4D;AAC5D,+DAA6C;AAC7C,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iEAA+C;AAC/C,iEAA+C;AAC/C,qEAAmD;AACnD,wEAAsD;AACtD,8DAA4C;AAC5C,0EAAwD;AACxD,4EAA0D;AAC1D,8DAA4C;AAC5C,2FAAyE;AACzE,uFAAqE;AACrE,kEAAgD;AAChD,oDAAkC;AAClC,sEAAoD;AACpD,gFAA8D;AAC9D,iDAA+B;AAC/B,kDAAgC;AAChC,8DAA4C;AAC5C,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,iEAA+C;AAC/C,2DAAyC;AACzC,iFAA+D;AAC/D,2FAAyE;AACzE,6DAA2C;AAC3C,8EAA4D;AAC5D,+DAA6C;AAC7C,qDAAmC"}
@@ -1,5 +1,5 @@
1
1
  import { Result } from "@js-soft/ts-utils";
2
- import { LanguageISO639 } from "@nmshd/content";
2
+ import { LanguageISO639 } from "@nmshd/core-types";
3
3
  import { DeviceController } from "@nmshd/transport";
4
4
  import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
5
  export interface SetCommunicationLanguageRequest {
@@ -1 +1 @@
1
- {"version":3,"file":"SetCommunicationLanguage.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/SetCommunicationLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,WAAW,+BAA+B;IAC5C,qBAAqB,EAAE,cAAc,CAAC;CACzC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,+BAA+B,CAAC;gBACzC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,+BAAgC,SAAQ,OAAO,CAAC,+BAA+B,EAAE,IAAI,CAAC;IAEnF,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB,EACnD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;CAKnG"}
1
+ {"version":3,"file":"SetCommunicationLanguage.d.ts","sourceRoot":"","sources":["../../../../src/useCases/transport/devices/SetCommunicationLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,WAAW,+BAA+B;IAC5C,qBAAqB,EAAE,cAAc,CAAC;CACzC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,+BAA+B,CAAC;gBACzC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,+BAAgC,SAAQ,OAAO,CAAC,+BAA+B,EAAE,IAAI,CAAC;IAEnF,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB,EACnD,SAAS,EAAE,SAAS;cAKhB,eAAe,CAAC,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;CAKnG"}
package/package.json CHANGED
@@ -64,12 +64,12 @@
64
64
  "@js-soft/logging-abstractions": "^1.0.1",
65
65
  "@js-soft/ts-serval": "2.0.12",
66
66
  "@js-soft/ts-utils": "^2.3.3",
67
- "@nmshd/consumption": "7.0.0-alpha.26",
68
- "@nmshd/content": "7.0.0-alpha.26",
69
- "@nmshd/core-types": "7.0.0-alpha.26",
67
+ "@nmshd/consumption": "7.0.0-alpha.27",
68
+ "@nmshd/content": "7.0.0-alpha.27",
69
+ "@nmshd/core-types": "7.0.0-alpha.27",
70
70
  "@nmshd/crypto": "2.1.1",
71
71
  "@nmshd/iql": "^1.0.3",
72
- "@nmshd/transport": "7.0.0-alpha.26",
72
+ "@nmshd/transport": "7.0.0-alpha.27",
73
73
  "@nmshd/typescript-ioc": "3.2.4",
74
74
  "ajv": "^8.17.1",
75
75
  "ajv-errors": "^3.0.0",
@@ -94,5 +94,5 @@
94
94
  "access": "public",
95
95
  "provenance": true
96
96
  },
97
- "version": "7.0.0-alpha.26"
97
+ "version": "7.0.0-alpha.27"
98
98
  }