@finspringinnovations/fixeddepositsdk 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/lib/api/customerApi.js +1 -0
  2. package/lib/api/fdApi.d.ts +401 -1
  3. package/lib/api/fdApi.js +24 -2
  4. package/lib/components/PendingFDBottomSheet.js +27 -18
  5. package/lib/config/appDataConfig.js +3 -2
  6. package/lib/config/workflowConstants.d.ts +40 -30
  7. package/lib/config/workflowConstants.js +35 -24
  8. package/lib/constants/strings/fd.d.ts +2 -2
  9. package/lib/constants/strings/fd.js +2 -2
  10. package/lib/navigation/RootNavigator.js +167 -196
  11. package/lib/navigation/types.d.ts +4 -1
  12. package/lib/navigation/workflowNavigator.d.ts +1 -1
  13. package/lib/navigation/workflowNavigator.js +107 -26
  14. package/lib/screens/AadhaarVerification.js +1 -11
  15. package/lib/screens/AddBankAccount.js +1 -11
  16. package/lib/screens/BankDetail.js +1 -11
  17. package/lib/screens/Employee.js +1 -11
  18. package/lib/screens/FDCalculator.js +2 -12
  19. package/lib/screens/FDList.js +531 -417
  20. package/lib/screens/FindIFSC.js +1 -11
  21. package/lib/screens/NomineeDetail.js +12 -22
  22. package/lib/screens/PayNow.js +1 -11
  23. package/lib/screens/Payment.js +2 -11
  24. package/lib/screens/PaymentStatus.js +24 -21
  25. package/lib/screens/ReviewKYC.js +3 -12
  26. package/lib/types/workflowTypes.d.ts +1 -1
  27. package/package.json +50 -50
  28. package/src/api/customerApi.ts +1 -0
  29. package/src/api/fdApi.ts +28 -1
  30. package/src/components/PendingFDBottomSheet.tsx +151 -123
  31. package/src/config/appDataConfig.ts +245 -242
  32. package/src/config/workflowConstants.ts +51 -39
  33. package/src/constants/strings/bank.ts +80 -80
  34. package/src/constants/strings/fd.ts +2 -2
  35. package/src/navigation/RootNavigator.tsx +667 -651
  36. package/src/navigation/types.ts +4 -1
  37. package/src/navigation/workflowNavigator.ts +170 -107
  38. package/src/screens/AadhaarVerification.tsx +1 -15
  39. package/src/screens/AddBankAccount.tsx +2 -16
  40. package/src/screens/BankDetail.tsx +1 -15
  41. package/src/screens/Employee.tsx +1 -15
  42. package/src/screens/FDCalculator.tsx +4 -18
  43. package/src/screens/FDList.tsx +2311 -2170
  44. package/src/screens/FindIFSC.tsx +2 -16
  45. package/src/screens/NomineeDetail.tsx +762 -775
  46. package/src/screens/PayNow.tsx +2 -16
  47. package/src/screens/Payment.tsx +190 -203
  48. package/src/screens/PaymentStatus.tsx +574 -576
  49. package/src/screens/ReviewKYC.tsx +2 -15
  50. package/src/types/workflowTypes.ts +1 -10
@@ -809,22 +809,8 @@ const ReviewKYC: React.FC<ReviewKYCProps> = ({
809
809
  }
810
810
  };
811
811
 
812
- // Handle Android hardware back button
813
- useEffect(() => {
814
- if (Platform.OS !== 'android') return;
815
-
816
- const onHardwareBackPress = () => {
817
- handleBackPress();
818
- return true; // Prevent default behavior
819
- };
812
+ // Removed screen-level hardware back handler to allow only header back button navigation
820
813
 
821
- const backHandler = BackHandler.addEventListener(
822
- 'hardwareBackPress',
823
- onHardwareBackPress
824
- );
825
-
826
- return () => backHandler.remove();
827
- }, [defaultProviderId, workflowInstanceId, applicationId, entityId]);
828
814
 
829
815
  return (
830
816
  <SafeAreaWrapper
@@ -946,6 +932,7 @@ const ReviewKYC: React.FC<ReviewKYCProps> = ({
946
932
  {/* Overlay to disable screen interactions during API call */}
947
933
  {isLoadingPanRapid && (
948
934
  <View style={styles.loadingOverlay} pointerEvents="auto">
935
+ <ActivityIndicator size="large" color={colors.primary} />
949
936
  </View>
950
937
  )}
951
938
  {/* Loading overlay for back navigation */}
@@ -1,12 +1,3 @@
1
1
  import { WORKFLOW_STATES } from '../config/workflowConstants';
2
2
 
3
- export type WorkflowStateSriram =
4
- | typeof WORKFLOW_STATES.START
5
- | typeof WORKFLOW_STATES.INITIATION
6
- | typeof WORKFLOW_STATES.CREATE_FD
7
- | typeof WORKFLOW_STATES.OCCUPATION
8
- | typeof WORKFLOW_STATES.NOMINEE
9
- | typeof WORKFLOW_STATES.BANK_DETAILS
10
- | typeof WORKFLOW_STATES.KYC
11
- | typeof WORKFLOW_STATES.PAYMENT
12
- | typeof WORKFLOW_STATES.END;
3
+ export type WorkflowStateSriram = typeof WORKFLOW_STATES[keyof typeof WORKFLOW_STATES] | string;