@nmshd/runtime 2.0.0-beta.3 → 2.0.0-beta.6

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 (106) hide show
  1. package/dist/Runtime.d.ts +6 -4
  2. package/dist/Runtime.js +18 -8
  3. package/dist/Runtime.js.map +1 -1
  4. package/dist/buildInformation.js +5 -5
  5. package/dist/dataViews/DataViewExpander.js +3 -0
  6. package/dist/dataViews/DataViewExpander.js.map +1 -1
  7. package/dist/events/EventProxy.d.ts +12 -0
  8. package/dist/events/EventProxy.js +112 -0
  9. package/dist/events/EventProxy.js.map +1 -0
  10. package/dist/events/consumption/index.d.ts +12 -0
  11. package/dist/events/consumption/index.js +29 -0
  12. package/dist/events/consumption/index.js.map +1 -0
  13. package/dist/events/index.d.ts +3 -23
  14. package/dist/events/index.js +3 -23
  15. package/dist/events/index.js.map +1 -1
  16. package/dist/events/runtime/index.d.ts +5 -0
  17. package/dist/events/runtime/index.js +22 -0
  18. package/dist/events/runtime/index.js.map +1 -0
  19. package/dist/events/transport/MessageDeliveredEvent.d.ts +6 -0
  20. package/dist/events/transport/MessageDeliveredEvent.js +13 -0
  21. package/dist/events/transport/MessageDeliveredEvent.js.map +1 -0
  22. package/dist/events/transport/index.d.ts +5 -0
  23. package/dist/events/transport/index.js +22 -0
  24. package/dist/events/transport/index.js.map +1 -0
  25. package/dist/modules/RequestModule.js +41 -16
  26. package/dist/modules/RequestModule.js.map +1 -1
  27. package/dist/types/consumption/SettingDTO.d.ts +0 -1
  28. package/dist/useCases/consumption/attributes/CreateAttribute.d.ts +3 -5
  29. package/dist/useCases/consumption/attributes/CreateAttribute.js +2 -11
  30. package/dist/useCases/consumption/attributes/CreateAttribute.js.map +1 -1
  31. package/dist/useCases/consumption/attributes/CreateSharedAttributeCopy.d.ts +3 -5
  32. package/dist/useCases/consumption/attributes/CreateSharedAttributeCopy.js +2 -11
  33. package/dist/useCases/consumption/attributes/CreateSharedAttributeCopy.js.map +1 -1
  34. package/dist/useCases/consumption/attributes/DeleteAttribute.d.ts +3 -5
  35. package/dist/useCases/consumption/attributes/DeleteAttribute.js +1 -10
  36. package/dist/useCases/consumption/attributes/DeleteAttribute.js.map +1 -1
  37. package/dist/useCases/consumption/attributes/SucceedAttribute.d.ts +3 -5
  38. package/dist/useCases/consumption/attributes/SucceedAttribute.js +2 -11
  39. package/dist/useCases/consumption/attributes/SucceedAttribute.js.map +1 -1
  40. package/dist/useCases/consumption/attributes/UpdateAttribute.d.ts +3 -5
  41. package/dist/useCases/consumption/attributes/UpdateAttribute.js +2 -11
  42. package/dist/useCases/consumption/attributes/UpdateAttribute.js.map +1 -1
  43. package/dist/useCases/consumption/requests/AcceptIncomingRequest.d.ts +2 -3
  44. package/dist/useCases/consumption/requests/AcceptIncomingRequest.js +3 -13
  45. package/dist/useCases/consumption/requests/AcceptIncomingRequest.js.map +1 -1
  46. package/dist/useCases/consumption/requests/CheckPrerequisitesOfIncomingRequest.d.ts +2 -3
  47. package/dist/useCases/consumption/requests/CheckPrerequisitesOfIncomingRequest.js +3 -14
  48. package/dist/useCases/consumption/requests/CheckPrerequisitesOfIncomingRequest.js.map +1 -1
  49. package/dist/useCases/consumption/requests/CompleteIncomingRequest.d.ts +2 -3
  50. package/dist/useCases/consumption/requests/CompleteIncomingRequest.js +2 -12
  51. package/dist/useCases/consumption/requests/CompleteIncomingRequest.js.map +1 -1
  52. package/dist/useCases/consumption/requests/CompleteOutgoingRequest.d.ts +2 -3
  53. package/dist/useCases/consumption/requests/CompleteOutgoingRequest.js +3 -13
  54. package/dist/useCases/consumption/requests/CompleteOutgoingRequest.js.map +1 -1
  55. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.d.ts +2 -3
  56. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js +3 -9
  57. package/dist/useCases/consumption/requests/CreateAndCompleteOutgoingRequestFromRelationshipCreationChange.js.map +1 -1
  58. package/dist/useCases/consumption/requests/CreateOutgoingRequest.d.ts +2 -3
  59. package/dist/useCases/consumption/requests/CreateOutgoingRequest.js +3 -8
  60. package/dist/useCases/consumption/requests/CreateOutgoingRequest.js.map +1 -1
  61. package/dist/useCases/consumption/requests/ReceivedIncomingRequest.d.ts +2 -3
  62. package/dist/useCases/consumption/requests/ReceivedIncomingRequest.js +3 -9
  63. package/dist/useCases/consumption/requests/ReceivedIncomingRequest.js.map +1 -1
  64. package/dist/useCases/consumption/requests/RejectIncomingRequest.d.ts +2 -3
  65. package/dist/useCases/consumption/requests/RejectIncomingRequest.js +3 -13
  66. package/dist/useCases/consumption/requests/RejectIncomingRequest.js.map +1 -1
  67. package/dist/useCases/consumption/requests/RequireManualDecisionOfIncomingRequest.d.ts +2 -3
  68. package/dist/useCases/consumption/requests/RequireManualDecisionOfIncomingRequest.js +3 -12
  69. package/dist/useCases/consumption/requests/RequireManualDecisionOfIncomingRequest.js.map +1 -1
  70. package/dist/useCases/consumption/requests/SentOutgoingRequest.d.ts +2 -3
  71. package/dist/useCases/consumption/requests/SentOutgoingRequest.js +3 -14
  72. package/dist/useCases/consumption/requests/SentOutgoingRequest.js.map +1 -1
  73. package/dist/useCases/consumption/settings/SettingMapper.js +0 -1
  74. package/dist/useCases/consumption/settings/SettingMapper.js.map +1 -1
  75. package/dist/useCases/transport/account/SyncEverything.d.ts +3 -7
  76. package/dist/useCases/transport/account/SyncEverything.js +2 -33
  77. package/dist/useCases/transport/account/SyncEverything.js.map +1 -1
  78. package/dist/useCases/transport/messages/SendMessage.d.ts +3 -5
  79. package/dist/useCases/transport/messages/SendMessage.js +1 -10
  80. package/dist/useCases/transport/messages/SendMessage.js.map +1 -1
  81. package/dist/useCases/transport/relationshipTemplates/LoadPeerRelationshipTemplate.d.ts +2 -3
  82. package/dist/useCases/transport/relationshipTemplates/LoadPeerRelationshipTemplate.js +1 -9
  83. package/dist/useCases/transport/relationshipTemplates/LoadPeerRelationshipTemplate.js.map +1 -1
  84. package/dist/useCases/transport/relationships/AcceptRelationshipChange.d.ts +3 -5
  85. package/dist/useCases/transport/relationships/AcceptRelationshipChange.js +2 -11
  86. package/dist/useCases/transport/relationships/AcceptRelationshipChange.js.map +1 -1
  87. package/dist/useCases/transport/relationships/CreateRelationship.d.ts +3 -5
  88. package/dist/useCases/transport/relationships/CreateRelationship.js +2 -11
  89. package/dist/useCases/transport/relationships/CreateRelationship.js.map +1 -1
  90. package/dist/useCases/transport/relationships/RejectRelationshipChange.d.ts +3 -5
  91. package/dist/useCases/transport/relationships/RejectRelationshipChange.js +2 -11
  92. package/dist/useCases/transport/relationships/RejectRelationshipChange.js.map +1 -1
  93. package/dist/useCases/transport/relationships/RevokeRelationshipChange.d.ts +3 -5
  94. package/dist/useCases/transport/relationships/RevokeRelationshipChange.js +2 -11
  95. package/dist/useCases/transport/relationships/RevokeRelationshipChange.js.map +1 -1
  96. package/lib-web/nmshd.runtime.js +394 -364
  97. package/lib-web/nmshd.runtime.js.map +1 -1
  98. package/lib-web/nmshd.runtime.min.js +3 -3
  99. package/lib-web/nmshd.runtime.min.js.map +1 -1
  100. package/package.json +4 -4
  101. package/dist/events/transport/TransportLibraryInitializedEvent.d.ts +0 -5
  102. package/dist/events/transport/TransportLibraryInitializedEvent.js +0 -12
  103. package/dist/events/transport/TransportLibraryInitializedEvent.js.map +0 -1
  104. package/dist/events/transport/TransportLibraryInitializingEvent.d.ts +0 -5
  105. package/dist/events/transport/TransportLibraryInitializingEvent.js +0 -12
  106. package/dist/events/transport/TransportLibraryInitializingEvent.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessageDeliveredEvent = void 0;
4
+ const DataEvent_1 = require("../DataEvent");
5
+ // This event is currently not triggered because it is disabled in the backbone. (JSSNMSHDD-2372)
6
+ class MessageDeliveredEvent extends DataEvent_1.DataEvent {
7
+ constructor(eventTargetAddress, data) {
8
+ super(MessageDeliveredEvent.namespace, eventTargetAddress, data);
9
+ }
10
+ }
11
+ exports.MessageDeliveredEvent = MessageDeliveredEvent;
12
+ MessageDeliveredEvent.namespace = "transport.messageDelivered";
13
+ //# sourceMappingURL=MessageDeliveredEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageDeliveredEvent.js","sourceRoot":"","sources":["../../../src/events/transport/MessageDeliveredEvent.ts"],"names":[],"mappings":";;;AACA,4CAAyC;AAEzC,iGAAiG;AACjG,MAAa,qBAAsB,SAAQ,qBAAqB;IAG5D,YAAmB,kBAA0B,EAAE,IAAgB;QAC3D,KAAK,CAAC,qBAAqB,CAAC,SAAS,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AALL,sDAMC;AAL0B,+BAAS,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./MessageDeliveredEvent";
2
+ export * from "./MessageReceivedEvent";
3
+ export * from "./MessageSentEvent";
4
+ export * from "./PeerRelationshipTemplateLoadedEvent";
5
+ export * from "./RelationshipChangedEvent";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./MessageDeliveredEvent"), exports);
18
+ __exportStar(require("./MessageReceivedEvent"), exports);
19
+ __exportStar(require("./MessageSentEvent"), exports);
20
+ __exportStar(require("./PeerRelationshipTemplateLoadedEvent"), exports);
21
+ __exportStar(require("./RelationshipChangedEvent"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/events/transport/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,yDAAuC;AACvC,qDAAmC;AACnC,wEAAsD;AACtD,6DAA2C"}
@@ -18,25 +18,48 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
18
18
  this.subscribeToEvent(events_1.RelationshipChangedEvent, this.handleRelationshipChangedEvent.bind(this));
19
19
  }
20
20
  async handlePeerRelationshipTemplateLoaded(event) {
21
- if (event.data.content["@type"] !== "RelationshipTemplateBody")
21
+ const template = event.data;
22
+ if (template.content["@type"] !== "RelationshipTemplateBody")
22
23
  return;
23
- const body = event.data.content;
24
+ const body = template.content;
24
25
  const request = body.onNewRelationship;
25
26
  const services = this.runtime.getServices(event.eventTargetAddress);
26
- await this.createIncomingRequest(services, request, event.data.id);
27
+ const requestResult = await services.consumptionServices.incomingRequests.getRequests({ query: { "source.reference": template.id } });
28
+ if (requestResult.isError) {
29
+ this.logger.error(`Could not get requests for template '${template.id}'. Root error:`, requestResult.error);
30
+ return;
31
+ }
32
+ if (requestResult.value.some((r) => r.status !== consumption_1.LocalRequestStatus.Completed)) {
33
+ // TODO: JSSNMSHDD-3111 (inform caller of `loadPeerRelationshipTemplate` about the Request)
34
+ this.logger.warn(`There is already an open Request for the RelationshipTemplate '${template.id}'. Skipping creation of a new request.`);
35
+ return;
36
+ }
37
+ const getRelationshipsResult = await services.transportServices.relationships.getRelationships({ query: { peer: template.createdBy } });
38
+ if (getRelationshipsResult.isError) {
39
+ this.logger.error(`Could not get relationships for template '${template.id}'. Root error:`, getRelationshipsResult.error);
40
+ return;
41
+ }
42
+ if (getRelationshipsResult.isSuccess && getRelationshipsResult.value.some((r) => r.status === types_1.RelationshipStatus.Pending || r.status === types_1.RelationshipStatus.Active)) {
43
+ // TODO: use body.onExistingRelationship if exists
44
+ // TODO: JSSNMSHDD-3111 (inform caller of `loadPeerRelationshipTemplate` about the Relationship if body.onExistingRelationship not exists)
45
+ this.logger.warn(`There is already an open or pending Relationship for the RelationshipTemplate '${template.id}'. Skipping creation of a new request.`);
46
+ return;
47
+ }
48
+ await this.createIncomingRequest(services, request, template.id);
27
49
  }
28
50
  async handleMessageReceivedEvent(event) {
29
51
  const services = this.runtime.getServices(event.eventTargetAddress);
30
- const messageContentType = event.data.content["@type"];
52
+ const message = event.data;
53
+ const messageContentType = message.content["@type"];
31
54
  switch (messageContentType) {
32
55
  case "Request":
33
- await this.createIncomingRequest(services, event.data.content, event.data.id);
56
+ await this.createIncomingRequest(services, message.content, message.id);
34
57
  break;
35
58
  case "Response":
36
- const receivedResponse = event.data.content;
37
- const result = await services.consumptionServices.outgoingRequests.complete({ receivedResponse, messageId: event.data.id });
59
+ const receivedResponse = message.content;
60
+ const result = await services.consumptionServices.outgoingRequests.complete({ receivedResponse, messageId: message.id });
38
61
  if (result.isError) {
39
- this.logger.error(`Could not complete outgoing request for message id ${event.data.id} due to ${result.error}. Root error:`, result.error);
62
+ this.logger.error(`Could not complete outgoing request for message id ${message.id} due to ${result.error}. Root error:`, result.error);
40
63
  }
41
64
  break;
42
65
  }
@@ -68,7 +91,8 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
68
91
  async handleIncomingRequestStatusChanged(event) {
69
92
  if (event.data.newStatus !== consumption_1.LocalRequestStatus.Decided)
70
93
  return;
71
- switch (event.data.request.source.type) {
94
+ const request = event.data.request;
95
+ switch (request.source.type) {
72
96
  case "RelationshipTemplate":
73
97
  await this.handleIncomingRequestDecidedForRelationship(event);
74
98
  break;
@@ -76,12 +100,13 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
76
100
  await this.handleIncomingRequestDecidedForMessage(event);
77
101
  break;
78
102
  default:
79
- throw new Error(`Cannot handle source.type '${event.data.request.source.type}'.`);
103
+ throw new Error(`Cannot handle source.type '${request.source.type}'.`);
80
104
  }
81
105
  }
82
106
  async handleIncomingRequestDecidedForRelationship(event) {
83
- const templateId = event.data.request.source.reference;
84
- if (event.data.request.response.content.result !== "Accepted") {
107
+ const request = event.data.request;
108
+ const templateId = request.source.reference;
109
+ if (request.response.content.result !== "Accepted") {
85
110
  // TODO: correctly handle rejection (=> delete / new status)
86
111
  // ignore rejection for now
87
112
  return;
@@ -96,7 +121,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
96
121
  const template = templateResult.value;
97
122
  const creationChangeBody = content_1.RelationshipCreationChangeRequestBody.from({
98
123
  "@type": "RelationshipCreationChangeRequestBody",
99
- response: event.data.request.response.content,
124
+ response: request.response.content,
100
125
  templateContentMetadata: template.content.metadata
101
126
  });
102
127
  const createRelationshipResult = await services.transportServices.relationships.createRelationship({ templateId, content: creationChangeBody });
@@ -105,7 +130,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
105
130
  // TODO: error state
106
131
  return;
107
132
  }
108
- const requestId = event.data.request.id;
133
+ const requestId = request.id;
109
134
  const completeRequestResult = await services.consumptionServices.incomingRequests.complete({
110
135
  requestId,
111
136
  responseSourceId: createRelationshipResult.value.changes[0].id
@@ -139,10 +164,10 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
139
164
  }
140
165
  async handleRelationshipChangedEvent(event) {
141
166
  // only trigger for new relationships that were created from an own template
142
- if (event.data.status !== types_1.RelationshipStatus.Pending || !event.data.template.isOwn)
167
+ const createdRelationship = event.data;
168
+ if (createdRelationship.status !== types_1.RelationshipStatus.Pending || !createdRelationship.template.isOwn)
143
169
  return;
144
170
  const services = this.runtime.getServices(event.eventTargetAddress);
145
- const createdRelationship = event.data;
146
171
  const template = createdRelationship.template;
147
172
  const templateId = template.id;
148
173
  // do not trigger for templates without the correct content type
@@ -1 +1 @@
1
- {"version":3,"file":"RequestModule.js","sourceRoot":"","sources":["../../src/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AW,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAEpE,MAAM,QAAQ,GAAG,mBAAmB,CAAC,QAAQ,CAAC;QAC9C,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC;QAC/B,gEAAgE;QAChE,IAAI,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,0BAA0B;YAAE,OAAO;QAErE,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAClE,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,EAAE,CAAC;QAC3D,uEAAuE;QACvE,IAAI,0BAA0B,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,uCAAuC;YAAE,OAAO;QAE5G,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,+CAA+C,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC,CAAC;QACzJ,IAAI,MAAM,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,yDAAyD,UAAU,mBAAmB,oBAAoB,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5J,OAAO;SACV;IACL,CAAC;IAEM,IAAI;QACP,IAAI,CAAC,wBAAwB,EAAE,CAAC;IACpC,CAAC;CACJ;AAnND,sCAmNC"}
@@ -5,7 +5,6 @@ export interface SettingDTO {
5
5
  reference?: string;
6
6
  value: any;
7
7
  createdAt: string;
8
- deletedAt?: string;
9
8
  succeedsItem?: string;
10
9
  succeedsAt?: string;
11
10
  }
@@ -1,6 +1,6 @@
1
- import { EventBus, Result } from "@js-soft/ts-utils";
1
+ import { Result } from "@js-soft/ts-utils";
2
2
  import { LocalAttributesController } from "@nmshd/consumption";
3
- import { AccountController, IdentityController } from "@nmshd/transport";
3
+ import { AccountController } from "@nmshd/transport";
4
4
  import { LocalAttributeDTO } from "../../../types";
5
5
  import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
6
6
  import { ExtendedIdentityAttributeJSON, ExtendedRelationshipAttributeJSON } from "./ExtendedAttributeValue";
@@ -13,9 +13,7 @@ declare class Validator extends SchemaValidator<CreateAttributeRequest> {
13
13
  export declare class CreateAttributeUseCase extends UseCase<CreateAttributeRequest, LocalAttributeDTO> {
14
14
  private readonly attributeController;
15
15
  private readonly accountController;
16
- private readonly identityController;
17
- private readonly eventBus;
18
- constructor(attributeController: LocalAttributesController, accountController: AccountController, identityController: IdentityController, eventBus: EventBus, validator: Validator);
16
+ constructor(attributeController: LocalAttributesController, accountController: AccountController, validator: Validator);
19
17
  protected executeInternal(request: CreateAttributeRequest): Promise<Result<LocalAttributeDTO>>;
20
18
  }
21
19
  export {};
@@ -17,7 +17,6 @@ const ts_utils_1 = require("@js-soft/ts-utils");
17
17
  const consumption_1 = require("@nmshd/consumption");
18
18
  const transport_1 = require("@nmshd/transport");
19
19
  const typescript_ioc_1 = require("typescript-ioc");
20
- const events_1 = require("../../../events");
21
20
  const common_1 = require("../../common");
22
21
  const AttributeMapper_1 = require("./AttributeMapper");
23
22
  let Validator = class Validator extends common_1.SchemaValidator {
@@ -30,12 +29,10 @@ Validator = __decorate([
30
29
  __metadata("design:paramtypes", [common_1.SchemaRepository])
31
30
  ], Validator);
32
31
  let CreateAttributeUseCase = class CreateAttributeUseCase extends common_1.UseCase {
33
- constructor(attributeController, accountController, identityController, eventBus, validator) {
32
+ constructor(attributeController, accountController, validator) {
34
33
  super(validator);
35
34
  this.attributeController = attributeController;
36
35
  this.accountController = accountController;
37
- this.identityController = identityController;
38
- this.eventBus = eventBus;
39
36
  }
40
37
  async executeInternal(request) {
41
38
  const params = consumption_1.CreateLocalAttributeParams.from({
@@ -43,21 +40,15 @@ let CreateAttributeUseCase = class CreateAttributeUseCase extends common_1.UseCa
43
40
  });
44
41
  const createdAttribute = await this.attributeController.createLocalAttribute(params);
45
42
  await this.accountController.syncDatawallet();
46
- const attributeDTO = AttributeMapper_1.AttributeMapper.toAttributeDTO(createdAttribute);
47
- this.eventBus.publish(new events_1.AttributeCreatedEvent(this.identityController.identity.address.toString(), attributeDTO));
48
- return ts_utils_1.Result.ok(attributeDTO);
43
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(createdAttribute));
49
44
  }
50
45
  };
51
46
  CreateAttributeUseCase = __decorate([
52
47
  __param(0, typescript_ioc_1.Inject),
53
48
  __param(1, typescript_ioc_1.Inject),
54
49
  __param(2, typescript_ioc_1.Inject),
55
- __param(3, typescript_ioc_1.Inject),
56
- __param(4, typescript_ioc_1.Inject),
57
50
  __metadata("design:paramtypes", [consumption_1.LocalAttributesController,
58
51
  transport_1.AccountController,
59
- transport_1.IdentityController,
60
- ts_utils_1.EventBus,
61
52
  Validator])
62
53
  ], CreateAttributeUseCase);
63
54
  exports.CreateAttributeUseCase = CreateAttributeUseCase;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/CreateAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAqD;AACrD,oDAA2F;AAC3F,gDAAyE;AACzE,mDAAwC;AACxC,4CAAwD;AAExD,yCAA0E;AAC1E,uDAAoD;AAOpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAuC;IAC3D,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,gBAAkD;IAC1F,YAC6B,mBAA8C,EAC9C,iBAAoC,EAEpC,kBAAsC,EACtC,QAAkB,EAEnC,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QARQ,wBAAmB,GAAnB,mBAAmB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,wBAAuC;IAC3D,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,gBAAkD;IAC1F,YAC6B,mBAA8C,EAC9C,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,wBAAmB,GAAnB,mBAAmB,CAA2B;QAC9C,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA+B;QAC3D,MAAM,MAAM,GAAG,wCAA0B,CAAC,IAAI,CAAC;YAC3C,OAAO,EAAE,OAAO,CAAC,OAAO;SAC3B,CAAC,CAAC;QACH,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACrF,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACvE,CAAC;CACJ,CAAA;AAlBY,sBAAsB;IAE1B,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,uCAAyB;QAC3B,6BAAiB;QAC1C,SAAS;GAJvB,sBAAsB,CAkBlC;AAlBY,wDAAsB"}
@@ -1,6 +1,6 @@
1
- import { EventBus, Result } from "@js-soft/ts-utils";
1
+ import { Result } from "@js-soft/ts-utils";
2
2
  import { LocalAttributesController } from "@nmshd/consumption";
3
- import { AccountController, IdentityController } from "@nmshd/transport";
3
+ import { AccountController } from "@nmshd/transport";
4
4
  import { LocalAttributeDTO } from "../../../types";
5
5
  import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
6
6
  export interface CreateSharedAttributeCopyRequest {
@@ -23,9 +23,7 @@ declare class Validator extends SchemaValidator<CreateSharedAttributeCopyRequest
23
23
  export declare class CreateSharedAttributeCopyUseCase extends UseCase<CreateSharedAttributeCopyRequest, LocalAttributeDTO> {
24
24
  private readonly attributeController;
25
25
  private readonly accountController;
26
- private readonly identityController;
27
- private readonly eventBus;
28
- constructor(attributeController: LocalAttributesController, accountController: AccountController, identityController: IdentityController, eventBus: EventBus, validator: Validator);
26
+ constructor(attributeController: LocalAttributesController, accountController: AccountController, validator: Validator);
29
27
  protected executeInternal(request: CreateSharedAttributeCopyRequest): Promise<Result<LocalAttributeDTO>>;
30
28
  }
31
29
  export {};
@@ -17,7 +17,6 @@ const ts_utils_1 = require("@js-soft/ts-utils");
17
17
  const consumption_1 = require("@nmshd/consumption");
18
18
  const transport_1 = require("@nmshd/transport");
19
19
  const typescript_ioc_1 = require("typescript-ioc");
20
- const events_1 = require("../../../events");
21
20
  const common_1 = require("../../common");
22
21
  const AttributeMapper_1 = require("./AttributeMapper");
23
22
  let Validator = class Validator extends common_1.SchemaValidator {
@@ -30,12 +29,10 @@ Validator = __decorate([
30
29
  __metadata("design:paramtypes", [common_1.SchemaRepository])
31
30
  ], Validator);
32
31
  let CreateSharedAttributeCopyUseCase = class CreateSharedAttributeCopyUseCase extends common_1.UseCase {
33
- constructor(attributeController, accountController, identityController, eventBus, validator) {
32
+ constructor(attributeController, accountController, validator) {
34
33
  super(validator);
35
34
  this.attributeController = attributeController;
36
35
  this.accountController = accountController;
37
- this.identityController = identityController;
38
- this.eventBus = eventBus;
39
36
  }
40
37
  async executeInternal(request) {
41
38
  const params = consumption_1.CreateSharedLocalAttributeCopyParams.from({
@@ -45,21 +42,15 @@ let CreateSharedAttributeCopyUseCase = class CreateSharedAttributeCopyUseCase ex
45
42
  });
46
43
  const successor = await this.attributeController.createSharedLocalAttributeCopy(params);
47
44
  await this.accountController.syncDatawallet();
48
- const attributeDTO = AttributeMapper_1.AttributeMapper.toAttributeDTO(successor);
49
- this.eventBus.publish(new events_1.SharedAttributeCopyCreatedEvent(this.identityController.identity.address.toString(), attributeDTO));
50
- return ts_utils_1.Result.ok(attributeDTO);
45
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(successor));
51
46
  }
52
47
  };
53
48
  CreateSharedAttributeCopyUseCase = __decorate([
54
49
  __param(0, typescript_ioc_1.Inject),
55
50
  __param(1, typescript_ioc_1.Inject),
56
51
  __param(2, typescript_ioc_1.Inject),
57
- __param(3, typescript_ioc_1.Inject),
58
- __param(4, typescript_ioc_1.Inject),
59
52
  __metadata("design:paramtypes", [consumption_1.LocalAttributesController,
60
53
  transport_1.AccountController,
61
- transport_1.IdentityController,
62
- ts_utils_1.EventBus,
63
54
  Validator])
64
55
  ], CreateSharedAttributeCopyUseCase);
65
56
  exports.CreateSharedAttributeCopyUseCase = CreateSharedAttributeCopyUseCase;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateSharedAttributeCopy.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/CreateSharedAttributeCopy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAqD;AACrD,oDAAqG;AACrG,gDAA8F;AAC9F,mDAAwC;AACxC,4CAAkE;AAElE,yCAA0E;AAC1E,uDAAoD;AAiBpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAiD;IACrE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC,CAAC;IAC1E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,gBAA4D;IAC9G,YAC6B,mBAA8C,EAC9C,iBAAoC,EAEpC,kBAAsC,EACtC,QAAkB,EAEnC,S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 {"version":3,"file":"CreateSharedAttributeCopy.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/CreateSharedAttributeCopy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAAqG;AACrG,gDAA0E;AAC1E,mDAAwC;AAExC,yCAA0E;AAC1E,uDAAoD;AAiBpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAiD;IACrE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC,CAAC;IAC1E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,gBAA4D;IAC9G,YAC6B,mBAA8C,EAC9C,iBAAoC,EACrD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,wBAAmB,GAAnB,mBAAmB,CAA2B;QAC9C,sBAAiB,GAAjB,iBAAiB,CAAmB;IAIjE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAAyC;QACrE,MAAM,MAAM,GAAG,kDAAoC,CAAC,IAAI,CAAC;YACrD,iBAAiB,EAAE,kBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;YACnD,IAAI,EAAE,uBAAW,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YACpC,gBAAgB,EAAE,kBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC;SAC1D,CAAC,CAAC;QACH,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;QACxF,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AApBY,gCAAgC;IAEpC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,uCAAyB;QAC3B,6BAAiB;QAC1C,SAAS;GAJvB,gCAAgC,CAoB5C;AApBY,4EAAgC"}
@@ -1,6 +1,6 @@
1
- import { EventBus, Result } from "@js-soft/ts-utils";
1
+ import { Result } from "@js-soft/ts-utils";
2
2
  import { LocalAttributesController } from "@nmshd/consumption";
3
- import { AccountController, IdentityController } from "@nmshd/transport";
3
+ import { AccountController } from "@nmshd/transport";
4
4
  import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
5
5
  export interface DeleteAttributeRequest {
6
6
  /**
@@ -14,9 +14,7 @@ declare class Validator extends SchemaValidator<DeleteAttributeRequest> {
14
14
  export declare class DeleteAttributeUseCase extends UseCase<DeleteAttributeRequest, void> {
15
15
  private readonly attributeController;
16
16
  private readonly accountController;
17
- private readonly identityController;
18
- private readonly eventBus;
19
- constructor(attributeController: LocalAttributesController, accountController: AccountController, identityController: IdentityController, eventBus: EventBus, validator: Validator);
17
+ constructor(attributeController: LocalAttributesController, accountController: AccountController, validator: Validator);
20
18
  protected executeInternal(request: DeleteAttributeRequest): Promise<Result<void>>;
21
19
  }
22
20
  export {};
@@ -17,9 +17,7 @@ const ts_utils_1 = require("@js-soft/ts-utils");
17
17
  const consumption_1 = require("@nmshd/consumption");
18
18
  const transport_1 = require("@nmshd/transport");
19
19
  const typescript_ioc_1 = require("typescript-ioc");
20
- const events_1 = require("../../../events");
21
20
  const common_1 = require("../../common");
22
- const AttributeMapper_1 = require("./AttributeMapper");
23
21
  let Validator = class Validator extends common_1.SchemaValidator {
24
22
  constructor(schemaRepository) {
25
23
  super(schemaRepository.getSchema("DeleteAttributeRequest"));
@@ -30,12 +28,10 @@ Validator = __decorate([
30
28
  __metadata("design:paramtypes", [common_1.SchemaRepository])
31
29
  ], Validator);
32
30
  let DeleteAttributeUseCase = class DeleteAttributeUseCase extends common_1.UseCase {
33
- constructor(attributeController, accountController, identityController, eventBus, validator) {
31
+ constructor(attributeController, accountController, validator) {
34
32
  super(validator);
35
33
  this.attributeController = attributeController;
36
34
  this.accountController = accountController;
37
- this.identityController = identityController;
38
- this.eventBus = eventBus;
39
35
  }
40
36
  async executeInternal(request) {
41
37
  const attribute = await this.attributeController.getLocalAttribute(transport_1.CoreId.from(request.id));
@@ -44,7 +40,6 @@ let DeleteAttributeUseCase = class DeleteAttributeUseCase extends common_1.UseCa
44
40
  }
45
41
  await this.attributeController.deleteAttribute(attribute);
46
42
  await this.accountController.syncDatawallet();
47
- this.eventBus.publish(new events_1.AttributeDeletedEvent(this.identityController.identity.address.toString(), AttributeMapper_1.AttributeMapper.toAttributeDTO(attribute)));
48
43
  return ts_utils_1.Result.ok(undefined);
49
44
  }
50
45
  };
@@ -52,12 +47,8 @@ DeleteAttributeUseCase = __decorate([
52
47
  __param(0, typescript_ioc_1.Inject),
53
48
  __param(1, typescript_ioc_1.Inject),
54
49
  __param(2, typescript_ioc_1.Inject),
55
- __param(3, typescript_ioc_1.Inject),
56
- __param(4, typescript_ioc_1.Inject),
57
50
  __metadata("design:paramtypes", [consumption_1.LocalAttributesController,
58
51
  transport_1.AccountController,
59
- transport_1.IdentityController,
60
- ts_utils_1.EventBus,
61
52
  Validator])
62
53
  ], DeleteAttributeUseCase);
63
54
  exports.DeleteAttributeUseCase = DeleteAttributeUseCase;
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/DeleteAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAqD;AACrD,oDAA+E;AAC/E,gDAAiF;AACjF,mDAAwC;AACxC,4CAAwD;AACxD,yCAAyF;AACzF,uDAAoD;AASpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAuC;IAC3D,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBA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,SAAS,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAChC,CAAC;CACJ,CAAA;AApBY,sBAAsB;IAE1B,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,uCAAyB;QAC3B,6BAAiB;QAC1C,SAAS;GAJvB,sBAAsB,CAoBlC;AApBY,wDAAsB"}
@@ -1,6 +1,6 @@
1
- import { EventBus, Result } from "@js-soft/ts-utils";
1
+ import { Result } from "@js-soft/ts-utils";
2
2
  import { LocalAttributesController } from "@nmshd/consumption";
3
- import { AccountController, IdentityController } from "@nmshd/transport";
3
+ import { AccountController } from "@nmshd/transport";
4
4
  import { LocalAttributeDTO } from "../../../types";
5
5
  import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
6
6
  import { ExtendedIdentityAttributeJSON, ExtendedRelationshipAttributeJSON } from "./ExtendedAttributeValue";
@@ -17,9 +17,7 @@ declare class Validator extends SchemaValidator<SucceedAttributeRequest> {
17
17
  export declare class SucceedAttributeUseCase extends UseCase<SucceedAttributeRequest, LocalAttributeDTO> {
18
18
  private readonly attributeController;
19
19
  private readonly accountController;
20
- private readonly identityController;
21
- private readonly eventBus;
22
- constructor(attributeController: LocalAttributesController, accountController: AccountController, identityController: IdentityController, eventBus: EventBus, validator: Validator);
20
+ constructor(attributeController: LocalAttributesController, accountController: AccountController, validator: Validator);
23
21
  protected executeInternal(request: SucceedAttributeRequest): Promise<Result<LocalAttributeDTO>>;
24
22
  }
25
23
  export {};
@@ -17,7 +17,6 @@ const ts_utils_1 = require("@js-soft/ts-utils");
17
17
  const consumption_1 = require("@nmshd/consumption");
18
18
  const transport_1 = require("@nmshd/transport");
19
19
  const typescript_ioc_1 = require("typescript-ioc");
20
- const events_1 = require("../../../events");
21
20
  const common_1 = require("../../common");
22
21
  const AttributeMapper_1 = require("./AttributeMapper");
23
22
  let Validator = class Validator extends common_1.SchemaValidator {
@@ -30,12 +29,10 @@ Validator = __decorate([
30
29
  __metadata("design:paramtypes", [common_1.SchemaRepository])
31
30
  ], Validator);
32
31
  let SucceedAttributeUseCase = class SucceedAttributeUseCase extends common_1.UseCase {
33
- constructor(attributeController, accountController, identityController, eventBus, validator) {
32
+ constructor(attributeController, accountController, validator) {
34
33
  super(validator);
35
34
  this.attributeController = attributeController;
36
35
  this.accountController = accountController;
37
- this.identityController = identityController;
38
- this.eventBus = eventBus;
39
36
  }
40
37
  async executeInternal(request) {
41
38
  const params = consumption_1.SucceedLocalAttributeParams.from({
@@ -44,21 +41,15 @@ let SucceedAttributeUseCase = class SucceedAttributeUseCase extends common_1.Use
44
41
  });
45
42
  const successor = await this.attributeController.succeedLocalAttribute(params);
46
43
  await this.accountController.syncDatawallet();
47
- const attributeDTO = AttributeMapper_1.AttributeMapper.toAttributeDTO(successor);
48
- this.eventBus.publish(new events_1.AttributeSucceededEvent(this.identityController.identity.address.toString(), attributeDTO));
49
- return ts_utils_1.Result.ok(attributeDTO);
44
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(successor));
50
45
  }
51
46
  };
52
47
  SucceedAttributeUseCase = __decorate([
53
48
  __param(0, typescript_ioc_1.Inject),
54
49
  __param(1, typescript_ioc_1.Inject),
55
50
  __param(2, typescript_ioc_1.Inject),
56
- __param(3, typescript_ioc_1.Inject),
57
- __param(4, typescript_ioc_1.Inject),
58
51
  __metadata("design:paramtypes", [consumption_1.LocalAttributesController,
59
52
  transport_1.AccountController,
60
- transport_1.IdentityController,
61
- ts_utils_1.EventBus,
62
53
  Validator])
63
54
  ], SucceedAttributeUseCase);
64
55
  exports.SucceedAttributeUseCase = SucceedAttributeUseCase;
@@ -1 +1 @@
1
- {"version":3,"file":"SucceedAttribute.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/SucceedAttribute.ts"],"names":[],"mappings":";;;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ACH,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;QAE/E,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AApBY,uBAAuB;IAE3B,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,uCAAyB;QAC3B,6BAAiB;QAC1C,SAAS;GAJvB,uBAAuB,CAoBnC;AApBY,0DAAuB"}
@@ -1,6 +1,6 @@
1
- import { EventBus, Result } from "@js-soft/ts-utils";
1
+ import { Result } from "@js-soft/ts-utils";
2
2
  import { LocalAttributesController } from "@nmshd/consumption";
3
- import { AccountController, IdentityController } from "@nmshd/transport";
3
+ import { AccountController } from "@nmshd/transport";
4
4
  import { LocalAttributeDTO } from "../../../types";
5
5
  import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
6
6
  import { ExtendedIdentityAttributeJSON, ExtendedRelationshipAttributeJSON } from "./ExtendedAttributeValue";
@@ -17,9 +17,7 @@ declare class Validator extends SchemaValidator<UpdateAttributeRequest> {
17
17
  export declare class UpdateAttributeUseCase extends UseCase<UpdateAttributeRequest, LocalAttributeDTO> {
18
18
  private readonly attributeController;
19
19
  private readonly accountController;
20
- private readonly identityController;
21
- private readonly eventBus;
22
- constructor(attributeController: LocalAttributesController, accountController: AccountController, identityController: IdentityController, eventBus: EventBus, validator: Validator);
20
+ constructor(attributeController: LocalAttributesController, accountController: AccountController, validator: Validator);
23
21
  protected executeInternal(request: UpdateAttributeRequest): Promise<Result<LocalAttributeDTO>>;
24
22
  }
25
23
  export {};
@@ -17,7 +17,6 @@ const ts_utils_1 = require("@js-soft/ts-utils");
17
17
  const consumption_1 = require("@nmshd/consumption");
18
18
  const transport_1 = require("@nmshd/transport");
19
19
  const typescript_ioc_1 = require("typescript-ioc");
20
- const events_1 = require("../../../events");
21
20
  const common_1 = require("../../common");
22
21
  const AttributeMapper_1 = require("./AttributeMapper");
23
22
  let Validator = class Validator extends common_1.SchemaValidator {
@@ -30,12 +29,10 @@ Validator = __decorate([
30
29
  __metadata("design:paramtypes", [common_1.SchemaRepository])
31
30
  ], Validator);
32
31
  let UpdateAttributeUseCase = class UpdateAttributeUseCase extends common_1.UseCase {
33
- constructor(attributeController, accountController, identityController, eventBus, validator) {
32
+ constructor(attributeController, accountController, validator) {
34
33
  super(validator);
35
34
  this.attributeController = attributeController;
36
35
  this.accountController = accountController;
37
- this.identityController = identityController;
38
- this.eventBus = eventBus;
39
36
  }
40
37
  async executeInternal(request) {
41
38
  const params = consumption_1.UpdateLocalAttributeParams.from({
@@ -44,21 +41,15 @@ let UpdateAttributeUseCase = class UpdateAttributeUseCase extends common_1.UseCa
44
41
  });
45
42
  const updated = await this.attributeController.updateLocalAttribute(params);
46
43
  await this.accountController.syncDatawallet();
47
- const attributeDTO = AttributeMapper_1.AttributeMapper.toAttributeDTO(updated);
48
- this.eventBus.publish(new events_1.AttributeUpdatedEvent(this.identityController.identity.address.toString(), attributeDTO));
49
- return ts_utils_1.Result.ok(attributeDTO);
44
+ return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTO(updated));
50
45
  }
51
46
  };
52
47
  UpdateAttributeUseCase = __decorate([
53
48
  __param(0, typescript_ioc_1.Inject),
54
49
  __param(1, typescript_ioc_1.Inject),
55
50
  __param(2, typescript_ioc_1.Inject),
56
- __param(3, typescript_ioc_1.Inject),
57
- __param(4, typescript_ioc_1.Inject),
58
51
  __metadata("design:paramtypes", [consumption_1.LocalAttributesController,
59
52
  transport_1.AccountController,
60
- transport_1.IdentityController,
61
- ts_utils_1.EventBus,
62
53
  Validator])
63
54
  ], UpdateAttributeUseCase);
64
55
  exports.UpdateAttributeUseCase = UpdateAttributeUseCase;
@@ -1 +1 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AE,EAAE,OAAO,CAAC,EAAE;YACd,OAAO,EAAE,OAAO,CAAC,OAAO;SAC3B,CAAC,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAE5E,MAAM,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC;QAE9C,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,CAAC;CACJ,CAAA;AApBY,sBAAsB;IAE1B,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAFuC,uCAAyB;QAC3B,6BAAiB;QAC1C,SAAS;GAJvB,sBAAsB,CAoBlC;AApBY,wDAAsB"}
@@ -1,4 +1,4 @@
1
- import { ApplicationError, EventBus, Result } from "@js-soft/ts-utils";
1
+ import { ApplicationError, Result } from "@js-soft/ts-utils";
2
2
  import { DecideRequestParametersJSON, IncomingRequestsController } from "@nmshd/consumption";
3
3
  import { LocalRequestDTO } from "../../../types";
4
4
  import { UseCase } from "../../common";
@@ -6,7 +6,6 @@ export interface AcceptIncomingRequestRequest extends DecideRequestParametersJSO
6
6
  }
7
7
  export declare class AcceptIncomingRequestUseCase extends UseCase<AcceptIncomingRequestRequest, LocalRequestDTO> {
8
8
  private readonly incomingRequestsController;
9
- private readonly eventBus;
10
- constructor(incomingRequestsController: IncomingRequestsController, eventBus: EventBus);
9
+ constructor(incomingRequestsController: IncomingRequestsController);
11
10
  protected executeInternal(request: AcceptIncomingRequestRequest): Promise<Result<LocalRequestDTO, ApplicationError>>;
12
11
  }