Skip to content

Commit

Permalink
[INJI-332] add target for top level set individual event in add vc modal
Browse files Browse the repository at this point in the history
Signed-off-by: PuBHARGAVI <[email protected]>
  • Loading branch information
PuBHARGAVI authored and Alka1703 committed Dec 12, 2023
1 parent e325ca5 commit f9f8dcd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions screens/Home/MyVcs/AddVcModalMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const AddVcModalMachine =
on: {
SET_INDIVIDUAL_ID: {
actions: ['clearIdError', 'clearId', 'setIdType', 'setId'],
target: '#AddVcModal.acceptingIdInput.idle',
},
},
states: {
Expand Down
15 changes: 11 additions & 4 deletions screens/Home/MyVcs/AddVcModalMachine.typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ export interface Typegen0 {
services: never;
};
eventsCausingActions: {
clearId: 'SELECT_ID_TYPE';
clearIdError: 'INPUT_ID' | 'SELECT_ID_TYPE' | 'VALIDATE_INPUT';
clearId: 'CANCEL' | 'SELECT_ID_TYPE' | 'SET_INDIVIDUAL_ID';
clearIdError:
| 'INPUT_ID'
| 'SELECT_ID_TYPE'
| 'SET_INDIVIDUAL_ID'
| 'VALIDATE_INPUT';
clearOtp:
| 'SET_INDIVIDUAL_ID'
| 'WAIT'
| 'done.invoke.AddVcModal.acceptingIdInput.requestingOtp:invocation[0]'
| 'error.platform.AddVcModal.acceptingOtpInput.resendOTP:invocation[0]'
Expand All @@ -54,26 +59,28 @@ export interface Typegen0 {
focusInput:
| 'INPUT_ID'
| 'SELECT_ID_TYPE'
| 'SET_INDIVIDUAL_ID'
| 'VALIDATE_INPUT'
| 'error.platform.AddVcModal.acceptingIdInput.requestingOtp:invocation[0]'
| 'error.platform.AddVcModal.acceptingOtpInput.resendOTP:invocation[0]'
| 'error.platform.AddVcModal.requestingCredential:invocation[0]'
| 'xstate.after(100)#AddVcModal.acceptingIdInput.focusing';
forwardToParent: 'CANCEL' | 'DISMISS';
resetIdInputRef: 'CANCEL';
setId: 'INPUT_ID';
setId: 'INPUT_ID' | 'SET_INDIVIDUAL_ID';
setIdBackendError:
| 'error.platform.AddVcModal.acceptingIdInput.requestingOtp:invocation[0]'
| 'error.platform.AddVcModal.acceptingOtpInput.resendOTP:invocation[0]'
| 'error.platform.AddVcModal.requestingCredential:invocation[0]';
setIdErrorEmpty: 'VALIDATE_INPUT';
setIdErrorWrongFormat: 'VALIDATE_INPUT';
setIdInputRef: 'READY';
setIdType: 'SELECT_ID_TYPE';
setIdType: 'SELECT_ID_TYPE' | 'SET_INDIVIDUAL_ID';
setOtp: 'INPUT_OTP';
setOtpError: 'error.platform.AddVcModal.requestingCredential:invocation[0]';
setRequestId: 'done.invoke.AddVcModal.requestingCredential:invocation[0]';
setTransactionId:
| 'SET_INDIVIDUAL_ID'
| 'error.platform.AddVcModal.acceptingOtpInput.resendOTP:invocation[0]'
| 'error.platform.AddVcModal.requestingCredential:invocation[0]'
| 'xstate.init';
Expand Down

0 comments on commit f9f8dcd

Please sign in to comment.