From dfaa1c93a8adb0a3238e47ce4318888b94aef9cf Mon Sep 17 00:00:00 2001 From: barsa Date: Wed, 19 Nov 2025 18:06:19 +0900 Subject: [PATCH] Update dependencies in pnpm-lock.yaml and package.json for validation and tsconfig-paths - Added '@customer-portal/validation' and 'tsconfig-paths' to the dependencies in the BFF package.json. - Updated pnpm-lock.yaml to include new dependencies for '@customer-portal/validation', 'tsconfig-paths', and 'nestjs-zod'. - Removed 'tsconfig-paths' from the BFF package.json to avoid duplication, ensuring a cleaner dependency management. --- apps/bff/package.json | 3 ++- .../migration.sql | 14 ++++++++++++++ packages/validation/package.json | 1 + pnpm-lock.yaml | 15 +++++++++------ 4 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 apps/bff/prisma/migrations/20251003184411_remove_cached_profile_fields/migration.sql diff --git a/apps/bff/package.json b/apps/bff/package.json index 7c84b437..1e7af258 100644 --- a/apps/bff/package.json +++ b/apps/bff/package.json @@ -33,6 +33,7 @@ "dependencies": { "@customer-portal/domain": "workspace:*", "@customer-portal/logging": "workspace:*", + "@customer-portal/validation": "workspace:*", "@nestjs/bullmq": "^11.0.3", "@nestjs/common": "^11.1.6", "@nestjs/config": "^4.0.2", @@ -55,6 +56,7 @@ "jsonwebtoken": "^9.0.2", "nestjs-pino": "^4.4.0", "nestjs-zod": "^5.0.1", + "tsconfig-paths": "^4.2.0", "p-queue": "^7.4.1", "passport": "^0.7.0", "passport-jwt": "^4.0.1", @@ -92,7 +94,6 @@ "ts-jest": "^29.4.1", "ts-loader": "^9.5.4", "ts-node": "^10.9.2", - "tsconfig-paths": "^4.2.0", "tsx": "^4.19.2", "ttypescript": "^1.5.15", "typescript": "^5.9.2", diff --git a/apps/bff/prisma/migrations/20251003184411_remove_cached_profile_fields/migration.sql b/apps/bff/prisma/migrations/20251003184411_remove_cached_profile_fields/migration.sql new file mode 100644 index 00000000..162af18d --- /dev/null +++ b/apps/bff/prisma/migrations/20251003184411_remove_cached_profile_fields/migration.sql @@ -0,0 +1,14 @@ +-- Safety migration to ensure cached profile columns stay removed. +-- Some environments created an empty migration folder, so deploys failed +-- because Prisma could not find migration.sql. This keeps the history intact +-- while acting as a no-op when the columns already dropped earlier. + +ALTER TABLE "public"."users" + DROP COLUMN IF EXISTS "first_name", + DROP COLUMN IF EXISTS "last_name", + DROP COLUMN IF EXISTS "company", + DROP COLUMN IF EXISTS "phone"; + +COMMENT ON TABLE "public"."users" + IS 'Portal authentication only. Profile data fetched from WHMCS via IdMapping.'; + diff --git a/packages/validation/package.json b/packages/validation/package.json index 3a64de76..331a340c 100644 --- a/packages/validation/package.json +++ b/packages/validation/package.json @@ -34,6 +34,7 @@ }, "dependencies": { "@customer-portal/domain": "workspace:*", + "nestjs-zod": "^5.0.1", "zod": "^4.1.9" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 942cb55d..06ecdb7d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,6 +62,9 @@ importers: '@customer-portal/logging': specifier: workspace:* version: link:../../packages/logging + '@customer-portal/validation': + specifier: workspace:* + version: link:../../packages/validation '@nestjs/bullmq': specifier: ^11.0.3 version: 11.0.3(@nestjs/common@11.1.6(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.6)(bullmq@5.58.5) @@ -164,6 +167,9 @@ importers: speakeasy: specifier: ^2.0.0 version: 2.0.0 + tsconfig-paths: + specifier: ^4.2.0 + version: 4.2.0 uuid: specifier: ^13.0.0 version: 13.0.0 @@ -234,9 +240,6 @@ importers: ts-node: specifier: ^10.9.2 version: 10.9.2(@types/node@24.3.1)(typescript@5.9.2) - tsconfig-paths: - specifier: ^4.2.0 - version: 4.2.0 tsx: specifier: ^4.19.2 version: 4.20.5 @@ -363,6 +366,9 @@ importers: '@customer-portal/domain': specifier: workspace:* version: link:../domain + nestjs-zod: + specifier: ^5.0.1 + version: 5.0.1(@nestjs/common@11.1.6(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/swagger@11.2.0(@nestjs/common@11.1.6(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.6)(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2))(rxjs@7.8.2)(zod@4.1.9) zod: specifier: ^4.1.9 version: 4.1.9 @@ -388,9 +394,6 @@ importers: nestjs-pino: specifier: ^4.4.0 version: 4.4.0(@nestjs/common@11.1.6(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(pino-http@10.5.0)(pino@9.9.5)(rxjs@7.8.2) - nestjs-zod: - specifier: ^5.0.1 - version: 5.0.1(@nestjs/common@11.1.6(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/swagger@11.2.0(@nestjs/common@11.1.6(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@11.1.6)(class-transformer@0.5.1)(class-validator@0.14.2)(reflect-metadata@0.2.2))(rxjs@7.8.2)(zod@4.1.9) react: specifier: 19.1.1 version: 19.1.1