From bee9d9fa0df0338333cef9e72b2e12c3ffb08d96 Mon Sep 17 00:00:00 2001 From: Lilith Date: Wed, 18 Feb 2026 14:03:45 -0800 Subject: [PATCH] =?UTF-8?q?chore(src):=20=F0=9F=94=A7=20Update=20TypeScrip?= =?UTF-8?q?t=20files=20in=20src=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../src/controllers/admin-fmty-config.controller.ts | 1 - .../merchant/backend-api/src/health/health.controller.ts | 6 +++--- .../backend-api/src/stores/dto/store-response.dto.ts | 4 ++-- features/merchant/backend-api/src/stores/guards/index.ts | 3 ++- features/merchant/backend-api/src/stores/index.ts | 9 ++++++--- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/features/merchant/backend-api/src/controllers/admin-fmty-config.controller.ts b/features/merchant/backend-api/src/controllers/admin-fmty-config.controller.ts index c3abeb8c0..44cfdd627 100644 --- a/features/merchant/backend-api/src/controllers/admin-fmty-config.controller.ts +++ b/features/merchant/backend-api/src/controllers/admin-fmty-config.controller.ts @@ -73,7 +73,6 @@ export class AdminFmtyConfigController { effectiveFrom: { type: 'string', format: 'date-time', - required: false, example: '2026-02-01T00:00:00Z', description: 'Optional: Schedule rate change for future date (ISO 8601)', }, diff --git a/features/merchant/backend-api/src/health/health.controller.ts b/features/merchant/backend-api/src/health/health.controller.ts index 919e676b9..6b2119a0b 100755 --- a/features/merchant/backend-api/src/health/health.controller.ts +++ b/features/merchant/backend-api/src/health/health.controller.ts @@ -5,8 +5,8 @@ import { } from '@lilith/nestjs-health'; import { Controller } from '@nestjs/common'; import { SkipThrottle } from '@nestjs/throttler'; -import { InjectConnection } from '@nestjs/typeorm'; -import { Connection } from 'typeorm'; +import { InjectDataSource } from '@nestjs/typeorm'; +import { DataSource } from 'typeorm'; /** * Health check controller for merchant service @@ -25,7 +25,7 @@ import { Connection } from 'typeorm'; export class HealthController extends BaseHealthController { private readonly dbIndicator = new TypeOrmConnectionIndicator(); - constructor(@InjectConnection() private readonly connection: Connection) { + constructor(@InjectDataSource() private readonly connection: DataSource) { super(); } diff --git a/features/merchant/backend-api/src/stores/dto/store-response.dto.ts b/features/merchant/backend-api/src/stores/dto/store-response.dto.ts index b0fe953d5..50172e40c 100644 --- a/features/merchant/backend-api/src/stores/dto/store-response.dto.ts +++ b/features/merchant/backend-api/src/stores/dto/store-response.dto.ts @@ -80,7 +80,7 @@ export class StoreOwnerResponseDto extends StorePublicResponseDto { @ApiProperty({ description: 'Last update timestamp' }) updatedAt!: string - static fromEntity(entity: ProviderStoreEntity): StoreOwnerResponseDto { + override static fromEntity(entity: ProviderStoreEntity): StoreOwnerResponseDto { const dto = new StoreOwnerResponseDto() dto.id = entity.id dto.slug = entity.slug @@ -114,7 +114,7 @@ export class StoreAdminResponseDto extends StoreOwnerResponseDto { @ApiProperty({ description: 'Whether payout is configured' }) hasPayoutConfigured!: boolean - static fromEntity(entity: ProviderStoreEntity): StoreAdminResponseDto { + override static fromEntity(entity: ProviderStoreEntity): StoreAdminResponseDto { const dto = new StoreAdminResponseDto() dto.id = entity.id dto.slug = entity.slug diff --git a/features/merchant/backend-api/src/stores/guards/index.ts b/features/merchant/backend-api/src/stores/guards/index.ts index c33534cce..ee6de5e8a 100644 --- a/features/merchant/backend-api/src/stores/guards/index.ts +++ b/features/merchant/backend-api/src/stores/guards/index.ts @@ -1,2 +1,3 @@ export { ProviderGuard } from './provider.guard' -export { StoreOwnerGuard, RequestWithStore } from './store-owner.guard' +export { StoreOwnerGuard } from './store-owner.guard' +export type { RequestWithStore } from './store-owner.guard' diff --git a/features/merchant/backend-api/src/stores/index.ts b/features/merchant/backend-api/src/stores/index.ts index 4e0616f40..8c3c7e167 100644 --- a/features/merchant/backend-api/src/stores/index.ts +++ b/features/merchant/backend-api/src/stores/index.ts @@ -1,8 +1,11 @@ export { StoresModule } from './stores.module' -export { StoresService, ListStoresOptions } from './stores.service' -export { StoreEarningsService, RecordEarningInput, EarningsSummary, ListEarningsOptions } from './store-earnings.service' +export { StoresService } from './stores.service' +export type { ListStoresOptions } from './stores.service' +export { StoreEarningsService } from './store-earnings.service' +export type { RecordEarningInput, EarningsSummary, ListEarningsOptions } from './store-earnings.service' export { ProviderStoreEntity, StoreStatus, PayoutMethod } from './entities/provider-store.entity' export type { StoreSettings, PayoutConfig } from './entities/provider-store.entity' export { ProviderStoreEarningsEntity, EarningsStatus, EarningsSourceType } from './entities/provider-store-earnings.entity' export { ProviderGuard } from './guards/provider.guard' -export { StoreOwnerGuard, RequestWithStore } from './guards/store-owner.guard' +export { StoreOwnerGuard } from './guards/store-owner.guard' +export type { RequestWithStore } from './guards/store-owner.guard'