[INJIMOB-878] : vc state machine refactoring (#1344)

* [INJI-631] add share and share with selfie options into kebab menu

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] change share vc component service attribute type to existingMosipVcItemMachine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] change the kebab menu options name as per the wireframe

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] add missing otp screen confirmation dialog translations for kannada language

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] extract vcItemField name and value into two separate components for better usability

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] show mini card view of the loaded VC and change the styles as per the wireframe

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] do not show the activation status and kebab menu when sharing vc and while doing QR login

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] show mini card view usin shimmerPlaceholder component when card is in loading state

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] add svg images for wallet activated and unactivated icon

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-631] fix the postion of pin icon when there is no image displayed in VC

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] show help icon and meat ball menu in vc detailed view

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] add styles for detailed view profile icon and it's container

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-721]: add help icon on top bar and remove setting button

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: move settings to bottom tab bar

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: add search bar ui for vc search

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: add search filter for the vc search

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: refactor filtered data to show message when vc not found

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-631] redirect to the home screen when user gives confirmation to delete the vc from the detailed view

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-721]: add search svg for search bar and also style it

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-631] in existing vcitem machine close the kebab popup when an option is selected in kebab menu except for remove vc option

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] change the remove vc confirm popup as per the wireframe

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] add icons for the kebab menu options and show the number of cards available in home screen

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] remove tooltip in detailed view and show remove vc kebab menu option in red color

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] close the kebab menu when user clicks on cancel button in removal confirmation popup

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMON-631] show verification status for all the VCs in mini view and detailed view based on isVerified status

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631]: send vc data to scan machine while selecting share or share with selfie from meatball menu

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-721]: add styles to search bar

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: add text msg when field searched in the vc search bar is not found

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-631]: implement sharing VC flow from mini card view

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-721]: refactor search bar component to show diff icon for vc search and issuers search

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: remove unused code

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-631]: implement sharing VC with selfie flow from mini card view

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: handle face auth failure scenario in VC sharing with selfie

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: handle proper closing of kebab menu on VC share option click

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-721]: add styles to the search bar

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-631]: handle navigation to history page from success vc share page

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-721]: add background colour for home screen

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-631]: display proper label for QR login from meat ball menu

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: handle QR login flow for mini view card

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631] show count of cards available matching with search keyword

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] show activated icon for the sunbird cards in the mini view

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] hide share with selfie and qr login options in kebab menu if profile image is not available

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631]: updating logic to call isFromOpenId4VCI from an instance of VCMetadata

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: update kebab menu list icons to outline with black color

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: close kebab popup on selecting sharing option for esignet VCs

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: clear connect for invalid identity and back button click face auth during share with selfie

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631] fix the logic of showing how many cards available in the ui

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] remove styles for kebab menu pin icon

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631]: updating logic to call isFromOpenId4VCI from an instance of VCMetadata

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: reset the flowType and selectedVC variable in scan machine on any disconnect or success share of VC

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631] in detail view show activation status popup everytime in the bottom

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] replace activated icon with svg image in detailed view

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631]: remove unused files

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631] don't show activation details in detailed view if VC image is not available

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] show verification status as valid if credentials are available

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] adjust the size of the image, qr code, magnifier and logo in detialed view

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] increase the width of the activate button in the detialed view

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] in detialed view increase the divider with and change it's styles to show it as per wireframe

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] in detialed view  move email and all the address fields to the bottom view for all type of VCs

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] filter the supported credentials of esignet wellknown config based on credential type of issuers config

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] show the horizontal line in detailed view only if email or one of the address fields available in vc

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] fix the spelling mistake of detailed view image styles

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] remove unused event in existing mosip vc item machine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] change the name of the enum used for sharing flow from flow type to vc share flow type

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] create a new enum type to use it for showing the activation status in vcitem container

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] use logical and operator to decide whether to show horizontal line or not in detailed view and remove unnecessary logs

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] add test id to the profile icon container and adjust the styles of pin icon

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] move invalid identity message overlay to verify identity overlay component

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] show credential registry in the bottom section of detial view if it's env variable is set to true

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] add testId to detailed view qr code view and change settings tab title to settings

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] make whole kebab menu option as pressable

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631]: hide kebab menu from the VC on SendVCScreen

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: reset SelectedVc and flow type in scan machine for every kind of disconnect

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: remove redundant check on qr login

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631]: fix the prop value passed to the face scanner

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-631] add email & address back to default fields and write a logic to remove bottom section fields from wellknown config supported fields

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] move detailed view bottom section fields list into vcUtils file

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] remove unused action selectIsVerifiable in existing vc item machine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] pass the controller functions directly to verifyIdentityOverlay when calling it

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] add todo comment in vcVerification file to handled vc verification pending status as part of another task

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-631] render kebab menu options using flat list and make necessary changes related to menu options

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-721]: refactor search Filter for normal otp flow VC

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: refactor search Filter for sunbird and esignet vc

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: refactor to add metadata to esignet and sunbird vc on download before saving

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-721]: show no of cards when search data is updated

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-631] add back history tab file

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* INJIMOB-778 (#122)

* [INJIMOB-778]: add new localistaion for set and confirm passcode screen

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: add authorization after the biometric unlock

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: add check for biometric and password for the toggle

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: add success toaster message when alternate unlock method is added

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: remove toaster when the app is reopened

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: add locales for succes toaster for biometric toggle

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: refactor to check for the toggle from settings

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: refactor function that handles biometric toggle

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: refactor toggle_biometric_unlock event

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: refactor banner notification to show success message

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* [INJIMOB-778]: add testID for new components

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

---------

Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Signed-off-by: PoojaBabusing <115976560+PoojaBabusing@users.noreply.github.com>
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>

* Injimob 784 (#124)

* [INJIMOB-784] add face verification consent overlay

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] add dismiss for backdrop press

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] add pop up for qrlogin flow also

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-864] disable backup button when restoring and vice versa (#1279)

Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>

* [INJIMOB-867] - remove all files including unsynced files and get latest file based on date (#1281)

Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com>

* [INJIMOB - 865,868] - Fix duplicate VC key for restored VC's and remove metadata if vc file not found (#1283)

* [INJIMOB-something] use incremental timestamp for restore and make unload take a flag start time

Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

* [INJIMOB-865,868] fix duplicate vckey value for restored vcs and remove vc metadata if file not found

Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-869] remove unused method in store.ts machine

Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-869] revert removing vc metadata if file not found

Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-865] fix tamper vc removal

When a VC is tampered, we get the tampered vc popup. Once we press okay button in the popup, we will be refreshing the vc machine's myVcs & recievedVcs context. Due to calling of parallel states, we were having issue with refreshing of myVcs. It is fixed by targeting to init state to refresh

Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>

* [INJIMOB-865] remove vc metadata when file is not found

Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-869] add code comments & fix minor code issues

Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>

---------

Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>

* [INJIMOB-784] set context after getting the value from store

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] refactor the names and send isConsentGiven value properly to the scan machine event

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-784] store & fetch the face auth consent value with proper types

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* INJIMOB-604 VC Verification Failure Scenarios (#1228)

* [INJI-604]: Handle Verification VC Error Scenarios

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [INJIMOB-604] remove the card from UI when verify credential is failed and show error overlay

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-604] remove unused actions in existingMosipVcItem and issuers machine

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* INJIMOB-604 Replace Error message overlay with new error screen.

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [INJI-611]: New Error screen implemented

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [INJI-604]: Transation added for Verification error messages.

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [INJI-604] merge develop and resolve conflicts

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJI-604] remove unnecessary log in error screen

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-604] remove removeVcFromMyVcs action from verify vc failed event and fix typegen warnings

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* INJIMOB-604 : Removing logs and renaming functions

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [INJIMOB-604]: Removing unused method.

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [Inji-604]: Fixing the issue of recursive VC deletion during Go Back event in Verification Error screen.

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [Inji-604]: Fixing bugs post conflict resolve.

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [Inji-604]: Removing unused events and adding translations for Go Back button

* [Inji-604]: Removed angle brackets for Technical Error

* [Inji-604]: Added ToDo to handle backup

* [Inji-604]: Removing isVerified flag from the Existing VC Item Machine.

* [Inji-604] iOS crash fixed for Verification error Go Back Button

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

* [Inji-604]: Simplified condition for result in verify Credential call.

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>

---------

Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>

* [INJIMOB-784] add styles for the popup

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] add locales changes in all languages

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] send consent data using event to qrlogin machine

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] refactor scan and qr  machines and remove logs

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] add testID for icons and buttons

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] add translations for help screen contents

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] add translations for help screen contents

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* [INJIMOB-784] change popup text and alter help screen msg order

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

* Update SendVcScreenController.ts

* [INJIMOB-784] refactor actions for show face auth consent screen

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>

---------

Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>
Signed-off-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Co-authored-by: balachandarg-tw <115633327+balachandarg-tw@users.noreply.github.com>

* [INJIMOB-878]: VC State Machine Refactoring

Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>

* [INJIMOB-878]: removed unused component from the codebase

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: remove any traces of existing and esignet item state machine from the code base

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: extract out phone number and email id to a wrapper object

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: optimize context variable declaration and usage in vc and vcItemStateMachine

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: move all the selectors to VCItemMachine from a seperate file

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: bring back code lost in code merge from develop

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: remove unused imports and refactor the openId4VCI check from entire code base to a single point

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: remove the entire vc or context sharing from the state machine to the component

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: refactor controller to remove seperate declaration of variables

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: extract events of VCItemMAchine into a seperate file

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: removed some unused imports renamed VCItemSelectors file and refactored KebabPopUpController

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: add issuer in OTP flow VC data as well

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: remove VP implemetation and some unused components

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: split VCItemMachine into multiple logical units

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: correct a test id for activation flow

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: fix issues dueto merge conflict

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-878]: changed the folder structure for VCItemMAchine and related files

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

---------

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Signed-off-by: Alka <prasadalka1998@gmail.com>
Signed-off-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
Signed-off-by: Alka Prasad <Alka1703@users.noreply.github.com>
Signed-off-by: PoojaBabusing <115976560+PoojaBabusing@users.noreply.github.com>
Signed-off-by: adityankannan-tw <adityan410pm@gmail.com>
Signed-off-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Signed-off-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com>
Signed-off-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Signed-off-by: Vijay <94220135+vijay151096@users.noreply.github.com>
Co-authored-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
Co-authored-by: Pooja Babusingh <68894211+PoojaBabusingh@users.noreply.github.com>
Co-authored-by: PoojaBabusing <115976560+PoojaBabusing@users.noreply.github.com>
Co-authored-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com>
Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
Co-authored-by: KiruthikaJeyashankar <81218987+KiruthikaJeyashankar@users.noreply.github.com>
Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
Co-authored-by: Harsh Vardhan <harsh59v@gmail.com>
Co-authored-by: balachandarg-tw <115633327+balachandarg-tw@users.noreply.github.com>
Co-authored-by: Vijay <94220135+vijay151096@users.noreply.github.com>
This commit is contained in:
Alka Prasad
2024-04-01 11:24:33 +05:30
committed by GitHub
parent 1e75dc8391
commit 2cfd99d614
96 changed files with 2432 additions and 4562 deletions

View File

@@ -1,111 +0,0 @@
import {WalletBindingResponse} from '../../../shared/cryptoutil/cryptoUtil';
export interface VC {
id: string;
idType: VcIdType;
tag: string;
credential: DecodedCredential;
verifiableCredential: VerifiableCredential;
verifiablePresentation?: VerifiablePresentation;
generatedOn: Date;
requestId: string;
isVerified: boolean;
lastVerifiedOn: number;
shouldVerifyPresence?: boolean;
walletBindingResponse?: WalletBindingResponse;
credentialRegistry?: string;
isPinned?: boolean;
}
export type VcIdType = 'UIN' | 'VID';
export interface DecodedCredential {
biometrics: {
face: string;
finger: {
left_thumb: string;
right_thumb: string;
};
};
}
export interface CredentialSubject {
UIN: string;
VID: string;
addressLine1: LocalizedField[] | string;
addressLine2: LocalizedField[] | string;
addressLine3: LocalizedField[] | string;
biometrics: string; // Encrypted Base64Encoded Biometrics
city: LocalizedField[] | string;
dateOfBirth: string;
email: string;
fullName: string;
gender: LocalizedField[] | string;
id: string;
phone: string;
postalCode: string;
province: LocalizedField[] | string;
region: LocalizedField[] | string;
vcVer: 'VC-V1' | string;
}
type VCContext = (string | Record<string, unknown>)[];
export interface VerifiableCredential {
'@context': VCContext;
credentialSubject: CredentialSubject;
id: string;
issuanceDate: string;
issuer: string;
proof: {
created: string;
jws: string;
proofPurpose: 'assertionMethod' | string;
type: 'RsaSignature2018' | string;
verificationMethod: string;
};
type: VerifiableCredentialType[];
wellKnown: string;
credentialTypes: Object[];
}
export interface VerifiablePresentation {
'@context': VCContext;
verifiableCredential: VerifiableCredential[];
type: 'VerifiablePresentation';
proof: {
created: string;
jws: string;
proofPurpose: 'authentication' | string;
type: 'RsaSignature2018' | string;
verificationMethod: string;
challenge: string;
domain: string;
};
}
export type VerifiableCredentialType =
| 'VerifiableCredential'
| 'MOSIPVerfiableCredential'
| string;
export interface VCLabel {
singular: string;
plural: string;
}
export interface LocalizedField {
language: string;
value: string;
}
export interface linkTransactionResponse {
authFactors: Object[];
authorizeScopes: null;
clientName: string;
configs: {};
essentialClaims: string[];
linkTransactionId: string;
logoUrl: string;
voluntaryClaims: string[];
}

View File

@@ -1,20 +1,14 @@
import {WalletBindingResponse} from '../../../shared/cryptoutil/cryptoUtil';
import {logoType} from '../../../machines/issuersMachine';
import {VCMetadata} from '../../../shared/VCMetadata';
import {logoType} from '../../machines/issuersMachine';
export interface VC {
id?: string;
idType?: VcIdType;
credential?: DecodedCredential;
verifiableCredential: VerifiableCredential;
verifiablePresentation?: VerifiablePresentation;
requestId?: string;
isVerified?: boolean;
lastVerifiedOn: number;
shouldVerifyPresence?: boolean;
walletBindingResponse?: WalletBindingResponse;
credentialRegistry?: string;
isPinned?: boolean;
hashedId?: string;
}
@@ -73,27 +67,11 @@ export interface VerifiableCredential {
export interface CredentialWrapper {
verifiableCredential: VerifiableCredential;
vcMetadata: VCMetadata;
identifier: string;
generatedOn: Date;
issuerLogo: string;
}
export interface VerifiablePresentation {
'@context': VCContext;
verifiableCredential: VerifiableCredential[];
type: 'VerifiablePresentation';
proof: {
created: string;
jws: string;
proofPurpose: 'authentication' | string;
type: 'RsaSignature2018' | string;
verificationMethod: string;
challenge: string;
domain: string;
};
}
export type VerifiableCredentialType =
| 'VerifiableCredential'
| 'MOSIPVerfiableCredential'
@@ -119,3 +97,10 @@ export interface linkTransactionResponse {
logoUrl: string;
voluntaryClaims: string[];
}
export interface WalletBindingResponse {
walletBindingId: string;
keyId: string;
thumbprint: string;
expireDateTime: string;
}