From 5a74dc0630e4567d8dd31955fc6367baccb47da6 Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Tue, 10 Feb 2026 02:44:34 +0100 Subject: [PATCH 1/2] feat: export IdentDoc images from latest completed Ident step (#3176) Only export IdentDoc images that belong to the newest completed identification step, filtering by kycStep.transactionId in the blob filename. This prevents exporting blurry/failed images from earlier identification attempts. --- src/config/config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/config/config.ts b/src/config/config.ts index 7e0e9edf69..29314d1214 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -311,9 +311,15 @@ export class Configuration { fileTypes: [ContentType.PDF], }, { - name: (file: KycFileBlob) => `IdentDoc_${file.name.split('/').pop()?.split('.')[0] ?? 'unknown'}`, + name: (file: KycFileBlob) => file.name.split('/').pop()?.split('.')[0] ?? 'IdentDoc', prefixes: (userData: UserData) => [`user/${userData.id}/Identification`], fileTypes: [ContentType.PNG, ContentType.JPEG, ContentType.JPG], + filter: (file: KycFileBlob, userData: UserData) => { + const latestIdent = userData.kycSteps + .filter((s) => s.name === KycStepName.IDENT && s.isCompleted && s.transactionId) + .sort((a, b) => b.id - a.id)[0]; + return latestIdent ? file.name.includes(latestIdent.transactionId) : false; + }, selectAll: true, handleFileNotFound: () => true, }, From bce00a28d26883e1507c9738f8373f772d318e42 Mon Sep 17 00:00:00 2001 From: TaprootFreak <142087526+TaprootFreak@users.noreply.github.com> Date: Tue, 10 Feb 2026 02:47:07 +0100 Subject: [PATCH 2/2] feat: export TMER files in user data download (#3175) * feat: export TMER files in user data download Add new folder 16_TMER to the ZIP export that includes all TMER transaction PDF files. Also adds selectAll option to file download config to support exporting multiple matching files per entry. * fix: use original filename for TMER files to prevent ZIP overwrites --- src/config/config.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/config/config.ts b/src/config/config.ts index 29314d1214..dc11a46087 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -520,6 +520,20 @@ export class Configuration { }, ], }, + { + id: 16, + name: 'TMER', + files: [ + { + name: (file: KycFileBlob) => file.name.split('/').pop()?.split('.')[0] ?? 'TMER', + prefixes: (userData: UserData) => [`user/${userData.id}/UserNotes`], + fileTypes: [ContentType.PDF], + filter: (file: KycFileBlob) => file.name.includes('-TMER-'), + selectAll: true, + handleFileNotFound: () => true, + }, + ], + }, ]; support = {