update packages, fix cards entity

This commit is contained in:
2023-11-19 15:46:20 +01:00
parent 02cd24da5f
commit fbf5236f80
5 changed files with 9828 additions and 9166 deletions

View File

@@ -24,70 +24,70 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.370.0",
"@aws-sdk/client-ses": "^3.350.0",
"@aws-sdk/credential-provider-node": "^3.350.0",
"@nestjs-modules/mailer": "^1.8.1",
"@nestjs/common": "9.4.1",
"@nestjs/config": "^2.3.3",
"@nestjs/core": "9.4.1",
"@nestjs/cqrs": "^9.0.4",
"@nestjs/mapped-types": "*",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "^9.4.1",
"@nestjs/platform-fastify": "^9.4.1",
"@nestjs/schedule": "^2.2.3",
"@aws-sdk/client-s3": "^3.454.0",
"@aws-sdk/client-ses": "^3.454.0",
"@aws-sdk/credential-provider-node": "^3.451.0",
"@nestjs-modules/mailer": "^1.9.1",
"@nestjs/common": "10.2.9",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "10.2.9",
"@nestjs/cqrs": "^10.2.6",
"@nestjs/mapped-types": "^2.0.4",
"@nestjs/passport": "^10.0.2",
"@nestjs/platform-express": "^10.2.9",
"@nestjs/platform-fastify": "^10.2.9",
"@nestjs/schedule": "^4.0.0",
"@nestjs/serve-static": "^4.0.0",
"@nestjs/swagger": "^6.3.0",
"@prisma/client": "^5.0.0",
"@types/passport-local": "^1.0.35",
"aws-sdk": "^2.1415.0",
"bcrypt": "^5.1.0",
"class-transformer": "0.3.1",
"@nestjs/swagger": "^7.1.16",
"@prisma/client": "4.14.0",
"@types/passport-local": "^1.0.38",
"aws-sdk": "^2.1499.0",
"bcrypt": "5.1.0",
"class-transformer": "0.5.1",
"class-validator": "^0.14.0",
"cookie-parser": "^1.4.6",
"date-fns": "^2.30.0",
"dotenv": "^16.1.4",
"jsonwebtoken": "^9.0.0",
"nodemailer": "^6.9.3",
"dotenv": "^16.3.1",
"jsonwebtoken": "^9.0.2",
"nodemailer": "^6.9.7",
"passport": "^0.6.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"reflect-metadata": "^0.1.13",
"remeda": "^1.19.0",
"remeda": "^1.29.0",
"rxjs": "^7.8.1",
"swagger-themes": "^1.2.29",
"uuid": "^9.0.0"
"swagger-themes": "^1.2.30",
"uuid": "^9.0.1"
},
"devDependencies": {
"@it-incubator/prettier-config": "^0.1.1",
"@nestjs/cli": "^9.5.0",
"@nestjs/schematics": "^9.2.0",
"@nestjs/testing": "^9.4.1",
"@types/express": "^4.17.17",
"@types/jest": "29.5.1",
"@types/multer": "^1.4.7",
"@types/node": "18.16.12",
"@types/passport-jwt": "^3.0.9",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"jest": "29.5.0",
"prettier": "^2.8.8",
"@it-incubator/prettier-config": "^0.1.2",
"@nestjs/cli": "^10.2.1",
"@nestjs/schematics": "^10.0.3",
"@nestjs/testing": "^10.2.9",
"@types/express": "^4.17.21",
"@types/jest": "29.5.8",
"@types/multer": "^1.4.10",
"@types/node": "20.9.2",
"@types/passport-jwt": "^3.0.13",
"@types/supertest": "^2.0.16",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"jest": "29.7.0",
"prettier": "^3.1.0",
"prisma": "^5.0.0",
"sass": "^1.64.0",
"sass": "^1.69.5",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "29.1.0",
"ts-loader": "^9.4.2",
"ts-jest": "29.1.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "4.2.0",
"typescript": "^5.0.4"
"typescript": "^5.2.2"
},
"jest": {
"moduleFileExtensions": [

9773
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,5 @@
import { OmitType } from '@nestjs/swagger'
import { Pagination } from '../../../infrastructure/common/pagination/pagination.dto'
export class Card {
@@ -16,8 +18,10 @@ export class Card {
updated: Date
}
export class CardWithoutRating extends OmitType(Card, ['rating'] as const) {}
export class PaginatedCards {
items: Array<Omit<Card, 'userId' | 'rating'> & { grade: number }>
items: CardWithoutRating[]
pagination: Pagination
}
@@ -25,6 +29,7 @@ export class PaginatedCardsWithGrade {
pagination: Pagination
items: CardWithGrade[]
}
export class CardWithGrade extends Card {
grades?: Array<{ grade: number }>
}

View File

@@ -17,7 +17,7 @@ export class CreateDeckDto {
*/
@IsOptional()
@IsBoolean()
@Transform((val: string) => [true, 'true', 1, '1'].indexOf(val) > -1)
@Transform(({ value }) => [true, 'true', 1, '1'].indexOf(value) > -1)
isPrivate?: boolean
@ApiHideProperty()

9116
yarn.lock

File diff suppressed because it is too large Load Diff