Skip to content

Commit e5c7567

Browse files
committed
refactor: remove DTOs
1 parent 3fa1910 commit e5c7567

27 files changed

Lines changed: 11 additions & 1110 deletions

packages/database/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
".": {
1010
"import": "./dist/index.js",
1111
"types": "./dist/index.d.ts"
12-
},
13-
"./types": {
14-
"import": "./dist/song/dto/types.js",
15-
"types": "./dist/song/dto/types.d.ts"
1612
}
1713
},
1814
"scripts": {
@@ -32,10 +28,9 @@
3228
"@nestjs/common": "^11.1.9",
3329
"@nestjs/mongoose": "^10.1.0",
3430
"@nestjs/swagger": "^11.2.3",
35-
"class-transformer": "^0.5.1",
36-
"class-validator": "^0.14.3",
3731
"mongoose": "^9.0.1",
38-
"@nbw/config": "workspace:*"
32+
"@nbw/config": "workspace:*",
33+
"@nbw/validation": "workspace:*"
3934
},
4035
"peerDependencies": {
4136
"typescript": "^5"

packages/database/src/common/dto/Page.dto.ts

Lines changed: 0 additions & 65 deletions
This file was deleted.

packages/database/src/common/dto/PageQuery.dto.ts

Lines changed: 0 additions & 71 deletions
This file was deleted.

packages/database/src/common/dto/types.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/database/src/index.ts

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,2 @@
1-
export * from './common/dto/Page.dto';
2-
export * from './common/dto/PageQuery.dto';
3-
export * from './common/dto/types';
4-
5-
export * from './song/dto/CustomInstrumentData.dto';
6-
export * from './song/dto/FeaturedSongsDto.dto';
7-
export * from './song/dto/SongListQuery.dto';
8-
export * from './song/dto/SongPage.dto';
9-
export * from './song/dto/SongPreview.dto';
10-
export * from './song/dto/SongStats';
11-
export * from './song/dto/SongView.dto';
12-
export * from './song/dto/ThumbnailData.dto';
13-
export * from './song/dto/UploadSongDto.dto';
14-
export * from './song/dto/UploadSongResponseDto.dto';
15-
export * from './song/dto/types';
16-
export * from './song/entity/song.entity';
17-
18-
export * from './user/dto/CreateUser.dto';
19-
export * from './user/dto/GetUser.dto';
20-
export * from './user/dto/Login.dto copy';
21-
export * from './user/dto/LoginWithEmail.dto';
22-
export * from './user/dto/NewEmailUser.dto';
23-
export * from './user/dto/SingleUsePass.dto';
24-
export * from './user/dto/UpdateUsername.dto';
25-
export * from './user/dto/user.dto';
26-
export * from './user/entity/user.entity';
1+
export * from './song/song.entity';
2+
export * from './user/user.entity';

packages/database/src/index.web.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

packages/database/src/song/dto/CustomInstrumentData.dto.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/database/src/song/dto/FeaturedSongsDto.dto.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/database/src/song/dto/SongListQuery.dto.ts

Lines changed: 0 additions & 105 deletions
This file was deleted.

packages/database/src/song/dto/SongPage.dto.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)