@nmshd/connector-tui 1.1.0 → 1.2.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.
|
@@ -50,6 +50,10 @@ export function AddSendRequestByMessage(Base) {
|
|
|
50
50
|
title: "ConsentRequestItem",
|
|
51
51
|
value: this.createConsentRequestItem.bind(this),
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
title: "RegisterAttributeListenerRequestItem",
|
|
55
|
+
value: this.createRegisterAttributeListenerRequestItem.bind(this),
|
|
56
|
+
},
|
|
53
57
|
{
|
|
54
58
|
title: "AuthenticationRequestItem",
|
|
55
59
|
value: this.createAuthenticationRequestItem.bind(this),
|
|
@@ -467,6 +471,24 @@ export function AddSendRequestByMessage(Base) {
|
|
|
467
471
|
};
|
|
468
472
|
return requestItem;
|
|
469
473
|
}
|
|
474
|
+
async createRegisterAttributeListenerRequestItem() {
|
|
475
|
+
const result = await prompts([
|
|
476
|
+
{
|
|
477
|
+
message: "What's the attribute type you would like to query?",
|
|
478
|
+
type: "text",
|
|
479
|
+
name: "attributeType",
|
|
480
|
+
},
|
|
481
|
+
]);
|
|
482
|
+
const requestItem = {
|
|
483
|
+
"@type": "RegisterAttributeListenerRequestItem",
|
|
484
|
+
mustBeAccepted: true,
|
|
485
|
+
query: {
|
|
486
|
+
"@type": "IdentityAttributeQuery",
|
|
487
|
+
valueType: result.attributeType,
|
|
488
|
+
},
|
|
489
|
+
};
|
|
490
|
+
return requestItem;
|
|
491
|
+
}
|
|
470
492
|
async createAuthenticationRequestItem() {
|
|
471
493
|
const result = await prompts([
|
|
472
494
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nmshd/connector-tui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"repository": "github:nmshd/connector-tui",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "j&s-soft GmbH",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "echo 'no test specified'"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@nmshd/connector-sdk": "^2.2.
|
|
28
|
+
"@nmshd/connector-sdk": "^2.2.5",
|
|
29
29
|
"chalk": "^5.3.0",
|
|
30
30
|
"dotenv": "^16.3.1",
|
|
31
31
|
"luxon": "^3.4.4",
|