feat: add response DTOs for various services across modules

- Created response DTOs for ConfigService, AppService, AuthService, CatalogsService, AccountsService, BusinessActivityComplexesService, ComplexPosesService, SalesInvoicesService, BusinessActivitiesService, ConsumerBusinessActivityGoodsService, and others.
- Implemented Create, FindAll, FindOne, and Update response types for services in consumer, partners, and POS modules.
- Added request DTOs for creating and updating goods in the consumer business activities module.
- Introduced filtering DTO for partner licenses.
- Enhanced response mapping for partner license activations.
This commit is contained in:
2026-04-27 10:45:39 +03:30
parent 34793295c9
commit dee96b6e91
208 changed files with 8058 additions and 2349 deletions
@@ -2,6 +2,7 @@ import { Body, Controller, Get, Param, Post } from '@nestjs/common'
import { ApiTags } from '@nestjs/swagger'
import { PartnerAccountChargeTransactionService } from './chargeAccountQuotaTransactions.service'
import { ChargeAccountQuotaDto } from './dto/chargeAccountQuotaTransactions.dto'
import type { PartnerAccountChargeTransactionServiceCreateResponseDto, PartnerAccountChargeTransactionServiceFindAllResponseDto, PartnerAccountChargeTransactionServiceFindOneResponseDto } from './dto/chargeAccountQuotaTransactions-response.dto'
@ApiTags('Admin Partner Account Charge')
@Controller('admin/partners/:partnerId/charge-account-transactions')
@@ -9,12 +10,12 @@ export class PartnerAccountChargeTransactionController {
constructor(private readonly service: PartnerAccountChargeTransactionService) {}
@Get()
async findAll(@Param('partnerId') partnerId: string) {
async findAll(@Param('partnerId') partnerId: string): Promise<PartnerAccountChargeTransactionServiceFindAllResponseDto> {
return this.service.findAll(partnerId)
}
@Get(':id')
async findOne(@Param('partnerId') partnerId: string, @Param('id') id: string) {
async findOne(@Param('partnerId') partnerId: string, @Param('id') id: string): Promise<PartnerAccountChargeTransactionServiceFindOneResponseDto> {
return this.service.findOne(partnerId, id)
}
@@ -22,7 +23,7 @@ export class PartnerAccountChargeTransactionController {
async create(
@Param('partnerId') partnerId: string,
@Body() data: ChargeAccountQuotaDto,
) {
): Promise<PartnerAccountChargeTransactionServiceCreateResponseDto> {
return this.service.create(partnerId, data)
}
@@ -0,0 +1,5 @@
import type { PartnerAccountChargeTransactionService } from '../chargeAccountQuotaTransactions.service'
export type PartnerAccountChargeTransactionServiceCreateResponseDto = Awaited<ReturnType<PartnerAccountChargeTransactionService['create']>>
export type PartnerAccountChargeTransactionServiceFindAllResponseDto = Awaited<ReturnType<PartnerAccountChargeTransactionService['findAll']>>
export type PartnerAccountChargeTransactionServiceFindOneResponseDto = Awaited<ReturnType<PartnerAccountChargeTransactionService['findOne']>>