From b97b08fea1c70a8aac406e6666505bf57c2a9d31 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Wed, 16 Oct 2024 08:25:02 +0530 Subject: [PATCH] 4.8.18 dev (#124) * user event batch enroll api * UserEventEnrollmentList API added (#116) Co-authored-by: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> * KB-7057 | Q6 | Nation Learning Week | API for event state update 1. Whitelisted api . * user event read * KB-7057 | Q6 | Nation Learning Week | API for event state update (#120) 1. Event api kong updated. * user event state read api (#122) * event progress api changes (#123) --------- Co-authored-by: shankaragoudab <140387294+shankaragoudab@users.noreply.github.com> Co-authored-by: sureshece16 <80331286+sureshece16@users.noreply.github.com> Co-authored-by: Arpitha Co-authored-by: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Co-authored-by: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> --- src/proxies_v8/proxies_v8.ts | 4 ++++ src/utils/whitelistApis.ts | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/src/proxies_v8/proxies_v8.ts b/src/proxies_v8/proxies_v8.ts index 1bf6e62e..ecf58a89 100644 --- a/src/proxies_v8/proxies_v8.ts +++ b/src/proxies_v8/proxies_v8.ts @@ -1100,3 +1100,7 @@ proxiesV8.use('/national/learning/week/insights', // tslint:disable-next-line: max-line-length proxyCreatorSunbirdSearch(express.Router(), `${CONSTANTS.KONG_API_BASE}/national/learning/week/insights`) ) + +proxiesV8.use('/eventprogress/*', + proxyCreatorSunbird(express.Router(), `${CONSTANTS.KONG_API_BASE}`) +) \ No newline at end of file diff --git a/src/utils/whitelistApis.ts b/src/utils/whitelistApis.ts index 541eaa4b..ddc2754a 100644 --- a/src/utils/whitelistApis.ts +++ b/src/utils/whitelistApis.ts @@ -4679,6 +4679,42 @@ export const API_LIST = { ROLE.CBP_ADMIN, ], }, + '/proxies/v8/user/events/list/:uid': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + + }, + '/proxies/v8/event/batch/enroll': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, + '/proxies/v8/eventprogress/v1/event/state/update': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, + '/proxies/v8/user/event/read/:id': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, + '/proxies/v8/user/event/state/read': { + checksNeeded: [CHECK.ROLE], + // tslint:disable-next-line: object-literal-sort-keys + ROLE_CHECK: [ + ROLE.PUBLIC, + ], + }, }, URL_PATTERN: [ @@ -5282,5 +5318,10 @@ export const API_LIST = { '/proxies/v8/operationalreports/v2/download/:rootOrgId', '/proxies/v8/storage/v1/uploadCiosLogsFile', '/proxies/v8/storage/v1/downloadCiosLogs/:fileName', + '/proxies/v8/user/events/list/:uid', + '/proxies/v8/event/batch/enroll', + '/proxies/v8/eventprogress/v1/event/state/update', + '/proxies/v8/user/event/read/:id', + '/proxies/v8/user/event/state/read', ], }