From 069484544d4626172c395857a69aea84c334b2e3 Mon Sep 17 00:00:00 2001 From: souravbhowmik1999 Date: Mon, 9 Dec 2024 18:54:12 +0530 Subject: [PATCH 1/4] whitelist delete field options api --- package-lock.json | 9 ++++----- package.json | 2 +- src/common/middleware/apiConfig.ts | 4 ++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9be7236..9ff54b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "UNLICENSED", "dependencies": { "@nestjs/axios": "^3.0.2", - "@nestjs/cache-manager": "^2.2.2", + "@nestjs/cache-manager": "^2.3.0", "@nestjs/common": "^10.3.8", "@nestjs/config": "^3.2.2", "@nestjs/core": "^10.3.8", @@ -1630,10 +1630,9 @@ } }, "node_modules/@nestjs/cache-manager": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@nestjs/cache-manager/-/cache-manager-2.2.2.tgz", - "integrity": "sha512-+n7rpU1QABeW2WV17Dl1vZCG3vWjJU1MaamWgZvbGxYE9EeCM0lVLfw3z7acgDTNwOy+K68xuQPoIMxD0bhjlA==", - "license": "MIT", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@nestjs/cache-manager/-/cache-manager-2.3.0.tgz", + "integrity": "sha512-pxeBp9w/s99HaW2+pezM1P3fLiWmUEnTUoUMLa9UYViCtjj0E0A19W/vaT5JFACCzFIeNrwH4/16jkpAhQ25Vw==", "peerDependencies": { "@nestjs/common": "^9.0.0 || ^10.0.0", "@nestjs/core": "^9.0.0 || ^10.0.0", diff --git a/package.json b/package.json index 51aff65..471d573 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "@nestjs/axios": "^3.0.2", - "@nestjs/cache-manager": "^2.2.2", + "@nestjs/cache-manager": "^2.3.0", "@nestjs/common": "^10.3.8", "@nestjs/config": "^3.2.2", "@nestjs/core": "^10.3.8", diff --git a/src/common/middleware/apiConfig.ts b/src/common/middleware/apiConfig.ts index 6a9cf1b..1b34353 100644 --- a/src/common/middleware/apiConfig.ts +++ b/src/common/middleware/apiConfig.ts @@ -394,6 +394,9 @@ export const apiList = { '/user/v1/fields/options/read': createRouteObject({ post: {}, }), + '/user/v1/fields/options/delete/:identifier': createRouteObject({ + delete: {}, + }), '/user/v1/fields/update/:identifier': createRouteObject({ patch: {}, }), @@ -1566,6 +1569,7 @@ export const publicAPI = [ '/api/course/v1/hierarchy/:identifier', '/prathamservice/v1/cronjob', '/prathamservice/v1/import-user', + '/user/v1/fields/options/delete/:identifier', ]; // api which required academic year From 8c40ae688f70dd134c6be6af60cabf69a8eca598 Mon Sep 17 00:00:00 2001 From: souravbhowmik1999 Date: Mon, 9 Dec 2024 21:49:27 +0530 Subject: [PATCH 2/4] cash manages verson --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9ff54b4..7540364 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "UNLICENSED", "dependencies": { "@nestjs/axios": "^3.0.2", - "@nestjs/cache-manager": "^2.3.0", + "@nestjs/cache-manager": "^2.2.2", "@nestjs/common": "^10.3.8", "@nestjs/config": "^3.2.2", "@nestjs/core": "^10.3.8", diff --git a/package.json b/package.json index 471d573..51aff65 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "dependencies": { "@nestjs/axios": "^3.0.2", - "@nestjs/cache-manager": "^2.3.0", + "@nestjs/cache-manager": "^2.2.2", "@nestjs/common": "^10.3.8", "@nestjs/config": "^3.2.2", "@nestjs/core": "^10.3.8", From ffe05e3f82b3c50e33d0390e463ddd8fd0251a27 Mon Sep 17 00:00:00 2001 From: souravbhowmik1999 Date: Mon, 9 Dec 2024 21:51:40 +0530 Subject: [PATCH 3/4] add --- package-lock.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7540364..9be7236 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1630,9 +1630,10 @@ } }, "node_modules/@nestjs/cache-manager": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@nestjs/cache-manager/-/cache-manager-2.3.0.tgz", - "integrity": "sha512-pxeBp9w/s99HaW2+pezM1P3fLiWmUEnTUoUMLa9UYViCtjj0E0A19W/vaT5JFACCzFIeNrwH4/16jkpAhQ25Vw==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@nestjs/cache-manager/-/cache-manager-2.2.2.tgz", + "integrity": "sha512-+n7rpU1QABeW2WV17Dl1vZCG3vWjJU1MaamWgZvbGxYE9EeCM0lVLfw3z7acgDTNwOy+K68xuQPoIMxD0bhjlA==", + "license": "MIT", "peerDependencies": { "@nestjs/common": "^9.0.0 || ^10.0.0", "@nestjs/core": "^9.0.0 || ^10.0.0", From 275cd6bc1347f83b246daae68f940295297fbb38 Mon Sep 17 00:00:00 2001 From: souravbhowmik1999 Date: Tue, 10 Dec 2024 19:00:18 +0530 Subject: [PATCH 4/4] add --- src/common/middleware/apiConfig.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/common/middleware/apiConfig.ts b/src/common/middleware/apiConfig.ts index 6a19648..7b92076 100644 --- a/src/common/middleware/apiConfig.ts +++ b/src/common/middleware/apiConfig.ts @@ -383,6 +383,21 @@ export const apiList = { ROLE_CHECK: rolesGroup.admin_team_leader, }, }), + '/user/v1/tenant/create': createRouteObject({ + post: { + ROLE_CHECK: rolesGroup.admin_mme, + }, + }), + '/user/v1/tenant/update/:identifier': createRouteObject({ + post: { + ROLE_CHECK: rolesGroup.admin_mme, + }, + }), + '/user/v1/tenant/delete/:identifier': createRouteObject({ + post: { + ROLE_CHECK: rolesGroup.admin_mme, + }, + }), '/user/v1/academicyears/create': createRouteObject({ post: {}, }),