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
+6 -5
View File
@@ -1,33 +1,34 @@
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common'
import { CreateUserDto, UpdateUserDto } from './dto/user.dto'
import { AdminUsersService } from './users.service'
import type { AdminUsersServiceCreateResponseDto, AdminUsersServiceDeleteResponseDto, AdminUsersServiceFindAllResponseDto, AdminUsersServiceFindOneResponseDto, AdminUsersServiceUpdateResponseDto } from './dto/users-response.dto'
@Controller('admin/users')
export class AdminUsersController {
constructor(private readonly usersService: AdminUsersService) {}
@Get()
async findAll() {
async findAll(): Promise<AdminUsersServiceFindAllResponseDto> {
return this.usersService.findAll()
}
@Get(':id')
async findOne(@Param('id') id: string) {
async findOne(@Param('id') id: string): Promise<AdminUsersServiceFindOneResponseDto> {
return this.usersService.findOne(id)
}
@Post()
async create(@Body() data: any) {
async create(@Body() data: any): Promise<AdminUsersServiceCreateResponseDto> {
return this.usersService.create(data as CreateUserDto)
}
@Patch(':id')
async update(@Param('id') id: string, @Body() data: any) {
async update(@Param('id') id: string, @Body() data: any): Promise<AdminUsersServiceUpdateResponseDto> {
return this.usersService.update(id, data as UpdateUserDto)
}
@Delete(':id')
async delete(@Param('id') id: string) {
async delete(@Param('id') id: string): Promise<AdminUsersServiceDeleteResponseDto> {
return this.usersService.delete(id)
}
}