@finspringinnovations/fdsdk 0.0.1
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.
- package/README.md +184 -0
- package/lib/api/applicationApi.d.ts +1 -0
- package/lib/api/applicationApi.js +11 -0
- package/lib/api/bankApi.d.ts +352 -0
- package/lib/api/bankApi.js +54 -0
- package/lib/api/baseApi.d.ts +8 -0
- package/lib/api/baseApi.js +456 -0
- package/lib/api/customerApi.d.ts +855 -0
- package/lib/api/customerApi.js +213 -0
- package/lib/api/fdApi.d.ts +979 -0
- package/lib/api/fdApi.js +112 -0
- package/lib/api/fdCalculatorApi.d.ts +179 -0
- package/lib/api/fdCalculatorApi.js +36 -0
- package/lib/api/index.d.ts +14 -0
- package/lib/api/index.js +45 -0
- package/lib/api/interestRateApi.d.ts +585 -0
- package/lib/api/interestRateApi.js +101 -0
- package/lib/api/kycApi.d.ts +486 -0
- package/lib/api/kycApi.js +71 -0
- package/lib/api/masterDataApi.d.ts +158 -0
- package/lib/api/masterDataApi.js +32 -0
- package/lib/api/nomineeApi.d.ts +325 -0
- package/lib/api/nomineeApi.js +46 -0
- package/lib/api/onboardingApi.d.ts +192 -0
- package/lib/api/onboardingApi.js +41 -0
- package/lib/api/panApi.d.ts +0 -0
- package/lib/api/panApi.js +23 -0
- package/lib/api/paymentApi.d.ts +325 -0
- package/lib/api/paymentApi.js +46 -0
- package/lib/api/workflowApi.d.ts +654 -0
- package/lib/api/workflowApi.js +90 -0
- package/lib/assets/images/images.d.ts +4 -0
- package/lib/assets/images/images.js +10 -0
- package/lib/components/AadhaarInput.d.ts +13 -0
- package/lib/components/AadhaarInput.js +47 -0
- package/lib/components/ActionButton.d.ts +12 -0
- package/lib/components/ActionButton.js +87 -0
- package/lib/components/ActiveFDCard.d.ts +16 -0
- package/lib/components/ActiveFDCard.js +95 -0
- package/lib/components/AmountInput.d.ts +20 -0
- package/lib/components/AmountInput.js +144 -0
- package/lib/components/CheckboxOption.d.ts +11 -0
- package/lib/components/CheckboxOption.js +41 -0
- package/lib/components/CompanyHeader.d.ts +7 -0
- package/lib/components/CompanyHeader.js +57 -0
- package/lib/components/DropdownSelector.d.ts +9 -0
- package/lib/components/DropdownSelector.js +49 -0
- package/lib/components/EmptyState.d.ts +17 -0
- package/lib/components/EmptyState.js +44 -0
- package/lib/components/ErrorDisplay.d.ts +17 -0
- package/lib/components/ErrorDisplay.js +69 -0
- package/lib/components/FAQItem.d.ts +9 -0
- package/lib/components/FAQItem.js +52 -0
- package/lib/components/FDCard.d.ts +21 -0
- package/lib/components/FDCard.js +96 -0
- package/lib/components/FormDropdown.d.ts +18 -0
- package/lib/components/FormDropdown.js +155 -0
- package/lib/components/FormSection.d.ts +14 -0
- package/lib/components/FormSection.js +38 -0
- package/lib/components/Header.d.ts +14 -0
- package/lib/components/Header.js +52 -0
- package/lib/components/IFSCSearchResultCard.d.ts +13 -0
- package/lib/components/IFSCSearchResultCard.js +70 -0
- package/lib/components/InfoBox.d.ts +8 -0
- package/lib/components/InfoBox.js +39 -0
- package/lib/components/InterestRateCard.d.ts +8 -0
- package/lib/components/InterestRateCard.js +46 -0
- package/lib/components/LoadingIndicator.d.ts +12 -0
- package/lib/components/LoadingIndicator.js +30 -0
- package/lib/components/OTPInput.d.ts +17 -0
- package/lib/components/OTPInput.js +144 -0
- package/lib/components/PaymentDetailsCard.d.ts +20 -0
- package/lib/components/PaymentDetailsCard.js +68 -0
- package/lib/components/PendingFDBottomSheet.d.ts +18 -0
- package/lib/components/PendingFDBottomSheet.js +122 -0
- package/lib/components/SafeAreaWrapper.d.ts +13 -0
- package/lib/components/SafeAreaWrapper.js +41 -0
- package/lib/components/ScreenHeader.d.ts +11 -0
- package/lib/components/ScreenHeader.js +46 -0
- package/lib/components/StatusDisplay.d.ts +15 -0
- package/lib/components/StatusDisplay.js +88 -0
- package/lib/components/TextFieldWithLabel.d.ts +46 -0
- package/lib/components/TextFieldWithLabel.js +326 -0
- package/lib/components/TrustBox.d.ts +8 -0
- package/lib/components/TrustBox.js +45 -0
- package/lib/components/ValidationErrorAlert.d.ts +23 -0
- package/lib/components/ValidationErrorAlert.js +39 -0
- package/lib/components/ValidationMessage.d.ts +9 -0
- package/lib/components/ValidationMessage.js +98 -0
- package/lib/components/index.d.ts +35 -0
- package/lib/components/index.js +64 -0
- package/lib/config/apiConfig.d.ts +34 -0
- package/lib/config/apiConfig.js +158 -0
- package/lib/config/appDataConfig.d.ts +114 -0
- package/lib/config/appDataConfig.js +264 -0
- package/lib/config/encryptionConfig.d.ts +21 -0
- package/lib/config/encryptionConfig.js +61 -0
- package/lib/config/workflowConstants.d.ts +37 -0
- package/lib/config/workflowConstants.js +38 -0
- package/lib/constants/strings/bank.d.ts +72 -0
- package/lib/constants/strings/bank.js +86 -0
- package/lib/constants/strings/base64Images.d.ts +25 -0
- package/lib/constants/strings/base64Images.js +28 -0
- package/lib/constants/strings/common.d.ts +53 -0
- package/lib/constants/strings/common.js +62 -0
- package/lib/constants/strings/employee.d.ts +61 -0
- package/lib/constants/strings/employee.js +77 -0
- package/lib/constants/strings/faq.d.ts +14 -0
- package/lib/constants/strings/faq.js +20 -0
- package/lib/constants/strings/fd.d.ts +122 -0
- package/lib/constants/strings/fd.js +151 -0
- package/lib/constants/strings/home.d.ts +49 -0
- package/lib/constants/strings/home.js +62 -0
- package/lib/constants/strings/index.d.ts +16 -0
- package/lib/constants/strings/index.js +44 -0
- package/lib/constants/strings/kyc.d.ts +80 -0
- package/lib/constants/strings/kyc.js +94 -0
- package/lib/constants/strings/nominee.d.ts +64 -0
- package/lib/constants/strings/nominee.js +81 -0
- package/lib/hooks/useAuth.d.ts +25 -0
- package/lib/hooks/useAuth.js +39 -0
- package/lib/hooks/useFDData.d.ts +11 -0
- package/lib/hooks/useFDData.js +40 -0
- package/lib/index.d.ts +69 -0
- package/lib/index.js +182 -0
- package/lib/navigation/RootNavigator.d.ts +8 -0
- package/lib/navigation/RootNavigator.js +205 -0
- package/lib/navigation/SimpleNavigator.d.ts +11 -0
- package/lib/navigation/SimpleNavigator.js +107 -0
- package/lib/navigation/helpers.d.ts +11 -0
- package/lib/navigation/helpers.js +83 -0
- package/lib/navigation/index.d.ts +15 -0
- package/lib/navigation/index.js +42 -0
- package/lib/navigation/types.d.ts +113 -0
- package/lib/navigation/types.js +2 -0
- package/lib/navigation/workflowNavigator.d.ts +22 -0
- package/lib/navigation/workflowNavigator.js +104 -0
- package/lib/providers/ApiProvider.d.ts +7 -0
- package/lib/providers/ApiProvider.js +34 -0
- package/lib/providers/MasterDataProvider.d.ts +10 -0
- package/lib/providers/MasterDataProvider.js +54 -0
- package/lib/screens/AadhaarVerification.d.ts +7 -0
- package/lib/screens/AadhaarVerification.js +627 -0
- package/lib/screens/AddBankAccount.d.ts +22 -0
- package/lib/screens/AddBankAccount.js +381 -0
- package/lib/screens/BankDetail.d.ts +16 -0
- package/lib/screens/BankDetail.js +596 -0
- package/lib/screens/BookFD.d.ts +0 -0
- package/lib/screens/BookFD.js +315 -0
- package/lib/screens/Employee.d.ts +18 -0
- package/lib/screens/Employee.js +594 -0
- package/lib/screens/FDCalculator.d.ts +18 -0
- package/lib/screens/FDCalculator.js +759 -0
- package/lib/screens/FDList.d.ts +27 -0
- package/lib/screens/FDList.js +1008 -0
- package/lib/screens/FindIFSC.d.ts +16 -0
- package/lib/screens/FindIFSC.js +248 -0
- package/lib/screens/Home.d.ts +0 -0
- package/lib/screens/Home.js +143 -0
- package/lib/screens/NomineeDetail.d.ts +17 -0
- package/lib/screens/NomineeDetail.js +592 -0
- package/lib/screens/PayNow.d.ts +14 -0
- package/lib/screens/PayNow.js +230 -0
- package/lib/screens/Payment.d.ts +11 -0
- package/lib/screens/Payment.js +191 -0
- package/lib/screens/PaymentStatus.d.ts +16 -0
- package/lib/screens/PaymentStatus.js +397 -0
- package/lib/screens/ReviewKYC.d.ts +21 -0
- package/lib/screens/ReviewKYC.js +660 -0
- package/lib/state/paymentSession.d.ts +8 -0
- package/lib/state/paymentSession.js +13 -0
- package/lib/store/fdListSelectedSlice.d.ts +21 -0
- package/lib/store/fdListSelectedSlice.js +26 -0
- package/lib/store/hooks.d.ts +8 -0
- package/lib/store/hooks.js +31 -0
- package/lib/store/index.d.ts +3 -0
- package/lib/store/index.js +8 -0
- package/lib/store/onboardingSlice.d.ts +12 -0
- package/lib/store/onboardingSlice.js +32 -0
- package/lib/store/store.d.ts +13 -0
- package/lib/store/store.js +33 -0
- package/lib/theme/ThemeContext.d.ts +210 -0
- package/lib/theme/ThemeContext.js +90 -0
- package/lib/theme/colors.d.ts +80 -0
- package/lib/theme/colors.js +85 -0
- package/lib/theme/index.d.ts +34 -0
- package/lib/theme/index.js +69 -0
- package/lib/theme/shadows.d.ts +53 -0
- package/lib/theme/shadows.js +58 -0
- package/lib/theme/typography.d.ts +134 -0
- package/lib/theme/typography.js +143 -0
- package/lib/types/dataTypes.d.ts +34 -0
- package/lib/types/dataTypes.js +2 -0
- package/lib/types/workflowTypes.d.ts +2 -0
- package/lib/types/workflowTypes.js +2 -0
- package/lib/utils/apiLogger.d.ts +48 -0
- package/lib/utils/apiLogger.js +105 -0
- package/lib/utils/encryption.d.ts +28 -0
- package/lib/utils/encryption.js +113 -0
- package/lib/utils/getFDData.d.ts +48 -0
- package/lib/utils/getFDData.js +154 -0
- package/lib/utils/globalData.d.ts +2 -0
- package/lib/utils/globalData.js +10 -0
- package/package.json +76 -0
- package/src/api/applicationApi.ts +12 -0
- package/src/api/bankApi.ts +42 -0
- package/src/api/baseApi.ts +513 -0
- package/src/api/customerApi.ts +291 -0
- package/src/api/fdApi.ts +150 -0
- package/src/api/fdCalculatorApi.ts +41 -0
- package/src/api/index.ts +29 -0
- package/src/api/interestRateApi.ts +143 -0
- package/src/api/kycApi.ts +63 -0
- package/src/api/masterDataApi.ts +34 -0
- package/src/api/nomineeApi.ts +34 -0
- package/src/api/onboardingApi.ts +64 -0
- package/src/api/panApi.ts +25 -0
- package/src/api/paymentApi.ts +34 -0
- package/src/api/workflowApi.ts +94 -0
- package/src/assets/images/arrow-filled.png +0 -0
- package/src/assets/images/arrow-left.png +0 -0
- package/src/assets/images/backicon.png +0 -0
- package/src/assets/images/calendar.png +0 -0
- package/src/assets/images/chevron-down.png +0 -0
- package/src/assets/images/chevron-down@2x.png +0 -0
- package/src/assets/images/chevron-down@3x.png +0 -0
- package/src/assets/images/images.js +8 -0
- package/src/components/AadhaarInput.tsx +91 -0
- package/src/components/ActionButton.tsx +129 -0
- package/src/components/ActiveFDCard.tsx +158 -0
- package/src/components/AmountInput.tsx +217 -0
- package/src/components/CheckboxOption.tsx +93 -0
- package/src/components/CompanyHeader.tsx +78 -0
- package/src/components/DropdownSelector.tsx +77 -0
- package/src/components/EmptyState.tsx +109 -0
- package/src/components/ErrorDisplay.tsx +135 -0
- package/src/components/FAQItem.tsx +90 -0
- package/src/components/FDCard.tsx +165 -0
- package/src/components/FormDropdown.tsx +214 -0
- package/src/components/FormSection.tsx +86 -0
- package/src/components/Header.tsx +110 -0
- package/src/components/IFSCSearchResultCard.tsx +139 -0
- package/src/components/InfoBox.tsx +55 -0
- package/src/components/InterestRateCard.tsx +77 -0
- package/src/components/LoadingIndicator.tsx +63 -0
- package/src/components/OTPInput.tsx +213 -0
- package/src/components/PaymentDetailsCard.tsx +120 -0
- package/src/components/PendingFDBottomSheet.tsx +235 -0
- package/src/components/README.md +210 -0
- package/src/components/SafeAreaWrapper.tsx +68 -0
- package/src/components/ScreenHeader.tsx +83 -0
- package/src/components/StatusDisplay.tsx +139 -0
- package/src/components/TextFieldWithLabel.tsx +502 -0
- package/src/components/TrustBox.tsx +63 -0
- package/src/components/ValidationErrorAlert.tsx +57 -0
- package/src/components/ValidationMessage.tsx +134 -0
- package/src/components/index.tsx +47 -0
- package/src/config/apiConfig.ts +217 -0
- package/src/config/appDataConfig.ts +279 -0
- package/src/config/encryptionConfig.ts +65 -0
- package/src/config/workflowConstants.ts +43 -0
- package/src/constants/strings/README.md +146 -0
- package/src/constants/strings/bank.ts +92 -0
- package/src/constants/strings/base64Images.ts +29 -0
- package/src/constants/strings/common.ts +63 -0
- package/src/constants/strings/employee.ts +85 -0
- package/src/constants/strings/faq.ts +23 -0
- package/src/constants/strings/fd.ts +172 -0
- package/src/constants/strings/home.ts +67 -0
- package/src/constants/strings/index.ts +21 -0
- package/src/constants/strings/kyc.ts +100 -0
- package/src/constants/strings/nominee.ts +90 -0
- package/src/hooks/useAuth.ts +42 -0
- package/src/hooks/useFDData.ts +48 -0
- package/src/index.tsx +173 -0
- package/src/navigation/RootNavigator.tsx +352 -0
- package/src/navigation/SimpleNavigator.tsx +107 -0
- package/src/navigation/helpers.ts +85 -0
- package/src/navigation/index.tsx +81 -0
- package/src/navigation/types.ts +124 -0
- package/src/navigation/workflowNavigator.ts +131 -0
- package/src/providers/ApiProvider.tsx +43 -0
- package/src/providers/MasterDataProvider.tsx +30 -0
- package/src/screens/AadhaarVerification.tsx +809 -0
- package/src/screens/AddBankAccount.tsx +541 -0
- package/src/screens/BankDetail.tsx +826 -0
- package/src/screens/BookFD.tsx +330 -0
- package/src/screens/Employee.tsx +822 -0
- package/src/screens/FDCalculator.tsx +987 -0
- package/src/screens/FDList.tsx +1284 -0
- package/src/screens/FindIFSC.tsx +332 -0
- package/src/screens/Home.tsx +152 -0
- package/src/screens/NomineeDetail.tsx +800 -0
- package/src/screens/PayNow.tsx +282 -0
- package/src/screens/Payment.tsx +224 -0
- package/src/screens/PaymentStatus.tsx +561 -0
- package/src/screens/ReviewKYC.tsx +956 -0
- package/src/state/paymentSession.ts +13 -0
- package/src/store/fdListSelectedSlice.ts +42 -0
- package/src/store/hooks.ts +27 -0
- package/src/store/index.ts +3 -0
- package/src/store/onboardingSlice.ts +37 -0
- package/src/store/store.ts +35 -0
- package/src/theme/ThemeContext.tsx +82 -0
- package/src/theme/colors.ts +90 -0
- package/src/theme/index.ts +64 -0
- package/src/theme/shadows.ts +61 -0
- package/src/theme/typography.ts +151 -0
- package/src/types/dataTypes.ts +37 -0
- package/src/types/env.d.ts +93 -0
- package/src/types/workflowTypes.ts +12 -0
- package/src/utils/apiLogger.ts +166 -0
- package/src/utils/encryption.ts +159 -0
- package/src/utils/getFDData.ts +175 -0
- package/src/utils/globalData.ts +7 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KYC_STRINGS = void 0;
|
|
4
|
+
// KYC and verification related strings
|
|
5
|
+
exports.KYC_STRINGS = {
|
|
6
|
+
// Screen titles
|
|
7
|
+
REVIEW_KYC_TITLE: 'Review KYC',
|
|
8
|
+
AADHAAR_VERIFICATION_TITLE: 'Aadhaar Verification',
|
|
9
|
+
PAN_VERIFICATION_TITLE: 'PAN Verification',
|
|
10
|
+
DOCUMENT_VERIFICATION_TITLE: 'Document Verification',
|
|
11
|
+
// Form labels
|
|
12
|
+
PAN_CARD_LABEL: 'Pan Card',
|
|
13
|
+
DATE_OF_BIRTH_LABEL: 'Date of Birth',
|
|
14
|
+
MARITAL_STATUS_LABEL: 'Marital Status',
|
|
15
|
+
AREA_LABEL: 'Area',
|
|
16
|
+
CITY_LABEL: 'City',
|
|
17
|
+
ADDRESS_LINE1_LABEL: 'Address Line 1',
|
|
18
|
+
ADDRESS_LINE2_LABEL: 'Address Line 2',
|
|
19
|
+
PINCODE_LABEL: 'Pincode',
|
|
20
|
+
STATE_LABEL: 'State',
|
|
21
|
+
COUNTRY_LABEL: 'Country',
|
|
22
|
+
AADHAAR_NUMBER_LABEL: 'Aadhaar Number',
|
|
23
|
+
AADHAAR_CARD_LABEL: 'Aadhaar Card',
|
|
24
|
+
OTP_LABEL: 'OTP',
|
|
25
|
+
// Placeholders
|
|
26
|
+
PAN_CARD_PLACEHOLDER: 'Enter PAN Card',
|
|
27
|
+
DATE_OF_BIRTH_PLACEHOLDER: 'Select Date of Birth',
|
|
28
|
+
MARITAL_STATUS_PLACEHOLDER: 'Select Marital Status',
|
|
29
|
+
AREA_PLACEHOLDER: 'Enter Area',
|
|
30
|
+
CITY_PLACEHOLDER: 'Enter City',
|
|
31
|
+
ADDRESS_LINE1_PLACEHOLDER: 'Enter Address Line 1',
|
|
32
|
+
ADDRESS_LINE2_PLACEHOLDER: 'Enter Address Line 2',
|
|
33
|
+
PINCODE_PLACEHOLDER: 'Enter Pincode',
|
|
34
|
+
STATE_PLACEHOLDER: 'Enter State',
|
|
35
|
+
COUNTRY_PLACEHOLDER: 'Enter Country',
|
|
36
|
+
AADHAAR_NUMBER_PLACEHOLDER: 'Enter Aadhaar Number',
|
|
37
|
+
OTP_PLACEHOLDER: 'Enter OTP',
|
|
38
|
+
// Marital status options
|
|
39
|
+
MARITAL_STATUS_SINGLE: 'Single',
|
|
40
|
+
MARITAL_STATUS_MARRIED: 'Married',
|
|
41
|
+
MARITAL_STATUS_DIVORCED: 'Divorced',
|
|
42
|
+
MARITAL_STATUS_WIDOWED: 'Widowed',
|
|
43
|
+
// Buttons
|
|
44
|
+
VERIFY_AADHAAR_BUTTON: 'Verify Aadhaar',
|
|
45
|
+
VERIFY_OTP_BUTTON: 'Verify OTP',
|
|
46
|
+
RESEND_OTP_BUTTON: 'Resend OTP',
|
|
47
|
+
SEND_OTP_BUTTON: 'Send OTP',
|
|
48
|
+
// Messages
|
|
49
|
+
AADHAAR_VERIFICATION_SUCCESS: 'Aadhaar verified successfully',
|
|
50
|
+
AADHAAR_VERIFICATION_FAILED: 'Aadhaar verification failed',
|
|
51
|
+
AADHAAR_ALREADY_VERIFIED: 'Aadhaar already verified',
|
|
52
|
+
AADHAAR_NUMBER_VERIFIED: 'Aadhaar number verified.',
|
|
53
|
+
PAN_VERIFICATION_SUCCESS: 'PAN verified successfully',
|
|
54
|
+
PAN_VERIFICATION_FAILED: 'PAN verification failed',
|
|
55
|
+
OTP_SENT_SUCCESS: 'OTP sent successfully',
|
|
56
|
+
OTP_VERIFICATION_SUCCESS: 'OTP verified successfully',
|
|
57
|
+
OTP_VERIFICATION_FAILED: 'OTP verification failed',
|
|
58
|
+
KYC_COMPLETED: 'KYC completed successfully',
|
|
59
|
+
KYC_PENDING: 'KYC verification pending',
|
|
60
|
+
SENDING_OTP: 'Sending OTP...',
|
|
61
|
+
VERIFYING_OTP: 'Verifying OTP...',
|
|
62
|
+
RESENDING_OTP: 'Resending OTP...',
|
|
63
|
+
// Error messages
|
|
64
|
+
INVALID_PAN: 'Invalid PAN number',
|
|
65
|
+
INVALID_AADHAAR: 'Invalid Aadhaar number',
|
|
66
|
+
INVALID_OTP: 'Invalid OTP',
|
|
67
|
+
INVALID_OR_EXPIRED_OTP: 'Invalid or expired OTP. Please try again.',
|
|
68
|
+
OTP_EXPIRED: 'OTP has expired',
|
|
69
|
+
VERIFICATION_FAILED: 'Verification failed',
|
|
70
|
+
DOCUMENT_UPLOAD_FAILED: 'Document upload failed',
|
|
71
|
+
AADHAAR_ERROR_GENERIC: 'Something went wrong, check your Aadhaar number and try again.',
|
|
72
|
+
RESEND_OTP_FAILED: 'Failed to resend OTP. Please try again.',
|
|
73
|
+
FAILED_TO_PROCEED: 'Failed to proceed. Please try again.',
|
|
74
|
+
// Validation messages
|
|
75
|
+
PAN_REQUIRED: 'PAN number is required',
|
|
76
|
+
AADHAAR_REQUIRED: 'Aadhaar number is required',
|
|
77
|
+
AADHAAR_MUST_BE_12_DIGITS: 'Aadhaar number must be 12 digits',
|
|
78
|
+
OTP_REQUIRED: 'OTP is required',
|
|
79
|
+
OTP_INCOMPLETE: 'Please enter the complete 6-digit OTP',
|
|
80
|
+
DATE_OF_BIRTH_REQUIRED: 'Date of birth is required',
|
|
81
|
+
MARITAL_STATUS_REQUIRED: 'Marital status is required',
|
|
82
|
+
ADDRESS_REQUIRED: 'Address is required',
|
|
83
|
+
PINCODE_REQUIRED: 'Pincode is required',
|
|
84
|
+
// Status messages
|
|
85
|
+
VERIFICATION_IN_PROGRESS: 'Verification in progress...',
|
|
86
|
+
DOCUMENT_UNDER_REVIEW: 'Document under review',
|
|
87
|
+
VERIFICATION_COMPLETED: 'Verification completed',
|
|
88
|
+
VERIFICATION_REJECTED: 'Verification rejected',
|
|
89
|
+
// Instructions
|
|
90
|
+
AADHAAR_INSTRUCTIONS: 'Please enter your 12-digit Aadhaar number',
|
|
91
|
+
PAN_INSTRUCTIONS: 'Please enter your 10-character PAN number',
|
|
92
|
+
OTP_INSTRUCTIONS: 'Please enter the OTP sent to your registered mobile number',
|
|
93
|
+
DOCUMENT_INSTRUCTIONS: 'Please upload clear images of your documents',
|
|
94
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const NOMINEE_STRINGS: {
|
|
2
|
+
readonly NOMINEE_DETAILS_TITLE: "Nominee Details";
|
|
3
|
+
readonly ADD_NOMINEE_TITLE: "Add Nominee";
|
|
4
|
+
readonly EDIT_NOMINEE_TITLE: "Edit Nominee";
|
|
5
|
+
readonly MAKE_NOMINATION_LABEL: "Do you wish to make a nomination for this deposit?";
|
|
6
|
+
readonly NOMINEE_TITLE_LABEL: "Nominee Title";
|
|
7
|
+
readonly NOMINEE_NAME_LABEL: "Nominee Name";
|
|
8
|
+
readonly RELATIONSHIP_LABEL: "Relationship";
|
|
9
|
+
readonly DATE_OF_BIRTH_LABEL: "Date of Birth";
|
|
10
|
+
readonly PRINT_NAME_ON_CERTIFICATE_LABEL: "Print Name on Certificate";
|
|
11
|
+
readonly MAKE_NOMINATION_PLACEHOLDER: "Select Option";
|
|
12
|
+
readonly NOMINEE_TITLE_PLACEHOLDER: "";
|
|
13
|
+
readonly NOMINEE_NAME_PLACEHOLDER: "Enter Nominee Name";
|
|
14
|
+
readonly RELATIONSHIP_PLACEHOLDER: "Select Relationship";
|
|
15
|
+
readonly DATE_OF_BIRTH_PLACEHOLDER: "Select Date of Birth";
|
|
16
|
+
readonly MAKE_NOMINATION_YES: "Yes";
|
|
17
|
+
readonly MAKE_NOMINATION_NO: "No";
|
|
18
|
+
readonly TITLE_MR: "Mr.";
|
|
19
|
+
readonly TITLE_MRS: "Mrs.";
|
|
20
|
+
readonly TITLE_MS: "Ms.";
|
|
21
|
+
readonly TITLE_DR: "Dr.";
|
|
22
|
+
readonly TITLE_PROF: "Prof.";
|
|
23
|
+
readonly RELATIONSHIP_SPOUSE: "Spouse";
|
|
24
|
+
readonly RELATIONSHIP_SON: "Son";
|
|
25
|
+
readonly RELATIONSHIP_DAUGHTER: "Daughter";
|
|
26
|
+
readonly RELATIONSHIP_FATHER: "Father";
|
|
27
|
+
readonly RELATIONSHIP_MOTHER: "Mother";
|
|
28
|
+
readonly RELATIONSHIP_BROTHER: "Brother";
|
|
29
|
+
readonly RELATIONSHIP_SISTER: "Sister";
|
|
30
|
+
readonly RELATIONSHIP_OTHER: "Other";
|
|
31
|
+
readonly SAVE_NOMINEE_BUTTON: "Save Nominee Details";
|
|
32
|
+
readonly UPDATE_NOMINEE_BUTTON: "Update Nominee Details";
|
|
33
|
+
readonly DELETE_NOMINEE_BUTTON: "Delete Nominee";
|
|
34
|
+
readonly ADD_NOMINEE_BUTTON: "Add Nominee";
|
|
35
|
+
readonly NOMINEE_SAVED_SUCCESS: "Nominee details saved successfully";
|
|
36
|
+
readonly NOMINEE_SAVED_FAILED: "Failed to save nominee details";
|
|
37
|
+
readonly NOMINEE_UPDATED_SUCCESS: "Nominee details updated successfully";
|
|
38
|
+
readonly NOMINEE_UPDATED_FAILED: "Failed to update nominee details";
|
|
39
|
+
readonly NOMINEE_DELETED_SUCCESS: "Nominee deleted successfully";
|
|
40
|
+
readonly NOMINEE_DELETED_FAILED: "Failed to delete nominee";
|
|
41
|
+
readonly NOMINEE_ADDED_SUCCESS: "Nominee added successfully";
|
|
42
|
+
readonly NOMINEE_ADDED_FAILED: "Failed to add nominee";
|
|
43
|
+
readonly MAKE_NOMINATION_REQUIRED: "Please specify if you want to make a nomination";
|
|
44
|
+
readonly NOMINEE_TITLE_REQUIRED: "Nominee title is required";
|
|
45
|
+
readonly NOMINEE_NAME_REQUIRED: "Nominee name is required";
|
|
46
|
+
readonly RELATIONSHIP_REQUIRED: "Relationship is required";
|
|
47
|
+
readonly DATE_OF_BIRTH_REQUIRED: "Date of birth is required";
|
|
48
|
+
readonly INVALID_DATE_OF_BIRTH: "Please enter a valid date of birth";
|
|
49
|
+
readonly NOMINEE_AGE_RESTRICTION: "Nominee must be at least 18 years old";
|
|
50
|
+
readonly NOMINEE_FIELDS_HIDDEN: "Nominee details are only required when nomination is made";
|
|
51
|
+
readonly NOMINEE_FIELDS_CLEARED: "Nominee fields cleared as nomination is not required";
|
|
52
|
+
readonly NOMINEE_INSTRUCTIONS: "Please provide nominee details if you wish to make a nomination";
|
|
53
|
+
readonly NOMINEE_TITLE_INSTRUCTIONS: "Select the appropriate title for the nominee";
|
|
54
|
+
readonly NOMINEE_NAME_INSTRUCTIONS: "Enter the full name of the nominee";
|
|
55
|
+
readonly RELATIONSHIP_INSTRUCTIONS: "Select your relationship with the nominee";
|
|
56
|
+
readonly DATE_OF_BIRTH_INSTRUCTIONS: "Enter the date of birth of the nominee";
|
|
57
|
+
readonly PRINT_NAME_INSTRUCTIONS: "Would you like the nominee’s name to be printed on the Fixed Deposit certificate? ";
|
|
58
|
+
readonly NOMINEE_BENEFITS: "Nominee will receive the FD amount in case of your demise";
|
|
59
|
+
readonly NOMINEE_OPTIONAL: "Nomination is optional but recommended";
|
|
60
|
+
readonly NOMINEE_CAN_BE_CHANGED: "Nominee details can be changed later if needed";
|
|
61
|
+
readonly NOMINEE_SAVE_ERROR: "Unable to save nominee details. Please check your information and try again.";
|
|
62
|
+
readonly NOMINEE_UPDATE_ERROR: "Unable to update nominee details. Please try again.";
|
|
63
|
+
readonly NOMINEE_DELETE_ERROR: "Unable to delete nominee. Please try again.";
|
|
64
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NOMINEE_STRINGS = void 0;
|
|
4
|
+
// Nominee related strings
|
|
5
|
+
exports.NOMINEE_STRINGS = {
|
|
6
|
+
// Screen titles
|
|
7
|
+
NOMINEE_DETAILS_TITLE: 'Nominee Details',
|
|
8
|
+
ADD_NOMINEE_TITLE: 'Add Nominee',
|
|
9
|
+
EDIT_NOMINEE_TITLE: 'Edit Nominee',
|
|
10
|
+
// Form labels
|
|
11
|
+
MAKE_NOMINATION_LABEL: 'Do you wish to make a nomination for this deposit?',
|
|
12
|
+
NOMINEE_TITLE_LABEL: 'Nominee Title',
|
|
13
|
+
NOMINEE_NAME_LABEL: 'Nominee Name',
|
|
14
|
+
RELATIONSHIP_LABEL: 'Relationship',
|
|
15
|
+
DATE_OF_BIRTH_LABEL: 'Date of Birth',
|
|
16
|
+
PRINT_NAME_ON_CERTIFICATE_LABEL: 'Print Name on Certificate',
|
|
17
|
+
// Placeholders
|
|
18
|
+
MAKE_NOMINATION_PLACEHOLDER: 'Select Option',
|
|
19
|
+
NOMINEE_TITLE_PLACEHOLDER: '',
|
|
20
|
+
NOMINEE_NAME_PLACEHOLDER: 'Enter Nominee Name',
|
|
21
|
+
RELATIONSHIP_PLACEHOLDER: 'Select Relationship',
|
|
22
|
+
DATE_OF_BIRTH_PLACEHOLDER: 'Select Date of Birth',
|
|
23
|
+
// Nomination options
|
|
24
|
+
MAKE_NOMINATION_YES: 'Yes',
|
|
25
|
+
MAKE_NOMINATION_NO: 'No',
|
|
26
|
+
// Title options
|
|
27
|
+
TITLE_MR: 'Mr.',
|
|
28
|
+
TITLE_MRS: 'Mrs.',
|
|
29
|
+
TITLE_MS: 'Ms.',
|
|
30
|
+
TITLE_DR: 'Dr.',
|
|
31
|
+
TITLE_PROF: 'Prof.',
|
|
32
|
+
// Relationship options
|
|
33
|
+
RELATIONSHIP_SPOUSE: 'Spouse',
|
|
34
|
+
RELATIONSHIP_SON: 'Son',
|
|
35
|
+
RELATIONSHIP_DAUGHTER: 'Daughter',
|
|
36
|
+
RELATIONSHIP_FATHER: 'Father',
|
|
37
|
+
RELATIONSHIP_MOTHER: 'Mother',
|
|
38
|
+
RELATIONSHIP_BROTHER: 'Brother',
|
|
39
|
+
RELATIONSHIP_SISTER: 'Sister',
|
|
40
|
+
RELATIONSHIP_OTHER: 'Other',
|
|
41
|
+
// Buttons
|
|
42
|
+
SAVE_NOMINEE_BUTTON: 'Save Nominee Details',
|
|
43
|
+
UPDATE_NOMINEE_BUTTON: 'Update Nominee Details',
|
|
44
|
+
DELETE_NOMINEE_BUTTON: 'Delete Nominee',
|
|
45
|
+
ADD_NOMINEE_BUTTON: 'Add Nominee',
|
|
46
|
+
// Messages
|
|
47
|
+
NOMINEE_SAVED_SUCCESS: 'Nominee details saved successfully',
|
|
48
|
+
NOMINEE_SAVED_FAILED: 'Failed to save nominee details',
|
|
49
|
+
NOMINEE_UPDATED_SUCCESS: 'Nominee details updated successfully',
|
|
50
|
+
NOMINEE_UPDATED_FAILED: 'Failed to update nominee details',
|
|
51
|
+
NOMINEE_DELETED_SUCCESS: 'Nominee deleted successfully',
|
|
52
|
+
NOMINEE_DELETED_FAILED: 'Failed to delete nominee',
|
|
53
|
+
NOMINEE_ADDED_SUCCESS: 'Nominee added successfully',
|
|
54
|
+
NOMINEE_ADDED_FAILED: 'Failed to add nominee',
|
|
55
|
+
// Validation messages
|
|
56
|
+
MAKE_NOMINATION_REQUIRED: 'Please specify if you want to make a nomination',
|
|
57
|
+
NOMINEE_TITLE_REQUIRED: 'Nominee title is required',
|
|
58
|
+
NOMINEE_NAME_REQUIRED: 'Nominee name is required',
|
|
59
|
+
RELATIONSHIP_REQUIRED: 'Relationship is required',
|
|
60
|
+
DATE_OF_BIRTH_REQUIRED: 'Date of birth is required',
|
|
61
|
+
INVALID_DATE_OF_BIRTH: 'Please enter a valid date of birth',
|
|
62
|
+
NOMINEE_AGE_RESTRICTION: 'Nominee must be at least 18 years old',
|
|
63
|
+
// Conditional messages
|
|
64
|
+
NOMINEE_FIELDS_HIDDEN: 'Nominee details are only required when nomination is made',
|
|
65
|
+
NOMINEE_FIELDS_CLEARED: 'Nominee fields cleared as nomination is not required',
|
|
66
|
+
// Instructions
|
|
67
|
+
NOMINEE_INSTRUCTIONS: 'Please provide nominee details if you wish to make a nomination',
|
|
68
|
+
NOMINEE_TITLE_INSTRUCTIONS: 'Select the appropriate title for the nominee',
|
|
69
|
+
NOMINEE_NAME_INSTRUCTIONS: 'Enter the full name of the nominee',
|
|
70
|
+
RELATIONSHIP_INSTRUCTIONS: 'Select your relationship with the nominee',
|
|
71
|
+
DATE_OF_BIRTH_INSTRUCTIONS: 'Enter the date of birth of the nominee',
|
|
72
|
+
PRINT_NAME_INSTRUCTIONS: 'Would you like the nominee’s name to be printed on the Fixed Deposit certificate? ',
|
|
73
|
+
// Information messages
|
|
74
|
+
NOMINEE_BENEFITS: 'Nominee will receive the FD amount in case of your demise',
|
|
75
|
+
NOMINEE_OPTIONAL: 'Nomination is optional but recommended',
|
|
76
|
+
NOMINEE_CAN_BE_CHANGED: 'Nominee details can be changed later if needed',
|
|
77
|
+
// Error messages
|
|
78
|
+
NOMINEE_SAVE_ERROR: 'Unable to save nominee details. Please check your information and try again.',
|
|
79
|
+
NOMINEE_UPDATE_ERROR: 'Unable to update nominee details. Please try again.',
|
|
80
|
+
NOMINEE_DELETE_ERROR: 'Unable to delete nominee. Please try again.',
|
|
81
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const useAuth: () => {
|
|
2
|
+
isAuthenticated: boolean;
|
|
3
|
+
token: string;
|
|
4
|
+
currentUser: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
};
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
isLoggingOut: boolean;
|
|
11
|
+
loginError: null;
|
|
12
|
+
userError: null;
|
|
13
|
+
hasError: boolean;
|
|
14
|
+
login: (email: string, password: string) => Promise<{
|
|
15
|
+
token: string;
|
|
16
|
+
user: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
email: string;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
logout: () => Promise<void>;
|
|
23
|
+
refetchUser: () => void;
|
|
24
|
+
loginData: null;
|
|
25
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useAuth = void 0;
|
|
4
|
+
const store_1 = require("../store");
|
|
5
|
+
// Custom hook for authentication management (simplified for interest rate API)
|
|
6
|
+
const useAuth = () => {
|
|
7
|
+
// Get auth state from Redux store (placeholder for now)
|
|
8
|
+
const authState = (0, store_1.useAppSelector)((state) => state.auth);
|
|
9
|
+
// Mock user data for now
|
|
10
|
+
const currentUser = {
|
|
11
|
+
id: '1',
|
|
12
|
+
name: 'Demo User',
|
|
13
|
+
email: 'demo@shriram.com',
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
// Auth state
|
|
17
|
+
isAuthenticated: true, // Mock authenticated state
|
|
18
|
+
token: 'mock-token',
|
|
19
|
+
currentUser,
|
|
20
|
+
// Loading states
|
|
21
|
+
isLoading: false,
|
|
22
|
+
isLoggingOut: false,
|
|
23
|
+
// Error states
|
|
24
|
+
loginError: null,
|
|
25
|
+
userError: null,
|
|
26
|
+
hasError: false,
|
|
27
|
+
// Actions (mock implementations)
|
|
28
|
+
login: async (email, password) => {
|
|
29
|
+
return { token: 'mock-token', user: currentUser };
|
|
30
|
+
},
|
|
31
|
+
logout: async () => {
|
|
32
|
+
},
|
|
33
|
+
refetchUser: () => {
|
|
34
|
+
},
|
|
35
|
+
// Raw data
|
|
36
|
+
loginData: null,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.useAuth = useAuth;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const useFDData: () => {
|
|
2
|
+
interestRates: import("../api").InterestRate[];
|
|
3
|
+
fdrScheme: import("../api").InterestRate[];
|
|
4
|
+
interestRatesError: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
5
|
+
interestRatesLoading: boolean;
|
|
6
|
+
refetchInterestRates: (arg: Partial<import("../api").InterestRateRequest>) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<Partial<import("../api").InterestRateRequest>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", import("../api").InterestRateApiResponse, "shriramApi", unknown>>;
|
|
7
|
+
currentUser: any;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
hasError: boolean;
|
|
10
|
+
refreshAll: () => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFDData = void 0;
|
|
4
|
+
const api_1 = require("../api");
|
|
5
|
+
const store_1 = require("../store");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
// Custom hook for Interest Rate data management
|
|
8
|
+
const useFDData = () => {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
// Get all interest rates
|
|
11
|
+
const [getInterestRates, { data: interestRates, error: interestRatesError, isLoading: interestRatesLoading, }] = (0, api_1.useGetInterestRatesMutation)();
|
|
12
|
+
// Trigger API call on mount
|
|
13
|
+
(0, react_1.useEffect)(() => {
|
|
14
|
+
// The API will automatically use app data if SDK is initialized
|
|
15
|
+
// If not initialized, it will use fallback values
|
|
16
|
+
getInterestRates({});
|
|
17
|
+
}, [getInterestRates]);
|
|
18
|
+
// Get current user (if available) - placeholder for now
|
|
19
|
+
const currentUser = (0, store_1.useAppSelector)((state) => { var _a; return (_a = state.user) === null || _a === void 0 ? void 0 : _a.currentUser; });
|
|
20
|
+
return {
|
|
21
|
+
// Interest Rates data
|
|
22
|
+
interestRates: ((_a = interestRates === null || interestRates === void 0 ? void 0 : interestRates.data) === null || _a === void 0 ? void 0 : _a.sdrScheme) || [],
|
|
23
|
+
fdrScheme: ((_b = interestRates === null || interestRates === void 0 ? void 0 : interestRates.data) === null || _b === void 0 ? void 0 : _b.fdrScheme) || [],
|
|
24
|
+
interestRatesError,
|
|
25
|
+
interestRatesLoading,
|
|
26
|
+
refetchInterestRates: getInterestRates,
|
|
27
|
+
// User data
|
|
28
|
+
currentUser,
|
|
29
|
+
// Loading state
|
|
30
|
+
isLoading: interestRatesLoading,
|
|
31
|
+
// Error state
|
|
32
|
+
hasError: !!interestRatesError,
|
|
33
|
+
// Refresh all data
|
|
34
|
+
refreshAll: () => {
|
|
35
|
+
// The API will automatically use app data if SDK is initialized
|
|
36
|
+
getInterestRates({});
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.useFDData = useFDData;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import 'react-native-get-random-values';
|
|
2
|
+
export declare const FDList: import("react").FC<import("./screens/FDList").FDListProps>;
|
|
3
|
+
export declare const AadhaarVerification: import("react").FC<import("./screens/AadhaarVerification").AadhaarVerificationProps>;
|
|
4
|
+
export declare const ReviewKYC: import("react").FC<import("./screens/ReviewKYC").ReviewKYCProps>;
|
|
5
|
+
export declare const Employee: import("react").FC<import("./screens/Employee").EmployeeProps>;
|
|
6
|
+
export declare const NomineeDetail: import("react").FC<import("./screens/NomineeDetail").NomineeDetailProps>;
|
|
7
|
+
export declare const BankDetail: import("react").FC<import("./screens/BankDetail").BankDetailProps>;
|
|
8
|
+
export declare const AddBankAccount: import("react").FC<import("./screens/AddBankAccount").AddBankAccountProps>;
|
|
9
|
+
export declare const FindIFSC: import("react").FC<import("./screens/FindIFSC").FindIFSCProps>;
|
|
10
|
+
export declare const PayNow: import("react").FC<import("./screens/PayNow").PayNowProps>;
|
|
11
|
+
export declare const Payment: import("react").FC<import("./screens/Payment").PaymentProps>;
|
|
12
|
+
export declare const PaymentStatus: import("react").FC<import("./screens/PaymentStatus").PaymentStatusProps>;
|
|
13
|
+
export declare const PendingFDBottomSheet: import("react").FC<import("./components/PendingFDBottomSheet").PendingFDBottomSheetProps>;
|
|
14
|
+
export type { FDListProps } from './screens/FDList';
|
|
15
|
+
export type { AadhaarVerificationProps } from './screens/AadhaarVerification';
|
|
16
|
+
export type { ReviewKYCProps, KYCData } from './screens/ReviewKYC';
|
|
17
|
+
export type { EmployeeProps, EmployeeData } from './screens/Employee';
|
|
18
|
+
export type { NomineeDetailProps, NomineeData } from './screens/NomineeDetail';
|
|
19
|
+
export type { BankDetailProps, BankData } from './screens/BankDetail';
|
|
20
|
+
export type { AddBankAccountProps, AddBankAccountData } from './screens/AddBankAccount';
|
|
21
|
+
export type { FindIFSCProps, IFSCData } from './screens/FindIFSC';
|
|
22
|
+
export type { PayNowProps } from './screens/PayNow';
|
|
23
|
+
export type { PaymentProps } from './screens/Payment';
|
|
24
|
+
export type { PaymentStatusProps } from './screens/PaymentStatus';
|
|
25
|
+
export type { FDCalculatorProps } from './screens/FDCalculator';
|
|
26
|
+
import { SDKNavigationContainer, SimpleNavigator } from './navigation';
|
|
27
|
+
export { SDKNavigationContainer, SimpleNavigator };
|
|
28
|
+
export { SDKNavigationContainer as ShriramSDKNavigator };
|
|
29
|
+
export * from './theme';
|
|
30
|
+
export { ThemeProvider, useTheme, useColors, useTypography, useShadows, useSpacing } from './theme/ThemeContext';
|
|
31
|
+
export * from './api';
|
|
32
|
+
export { ApiProvider } from './providers/ApiProvider';
|
|
33
|
+
export { MasterDataProvider, useMasterData } from './providers/MasterDataProvider';
|
|
34
|
+
export { useFDData } from './hooks/useFDData';
|
|
35
|
+
export { useAuth } from './hooks/useAuth';
|
|
36
|
+
export { store, useAppDispatch, useAppSelector } from './store';
|
|
37
|
+
export * from './utils/encryption';
|
|
38
|
+
export { getEncryptionConfig, getEncryptionConfigs, getEnvironmentConfig as getEncryptionEnvironmentConfig, validateEncryptionConfig } from './config/encryptionConfig';
|
|
39
|
+
export * from './config/apiConfig';
|
|
40
|
+
export { debugApiConfig, debugApiCall, logEnvironmentInfo } from './config/apiConfig';
|
|
41
|
+
export { initializeSDK, getAppData, isSDKInitialized, getUserInfoForAPI, getUserDemographics, validateAppData, clearAppData, initializeEnvironment, getEnvironmentData, isEnvironmentInitialized, clearEnvironmentData, clearAllData, } from './config/appDataConfig';
|
|
42
|
+
export type { AppData, EnvironmentData } from './config/appDataConfig';
|
|
43
|
+
export { showValidationErrorAlert, validateAndProceed } from './components/ValidationErrorAlert';
|
|
44
|
+
export type { ValidationErrorAlertProps } from './components/ValidationErrorAlert';
|
|
45
|
+
export { WORKFLOW_STATES, WORKFLOW_TASKS, WORKFLOW_CONSTANTS, getWorkflowStateName, getWorkflowTaskName, } from './config/workflowConstants';
|
|
46
|
+
export type { WorkflowState, WorkflowTask } from './config/workflowConstants';
|
|
47
|
+
export { apiLogger, ApiLogger } from './utils/apiLogger';
|
|
48
|
+
export type { LogConfig, RequestLogData, ResponseLogData } from './utils/apiLogger';
|
|
49
|
+
export { toggleEncryption, isEncryptionEnabled, getCurrentApiConfig } from './api/baseApi';
|
|
50
|
+
export { getFDData } from './utils/getFDData';
|
|
51
|
+
export type { FDDataResponse } from './utils/getFDData';
|
|
52
|
+
import type { ThemeName, Theme } from './theme';
|
|
53
|
+
export interface SDKConfig {
|
|
54
|
+
apiBaseUrl?: string;
|
|
55
|
+
theme?: ThemeName | Theme;
|
|
56
|
+
environment?: 'development' | 'staging' | 'production';
|
|
57
|
+
}
|
|
58
|
+
export declare class ShriramSDK {
|
|
59
|
+
private config;
|
|
60
|
+
constructor(config?: SDKConfig);
|
|
61
|
+
getConfig(): SDKConfig;
|
|
62
|
+
updateConfig(newConfig: Partial<SDKConfig>): void;
|
|
63
|
+
static getVersion(): string;
|
|
64
|
+
static getPlatformInfo(): {
|
|
65
|
+
platform: string;
|
|
66
|
+
version: string;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export default ShriramSDK;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.validateAndProceed = exports.showValidationErrorAlert = exports.clearAllData = exports.clearEnvironmentData = exports.isEnvironmentInitialized = exports.getEnvironmentData = exports.initializeEnvironment = exports.clearAppData = exports.validateAppData = exports.getUserDemographics = exports.getUserInfoForAPI = exports.isSDKInitialized = exports.getAppData = exports.initializeSDK = exports.logEnvironmentInfo = exports.debugApiCall = exports.debugApiConfig = exports.validateEncryptionConfig = exports.getEncryptionEnvironmentConfig = exports.getEncryptionConfigs = exports.getEncryptionConfig = exports.useAppSelector = exports.useAppDispatch = exports.store = exports.useAuth = exports.useFDData = exports.useMasterData = exports.MasterDataProvider = exports.ApiProvider = exports.useSpacing = exports.useShadows = exports.useTypography = exports.useColors = exports.useTheme = exports.ThemeProvider = exports.ShriramSDKNavigator = exports.SimpleNavigator = exports.SDKNavigationContainer = exports.PendingFDBottomSheet = exports.PaymentStatus = exports.Payment = exports.PayNow = exports.FindIFSC = exports.AddBankAccount = exports.BankDetail = exports.NomineeDetail = exports.Employee = exports.ReviewKYC = exports.AadhaarVerification = exports.FDList = void 0;
|
|
43
|
+
exports.ShriramSDK = exports.getFDData = exports.getCurrentApiConfig = exports.isEncryptionEnabled = exports.toggleEncryption = exports.ApiLogger = exports.apiLogger = exports.getWorkflowTaskName = exports.getWorkflowStateName = exports.WORKFLOW_CONSTANTS = exports.WORKFLOW_TASKS = exports.WORKFLOW_STATES = void 0;
|
|
44
|
+
// React Native crypto polyfill - MUST be imported first
|
|
45
|
+
require("react-native-get-random-values");
|
|
46
|
+
// Main SDK exports
|
|
47
|
+
//import HomeComponent from './screens/Home';
|
|
48
|
+
//import BookFDComponent from './screens/BookFD';
|
|
49
|
+
const FDList_1 = __importDefault(require("./screens/FDList"));
|
|
50
|
+
const AadhaarVerification_1 = __importDefault(require("./screens/AadhaarVerification"));
|
|
51
|
+
const ReviewKYC_1 = __importDefault(require("./screens/ReviewKYC"));
|
|
52
|
+
const Employee_1 = __importDefault(require("./screens/Employee"));
|
|
53
|
+
const NomineeDetail_1 = __importDefault(require("./screens/NomineeDetail"));
|
|
54
|
+
const BankDetail_1 = __importDefault(require("./screens/BankDetail"));
|
|
55
|
+
const AddBankAccount_1 = __importDefault(require("./screens/AddBankAccount"));
|
|
56
|
+
const FindIFSC_1 = __importDefault(require("./screens/FindIFSC"));
|
|
57
|
+
const PayNow_1 = __importDefault(require("./screens/PayNow"));
|
|
58
|
+
const Payment_1 = __importDefault(require("./screens/Payment"));
|
|
59
|
+
const PaymentStatus_1 = __importDefault(require("./screens/PaymentStatus"));
|
|
60
|
+
const PendingFDBottomSheet_1 = __importDefault(require("./components/PendingFDBottomSheet"));
|
|
61
|
+
//export const Home = HomeComponent;
|
|
62
|
+
//export const BookFD = BookFDComponent;
|
|
63
|
+
exports.FDList = FDList_1.default;
|
|
64
|
+
exports.AadhaarVerification = AadhaarVerification_1.default;
|
|
65
|
+
exports.ReviewKYC = ReviewKYC_1.default;
|
|
66
|
+
exports.Employee = Employee_1.default;
|
|
67
|
+
exports.NomineeDetail = NomineeDetail_1.default;
|
|
68
|
+
exports.BankDetail = BankDetail_1.default;
|
|
69
|
+
exports.AddBankAccount = AddBankAccount_1.default;
|
|
70
|
+
exports.FindIFSC = FindIFSC_1.default;
|
|
71
|
+
exports.PayNow = PayNow_1.default;
|
|
72
|
+
exports.Payment = Payment_1.default;
|
|
73
|
+
exports.PaymentStatus = PaymentStatus_1.default;
|
|
74
|
+
exports.PendingFDBottomSheet = PendingFDBottomSheet_1.default;
|
|
75
|
+
// Export navigation - Direct imports to ensure they work
|
|
76
|
+
const navigation_1 = require("./navigation");
|
|
77
|
+
Object.defineProperty(exports, "SDKNavigationContainer", { enumerable: true, get: function () { return navigation_1.SDKNavigationContainer; } });
|
|
78
|
+
Object.defineProperty(exports, "ShriramSDKNavigator", { enumerable: true, get: function () { return navigation_1.SDKNavigationContainer; } });
|
|
79
|
+
Object.defineProperty(exports, "SimpleNavigator", { enumerable: true, get: function () { return navigation_1.SimpleNavigator; } });
|
|
80
|
+
// Export theme system
|
|
81
|
+
__exportStar(require("./theme"), exports);
|
|
82
|
+
var ThemeContext_1 = require("./theme/ThemeContext");
|
|
83
|
+
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return ThemeContext_1.ThemeProvider; } });
|
|
84
|
+
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return ThemeContext_1.useTheme; } });
|
|
85
|
+
Object.defineProperty(exports, "useColors", { enumerable: true, get: function () { return ThemeContext_1.useColors; } });
|
|
86
|
+
Object.defineProperty(exports, "useTypography", { enumerable: true, get: function () { return ThemeContext_1.useTypography; } });
|
|
87
|
+
Object.defineProperty(exports, "useShadows", { enumerable: true, get: function () { return ThemeContext_1.useShadows; } });
|
|
88
|
+
Object.defineProperty(exports, "useSpacing", { enumerable: true, get: function () { return ThemeContext_1.useSpacing; } });
|
|
89
|
+
// Export API system
|
|
90
|
+
__exportStar(require("./api"), exports);
|
|
91
|
+
var ApiProvider_1 = require("./providers/ApiProvider");
|
|
92
|
+
Object.defineProperty(exports, "ApiProvider", { enumerable: true, get: function () { return ApiProvider_1.ApiProvider; } });
|
|
93
|
+
var MasterDataProvider_1 = require("./providers/MasterDataProvider");
|
|
94
|
+
Object.defineProperty(exports, "MasterDataProvider", { enumerable: true, get: function () { return MasterDataProvider_1.MasterDataProvider; } });
|
|
95
|
+
Object.defineProperty(exports, "useMasterData", { enumerable: true, get: function () { return MasterDataProvider_1.useMasterData; } });
|
|
96
|
+
var useFDData_1 = require("./hooks/useFDData");
|
|
97
|
+
Object.defineProperty(exports, "useFDData", { enumerable: true, get: function () { return useFDData_1.useFDData; } });
|
|
98
|
+
var useAuth_1 = require("./hooks/useAuth");
|
|
99
|
+
Object.defineProperty(exports, "useAuth", { enumerable: true, get: function () { return useAuth_1.useAuth; } });
|
|
100
|
+
var store_1 = require("./store");
|
|
101
|
+
Object.defineProperty(exports, "store", { enumerable: true, get: function () { return store_1.store; } });
|
|
102
|
+
Object.defineProperty(exports, "useAppDispatch", { enumerable: true, get: function () { return store_1.useAppDispatch; } });
|
|
103
|
+
Object.defineProperty(exports, "useAppSelector", { enumerable: true, get: function () { return store_1.useAppSelector; } });
|
|
104
|
+
// Export encryption utilities
|
|
105
|
+
__exportStar(require("./utils/encryption"), exports);
|
|
106
|
+
var encryptionConfig_1 = require("./config/encryptionConfig");
|
|
107
|
+
Object.defineProperty(exports, "getEncryptionConfig", { enumerable: true, get: function () { return encryptionConfig_1.getEncryptionConfig; } });
|
|
108
|
+
Object.defineProperty(exports, "getEncryptionConfigs", { enumerable: true, get: function () { return encryptionConfig_1.getEncryptionConfigs; } });
|
|
109
|
+
Object.defineProperty(exports, "getEncryptionEnvironmentConfig", { enumerable: true, get: function () { return encryptionConfig_1.getEnvironmentConfig; } });
|
|
110
|
+
Object.defineProperty(exports, "validateEncryptionConfig", { enumerable: true, get: function () { return encryptionConfig_1.validateEncryptionConfig; } });
|
|
111
|
+
// Export configuration utilities
|
|
112
|
+
__exportStar(require("./config/apiConfig"), exports);
|
|
113
|
+
var apiConfig_1 = require("./config/apiConfig");
|
|
114
|
+
Object.defineProperty(exports, "debugApiConfig", { enumerable: true, get: function () { return apiConfig_1.debugApiConfig; } });
|
|
115
|
+
Object.defineProperty(exports, "debugApiCall", { enumerable: true, get: function () { return apiConfig_1.debugApiCall; } });
|
|
116
|
+
Object.defineProperty(exports, "logEnvironmentInfo", { enumerable: true, get: function () { return apiConfig_1.logEnvironmentInfo; } });
|
|
117
|
+
// Export app data configuration
|
|
118
|
+
var appDataConfig_1 = require("./config/appDataConfig");
|
|
119
|
+
Object.defineProperty(exports, "initializeSDK", { enumerable: true, get: function () { return appDataConfig_1.initializeSDK; } });
|
|
120
|
+
Object.defineProperty(exports, "getAppData", { enumerable: true, get: function () { return appDataConfig_1.getAppData; } });
|
|
121
|
+
Object.defineProperty(exports, "isSDKInitialized", { enumerable: true, get: function () { return appDataConfig_1.isSDKInitialized; } });
|
|
122
|
+
Object.defineProperty(exports, "getUserInfoForAPI", { enumerable: true, get: function () { return appDataConfig_1.getUserInfoForAPI; } });
|
|
123
|
+
Object.defineProperty(exports, "getUserDemographics", { enumerable: true, get: function () { return appDataConfig_1.getUserDemographics; } });
|
|
124
|
+
Object.defineProperty(exports, "validateAppData", { enumerable: true, get: function () { return appDataConfig_1.validateAppData; } });
|
|
125
|
+
Object.defineProperty(exports, "clearAppData", { enumerable: true, get: function () { return appDataConfig_1.clearAppData; } });
|
|
126
|
+
Object.defineProperty(exports, "initializeEnvironment", { enumerable: true, get: function () { return appDataConfig_1.initializeEnvironment; } });
|
|
127
|
+
Object.defineProperty(exports, "getEnvironmentData", { enumerable: true, get: function () { return appDataConfig_1.getEnvironmentData; } });
|
|
128
|
+
Object.defineProperty(exports, "isEnvironmentInitialized", { enumerable: true, get: function () { return appDataConfig_1.isEnvironmentInitialized; } });
|
|
129
|
+
Object.defineProperty(exports, "clearEnvironmentData", { enumerable: true, get: function () { return appDataConfig_1.clearEnvironmentData; } });
|
|
130
|
+
Object.defineProperty(exports, "clearAllData", { enumerable: true, get: function () { return appDataConfig_1.clearAllData; } });
|
|
131
|
+
// Export validation utilities
|
|
132
|
+
var ValidationErrorAlert_1 = require("./components/ValidationErrorAlert");
|
|
133
|
+
Object.defineProperty(exports, "showValidationErrorAlert", { enumerable: true, get: function () { return ValidationErrorAlert_1.showValidationErrorAlert; } });
|
|
134
|
+
Object.defineProperty(exports, "validateAndProceed", { enumerable: true, get: function () { return ValidationErrorAlert_1.validateAndProceed; } });
|
|
135
|
+
// Export workflow constants
|
|
136
|
+
var workflowConstants_1 = require("./config/workflowConstants");
|
|
137
|
+
Object.defineProperty(exports, "WORKFLOW_STATES", { enumerable: true, get: function () { return workflowConstants_1.WORKFLOW_STATES; } });
|
|
138
|
+
Object.defineProperty(exports, "WORKFLOW_TASKS", { enumerable: true, get: function () { return workflowConstants_1.WORKFLOW_TASKS; } });
|
|
139
|
+
Object.defineProperty(exports, "WORKFLOW_CONSTANTS", { enumerable: true, get: function () { return workflowConstants_1.WORKFLOW_CONSTANTS; } });
|
|
140
|
+
Object.defineProperty(exports, "getWorkflowStateName", { enumerable: true, get: function () { return workflowConstants_1.getWorkflowStateName; } });
|
|
141
|
+
Object.defineProperty(exports, "getWorkflowTaskName", { enumerable: true, get: function () { return workflowConstants_1.getWorkflowTaskName; } });
|
|
142
|
+
// Export logging utilities
|
|
143
|
+
var apiLogger_1 = require("./utils/apiLogger");
|
|
144
|
+
Object.defineProperty(exports, "apiLogger", { enumerable: true, get: function () { return apiLogger_1.apiLogger; } });
|
|
145
|
+
Object.defineProperty(exports, "ApiLogger", { enumerable: true, get: function () { return apiLogger_1.ApiLogger; } });
|
|
146
|
+
// Export encryption control utilities
|
|
147
|
+
var baseApi_1 = require("./api/baseApi");
|
|
148
|
+
Object.defineProperty(exports, "toggleEncryption", { enumerable: true, get: function () { return baseApi_1.toggleEncryption; } });
|
|
149
|
+
Object.defineProperty(exports, "isEncryptionEnabled", { enumerable: true, get: function () { return baseApi_1.isEncryptionEnabled; } });
|
|
150
|
+
Object.defineProperty(exports, "getCurrentApiConfig", { enumerable: true, get: function () { return baseApi_1.getCurrentApiConfig; } });
|
|
151
|
+
// Export FD data retrieval utility
|
|
152
|
+
var getFDData_1 = require("./utils/getFDData");
|
|
153
|
+
Object.defineProperty(exports, "getFDData", { enumerable: true, get: function () { return getFDData_1.getFDData; } });
|
|
154
|
+
// SDK Main Class
|
|
155
|
+
class ShriramSDK {
|
|
156
|
+
constructor(config = {}) {
|
|
157
|
+
this.config = Object.assign({ apiBaseUrl: 'https://api.shriram.com', environment: 'production', theme: 'primary' }, config);
|
|
158
|
+
// Log environment information when SDK instance is created
|
|
159
|
+
Promise.resolve().then(() => __importStar(require('./config/apiConfig'))).then(({ logEnvironmentInfo }) => {
|
|
160
|
+
logEnvironmentInfo();
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
getConfig() {
|
|
164
|
+
return this.config;
|
|
165
|
+
}
|
|
166
|
+
updateConfig(newConfig) {
|
|
167
|
+
this.config = Object.assign(Object.assign({}, this.config), newConfig);
|
|
168
|
+
}
|
|
169
|
+
// Utility methods
|
|
170
|
+
static getVersion() {
|
|
171
|
+
return '1.0.0';
|
|
172
|
+
}
|
|
173
|
+
static getPlatformInfo() {
|
|
174
|
+
return {
|
|
175
|
+
platform: 'react-native',
|
|
176
|
+
version: '1.0.0',
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
exports.ShriramSDK = ShriramSDK;
|
|
181
|
+
// Default export
|
|
182
|
+
exports.default = ShriramSDK;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SDKNavigationConfig } from './types';
|
|
3
|
+
interface RootNavigatorProps {
|
|
4
|
+
config?: SDKNavigationConfig;
|
|
5
|
+
onExit?: (fdDetails?: any) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const RootNavigator: React.FC<RootNavigatorProps>;
|
|
8
|
+
export default RootNavigator;
|