Skip to content

Commit

Permalink
Move latest code of develop to release 1201 new (#1061)
Browse files Browse the repository at this point in the history
* [MOSIP-25791] Added purpose as mandatory (#751)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* MOSIP-25935 MOSIP-26198 Fixed vid type in generate vid. (#752)

* Fixed service history issue.

* MOSIP-25935 Fixed placeholder issue.

* MOSIP-25935 Fixed placeholder issue.

* MOSIP-25935 Fixed vid type in generate vid.

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#754)

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow

* Update postres-init_trigger.yml

* [MOSIP-25934], [MOSIP-25771] , [MOSIP-25363]  Added Audit logs (#757)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases (#758)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* MOSIP-25864 MOSIP-26010 MOSIP-25751 Added attribute Name in personalized card template. (#756)

* Fixed service history issue.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added configurable authentication Mode in enum.

* MOSIP-25864 Added javadoc.

* MOSIP-25864 Added javadoc.

* MOSIP-25861-resident-api-able-to-upload-document-with-all-invalid-details-as-input (#753)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

---------

Co-authored-by: Ritik Jain <[email protected]>

* Notification issue (#760)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

* revert changes in template util

* added test case

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-25864 Fixed template issue. (#761)

* Fixed service history issue.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added configurable authentication Mode in enum.

* MOSIP-25864 Added javadoc.

* MOSIP-25864 Added javadoc.

* MOSIP-25864 Fixed template issue.

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#759)

* MOSIP-23878  implemented interceptor (#602)

* MOSIP-23019 ordercard redirect url done

* MOSIP-23019 ordercard redirect test case url done

* MOSIP-23019 junit fixed

* Changes in order card and redirect URL is done

* Fix Junit and residenterror code changed

* Exception handle

* MOSIP-22888 ticket done

* chnages done  to get idatoken

* MOSIP-24860 Update event read status is done

* MOSIP-25005 Batch job bug fixed

* Removed whitespace

* Implemented interceptor

* Changes done for interceptor

* removed unused file

* Interceptor changes done

* code formatting

* Removed whitespace

* Removed whitespace

* Removed unused file

---------

Co-authored-by: Neha Farheen <[email protected]>

* Resolved test case (#764)

* MOSIP-23019 ordercard redirect url done

* MOSIP-23019 ordercard redirect test case url done

* MOSIP-23019 junit fixed

* Changes in order card and redirect URL is done

* Fix Junit and residenterror code changed

* Exception handle

* MOSIP-22888 ticket done

* chnages done  to get idatoken

* MOSIP-24860 Update event read status is done

* MOSIP-25005 Batch job bug fixed

* Removed whitespace

* Implemented interceptor

* Changes done for interceptor

* removed unused file

* Interceptor changes done

* code formatting

* Removed whitespace

* Removed whitespace

* Removed unused file

* Junit fixed

---------

Co-authored-by: Neha Farheen <[email protected]>

* removed throw exception (#765)

Co-authored-by: Ritik Jain <[email protected]>

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs (#762)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs (#766)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* MOSIP-24630 Fixed Security Vulnerability. (#767)

* Fixed service history issue.

* MOSIP-24630 Changed service history implementation.

* MOSIP-24630 Added jpa repo for service history api.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Fixed typo.

* MOSIP-24630 Reverted default start date.

* MOSIP-24630 Improved code coverage. (#768)

* Fixed service history issue.

* MOSIP-24630 Changed service history implementation.

* MOSIP-24630 Added jpa repo for service history api.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Fixed typo.

* MOSIP-24630 Reverted default start date.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* [MOSIP-25268] Fixed Sonar vulnerability (#769)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* MOSIP-24630 Improved code coverage. (#770)

* Fixed service history issue.

* MOSIP-24630 Changed service history implementation.

* MOSIP-24630 Added jpa repo for service history api.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Fixed typo.

* MOSIP-24630 Reverted default start date.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* Fix class cast issue (#771)

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26247 fix update otp validation issue in update contact (#772)

* Fix class cast issue

* MOSIP-26247 WIP-fix-to-double-entry-for-update-contact

* Test fixes

* Code fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-25861-resident-api-able-to-upload-document-with-all-invalid-details-as-input (#763)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

* revert changes in template util

* added test case

* put validation on transaction id

* fixed transaction id validation

* added regex validation for eventId and transactionId

* validated documentid, transactionid and otp

* updated regex names

* fixed mumeric method name

* updated test properties

---------

Co-authored-by: Ritik Jain <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 25391 individualid decryption fix share cred status fix (#773)

* Fix class cast issue

* MOSIP-26247 WIP-fix-to-double-entry-for-update-contact

* Test fixes

* Code fix

* Individual ID decryption fixed in interceptor, share cred status initialized to NEW.

* pom fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26090-tech-story-fix-the-status-updates-for-vid-card-download-update-uin-events (#775)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

* revert changes in template util

* added test case

* put validation on transaction id

* fixed transaction id validation

* added regex validation for eventId and transactionId

* validated documentid, transactionid and otp

* updated regex names

* fixed mumeric method name

* updated test properties

* changed status to new

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-24773 Fixed Download card issue. (#774)

* Fixed service history issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Refactor code

* removed unused variable from request (#777)

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 26090 tech story fix the status updates for vid card download update uin events (#778)

* removed unused variable from request

* fixed batch job

* fixed code

* formatted code

* fixed batch job

* added stored status

* updated batch job and created download card link

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-26272] Added validation for update-uin API (#779)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* Mosip 26090 tech story fix the status updates for vid card download update uin events (#780)

* removed unused variable from request

* fixed batch job

* fixed code

* formatted code

* fixed batch job

* added stored status

* updated batch job and created download card link

* updated batch job and fixed download-card api

* fixed placeholder and method name

---------

Co-authored-by: Ritik Jain <[email protected]>

* [MOSIP-26272] updated update-uin PR, test cases (#781)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* updated PR

* MOSIP-24939 Improved code coverage. (#776)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* Fixed build issue (#782)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Mosip 26090 tech story fix the status updates for vid card download update uin events (#783)

* removed unused variable from request

* fixed batch job

* fixed code

* formatted code

* fixed batch job

* added stored status

* updated batch job and created download card link

* updated batch job and fixed download-card api

* fixed placeholder and method name

* added suffix for rid

* removed unused property

* update the data time

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-25854 Fixed vid card issue. (#785)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* Updated transactionId error message (#784)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* MOSIP-25854 Fixed vid card issue. (#786)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue. (#787)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* Updated Test cases for ResidentServiceResUpdate class (#788)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* MOSIP-25536 Added online verification partner id in jpa repo view history. (#790)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25536 Added online verification partner id in jpa repo view history.

* MOSIP-25536 Fixed test case failure.

* Fix for setting read status to false (#791)

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#792)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#793)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#794)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#796)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#797)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#798)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#799)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#800)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

* Minor fixes

* Ignoring test for build failure in github action. to be reverted and fixed

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26314 fix for read status for auth lock status 2 (#801)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

* Minor fixes

* Ignoring test for build failure in github action. to be reverted and fixed

* Fix for setting read status to false (#791)

Co-authored-by: Loganathan Sekar <[email protected]>

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26350 fix share cred req (#802)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

* Minor fixes

* Ignoring test for build failure in github action. to be reverted and fixed

* Fix for setting read status to false (#791)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix for share credential request to cred req service

* fix for is masked false

* Fix for isMasked

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* added log for number of entries (#804)

Co-authored-by: Ritik Jain <[email protected]>

* [MOSIP-26343] Created module specific audits (#803)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* Removed unwanted fields, fixed coding issue to avoid state in bean, o… (#805)

* Removed unwanted fields, fixed coding issue to avoid state in bean, organized imports

* Text fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-24939 Fixed service history issue. (#807)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25536 Added online verification partner id in jpa repo view history.

* MOSIP-25536 Fixed test case failure.

* MOSIP-24939 Improved sonar coverage.

* MOSIP-24939 Improved sonar coverage.

* MOSIP-24939 Fixed service history issue.

* MOSIP-24939 Fixed service history issue.

* MOSIP-24939 Fixed service history issue.

* Mosip 26515 format fixing (#806)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

---------

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 26515 format fixing (#808)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

---------

Co-authored-by: Ritik Jain <[email protected]>

* batch job fix (#812)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-24737 Added proper error code for invalid page fetch value. (#813)

* Fixed service history issue.

* MOSIP-24737 Added proper error code for invalid page fetch value.

* MOSIP-24737 corrected id-schema value in update-uin.

* MOSIP-24737 corrected id-schema value in update-uin.

* MOSIP-26121-resident-ui-in-verify-phone-number-email-id-not-able-to-track-event-id-status-its-displayed-empty-screen (#814)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

---------

Co-authored-by: Ritik Jain <[email protected]>

* Automation fix dev3 (#816)

* Fixed service history issue.

* update-uin old api fix for id-schema version issue

* update-uin old api fix for id-schema version issue

* update-uin old api fix for id-schema version issue

* MOSIP-26292-resident-api-appropriate-error-message-is-not-displayed-when-purpose-is-empty (#819)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

* fixed missing parameter error

---------

Co-authored-by: Ritik Jain <[email protected]>

* Fix for email notification for failure case (#821)

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-26087],[MOSIP-26355] Added featureName in ack pdf filename (#820)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Fix failure notifications (#823)

* Fix for email notification for failure case

* Added missing file

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26121-resident-ui-in-verify-phone-number-email-id-not-able-to-track-event-id-status-its-displayed-empty-screen (#822)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

* fixed missing parameter error

* fixed ida token issue

* fixed to get individualId

---------

Co-authored-by: Ritik Jain <[email protected]>

* fixed individual id issue (#825)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

* fixed missing parameter error

* fixed ida token issue

* fixed to get individualId

* fix individual id issue and added comments

* made constant

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-26289 bug fixed (#824)

* MOSIP-26289 changes done

* MOSIP-26289 changes done

---------

Co-authored-by: Neha Farheen <[email protected]>

* Bug fixed (#827)

* MOSIP-26289 changes done

* MOSIP-26289 changes done

* Bug fixed

---------

Co-authored-by: Neha Farheen <[email protected]>

* fixed id version for document APIs (#828)

Co-authored-by: Ritik Jain <[email protected]>

* updated enum names and removed duplicate constants (#829)

* fixed id version for document APIs

* update constant names

* used constant file_text

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-24939 Fixed test case failure. (#831)

* Fixed service history issue.

* MOSIP-24939 Fixed test case failure.

* MOSIP-26693-api-resident-service-request-id-is-getting-generate-from-credential-issuance-when-credential-type-and-issuer-not-present-in-the-request-body (#830)

* fixed id version for document APIs

* update constant names

* used constant file_text

* added validation on req credential API

* added validation for req credential API

---------

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 25391 fix bell notification issue (#832)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-24494] Updated transliterate API error msg (#833)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* Added properties for default page size (#836)

* Added properties for default page size

* minor import fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Add property for default page size 2 (#837)

* Added properties for default page size

* minor import fix

* Fix to the default page size logic

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26334 Fixed update uin invalid lang code error. (#838)

* Fixed service history issue.

* MOSIP-26334 Fixed update uin invalid lang code error.

* MOSIP-26334 Corrected code as per review comment.

* MOSIP-26334 Corrected code as per review comment.

* MOSIP-26334 Corrected code as per review comment.

* MOSIP-26334 Corrected code as per review comment.

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs (#839)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs

* MOSIP-26347-aid-stage-is-returning-success-even-though-it-is-failed-in-regproc (#835)

* fixed id version for document APIs

* update constant names

* used constant file_text

* added validation on req credential API

* added validation for req credential API

* removed duplicate code

* fixed rid status issue

* removed name from enum

* code fix for rid status issue

* update validate request body method

---------

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 25391 fix bell notification issue (#840)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

* Fixed cred batch job issues

* Minor refactoring and fixes

* test fix

* Card status update fix

* added author

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 25391 fix bell notification issue 1 (#841)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

* Fixed cred batch job issues

* Minor refactoring and fixes

* test fix

* Card status update fix

* added author

* Added missing file

* Added jdoc

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 25391 fix bell notification issue 2 (#842)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

* Fixed cred batch job issues

* Minor refactoring and fixes

* test fix

* Card status update fix

* added author

* Added missing file

* Added jdoc

* Updated logging

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Removed logic to mark failure for unavailable req id (#844)

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-26089] Added authentication mode (#845)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs

* [MOSIP-26089] Added authentication mode

* MOSIP-22871-api-add-api-to-convert-the-list-of-registration-centers-request-as-a-downloadable-pdf (#847)

* fixed id version for document APIs

* update constant names

* used constant file_text

* added validation on req credential API

* added validation for req credential API

* removed duplicate code

* fixed rid status issue

* removed name from enum

* code fix for rid status issue

* update validate request body method

* fixed registration center issue

---------

Co-authored-by: Ritik Jain <[email protected]>

* Added debug logging filter (#849)

* Added debug logging filter

* Added jdoc

* Minor cleanup

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 1 (#851)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Fixed Download UIN card using VID. (#848)

* Fixed service history issue.

* Fixed download card using vid.

* MOSIP-24818 Changed deprecated admin module proxy API endpoint. (#852)

* Fixed service history issue.

* MOSIP-24818 Changed deprecated admin module proxy API endpoint.

* MOSIP-24818 Removed un-necessary commits.

* Mosip 22874 authtype lock websub issue 3 (#853)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 3 (#854)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 4 (#855)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

* junit fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 5 (#857)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

* junit fix

* WIP-fixing auth txn saving

* Updated logic to save auth txn

* Added Y and N status for getting description

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 5 (#858)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

* junit fix

* WIP-fixing auth txn saving

* Updated logic to save auth txn

* Added Y and N status for getting description

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Fixed Sonar bugs (#859)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs

* [MOSIP-26089] Added authentication mode

* Fixed Sonar Bugs

* updated PR

* updated as per review

* Updated Sonar bug fix (#860)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* re…
  • Loading branch information
12 people authored Aug 23, 2023
1 parent cb52c2a commit db0895e
Show file tree
Hide file tree
Showing 102 changed files with 3,129 additions and 2,367 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ jobs:
- name: Build image
run: |
cd "./${{env.SERVICE_LOCATION}}"
docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
# docker build . --file Dockerfile --tag ${{ env.SERVICE_NAME }}
docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}
- name: Log into registry
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin

Expand Down
41 changes: 35 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,44 @@

[![Maven Package upon a push](https://github.com/mosip/resident-services/actions/workflows/push_trigger.yml/badge.svg?branch=release-1.2.0.1)](https://github.com/mosip/resident-services/actions/workflows/push_trigger.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mosip_resident-services&id=mosip_resident-services&branch=release-1.2.0.1&metric=alert_status)](https://sonarcloud.io/dashboard?id=mosip_resident-services&branch=release-1.2.0.1)
[![Maven Package upon a push](https://github.com/mosip/resident-services/actions/workflows/push_trigger.yml/badge.svg?branch=release-1.2.0)](https://github.com/mosip/resident-services/actions/workflows/push_trigger.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mosip_resident-services&id=mosip_resident-services&branch=release-1.2.0&metric=alert_status)](https://sonarcloud.io/dashboard?id=mosip_resident-services&branch=release-1.2.0)

# Resident Services
## Overview
Refer [here](https://docs.mosip.io/1.2.0/modules/resident-services).
This repository contains the source code and design documents for MOSIP Resident Service. For an overview please refer [here](https://docs.mosip.io/1.2.0/modules/resident-services). This module exposes API endpoints for Resident UI (refer [Resident UI github repo](https://github.com/mosip/resident-ui/blob/master/README.md)).


## Database
See [DB guide](db_scripts/README.md)

## Config-Server
To run Resident services, run [Config Server](https://docs.mosip.io/1.2.0/modules/module-configuration#config-server)

## Build & run (for developers)
Prerequisites:

1. [Config Server](https://docs.mosip.io/1.2.0/modules/module-configuration#config-server)
1. JDK 1.11
1. Build and install:
```
$ cd resident-services
$ mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true
```
1. Build Docker for a service:
```
$ cd <service folder>
$ docker build -f Dockerfile
```
## Deploy
To deploy Commons services on Kubernetes cluster using Dockers refer to [Sandbox Deployment](https://docs.mosip.io/1.2.0/deployment/sandbox-deployment).
## Configuration
Refer to the [configuration guide](docs/configuration.md).
## Test
Automated functional tests available in [Functional Tests repo](https://github.com/mosip/mosip-functional-tests).
## APIs
API documentation is available [here](https://docs.mosip.io/1.2.0/api).
API documentation is available [here](https://mosip.github.io/documentation/).
## License
This project is licensed under the terms of [Mozilla Public License 2.0](LICENSE).

5 changes: 4 additions & 1 deletion db_release_scripts/mosip_resident/ddl/otp_transaction.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ COMMENT ON COLUMN resident.otp_transaction.upd_by IS 'ID or name of the user who
COMMENT ON COLUMN resident.otp_transaction.upd_dtimes IS 'Date and Timestamp when any of the fields in the record is updated with new values.';
COMMENT ON COLUMN resident.otp_transaction.is_deleted IS 'Flag to mark whether the record is Soft deleted.';
COMMENT ON COLUMN resident.otp_transaction.del_dtimes IS 'Date and Timestamp when the record is soft deleted with is_deleted=TRUE';
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.otp_transaction
TO residentuser;
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ COMMENT ON COLUMN resident.resident_grievance_ticket.eventId IS 'Unique event id
COMMENT ON COLUMN resident.resident_grievance_ticket.emailId IS 'Unique email id.';
COMMENT ON COLUMN resident.resident_grievance_ticket.alternateEmailId IS 'Alternate email id.';
COMMENT ON COLUMN resident.resident_grievance_ticket.phoneNo IS 'Phone number.';
COMMENT ON COLUMN resident.resident_grievance_ticket.altrenatePhoneNo IS 'Alternate Phone number.';
COMMENT ON COLUMN resident.resident_grievance_ticket.alternatePhoneNo IS 'Alternate Phone number.';
COMMENT ON COLUMN resident.resident_grievance_ticket.message IS 'Message.';
COMMENT ON COLUMN resident.resident_grievance_ticket.status IS 'status.';
COMMENT ON COLUMN resident.resident_grievance_ticket.cr_by IS 'created by.';
Expand All @@ -48,3 +48,6 @@ COMMENT ON COLUMN resident.resident_grievance_ticket.is_deleted IS 'is deleted.'
COMMENT ON COLUMN resident.resident_grievance_ticket.del_dtimes IS 'Deleted time-stamp.';

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_grievance_ticket
TO residentuser;
21 changes: 14 additions & 7 deletions db_release_scripts/mosip_resident/ddl/resident_session.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ CREATE TABLE resident.resident_session(
CONSTRAINT pk_session_id PRIMARY KEY (session_id)
);

COMMENT ON TABLE resident_session IS 'This Table is used to save the user sessions.';
COMMENT ON COLUMN resident_session.session_id IS 'The unique session identifier for each login';
COMMENT ON COLUMN resident_session.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident_session.login_dtimes IS 'The time when the user last logged in';
COMMENT ON COLUMN resident_session.ip_address IS 'The ip_address of device from which the user logged in';
COMMENT ON COLUMN resident_session.host IS 'The host of the site';
COMMENT ON COLUMN resident_session.machine_type IS 'The OS of device used for accessing the portal/app';
COMMENT ON TABLE resident.resident_session IS 'This Table is used to save the user sessions.';
COMMENT ON COLUMN resident.resident_session.session_id IS 'The unique session identifier for each login';
COMMENT ON COLUMN resident.resident_session.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident.resident_session.login_dtimes IS 'The time when the user last logged in';
COMMENT ON COLUMN resident.resident_session.ip_address IS 'The ip_address of device from which the user logged in';
COMMENT ON COLUMN resident.resident_session.host IS 'The host of the site';
COMMENT ON COLUMN resident.resident_session.machine_type IS 'The OS of device used for accessing the portal/app';

-- Adding index to ida_token column
CREATE INDEX idx_resident_session_ida_token ON resident.resident_session (ida_token);

GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_session
TO residentuser;
28 changes: 26 additions & 2 deletions db_release_scripts/mosip_resident/ddl/resident_transaction.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ CREATE TABLE resident.resident_transaction(
CONSTRAINT pk_restrn_event_id PRIMARY KEY (event_id)
);

COMMENT ON TABLE resident_transaction IS 'This Table is used to save the transaction related to residents.';
COMMENT ON COLUMN resident_transaction.event_id IS 'Unique Id of the transaction.';
COMMENT ON TABLE resident.resident_transaction IS 'This Table is used to save the transaction related to residents.';
COMMENT ON COLUMN resident.resident_transaction.event_id IS 'Unique Id of the transaction.';
COMMENT ON COLUMN resident.resident_transaction.aid IS 'The Application ID';
COMMENT ON COLUMN resident.resident_transaction.request_dtimes IS 'The time when the request is received by the service';
COMMENT ON COLUMN resident.resident_transaction.response_dtime IS 'The time when the response is received by the service';
Expand Down Expand Up @@ -86,3 +86,27 @@ COMMENT ON COLUMN resident.resident_transaction.purpose IS 'The purpose of the r
COMMENT ON COLUMN resident.resident_transaction.credential_request_id IS 'The credential request id';

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Adding index to event_id column
CREATE INDEX idx_resident_transaction_event_id ON resident.resident_transaction (event_id);

-- Adding index to token_id column
CREATE INDEX idx_resident_transaction_token_id ON resident.resident_transaction (token_id);

-- Adding index to credential_request_id column
CREATE INDEX idx_resident_transaction_credential_request_id ON resident.resident_transaction (credential_request_id);

-- Adding index to request_dtimes column
CREATE INDEX idx_resident_transaction_request_dtimes ON resident.resident_transaction (request_dtimes);

-- Adding index to request_trn_id column
CREATE INDEX idx_resident_transaction_request_trn_id ON resident.resident_transaction (request_trn_id);

-- Adding index to ref_id column
CREATE INDEX idx_resident_transaction_ref_id ON resident.resident_transaction (ref_id);

--Adding index to read_status column
CREATE INDEX idx_resident_transaction_read_status ON resident.resident_transaction (read_status);

GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_transaction
TO residentuser;
13 changes: 10 additions & 3 deletions db_release_scripts/mosip_resident/ddl/resident_user_actions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ CREATE TABLE resident.resident_user_actions(
CONSTRAINT pk_ida_token PRIMARY KEY (ida_token)
);

COMMENT ON TABLE resident_user_actions IS 'This Table is used to save the user actions';
COMMENT ON COLUMN resident_user_actions.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident_user_actions.last_bell_notif_click_dtimes IS 'The time when the user last clicked on the bell notification';
COMMENT ON TABLE resident.resident_user_actions IS 'This Table is used to save the user actions';
COMMENT ON COLUMN resident.resident_user_actions.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident.resident_user_actions.last_bell_notif_click_dtimes IS 'The time when the user last clicked on the bell notification';

-- Adding index to ida_token column
CREATE INDEX idx_resident_user_actions_ida_token ON resident.resident_user_actions (ida_token);

GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_user_actions
TO residentuser;
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
-----------------------------------------------------------------------------------------------------
\c mosip_resident sysadmin

DROP INDEX IF EXISTS idx_resident_transaction_event_id;
DROP INDEX IF EXISTS idx_resident_transaction_token_id;
DROP INDEX IF EXISTS idx_resident_transaction_credential_request_id;
DROP INDEX IF EXISTS idx_resident_transaction_request_dtimes;
DROP INDEX IF EXISTS idx_resident_transaction_request_trn_id;
DROP INDEX IF EXISTS idx_resident_transaction_ref_id;
DROP INDEX IF EXISTS idx_resident_user_actions_ida_token;
DROP INDEX IF EXISTS idx_resident_session_ida_token;
DROP INDEX IF EXISTS idx_resident_transaction_read_status;

DROP TABLE IF EXISTS resident.otp_transaction;
DROP TABLE IF EXISTS resident.resident_transaction;
DROP TABLE IF EXISTS resident.resident_session;
Expand Down
5 changes: 4 additions & 1 deletion db_scripts/mosip_resident/ddl/otp_transaction.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ COMMENT ON COLUMN resident.otp_transaction.upd_by IS 'ID or name of the user who
COMMENT ON COLUMN resident.otp_transaction.upd_dtimes IS 'Date and Timestamp when any of the fields in the record is updated with new values.';
COMMENT ON COLUMN resident.otp_transaction.is_deleted IS 'Flag to mark whether the record is Soft deleted.';
COMMENT ON COLUMN resident.otp_transaction.del_dtimes IS 'Date and Timestamp when the record is soft deleted with is_deleted=TRUE';
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.otp_transaction
TO residentuser;
5 changes: 4 additions & 1 deletion db_scripts/mosip_resident/ddl/resident_grievance_ticket.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ COMMENT ON COLUMN resident.resident_grievance_ticket.eventId IS 'Unique event id
COMMENT ON COLUMN resident.resident_grievance_ticket.emailId IS 'Unique email id.';
COMMENT ON COLUMN resident.resident_grievance_ticket.alternateEmailId IS 'Alternate email id.';
COMMENT ON COLUMN resident.resident_grievance_ticket.phoneNo IS 'Phone number.';
COMMENT ON COLUMN resident.resident_grievance_ticket.altrenatePhoneNo IS 'Alternate Phone number.';
COMMENT ON COLUMN resident.resident_grievance_ticket.alternatePhoneNo IS 'Alternate Phone number.';
COMMENT ON COLUMN resident.resident_grievance_ticket.message IS 'Message.';
COMMENT ON COLUMN resident.resident_grievance_ticket.status IS 'status.';
COMMENT ON COLUMN resident.resident_grievance_ticket.cr_by IS 'created by.';
Expand All @@ -48,3 +48,6 @@ COMMENT ON COLUMN resident.resident_grievance_ticket.is_deleted IS 'is deleted.'
COMMENT ON COLUMN resident.resident_grievance_ticket.del_dtimes IS 'Deleted time-stamp.';

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_grievance_ticket
TO residentuser;
20 changes: 13 additions & 7 deletions db_scripts/mosip_resident/ddl/resident_session.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@ CREATE TABLE resident.resident_session(
CONSTRAINT pk_session_id PRIMARY KEY (session_id)
);

COMMENT ON TABLE resident_session IS 'This Table is used to save the user sessions.';
COMMENT ON COLUMN resident_session.session_id IS 'The unique session identifier for each login';
COMMENT ON COLUMN resident_session.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident_session.login_dtimes IS 'The time when the user last logged in';
COMMENT ON COLUMN resident_session.ip_address IS 'The ip_address of device from which the user logged in';
COMMENT ON COLUMN resident_session.host IS 'The host of the site';
COMMENT ON COLUMN resident_session.machine_type IS 'The OS of device used for accessing the portal/app';
COMMENT ON TABLE resident.resident_session IS 'This Table is used to save the user sessions.';
COMMENT ON COLUMN resident.resident_session.session_id IS 'The unique session identifier for each login';
COMMENT ON COLUMN resident.resident_session.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident.resident_session.login_dtimes IS 'The time when the user last logged in';
COMMENT ON COLUMN resident.resident_session.ip_address IS 'The ip_address of device from which the user logged in';
COMMENT ON COLUMN resident.resident_session.host IS 'The host of the site';
COMMENT ON COLUMN resident.resident_session.machine_type IS 'The OS of device used for accessing the portal/app';

-- Adding index to ida_token column
CREATE INDEX idx_resident_session_ida_token ON resident.resident_session (ida_token);
GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_session
TO residentuser;
28 changes: 26 additions & 2 deletions db_scripts/mosip_resident/ddl/resident_transaction.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ CREATE TABLE resident.resident_transaction(
CONSTRAINT pk_restrn_event_id PRIMARY KEY (event_id)
);

COMMENT ON TABLE resident_transaction IS 'This Table is used to save the transaction related to residents.';
COMMENT ON COLUMN resident_transaction.event_id IS 'Unique Id of the transaction.';
COMMENT ON TABLE resident.resident_transaction IS 'This Table is used to save the transaction related to residents.';
COMMENT ON COLUMN resident.resident_transaction.event_id IS 'Unique Id of the transaction.';
COMMENT ON COLUMN resident.resident_transaction.aid IS 'The Application ID';
COMMENT ON COLUMN resident.resident_transaction.request_dtimes IS 'The time when the request is received by the service';
COMMENT ON COLUMN resident.resident_transaction.response_dtime IS 'The time when the response is received by the service';
Expand Down Expand Up @@ -86,3 +86,27 @@ COMMENT ON COLUMN resident.resident_transaction.purpose IS 'The purpose of the r
COMMENT ON COLUMN resident.resident_transaction.credential_request_id IS 'The credential request id';

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Adding index to event_id column
CREATE INDEX idx_resident_transaction_event_id ON resident.resident_transaction (event_id);

-- Adding index to token_id column
CREATE INDEX idx_resident_transaction_token_id ON resident.resident_transaction (token_id);

-- Adding index to credential_request_id column
CREATE INDEX idx_resident_transaction_credential_request_id ON resident.resident_transaction (credential_request_id);

-- Adding index to request_dtimes column
CREATE INDEX idx_resident_transaction_request_dtimes ON resident.resident_transaction (request_dtimes);

-- Adding index to request_trn_id column
CREATE INDEX idx_resident_transaction_request_trn_id ON resident.resident_transaction (request_trn_id);

-- Adding index to ref_id column
CREATE INDEX idx_resident_transaction_ref_id ON resident.resident_transaction (ref_id);

--Adding index to read_status column
CREATE INDEX idx_resident_transaction_read_status ON resident.resident_transaction (read_status);

GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_transaction
TO residentuser;
13 changes: 10 additions & 3 deletions db_scripts/mosip_resident/ddl/resident_user_actions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ CREATE TABLE resident.resident_user_actions(
CONSTRAINT pk_ida_token PRIMARY KEY (ida_token)
);

COMMENT ON TABLE resident_user_actions IS 'This Table is used to save the user actions';
COMMENT ON COLUMN resident_user_actions.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident_user_actions.last_bell_notif_click_dtimes IS 'The time when the user last clicked on the bell notification';
COMMENT ON TABLE resident.resident_user_actions IS 'This Table is used to save the user actions';
COMMENT ON COLUMN resident.resident_user_actions.ida_token IS 'The unique identifier for each user';
COMMENT ON COLUMN resident.resident_user_actions.last_bell_notif_click_dtimes IS 'The time when the user last clicked on the bell notification';

-- Adding index to ida_token column
CREATE INDEX idx_resident_user_actions_ida_token ON resident.resident_user_actions (ida_token);

GRANT SELECT, INSERT, REFERENCES, UPDATE, DELETE
ON resident.resident_user_actions
TO residentuser;
Loading

0 comments on commit db0895e

Please sign in to comment.