mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: update conversation and user DTO naming
This commit is contained in:
parent
1b788cc78f
commit
66ba5bff64
@ -58,6 +58,6 @@ export class ConversationCreateDto {
|
|||||||
next?: string[];
|
next?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ConversationDTOCruds = DtoConfig<{
|
export type ConversationDtoMapActions = DtoConfig<{
|
||||||
create: ConversationCreateDto;
|
create: ConversationCreateDto;
|
||||||
}>;
|
}>;
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import { Model } from 'mongoose';
|
|||||||
|
|
||||||
import { BaseRepository } from '@/utils/generics/base-repository';
|
import { BaseRepository } from '@/utils/generics/base-repository';
|
||||||
|
|
||||||
import { ConversationDTOCruds } from '../dto/conversation.dto';
|
import { ConversationDtoMapActions } from '../dto/conversation.dto';
|
||||||
import {
|
import {
|
||||||
Conversation,
|
Conversation,
|
||||||
CONVERSATION_POPULATE,
|
CONVERSATION_POPULATE,
|
||||||
@ -26,7 +26,7 @@ export class ConversationRepository extends BaseRepository<
|
|||||||
Conversation,
|
Conversation,
|
||||||
ConversationPopulate,
|
ConversationPopulate,
|
||||||
ConversationFull,
|
ConversationFull,
|
||||||
ConversationDTOCruds
|
ConversationDtoMapActions
|
||||||
> {
|
> {
|
||||||
constructor(
|
constructor(
|
||||||
readonly eventEmitter: EventEmitter2,
|
readonly eventEmitter: EventEmitter2,
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import EventWrapper from '@/channel/lib/EventWrapper';
|
|||||||
import { LoggerService } from '@/logger/logger.service';
|
import { LoggerService } from '@/logger/logger.service';
|
||||||
import { BaseService } from '@/utils/generics/base-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 { VIEW_MORE_PAYLOAD } from '../helpers/constants';
|
||||||
import { ConversationRepository } from '../repositories/conversation.repository';
|
import { ConversationRepository } from '../repositories/conversation.repository';
|
||||||
import { Block, BlockFull } from '../schemas/block.schema';
|
import { Block, BlockFull } from '../schemas/block.schema';
|
||||||
@ -32,7 +32,7 @@ export class ConversationService extends BaseService<
|
|||||||
Conversation,
|
Conversation,
|
||||||
ConversationPopulate,
|
ConversationPopulate,
|
||||||
ConversationFull,
|
ConversationFull,
|
||||||
ConversationDTOCruds
|
ConversationDtoMapActions
|
||||||
> {
|
> {
|
||||||
constructor(
|
constructor(
|
||||||
readonly repository: ConversationRepository,
|
readonly repository: ConversationRepository,
|
||||||
|
|||||||
@ -109,6 +109,6 @@ export class UserResetPasswordDto extends PickType(UserCreateDto, [
|
|||||||
|
|
||||||
export class UserRequestResetDto extends PickType(UserCreateDto, ['email']) {}
|
export class UserRequestResetDto extends PickType(UserCreateDto, ['email']) {}
|
||||||
|
|
||||||
export type UserDTOCruds = DtoConfig<{
|
export type UserDtoMapActions = DtoConfig<{
|
||||||
create: UserCreateDto;
|
create: UserCreateDto;
|
||||||
}>;
|
}>;
|
||||||
|
|||||||
@ -20,7 +20,7 @@ import {
|
|||||||
import { BaseRepository } from '@/utils/generics/base-repository';
|
import { BaseRepository } from '@/utils/generics/base-repository';
|
||||||
import { TFilterQuery } from '@/utils/types/filter.types';
|
import { TFilterQuery } from '@/utils/types/filter.types';
|
||||||
|
|
||||||
import { UserDTOCruds, UserEditProfileDto } from '../dto/user.dto';
|
import { UserDtoMapActions, UserEditProfileDto } from '../dto/user.dto';
|
||||||
import {
|
import {
|
||||||
User,
|
User,
|
||||||
USER_POPULATE,
|
USER_POPULATE,
|
||||||
@ -35,7 +35,7 @@ export class UserRepository extends BaseRepository<
|
|||||||
User,
|
User,
|
||||||
UserPopulate,
|
UserPopulate,
|
||||||
UserFull,
|
UserFull,
|
||||||
UserDTOCruds
|
UserDtoMapActions
|
||||||
> {
|
> {
|
||||||
constructor(
|
constructor(
|
||||||
readonly eventEmitter: EventEmitter2,
|
readonly eventEmitter: EventEmitter2,
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import { Injectable } from '@nestjs/common';
|
|||||||
|
|
||||||
import { BaseService } from '@/utils/generics/base-service';
|
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 { UserRepository } from '../repositories/user.repository';
|
||||||
import { User, UserFull, UserPopulate } from '../schemas/user.schema';
|
import { User, UserFull, UserPopulate } from '../schemas/user.schema';
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ export class UserService extends BaseService<
|
|||||||
User,
|
User,
|
||||||
UserPopulate,
|
UserPopulate,
|
||||||
UserFull,
|
UserFull,
|
||||||
UserDTOCruds
|
UserDtoMapActions
|
||||||
> {
|
> {
|
||||||
constructor(readonly repository: UserRepository) {
|
constructor(readonly repository: UserRepository) {
|
||||||
super(repository);
|
super(repository);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user