From f9f8dcd48191b5422dad3db394099bcc9168635a Mon Sep 17 00:00:00 2001 From: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> Date: Tue, 12 Dec 2023 17:42:59 +0530 Subject: [PATCH] [INJI-332] add target for top level set individual event in add vc modal Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com> --- screens/Home/MyVcs/AddVcModalMachine.ts | 1 + screens/Home/MyVcs/AddVcModalMachine.typegen.ts | 15 +++++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/screens/Home/MyVcs/AddVcModalMachine.ts b/screens/Home/MyVcs/AddVcModalMachine.ts index 7dc5c32af4..ec12be43c1 100644 --- a/screens/Home/MyVcs/AddVcModalMachine.ts +++ b/screens/Home/MyVcs/AddVcModalMachine.ts @@ -72,6 +72,7 @@ export const AddVcModalMachine = on: { SET_INDIVIDUAL_ID: { actions: ['clearIdError', 'clearId', 'setIdType', 'setId'], + target: '#AddVcModal.acceptingIdInput.idle', }, }, states: { diff --git a/screens/Home/MyVcs/AddVcModalMachine.typegen.ts b/screens/Home/MyVcs/AddVcModalMachine.typegen.ts index 7e3aa522f3..305a113d36 100644 --- a/screens/Home/MyVcs/AddVcModalMachine.typegen.ts +++ b/screens/Home/MyVcs/AddVcModalMachine.typegen.ts @@ -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]' @@ -54,6 +59,7 @@ 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]' @@ -61,7 +67,7 @@ export interface Typegen0 { | '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]' @@ -69,11 +75,12 @@ export interface Typegen0 { 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';