mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:34:55 +00:00
remove unused client and space DTOs and repository module
This commit is contained in:
@ -1,9 +0,0 @@
|
|||||||
import { Module } from '@nestjs/common';
|
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
||||||
import { ClientEntity } from './entities';
|
|
||||||
|
|
||||||
@Module({
|
|
||||||
imports: [TypeOrmModule.forFeature([ClientEntity])],
|
|
||||||
exports: [TypeOrmModule],
|
|
||||||
})
|
|
||||||
export class ClientRepositoryModule {}
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
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[];
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
import { SpaceEntity } from '@app/common/modules/space/entities/space.entity';
|
|
||||||
import { Expose } from 'class-transformer';
|
|
||||||
|
|
||||||
export class SpaceWithParentsDto extends SpaceEntity {
|
|
||||||
@Expose()
|
|
||||||
lastThreeParents: string;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user