@nmshd/connector-tui 1.1.0 → 1.2.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.
@@ -46,10 +46,13 @@ export class ConnectorTUI extends ConnectorTUIBaseWithMixins {
46
46
  async showStartupMessage(connectorVersionInfo) {
47
47
  const jsonString = (await readFile(new URL("../package.json", import.meta.url))).toString();
48
48
  const packageJson = JSON.parse(jsonString);
49
+ const support = await this.connectorClient.monitoring.getSupport();
50
+ const baseUrl = support.configuration.transportLibrary?.baseUrl;
49
51
  console.log(`Welcome to the ${chalk.blue("Enmeshed V2 TUI")}!`);
50
52
  console.log(`TUI Version: ${chalk.yellow(packageJson.version)}`);
51
53
  console.log(`Connector version: ${chalk.yellow(connectorVersionInfo.version)}`);
52
54
  console.log(`Connector Address: ${chalk.yellow(this.connectorAddress)}`);
55
+ console.log(`Connector Backbone BaseURL: ${chalk.yellow(baseUrl)}`);
53
56
  console.log("");
54
57
  }
55
58
  }
@@ -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,13 +1,15 @@
1
1
  {
2
2
  "name": "@nmshd/connector-tui",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "repository": "github:nmshd/connector-tui",
5
5
  "license": "MIT",
6
6
  "author": "j&s-soft GmbH",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "bin": {
10
- "connector_tui": "dist/index.js"
10
+ "connector-tui": "dist/index.js",
11
+ "connector_tui": "dist/index.js",
12
+ "ctui": "dist/index.js"
11
13
  },
12
14
  "files": [
13
15
  "index.js",
@@ -21,11 +23,11 @@
21
23
  "lint:eslint": "eslint --ext .ts ./src",
22
24
  "lint:prettier": "prettier --check ./src",
23
25
  "start": "node --loader ts-node/esm src/index.ts",
24
- "watch": "node --watch --loader ts-node/esm src/index.ts",
25
- "test": "echo 'no test specified'"
26
+ "test": "echo 'no test specified'",
27
+ "watch": "node --watch --loader ts-node/esm src/index.ts"
26
28
  },
27
29
  "dependencies": {
28
- "@nmshd/connector-sdk": "^2.2.4",
30
+ "@nmshd/connector-sdk": "^2.2.5",
29
31
  "chalk": "^5.3.0",
30
32
  "dotenv": "^16.3.1",
31
33
  "luxon": "^3.4.4",
@@ -46,11 +48,11 @@
46
48
  "ts-node": "^10.9.1",
47
49
  "typescript": "^5.3.2"
48
50
  },
51
+ "engines": {
52
+ "node": ">=19.0.0"
53
+ },
49
54
  "publishConfig": {
50
55
  "access": "public",
51
56
  "provenance": true
52
- },
53
- "engines": {
54
- "node": ">=19.0.0"
55
57
  }
56
58
  }