-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INJIMOB-2571]: refactor all the state machine related to backup and …
…restore (#1748) Signed-off-by: Alka Prasad <[email protected]>
- Loading branch information
Showing
37 changed files
with
1,675 additions
and
1,165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
// This file was automatically generated. Edits will be overwritten | ||
|
||
export interface Typegen0 { | ||
'@@xstate/typegen': true; | ||
internalEvents: { | ||
'done.invoke.vcMeta.ready.tamperedVCs.triggerAutoBackupForTamperedVcDeletion:invocation[0]': { | ||
type: 'done.invoke.vcMeta.ready.tamperedVCs.triggerAutoBackupForTamperedVcDeletion:invocation[0]'; | ||
data: unknown; | ||
__tip: 'See the XState TS docs to learn how to strongly type this.'; | ||
}; | ||
'xstate.init': {type: 'xstate.init'}; | ||
}; | ||
invokeSrcNameMap: { | ||
isUserSignedAlready: 'done.invoke.vcMeta.ready.tamperedVCs.triggerAutoBackupForTamperedVcDeletion:invocation[0]'; | ||
}; | ||
missingImplementations: { | ||
actions: | ||
| 'addVcToInProgressDownloads' | ||
| 'getVcItemResponse' | ||
| 'loadMyVcs' | ||
| 'loadReceivedVcs' | ||
| 'logTamperedVCsremoved' | ||
| 'prependToMyVcsMetadata' | ||
| 'removeDownloadFailedVcsFromStorage' | ||
| 'removeDownloadingFailedVcsFromMyVcs' | ||
| 'removeVcFromInProgressDownlods' | ||
| 'removeVcFromMyVcsMetadata' | ||
| 'resetDownloadCreadentialsFailed' | ||
| 'resetDownloadCredentialsSuccess' | ||
| 'resetDownloadFailedVcs' | ||
| 'resetInProgressVcsDownloaded' | ||
| 'resetTamperedVcs' | ||
| 'resetVerificationErrorMessage' | ||
| 'resetVerificationStatus' | ||
| 'resetWalletBindingSuccess' | ||
| 'sendBackupEvent' | ||
| 'setDownloadCreadentialsFailed' | ||
| 'setDownloadCredentialsSuccess' | ||
| 'setDownloadedVc' | ||
| 'setDownloadingFailedVcs' | ||
| 'setMyVcs' | ||
| 'setReceivedVcs' | ||
| 'setUpdatedVcMetadatas' | ||
| 'setVerificationErrorMessage' | ||
| 'setVerificationStatus' | ||
| 'setWalletBindingSuccess' | ||
| 'updateMyVcsMetadata'; | ||
delays: never; | ||
guards: 'isAnyVcTampered' | 'isSignedIn'; | ||
services: 'isUserSignedAlready'; | ||
}; | ||
eventsCausingActions: { | ||
addVcToInProgressDownloads: 'ADD_VC_TO_IN_PROGRESS_DOWNLOADS'; | ||
getVcItemResponse: 'GET_VC_ITEM'; | ||
loadMyVcs: | ||
| 'REFRESH_MY_VCS' | ||
| 'REFRESH_RECEIVED_VCS' | ||
| 'STORE_RESPONSE' | ||
| 'VERIFY_VC_FAILED' | ||
| 'xstate.init'; | ||
loadReceivedVcs: 'REFRESH_RECEIVED_VCS' | 'STORE_RESPONSE'; | ||
logTamperedVCsremoved: 'done.invoke.vcMeta.ready.tamperedVCs.triggerAutoBackupForTamperedVcDeletion:invocation[0]'; | ||
prependToMyVcsMetadata: 'VC_ADDED'; | ||
removeDownloadFailedVcsFromStorage: 'DELETE_VC'; | ||
removeDownloadingFailedVcsFromMyVcs: 'STORE_RESPONSE'; | ||
removeVcFromInProgressDownlods: | ||
| 'DOWNLOAD_LIMIT_EXPIRED' | ||
| 'REMOVE_VC_FROM_IN_PROGRESS_DOWNLOADS' | ||
| 'VERIFY_VC_FAILED'; | ||
removeVcFromMyVcsMetadata: 'REMOVE_VC_FROM_CONTEXT'; | ||
resetDownloadCreadentialsFailed: 'RESET_DOWNLOADING_FAILED'; | ||
resetDownloadCredentialsSuccess: 'RESET_DOWNLOADING_SUCCESS'; | ||
resetDownloadFailedVcs: 'STORE_RESPONSE'; | ||
resetInProgressVcsDownloaded: 'RESET_IN_PROGRESS_VCS_DOWNLOADED'; | ||
resetTamperedVcs: 'REMOVE_TAMPERED_VCS'; | ||
resetVerificationErrorMessage: 'RESET_VERIFY_ERROR'; | ||
resetVerificationStatus: 'RESET_VERIFICATION_STATUS'; | ||
resetWalletBindingSuccess: 'RESET_WALLET_BINDING_SUCCESS'; | ||
sendBackupEvent: 'done.invoke.vcMeta.ready.tamperedVCs.triggerAutoBackupForTamperedVcDeletion:invocation[0]'; | ||
setDownloadCreadentialsFailed: 'VC_DOWNLOADING_FAILED'; | ||
setDownloadCredentialsSuccess: 'VC_DOWNLOADED'; | ||
setDownloadedVc: 'VC_DOWNLOADED'; | ||
setDownloadingFailedVcs: 'DOWNLOAD_LIMIT_EXPIRED'; | ||
setMyVcs: 'STORE_RESPONSE'; | ||
setReceivedVcs: 'STORE_RESPONSE'; | ||
setUpdatedVcMetadatas: 'VC_METADATA_UPDATED'; | ||
setVerificationErrorMessage: 'VERIFY_VC_FAILED'; | ||
setVerificationStatus: 'SET_VERIFICATION_STATUS'; | ||
setWalletBindingSuccess: 'WALLET_BINDING_SUCCESS'; | ||
updateMyVcsMetadata: 'VC_METADATA_UPDATED'; | ||
}; | ||
eventsCausingDelays: {}; | ||
eventsCausingGuards: { | ||
isAnyVcTampered: 'SHOW_TAMPERED_POPUP'; | ||
isSignedIn: 'done.invoke.vcMeta.ready.tamperedVCs.triggerAutoBackupForTamperedVcDeletion:invocation[0]'; | ||
}; | ||
eventsCausingServices: { | ||
isUserSignedAlready: 'REMOVE_TAMPERED_VCS'; | ||
}; | ||
matchesStates: | ||
| 'deletingFailedVcs' | ||
| 'ready' | ||
| 'ready.myVcs' | ||
| 'ready.receivedVcs' | ||
| 'ready.showTamperedPopup' | ||
| 'ready.tamperedVCs' | ||
| 'ready.tamperedVCs.idle' | ||
| 'ready.tamperedVCs.triggerAutoBackupForTamperedVcDeletion' | ||
| { | ||
ready?: | ||
| 'myVcs' | ||
| 'receivedVcs' | ||
| 'showTamperedPopup' | ||
| 'tamperedVCs' | ||
| {tamperedVCs?: 'idle' | 'triggerAutoBackupForTamperedVcDeletion'}; | ||
}; | ||
tags: never; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.