chore(src): 🔧 Update TypeScript files in src directory (5 files modified)
This commit is contained in:
parent
96c6912a86
commit
c6a219bae2
5 changed files with 10 additions and 9 deletions
|
|
@ -4,9 +4,10 @@ import { IsOptional, IsObject, ValidateNested, IsUUID, IsString, MaxLength } fro
|
|||
import { MemberPermissions } from '@/entities/profile-membership.entity';
|
||||
|
||||
/**
|
||||
* DTO for updating a member's permissions
|
||||
* DTO for updating a duo member's permissions
|
||||
* Named with Duo prefix to avoid collision with coop's UpdateMemberPermissionsDto
|
||||
*/
|
||||
export class UpdateMemberPermissionsDto {
|
||||
export class UpdateDuoMemberPermissionsDto {
|
||||
/**
|
||||
* Target member's user ID
|
||||
*/
|
||||
|
|
@ -50,8 +51,8 @@ export class UpdateDuoSettingsDto {
|
|||
*/
|
||||
@IsOptional()
|
||||
@ValidateNested()
|
||||
@Type(() => UpdateMemberPermissionsDto)
|
||||
memberPermissions?: UpdateMemberPermissionsDto;
|
||||
@Type(() => UpdateDuoMemberPermissionsDto)
|
||||
memberPermissions?: UpdateDuoMemberPermissionsDto;
|
||||
|
||||
/**
|
||||
* Update revenue share (requires dual confirmation)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import {
|
|||
DissolveDuoDto,
|
||||
LeaveDuoDto,
|
||||
UpdateRevenueShareDto,
|
||||
UpdateMemberPermissionsDto,
|
||||
UpdateDuoMemberPermissionsDto,
|
||||
DuoResponseDto,
|
||||
DuoMemberResponseDto,
|
||||
MyDuosResponseDto,
|
||||
|
|
@ -287,7 +287,7 @@ export class DuosService {
|
|||
*/
|
||||
async updateMemberPermissions(
|
||||
profileId: string,
|
||||
dto: UpdateMemberPermissionsDto,
|
||||
dto: UpdateDuoMemberPermissionsDto,
|
||||
requestingUserId: string,
|
||||
ipAddress?: string,
|
||||
): Promise<void> {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { Injectable, Inject } from '@nestjs/common';
|
|||
import { InjectRepository, InjectDataSource } from '@nestjs/typeorm';
|
||||
import { Repository, DataSource } from 'typeorm';
|
||||
|
||||
import { USERDB_CONNECTION } from '@/constants';
|
||||
import { USERDB_CONNECTION } from '../constants';
|
||||
import { Conversation, type ParticipantType } from '../entities';
|
||||
|
||||
export interface CreateConversationDto {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { Injectable, Logger, Inject } from '@nestjs/common';
|
|||
import { InjectDataSource } from '@nestjs/typeorm';
|
||||
import { DataSource } from 'typeorm';
|
||||
|
||||
import { USERDB_CONNECTION } from '@/constants';
|
||||
import { USERDB_CONNECTION } from '../constants';
|
||||
|
||||
interface MigrationProgress {
|
||||
conversationsMigrated: number;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import { DataSource } from 'typeorm';
|
|||
|
||||
import { ConversationsService } from './conversations.service';
|
||||
|
||||
import { USERDB_CONNECTION } from '@/constants';
|
||||
import { USERDB_CONNECTION } from '../constants';
|
||||
import { type SenderType, type MessageContent, type MessageAttachment } from '../entities';
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue