@nmshd/runtime 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/buildInformation.js +5 -5
- package/dist/useCases/common/Schemas.js +221 -0
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/lib-web/nmshd.runtime.js +265 -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 +9 -9
package/lib-web/nmshd.runtime.js
CHANGED
|
@@ -466,11 +466,11 @@ const content_1 = __webpack_require__(/*! @nmshd/content */ "@nmshd/content");
|
|
|
466
466
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
467
467
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
468
468
|
exports.buildInformation = {
|
|
469
|
-
version: "2.0.
|
|
470
|
-
build: "
|
|
471
|
-
date: "2022-
|
|
472
|
-
commit: "
|
|
473
|
-
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"2.0.0","@nmshd/content":"2.0.
|
|
469
|
+
version: "2.0.1",
|
|
470
|
+
build: "128",
|
|
471
|
+
date: "2022-11-10T13:31:55+00:00",
|
|
472
|
+
commit: "eeca3d189e5fad46f71c07edc3949246d9c5caad",
|
|
473
|
+
dependencies: {"@js-soft/docdb-querytranslator":"1.1.0","@js-soft/logging-abstractions":"1.0.0","@js-soft/ts-serval":"2.0.5","@js-soft/ts-utils":"^2.3.0","@nmshd/consumption":"2.0.0","@nmshd/content":"2.0.1","@nmshd/crypto":"2.0.2","@nmshd/transport":"2.0.0","ajv":"^8.11.0","ajv-errors":"^3.0.0","ajv-formats":"^2.1.1","json-stringify-safe":"^5.0.1","luxon":"^3.1.0","qrcode":"1.5.1","reflect-metadata":"0.1.13","ts-simple-nameof":"1.3.1","typescript-ioc":"3.2.2"},
|
|
474
474
|
libraries: {
|
|
475
475
|
serval: ts_serval_1.buildInformation,
|
|
476
476
|
consumption: consumption_1.buildInformation,
|
|
@@ -7518,6 +7518,9 @@ exports.CreateAttributeRequest = {
|
|
|
7518
7518
|
{
|
|
7519
7519
|
"$ref": "#/definitions/ProprietaryURLJSON"
|
|
7520
7520
|
},
|
|
7521
|
+
{
|
|
7522
|
+
"$ref": "#/definitions/ProprietaryJSONJSON"
|
|
7523
|
+
},
|
|
7521
7524
|
{
|
|
7522
7525
|
"$ref": "#/definitions/ConsentJSON"
|
|
7523
7526
|
}
|
|
@@ -7853,6 +7856,34 @@ exports.CreateAttributeRequest = {
|
|
|
7853
7856
|
],
|
|
7854
7857
|
"additionalProperties": false
|
|
7855
7858
|
},
|
|
7859
|
+
"ProprietaryJSONJSON": {
|
|
7860
|
+
"type": "object",
|
|
7861
|
+
"properties": {
|
|
7862
|
+
"@type": {
|
|
7863
|
+
"type": "string",
|
|
7864
|
+
"const": "ProprietaryJSON"
|
|
7865
|
+
},
|
|
7866
|
+
"@context": {
|
|
7867
|
+
"type": "string"
|
|
7868
|
+
},
|
|
7869
|
+
"@version": {
|
|
7870
|
+
"type": "string"
|
|
7871
|
+
},
|
|
7872
|
+
"title": {
|
|
7873
|
+
"type": "string"
|
|
7874
|
+
},
|
|
7875
|
+
"description": {
|
|
7876
|
+
"type": "string"
|
|
7877
|
+
},
|
|
7878
|
+
"value": {}
|
|
7879
|
+
},
|
|
7880
|
+
"required": [
|
|
7881
|
+
"@type",
|
|
7882
|
+
"title",
|
|
7883
|
+
"value"
|
|
7884
|
+
],
|
|
7885
|
+
"additionalProperties": false
|
|
7886
|
+
},
|
|
7856
7887
|
"ConsentJSON": {
|
|
7857
7888
|
"type": "object",
|
|
7858
7889
|
"properties": {
|
|
@@ -8217,6 +8248,7 @@ exports.ExecuteRelationshipAttributeQueryRequest = {
|
|
|
8217
8248
|
"ProprietaryPhoneNumber",
|
|
8218
8249
|
"ProprietaryString",
|
|
8219
8250
|
"ProprietaryURL",
|
|
8251
|
+
"ProprietaryJSON",
|
|
8220
8252
|
"Consent"
|
|
8221
8253
|
]
|
|
8222
8254
|
},
|
|
@@ -9508,6 +9540,9 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
9508
9540
|
{
|
|
9509
9541
|
"$ref": "#/definitions/ProprietaryURLJSON"
|
|
9510
9542
|
},
|
|
9543
|
+
{
|
|
9544
|
+
"$ref": "#/definitions/ProprietaryJSONJSON"
|
|
9545
|
+
},
|
|
9511
9546
|
{
|
|
9512
9547
|
"$ref": "#/definitions/ConsentJSON"
|
|
9513
9548
|
}
|
|
@@ -9843,6 +9878,34 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
9843
9878
|
],
|
|
9844
9879
|
"additionalProperties": false
|
|
9845
9880
|
},
|
|
9881
|
+
"ProprietaryJSONJSON": {
|
|
9882
|
+
"type": "object",
|
|
9883
|
+
"properties": {
|
|
9884
|
+
"@type": {
|
|
9885
|
+
"type": "string",
|
|
9886
|
+
"const": "ProprietaryJSON"
|
|
9887
|
+
},
|
|
9888
|
+
"@context": {
|
|
9889
|
+
"type": "string"
|
|
9890
|
+
},
|
|
9891
|
+
"@version": {
|
|
9892
|
+
"type": "string"
|
|
9893
|
+
},
|
|
9894
|
+
"title": {
|
|
9895
|
+
"type": "string"
|
|
9896
|
+
},
|
|
9897
|
+
"description": {
|
|
9898
|
+
"type": "string"
|
|
9899
|
+
},
|
|
9900
|
+
"value": {}
|
|
9901
|
+
},
|
|
9902
|
+
"required": [
|
|
9903
|
+
"@type",
|
|
9904
|
+
"title",
|
|
9905
|
+
"value"
|
|
9906
|
+
],
|
|
9907
|
+
"additionalProperties": false
|
|
9908
|
+
},
|
|
9846
9909
|
"ConsentJSON": {
|
|
9847
9910
|
"type": "object",
|
|
9848
9911
|
"properties": {
|
|
@@ -11379,6 +11442,7 @@ exports.CanCreateOutgoingRequestRequest = {
|
|
|
11379
11442
|
"ProprietaryPhoneNumber",
|
|
11380
11443
|
"ProprietaryString",
|
|
11381
11444
|
"ProprietaryURL",
|
|
11445
|
+
"ProprietaryJSON",
|
|
11382
11446
|
"Consent"
|
|
11383
11447
|
]
|
|
11384
11448
|
},
|
|
@@ -13378,6 +13442,9 @@ exports.CompleteOutgoingRequestRequest = {
|
|
|
13378
13442
|
{
|
|
13379
13443
|
"$ref": "#/definitions/ProprietaryURLJSON"
|
|
13380
13444
|
},
|
|
13445
|
+
{
|
|
13446
|
+
"$ref": "#/definitions/ProprietaryJSONJSON"
|
|
13447
|
+
},
|
|
13381
13448
|
{
|
|
13382
13449
|
"$ref": "#/definitions/ConsentJSON"
|
|
13383
13450
|
}
|
|
@@ -13713,6 +13780,34 @@ exports.CompleteOutgoingRequestRequest = {
|
|
|
13713
13780
|
],
|
|
13714
13781
|
"additionalProperties": false
|
|
13715
13782
|
},
|
|
13783
|
+
"ProprietaryJSONJSON": {
|
|
13784
|
+
"type": "object",
|
|
13785
|
+
"properties": {
|
|
13786
|
+
"@type": {
|
|
13787
|
+
"type": "string",
|
|
13788
|
+
"const": "ProprietaryJSON"
|
|
13789
|
+
},
|
|
13790
|
+
"@context": {
|
|
13791
|
+
"type": "string"
|
|
13792
|
+
},
|
|
13793
|
+
"@version": {
|
|
13794
|
+
"type": "string"
|
|
13795
|
+
},
|
|
13796
|
+
"title": {
|
|
13797
|
+
"type": "string"
|
|
13798
|
+
},
|
|
13799
|
+
"description": {
|
|
13800
|
+
"type": "string"
|
|
13801
|
+
},
|
|
13802
|
+
"value": {}
|
|
13803
|
+
},
|
|
13804
|
+
"required": [
|
|
13805
|
+
"@type",
|
|
13806
|
+
"title",
|
|
13807
|
+
"value"
|
|
13808
|
+
],
|
|
13809
|
+
"additionalProperties": false
|
|
13810
|
+
},
|
|
13716
13811
|
"ConsentJSON": {
|
|
13717
13812
|
"type": "object",
|
|
13718
13813
|
"properties": {
|
|
@@ -14219,6 +14314,9 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
14219
14314
|
{
|
|
14220
14315
|
"$ref": "#/definitions/ProprietaryURLJSON"
|
|
14221
14316
|
},
|
|
14317
|
+
{
|
|
14318
|
+
"$ref": "#/definitions/ProprietaryJSONJSON"
|
|
14319
|
+
},
|
|
14222
14320
|
{
|
|
14223
14321
|
"$ref": "#/definitions/ConsentJSON"
|
|
14224
14322
|
}
|
|
@@ -14554,6 +14652,34 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
14554
14652
|
],
|
|
14555
14653
|
"additionalProperties": false
|
|
14556
14654
|
},
|
|
14655
|
+
"ProprietaryJSONJSON": {
|
|
14656
|
+
"type": "object",
|
|
14657
|
+
"properties": {
|
|
14658
|
+
"@type": {
|
|
14659
|
+
"type": "string",
|
|
14660
|
+
"const": "ProprietaryJSON"
|
|
14661
|
+
},
|
|
14662
|
+
"@context": {
|
|
14663
|
+
"type": "string"
|
|
14664
|
+
},
|
|
14665
|
+
"@version": {
|
|
14666
|
+
"type": "string"
|
|
14667
|
+
},
|
|
14668
|
+
"title": {
|
|
14669
|
+
"type": "string"
|
|
14670
|
+
},
|
|
14671
|
+
"description": {
|
|
14672
|
+
"type": "string"
|
|
14673
|
+
},
|
|
14674
|
+
"value": {}
|
|
14675
|
+
},
|
|
14676
|
+
"required": [
|
|
14677
|
+
"@type",
|
|
14678
|
+
"title",
|
|
14679
|
+
"value"
|
|
14680
|
+
],
|
|
14681
|
+
"additionalProperties": false
|
|
14682
|
+
},
|
|
14557
14683
|
"ConsentJSON": {
|
|
14558
14684
|
"type": "object",
|
|
14559
14685
|
"properties": {
|
|
@@ -16090,6 +16216,7 @@ exports.CreateOutgoingRequestRequest = {
|
|
|
16090
16216
|
"ProprietaryPhoneNumber",
|
|
16091
16217
|
"ProprietaryString",
|
|
16092
16218
|
"ProprietaryURL",
|
|
16219
|
+
"ProprietaryJSON",
|
|
16093
16220
|
"Consent"
|
|
16094
16221
|
]
|
|
16095
16222
|
},
|
|
@@ -17193,6 +17320,9 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
17193
17320
|
{
|
|
17194
17321
|
"$ref": "#/definitions/ProprietaryURLJSON"
|
|
17195
17322
|
},
|
|
17323
|
+
{
|
|
17324
|
+
"$ref": "#/definitions/ProprietaryJSONJSON"
|
|
17325
|
+
},
|
|
17196
17326
|
{
|
|
17197
17327
|
"$ref": "#/definitions/ConsentJSON"
|
|
17198
17328
|
}
|
|
@@ -17528,6 +17658,34 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
17528
17658
|
],
|
|
17529
17659
|
"additionalProperties": false
|
|
17530
17660
|
},
|
|
17661
|
+
"ProprietaryJSONJSON": {
|
|
17662
|
+
"type": "object",
|
|
17663
|
+
"properties": {
|
|
17664
|
+
"@type": {
|
|
17665
|
+
"type": "string",
|
|
17666
|
+
"const": "ProprietaryJSON"
|
|
17667
|
+
},
|
|
17668
|
+
"@context": {
|
|
17669
|
+
"type": "string"
|
|
17670
|
+
},
|
|
17671
|
+
"@version": {
|
|
17672
|
+
"type": "string"
|
|
17673
|
+
},
|
|
17674
|
+
"title": {
|
|
17675
|
+
"type": "string"
|
|
17676
|
+
},
|
|
17677
|
+
"description": {
|
|
17678
|
+
"type": "string"
|
|
17679
|
+
},
|
|
17680
|
+
"value": {}
|
|
17681
|
+
},
|
|
17682
|
+
"required": [
|
|
17683
|
+
"@type",
|
|
17684
|
+
"title",
|
|
17685
|
+
"value"
|
|
17686
|
+
],
|
|
17687
|
+
"additionalProperties": false
|
|
17688
|
+
},
|
|
17531
17689
|
"ConsentJSON": {
|
|
17532
17690
|
"type": "object",
|
|
17533
17691
|
"properties": {
|
|
@@ -19064,6 +19222,7 @@ exports.ReceivedIncomingRequestRequest = {
|
|
|
19064
19222
|
"ProprietaryPhoneNumber",
|
|
19065
19223
|
"ProprietaryString",
|
|
19066
19224
|
"ProprietaryURL",
|
|
19225
|
+
"ProprietaryJSON",
|
|
19067
19226
|
"Consent"
|
|
19068
19227
|
]
|
|
19069
19228
|
},
|
|
@@ -20791,6 +20950,9 @@ exports.SucceedAttributeRequest = {
|
|
|
20791
20950
|
{
|
|
20792
20951
|
"$ref": "#/definitions/ProprietaryURLJSON"
|
|
20793
20952
|
},
|
|
20953
|
+
{
|
|
20954
|
+
"$ref": "#/definitions/ProprietaryJSONJSON"
|
|
20955
|
+
},
|
|
20794
20956
|
{
|
|
20795
20957
|
"$ref": "#/definitions/ConsentJSON"
|
|
20796
20958
|
}
|
|
@@ -21126,6 +21288,34 @@ exports.SucceedAttributeRequest = {
|
|
|
21126
21288
|
],
|
|
21127
21289
|
"additionalProperties": false
|
|
21128
21290
|
},
|
|
21291
|
+
"ProprietaryJSONJSON": {
|
|
21292
|
+
"type": "object",
|
|
21293
|
+
"properties": {
|
|
21294
|
+
"@type": {
|
|
21295
|
+
"type": "string",
|
|
21296
|
+
"const": "ProprietaryJSON"
|
|
21297
|
+
},
|
|
21298
|
+
"@context": {
|
|
21299
|
+
"type": "string"
|
|
21300
|
+
},
|
|
21301
|
+
"@version": {
|
|
21302
|
+
"type": "string"
|
|
21303
|
+
},
|
|
21304
|
+
"title": {
|
|
21305
|
+
"type": "string"
|
|
21306
|
+
},
|
|
21307
|
+
"description": {
|
|
21308
|
+
"type": "string"
|
|
21309
|
+
},
|
|
21310
|
+
"value": {}
|
|
21311
|
+
},
|
|
21312
|
+
"required": [
|
|
21313
|
+
"@type",
|
|
21314
|
+
"title",
|
|
21315
|
+
"value"
|
|
21316
|
+
],
|
|
21317
|
+
"additionalProperties": false
|
|
21318
|
+
},
|
|
21129
21319
|
"ConsentJSON": {
|
|
21130
21320
|
"type": "object",
|
|
21131
21321
|
"properties": {
|
|
@@ -22489,6 +22679,9 @@ exports.UpdateAttributeRequest = {
|
|
|
22489
22679
|
{
|
|
22490
22680
|
"$ref": "#/definitions/ProprietaryURLJSON"
|
|
22491
22681
|
},
|
|
22682
|
+
{
|
|
22683
|
+
"$ref": "#/definitions/ProprietaryJSONJSON"
|
|
22684
|
+
},
|
|
22492
22685
|
{
|
|
22493
22686
|
"$ref": "#/definitions/ConsentJSON"
|
|
22494
22687
|
}
|
|
@@ -22824,6 +23017,34 @@ exports.UpdateAttributeRequest = {
|
|
|
22824
23017
|
],
|
|
22825
23018
|
"additionalProperties": false
|
|
22826
23019
|
},
|
|
23020
|
+
"ProprietaryJSONJSON": {
|
|
23021
|
+
"type": "object",
|
|
23022
|
+
"properties": {
|
|
23023
|
+
"@type": {
|
|
23024
|
+
"type": "string",
|
|
23025
|
+
"const": "ProprietaryJSON"
|
|
23026
|
+
},
|
|
23027
|
+
"@context": {
|
|
23028
|
+
"type": "string"
|
|
23029
|
+
},
|
|
23030
|
+
"@version": {
|
|
23031
|
+
"type": "string"
|
|
23032
|
+
},
|
|
23033
|
+
"title": {
|
|
23034
|
+
"type": "string"
|
|
23035
|
+
},
|
|
23036
|
+
"description": {
|
|
23037
|
+
"type": "string"
|
|
23038
|
+
},
|
|
23039
|
+
"value": {}
|
|
23040
|
+
},
|
|
23041
|
+
"required": [
|
|
23042
|
+
"@type",
|
|
23043
|
+
"title",
|
|
23044
|
+
"value"
|
|
23045
|
+
],
|
|
23046
|
+
"additionalProperties": false
|
|
23047
|
+
},
|
|
22827
23048
|
"ConsentJSON": {
|
|
22828
23049
|
"type": "object",
|
|
22829
23050
|
"properties": {
|
|
@@ -47062,6 +47283,19 @@ function normalizeValues(matrix, vals) {
|
|
|
47062
47283
|
return previous;
|
|
47063
47284
|
}
|
|
47064
47285
|
}, null);
|
|
47286
|
+
} // Remove all properties with a value of 0 from an object
|
|
47287
|
+
|
|
47288
|
+
|
|
47289
|
+
function removeZeroes(vals) {
|
|
47290
|
+
const newVals = {};
|
|
47291
|
+
|
|
47292
|
+
for (const [key, value] of Object.entries(vals)) {
|
|
47293
|
+
if (value !== 0) {
|
|
47294
|
+
newVals[key] = value;
|
|
47295
|
+
}
|
|
47296
|
+
}
|
|
47297
|
+
|
|
47298
|
+
return newVals;
|
|
47065
47299
|
}
|
|
47066
47300
|
/**
|
|
47067
47301
|
* A Duration object represents a period of time, like "2 months" or "1 day, 1 hour". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.
|
|
@@ -47658,6 +47892,20 @@ class Duration {
|
|
|
47658
47892
|
values: vals
|
|
47659
47893
|
}, true);
|
|
47660
47894
|
}
|
|
47895
|
+
/**
|
|
47896
|
+
* Rescale units to its largest representation
|
|
47897
|
+
* @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }
|
|
47898
|
+
* @return {Duration}
|
|
47899
|
+
*/
|
|
47900
|
+
|
|
47901
|
+
|
|
47902
|
+
rescale() {
|
|
47903
|
+
if (!this.isValid) return this;
|
|
47904
|
+
const vals = removeZeroes(this.normalize().shiftToAll().toObject());
|
|
47905
|
+
return clone$1(this, {
|
|
47906
|
+
values: vals
|
|
47907
|
+
}, true);
|
|
47908
|
+
}
|
|
47661
47909
|
/**
|
|
47662
47910
|
* Convert this Duration into its representation in a different set of units.
|
|
47663
47911
|
* @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }
|
|
@@ -47720,6 +47968,17 @@ class Duration {
|
|
|
47720
47968
|
values: built
|
|
47721
47969
|
}, true).normalize();
|
|
47722
47970
|
}
|
|
47971
|
+
/**
|
|
47972
|
+
* Shift this Duration to all available units.
|
|
47973
|
+
* Same as shiftTo("years", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds")
|
|
47974
|
+
* @return {Duration}
|
|
47975
|
+
*/
|
|
47976
|
+
|
|
47977
|
+
|
|
47978
|
+
shiftToAll() {
|
|
47979
|
+
if (!this.isValid) return this;
|
|
47980
|
+
return this.shiftTo("years", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds");
|
|
47981
|
+
}
|
|
47723
47982
|
/**
|
|
47724
47983
|
* Return the negative of this Duration.
|
|
47725
47984
|
* @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }
|
|
@@ -51926,7 +52185,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
51926
52185
|
}
|
|
51927
52186
|
}
|
|
51928
52187
|
|
|
51929
|
-
const VERSION = "3.0
|
|
52188
|
+
const VERSION = "3.1.0";
|
|
51930
52189
|
|
|
51931
52190
|
exports.DateTime = DateTime;
|
|
51932
52191
|
exports.Duration = Duration;
|