@nmshd/runtime 2.4.7 → 2.5.0
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.
- package/dist/buildInformation.js +5 -5
- package/dist/dataViews/DataViewExpander.d.ts +7 -5
- package/dist/dataViews/DataViewExpander.js +28 -0
- package/dist/dataViews/DataViewExpander.js.map +1 -1
- package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +7 -0
- package/dist/dataViews/content/AttributeDVOs.d.ts +5 -1
- package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +4 -2
- package/dist/extensibility/facades/consumption/AttributesFacade.js +7 -1
- package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
- package/dist/useCases/common/Schemas.d.ts +1 -0
- package/dist/useCases/common/Schemas.js +191 -2
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/dist/useCases/consumption/attributes/ExecuteIQLQuery.d.ts +13 -0
- package/dist/useCases/consumption/attributes/ExecuteIQLQuery.js +37 -0
- package/dist/useCases/consumption/attributes/ExecuteIQLQuery.js.map +1 -0
- package/dist/useCases/consumption/attributes/index.d.ts +1 -0
- package/dist/useCases/consumption/attributes/index.js +1 -0
- package/dist/useCases/consumption/attributes/index.js.map +1 -1
- package/lib-web/nmshd.runtime.js +279 -8
- package/lib-web/nmshd.runtime.js.map +1 -1
- package/lib-web/nmshd.runtime.min.js +2 -2
- package/lib-web/nmshd.runtime.min.js.map +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Result } from "@js-soft/ts-utils";
|
|
2
|
+
import { AttributesController } from "@nmshd/consumption";
|
|
3
|
+
import { IIQLQuery, IQLQueryJSON } from "@nmshd/content";
|
|
4
|
+
import { LocalAttributeDTO } from "../../../types";
|
|
5
|
+
import { UseCase } from "../../common";
|
|
6
|
+
export interface ExecuteIQLQueryRequest {
|
|
7
|
+
query: IIQLQuery | IQLQueryJSON;
|
|
8
|
+
}
|
|
9
|
+
export declare class ExecuteIQLQueryUseCase extends UseCase<ExecuteIQLQueryRequest, LocalAttributeDTO[]> {
|
|
10
|
+
private readonly attributeController;
|
|
11
|
+
constructor(attributeController: AttributesController);
|
|
12
|
+
protected executeInternal(request: ExecuteIQLQueryRequest): Promise<Result<LocalAttributeDTO[]>>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.ExecuteIQLQueryUseCase = void 0;
|
|
16
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
+
const consumption_1 = require("@nmshd/consumption");
|
|
18
|
+
const content_1 = require("@nmshd/content");
|
|
19
|
+
const typescript_ioc_1 = require("typescript-ioc");
|
|
20
|
+
const common_1 = require("../../common");
|
|
21
|
+
const AttributeMapper_1 = require("./AttributeMapper");
|
|
22
|
+
let ExecuteIQLQueryUseCase = exports.ExecuteIQLQueryUseCase = class ExecuteIQLQueryUseCase extends common_1.UseCase {
|
|
23
|
+
constructor(attributeController) {
|
|
24
|
+
super();
|
|
25
|
+
this.attributeController = attributeController;
|
|
26
|
+
}
|
|
27
|
+
async executeInternal(request) {
|
|
28
|
+
const query = content_1.IQLQuery.from(request.query);
|
|
29
|
+
const attribute = await this.attributeController.executeIQLQuery(query);
|
|
30
|
+
return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attribute));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.ExecuteIQLQueryUseCase = ExecuteIQLQueryUseCase = __decorate([
|
|
34
|
+
__param(0, typescript_ioc_1.Inject),
|
|
35
|
+
__metadata("design:paramtypes", [consumption_1.AttributesController])
|
|
36
|
+
], ExecuteIQLQueryUseCase);
|
|
37
|
+
//# sourceMappingURL=ExecuteIQLQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecuteIQLQuery.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/ExecuteIQLQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2C;AAC3C,oDAA0D;AAC1D,4CAAmE;AACnE,mDAAwC;AAExC,yCAAuC;AACvC,uDAAoD;AAMpD,IAAa,sBAAsB,oCAAnC,MAAa,sBAAuB,SAAQ,gBAAoD;IAC5F,YAA4C,mBAAyC;QACjF,KAAK,EAAE,CAAC;QADgC,wBAAmB,GAAnB,mBAAmB,CAAsB;IAErF,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,OAA+B;QAC3D,MAAM,KAAK,GAAG,kBAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC3C,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QACxE,OAAO,iBAAM,CAAC,EAAE,CAAC,iCAAe,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;iCAVY,sBAAsB;IACX,WAAA,uBAAM,CAAA;qCAAuC,kCAAoB;GAD5E,sBAAsB,CAUlC"}
|
|
@@ -3,6 +3,7 @@ export * from "./CreateAttribute";
|
|
|
3
3
|
export * from "./CreateSharedAttributeCopy";
|
|
4
4
|
export * from "./DeleteAttribute";
|
|
5
5
|
export * from "./ExecuteIdentityAttributeQuery";
|
|
6
|
+
export * from "./ExecuteIQLQuery";
|
|
6
7
|
export * from "./ExecuteRelationshipAttributeQuery";
|
|
7
8
|
export * from "./ExecuteThirdPartyRelationshipAttributeQuery";
|
|
8
9
|
export * from "./GetAttribute";
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./CreateAttribute"), exports);
|
|
|
19
19
|
__exportStar(require("./CreateSharedAttributeCopy"), exports);
|
|
20
20
|
__exportStar(require("./DeleteAttribute"), exports);
|
|
21
21
|
__exportStar(require("./ExecuteIdentityAttributeQuery"), exports);
|
|
22
|
+
__exportStar(require("./ExecuteIQLQuery"), exports);
|
|
22
23
|
__exportStar(require("./ExecuteRelationshipAttributeQuery"), exports);
|
|
23
24
|
__exportStar(require("./ExecuteThirdPartyRelationshipAttributeQuery"), exports);
|
|
24
25
|
__exportStar(require("./GetAttribute"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,8DAA4C;AAC5C,oDAAkC;AAClC,kEAAgD;AAChD,sEAAoD;AACpD,gFAA8D;AAC9D,iDAA+B;AAC/B,kDAAgC;AAChC,sDAAoC;AACpC,8DAA4C;AAC5C,mDAAiC;AACjC,qDAAmC;AACnC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/attributes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,8DAA4C;AAC5C,oDAAkC;AAClC,kEAAgD;AAChD,oDAAkC;AAClC,sEAAoD;AACpD,gFAA8D;AAC9D,iDAA+B;AAC/B,kDAAgC;AAChC,sDAAoC;AACpC,8DAA4C;AAC5C,mDAAiC;AACjC,qDAAmC;AACnC,oDAAkC"}
|
package/lib-web/nmshd.runtime.js
CHANGED
|
@@ -548,11 +548,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
|
|
|
548
548
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
549
549
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
550
550
|
exports.buildInformation = {
|
|
551
|
-
version: "2.
|
|
552
|
-
build: "
|
|
553
|
-
date: "2023-
|
|
554
|
-
commit: "
|
|
555
|
-
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.8","@js-soft/ts-utils":"^2.3.1","@nmshd/consumption":"3.
|
|
551
|
+
version: "2.5.0",
|
|
552
|
+
build: "153",
|
|
553
|
+
date: "2023-07-12T08:53:10+00:00",
|
|
554
|
+
commit: "ebbbb294a9e94a930a03b49c100495e0f9dd062d",
|
|
555
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.8","@js-soft/ts-utils":"^2.3.1","@nmshd/consumption":"3.2.0","@nmshd/content":"2.3.3","@nmshd/crypto":"2.0.4","@nmshd/transport":"2.0.5","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.3.0","qrcode":"1.5.3","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
556
556
|
libraries: {
|
|
557
557
|
serval: ts_serval_1.buildInformation,
|
|
558
558
|
consumption: consumption_1.buildInformation,
|
|
@@ -1449,6 +1449,8 @@ let DataViewExpander = exports.DataViewExpander = class DataViewExpander {
|
|
|
1449
1449
|
return await this.expandRelationshipAttributeQuery(query);
|
|
1450
1450
|
case "ThirdPartyRelationshipAttributeQuery":
|
|
1451
1451
|
return await this.expandThirdPartyRelationshipAttributeQuery(query);
|
|
1452
|
+
case "IQLQuery":
|
|
1453
|
+
return this.expandIQLQuery(query);
|
|
1452
1454
|
default:
|
|
1453
1455
|
throw new Error("Wrong attribute query");
|
|
1454
1456
|
}
|
|
@@ -1518,6 +1520,20 @@ let DataViewExpander = exports.DataViewExpander = class DataViewExpander {
|
|
|
1518
1520
|
isProcessed: false
|
|
1519
1521
|
};
|
|
1520
1522
|
}
|
|
1523
|
+
expandIQLQuery(query) {
|
|
1524
|
+
const name = "i18n://dvo.attributeQuery.name.IQLQuery";
|
|
1525
|
+
const description = "i18n://dvo.attributeQuery.name.IQLQuery";
|
|
1526
|
+
return {
|
|
1527
|
+
type: "IQLQueryDVO",
|
|
1528
|
+
id: "",
|
|
1529
|
+
name,
|
|
1530
|
+
description,
|
|
1531
|
+
validFrom: query.validFrom,
|
|
1532
|
+
validTo: query.validTo,
|
|
1533
|
+
queryString: query.queryString,
|
|
1534
|
+
isProcessed: false
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1521
1537
|
getHintsForValueType(valueType) {
|
|
1522
1538
|
const valueTypeClass = ts_serval_1.SerializableBase.getModule(valueType, 1);
|
|
1523
1539
|
if (!valueTypeClass) {
|
|
@@ -1548,6 +1564,8 @@ let DataViewExpander = exports.DataViewExpander = class DataViewExpander {
|
|
|
1548
1564
|
return await this.processRelationshipAttributeQuery(attributeQuery);
|
|
1549
1565
|
case "ThirdPartyRelationshipAttributeQuery":
|
|
1550
1566
|
return await this.processThirdPartyRelationshipAttributeQuery(attributeQuery);
|
|
1567
|
+
case "IQLQuery":
|
|
1568
|
+
return await this.processIQLQuery(attributeQuery);
|
|
1551
1569
|
default:
|
|
1552
1570
|
throw new Error("Wrong attribute query");
|
|
1553
1571
|
}
|
|
@@ -1597,6 +1615,16 @@ let DataViewExpander = exports.DataViewExpander = class DataViewExpander {
|
|
|
1597
1615
|
isProcessed: true
|
|
1598
1616
|
};
|
|
1599
1617
|
}
|
|
1618
|
+
async processIQLQuery(query) {
|
|
1619
|
+
const matchedAttributeDTOResult = await this.consumption.attributes.executeIQLQuery({ query });
|
|
1620
|
+
const matchedAttributeDVOs = await this.expandLocalAttributeDTOs(matchedAttributeDTOResult.value);
|
|
1621
|
+
return {
|
|
1622
|
+
...this.expandIQLQuery(query),
|
|
1623
|
+
type: "ProcessedIQLQueryDVO",
|
|
1624
|
+
results: matchedAttributeDVOs,
|
|
1625
|
+
isProcessed: true
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1600
1628
|
async expandIdentityAttribute(attribute, attributeInstance) {
|
|
1601
1629
|
const valueType = attribute.value["@type"];
|
|
1602
1630
|
const name = `i18n://dvo.attribute.name.${valueType}`;
|
|
@@ -3651,7 +3679,7 @@ exports.AttributesFacade = void 0;
|
|
|
3651
3679
|
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
3652
3680
|
const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
|
|
3653
3681
|
let AttributesFacade = exports.AttributesFacade = class AttributesFacade {
|
|
3654
|
-
constructor(createAttributeUseCase, createSharedAttributeCopyUseCase, deleteAttributeUseCase, getPeerAttributesUseCase, getSharedToPeerAttributesUseCase, getAttributeUseCase, getAttributesUseCase, succeedAttributeUseCase, updateAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, executeThirdPartyRelationshipAttributeQueryUseCase, shareAttributeUseCase) {
|
|
3682
|
+
constructor(createAttributeUseCase, createSharedAttributeCopyUseCase, deleteAttributeUseCase, getPeerAttributesUseCase, getSharedToPeerAttributesUseCase, getAttributeUseCase, getAttributesUseCase, succeedAttributeUseCase, updateAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase, executeThirdPartyRelationshipAttributeQueryUseCase, executeIQLQueryUseCase, shareAttributeUseCase) {
|
|
3655
3683
|
this.createAttributeUseCase = createAttributeUseCase;
|
|
3656
3684
|
this.createSharedAttributeCopyUseCase = createSharedAttributeCopyUseCase;
|
|
3657
3685
|
this.deleteAttributeUseCase = deleteAttributeUseCase;
|
|
@@ -3664,6 +3692,7 @@ let AttributesFacade = exports.AttributesFacade = class AttributesFacade {
|
|
|
3664
3692
|
this.executeIdentityAttributeQueryUseCase = executeIdentityAttributeQueryUseCase;
|
|
3665
3693
|
this.executeRelationshipAttributeQueryUseCase = executeRelationshipAttributeQueryUseCase;
|
|
3666
3694
|
this.executeThirdPartyRelationshipAttributeQueryUseCase = executeThirdPartyRelationshipAttributeQueryUseCase;
|
|
3695
|
+
this.executeIQLQueryUseCase = executeIQLQueryUseCase;
|
|
3667
3696
|
this.shareAttributeUseCase = shareAttributeUseCase;
|
|
3668
3697
|
}
|
|
3669
3698
|
async createAttribute(request) {
|
|
@@ -3696,6 +3725,9 @@ let AttributesFacade = exports.AttributesFacade = class AttributesFacade {
|
|
|
3696
3725
|
async executeThirdPartyRelationshipAttributeQuery(request) {
|
|
3697
3726
|
return await this.executeThirdPartyRelationshipAttributeQueryUseCase.execute(request);
|
|
3698
3727
|
}
|
|
3728
|
+
async executeIQLQuery(request) {
|
|
3729
|
+
return await this.executeIQLQueryUseCase.execute(request);
|
|
3730
|
+
}
|
|
3699
3731
|
async succeedAttribute(request) {
|
|
3700
3732
|
return await this.succeedAttributeUseCase.execute(request);
|
|
3701
3733
|
}
|
|
@@ -3720,6 +3752,7 @@ exports.AttributesFacade = AttributesFacade = __decorate([
|
|
|
3720
3752
|
__param(10, typescript_ioc_1.Inject),
|
|
3721
3753
|
__param(11, typescript_ioc_1.Inject),
|
|
3722
3754
|
__param(12, typescript_ioc_1.Inject),
|
|
3755
|
+
__param(13, typescript_ioc_1.Inject),
|
|
3723
3756
|
__metadata("design:paramtypes", [useCases_1.CreateAttributeUseCase,
|
|
3724
3757
|
useCases_1.CreateSharedAttributeCopyUseCase,
|
|
3725
3758
|
useCases_1.DeleteAttributeUseCase,
|
|
@@ -3732,6 +3765,7 @@ exports.AttributesFacade = AttributesFacade = __decorate([
|
|
|
3732
3765
|
useCases_1.ExecuteIdentityAttributeQueryUseCase,
|
|
3733
3766
|
useCases_1.ExecuteRelationshipAttributeQueryUseCase,
|
|
3734
3767
|
useCases_1.ExecuteThirdPartyRelationshipAttributeQueryUseCase,
|
|
3768
|
+
useCases_1.ExecuteIQLQueryUseCase,
|
|
3735
3769
|
useCases_1.ShareAttributeUseCase])
|
|
3736
3770
|
], AttributesFacade);
|
|
3737
3771
|
//# sourceMappingURL=AttributesFacade.js.map
|
|
@@ -6275,8 +6309,8 @@ exports.JsonSchema = JsonSchema;
|
|
|
6275
6309
|
"use strict";
|
|
6276
6310
|
|
|
6277
6311
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6278
|
-
exports.
|
|
6279
|
-
exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = exports.LoadPeerRelationshipTemplateViaSecretRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQrCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateQrCodeForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.GetOrLoadFileRequest = exports.GetOrLoadFileViaReferenceRequest = exports.GetOrLoadFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQrCodeForFileRequest = exports.CreateTokenForFileRequest = exports.CreateQrCodeForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = void 0;
|
|
6312
|
+
exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.LoadItemFromTruncatedReferenceRequest = exports.DownloadFileRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.ShareAttributeRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.DiscardOutgoingRequestRequest = exports.CreateOutgoingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CanCreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.GetSharedToPeerAttributesRequest = exports.GetPeerAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteThirdPartyRelationshipAttributeQueryRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIQLQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteAttributeRequest = exports.CreateSharedAttributeCopyRequest = exports.CreateAttributeRequest = exports.GetAttributeListenerRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
|
|
6313
|
+
exports.LoadPeerTokenRequest = exports.LoadPeerTokenViaSecretRequest = exports.LoadPeerTokenViaReferenceRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.LoadPeerRelationshipTemplateViaReferenceRequest = exports.LoadPeerRelationshipTemplateViaSecretRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQrCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateQrCodeForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileValidatableRequest = exports.UploadOwnFileRequest = exports.GetOrLoadFileRequest = exports.GetOrLoadFileViaReferenceRequest = exports.GetOrLoadFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQrCodeForFileRequest = exports.CreateTokenForFileRequest = exports.CreateQrCodeForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = void 0;
|
|
6280
6314
|
exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
|
|
6281
6315
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6282
6316
|
"$ref": "#/definitions/LoadPeerTokenAnonymousByIdAndKeyRequest",
|
|
@@ -8430,6 +8464,90 @@ exports.ExecuteIdentityAttributeQueryRequest = {
|
|
|
8430
8464
|
}
|
|
8431
8465
|
}
|
|
8432
8466
|
};
|
|
8467
|
+
exports.ExecuteIQLQueryRequest = {
|
|
8468
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
8469
|
+
"$ref": "#/definitions/ExecuteIQLQueryRequest",
|
|
8470
|
+
"definitions": {
|
|
8471
|
+
"ExecuteIQLQueryRequest": {
|
|
8472
|
+
"type": "object",
|
|
8473
|
+
"properties": {
|
|
8474
|
+
"query": {
|
|
8475
|
+
"anyOf": [
|
|
8476
|
+
{
|
|
8477
|
+
"$ref": "#/definitions/IIQLQuery"
|
|
8478
|
+
},
|
|
8479
|
+
{
|
|
8480
|
+
"$ref": "#/definitions/IQLQueryJSON"
|
|
8481
|
+
}
|
|
8482
|
+
]
|
|
8483
|
+
}
|
|
8484
|
+
},
|
|
8485
|
+
"required": [
|
|
8486
|
+
"query"
|
|
8487
|
+
],
|
|
8488
|
+
"additionalProperties": false
|
|
8489
|
+
},
|
|
8490
|
+
"IIQLQuery": {
|
|
8491
|
+
"type": "object",
|
|
8492
|
+
"properties": {
|
|
8493
|
+
"validFrom": {
|
|
8494
|
+
"$ref": "#/definitions/ICoreDate"
|
|
8495
|
+
},
|
|
8496
|
+
"validTo": {
|
|
8497
|
+
"$ref": "#/definitions/ICoreDate"
|
|
8498
|
+
},
|
|
8499
|
+
"queryString": {
|
|
8500
|
+
"type": "string"
|
|
8501
|
+
}
|
|
8502
|
+
},
|
|
8503
|
+
"required": [
|
|
8504
|
+
"queryString"
|
|
8505
|
+
],
|
|
8506
|
+
"additionalProperties": false
|
|
8507
|
+
},
|
|
8508
|
+
"ICoreDate": {
|
|
8509
|
+
"type": "object",
|
|
8510
|
+
"properties": {
|
|
8511
|
+
"date": {
|
|
8512
|
+
"type": "string"
|
|
8513
|
+
}
|
|
8514
|
+
},
|
|
8515
|
+
"required": [
|
|
8516
|
+
"date"
|
|
8517
|
+
],
|
|
8518
|
+
"additionalProperties": false
|
|
8519
|
+
},
|
|
8520
|
+
"IQLQueryJSON": {
|
|
8521
|
+
"type": "object",
|
|
8522
|
+
"properties": {
|
|
8523
|
+
"@type": {
|
|
8524
|
+
"type": "string",
|
|
8525
|
+
"const": "IQLQuery"
|
|
8526
|
+
},
|
|
8527
|
+
"@context": {
|
|
8528
|
+
"type": "string"
|
|
8529
|
+
},
|
|
8530
|
+
"@version": {
|
|
8531
|
+
"type": "string"
|
|
8532
|
+
},
|
|
8533
|
+
"validFrom": {
|
|
8534
|
+
"type": "string"
|
|
8535
|
+
},
|
|
8536
|
+
"validTo": {
|
|
8537
|
+
"type": "string"
|
|
8538
|
+
},
|
|
8539
|
+
"queryString": {
|
|
8540
|
+
"type": "string"
|
|
8541
|
+
}
|
|
8542
|
+
},
|
|
8543
|
+
"required": [
|
|
8544
|
+
"@type",
|
|
8545
|
+
"queryString"
|
|
8546
|
+
],
|
|
8547
|
+
"additionalProperties": false
|
|
8548
|
+
}
|
|
8549
|
+
}
|
|
8550
|
+
};
|
|
8433
8551
|
exports.ExecuteRelationshipAttributeQueryRequest = {
|
|
8434
8552
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
8435
8553
|
"$ref": "#/definitions/ExecuteRelationshipAttributeQueryRequest",
|
|
@@ -11711,6 +11829,9 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
11711
11829
|
},
|
|
11712
11830
|
{
|
|
11713
11831
|
"$ref": "#/definitions/RelationshipAttributeQueryJSON"
|
|
11832
|
+
},
|
|
11833
|
+
{
|
|
11834
|
+
"$ref": "#/definitions/IQLQueryJSON"
|
|
11714
11835
|
}
|
|
11715
11836
|
]
|
|
11716
11837
|
},
|
|
@@ -11909,6 +12030,35 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
11909
12030
|
"Consent"
|
|
11910
12031
|
]
|
|
11911
12032
|
},
|
|
12033
|
+
"IQLQueryJSON": {
|
|
12034
|
+
"type": "object",
|
|
12035
|
+
"properties": {
|
|
12036
|
+
"@type": {
|
|
12037
|
+
"type": "string",
|
|
12038
|
+
"const": "IQLQuery"
|
|
12039
|
+
},
|
|
12040
|
+
"@context": {
|
|
12041
|
+
"type": "string"
|
|
12042
|
+
},
|
|
12043
|
+
"@version": {
|
|
12044
|
+
"type": "string"
|
|
12045
|
+
},
|
|
12046
|
+
"validFrom": {
|
|
12047
|
+
"type": "string"
|
|
12048
|
+
},
|
|
12049
|
+
"validTo": {
|
|
12050
|
+
"type": "string"
|
|
12051
|
+
},
|
|
12052
|
+
"queryString": {
|
|
12053
|
+
"type": "string"
|
|
12054
|
+
}
|
|
12055
|
+
},
|
|
12056
|
+
"required": [
|
|
12057
|
+
"@type",
|
|
12058
|
+
"queryString"
|
|
12059
|
+
],
|
|
12060
|
+
"additionalProperties": false
|
|
12061
|
+
},
|
|
11912
12062
|
"ReadAttributeRequestItemJSON": {
|
|
11913
12063
|
"type": "object",
|
|
11914
12064
|
"properties": {
|
|
@@ -11952,6 +12102,9 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
11952
12102
|
},
|
|
11953
12103
|
{
|
|
11954
12104
|
"$ref": "#/definitions/ThirdPartyRelationshipAttributeQueryJSON"
|
|
12105
|
+
},
|
|
12106
|
+
{
|
|
12107
|
+
"$ref": "#/definitions/IQLQueryJSON"
|
|
11955
12108
|
}
|
|
11956
12109
|
]
|
|
11957
12110
|
}
|
|
@@ -19070,6 +19223,9 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
19070
19223
|
},
|
|
19071
19224
|
{
|
|
19072
19225
|
"$ref": "#/definitions/RelationshipAttributeQueryJSON"
|
|
19226
|
+
},
|
|
19227
|
+
{
|
|
19228
|
+
"$ref": "#/definitions/IQLQueryJSON"
|
|
19073
19229
|
}
|
|
19074
19230
|
]
|
|
19075
19231
|
},
|
|
@@ -19268,6 +19424,35 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
19268
19424
|
"Consent"
|
|
19269
19425
|
]
|
|
19270
19426
|
},
|
|
19427
|
+
"IQLQueryJSON": {
|
|
19428
|
+
"type": "object",
|
|
19429
|
+
"properties": {
|
|
19430
|
+
"@type": {
|
|
19431
|
+
"type": "string",
|
|
19432
|
+
"const": "IQLQuery"
|
|
19433
|
+
},
|
|
19434
|
+
"@context": {
|
|
19435
|
+
"type": "string"
|
|
19436
|
+
},
|
|
19437
|
+
"@version": {
|
|
19438
|
+
"type": "string"
|
|
19439
|
+
},
|
|
19440
|
+
"validFrom": {
|
|
19441
|
+
"type": "string"
|
|
19442
|
+
},
|
|
19443
|
+
"validTo": {
|
|
19444
|
+
"type": "string"
|
|
19445
|
+
},
|
|
19446
|
+
"queryString": {
|
|
19447
|
+
"type": "string"
|
|
19448
|
+
}
|
|
19449
|
+
},
|
|
19450
|
+
"required": [
|
|
19451
|
+
"@type",
|
|
19452
|
+
"queryString"
|
|
19453
|
+
],
|
|
19454
|
+
"additionalProperties": false
|
|
19455
|
+
},
|
|
19271
19456
|
"ReadAttributeRequestItemJSON": {
|
|
19272
19457
|
"type": "object",
|
|
19273
19458
|
"properties": {
|
|
@@ -19311,6 +19496,9 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
19311
19496
|
},
|
|
19312
19497
|
{
|
|
19313
19498
|
"$ref": "#/definitions/ThirdPartyRelationshipAttributeQueryJSON"
|
|
19499
|
+
},
|
|
19500
|
+
{
|
|
19501
|
+
"$ref": "#/definitions/IQLQueryJSON"
|
|
19314
19502
|
}
|
|
19315
19503
|
]
|
|
19316
19504
|
}
|
|
@@ -22230,6 +22418,9 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
22230
22418
|
},
|
|
22231
22419
|
{
|
|
22232
22420
|
"$ref": "#/definitions/RelationshipAttributeQueryJSON"
|
|
22421
|
+
},
|
|
22422
|
+
{
|
|
22423
|
+
"$ref": "#/definitions/IQLQueryJSON"
|
|
22233
22424
|
}
|
|
22234
22425
|
]
|
|
22235
22426
|
},
|
|
@@ -22428,6 +22619,35 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
22428
22619
|
"Consent"
|
|
22429
22620
|
]
|
|
22430
22621
|
},
|
|
22622
|
+
"IQLQueryJSON": {
|
|
22623
|
+
"type": "object",
|
|
22624
|
+
"properties": {
|
|
22625
|
+
"@type": {
|
|
22626
|
+
"type": "string",
|
|
22627
|
+
"const": "IQLQuery"
|
|
22628
|
+
},
|
|
22629
|
+
"@context": {
|
|
22630
|
+
"type": "string"
|
|
22631
|
+
},
|
|
22632
|
+
"@version": {
|
|
22633
|
+
"type": "string"
|
|
22634
|
+
},
|
|
22635
|
+
"validFrom": {
|
|
22636
|
+
"type": "string"
|
|
22637
|
+
},
|
|
22638
|
+
"validTo": {
|
|
22639
|
+
"type": "string"
|
|
22640
|
+
},
|
|
22641
|
+
"queryString": {
|
|
22642
|
+
"type": "string"
|
|
22643
|
+
}
|
|
22644
|
+
},
|
|
22645
|
+
"required": [
|
|
22646
|
+
"@type",
|
|
22647
|
+
"queryString"
|
|
22648
|
+
],
|
|
22649
|
+
"additionalProperties": false
|
|
22650
|
+
},
|
|
22431
22651
|
"ReadAttributeRequestItemJSON": {
|
|
22432
22652
|
"type": "object",
|
|
22433
22653
|
"properties": {
|
|
@@ -22471,6 +22691,9 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
22471
22691
|
},
|
|
22472
22692
|
{
|
|
22473
22693
|
"$ref": "#/definitions/ThirdPartyRelationshipAttributeQueryJSON"
|
|
22694
|
+
},
|
|
22695
|
+
{
|
|
22696
|
+
"$ref": "#/definitions/IQLQueryJSON"
|
|
22474
22697
|
}
|
|
22475
22698
|
]
|
|
22476
22699
|
}
|
|
@@ -29466,6 +29689,53 @@ exports.DeleteAttributeUseCase = DeleteAttributeUseCase = __decorate([
|
|
|
29466
29689
|
|
|
29467
29690
|
/***/ }),
|
|
29468
29691
|
|
|
29692
|
+
/***/ "./dist/useCases/consumption/attributes/ExecuteIQLQuery.js":
|
|
29693
|
+
/*!*****************************************************************!*\
|
|
29694
|
+
!*** ./dist/useCases/consumption/attributes/ExecuteIQLQuery.js ***!
|
|
29695
|
+
\*****************************************************************/
|
|
29696
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
29697
|
+
|
|
29698
|
+
"use strict";
|
|
29699
|
+
|
|
29700
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
29701
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
29702
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
29703
|
+
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;
|
|
29704
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29705
|
+
};
|
|
29706
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
29707
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
29708
|
+
};
|
|
29709
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
29710
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
29711
|
+
};
|
|
29712
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
29713
|
+
exports.ExecuteIQLQueryUseCase = void 0;
|
|
29714
|
+
const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
|
|
29715
|
+
const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
|
|
29716
|
+
const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
|
|
29717
|
+
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
29718
|
+
const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
|
|
29719
|
+
const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
|
|
29720
|
+
let ExecuteIQLQueryUseCase = exports.ExecuteIQLQueryUseCase = class ExecuteIQLQueryUseCase extends common_1.UseCase {
|
|
29721
|
+
constructor(attributeController) {
|
|
29722
|
+
super();
|
|
29723
|
+
this.attributeController = attributeController;
|
|
29724
|
+
}
|
|
29725
|
+
async executeInternal(request) {
|
|
29726
|
+
const query = content_1.IQLQuery.from(request.query);
|
|
29727
|
+
const attribute = await this.attributeController.executeIQLQuery(query);
|
|
29728
|
+
return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attribute));
|
|
29729
|
+
}
|
|
29730
|
+
};
|
|
29731
|
+
exports.ExecuteIQLQueryUseCase = ExecuteIQLQueryUseCase = __decorate([
|
|
29732
|
+
__param(0, typescript_ioc_1.Inject),
|
|
29733
|
+
__metadata("design:paramtypes", [consumption_1.AttributesController])
|
|
29734
|
+
], ExecuteIQLQueryUseCase);
|
|
29735
|
+
//# sourceMappingURL=ExecuteIQLQuery.js.map
|
|
29736
|
+
|
|
29737
|
+
/***/ }),
|
|
29738
|
+
|
|
29469
29739
|
/***/ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js":
|
|
29470
29740
|
/*!*******************************************************************************!*\
|
|
29471
29741
|
!*** ./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js ***!
|
|
@@ -30177,6 +30447,7 @@ __exportStar(__webpack_require__(/*! ./CreateAttribute */ "./dist/useCases/consu
|
|
|
30177
30447
|
__exportStar(__webpack_require__(/*! ./CreateSharedAttributeCopy */ "./dist/useCases/consumption/attributes/CreateSharedAttributeCopy.js"), exports);
|
|
30178
30448
|
__exportStar(__webpack_require__(/*! ./DeleteAttribute */ "./dist/useCases/consumption/attributes/DeleteAttribute.js"), exports);
|
|
30179
30449
|
__exportStar(__webpack_require__(/*! ./ExecuteIdentityAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js"), exports);
|
|
30450
|
+
__exportStar(__webpack_require__(/*! ./ExecuteIQLQuery */ "./dist/useCases/consumption/attributes/ExecuteIQLQuery.js"), exports);
|
|
30180
30451
|
__exportStar(__webpack_require__(/*! ./ExecuteRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js"), exports);
|
|
30181
30452
|
__exportStar(__webpack_require__(/*! ./ExecuteThirdPartyRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteThirdPartyRelationshipAttributeQuery.js"), exports);
|
|
30182
30453
|
__exportStar(__webpack_require__(/*! ./GetAttribute */ "./dist/useCases/consumption/attributes/GetAttribute.js"), exports);
|