rebase from dev

This commit is contained in:
Dona Maria Absi
2025-04-23 14:58:40 +03:00
parent 516a885251
commit 59d526103c
4 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ClientEntity } from './entities';
@Module({
imports: [TypeOrmModule.forFeature([ClientEntity])],
exports: [TypeOrmModule],
})
export class ClientRepositoryModule {}

View File

@ -0,0 +1,20 @@
import { IsArray, IsNotEmpty, IsString } from 'class-validator';
export class ClientDto {
@IsString()
@IsNotEmpty()
public uuid: string;
@IsString()
@IsNotEmpty()
public clientId: string;
@IsString()
@IsNotEmpty()
public clientSecret: string;
@IsString()
@IsNotEmpty()
public redirectUri: string;
@IsArray()
@IsNotEmpty()
public scopes: string[];
}

View File

@ -0,0 +1,9 @@
import { File } from 'multer';
declare global {
namespace Express {
interface Request {
file?: File;
}
}
}

View File

@ -0,0 +1,7 @@
import { SpaceEntity } from '@app/common/modules/space/entities/space.entity';
import { Expose } from 'class-transformer';
export class SpaceWithParentsDto extends SpaceEntity {
@Expose()
lastThreeParents: string;
}