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:
@@ -43,7 +43,7 @@ export class PosMiddleware implements NestMiddleware {
|
||||
complex: {
|
||||
business_activity: {
|
||||
consumer: {
|
||||
consumer_accounts: {
|
||||
accounts: {
|
||||
some: {
|
||||
id: account_id,
|
||||
},
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { ApplicationAuthService } from '../auth.service'
|
||||
|
||||
export type ApplicationAuthServiceLoginResponseDto = Awaited<ReturnType<ApplicationAuthService['login']>>
|
||||
@@ -1,3 +1,4 @@
|
||||
import { QUERY_CONSTANTS } from '@/common/queryConstants'
|
||||
import { ConsumerDevicesSelect } from '@/generated/prisma/models'
|
||||
import { PrismaService } from '@/prisma/prisma.service'
|
||||
import { BadRequestException, Injectable } from '@nestjs/common'
|
||||
@@ -24,8 +25,7 @@ export class ConfigService {
|
||||
consumer: {
|
||||
select: {
|
||||
id: true,
|
||||
first_name: true,
|
||||
last_name: true,
|
||||
...QUERY_CONSTANTS.CONSUMER.infoSelect,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import type { ConfigService } from '../config.service'
|
||||
|
||||
export type ConfigServiceCreateResponseDto = Awaited<ReturnType<ConfigService['create']>>
|
||||
export type ConfigServiceFindOneResponseDto = Awaited<ReturnType<ConfigService['findOne']>>
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { AppService } from '../application.service'
|
||||
|
||||
export type AppServiceCheckVersionResponseDto = Awaited<ReturnType<AppService['checkVersion']>>
|
||||
Reference in New Issue
Block a user