fix: update conversation and user DTO naming

This commit is contained in:
yassinedorbozgithub 2025-01-10 11:23:49 +01:00
parent 1b788cc78f
commit 66ba5bff64
6 changed files with 10 additions and 10 deletions

View File

@ -58,6 +58,6 @@ export class ConversationCreateDto {
next?: string[];
}
export type ConversationDTOCruds = DtoConfig<{
export type ConversationDtoMapActions = DtoConfig<{
create: ConversationCreateDto;
}>;

View File

@ -13,7 +13,7 @@ import { Model } from 'mongoose';
import { BaseRepository } from '@/utils/generics/base-repository';
import { ConversationDTOCruds } from '../dto/conversation.dto';
import { ConversationDtoMapActions } from '../dto/conversation.dto';
import {
Conversation,
CONVERSATION_POPULATE,
@ -26,7 +26,7 @@ export class ConversationRepository extends BaseRepository<
Conversation,
ConversationPopulate,
ConversationFull,
ConversationDTOCruds
ConversationDtoMapActions
> {
constructor(
readonly eventEmitter: EventEmitter2,

View File

@ -12,7 +12,7 @@ import EventWrapper from '@/channel/lib/EventWrapper';
import { LoggerService } from '@/logger/logger.service';
import { BaseService } from '@/utils/generics/base-service';
import { ConversationDTOCruds } from '../dto/conversation.dto';
import { ConversationDtoMapActions } from '../dto/conversation.dto';
import { VIEW_MORE_PAYLOAD } from '../helpers/constants';
import { ConversationRepository } from '../repositories/conversation.repository';
import { Block, BlockFull } from '../schemas/block.schema';
@ -32,7 +32,7 @@ export class ConversationService extends BaseService<
Conversation,
ConversationPopulate,
ConversationFull,
ConversationDTOCruds
ConversationDtoMapActions
> {
constructor(
readonly repository: ConversationRepository,

View File

@ -109,6 +109,6 @@ export class UserResetPasswordDto extends PickType(UserCreateDto, [
export class UserRequestResetDto extends PickType(UserCreateDto, ['email']) {}
export type UserDTOCruds = DtoConfig<{
export type UserDtoMapActions = DtoConfig<{
create: UserCreateDto;
}>;

View File

@ -20,7 +20,7 @@ import {
import { BaseRepository } from '@/utils/generics/base-repository';
import { TFilterQuery } from '@/utils/types/filter.types';
import { UserDTOCruds, UserEditProfileDto } from '../dto/user.dto';
import { UserDtoMapActions, UserEditProfileDto } from '../dto/user.dto';
import {
User,
USER_POPULATE,
@ -35,7 +35,7 @@ export class UserRepository extends BaseRepository<
User,
UserPopulate,
UserFull,
UserDTOCruds
UserDtoMapActions
> {
constructor(
readonly eventEmitter: EventEmitter2,

View File

@ -10,7 +10,7 @@ import { Injectable } from '@nestjs/common';
import { BaseService } from '@/utils/generics/base-service';
import { UserDTOCruds } from '../dto/user.dto';
import { UserDtoMapActions } from '../dto/user.dto';
import { UserRepository } from '../repositories/user.repository';
import { User, UserFull, UserPopulate } from '../schemas/user.schema';
@ -19,7 +19,7 @@ export class UserService extends BaseService<
User,
UserPopulate,
UserFull,
UserDTOCruds
UserDtoMapActions
> {
constructor(readonly repository: UserRepository) {
super(repository);