@nmshd/runtime 3.1.0 → 3.1.1

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.
@@ -7,10 +7,10 @@ const content_1 = require("@nmshd/content");
7
7
  const crypto_1 = require("@nmshd/crypto");
8
8
  const transport_1 = require("@nmshd/transport");
9
9
  exports.buildInformation = {
10
- version: "3.1.0",
11
- build: "179",
12
- date: "2023-12-07T08:38:54+00:00",
13
- commit: "d569bd40863c953e5c8cb68ca7cbf06c92f0b1d8",
10
+ version: "3.1.1",
11
+ build: "181",
12
+ date: "2023-12-12T15:04:45+00:00",
13
+ commit: "3d55881cb1ce3f6ff4c3567acd54e19f54c2c992",
14
14
  dependencies: {"@js-soft/docdb-querytranslator":"1.1.2","@js-soft/logging-abstractions":"1.0.1","@js-soft/ts-serval":"2.0.10","@js-soft/ts-utils":"^2.3.3","@nmshd/consumption":"3.7.4","@nmshd/content":"2.8.1","@nmshd/crypto":"2.0.5","@nmshd/transport":"2.1.4","ajv":"^8.12.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.4.4","qrcode":"1.5.3","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
15
15
  libraries: {
16
16
  serval: ts_serval_1.buildInformation,
@@ -42,12 +42,8 @@ let GetAttributesForRelationshipUseCase = class GetAttributesForRelationshipUseC
42
42
  }
43
43
  const peerAddress = relationship.peer.address.toString();
44
44
  const query = {
45
- $or: [
46
- // content.owner
47
- { [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`]: peerAddress },
48
- // shareInfo.peer
49
- { [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: peerAddress }
50
- ]
45
+ // shareInfo.peer
46
+ [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: peerAddress
51
47
  };
52
48
  const attributes = await this.attributesController.getLocalAttributes(query, request.hideTechnical);
53
49
  return ts_utils_1.Result.ok(consumption_2.AttributeMapper.toAttributeDTOList(attributes));
@@ -1 +1 @@
1
- {"version":3,"file":"GetAttributesForRelationship.js","sourceRoot":"","sources":["../../../../src/useCases/transport/relationships/GetAttributesForRelationship.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAAmG;AAEnG,gDAAiF;AACjF,uDAA0C;AAC1C,mDAAwC;AAExC,yCAA+G;AAC/G,mDAAoD;AASpD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAoD;IACxE,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,mCAAmC,GAAhD,MAAa,mCAAoC,SAAQ,gBAAkF;IACvI,YAC6B,uBAAgD,EAChD,oBAA0C,EAC3D,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJQ,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,yBAAoB,GAApB,oBAAoB,CAAsB;IAIvE,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA4C;QACxE,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,eAAe,CAAC,kBAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;QACjG,IAAI,CAAC,YAAY,EAAE,CAAC;YAChB,OAAO,iBAAM,CAAC,IAAI,CAAC,sBAAa,CAAC,OAAO,CAAC,cAAc,CAAC,wBAAY,CAAC,CAAC,CAAC;QAC3E,CAAC;QAED,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzD,MAAM,KAAK,GAAG;YACV,GAAG,EAAE;gBACD,gBAAgB;gBAChB,EAAE,CAAC,GAAG,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,IAAA,yBAAM,EAAoB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE;gBAC7G,iBAAiB;gBACjB,EAAE,CAAC,GAAG,IAAA,yBAAM,EAAiB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,IAAA,yBAAM,EAA0B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE;aACvH;SACJ,CAAC;QACF,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;QAEpG,OAAO,iBAAM,CAAC,EAAE,CAAC,6BAAe,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AA5BY,kFAAmC;8CAAnC,mCAAmC;IAEvC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAF2C,mCAAuB;QAC1B,kCAAoB;QAChD,SAAS;GAJvB,mCAAmC,CA4B/C"}
1
+ {"version":3,"file":"GetAttributesForRelationship.js","sourceRoot":"","sources":["../../../../src/useCases/transport/relationships/GetAttributesForRelationship.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAAmG;AACnG,gDAAiF;AACjF,uDAA0C;AAC1C,mDAAwC;AAExC,yCAA+G;AAC/G,mDAAoD;AASpD,IAAM,SAAS,GAAf,MAAM,SAAU,SA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AAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;IACrE,CAAC;CACJ,CAAA;AAxBY,kFAAmC;8CAAnC,mCAAmC;IAEvC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCAF2C,mCAAuB;QAC1B,kCAAoB;QAChD,SAAS;GAJvB,mCAAmC,CAwB/C"}
@@ -555,10 +555,10 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
555
555
  const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
556
556
  const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
557
557
  exports.buildInformation = {
558
- version: "3.1.0",
559
- build: "179",
560
- date: "2023-12-07T08:38:54+00:00",
561
- commit: "d569bd40863c953e5c8cb68ca7cbf06c92f0b1d8",
558
+ version: "3.1.1",
559
+ build: "181",
560
+ date: "2023-12-12T15:04:45+00:00",
561
+ commit: "3d55881cb1ce3f6ff4c3567acd54e19f54c2c992",
562
562
  dependencies: {"@js-soft/docdb-querytranslator":"1.1.2","@js-soft/logging-abstractions":"1.0.1","@js-soft/ts-serval":"2.0.10","@js-soft/ts-utils":"^2.3.3","@nmshd/consumption":"3.7.4","@nmshd/content":"2.8.1","@nmshd/crypto":"2.0.5","@nmshd/transport":"2.1.4","ajv":"^8.12.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.4.4","qrcode":"1.5.3","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
563
563
  libraries: {
564
564
  serval: ts_serval_1.buildInformation,
@@ -36209,12 +36209,8 @@ let GetAttributesForRelationshipUseCase = class GetAttributesForRelationshipUseC
36209
36209
  }
36210
36210
  const peerAddress = relationship.peer.address.toString();
36211
36211
  const query = {
36212
- $or: [
36213
- // content.owner
36214
- { [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`]: peerAddress },
36215
- // shareInfo.peer
36216
- { [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: peerAddress }
36217
- ]
36212
+ // shareInfo.peer
36213
+ [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: peerAddress
36218
36214
  };
36219
36215
  const attributes = await this.attributesController.getLocalAttributes(query, request.hideTechnical);
36220
36216
  return ts_utils_1.Result.ok(consumption_2.AttributeMapper.toAttributeDTOList(attributes));