@nmshd/connector-tui 2.13.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));
package/package.json CHANGED
@@ -57,5 +57,5 @@
57
57
  "access": "public",
58
58
  "provenance": true
59
59
  },
60
- "version": "2.13.0"
60
+ "version": "2.13.1"
61
61
  }