| 228 | } |
| 229 | |
| 230 | private importErrorReasonText(reason: ImportRecordErrorReason): string { |
| 231 | switch (reason) { |
| 232 | case ImportRecordErrorReason.SshKeyParseFailed: |
| 233 | return "SSH key could not be imported"; |
| 234 | case ImportRecordErrorReason.UnsupportedType: |
| 235 | return "unsupported item type"; |
| 236 | case ImportRecordErrorReason.UnsupportedFeature: |
| 237 | return "unsupported feature"; |
| 238 | case ImportRecordErrorReason.FolderDecryptionFailed: |
| 239 | return "folder could not be decrypted"; |
| 240 | default: |
| 241 | return "could not be imported"; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | private async list() { |
| 246 | const options = this.importService |