@nmshd/runtime 2.0.0-alpha.13 → 2.0.0-alpha.16
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/Runtime.js +1 -1
- package/dist/Runtime.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/dist/extensibility/facades/consumption/AttributesFacade.d.ts +10 -4
- package/dist/extensibility/facades/consumption/AttributesFacade.js +20 -6
- package/dist/extensibility/facades/consumption/AttributesFacade.js.map +1 -1
- package/dist/extensibility/facades/transport/RelationshipsFacade.d.ts +4 -2
- package/dist/extensibility/facades/transport/RelationshipsFacade.js +8 -2
- package/dist/extensibility/facades/transport/RelationshipsFacade.js.map +1 -1
- package/dist/useCases/common/Schemas.d.ts +4 -0
- package/dist/useCases/common/Schemas.js +502 -17
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.d.ts +13 -0
- package/dist/useCases/consumption/attributes/{GetAllValid.js → ExecuteIdentityAttributeQuery.js} +11 -8
- package/dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js.map +1 -0
- package/dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.d.ts +13 -0
- package/dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js +39 -0
- package/dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js.map +1 -0
- package/dist/useCases/consumption/attributes/GetAttributes.d.ts +2 -2
- package/dist/useCases/consumption/attributes/GetAttributes.js +2 -2
- package/dist/useCases/consumption/attributes/GetAttributes.js.map +1 -1
- package/dist/useCases/consumption/attributes/GetValidAttributes.d.ts +35 -0
- package/dist/useCases/consumption/attributes/GetValidAttributes.js +108 -0
- package/dist/useCases/consumption/attributes/GetValidAttributes.js.map +1 -0
- package/dist/useCases/consumption/attributes/index.d.ts +3 -1
- package/dist/useCases/consumption/attributes/index.js +3 -1
- package/dist/useCases/consumption/attributes/index.js.map +1 -1
- package/dist/useCases/consumption/requests/CheckPrerequisitesOfIncomingRequest.d.ts +1 -1
- package/dist/useCases/consumption/requests/CompleteOutgoingRequest.d.ts +0 -4
- package/dist/useCases/consumption/requests/CompleteOutgoingRequest.js +3 -3
- package/dist/useCases/consumption/requests/CompleteOutgoingRequest.js.map +1 -1
- package/dist/useCases/consumption/requests/GetIncomingRequest.d.ts +1 -1
- package/dist/useCases/consumption/requests/GetIncomingRequests.d.ts +2 -2
- package/dist/useCases/consumption/requests/GetOutgoingRequest.d.ts +1 -1
- package/dist/useCases/consumption/requests/ReceivedIncomingRequest.d.ts +1 -1
- package/dist/useCases/consumption/requests/RequireManualDecisionOfIncomingRequest.d.ts +1 -1
- package/dist/useCases/consumption/requests/SentOutgoingRequest.d.ts +1 -1
- package/dist/useCases/transport/relationships/GetAttributesForRelationship.d.ts +20 -0
- package/dist/useCases/transport/relationships/GetAttributesForRelationship.js +65 -0
- package/dist/useCases/transport/relationships/GetAttributesForRelationship.js.map +1 -0
- package/dist/useCases/transport/relationships/index.d.ts +1 -0
- package/dist/useCases/transport/relationships/index.js +1 -0
- package/dist/useCases/transport/relationships/index.js.map +1 -1
- package/lib-web/nmshd.runtime.js +813 -60
- package/lib-web/nmshd.runtime.js.map +1 -1
- package/lib-web/nmshd.runtime.min.js +3 -3
- package/lib-web/nmshd.runtime.min.js.map +1 -1
- package/package.json +2 -2
- package/dist/useCases/consumption/attributes/GetAllValid.d.ts +0 -9
- package/dist/useCases/consumption/attributes/GetAllValid.js.map +0 -1
package/lib-web/nmshd.runtime.js
CHANGED
|
@@ -144,8 +144,8 @@ class Runtime {
|
|
|
144
144
|
}
|
|
145
145
|
async login(accountController, consumptionController) {
|
|
146
146
|
this._accountController = accountController;
|
|
147
|
-
const transportServices = typescript_ioc_1.Container.get(extensibility_1.TransportServices);
|
|
148
147
|
this._consumptionController = consumptionController;
|
|
148
|
+
const transportServices = typescript_ioc_1.Container.get(extensibility_1.TransportServices);
|
|
149
149
|
const consumptionServices = typescript_ioc_1.Container.get(extensibility_1.ConsumptionServices);
|
|
150
150
|
const dataViewExpander = typescript_ioc_1.Container.get(dataViews_1.DataViewExpander);
|
|
151
151
|
await new DatabaseSchemaUpgrader_1.DatabaseSchemaUpgrader(accountController, consumptionController).upgradeSchemaVersion();
|
|
@@ -435,10 +435,10 @@ 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.
|
|
439
|
-
build: "
|
|
440
|
-
date: "2022-06-
|
|
441
|
-
commit: "
|
|
438
|
+
version: "2.0.0-alpha.16",
|
|
439
|
+
build: "63",
|
|
440
|
+
date: "2022-06-02T12:12:20+00:00",
|
|
441
|
+
commit: "aeeb6666c5654d046f4e095ea8a7d6d63191b15d",
|
|
442
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.19","@nmshd/content":"2.0.0-alpha.25","@nmshd/crypto":"2.0.1","@nmshd/transport":"2.0.0-alpha.1","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,
|
|
@@ -2215,16 +2215,20 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
2215
2215
|
exports.AttributesFacade = void 0;
|
|
2216
2216
|
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
2217
2217
|
const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
|
|
2218
|
+
const ExecuteIdentityAttributeQuery_1 = __webpack_require__(/*! ../../../useCases/consumption/attributes/ExecuteIdentityAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js");
|
|
2219
|
+
const ExecuteRelationshipAttributeQuery_1 = __webpack_require__(/*! ../../../useCases/consumption/attributes/ExecuteRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js");
|
|
2218
2220
|
let AttributesFacade = class AttributesFacade {
|
|
2219
|
-
constructor(createAttributeUseCase, createSharedAttributeCopyUseCase, deleteAttributeUseCase,
|
|
2221
|
+
constructor(createAttributeUseCase, createSharedAttributeCopyUseCase, deleteAttributeUseCase, getValidAttributesUseCase, getAttributeUseCase, getAttributesUseCase, succeedAttributeUseCase, updateAttributeUseCase, executeIdentityAttributeQueryUseCase, executeRelationshipAttributeQueryUseCase) {
|
|
2220
2222
|
this.createAttributeUseCase = createAttributeUseCase;
|
|
2221
2223
|
this.createSharedAttributeCopyUseCase = createSharedAttributeCopyUseCase;
|
|
2222
2224
|
this.deleteAttributeUseCase = deleteAttributeUseCase;
|
|
2223
|
-
this.
|
|
2225
|
+
this.getValidAttributesUseCase = getValidAttributesUseCase;
|
|
2224
2226
|
this.getAttributeUseCase = getAttributeUseCase;
|
|
2225
2227
|
this.getAttributesUseCase = getAttributesUseCase;
|
|
2226
2228
|
this.succeedAttributeUseCase = succeedAttributeUseCase;
|
|
2227
2229
|
this.updateAttributeUseCase = updateAttributeUseCase;
|
|
2230
|
+
this.executeIdentityAttributeQueryUseCase = executeIdentityAttributeQueryUseCase;
|
|
2231
|
+
this.executeRelationshipAttributeQueryUseCase = executeRelationshipAttributeQueryUseCase;
|
|
2228
2232
|
}
|
|
2229
2233
|
async createAttribute(request) {
|
|
2230
2234
|
return await this.createAttributeUseCase.execute(request);
|
|
@@ -2235,8 +2239,8 @@ let AttributesFacade = class AttributesFacade {
|
|
|
2235
2239
|
async deleteAttribute(request) {
|
|
2236
2240
|
return await this.deleteAttributeUseCase.execute(request);
|
|
2237
2241
|
}
|
|
2238
|
-
async
|
|
2239
|
-
return await this.
|
|
2242
|
+
async getValidAttributes(request) {
|
|
2243
|
+
return await this.getValidAttributesUseCase.execute(request);
|
|
2240
2244
|
}
|
|
2241
2245
|
async getAttribute(request) {
|
|
2242
2246
|
return await this.getAttributeUseCase.execute(request);
|
|
@@ -2244,6 +2248,12 @@ let AttributesFacade = class AttributesFacade {
|
|
|
2244
2248
|
async getAttributes(request) {
|
|
2245
2249
|
return await this.getAttributesUseCase.execute(request);
|
|
2246
2250
|
}
|
|
2251
|
+
async executeIdentityAttributeQuery(request) {
|
|
2252
|
+
return await this.executeIdentityAttributeQueryUseCase.execute(request);
|
|
2253
|
+
}
|
|
2254
|
+
async executeRelationshipAttributeQuery(request) {
|
|
2255
|
+
return await this.executeRelationshipAttributeQueryUseCase.execute(request);
|
|
2256
|
+
}
|
|
2247
2257
|
async succeedAttribute(request) {
|
|
2248
2258
|
return await this.succeedAttributeUseCase.execute(request);
|
|
2249
2259
|
}
|
|
@@ -2260,14 +2270,18 @@ AttributesFacade = __decorate([
|
|
|
2260
2270
|
__param(5, typescript_ioc_1.Inject),
|
|
2261
2271
|
__param(6, typescript_ioc_1.Inject),
|
|
2262
2272
|
__param(7, typescript_ioc_1.Inject),
|
|
2273
|
+
__param(8, typescript_ioc_1.Inject),
|
|
2274
|
+
__param(9, typescript_ioc_1.Inject),
|
|
2263
2275
|
__metadata("design:paramtypes", [useCases_1.CreateAttributeUseCase,
|
|
2264
2276
|
useCases_1.CreateSharedAttributeCopyUseCase,
|
|
2265
2277
|
useCases_1.DeleteAttributeUseCase,
|
|
2266
|
-
useCases_1.
|
|
2278
|
+
useCases_1.GetValidAttributesUseCase,
|
|
2267
2279
|
useCases_1.GetAttributeUseCase,
|
|
2268
2280
|
useCases_1.GetAttributesUseCase,
|
|
2269
2281
|
useCases_1.SucceedAttributeUseCase,
|
|
2270
|
-
useCases_1.UpdateAttributeUseCase
|
|
2282
|
+
useCases_1.UpdateAttributeUseCase,
|
|
2283
|
+
ExecuteIdentityAttributeQuery_1.ExecuteIdentityAttributeQueryUseCase,
|
|
2284
|
+
ExecuteRelationshipAttributeQuery_1.ExecuteRelationshipAttributeQueryUseCase])
|
|
2271
2285
|
], AttributesFacade);
|
|
2272
2286
|
exports.AttributesFacade = AttributesFacade;
|
|
2273
2287
|
//# sourceMappingURL=AttributesFacade.js.map
|
|
@@ -3099,7 +3113,7 @@ exports.RelationshipsFacade = void 0;
|
|
|
3099
3113
|
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
3100
3114
|
const useCases_1 = __webpack_require__(/*! ../../../useCases */ "./dist/useCases/index.js");
|
|
3101
3115
|
let RelationshipsFacade = class RelationshipsFacade {
|
|
3102
|
-
constructor(getRelationshipsUseCase, getRelationshipUseCase, getRelationshipByAddressUseCase, createRelationshipUseCase, createRelationshipChangeUseCase, acceptRelationshipChangeUseCase, rejectRelationshipChangeUseCase, revokeRelationshipChangeUseCase) {
|
|
3116
|
+
constructor(getRelationshipsUseCase, getRelationshipUseCase, getRelationshipByAddressUseCase, createRelationshipUseCase, createRelationshipChangeUseCase, acceptRelationshipChangeUseCase, rejectRelationshipChangeUseCase, revokeRelationshipChangeUseCase, getAttributesForRelationshipUseCase) {
|
|
3103
3117
|
this.getRelationshipsUseCase = getRelationshipsUseCase;
|
|
3104
3118
|
this.getRelationshipUseCase = getRelationshipUseCase;
|
|
3105
3119
|
this.getRelationshipByAddressUseCase = getRelationshipByAddressUseCase;
|
|
@@ -3108,6 +3122,7 @@ let RelationshipsFacade = class RelationshipsFacade {
|
|
|
3108
3122
|
this.acceptRelationshipChangeUseCase = acceptRelationshipChangeUseCase;
|
|
3109
3123
|
this.rejectRelationshipChangeUseCase = rejectRelationshipChangeUseCase;
|
|
3110
3124
|
this.revokeRelationshipChangeUseCase = revokeRelationshipChangeUseCase;
|
|
3125
|
+
this.getAttributesForRelationshipUseCase = getAttributesForRelationshipUseCase;
|
|
3111
3126
|
}
|
|
3112
3127
|
async getRelationships(request) {
|
|
3113
3128
|
return await this.getRelationshipsUseCase.execute(request);
|
|
@@ -3133,6 +3148,9 @@ let RelationshipsFacade = class RelationshipsFacade {
|
|
|
3133
3148
|
async revokeRelationshipChange(request) {
|
|
3134
3149
|
return await this.revokeRelationshipChangeUseCase.execute(request);
|
|
3135
3150
|
}
|
|
3151
|
+
async getAttributesForRelationship(request) {
|
|
3152
|
+
return await this.getAttributesForRelationshipUseCase.execute(request);
|
|
3153
|
+
}
|
|
3136
3154
|
};
|
|
3137
3155
|
RelationshipsFacade = __decorate([
|
|
3138
3156
|
__param(0, typescript_ioc_1.Inject),
|
|
@@ -3143,6 +3161,7 @@ RelationshipsFacade = __decorate([
|
|
|
3143
3161
|
__param(5, typescript_ioc_1.Inject),
|
|
3144
3162
|
__param(6, typescript_ioc_1.Inject),
|
|
3145
3163
|
__param(7, typescript_ioc_1.Inject),
|
|
3164
|
+
__param(8, typescript_ioc_1.Inject),
|
|
3146
3165
|
__metadata("design:paramtypes", [useCases_1.GetRelationshipsUseCase,
|
|
3147
3166
|
useCases_1.GetRelationshipUseCase,
|
|
3148
3167
|
useCases_1.GetRelationshipByAddressUseCase,
|
|
@@ -3150,7 +3169,8 @@ RelationshipsFacade = __decorate([
|
|
|
3150
3169
|
useCases_1.CreateRelationshipChangeUseCase,
|
|
3151
3170
|
useCases_1.AcceptRelationshipChangeUseCase,
|
|
3152
3171
|
useCases_1.RejectRelationshipChangeUseCase,
|
|
3153
|
-
useCases_1.RevokeRelationshipChangeUseCase
|
|
3172
|
+
useCases_1.RevokeRelationshipChangeUseCase,
|
|
3173
|
+
useCases_1.GetAttributesForRelationshipUseCase])
|
|
3154
3174
|
], RelationshipsFacade);
|
|
3155
3175
|
exports.RelationshipsFacade = RelationshipsFacade;
|
|
3156
3176
|
//# sourceMappingURL=RelationshipsFacade.js.map
|
|
@@ -4612,8 +4632,8 @@ exports.JsonSchema = JsonSchema;
|
|
|
4612
4632
|
"use strict";
|
|
4613
4633
|
|
|
4614
4634
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4615
|
-
exports.
|
|
4616
|
-
exports.LoadPeerTokenRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQrCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.CreateRelationshipChangeRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileRequest = exports.LoadPeerFileRequest = exports.LoadPeerFileViaReferenceRequest = exports.LoadPeerFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQrCodeForFileRequest = void 0;
|
|
4635
|
+
exports.GetDeviceRequest = exports.DeleteDeviceRequest = exports.CreateDeviceOnboardingTokenRequest = exports.CreateDeviceRequest = exports.ValidateChallengeRequest = exports.CreateChallengeRequest = exports.CreateDeviceChallengeRequest = exports.CreateIdentityChallengeRequest = exports.CreateRelationshipChallengeRequest = exports.SyncEverythingRequest = exports.DownloadAttachmentRequest = exports.DownloadFileRequest = exports.SyncDatawalletRequest = exports.RegisterPushNotificationTokenRequest = exports.UpdateSettingRequest = exports.GetSettingsRequest = exports.GetSettingRequest = exports.DeleteSettingRequest = exports.CreateSettingRequest = exports.SentOutgoingRequestRequest = exports.RequireManualDecisionOfIncomingRequestRequest = exports.ReceivedIncomingRequestRequest = exports.GetOutgoingRequestsRequest = exports.GetOutgoingRequestRequest = exports.GetIncomingRequestsRequest = exports.GetIncomingRequestRequest = exports.CreateAndCompleteOutgoingRequestFromRelationshipCreationChangeRequest = exports.CompleteOutgoingRequestRequest = exports.CompleteIncomingRequestRequest = exports.CheckPrerequisitesOfIncomingRequestRequest = exports.RejectIncomingRequestRequest = exports.CreateOutgoingRequestRequest = exports.AcceptIncomingRequestRequest = exports.UpdateDraftRequest = exports.GetDraftsRequest = exports.GetDraftRequest = exports.DeleteDraftRequest = exports.CreateDraftRequest = exports.UpdateAttributeRequest = exports.SucceedAttributeRequest = exports.GetValidAttributesRequest = exports.GetAttributesRequest = exports.GetAttributeRequest = exports.ExecuteRelationshipAttributeQueryRequest = exports.ExecuteIdentityAttributeQueryRequest = exports.DeleteAttributeRequest = exports.CreateShareAttributeCopyRequest = exports.CreateAttributeRequest = exports.LoadPeerTokenAnonymousByTruncatedReferenceRequest = exports.LoadPeerTokenAnonymousByIdAndKeyRequest = void 0;
|
|
4636
|
+
exports.LoadPeerTokenRequest = exports.GetTokensRequest = exports.GetTokenRequest = exports.GetQRCodeForTokenRequest = exports.CreateOwnTokenRequest = exports.LoadPeerRelationshipTemplateRequest = exports.GetRelationshipTemplatesRequest = exports.GetRelationshipTemplateRequest = exports.CreateTokenQrCodeForOwnTemplateRequest = exports.CreateTokenForOwnTemplateRequest = exports.CreateOwnRelationshipTemplateRequest = exports.RevokeRelationshipChangeRequest = exports.RejectRelationshipChangeRequest = exports.GetRelationshipsRequest = exports.GetRelationshipByAddressRequest = exports.GetRelationshipRequest = exports.GetAttributesForRelationshipRequest = exports.CreateRelationshipChangeRequest = exports.CreateRelationshipRequest = exports.AcceptRelationshipChangeRequest = exports.SendMessageRequest = exports.GetMessagesRequest = exports.GetMessageRequest = exports.GetAttachmentMetadataRequest = exports.CheckIdentityRequest = exports.UploadOwnFileRequest = exports.LoadPeerFileRequest = exports.LoadPeerFileViaReferenceRequest = exports.LoadPeerFileViaSecretRequest = exports.GetFilesRequest = exports.GetFileRequest = exports.CreateTokenQrCodeForFileRequest = exports.CreateTokenForFileRequest = exports.UpdateDeviceRequest = exports.GetDeviceOnboardingInfoRequest = void 0;
|
|
4617
4637
|
exports.LoadPeerTokenAnonymousByIdAndKeyRequest = {
|
|
4618
4638
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4619
4639
|
"$ref": "#/definitions/LoadPeerTokenAnonymousByIdAndKeyRequest",
|
|
@@ -4844,6 +4864,392 @@ exports.DeleteAttributeRequest = {
|
|
|
4844
4864
|
}
|
|
4845
4865
|
}
|
|
4846
4866
|
};
|
|
4867
|
+
exports.ExecuteIdentityAttributeQueryRequest = {
|
|
4868
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4869
|
+
"$ref": "#/definitions/ExecuteIdentityAttributeQueryRequest",
|
|
4870
|
+
"definitions": {
|
|
4871
|
+
"ExecuteIdentityAttributeQueryRequest": {
|
|
4872
|
+
"type": "object",
|
|
4873
|
+
"properties": {
|
|
4874
|
+
"query": {
|
|
4875
|
+
"anyOf": [
|
|
4876
|
+
{
|
|
4877
|
+
"$ref": "#/definitions/IIdentityAttributeQuery"
|
|
4878
|
+
},
|
|
4879
|
+
{
|
|
4880
|
+
"$ref": "#/definitions/IdentityAttributeQueryJSON"
|
|
4881
|
+
}
|
|
4882
|
+
]
|
|
4883
|
+
}
|
|
4884
|
+
},
|
|
4885
|
+
"required": [
|
|
4886
|
+
"query"
|
|
4887
|
+
],
|
|
4888
|
+
"additionalProperties": false
|
|
4889
|
+
},
|
|
4890
|
+
"IIdentityAttributeQuery": {
|
|
4891
|
+
"type": "object",
|
|
4892
|
+
"properties": {
|
|
4893
|
+
"valueType": {
|
|
4894
|
+
"type": "string"
|
|
4895
|
+
},
|
|
4896
|
+
"validFrom": {
|
|
4897
|
+
"$ref": "#/definitions/ICoreDate"
|
|
4898
|
+
},
|
|
4899
|
+
"validTo": {
|
|
4900
|
+
"$ref": "#/definitions/ICoreDate"
|
|
4901
|
+
},
|
|
4902
|
+
"tags": {
|
|
4903
|
+
"type": "array",
|
|
4904
|
+
"items": {
|
|
4905
|
+
"type": "string"
|
|
4906
|
+
}
|
|
4907
|
+
}
|
|
4908
|
+
},
|
|
4909
|
+
"additionalProperties": false
|
|
4910
|
+
},
|
|
4911
|
+
"ICoreDate": {
|
|
4912
|
+
"type": "object",
|
|
4913
|
+
"properties": {
|
|
4914
|
+
"date": {
|
|
4915
|
+
"type": "string"
|
|
4916
|
+
}
|
|
4917
|
+
},
|
|
4918
|
+
"required": [
|
|
4919
|
+
"date"
|
|
4920
|
+
],
|
|
4921
|
+
"additionalProperties": false
|
|
4922
|
+
},
|
|
4923
|
+
"IdentityAttributeQueryJSON": {
|
|
4924
|
+
"type": "object",
|
|
4925
|
+
"properties": {
|
|
4926
|
+
"@type": {
|
|
4927
|
+
"type": "string"
|
|
4928
|
+
},
|
|
4929
|
+
"@context": {
|
|
4930
|
+
"type": "string"
|
|
4931
|
+
},
|
|
4932
|
+
"@version": {
|
|
4933
|
+
"type": "string"
|
|
4934
|
+
},
|
|
4935
|
+
"valueType": {
|
|
4936
|
+
"type": "string"
|
|
4937
|
+
},
|
|
4938
|
+
"validFrom": {
|
|
4939
|
+
"type": "string"
|
|
4940
|
+
},
|
|
4941
|
+
"validTo": {
|
|
4942
|
+
"type": "string"
|
|
4943
|
+
},
|
|
4944
|
+
"tags": {
|
|
4945
|
+
"type": "array",
|
|
4946
|
+
"items": {
|
|
4947
|
+
"type": "string"
|
|
4948
|
+
}
|
|
4949
|
+
}
|
|
4950
|
+
},
|
|
4951
|
+
"additionalProperties": false,
|
|
4952
|
+
"required": [
|
|
4953
|
+
"@type"
|
|
4954
|
+
]
|
|
4955
|
+
}
|
|
4956
|
+
}
|
|
4957
|
+
};
|
|
4958
|
+
exports.ExecuteRelationshipAttributeQueryRequest = {
|
|
4959
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4960
|
+
"$ref": "#/definitions/ExecuteRelationshipAttributeQueryRequest",
|
|
4961
|
+
"definitions": {
|
|
4962
|
+
"ExecuteRelationshipAttributeQueryRequest": {
|
|
4963
|
+
"type": "object",
|
|
4964
|
+
"properties": {
|
|
4965
|
+
"query": {
|
|
4966
|
+
"anyOf": [
|
|
4967
|
+
{
|
|
4968
|
+
"$ref": "#/definitions/IRelationshipAttributeQuery"
|
|
4969
|
+
},
|
|
4970
|
+
{
|
|
4971
|
+
"$ref": "#/definitions/RelationshipAttributeQueryJSON"
|
|
4972
|
+
}
|
|
4973
|
+
]
|
|
4974
|
+
}
|
|
4975
|
+
},
|
|
4976
|
+
"required": [
|
|
4977
|
+
"query"
|
|
4978
|
+
],
|
|
4979
|
+
"additionalProperties": false
|
|
4980
|
+
},
|
|
4981
|
+
"IRelationshipAttributeQuery": {
|
|
4982
|
+
"type": "object",
|
|
4983
|
+
"properties": {
|
|
4984
|
+
"valueType": {
|
|
4985
|
+
"type": "string"
|
|
4986
|
+
},
|
|
4987
|
+
"validFrom": {
|
|
4988
|
+
"$ref": "#/definitions/ICoreDate"
|
|
4989
|
+
},
|
|
4990
|
+
"validTo": {
|
|
4991
|
+
"$ref": "#/definitions/ICoreDate"
|
|
4992
|
+
},
|
|
4993
|
+
"key": {
|
|
4994
|
+
"type": "string"
|
|
4995
|
+
},
|
|
4996
|
+
"owner": {
|
|
4997
|
+
"$ref": "#/definitions/ICoreAddress"
|
|
4998
|
+
},
|
|
4999
|
+
"attributeHints": {
|
|
5000
|
+
"$ref": "#/definitions/IRelationshipAttributeHints"
|
|
5001
|
+
},
|
|
5002
|
+
"thirdParty": {
|
|
5003
|
+
"$ref": "#/definitions/ICoreAddress"
|
|
5004
|
+
}
|
|
5005
|
+
},
|
|
5006
|
+
"required": [
|
|
5007
|
+
"key",
|
|
5008
|
+
"owner",
|
|
5009
|
+
"attributeHints"
|
|
5010
|
+
],
|
|
5011
|
+
"additionalProperties": false
|
|
5012
|
+
},
|
|
5013
|
+
"ICoreDate": {
|
|
5014
|
+
"type": "object",
|
|
5015
|
+
"properties": {
|
|
5016
|
+
"date": {
|
|
5017
|
+
"type": "string"
|
|
5018
|
+
}
|
|
5019
|
+
},
|
|
5020
|
+
"required": [
|
|
5021
|
+
"date"
|
|
5022
|
+
],
|
|
5023
|
+
"additionalProperties": false
|
|
5024
|
+
},
|
|
5025
|
+
"ICoreAddress": {
|
|
5026
|
+
"type": "object",
|
|
5027
|
+
"properties": {
|
|
5028
|
+
"address": {
|
|
5029
|
+
"type": "string"
|
|
5030
|
+
}
|
|
5031
|
+
},
|
|
5032
|
+
"required": [
|
|
5033
|
+
"address"
|
|
5034
|
+
],
|
|
5035
|
+
"additionalProperties": false
|
|
5036
|
+
},
|
|
5037
|
+
"IRelationshipAttributeHints": {
|
|
5038
|
+
"type": "object",
|
|
5039
|
+
"properties": {
|
|
5040
|
+
"title": {
|
|
5041
|
+
"type": "string"
|
|
5042
|
+
},
|
|
5043
|
+
"description": {
|
|
5044
|
+
"type": "string"
|
|
5045
|
+
},
|
|
5046
|
+
"valueHints": {
|
|
5047
|
+
"$ref": "#/definitions/IValueHints"
|
|
5048
|
+
},
|
|
5049
|
+
"isTechnical": {
|
|
5050
|
+
"type": "boolean"
|
|
5051
|
+
},
|
|
5052
|
+
"confidentiality": {
|
|
5053
|
+
"$ref": "#/definitions/RelationshipAttributeConfidentiality"
|
|
5054
|
+
}
|
|
5055
|
+
},
|
|
5056
|
+
"required": [
|
|
5057
|
+
"title",
|
|
5058
|
+
"confidentiality"
|
|
5059
|
+
],
|
|
5060
|
+
"additionalProperties": false
|
|
5061
|
+
},
|
|
5062
|
+
"IValueHints": {
|
|
5063
|
+
"type": "object",
|
|
5064
|
+
"properties": {
|
|
5065
|
+
"editHelp": {
|
|
5066
|
+
"type": "string"
|
|
5067
|
+
},
|
|
5068
|
+
"min": {
|
|
5069
|
+
"type": "number"
|
|
5070
|
+
},
|
|
5071
|
+
"max": {
|
|
5072
|
+
"type": "number"
|
|
5073
|
+
},
|
|
5074
|
+
"pattern": {
|
|
5075
|
+
"type": "string"
|
|
5076
|
+
},
|
|
5077
|
+
"values": {
|
|
5078
|
+
"type": "array",
|
|
5079
|
+
"items": {
|
|
5080
|
+
"$ref": "#/definitions/IValueHintsValue"
|
|
5081
|
+
}
|
|
5082
|
+
},
|
|
5083
|
+
"defaultValue": {
|
|
5084
|
+
"type": [
|
|
5085
|
+
"string",
|
|
5086
|
+
"number",
|
|
5087
|
+
"boolean"
|
|
5088
|
+
]
|
|
5089
|
+
}
|
|
5090
|
+
},
|
|
5091
|
+
"additionalProperties": false
|
|
5092
|
+
},
|
|
5093
|
+
"IValueHintsValue": {
|
|
5094
|
+
"type": "object",
|
|
5095
|
+
"properties": {
|
|
5096
|
+
"key": {
|
|
5097
|
+
"type": [
|
|
5098
|
+
"string",
|
|
5099
|
+
"number",
|
|
5100
|
+
"boolean"
|
|
5101
|
+
]
|
|
5102
|
+
},
|
|
5103
|
+
"displayName": {
|
|
5104
|
+
"type": "string"
|
|
5105
|
+
}
|
|
5106
|
+
},
|
|
5107
|
+
"required": [
|
|
5108
|
+
"key",
|
|
5109
|
+
"displayName"
|
|
5110
|
+
],
|
|
5111
|
+
"additionalProperties": false
|
|
5112
|
+
},
|
|
5113
|
+
"RelationshipAttributeConfidentiality": {
|
|
5114
|
+
"type": "string",
|
|
5115
|
+
"enum": [
|
|
5116
|
+
"public",
|
|
5117
|
+
"private",
|
|
5118
|
+
"protected"
|
|
5119
|
+
]
|
|
5120
|
+
},
|
|
5121
|
+
"RelationshipAttributeQueryJSON": {
|
|
5122
|
+
"type": "object",
|
|
5123
|
+
"properties": {
|
|
5124
|
+
"@type": {
|
|
5125
|
+
"type": "string"
|
|
5126
|
+
},
|
|
5127
|
+
"@context": {
|
|
5128
|
+
"type": "string"
|
|
5129
|
+
},
|
|
5130
|
+
"@version": {
|
|
5131
|
+
"type": "string"
|
|
5132
|
+
},
|
|
5133
|
+
"valueType": {
|
|
5134
|
+
"type": "string"
|
|
5135
|
+
},
|
|
5136
|
+
"validFrom": {
|
|
5137
|
+
"type": "string"
|
|
5138
|
+
},
|
|
5139
|
+
"validTo": {
|
|
5140
|
+
"type": "string"
|
|
5141
|
+
},
|
|
5142
|
+
"key": {
|
|
5143
|
+
"type": "string"
|
|
5144
|
+
},
|
|
5145
|
+
"owner": {
|
|
5146
|
+
"type": "string"
|
|
5147
|
+
},
|
|
5148
|
+
"attributeHints": {
|
|
5149
|
+
"$ref": "#/definitions/RelationshipAttributeHintsJSON"
|
|
5150
|
+
},
|
|
5151
|
+
"thirdParty": {
|
|
5152
|
+
"type": "string"
|
|
5153
|
+
}
|
|
5154
|
+
},
|
|
5155
|
+
"required": [
|
|
5156
|
+
"@type",
|
|
5157
|
+
"attributeHints",
|
|
5158
|
+
"key",
|
|
5159
|
+
"owner"
|
|
5160
|
+
],
|
|
5161
|
+
"additionalProperties": false
|
|
5162
|
+
},
|
|
5163
|
+
"RelationshipAttributeHintsJSON": {
|
|
5164
|
+
"type": "object",
|
|
5165
|
+
"properties": {
|
|
5166
|
+
"title": {
|
|
5167
|
+
"type": "string"
|
|
5168
|
+
},
|
|
5169
|
+
"description": {
|
|
5170
|
+
"type": "string"
|
|
5171
|
+
},
|
|
5172
|
+
"valueHints": {
|
|
5173
|
+
"$ref": "#/definitions/ValueHintsJSON"
|
|
5174
|
+
},
|
|
5175
|
+
"isTechnical": {
|
|
5176
|
+
"type": "boolean"
|
|
5177
|
+
},
|
|
5178
|
+
"confidentiality": {
|
|
5179
|
+
"$ref": "#/definitions/RelationshipAttributeConfidentiality"
|
|
5180
|
+
}
|
|
5181
|
+
},
|
|
5182
|
+
"required": [
|
|
5183
|
+
"title",
|
|
5184
|
+
"confidentiality"
|
|
5185
|
+
],
|
|
5186
|
+
"additionalProperties": false
|
|
5187
|
+
},
|
|
5188
|
+
"ValueHintsJSON": {
|
|
5189
|
+
"type": "object",
|
|
5190
|
+
"properties": {
|
|
5191
|
+
"@type": {
|
|
5192
|
+
"type": "string"
|
|
5193
|
+
},
|
|
5194
|
+
"@context": {
|
|
5195
|
+
"type": "string"
|
|
5196
|
+
},
|
|
5197
|
+
"@version": {
|
|
5198
|
+
"type": "string"
|
|
5199
|
+
},
|
|
5200
|
+
"editHelp": {
|
|
5201
|
+
"type": "string"
|
|
5202
|
+
},
|
|
5203
|
+
"min": {
|
|
5204
|
+
"type": "number"
|
|
5205
|
+
},
|
|
5206
|
+
"max": {
|
|
5207
|
+
"type": "number"
|
|
5208
|
+
},
|
|
5209
|
+
"pattern": {
|
|
5210
|
+
"type": "string"
|
|
5211
|
+
},
|
|
5212
|
+
"values": {
|
|
5213
|
+
"type": "array",
|
|
5214
|
+
"items": {
|
|
5215
|
+
"$ref": "#/definitions/ValueHintsValueJSON"
|
|
5216
|
+
}
|
|
5217
|
+
},
|
|
5218
|
+
"defaultValue": {
|
|
5219
|
+
"type": [
|
|
5220
|
+
"string",
|
|
5221
|
+
"number",
|
|
5222
|
+
"boolean"
|
|
5223
|
+
]
|
|
5224
|
+
}
|
|
5225
|
+
},
|
|
5226
|
+
"additionalProperties": false,
|
|
5227
|
+
"required": [
|
|
5228
|
+
"@type"
|
|
5229
|
+
]
|
|
5230
|
+
},
|
|
5231
|
+
"ValueHintsValueJSON": {
|
|
5232
|
+
"type": "object",
|
|
5233
|
+
"properties": {
|
|
5234
|
+
"key": {
|
|
5235
|
+
"type": [
|
|
5236
|
+
"string",
|
|
5237
|
+
"number",
|
|
5238
|
+
"boolean"
|
|
5239
|
+
]
|
|
5240
|
+
},
|
|
5241
|
+
"displayName": {
|
|
5242
|
+
"type": "string"
|
|
5243
|
+
}
|
|
5244
|
+
},
|
|
5245
|
+
"required": [
|
|
5246
|
+
"key",
|
|
5247
|
+
"displayName"
|
|
5248
|
+
],
|
|
5249
|
+
"additionalProperties": false
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
};
|
|
4847
5253
|
exports.GetAttributeRequest = {
|
|
4848
5254
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4849
5255
|
"$ref": "#/definitions/GetAttributeRequest",
|
|
@@ -4863,25 +5269,117 @@ exports.GetAttributeRequest = {
|
|
|
4863
5269
|
}
|
|
4864
5270
|
}
|
|
4865
5271
|
};
|
|
4866
|
-
exports.GetAttributesRequest = {
|
|
5272
|
+
exports.GetAttributesRequest = {
|
|
5273
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5274
|
+
"$ref": "#/definitions/GetAttributesRequest",
|
|
5275
|
+
"definitions": {
|
|
5276
|
+
"GetAttributesRequest": {
|
|
5277
|
+
"type": "object",
|
|
5278
|
+
"properties": {
|
|
5279
|
+
"query": {
|
|
5280
|
+
"$ref": "#/definitions/GetAttributesRequestQuery"
|
|
5281
|
+
}
|
|
5282
|
+
},
|
|
5283
|
+
"additionalProperties": false
|
|
5284
|
+
},
|
|
5285
|
+
"GetAttributesRequestQuery": {
|
|
5286
|
+
"type": "object",
|
|
5287
|
+
"properties": {
|
|
5288
|
+
"createdAt": {
|
|
5289
|
+
"type": "string"
|
|
5290
|
+
},
|
|
5291
|
+
"content": {
|
|
5292
|
+
"type": "object",
|
|
5293
|
+
"properties": {
|
|
5294
|
+
"@type": {
|
|
5295
|
+
"type": "string"
|
|
5296
|
+
},
|
|
5297
|
+
"tags": {
|
|
5298
|
+
"type": "array",
|
|
5299
|
+
"items": {
|
|
5300
|
+
"type": "string"
|
|
5301
|
+
}
|
|
5302
|
+
},
|
|
5303
|
+
"owner": {
|
|
5304
|
+
"type": "string"
|
|
5305
|
+
},
|
|
5306
|
+
"validFrom": {
|
|
5307
|
+
"type": "string"
|
|
5308
|
+
},
|
|
5309
|
+
"validTo": {
|
|
5310
|
+
"type": "string"
|
|
5311
|
+
},
|
|
5312
|
+
"key": {
|
|
5313
|
+
"type": "string"
|
|
5314
|
+
},
|
|
5315
|
+
"isTechnical": {
|
|
5316
|
+
"type": "boolean"
|
|
5317
|
+
},
|
|
5318
|
+
"confidentiality": {
|
|
5319
|
+
"$ref": "#/definitions/RelationshipAttributeConfidentiality"
|
|
5320
|
+
},
|
|
5321
|
+
"value": {
|
|
5322
|
+
"type": "object",
|
|
5323
|
+
"properties": {
|
|
5324
|
+
"@type": {
|
|
5325
|
+
"type": "string"
|
|
5326
|
+
}
|
|
5327
|
+
},
|
|
5328
|
+
"additionalProperties": false
|
|
5329
|
+
}
|
|
5330
|
+
},
|
|
5331
|
+
"additionalProperties": false
|
|
5332
|
+
},
|
|
5333
|
+
"succeeds": {
|
|
5334
|
+
"type": "string"
|
|
5335
|
+
},
|
|
5336
|
+
"succeededBy": {
|
|
5337
|
+
"type": "string"
|
|
5338
|
+
},
|
|
5339
|
+
"shareInfo": {
|
|
5340
|
+
"type": "object",
|
|
5341
|
+
"properties": {
|
|
5342
|
+
"requestReference": {
|
|
5343
|
+
"type": "string"
|
|
5344
|
+
},
|
|
5345
|
+
"peer": {
|
|
5346
|
+
"type": "string"
|
|
5347
|
+
},
|
|
5348
|
+
"sourceAttribute": {
|
|
5349
|
+
"type": "string"
|
|
5350
|
+
}
|
|
5351
|
+
},
|
|
5352
|
+
"additionalProperties": false
|
|
5353
|
+
}
|
|
5354
|
+
},
|
|
5355
|
+
"additionalProperties": {}
|
|
5356
|
+
},
|
|
5357
|
+
"RelationshipAttributeConfidentiality": {
|
|
5358
|
+
"type": "string",
|
|
5359
|
+
"enum": [
|
|
5360
|
+
"public",
|
|
5361
|
+
"private",
|
|
5362
|
+
"protected"
|
|
5363
|
+
]
|
|
5364
|
+
}
|
|
5365
|
+
}
|
|
5366
|
+
};
|
|
5367
|
+
exports.GetValidAttributesRequest = {
|
|
4867
5368
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4868
|
-
"$ref": "#/definitions/
|
|
5369
|
+
"$ref": "#/definitions/GetValidAttributesRequest",
|
|
4869
5370
|
"definitions": {
|
|
4870
|
-
"
|
|
5371
|
+
"GetValidAttributesRequest": {
|
|
4871
5372
|
"type": "object",
|
|
4872
5373
|
"properties": {
|
|
4873
5374
|
"query": {
|
|
4874
|
-
"$ref": "#/definitions/
|
|
5375
|
+
"$ref": "#/definitions/GetValidAttributesRequestQuery"
|
|
4875
5376
|
}
|
|
4876
5377
|
},
|
|
4877
5378
|
"additionalProperties": false
|
|
4878
5379
|
},
|
|
4879
|
-
"
|
|
5380
|
+
"GetValidAttributesRequestQuery": {
|
|
4880
5381
|
"type": "object",
|
|
4881
5382
|
"properties": {
|
|
4882
|
-
"createdAt": {
|
|
4883
|
-
"type": "string"
|
|
4884
|
-
},
|
|
4885
5383
|
"content": {
|
|
4886
5384
|
"type": "object",
|
|
4887
5385
|
"properties": {
|
|
@@ -4897,12 +5395,6 @@ exports.GetAttributesRequest = {
|
|
|
4897
5395
|
"owner": {
|
|
4898
5396
|
"type": "string"
|
|
4899
5397
|
},
|
|
4900
|
-
"validFrom": {
|
|
4901
|
-
"type": "string"
|
|
4902
|
-
},
|
|
4903
|
-
"validTo": {
|
|
4904
|
-
"type": "string"
|
|
4905
|
-
},
|
|
4906
5398
|
"key": {
|
|
4907
5399
|
"type": "string"
|
|
4908
5400
|
},
|
|
@@ -5771,7 +6263,7 @@ exports.CheckPrerequisitesOfIncomingRequestRequest = {
|
|
|
5771
6263
|
"properties": {
|
|
5772
6264
|
"requestId": {
|
|
5773
6265
|
"type": "string",
|
|
5774
|
-
"pattern": "REQ[A-Za-z0-9]{
|
|
6266
|
+
"pattern": "REQ[A-Za-z0-9]{17}"
|
|
5775
6267
|
}
|
|
5776
6268
|
},
|
|
5777
6269
|
"required": [
|
|
@@ -5812,10 +6304,6 @@ exports.CompleteOutgoingRequestRequest = {
|
|
|
5812
6304
|
"CompleteOutgoingRequestRequest": {
|
|
5813
6305
|
"type": "object",
|
|
5814
6306
|
"properties": {
|
|
5815
|
-
"requestId": {
|
|
5816
|
-
"type": "string",
|
|
5817
|
-
"pattern": "REQ[A-Za-z0-9]{14}"
|
|
5818
|
-
},
|
|
5819
6307
|
"receivedResponse": {
|
|
5820
6308
|
"$ref": "#/definitions/ResponseJSON"
|
|
5821
6309
|
},
|
|
@@ -5825,7 +6313,6 @@ exports.CompleteOutgoingRequestRequest = {
|
|
|
5825
6313
|
}
|
|
5826
6314
|
},
|
|
5827
6315
|
"required": [
|
|
5828
|
-
"requestId",
|
|
5829
6316
|
"receivedResponse",
|
|
5830
6317
|
"messageId"
|
|
5831
6318
|
],
|
|
@@ -5977,7 +6464,7 @@ exports.GetIncomingRequestRequest = {
|
|
|
5977
6464
|
"properties": {
|
|
5978
6465
|
"id": {
|
|
5979
6466
|
"type": "string",
|
|
5980
|
-
"pattern": "REQ[A-Za-z0-9]{
|
|
6467
|
+
"pattern": "REQ[A-Za-z0-9]{17}"
|
|
5981
6468
|
}
|
|
5982
6469
|
},
|
|
5983
6470
|
"required": [
|
|
@@ -5995,12 +6482,12 @@ exports.GetIncomingRequestsRequest = {
|
|
|
5995
6482
|
"type": "object",
|
|
5996
6483
|
"properties": {
|
|
5997
6484
|
"query": {
|
|
5998
|
-
"$ref": "#/definitions/
|
|
6485
|
+
"$ref": "#/definitions/GetIncomingRequestsRequestQuery"
|
|
5999
6486
|
}
|
|
6000
6487
|
},
|
|
6001
6488
|
"additionalProperties": false
|
|
6002
6489
|
},
|
|
6003
|
-
"
|
|
6490
|
+
"GetIncomingRequestsRequestQuery": {
|
|
6004
6491
|
"type": "object",
|
|
6005
6492
|
"properties": {
|
|
6006
6493
|
"id": {
|
|
@@ -6107,7 +6594,7 @@ exports.GetOutgoingRequestRequest = {
|
|
|
6107
6594
|
"properties": {
|
|
6108
6595
|
"id": {
|
|
6109
6596
|
"type": "string",
|
|
6110
|
-
"pattern": "REQ[A-Za-z0-9]{
|
|
6597
|
+
"pattern": "REQ[A-Za-z0-9]{17}"
|
|
6111
6598
|
}
|
|
6112
6599
|
},
|
|
6113
6600
|
"required": [
|
|
@@ -6241,7 +6728,7 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
6241
6728
|
"requestSourceId": {
|
|
6242
6729
|
"type": "string",
|
|
6243
6730
|
"description": "The id of the Message or RelationshipTemplate in which the Response was received.",
|
|
6244
|
-
"pattern": "(MSG|RLT)[A-Za-z0-9]{
|
|
6731
|
+
"pattern": "(MSG|RLT)[A-Za-z0-9]{17}"
|
|
6245
6732
|
}
|
|
6246
6733
|
},
|
|
6247
6734
|
"required": [
|
|
@@ -6385,7 +6872,7 @@ exports.RequireManualDecisionOfIncomingRequestRequest = {
|
|
|
6385
6872
|
"properties": {
|
|
6386
6873
|
"requestId": {
|
|
6387
6874
|
"type": "string",
|
|
6388
|
-
"pattern": "REQ[A-Za-z0-9]{
|
|
6875
|
+
"pattern": "REQ[A-Za-z0-9]{17}"
|
|
6389
6876
|
}
|
|
6390
6877
|
},
|
|
6391
6878
|
"required": [
|
|
@@ -6404,7 +6891,7 @@ exports.SentOutgoingRequestRequest = {
|
|
|
6404
6891
|
"properties": {
|
|
6405
6892
|
"requestId": {
|
|
6406
6893
|
"type": "string",
|
|
6407
|
-
"pattern": "REQ[A-Za-z0-9]{
|
|
6894
|
+
"pattern": "REQ[A-Za-z0-9]{17}"
|
|
6408
6895
|
},
|
|
6409
6896
|
"messageId": {
|
|
6410
6897
|
"type": "string",
|
|
@@ -7293,6 +7780,24 @@ exports.CreateRelationshipChangeRequest = {
|
|
|
7293
7780
|
}
|
|
7294
7781
|
}
|
|
7295
7782
|
};
|
|
7783
|
+
exports.GetAttributesForRelationshipRequest = {
|
|
7784
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
7785
|
+
"$ref": "#/definitions/GetAttributesForRelationshipRequest",
|
|
7786
|
+
"definitions": {
|
|
7787
|
+
"GetAttributesForRelationshipRequest": {
|
|
7788
|
+
"type": "object",
|
|
7789
|
+
"properties": {
|
|
7790
|
+
"id": {
|
|
7791
|
+
"type": "string"
|
|
7792
|
+
}
|
|
7793
|
+
},
|
|
7794
|
+
"required": [
|
|
7795
|
+
"id"
|
|
7796
|
+
],
|
|
7797
|
+
"additionalProperties": false
|
|
7798
|
+
}
|
|
7799
|
+
}
|
|
7800
|
+
};
|
|
7296
7801
|
exports.GetRelationshipRequest = {
|
|
7297
7802
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
7298
7803
|
"$ref": "#/definitions/GetRelationshipRequest",
|
|
@@ -8136,10 +8641,10 @@ exports.DeleteAttributeUseCase = DeleteAttributeUseCase;
|
|
|
8136
8641
|
|
|
8137
8642
|
/***/ }),
|
|
8138
8643
|
|
|
8139
|
-
/***/ "./dist/useCases/consumption/attributes/
|
|
8140
|
-
|
|
8141
|
-
!*** ./dist/useCases/consumption/attributes/
|
|
8142
|
-
|
|
8644
|
+
/***/ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js":
|
|
8645
|
+
/*!*******************************************************************************!*\
|
|
8646
|
+
!*** ./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js ***!
|
|
8647
|
+
\*******************************************************************************/
|
|
8143
8648
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8144
8649
|
|
|
8145
8650
|
"use strict";
|
|
@@ -8157,28 +8662,80 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
8157
8662
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
8158
8663
|
};
|
|
8159
8664
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8160
|
-
exports.
|
|
8665
|
+
exports.ExecuteIdentityAttributeQueryUseCase = void 0;
|
|
8161
8666
|
const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
|
|
8162
8667
|
const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
|
|
8163
8668
|
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
8164
8669
|
const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
|
|
8165
8670
|
const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
|
|
8166
|
-
let
|
|
8671
|
+
let ExecuteIdentityAttributeQueryUseCase = class ExecuteIdentityAttributeQueryUseCase extends common_1.UseCase {
|
|
8167
8672
|
constructor(attributeController) {
|
|
8168
8673
|
super();
|
|
8169
8674
|
this.attributeController = attributeController;
|
|
8170
8675
|
}
|
|
8171
|
-
async executeInternal() {
|
|
8172
|
-
const
|
|
8676
|
+
async executeInternal(request) {
|
|
8677
|
+
const params = {
|
|
8678
|
+
query: request.query
|
|
8679
|
+
};
|
|
8680
|
+
const attributes = await this.attributeController.executeIdentityAttributeQuery(params);
|
|
8681
|
+
return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
|
|
8682
|
+
}
|
|
8683
|
+
};
|
|
8684
|
+
ExecuteIdentityAttributeQueryUseCase = __decorate([
|
|
8685
|
+
__param(0, typescript_ioc_1.Inject),
|
|
8686
|
+
__metadata("design:paramtypes", [consumption_1.ConsumptionAttributesController])
|
|
8687
|
+
], ExecuteIdentityAttributeQueryUseCase);
|
|
8688
|
+
exports.ExecuteIdentityAttributeQueryUseCase = ExecuteIdentityAttributeQueryUseCase;
|
|
8689
|
+
//# sourceMappingURL=ExecuteIdentityAttributeQuery.js.map
|
|
8690
|
+
|
|
8691
|
+
/***/ }),
|
|
8692
|
+
|
|
8693
|
+
/***/ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js":
|
|
8694
|
+
/*!***********************************************************************************!*\
|
|
8695
|
+
!*** ./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js ***!
|
|
8696
|
+
\***********************************************************************************/
|
|
8697
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8698
|
+
|
|
8699
|
+
"use strict";
|
|
8700
|
+
|
|
8701
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
8702
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8703
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8704
|
+
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;
|
|
8705
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8706
|
+
};
|
|
8707
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8708
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8709
|
+
};
|
|
8710
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
8711
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
8712
|
+
};
|
|
8713
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8714
|
+
exports.ExecuteRelationshipAttributeQueryUseCase = void 0;
|
|
8715
|
+
const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
|
|
8716
|
+
const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
|
|
8717
|
+
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
8718
|
+
const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
|
|
8719
|
+
const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
|
|
8720
|
+
let ExecuteRelationshipAttributeQueryUseCase = class ExecuteRelationshipAttributeQueryUseCase extends common_1.UseCase {
|
|
8721
|
+
constructor(attributeController) {
|
|
8722
|
+
super();
|
|
8723
|
+
this.attributeController = attributeController;
|
|
8724
|
+
}
|
|
8725
|
+
async executeInternal(request) {
|
|
8726
|
+
const params = {
|
|
8727
|
+
query: request.query
|
|
8728
|
+
};
|
|
8729
|
+
const attributes = await this.attributeController.executeRelationshipAttributeQuery(params);
|
|
8173
8730
|
return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
|
|
8174
8731
|
}
|
|
8175
8732
|
};
|
|
8176
|
-
|
|
8733
|
+
ExecuteRelationshipAttributeQueryUseCase = __decorate([
|
|
8177
8734
|
__param(0, typescript_ioc_1.Inject),
|
|
8178
8735
|
__metadata("design:paramtypes", [consumption_1.ConsumptionAttributesController])
|
|
8179
|
-
],
|
|
8180
|
-
exports.
|
|
8181
|
-
//# sourceMappingURL=
|
|
8736
|
+
], ExecuteRelationshipAttributeQueryUseCase);
|
|
8737
|
+
exports.ExecuteRelationshipAttributeQueryUseCase = ExecuteRelationshipAttributeQueryUseCase;
|
|
8738
|
+
//# sourceMappingURL=ExecuteRelationshipAttributeQuery.js.map
|
|
8182
8739
|
|
|
8183
8740
|
/***/ }),
|
|
8184
8741
|
|
|
@@ -8282,8 +8839,8 @@ let GetAttributesUseCase = class GetAttributesUseCase extends common_1.UseCase {
|
|
|
8282
8839
|
async executeInternal(request) {
|
|
8283
8840
|
const flattenedQuery = (0, flattenObject_1.flattenObject)(request.query);
|
|
8284
8841
|
const dbQuery = GetAttributesUseCase.queryTranslator.parse(flattenedQuery);
|
|
8285
|
-
const
|
|
8286
|
-
return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(
|
|
8842
|
+
const attributes = await this.attributeController.getConsumptionAttributes(dbQuery);
|
|
8843
|
+
return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
|
|
8287
8844
|
}
|
|
8288
8845
|
};
|
|
8289
8846
|
GetAttributesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslator({
|
|
@@ -8392,6 +8949,124 @@ exports.GetAttributesUseCase = GetAttributesUseCase;
|
|
|
8392
8949
|
|
|
8393
8950
|
/***/ }),
|
|
8394
8951
|
|
|
8952
|
+
/***/ "./dist/useCases/consumption/attributes/GetValidAttributes.js":
|
|
8953
|
+
/*!********************************************************************!*\
|
|
8954
|
+
!*** ./dist/useCases/consumption/attributes/GetValidAttributes.js ***!
|
|
8955
|
+
\********************************************************************/
|
|
8956
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8957
|
+
|
|
8958
|
+
"use strict";
|
|
8959
|
+
|
|
8960
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
8961
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8962
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8963
|
+
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;
|
|
8964
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8965
|
+
};
|
|
8966
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8967
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8968
|
+
};
|
|
8969
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
8970
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
8971
|
+
};
|
|
8972
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8973
|
+
exports.GetValidAttributesUseCase = void 0;
|
|
8974
|
+
const docdb_querytranslator_1 = __webpack_require__(/*! @js-soft/docdb-querytranslator */ "./node_modules/@js-soft/docdb-querytranslator/dist/index.js");
|
|
8975
|
+
const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
|
|
8976
|
+
const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
|
|
8977
|
+
const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_modules/ts-simple-nameof/index.js");
|
|
8978
|
+
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
8979
|
+
const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
|
|
8980
|
+
const flattenObject_1 = __webpack_require__(/*! ../requests/flattenObject */ "./dist/useCases/consumption/requests/flattenObject.js");
|
|
8981
|
+
const AttributeMapper_1 = __webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consumption/attributes/AttributeMapper.js");
|
|
8982
|
+
let GetValidAttributesUseCase = class GetValidAttributesUseCase extends common_1.UseCase {
|
|
8983
|
+
constructor(attributeController) {
|
|
8984
|
+
super();
|
|
8985
|
+
this.attributeController = attributeController;
|
|
8986
|
+
}
|
|
8987
|
+
async executeInternal(request) {
|
|
8988
|
+
const flattenedQuery = (0, flattenObject_1.flattenObject)(request.query);
|
|
8989
|
+
const dbQuery = GetValidAttributesUseCase.queryTranslator.parse(flattenedQuery);
|
|
8990
|
+
const attributes = await this.attributeController.getValidConsumptionAttributes(dbQuery);
|
|
8991
|
+
return ts_utils_1.Result.ok(AttributeMapper_1.AttributeMapper.toAttributeDTOList(attributes));
|
|
8992
|
+
}
|
|
8993
|
+
};
|
|
8994
|
+
GetValidAttributesUseCase.queryTranslator = new docdb_querytranslator_1.QueryTranslator({
|
|
8995
|
+
whitelist: {
|
|
8996
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.succeeds)]: true,
|
|
8997
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.succeededBy)]: true,
|
|
8998
|
+
// content.abstractAttribute
|
|
8999
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`]: true,
|
|
9000
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.@type`]: true,
|
|
9001
|
+
// content.identityAttribute
|
|
9002
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.tags)}`]: true,
|
|
9003
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.value)}.@type`]: true,
|
|
9004
|
+
// content.relationshipAttribute
|
|
9005
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.key)}`]: true,
|
|
9006
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.isTechnical)}`]: true,
|
|
9007
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.confidentiality)}`]: true,
|
|
9008
|
+
// content.shareInfo
|
|
9009
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: true,
|
|
9010
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.requestReference)}`]: true,
|
|
9011
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.sourceAttribute)}`]: true
|
|
9012
|
+
},
|
|
9013
|
+
alias: {
|
|
9014
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.succeeds)]: [(0, ts_simple_nameof_1.nameof)((x) => x.succeeds)],
|
|
9015
|
+
[(0, ts_simple_nameof_1.nameof)((x) => x.succeededBy)]: [(0, ts_simple_nameof_1.nameof)((x) => x.succeededBy)],
|
|
9016
|
+
// content.abstractAttribute
|
|
9017
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`]: [
|
|
9018
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`
|
|
9019
|
+
],
|
|
9020
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.@type`]: [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.@type`],
|
|
9021
|
+
// content.identityAttribute
|
|
9022
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.tags)}`]: [
|
|
9023
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.tags)}`
|
|
9024
|
+
],
|
|
9025
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.value)}.@type`]: [
|
|
9026
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.value)}.@type`
|
|
9027
|
+
],
|
|
9028
|
+
// content.relationshipAttribute
|
|
9029
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.key)}`]: [
|
|
9030
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.key)}`
|
|
9031
|
+
],
|
|
9032
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.isTechnical)}`]: [
|
|
9033
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.isTechnical)}`
|
|
9034
|
+
],
|
|
9035
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.confidentiality)}`]: [
|
|
9036
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.confidentiality)}`
|
|
9037
|
+
],
|
|
9038
|
+
// content.shareInfo
|
|
9039
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: [
|
|
9040
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`
|
|
9041
|
+
],
|
|
9042
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.requestReference)}`]: [
|
|
9043
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.requestReference)}`
|
|
9044
|
+
],
|
|
9045
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.sourceAttribute)}`]: [
|
|
9046
|
+
`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.sourceAttribute)}`
|
|
9047
|
+
]
|
|
9048
|
+
},
|
|
9049
|
+
custom: {
|
|
9050
|
+
// content.tags
|
|
9051
|
+
[`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.tags)}`]: (query, input) => {
|
|
9052
|
+
const allowedTags = [];
|
|
9053
|
+
for (const tag of input) {
|
|
9054
|
+
const tagQuery = { [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.tags)}`]: { $contains: tag } };
|
|
9055
|
+
allowedTags.push(tagQuery);
|
|
9056
|
+
}
|
|
9057
|
+
query["$or"] = allowedTags;
|
|
9058
|
+
}
|
|
9059
|
+
}
|
|
9060
|
+
});
|
|
9061
|
+
GetValidAttributesUseCase = __decorate([
|
|
9062
|
+
__param(0, typescript_ioc_1.Inject),
|
|
9063
|
+
__metadata("design:paramtypes", [consumption_1.ConsumptionAttributesController])
|
|
9064
|
+
], GetValidAttributesUseCase);
|
|
9065
|
+
exports.GetValidAttributesUseCase = GetValidAttributesUseCase;
|
|
9066
|
+
//# sourceMappingURL=GetValidAttributes.js.map
|
|
9067
|
+
|
|
9068
|
+
/***/ }),
|
|
9069
|
+
|
|
8395
9070
|
/***/ "./dist/useCases/consumption/attributes/SucceedAttribute.js":
|
|
8396
9071
|
/*!******************************************************************!*\
|
|
8397
9072
|
!*** ./dist/useCases/consumption/attributes/SucceedAttribute.js ***!
|
|
@@ -8551,9 +9226,11 @@ __exportStar(__webpack_require__(/*! ./AttributeMapper */ "./dist/useCases/consu
|
|
|
8551
9226
|
__exportStar(__webpack_require__(/*! ./CreateAttribute */ "./dist/useCases/consumption/attributes/CreateAttribute.js"), exports);
|
|
8552
9227
|
__exportStar(__webpack_require__(/*! ./CreateShareAttributeCopy */ "./dist/useCases/consumption/attributes/CreateShareAttributeCopy.js"), exports);
|
|
8553
9228
|
__exportStar(__webpack_require__(/*! ./DeleteAttribute */ "./dist/useCases/consumption/attributes/DeleteAttribute.js"), exports);
|
|
8554
|
-
__exportStar(__webpack_require__(/*! ./
|
|
9229
|
+
__exportStar(__webpack_require__(/*! ./ExecuteIdentityAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteIdentityAttributeQuery.js"), exports);
|
|
9230
|
+
__exportStar(__webpack_require__(/*! ./ExecuteRelationshipAttributeQuery */ "./dist/useCases/consumption/attributes/ExecuteRelationshipAttributeQuery.js"), exports);
|
|
8555
9231
|
__exportStar(__webpack_require__(/*! ./GetAttribute */ "./dist/useCases/consumption/attributes/GetAttribute.js"), exports);
|
|
8556
9232
|
__exportStar(__webpack_require__(/*! ./GetAttributes */ "./dist/useCases/consumption/attributes/GetAttributes.js"), exports);
|
|
9233
|
+
__exportStar(__webpack_require__(/*! ./GetValidAttributes */ "./dist/useCases/consumption/attributes/GetValidAttributes.js"), exports);
|
|
8557
9234
|
__exportStar(__webpack_require__(/*! ./SucceedAttribute */ "./dist/useCases/consumption/attributes/SucceedAttribute.js"), exports);
|
|
8558
9235
|
__exportStar(__webpack_require__(/*! ./UpdateAttribute */ "./dist/useCases/consumption/attributes/UpdateAttribute.js"), exports);
|
|
8559
9236
|
//# sourceMappingURL=index.js.map
|
|
@@ -9347,6 +10024,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
9347
10024
|
exports.CompleteOutgoingRequestUseCase = void 0;
|
|
9348
10025
|
const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
|
|
9349
10026
|
const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
|
|
10027
|
+
const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
|
|
9350
10028
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
9351
10029
|
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
9352
10030
|
const events_1 = __webpack_require__(/*! ../../../events */ "./dist/events/index.js");
|
|
@@ -9374,9 +10052,8 @@ let CompleteOutgoingRequestUseCase = class CompleteOutgoingRequestUseCase extend
|
|
|
9374
10052
|
return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(transport_1.Message));
|
|
9375
10053
|
}
|
|
9376
10054
|
const params = {
|
|
9377
|
-
requestId: transport_1.CoreId.from(request.requestId),
|
|
9378
|
-
|
|
9379
|
-
receivedResponse: request.receivedResponse,
|
|
10055
|
+
requestId: transport_1.CoreId.from(request.receivedResponse.requestId),
|
|
10056
|
+
receivedResponse: content_1.Response.fromAny(request.receivedResponse),
|
|
9380
10057
|
responseSourceObject: message
|
|
9381
10058
|
};
|
|
9382
10059
|
const consumptionRequest = await this.outgoingRequestsController.complete(params);
|
|
@@ -14058,6 +14735,81 @@ exports.CreateRelationshipChangeUseCase = CreateRelationshipChangeUseCase;
|
|
|
14058
14735
|
|
|
14059
14736
|
/***/ }),
|
|
14060
14737
|
|
|
14738
|
+
/***/ "./dist/useCases/transport/relationships/GetAttributesForRelationship.js":
|
|
14739
|
+
/*!*******************************************************************************!*\
|
|
14740
|
+
!*** ./dist/useCases/transport/relationships/GetAttributesForRelationship.js ***!
|
|
14741
|
+
\*******************************************************************************/
|
|
14742
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
14743
|
+
|
|
14744
|
+
"use strict";
|
|
14745
|
+
|
|
14746
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
14747
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14748
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14749
|
+
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;
|
|
14750
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14751
|
+
};
|
|
14752
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
14753
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14754
|
+
};
|
|
14755
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
14756
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
14757
|
+
};
|
|
14758
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14759
|
+
exports.GetAttributesForRelationshipUseCase = void 0;
|
|
14760
|
+
const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
|
|
14761
|
+
const consumption_1 = __webpack_require__(/*! @nmshd/consumption */ "@nmshd/consumption");
|
|
14762
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
14763
|
+
const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_modules/ts-simple-nameof/index.js");
|
|
14764
|
+
const typescript_ioc_1 = __webpack_require__(/*! typescript-ioc */ "./node_modules/typescript-ioc/dist/typescript-ioc.js");
|
|
14765
|
+
const common_1 = __webpack_require__(/*! ../../common */ "./dist/useCases/common/index.js");
|
|
14766
|
+
const consumption_2 = __webpack_require__(/*! ../../consumption */ "./dist/useCases/consumption/index.js");
|
|
14767
|
+
let Validator = class Validator extends common_1.SchemaValidator {
|
|
14768
|
+
constructor(schemaRepository) {
|
|
14769
|
+
super(schemaRepository.getSchema("GetRelationshipRequest"));
|
|
14770
|
+
}
|
|
14771
|
+
};
|
|
14772
|
+
Validator = __decorate([
|
|
14773
|
+
__param(0, typescript_ioc_1.Inject),
|
|
14774
|
+
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
14775
|
+
], Validator);
|
|
14776
|
+
let GetAttributesForRelationshipUseCase = class GetAttributesForRelationshipUseCase extends common_1.UseCase {
|
|
14777
|
+
constructor(relationshipsController, attributesController, validator) {
|
|
14778
|
+
super(validator);
|
|
14779
|
+
this.relationshipsController = relationshipsController;
|
|
14780
|
+
this.attributesController = attributesController;
|
|
14781
|
+
}
|
|
14782
|
+
async executeInternal(request) {
|
|
14783
|
+
const relationship = await this.relationshipsController.getRelationship(transport_1.CoreId.from(request.id));
|
|
14784
|
+
if (!relationship) {
|
|
14785
|
+
return ts_utils_1.Result.fail(common_1.RuntimeErrors.general.recordNotFound(transport_1.Relationship));
|
|
14786
|
+
}
|
|
14787
|
+
const peerAddress = relationship.peer.address.toString();
|
|
14788
|
+
const query = {
|
|
14789
|
+
$or: [
|
|
14790
|
+
// content.owner
|
|
14791
|
+
{ [`${(0, ts_simple_nameof_1.nameof)((x) => x.content)}.${(0, ts_simple_nameof_1.nameof)((x) => x.owner)}`]: peerAddress },
|
|
14792
|
+
// shareInfo.peer
|
|
14793
|
+
{ [`${(0, ts_simple_nameof_1.nameof)((x) => x.shareInfo)}.${(0, ts_simple_nameof_1.nameof)((x) => x.peer)}`]: peerAddress }
|
|
14794
|
+
]
|
|
14795
|
+
};
|
|
14796
|
+
const attributes = await this.attributesController.getConsumptionAttributes(query);
|
|
14797
|
+
return ts_utils_1.Result.ok(consumption_2.AttributeMapper.toAttributeDTOList(attributes));
|
|
14798
|
+
}
|
|
14799
|
+
};
|
|
14800
|
+
GetAttributesForRelationshipUseCase = __decorate([
|
|
14801
|
+
__param(0, typescript_ioc_1.Inject),
|
|
14802
|
+
__param(1, typescript_ioc_1.Inject),
|
|
14803
|
+
__param(2, typescript_ioc_1.Inject),
|
|
14804
|
+
__metadata("design:paramtypes", [transport_1.RelationshipsController,
|
|
14805
|
+
consumption_1.ConsumptionAttributesController,
|
|
14806
|
+
Validator])
|
|
14807
|
+
], GetAttributesForRelationshipUseCase);
|
|
14808
|
+
exports.GetAttributesForRelationshipUseCase = GetAttributesForRelationshipUseCase;
|
|
14809
|
+
//# sourceMappingURL=GetAttributesForRelationship.js.map
|
|
14810
|
+
|
|
14811
|
+
/***/ }),
|
|
14812
|
+
|
|
14061
14813
|
/***/ "./dist/useCases/transport/relationships/GetRelationship.js":
|
|
14062
14814
|
/*!******************************************************************!*\
|
|
14063
14815
|
!*** ./dist/useCases/transport/relationships/GetRelationship.js ***!
|
|
@@ -14490,6 +15242,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
14490
15242
|
__exportStar(__webpack_require__(/*! ./AcceptRelationshipChange */ "./dist/useCases/transport/relationships/AcceptRelationshipChange.js"), exports);
|
|
14491
15243
|
__exportStar(__webpack_require__(/*! ./CreateRelationship */ "./dist/useCases/transport/relationships/CreateRelationship.js"), exports);
|
|
14492
15244
|
__exportStar(__webpack_require__(/*! ./CreateRelationshipChange */ "./dist/useCases/transport/relationships/CreateRelationshipChange.js"), exports);
|
|
15245
|
+
__exportStar(__webpack_require__(/*! ./GetAttributesForRelationship */ "./dist/useCases/transport/relationships/GetAttributesForRelationship.js"), exports);
|
|
14493
15246
|
__exportStar(__webpack_require__(/*! ./GetRelationship */ "./dist/useCases/transport/relationships/GetRelationship.js"), exports);
|
|
14494
15247
|
__exportStar(__webpack_require__(/*! ./GetRelationshipByAddress */ "./dist/useCases/transport/relationships/GetRelationshipByAddress.js"), exports);
|
|
14495
15248
|
__exportStar(__webpack_require__(/*! ./GetRelationships */ "./dist/useCases/transport/relationships/GetRelationships.js"), exports);
|