Skip to content

Commit f55a2e8

Browse files
Merge pull request #537 from MaryammAli/Implement-Transaction-Analytics
Implement transaction analytics
2 parents 29cc3ee + e8746cd commit f55a2e8

34 files changed

Lines changed: 493 additions & 304 deletions

‎src/documents/documents-download.controller.ts‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
import {
2-
Body,
3-
Controller,
4-
Get,
5-
Param,
6-
Post,
7-
Query,
8-
Res,
9-
UseGuards,
10-
} from '@nestjs/common';
1+
import { Body, Controller, Get, Param, Post, Query, Res, UseGuards } from '@nestjs/common';
112
import { Response } from 'express';
123
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard';
134
import { CurrentUser } from '../auth/decorators/current-user.decorator';
@@ -95,4 +86,3 @@ export class DocumentsDownloadController {
9586
return this.documentsService.create(dto, user.sub);
9687
}
9788
}
98-

‎src/documents/documents-download.module.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ import { AuthModule } from '../auth/auth.module';
1111
providers: [DocumentsService, SignedUrlService],
1212
})
1313
export class DocumentsDownloadModule {}
14-

‎src/documents/documents.module.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ export const SIGNED_URL_PROVIDER_TOKEN = 'SIGNED_URL_PROVIDER_TOKEN';
2323
exports: [DocumentsService],
2424
})
2525
export class DocumentsModule {}
26-
27-
28-

‎src/documents/documents.service.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const AUTO_TAG_MAP: Record<string, string[]> = {
2626
export class DocumentsService {
2727
constructor(private prisma: PrismaService) {}
2828

29-
3029
// ── #401 Categorization ──────────────────────────────────────────────────
3130

3231
async create(dto: CreateDocumentDto, userId: string) {

‎src/documents/dto/document-access.dto.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ export class RequestSignedUploadDto {
3939
// optional dispute binding
4040
disputeId?: string;
4141
}
42-

‎src/documents/signed-url/not-configured.signed-url-provider.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ export class NotConfiguredSignedUrlProvider implements SignedUrlProvider {
1515
throw new Error('Signed URL provider is not configured.');
1616
}
1717
}
18-

‎src/documents/signed-url/s3-signed-url-provider.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export class S3SignedUrlProvider implements SignedUrlProvider {
1414
isConfigured(): boolean {
1515
return Boolean(
1616
process.env.AWS_S3_BUCKET &&
17-
process.env.AWS_ACCESS_KEY_ID &&
18-
process.env.AWS_SECRET_ACCESS_KEY,
17+
process.env.AWS_ACCESS_KEY_ID &&
18+
process.env.AWS_SECRET_ACCESS_KEY,
1919
);
2020
}
2121

@@ -28,4 +28,3 @@ export class S3SignedUrlProvider implements SignedUrlProvider {
2828
throw new Error('S3 signed URL not implemented yet');
2929
}
3030
}
31-

‎src/documents/signed-url/signed-url-provider.interface.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ export interface SignedUrlProvider {
1818
isConfigured(): boolean;
1919
getSignedUrl(req: SignedUrlRequest): Promise<SignedUrlResponse>;
2020
}
21-

‎src/documents/signed-url/signed-url.service.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ export class SignedUrlService {
1818
try {
1919
return await this.provider.getSignedUrl(req);
2020
} catch (e: any) {
21-
throw new InternalServerErrorException(
22-
e?.message ?? 'Failed to get signed URL',
23-
);
21+
throw new InternalServerErrorException(e?.message ?? 'Failed to get signed URL');
2422
}
2523
}
2624
}
27-
28-

‎src/duplicate-detection/dto/duplicate.dto.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ export interface DuplicateCheckResult {
7575
hasDuplicates: boolean;
7676
matches: DuplicateMatch[];
7777
warning?: string;
78-
}
78+
}

0 commit comments

Comments
 (0)