@nmshd/runtime 2.0.0-beta.36 → 2.0.0-beta.38

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.
@@ -466,11 +466,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
466
466
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
467
467
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
468
468
  exports.buildInformation = {
469
- version: "2.0.0-beta.36",
470
- build: "123",
471
- date: "2022-10-10T09:50:14+00:00",
472
- commit: "c031636ab43a89aaaa90d442aa701dd8512295c8",
473
- dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"2.0.0-beta.28","@nmshd/content":"2.0.0-beta.38","@nmshd/crypto":"2.0.2","@nmshd/transport":"2.0.0-beta.13","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.0.4","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
469
+ version: "2.0.0-beta.38",
470
+ build: "125",
471
+ date: "2022-10-20T13:34:55+00:00",
472
+ commit: "55cc7a6a9041cc99b86b7d5b36ea6efcd0f6656e",
473
+ dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"2.0.0-beta.30","@nmshd/content":"2.0.0-beta.40","@nmshd/crypto":"2.0.2","@nmshd/transport":"2.0.0-beta.13","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.0.4","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
474
474
  libraries: {
475
475
  serval: ts_serval_1.buildInformation,
476
476
  consumption: consumption_1.buildInformation,
@@ -4825,7 +4825,7 @@ class AttributeListenerModule extends extensibility_1.RuntimeModule {
4825
4825
  this.subscribeToEvent(events_1.AttributeCreatedEvent, this.handleAttributeCreated.bind(this));
4826
4826
  }
4827
4827
  async handleAttributeCreated(event) {
4828
- const services = await this.runtime.getServices(event.namespace);
4828
+ const services = await this.runtime.getServices(event.eventTargetAddress);
4829
4829
  const createdAttribute = event.data;
4830
4830
  if (createdAttribute.content["@type"] === "IdentityAttribute" && createdAttribute.shareInfo)
4831
4831
  return;
@@ -5156,16 +5156,7 @@ class RequestModule extends RuntimeModule_1.RuntimeModule {
5156
5156
  await services.consumptionServices.incomingRequests.complete({ requestId: request.id });
5157
5157
  return;
5158
5158
  }
5159
- const templateResult = await services.transportServices.relationshipTemplates.getRelationshipTemplate({ id: templateId });
5160
- if (templateResult.isError) {
5161
- this.logger.error(`Could not find template with id '${templateId}'. Root error:`, templateResult.error);
5162
- return;
5163
- }
5164
- const template = templateResult.value;
5165
- const creationChangeContent = content_1.RelationshipCreationChangeRequestContent.from({
5166
- response: request.response.content,
5167
- templateContentMetadata: template.content.metadata
5168
- });
5159
+ const creationChangeContent = content_1.RelationshipCreationChangeRequestContent.from({ response: request.response.content });
5169
5160
  const createRelationshipResult = await services.transportServices.relationships.createRelationship({ templateId, content: creationChangeContent });
5170
5161
  if (createRelationshipResult.isError) {
5171
5162
  this.logger.error(`Could not create relationship for templateId '${templateId}'. Root error:`, createRelationshipResult.error);
@@ -8201,9 +8192,6 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
8201
8192
  "valueHints": {
8202
8193
  "$ref": "#/definitions/IValueHints"
8203
8194
  },
8204
- "isTechnical": {
8205
- "type": "boolean"
8206
- },
8207
8195
  "confidentiality": {
8208
8196
  "$ref": "#/definitions/RelationshipAttributeConfidentiality"
8209
8197
  }
@@ -8349,9 +8337,6 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
8349
8337
  "valueHints": {
8350
8338
  "$ref": "#/definitions/ValueHintsJSON"
8351
8339
  },
8352
- "isTechnical": {
8353
- "type": "boolean"
8354
- },
8355
8340
  "confidentiality": {
8356
8341
  "$ref": "#/definitions/RelationshipAttributeConfidentiality"
8357
8342
  }
@@ -11369,9 +11354,6 @@ exports.CanCreateOutgoingRequestRequest = {
11369
11354
  "valueHints": {
11370
11355
  "$ref": "#/definitions/ValueHintsJSON"
11371
11356
  },
11372
- "isTechnical": {
11373
- "type": "boolean"
11374
- },
11375
11357
  "confidentiality": {
11376
11358
  "$ref": "#/definitions/RelationshipAttributeConfidentiality"
11377
11359
  }
@@ -16083,9 +16065,6 @@ exports.CreateOutgoingRequestRequest = {
16083
16065
  "valueHints": {
16084
16066
  "$ref": "#/definitions/ValueHintsJSON"
16085
16067
  },
16086
- "isTechnical": {
16087
- "type": "boolean"
16088
- },
16089
16068
  "confidentiality": {
16090
16069
  "$ref": "#/definitions/RelationshipAttributeConfidentiality"
16091
16070
  }
@@ -19060,9 +19039,6 @@ exports.ReceivedIncomingRequestRequest = {
19060
19039
  "valueHints": {
19061
19040
  "$ref": "#/definitions/ValueHintsJSON"
19062
19041
  },
19063
- "isTechnical": {
19064
- "type": "boolean"
19065
- },
19066
19042
  "confidentiality": {
19067
19043
  "$ref": "#/definitions/RelationshipAttributeConfidentiality"
19068
19044
  }