@nmshd/connector-tui 2.12.0 → 2.13.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.
@@ -1,4 +1,5 @@
1
1
  import { ConnectorRelationshipStatus, } from "@nmshd/connector-sdk";
2
+ import { DateTime } from "luxon";
2
3
  import prompts from "prompts";
3
4
  import { IdentityDeletionProcessEndpoint } from "./IdentityDeletionProcessEndpoint.js";
4
5
  export class ConnectorTUIBase {
@@ -85,9 +86,11 @@ export class ConnectorTUIBase {
85
86
  return result.files;
86
87
  }
87
88
  async getFileChoices() {
88
- const files = (await this.connectorClient.files.getOwnFiles()).result;
89
+ const currentDate = DateTime.utc().toISO();
90
+ const datesInFuture = `>=${currentDate}`;
91
+ const files = (await this.connectorClient.files.getOwnFiles({ expiresAt: datesInFuture })).result;
89
92
  if (files.length === 0) {
90
- console.log("No files found");
93
+ console.log("No appropriate files found");
91
94
  return;
92
95
  }
93
96
  return files.map((f) => this.renderFile(f));
@@ -917,6 +917,7 @@ export function AddSendRequestByMessage(Base) {
917
917
  mustBeAccepted: true,
918
918
  requireManualDecision: result.requireManualDecision,
919
919
  fileReference: file.reference.truncated,
920
+ ownershipToken: file.ownershipToken,
920
921
  };
921
922
  return requestItem;
922
923
  }
package/package.json CHANGED
@@ -28,34 +28,34 @@
28
28
  "watch": "node --watch --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));' src/run.ts"
29
29
  },
30
30
  "dependencies": {
31
- "@nmshd/connector-sdk": "^6.26.2",
31
+ "@nmshd/connector-sdk": "^6.29.0",
32
32
  "axios": "^1.9.0",
33
33
  "chalk": "^5.4.1",
34
34
  "dotenv": "^16.5.0",
35
35
  "luxon": "^3.6.1",
36
36
  "prompts": "^2.4.2",
37
37
  "qrcode-terminal": "^0.12.0",
38
- "yargs": "^17.7.2"
38
+ "yargs": "^18.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@js-soft/eslint-config-ts": "^1.6.14",
42
42
  "@js-soft/license-check": "^1.0.9",
43
43
  "@types/luxon": "^3.6.2",
44
- "@types/node": "^22.15.18",
44
+ "@types/node": "^22.15.29",
45
45
  "@types/prompts": "^2.4.9",
46
46
  "@types/qrcode-terminal": "^0.12.2",
47
47
  "@types/yargs": "^17.0.33",
48
- "eslint": "^8.57.0",
48
+ "eslint": "^8.57.1",
49
49
  "prettier": "^3.5.3",
50
50
  "ts-node": "^10.9.2",
51
51
  "typescript": "^5.8.3"
52
52
  },
53
53
  "engines": {
54
- "node": ">=19.0.0"
54
+ "node": ">=22.16.0"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public",
58
58
  "provenance": true
59
59
  },
60
- "version": "2.12.0"
60
+ "version": "2.13.1"
61
61
  }