mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-14 18:05:48 +00:00
rebase from dev
This commit is contained in:
@ -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 {}
|
20
libs/common/src/modules/client/dtos/client.dto 2.ts
Normal file
20
libs/common/src/modules/client/dtos/client.dto 2.ts
Normal 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[];
|
||||
}
|
9
libs/common/src/type/express/index.d 2.ts
Normal file
9
libs/common/src/type/express/index.d 2.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { File } from 'multer';
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
interface Request {
|
||||
file?: File;
|
||||
}
|
||||
}
|
||||
}
|
7
src/space/dtos/space.parents.dto 2.ts
Normal file
7
src/space/dtos/space.parents.dto 2.ts
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user