@nmshd/runtime 2.7.3 → 2.8.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.js +31 -1
- package/dist/dataViews/DataViewExpander.js.map +1 -1
- package/dist/dataViews/consumption/LocalAttributeDVO.d.ts +1 -0
- package/dist/dataViews/content/AttributeDVOs.d.ts +6 -1
- package/dist/useCases/common/Schemas.js +273 -0
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/lib-web/nmshd.runtime.js +309 -6
- 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 +6 -6
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.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.9","@js-soft/ts-utils":"^2.3.1","@nmshd/consumption":"3.3.2","@nmshd/content":"2.7.
|
|
551
|
+
version: "2.8.0",
|
|
552
|
+
build: "169",
|
|
553
|
+
date: "2023-10-06T06:06:26+00:00",
|
|
554
|
+
commit: "8a871bfb25facb8a349ce65cb1763632a779f77c",
|
|
555
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.1.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.9","@js-soft/ts-utils":"^2.3.1","@nmshd/consumption":"3.3.2","@nmshd/content":"2.7.3","@nmshd/crypto":"2.0.4","@nmshd/transport":"2.1.2","ajv":"^8.12.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.4.3","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,
|
|
@@ -1539,13 +1539,33 @@ let DataViewExpander = class DataViewExpander {
|
|
|
1539
1539
|
expandIQLQuery(query) {
|
|
1540
1540
|
const name = "i18n://dvo.attributeQuery.name.IQLQuery";
|
|
1541
1541
|
const description = "i18n://dvo.attributeQuery.description.IQLQuery";
|
|
1542
|
+
let renderHints;
|
|
1543
|
+
let valueHints;
|
|
1544
|
+
let valueType;
|
|
1545
|
+
let tags;
|
|
1546
|
+
if (query.attributeCreationHints?.valueType) {
|
|
1547
|
+
valueType = query.attributeCreationHints.valueType;
|
|
1548
|
+
}
|
|
1549
|
+
if (valueType) {
|
|
1550
|
+
const hints = this.getHintsForValueType(valueType);
|
|
1551
|
+
renderHints = hints.renderHints;
|
|
1552
|
+
valueHints = hints.valueHints;
|
|
1553
|
+
}
|
|
1554
|
+
if (query.attributeCreationHints?.tags) {
|
|
1555
|
+
tags = query.attributeCreationHints.tags;
|
|
1556
|
+
}
|
|
1542
1557
|
return {
|
|
1543
1558
|
type: "IQLQueryDVO",
|
|
1544
1559
|
id: "",
|
|
1545
1560
|
name,
|
|
1546
1561
|
description,
|
|
1547
1562
|
queryString: query.queryString,
|
|
1548
|
-
isProcessed: false
|
|
1563
|
+
isProcessed: false,
|
|
1564
|
+
attributeCreationHints: query.attributeCreationHints,
|
|
1565
|
+
valueType,
|
|
1566
|
+
renderHints,
|
|
1567
|
+
valueHints,
|
|
1568
|
+
tags
|
|
1549
1569
|
};
|
|
1550
1570
|
}
|
|
1551
1571
|
getHintsForValueType(valueType) {
|
|
@@ -1640,6 +1660,16 @@ let DataViewExpander = class DataViewExpander {
|
|
|
1640
1660
|
renderHints = matchedAttributeDVOs[0].renderHints;
|
|
1641
1661
|
valueHints = matchedAttributeDVOs[0].valueHints;
|
|
1642
1662
|
}
|
|
1663
|
+
else {
|
|
1664
|
+
if (query.attributeCreationHints?.valueType) {
|
|
1665
|
+
valueType = query.attributeCreationHints.valueType;
|
|
1666
|
+
}
|
|
1667
|
+
if (valueType) {
|
|
1668
|
+
const hints = this.getHintsForValueType(valueType);
|
|
1669
|
+
renderHints = hints.renderHints;
|
|
1670
|
+
valueHints = hints.valueHints;
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1643
1673
|
return {
|
|
1644
1674
|
...this.expandIQLQuery(query),
|
|
1645
1675
|
type: "ProcessedIQLQueryDVO",
|
|
@@ -8832,6 +8862,9 @@ exports.ExecuteIQLQueryRequest = {
|
|
|
8832
8862
|
"properties": {
|
|
8833
8863
|
"queryString": {
|
|
8834
8864
|
"type": "string"
|
|
8865
|
+
},
|
|
8866
|
+
"attributeCreationHints": {
|
|
8867
|
+
"$ref": "#/definitions/IIQLQueryCreationHints"
|
|
8835
8868
|
}
|
|
8836
8869
|
},
|
|
8837
8870
|
"required": [
|
|
@@ -8839,6 +8872,87 @@ exports.ExecuteIQLQueryRequest = {
|
|
|
8839
8872
|
],
|
|
8840
8873
|
"additionalProperties": false
|
|
8841
8874
|
},
|
|
8875
|
+
"IIQLQueryCreationHints": {
|
|
8876
|
+
"type": "object",
|
|
8877
|
+
"properties": {
|
|
8878
|
+
"valueType": {
|
|
8879
|
+
"$ref": "#/definitions/AttributeValues.Identity.TypeName"
|
|
8880
|
+
},
|
|
8881
|
+
"tags": {
|
|
8882
|
+
"type": "array",
|
|
8883
|
+
"items": {
|
|
8884
|
+
"type": "string"
|
|
8885
|
+
}
|
|
8886
|
+
}
|
|
8887
|
+
},
|
|
8888
|
+
"required": [
|
|
8889
|
+
"valueType"
|
|
8890
|
+
],
|
|
8891
|
+
"additionalProperties": false
|
|
8892
|
+
},
|
|
8893
|
+
"AttributeValues.Identity.TypeName": {
|
|
8894
|
+
"anyOf": [
|
|
8895
|
+
{
|
|
8896
|
+
"$ref": "#/definitions/AttributeValues.Identity.Editable.TypeName"
|
|
8897
|
+
},
|
|
8898
|
+
{
|
|
8899
|
+
"$ref": "#/definitions/AttributeValues.Identity.Uneditable.TypeName"
|
|
8900
|
+
}
|
|
8901
|
+
]
|
|
8902
|
+
},
|
|
8903
|
+
"AttributeValues.Identity.Editable.TypeName": {
|
|
8904
|
+
"type": "string",
|
|
8905
|
+
"enum": [
|
|
8906
|
+
"Affiliation",
|
|
8907
|
+
"BirthDate",
|
|
8908
|
+
"BirthName",
|
|
8909
|
+
"BirthPlace",
|
|
8910
|
+
"Citizenship",
|
|
8911
|
+
"CommunicationLanguage",
|
|
8912
|
+
"DeliveryBoxAddress",
|
|
8913
|
+
"DisplayName",
|
|
8914
|
+
"EMailAddress",
|
|
8915
|
+
"FaxNumber",
|
|
8916
|
+
"IdentityFileReference",
|
|
8917
|
+
"SchematizedXML",
|
|
8918
|
+
"JobTitle",
|
|
8919
|
+
"Nationality",
|
|
8920
|
+
"PersonName",
|
|
8921
|
+
"PhoneNumber",
|
|
8922
|
+
"PostOfficeBoxAddress",
|
|
8923
|
+
"Pseudonym",
|
|
8924
|
+
"Sex",
|
|
8925
|
+
"StreetAddress",
|
|
8926
|
+
"Website"
|
|
8927
|
+
]
|
|
8928
|
+
},
|
|
8929
|
+
"AttributeValues.Identity.Uneditable.TypeName": {
|
|
8930
|
+
"type": "string",
|
|
8931
|
+
"enum": [
|
|
8932
|
+
"AffiliationOrganization",
|
|
8933
|
+
"AffiliationRole",
|
|
8934
|
+
"AffiliationUnit",
|
|
8935
|
+
"BirthCity",
|
|
8936
|
+
"BirthCountry",
|
|
8937
|
+
"BirthDay",
|
|
8938
|
+
"BirthMonth",
|
|
8939
|
+
"BirthState",
|
|
8940
|
+
"BirthYear",
|
|
8941
|
+
"City",
|
|
8942
|
+
"Country",
|
|
8943
|
+
"GivenName",
|
|
8944
|
+
"HonorificPrefix",
|
|
8945
|
+
"HonorificSuffix",
|
|
8946
|
+
"HouseNumber",
|
|
8947
|
+
"MiddleName",
|
|
8948
|
+
"SchematizedXML",
|
|
8949
|
+
"State",
|
|
8950
|
+
"Statement",
|
|
8951
|
+
"Street",
|
|
8952
|
+
"Surname",
|
|
8953
|
+
"ZipCode"
|
|
8954
|
+
]
|
|
8955
|
+
},
|
|
8842
8956
|
"IQLQueryJSON": {
|
|
8843
8957
|
"type": "object",
|
|
8844
8958
|
"properties": {
|
|
@@ -8854,6 +8968,9 @@ exports.ExecuteIQLQueryRequest = {
|
|
|
8854
8968
|
},
|
|
8855
8969
|
"queryString": {
|
|
8856
8970
|
"type": "string"
|
|
8971
|
+
},
|
|
8972
|
+
"attributeCreationHints": {
|
|
8973
|
+
"$ref": "#/definitions/IQLQueryCreationHintsJSON"
|
|
8857
8974
|
}
|
|
8858
8975
|
},
|
|
8859
8976
|
"required": [
|
|
@@ -8861,6 +8978,24 @@ exports.ExecuteIQLQueryRequest = {
|
|
|
8861
8978
|
"queryString"
|
|
8862
8979
|
],
|
|
8863
8980
|
"additionalProperties": false
|
|
8981
|
+
},
|
|
8982
|
+
"IQLQueryCreationHintsJSON": {
|
|
8983
|
+
"type": "object",
|
|
8984
|
+
"properties": {
|
|
8985
|
+
"valueType": {
|
|
8986
|
+
"$ref": "#/definitions/AttributeValues.Identity.TypeName"
|
|
8987
|
+
},
|
|
8988
|
+
"tags": {
|
|
8989
|
+
"type": "array",
|
|
8990
|
+
"items": {
|
|
8991
|
+
"type": "string"
|
|
8992
|
+
}
|
|
8993
|
+
}
|
|
8994
|
+
},
|
|
8995
|
+
"required": [
|
|
8996
|
+
"valueType"
|
|
8997
|
+
],
|
|
8998
|
+
"additionalProperties": false
|
|
8864
8999
|
}
|
|
8865
9000
|
}
|
|
8866
9001
|
};
|
|
@@ -12640,6 +12775,9 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
12640
12775
|
},
|
|
12641
12776
|
"queryString": {
|
|
12642
12777
|
"type": "string"
|
|
12778
|
+
},
|
|
12779
|
+
"attributeCreationHints": {
|
|
12780
|
+
"$ref": "#/definitions/IQLQueryCreationHintsJSON"
|
|
12643
12781
|
}
|
|
12644
12782
|
},
|
|
12645
12783
|
"required": [
|
|
@@ -12648,6 +12786,24 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
12648
12786
|
],
|
|
12649
12787
|
"additionalProperties": false
|
|
12650
12788
|
},
|
|
12789
|
+
"IQLQueryCreationHintsJSON": {
|
|
12790
|
+
"type": "object",
|
|
12791
|
+
"properties": {
|
|
12792
|
+
"valueType": {
|
|
12793
|
+
"$ref": "#/definitions/AttributeValues.Identity.TypeName"
|
|
12794
|
+
},
|
|
12795
|
+
"tags": {
|
|
12796
|
+
"type": "array",
|
|
12797
|
+
"items": {
|
|
12798
|
+
"type": "string"
|
|
12799
|
+
}
|
|
12800
|
+
}
|
|
12801
|
+
},
|
|
12802
|
+
"required": [
|
|
12803
|
+
"valueType"
|
|
12804
|
+
],
|
|
12805
|
+
"additionalProperties": false
|
|
12806
|
+
},
|
|
12651
12807
|
"ReadAttributeRequestItemJSON": {
|
|
12652
12808
|
"type": "object",
|
|
12653
12809
|
"properties": {
|
|
@@ -20830,6 +20986,9 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
20830
20986
|
},
|
|
20831
20987
|
"queryString": {
|
|
20832
20988
|
"type": "string"
|
|
20989
|
+
},
|
|
20990
|
+
"attributeCreationHints": {
|
|
20991
|
+
"$ref": "#/definitions/IQLQueryCreationHintsJSON"
|
|
20833
20992
|
}
|
|
20834
20993
|
},
|
|
20835
20994
|
"required": [
|
|
@@ -20838,6 +20997,24 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
20838
20997
|
],
|
|
20839
20998
|
"additionalProperties": false
|
|
20840
20999
|
},
|
|
21000
|
+
"IQLQueryCreationHintsJSON": {
|
|
21001
|
+
"type": "object",
|
|
21002
|
+
"properties": {
|
|
21003
|
+
"valueType": {
|
|
21004
|
+
"$ref": "#/definitions/AttributeValues.Identity.TypeName"
|
|
21005
|
+
},
|
|
21006
|
+
"tags": {
|
|
21007
|
+
"type": "array",
|
|
21008
|
+
"items": {
|
|
21009
|
+
"type": "string"
|
|
21010
|
+
}
|
|
21011
|
+
}
|
|
21012
|
+
},
|
|
21013
|
+
"required": [
|
|
21014
|
+
"valueType"
|
|
21015
|
+
],
|
|
21016
|
+
"additionalProperties": false
|
|
21017
|
+
},
|
|
20841
21018
|
"ReadAttributeRequestItemJSON": {
|
|
20842
21019
|
"type": "object",
|
|
20843
21020
|
"properties": {
|
|
@@ -24273,6 +24450,9 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
24273
24450
|
},
|
|
24274
24451
|
"queryString": {
|
|
24275
24452
|
"type": "string"
|
|
24453
|
+
},
|
|
24454
|
+
"attributeCreationHints": {
|
|
24455
|
+
"$ref": "#/definitions/IQLQueryCreationHintsJSON"
|
|
24276
24456
|
}
|
|
24277
24457
|
},
|
|
24278
24458
|
"required": [
|
|
@@ -24281,6 +24461,24 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
24281
24461
|
],
|
|
24282
24462
|
"additionalProperties": false
|
|
24283
24463
|
},
|
|
24464
|
+
"IQLQueryCreationHintsJSON": {
|
|
24465
|
+
"type": "object",
|
|
24466
|
+
"properties": {
|
|
24467
|
+
"valueType": {
|
|
24468
|
+
"$ref": "#/definitions/AttributeValues.Identity.TypeName"
|
|
24469
|
+
},
|
|
24470
|
+
"tags": {
|
|
24471
|
+
"type": "array",
|
|
24472
|
+
"items": {
|
|
24473
|
+
"type": "string"
|
|
24474
|
+
}
|
|
24475
|
+
}
|
|
24476
|
+
},
|
|
24477
|
+
"required": [
|
|
24478
|
+
"valueType"
|
|
24479
|
+
],
|
|
24480
|
+
"additionalProperties": false
|
|
24481
|
+
},
|
|
24284
24482
|
"ReadAttributeRequestItemJSON": {
|
|
24285
24483
|
"type": "object",
|
|
24286
24484
|
"properties": {
|
|
@@ -28991,6 +29189,9 @@ exports.ValidateIQLQueryRequest = {
|
|
|
28991
29189
|
"properties": {
|
|
28992
29190
|
"queryString": {
|
|
28993
29191
|
"type": "string"
|
|
29192
|
+
},
|
|
29193
|
+
"attributeCreationHints": {
|
|
29194
|
+
"$ref": "#/definitions/IIQLQueryCreationHints"
|
|
28994
29195
|
}
|
|
28995
29196
|
},
|
|
28996
29197
|
"required": [
|
|
@@ -28998,6 +29199,87 @@ exports.ValidateIQLQueryRequest = {
|
|
|
28998
29199
|
],
|
|
28999
29200
|
"additionalProperties": false
|
|
29000
29201
|
},
|
|
29202
|
+
"IIQLQueryCreationHints": {
|
|
29203
|
+
"type": "object",
|
|
29204
|
+
"properties": {
|
|
29205
|
+
"valueType": {
|
|
29206
|
+
"$ref": "#/definitions/AttributeValues.Identity.TypeName"
|
|
29207
|
+
},
|
|
29208
|
+
"tags": {
|
|
29209
|
+
"type": "array",
|
|
29210
|
+
"items": {
|
|
29211
|
+
"type": "string"
|
|
29212
|
+
}
|
|
29213
|
+
}
|
|
29214
|
+
},
|
|
29215
|
+
"required": [
|
|
29216
|
+
"valueType"
|
|
29217
|
+
],
|
|
29218
|
+
"additionalProperties": false
|
|
29219
|
+
},
|
|
29220
|
+
"AttributeValues.Identity.TypeName": {
|
|
29221
|
+
"anyOf": [
|
|
29222
|
+
{
|
|
29223
|
+
"$ref": "#/definitions/AttributeValues.Identity.Editable.TypeName"
|
|
29224
|
+
},
|
|
29225
|
+
{
|
|
29226
|
+
"$ref": "#/definitions/AttributeValues.Identity.Uneditable.TypeName"
|
|
29227
|
+
}
|
|
29228
|
+
]
|
|
29229
|
+
},
|
|
29230
|
+
"AttributeValues.Identity.Editable.TypeName": {
|
|
29231
|
+
"type": "string",
|
|
29232
|
+
"enum": [
|
|
29233
|
+
"Affiliation",
|
|
29234
|
+
"BirthDate",
|
|
29235
|
+
"BirthName",
|
|
29236
|
+
"BirthPlace",
|
|
29237
|
+
"Citizenship",
|
|
29238
|
+
"CommunicationLanguage",
|
|
29239
|
+
"DeliveryBoxAddress",
|
|
29240
|
+
"DisplayName",
|
|
29241
|
+
"EMailAddress",
|
|
29242
|
+
"FaxNumber",
|
|
29243
|
+
"IdentityFileReference",
|
|
29244
|
+
"SchematizedXML",
|
|
29245
|
+
"JobTitle",
|
|
29246
|
+
"Nationality",
|
|
29247
|
+
"PersonName",
|
|
29248
|
+
"PhoneNumber",
|
|
29249
|
+
"PostOfficeBoxAddress",
|
|
29250
|
+
"Pseudonym",
|
|
29251
|
+
"Sex",
|
|
29252
|
+
"StreetAddress",
|
|
29253
|
+
"Website"
|
|
29254
|
+
]
|
|
29255
|
+
},
|
|
29256
|
+
"AttributeValues.Identity.Uneditable.TypeName": {
|
|
29257
|
+
"type": "string",
|
|
29258
|
+
"enum": [
|
|
29259
|
+
"AffiliationOrganization",
|
|
29260
|
+
"AffiliationRole",
|
|
29261
|
+
"AffiliationUnit",
|
|
29262
|
+
"BirthCity",
|
|
29263
|
+
"BirthCountry",
|
|
29264
|
+
"BirthDay",
|
|
29265
|
+
"BirthMonth",
|
|
29266
|
+
"BirthState",
|
|
29267
|
+
"BirthYear",
|
|
29268
|
+
"City",
|
|
29269
|
+
"Country",
|
|
29270
|
+
"GivenName",
|
|
29271
|
+
"HonorificPrefix",
|
|
29272
|
+
"HonorificSuffix",
|
|
29273
|
+
"HouseNumber",
|
|
29274
|
+
"MiddleName",
|
|
29275
|
+
"SchematizedXML",
|
|
29276
|
+
"State",
|
|
29277
|
+
"Statement",
|
|
29278
|
+
"Street",
|
|
29279
|
+
"Surname",
|
|
29280
|
+
"ZipCode"
|
|
29281
|
+
]
|
|
29282
|
+
},
|
|
29001
29283
|
"IQLQueryJSON": {
|
|
29002
29284
|
"type": "object",
|
|
29003
29285
|
"properties": {
|
|
@@ -29013,6 +29295,9 @@ exports.ValidateIQLQueryRequest = {
|
|
|
29013
29295
|
},
|
|
29014
29296
|
"queryString": {
|
|
29015
29297
|
"type": "string"
|
|
29298
|
+
},
|
|
29299
|
+
"attributeCreationHints": {
|
|
29300
|
+
"$ref": "#/definitions/IQLQueryCreationHintsJSON"
|
|
29016
29301
|
}
|
|
29017
29302
|
},
|
|
29018
29303
|
"required": [
|
|
@@ -29020,6 +29305,24 @@ exports.ValidateIQLQueryRequest = {
|
|
|
29020
29305
|
"queryString"
|
|
29021
29306
|
],
|
|
29022
29307
|
"additionalProperties": false
|
|
29308
|
+
},
|
|
29309
|
+
"IQLQueryCreationHintsJSON": {
|
|
29310
|
+
"type": "object",
|
|
29311
|
+
"properties": {
|
|
29312
|
+
"valueType": {
|
|
29313
|
+
"$ref": "#/definitions/AttributeValues.Identity.TypeName"
|
|
29314
|
+
},
|
|
29315
|
+
"tags": {
|
|
29316
|
+
"type": "array",
|
|
29317
|
+
"items": {
|
|
29318
|
+
"type": "string"
|
|
29319
|
+
}
|
|
29320
|
+
}
|
|
29321
|
+
},
|
|
29322
|
+
"required": [
|
|
29323
|
+
"valueType"
|
|
29324
|
+
],
|
|
29325
|
+
"additionalProperties": false
|
|
29023
29326
|
}
|
|
29024
29327
|
}
|
|
29025
29328
|
};
|