@nmshd/runtime 2.0.0-alpha.24 → 2.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.
@@ -435,11 +435,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
435
435
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
436
436
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
437
437
  exports.buildInformation = {
438
- version: "2.0.0-alpha.24",
439
- build: "71",
440
- date: "2022-07-01T13:19:09+00:00",
441
- commit: "a3e2c216958d4020ec49d5d99bbdaa6415953bbc",
442
- dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.3","@js-soft/ts-utils":"^1.1.2","@nmshd/consumption":"2.0.0-alpha.22","@nmshd/content":"2.0.0-alpha.37","@nmshd/crypto":"2.0.1","@nmshd/transport":"2.0.0-alpha.3","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","fluent-ts-validator":"3.0.3","json-stringify-safe":"^5.0.1","luxon":"^2.4.0","qrcode":"1.5.0","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
438
+ version: "2.0.0-alpha.27",
439
+ build: "76",
440
+ date: "2022-07-06T08:05:53+00:00",
441
+ commit: "671457fb91c317ef6d3bedd1e859ec18c1016716",
442
+ dependencies: {"@js-soft/docdb-querytranslator":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.3","@js-soft/ts-utils":"^1.1.2","@nmshd/consumption":"2.0.0-alpha.23","@nmshd/content":"2.0.0-alpha.38","@nmshd/crypto":"2.0.1","@nmshd/transport":"2.0.0-alpha.3","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","fluent-ts-validator":"3.0.3","json-stringify-safe":"^5.0.1","luxon":"^2.4.0","qrcode":"1.5.0","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
443
443
  libraries: {
444
444
  serval: ts_serval_1.buildInformation,
445
445
  consumption: consumption_1.buildInformation,
@@ -3161,10 +3161,10 @@ exports.RelationshipTemplatesFacade = void 0;
3161
3161
  const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
3162
3162
  const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
3163
3163
  let RelationshipTemplatesFacade = class RelationshipTemplatesFacade {
3164
- constructor(createOwnRelationshipTemplateUseCase, loadPeerRelationshipTemplateUseCase, getRealtionshipTemplatesUseCase, getRelationshipTemplateUseCase, createQrCodeForOwnTemplateUseCase, createTokenQrCodeForOwnTemplateUseCase, createTokenForOwnTemplateUseCase) {
3164
+ constructor(createOwnRelationshipTemplateUseCase, loadPeerRelationshipTemplateUseCase, getRelationshipTemplatesUseCase, getRelationshipTemplateUseCase, createQrCodeForOwnTemplateUseCase, createTokenQrCodeForOwnTemplateUseCase, createTokenForOwnTemplateUseCase) {
3165
3165
  this.createOwnRelationshipTemplateUseCase = createOwnRelationshipTemplateUseCase;
3166
3166
  this.loadPeerRelationshipTemplateUseCase = loadPeerRelationshipTemplateUseCase;
3167
- this.getRealtionshipTemplatesUseCase = getRealtionshipTemplatesUseCase;
3167
+ this.getRelationshipTemplatesUseCase = getRelationshipTemplatesUseCase;
3168
3168
  this.getRelationshipTemplateUseCase = getRelationshipTemplateUseCase;
3169
3169
  this.createQrCodeForOwnTemplateUseCase = createQrCodeForOwnTemplateUseCase;
3170
3170
  this.createTokenQrCodeForOwnTemplateUseCase = createTokenQrCodeForOwnTemplateUseCase;
@@ -3177,7 +3177,7 @@ let RelationshipTemplatesFacade = class RelationshipTemplatesFacade {
3177
3177
  return await this.loadPeerRelationshipTemplateUseCase.execute(request);
3178
3178
  }
3179
3179
  async getRelationshipTemplates(request) {
3180
- return await this.getRealtionshipTemplatesUseCase.execute(request);
3180
+ return await this.getRelationshipTemplatesUseCase.execute(request);
3181
3181
  }
3182
3182
  async getRelationshipTemplate(request) {
3183
3183
  return await this.getRelationshipTemplateUseCase.execute(request);
@@ -5550,19 +5550,26 @@ exports.GetAttributesRequest = {
5550
5550
  "type": "string"
5551
5551
  },
5552
5552
  "shareInfo": {
5553
- "type": "object",
5554
- "properties": {
5555
- "requestReference": {
5556
- "type": "string"
5557
- },
5558
- "peer": {
5559
- "type": "string"
5553
+ "anyOf": [
5554
+ {
5555
+ "type": "object",
5556
+ "properties": {
5557
+ "requestReference": {
5558
+ "type": "string"
5559
+ },
5560
+ "peer": {
5561
+ "type": "string"
5562
+ },
5563
+ "sourceAttribute": {
5564
+ "type": "string"
5565
+ }
5566
+ },
5567
+ "additionalProperties": false
5560
5568
  },
5561
- "sourceAttribute": {
5569
+ {
5562
5570
  "type": "string"
5563
5571
  }
5564
- },
5565
- "additionalProperties": false
5572
+ ]
5566
5573
  }
5567
5574
  },
5568
5575
  "additionalProperties": {}
@@ -6193,7 +6200,7 @@ exports.CreateOutgoingRequestRequest = {
6193
6200
  ],
6194
6201
  "description": "The items of the Request. Can be either a single {@link RequestItemJSON RequestItem } or a {@link RequestItemGroupJSON RequestItemGroup } , which itself can contain further {@link RequestItemJSON RequestItems } ."
6195
6202
  },
6196
- "responseMetadata": {
6203
+ "metadata": {
6197
6204
  "anyOf": [
6198
6205
  {
6199
6206
  "type": "object",
@@ -6262,7 +6269,7 @@ exports.CreateOutgoingRequestRequest = {
6262
6269
  "type": "boolean",
6263
6270
  "description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not."
6264
6271
  },
6265
- "responseMetadata": {
6272
+ "metadata": {
6266
6273
  "type": "object",
6267
6274
  "description": "This property can be used to add some arbitrary metadata to this group. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
6268
6275
  },
@@ -6302,7 +6309,7 @@ exports.CreateOutgoingRequestRequest = {
6302
6309
  "type": "string",
6303
6310
  "description": "The human-readable description of this item."
6304
6311
  },
6305
- "responseMetadata": {
6312
+ "metadata": {
6306
6313
  "type": "object",
6307
6314
  "description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
6308
6315
  },
@@ -6332,7 +6339,7 @@ exports.CreateOutgoingRequestRequest = {
6332
6339
  "type": "boolean",
6333
6340
  "description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not."
6334
6341
  },
6335
- "responseMetadata": {
6342
+ "metadata": {
6336
6343
  "type": "object",
6337
6344
  "description": "This property can be used to add some arbitrary metadata to this group. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
6338
6345
  },
@@ -6362,7 +6369,7 @@ exports.CreateOutgoingRequestRequest = {
6362
6369
  "type": "string",
6363
6370
  "description": "The human-readable description of this item."
6364
6371
  },
6365
- "responseMetadata": {
6372
+ "metadata": {
6366
6373
  "type": "object",
6367
6374
  "description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
6368
6375
  },
@@ -6561,9 +6568,6 @@ exports.CompleteOutgoingRequestRequest = {
6561
6568
  }
6562
6569
  ]
6563
6570
  }
6564
- },
6565
- "metadata": {
6566
- "type": "object"
6567
6571
  }
6568
6572
  },
6569
6573
  "required": [
@@ -6598,9 +6602,6 @@ exports.CompleteOutgoingRequestRequest = {
6598
6602
  "items": {
6599
6603
  "$ref": "#/definitions/ResponseItemJSON"
6600
6604
  }
6601
- },
6602
- "metadata": {
6603
- "type": "object"
6604
6605
  }
6605
6606
  },
6606
6607
  "required": [
@@ -6623,9 +6624,6 @@ exports.CompleteOutgoingRequestRequest = {
6623
6624
  },
6624
6625
  "result": {
6625
6626
  "$ref": "#/definitions/ResponseItemResult"
6626
- },
6627
- "metadata": {
6628
- "type": "object"
6629
6627
  }
6630
6628
  },
6631
6629
  "required": [
@@ -6984,7 +6982,7 @@ exports.ReceivedIncomingRequestRequest = {
6984
6982
  },
6985
6983
  "description": "The items of the Request. Can be either a single {@link RequestItemJSON RequestItem } or a {@link RequestItemGroupJSON RequestItemGroup } , which itself can contain further {@link RequestItemJSON RequestItems } ."
6986
6984
  },
6987
- "responseMetadata": {
6985
+ "metadata": {
6988
6986
  "type": "object",
6989
6987
  "description": "This property can be used to add some arbitrary metadata to this request. The content of this property will be copied into the response on the side of the recipient."
6990
6988
  }
@@ -7019,7 +7017,7 @@ exports.ReceivedIncomingRequestRequest = {
7019
7017
  "type": "boolean",
7020
7018
  "description": "If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not."
7021
7019
  },
7022
- "responseMetadata": {
7020
+ "metadata": {
7023
7021
  "type": "object",
7024
7022
  "description": "This property can be used to add some arbitrary metadata to this group. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
7025
7023
  },
@@ -7059,7 +7057,7 @@ exports.ReceivedIncomingRequestRequest = {
7059
7057
  "type": "string",
7060
7058
  "description": "The human-readable description of this item."
7061
7059
  },
7062
- "responseMetadata": {
7060
+ "metadata": {
7063
7061
  "type": "object",
7064
7062
  "description": "This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."
7065
7063
  },
@@ -7697,7 +7695,7 @@ exports.LoadPeerFileViaSecretRequest = {
7697
7695
  },
7698
7696
  "secretKey": {
7699
7697
  "type": "string",
7700
- "minLength": 100
7698
+ "minLength": 10
7701
7699
  }
7702
7700
  },
7703
7701
  "required": [
@@ -7751,7 +7749,7 @@ exports.LoadPeerFileRequest = {
7751
7749
  },
7752
7750
  "secretKey": {
7753
7751
  "type": "string",
7754
- "minLength": 100
7752
+ "minLength": 10
7755
7753
  }
7756
7754
  },
7757
7755
  "required": [
@@ -8271,7 +8269,7 @@ exports.LoadPeerRelationshipTemplateViaSecretRequest = {
8271
8269
  },
8272
8270
  "secretKey": {
8273
8271
  "type": "string",
8274
- "minLength": 100
8272
+ "minLength": 10
8275
8273
  }
8276
8274
  },
8277
8275
  "required": [
@@ -8325,7 +8323,7 @@ exports.LoadPeerRelationshipTemplateRequest = {
8325
8323
  },
8326
8324
  "secretKey": {
8327
8325
  "type": "string",
8328
- "minLength": 100
8326
+ "minLength": 10
8329
8327
  }
8330
8328
  },
8331
8329
  "required": [
@@ -9213,6 +9211,7 @@ GetAttributesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslat
9213
9211
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.isTechnical)}`]: true,
9214
9212
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.confidentiality)}`]: true,
9215
9213
  // content.shareInfo
9214
+ [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}`]: true,
9216
9215
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: true,
9217
9216
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.requestReference)}`]: true,
9218
9217
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.sourceAttribute)}`]: true
@@ -9250,6 +9249,7 @@ GetAttributesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslat
9250
9249
  `${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.confidentiality)}`
9251
9250
  ],
9252
9251
  // content.shareInfo
9252
+ [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}`]: [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}`],
9253
9253
  [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: [
9254
9254
  `${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`
9255
9255
  ],
@@ -23727,7 +23727,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*!
23727
23727
  var obj = {};
23728
23728
  var key;
23729
23729
  var len = keys.length;
23730
- var valuesCount = values ? value.length : 0;
23730
+ var valuesCount = values ? values.length : 0;
23731
23731
  for (var i = 0; i < len; i++) {
23732
23732
  key = keys[i];
23733
23733
  obj[key] = i < valuesCount ? values[i] : undefined;