@finspringinnovations/fixeddepositsdk 1.0.0

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 (311) hide show
  1. package/README.md +128 -0
  2. package/lib/api/applicationApi.d.ts +1 -0
  3. package/lib/api/applicationApi.js +11 -0
  4. package/lib/api/bankApi.d.ts +352 -0
  5. package/lib/api/bankApi.js +54 -0
  6. package/lib/api/baseApi.d.ts +6 -0
  7. package/lib/api/baseApi.js +406 -0
  8. package/lib/api/customerApi.d.ts +855 -0
  9. package/lib/api/customerApi.js +241 -0
  10. package/lib/api/fdApi.d.ts +979 -0
  11. package/lib/api/fdApi.js +112 -0
  12. package/lib/api/fdCalculatorApi.d.ts +179 -0
  13. package/lib/api/fdCalculatorApi.js +36 -0
  14. package/lib/api/index.d.ts +14 -0
  15. package/lib/api/index.js +45 -0
  16. package/lib/api/interestRateApi.d.ts +585 -0
  17. package/lib/api/interestRateApi.js +101 -0
  18. package/lib/api/kycApi.d.ts +486 -0
  19. package/lib/api/kycApi.js +71 -0
  20. package/lib/api/masterDataApi.d.ts +158 -0
  21. package/lib/api/masterDataApi.js +35 -0
  22. package/lib/api/nomineeApi.d.ts +325 -0
  23. package/lib/api/nomineeApi.js +46 -0
  24. package/lib/api/onboardingApi.d.ts +192 -0
  25. package/lib/api/onboardingApi.js +41 -0
  26. package/lib/api/panApi.d.ts +0 -0
  27. package/lib/api/panApi.js +23 -0
  28. package/lib/api/paymentApi.d.ts +325 -0
  29. package/lib/api/paymentApi.js +46 -0
  30. package/lib/api/workflowApi.d.ts +654 -0
  31. package/lib/api/workflowApi.js +90 -0
  32. package/lib/assets/images/images.d.ts +6 -0
  33. package/lib/assets/images/images.js +12 -0
  34. package/lib/components/AadhaarInput.d.ts +13 -0
  35. package/lib/components/AadhaarInput.js +47 -0
  36. package/lib/components/ActionButton.d.ts +12 -0
  37. package/lib/components/ActionButton.js +87 -0
  38. package/lib/components/ActiveFDCard.d.ts +18 -0
  39. package/lib/components/ActiveFDCard.js +116 -0
  40. package/lib/components/AmountInput.d.ts +20 -0
  41. package/lib/components/AmountInput.js +142 -0
  42. package/lib/components/CheckboxOption.d.ts +11 -0
  43. package/lib/components/CheckboxOption.js +41 -0
  44. package/lib/components/CompanyHeader.d.ts +7 -0
  45. package/lib/components/CompanyHeader.js +59 -0
  46. package/lib/components/DropdownSelector.d.ts +9 -0
  47. package/lib/components/DropdownSelector.js +49 -0
  48. package/lib/components/EmptyState.d.ts +17 -0
  49. package/lib/components/EmptyState.js +44 -0
  50. package/lib/components/ErrorDisplay.d.ts +17 -0
  51. package/lib/components/ErrorDisplay.js +69 -0
  52. package/lib/components/FAQItem.d.ts +9 -0
  53. package/lib/components/FAQItem.js +52 -0
  54. package/lib/components/FDCard.d.ts +23 -0
  55. package/lib/components/FDCard.js +116 -0
  56. package/lib/components/FormDropdown.d.ts +18 -0
  57. package/lib/components/FormDropdown.js +155 -0
  58. package/lib/components/FormSection.d.ts +14 -0
  59. package/lib/components/FormSection.js +38 -0
  60. package/lib/components/Header.d.ts +14 -0
  61. package/lib/components/Header.js +52 -0
  62. package/lib/components/IFSCSearchResultCard.d.ts +13 -0
  63. package/lib/components/IFSCSearchResultCard.js +70 -0
  64. package/lib/components/InfoBox.d.ts +8 -0
  65. package/lib/components/InfoBox.js +39 -0
  66. package/lib/components/InterestRateCard.d.ts +8 -0
  67. package/lib/components/InterestRateCard.js +46 -0
  68. package/lib/components/LoadingIndicator.d.ts +12 -0
  69. package/lib/components/LoadingIndicator.js +30 -0
  70. package/lib/components/OTPInput.d.ts +17 -0
  71. package/lib/components/OTPInput.js +144 -0
  72. package/lib/components/PaymentDetailsCard.d.ts +20 -0
  73. package/lib/components/PaymentDetailsCard.js +68 -0
  74. package/lib/components/PendingFDBottomSheet.d.ts +19 -0
  75. package/lib/components/PendingFDBottomSheet.js +122 -0
  76. package/lib/components/SafeAreaWrapper.d.ts +13 -0
  77. package/lib/components/SafeAreaWrapper.js +41 -0
  78. package/lib/components/ScreenHeader.d.ts +11 -0
  79. package/lib/components/ScreenHeader.js +46 -0
  80. package/lib/components/StatusDisplay.d.ts +15 -0
  81. package/lib/components/StatusDisplay.js +88 -0
  82. package/lib/components/TextFieldWithLabel.d.ts +46 -0
  83. package/lib/components/TextFieldWithLabel.js +326 -0
  84. package/lib/components/TrustBox.d.ts +8 -0
  85. package/lib/components/TrustBox.js +46 -0
  86. package/lib/components/ValidationErrorAlert.d.ts +23 -0
  87. package/lib/components/ValidationErrorAlert.js +39 -0
  88. package/lib/components/ValidationMessage.d.ts +9 -0
  89. package/lib/components/ValidationMessage.js +98 -0
  90. package/lib/components/index.d.ts +35 -0
  91. package/lib/components/index.js +64 -0
  92. package/lib/config/apiConfig.d.ts +34 -0
  93. package/lib/config/apiConfig.js +158 -0
  94. package/lib/config/appDataConfig.d.ts +159 -0
  95. package/lib/config/appDataConfig.js +310 -0
  96. package/lib/config/encryptionConfig.d.ts +21 -0
  97. package/lib/config/encryptionConfig.js +61 -0
  98. package/lib/config/workflowConstants.d.ts +62 -0
  99. package/lib/config/workflowConstants.js +63 -0
  100. package/lib/constants/strings/bank.d.ts +72 -0
  101. package/lib/constants/strings/bank.js +86 -0
  102. package/lib/constants/strings/base64Images.d.ts +26 -0
  103. package/lib/constants/strings/base64Images.js +29 -0
  104. package/lib/constants/strings/common.d.ts +53 -0
  105. package/lib/constants/strings/common.js +62 -0
  106. package/lib/constants/strings/employee.d.ts +61 -0
  107. package/lib/constants/strings/employee.js +77 -0
  108. package/lib/constants/strings/faq.d.ts +14 -0
  109. package/lib/constants/strings/faq.js +20 -0
  110. package/lib/constants/strings/fd.d.ts +122 -0
  111. package/lib/constants/strings/fd.js +151 -0
  112. package/lib/constants/strings/home.d.ts +49 -0
  113. package/lib/constants/strings/home.js +62 -0
  114. package/lib/constants/strings/index.d.ts +16 -0
  115. package/lib/constants/strings/index.js +44 -0
  116. package/lib/constants/strings/kyc.d.ts +80 -0
  117. package/lib/constants/strings/kyc.js +94 -0
  118. package/lib/constants/strings/nominee.d.ts +64 -0
  119. package/lib/constants/strings/nominee.js +81 -0
  120. package/lib/hooks/useAuth.d.ts +25 -0
  121. package/lib/hooks/useAuth.js +39 -0
  122. package/lib/hooks/useFDData.d.ts +11 -0
  123. package/lib/hooks/useFDData.js +40 -0
  124. package/lib/index.d.ts +48 -0
  125. package/lib/index.js +161 -0
  126. package/lib/navigation/RootNavigator.d.ts +9 -0
  127. package/lib/navigation/RootNavigator.js +459 -0
  128. package/lib/navigation/SimpleNavigator.d.ts +11 -0
  129. package/lib/navigation/SimpleNavigator.js +114 -0
  130. package/lib/navigation/helpers.d.ts +11 -0
  131. package/lib/navigation/helpers.js +83 -0
  132. package/lib/navigation/index.d.ts +17 -0
  133. package/lib/navigation/index.js +42 -0
  134. package/lib/navigation/types.d.ts +139 -0
  135. package/lib/navigation/types.js +2 -0
  136. package/lib/navigation/workflowNavigator.d.ts +22 -0
  137. package/lib/navigation/workflowNavigator.js +104 -0
  138. package/lib/providers/ApiProvider.d.ts +7 -0
  139. package/lib/providers/ApiProvider.js +16 -0
  140. package/lib/providers/MasterDataProvider.d.ts +10 -0
  141. package/lib/providers/MasterDataProvider.js +54 -0
  142. package/lib/screens/AadhaarVerification.d.ts +7 -0
  143. package/lib/screens/AadhaarVerification.js +627 -0
  144. package/lib/screens/AddBankAccount.d.ts +22 -0
  145. package/lib/screens/AddBankAccount.js +381 -0
  146. package/lib/screens/BankDetail.d.ts +16 -0
  147. package/lib/screens/BankDetail.js +596 -0
  148. package/lib/screens/Employee.d.ts +18 -0
  149. package/lib/screens/Employee.js +594 -0
  150. package/lib/screens/FDCalculator.d.ts +18 -0
  151. package/lib/screens/FDCalculator.js +767 -0
  152. package/lib/screens/FDList.d.ts +28 -0
  153. package/lib/screens/FDList.js +1853 -0
  154. package/lib/screens/FindIFSC.d.ts +16 -0
  155. package/lib/screens/FindIFSC.js +248 -0
  156. package/lib/screens/NomineeDetail.d.ts +17 -0
  157. package/lib/screens/NomineeDetail.js +592 -0
  158. package/lib/screens/PayNow.d.ts +14 -0
  159. package/lib/screens/PayNow.js +230 -0
  160. package/lib/screens/Payment.d.ts +11 -0
  161. package/lib/screens/Payment.js +191 -0
  162. package/lib/screens/PaymentStatus.d.ts +16 -0
  163. package/lib/screens/PaymentStatus.js +431 -0
  164. package/lib/screens/ReviewKYC.d.ts +23 -0
  165. package/lib/screens/ReviewKYC.js +727 -0
  166. package/lib/state/paymentSession.d.ts +8 -0
  167. package/lib/state/paymentSession.js +13 -0
  168. package/lib/store/fdListSelectedSlice.d.ts +21 -0
  169. package/lib/store/fdListSelectedSlice.js +26 -0
  170. package/lib/store/hooks.d.ts +8 -0
  171. package/lib/store/hooks.js +8 -0
  172. package/lib/store/index.d.ts +3 -0
  173. package/lib/store/index.js +8 -0
  174. package/lib/store/onboardingSlice.d.ts +12 -0
  175. package/lib/store/onboardingSlice.js +32 -0
  176. package/lib/store/store.d.ts +13 -0
  177. package/lib/store/store.js +27 -0
  178. package/lib/theme/ThemeContext.d.ts +210 -0
  179. package/lib/theme/ThemeContext.js +92 -0
  180. package/lib/theme/colors.d.ts +80 -0
  181. package/lib/theme/colors.js +85 -0
  182. package/lib/theme/index.d.ts +35 -0
  183. package/lib/theme/index.js +78 -0
  184. package/lib/theme/shadows.d.ts +53 -0
  185. package/lib/theme/shadows.js +58 -0
  186. package/lib/theme/typography.d.ts +134 -0
  187. package/lib/theme/typography.js +143 -0
  188. package/lib/types/dataTypes.d.ts +34 -0
  189. package/lib/types/dataTypes.js +2 -0
  190. package/lib/types/workflowTypes.d.ts +2 -0
  191. package/lib/types/workflowTypes.js +2 -0
  192. package/lib/utils/apiLogger.d.ts +48 -0
  193. package/lib/utils/apiLogger.js +105 -0
  194. package/lib/utils/encryption.d.ts +28 -0
  195. package/lib/utils/encryption.js +113 -0
  196. package/lib/utils/getFDData.d.ts +48 -0
  197. package/lib/utils/getFDData.js +145 -0
  198. package/lib/utils/globalData.d.ts +2 -0
  199. package/lib/utils/globalData.js +10 -0
  200. package/package.json +51 -0
  201. package/src/api/applicationApi.ts +12 -0
  202. package/src/api/bankApi.ts +42 -0
  203. package/src/api/baseApi.ts +463 -0
  204. package/src/api/customerApi.ts +324 -0
  205. package/src/api/fdApi.ts +150 -0
  206. package/src/api/fdCalculatorApi.ts +41 -0
  207. package/src/api/index.ts +29 -0
  208. package/src/api/interestRateApi.ts +143 -0
  209. package/src/api/kycApi.ts +63 -0
  210. package/src/api/masterDataApi.ts +37 -0
  211. package/src/api/nomineeApi.ts +34 -0
  212. package/src/api/onboardingApi.ts +64 -0
  213. package/src/api/panApi.ts +25 -0
  214. package/src/api/paymentApi.ts +34 -0
  215. package/src/api/workflowApi.ts +94 -0
  216. package/src/assets/images/Mahindra.png +0 -0
  217. package/src/assets/images/arrow-filled.png +0 -0
  218. package/src/assets/images/arrow-left.png +0 -0
  219. package/src/assets/images/backicon.png +0 -0
  220. package/src/assets/images/calendar.png +0 -0
  221. package/src/assets/images/chevron-down.png +0 -0
  222. package/src/assets/images/chevron-down@2x.png +0 -0
  223. package/src/assets/images/chevron-down@3x.png +0 -0
  224. package/src/assets/images/images.js +10 -0
  225. package/src/assets/images/shriram_logo.png +0 -0
  226. package/src/components/AadhaarInput.tsx +91 -0
  227. package/src/components/ActionButton.tsx +129 -0
  228. package/src/components/ActiveFDCard.tsx +188 -0
  229. package/src/components/AmountInput.tsx +217 -0
  230. package/src/components/CheckboxOption.tsx +93 -0
  231. package/src/components/CompanyHeader.tsx +80 -0
  232. package/src/components/DropdownSelector.tsx +77 -0
  233. package/src/components/EmptyState.tsx +109 -0
  234. package/src/components/ErrorDisplay.tsx +135 -0
  235. package/src/components/FAQItem.tsx +90 -0
  236. package/src/components/FDCard.tsx +186 -0
  237. package/src/components/FormDropdown.tsx +214 -0
  238. package/src/components/FormSection.tsx +86 -0
  239. package/src/components/Header.tsx +110 -0
  240. package/src/components/IFSCSearchResultCard.tsx +139 -0
  241. package/src/components/InfoBox.tsx +55 -0
  242. package/src/components/InterestRateCard.tsx +77 -0
  243. package/src/components/LoadingIndicator.tsx +63 -0
  244. package/src/components/OTPInput.tsx +213 -0
  245. package/src/components/PaymentDetailsCard.tsx +120 -0
  246. package/src/components/PendingFDBottomSheet.tsx +237 -0
  247. package/src/components/README.md +210 -0
  248. package/src/components/SafeAreaWrapper.tsx +68 -0
  249. package/src/components/ScreenHeader.tsx +83 -0
  250. package/src/components/StatusDisplay.tsx +139 -0
  251. package/src/components/TextFieldWithLabel.tsx +502 -0
  252. package/src/components/TrustBox.tsx +63 -0
  253. package/src/components/ValidationErrorAlert.tsx +57 -0
  254. package/src/components/ValidationMessage.tsx +134 -0
  255. package/src/components/index.tsx +47 -0
  256. package/src/config/apiConfig.ts +217 -0
  257. package/src/config/appDataConfig.ts +358 -0
  258. package/src/config/encryptionConfig.ts +65 -0
  259. package/src/config/workflowConstants.ts +70 -0
  260. package/src/constants/strings/README.md +146 -0
  261. package/src/constants/strings/bank.ts +92 -0
  262. package/src/constants/strings/base64Images.ts +31 -0
  263. package/src/constants/strings/common.ts +63 -0
  264. package/src/constants/strings/employee.ts +85 -0
  265. package/src/constants/strings/faq.ts +23 -0
  266. package/src/constants/strings/fd.ts +172 -0
  267. package/src/constants/strings/home.ts +67 -0
  268. package/src/constants/strings/index.ts +21 -0
  269. package/src/constants/strings/kyc.ts +100 -0
  270. package/src/constants/strings/nominee.ts +90 -0
  271. package/src/hooks/useAuth.ts +42 -0
  272. package/src/hooks/useFDData.ts +48 -0
  273. package/src/index.tsx +139 -0
  274. package/src/navigation/RootNavigator.tsx +687 -0
  275. package/src/navigation/SimpleNavigator.tsx +123 -0
  276. package/src/navigation/helpers.ts +85 -0
  277. package/src/navigation/index.tsx +84 -0
  278. package/src/navigation/types.ts +146 -0
  279. package/src/navigation/workflowNavigator.ts +131 -0
  280. package/src/providers/ApiProvider.tsx +23 -0
  281. package/src/providers/MasterDataProvider.tsx +30 -0
  282. package/src/screens/AadhaarVerification.tsx +809 -0
  283. package/src/screens/AddBankAccount.tsx +541 -0
  284. package/src/screens/BankDetail.tsx +826 -0
  285. package/src/screens/Employee.tsx +822 -0
  286. package/src/screens/FDCalculator.tsx +1002 -0
  287. package/src/screens/FDList.tsx +2199 -0
  288. package/src/screens/FindIFSC.tsx +332 -0
  289. package/src/screens/NomineeDetail.tsx +800 -0
  290. package/src/screens/PayNow.tsx +282 -0
  291. package/src/screens/Payment.tsx +224 -0
  292. package/src/screens/PaymentStatus.tsx +595 -0
  293. package/src/screens/ReviewKYC.tsx +1062 -0
  294. package/src/state/paymentSession.ts +13 -0
  295. package/src/store/fdListSelectedSlice.ts +42 -0
  296. package/src/store/hooks.ts +6 -0
  297. package/src/store/index.ts +3 -0
  298. package/src/store/onboardingSlice.ts +37 -0
  299. package/src/store/store.ts +27 -0
  300. package/src/theme/ThemeContext.tsx +84 -0
  301. package/src/theme/colors.ts +90 -0
  302. package/src/theme/index.ts +85 -0
  303. package/src/theme/shadows.ts +61 -0
  304. package/src/theme/typography.ts +151 -0
  305. package/src/types/dataTypes.ts +37 -0
  306. package/src/types/env.d.ts +93 -0
  307. package/src/types/workflowTypes.ts +12 -0
  308. package/src/utils/apiLogger.ts +166 -0
  309. package/src/utils/encryption.ts +159 -0
  310. package/src/utils/getFDData.ts +165 -0
  311. package/src/utils/globalData.ts +7 -0
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // Central export file for all string constants
3
+ // This provides a single import point for all string literals used in the application
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.FAQ_STRINGS = exports.FD_STRINGS = exports.NOMINEE_STRINGS = exports.BANK_STRINGS = exports.EMPLOYEE_STRINGS = exports.KYC_STRINGS = exports.HOME_STRINGS = exports.COMMON_STRINGS = void 0;
20
+ var common_1 = require("./common");
21
+ Object.defineProperty(exports, "COMMON_STRINGS", { enumerable: true, get: function () { return common_1.COMMON_STRINGS; } });
22
+ var home_1 = require("./home");
23
+ Object.defineProperty(exports, "HOME_STRINGS", { enumerable: true, get: function () { return home_1.HOME_STRINGS; } });
24
+ var kyc_1 = require("./kyc");
25
+ Object.defineProperty(exports, "KYC_STRINGS", { enumerable: true, get: function () { return kyc_1.KYC_STRINGS; } });
26
+ var employee_1 = require("./employee");
27
+ Object.defineProperty(exports, "EMPLOYEE_STRINGS", { enumerable: true, get: function () { return employee_1.EMPLOYEE_STRINGS; } });
28
+ var bank_1 = require("./bank");
29
+ Object.defineProperty(exports, "BANK_STRINGS", { enumerable: true, get: function () { return bank_1.BANK_STRINGS; } });
30
+ var nominee_1 = require("./nominee");
31
+ Object.defineProperty(exports, "NOMINEE_STRINGS", { enumerable: true, get: function () { return nominee_1.NOMINEE_STRINGS; } });
32
+ var fd_1 = require("./fd");
33
+ Object.defineProperty(exports, "FD_STRINGS", { enumerable: true, get: function () { return fd_1.FD_STRINGS; } });
34
+ var faq_1 = require("./faq");
35
+ Object.defineProperty(exports, "FAQ_STRINGS", { enumerable: true, get: function () { return faq_1.FAQ_STRINGS; } });
36
+ // Re-export all strings as a single object for convenience
37
+ __exportStar(require("./common"), exports);
38
+ __exportStar(require("./home"), exports);
39
+ __exportStar(require("./kyc"), exports);
40
+ __exportStar(require("./employee"), exports);
41
+ __exportStar(require("./bank"), exports);
42
+ __exportStar(require("./nominee"), exports);
43
+ __exportStar(require("./fd"), exports);
44
+ __exportStar(require("./faq"), exports);
@@ -0,0 +1,80 @@
1
+ export declare const KYC_STRINGS: {
2
+ readonly REVIEW_KYC_TITLE: "Review KYC";
3
+ readonly AADHAAR_VERIFICATION_TITLE: "Aadhaar Verification";
4
+ readonly PAN_VERIFICATION_TITLE: "PAN Verification";
5
+ readonly DOCUMENT_VERIFICATION_TITLE: "Document Verification";
6
+ readonly PAN_CARD_LABEL: "Pan Card";
7
+ readonly DATE_OF_BIRTH_LABEL: "Date of Birth";
8
+ readonly MARITAL_STATUS_LABEL: "Marital Status";
9
+ readonly AREA_LABEL: "Area";
10
+ readonly CITY_LABEL: "City";
11
+ readonly ADDRESS_LINE1_LABEL: "Address Line 1";
12
+ readonly ADDRESS_LINE2_LABEL: "Address Line 2";
13
+ readonly PINCODE_LABEL: "Pincode";
14
+ readonly STATE_LABEL: "State";
15
+ readonly COUNTRY_LABEL: "Country";
16
+ readonly AADHAAR_NUMBER_LABEL: "Aadhaar Number";
17
+ readonly AADHAAR_CARD_LABEL: "Aadhaar Card";
18
+ readonly OTP_LABEL: "OTP";
19
+ readonly PAN_CARD_PLACEHOLDER: "Enter PAN Card";
20
+ readonly DATE_OF_BIRTH_PLACEHOLDER: "Select Date of Birth";
21
+ readonly MARITAL_STATUS_PLACEHOLDER: "Select Marital Status";
22
+ readonly AREA_PLACEHOLDER: "Enter Area";
23
+ readonly CITY_PLACEHOLDER: "Enter City";
24
+ readonly ADDRESS_LINE1_PLACEHOLDER: "Enter Address Line 1";
25
+ readonly ADDRESS_LINE2_PLACEHOLDER: "Enter Address Line 2";
26
+ readonly PINCODE_PLACEHOLDER: "Enter Pincode";
27
+ readonly STATE_PLACEHOLDER: "Enter State";
28
+ readonly COUNTRY_PLACEHOLDER: "Enter Country";
29
+ readonly AADHAAR_NUMBER_PLACEHOLDER: "Enter Aadhaar Number";
30
+ readonly OTP_PLACEHOLDER: "Enter OTP";
31
+ readonly MARITAL_STATUS_SINGLE: "Single";
32
+ readonly MARITAL_STATUS_MARRIED: "Married";
33
+ readonly MARITAL_STATUS_DIVORCED: "Divorced";
34
+ readonly MARITAL_STATUS_WIDOWED: "Widowed";
35
+ readonly VERIFY_AADHAAR_BUTTON: "Verify Aadhaar";
36
+ readonly VERIFY_OTP_BUTTON: "Verify OTP";
37
+ readonly RESEND_OTP_BUTTON: "Resend OTP";
38
+ readonly SEND_OTP_BUTTON: "Send OTP";
39
+ readonly AADHAAR_VERIFICATION_SUCCESS: "Aadhaar verified successfully";
40
+ readonly AADHAAR_VERIFICATION_FAILED: "Aadhaar verification failed";
41
+ readonly AADHAAR_ALREADY_VERIFIED: "Aadhaar already verified";
42
+ readonly AADHAAR_NUMBER_VERIFIED: "Aadhaar number verified.";
43
+ readonly PAN_VERIFICATION_SUCCESS: "PAN verified successfully";
44
+ readonly PAN_VERIFICATION_FAILED: "PAN verification failed";
45
+ readonly OTP_SENT_SUCCESS: "OTP sent successfully";
46
+ readonly OTP_VERIFICATION_SUCCESS: "OTP verified successfully";
47
+ readonly OTP_VERIFICATION_FAILED: "OTP verification failed";
48
+ readonly KYC_COMPLETED: "KYC completed successfully";
49
+ readonly KYC_PENDING: "KYC verification pending";
50
+ readonly SENDING_OTP: "Sending OTP...";
51
+ readonly VERIFYING_OTP: "Verifying OTP...";
52
+ readonly RESENDING_OTP: "Resending OTP...";
53
+ readonly INVALID_PAN: "Invalid PAN number";
54
+ readonly INVALID_AADHAAR: "Invalid Aadhaar number";
55
+ readonly INVALID_OTP: "Invalid OTP";
56
+ readonly INVALID_OR_EXPIRED_OTP: "Invalid or expired OTP. Please try again.";
57
+ readonly OTP_EXPIRED: "OTP has expired";
58
+ readonly VERIFICATION_FAILED: "Verification failed";
59
+ readonly DOCUMENT_UPLOAD_FAILED: "Document upload failed";
60
+ readonly AADHAAR_ERROR_GENERIC: "Something went wrong, check your Aadhaar number and try again.";
61
+ readonly RESEND_OTP_FAILED: "Failed to resend OTP. Please try again.";
62
+ readonly FAILED_TO_PROCEED: "Failed to proceed. Please try again.";
63
+ readonly PAN_REQUIRED: "PAN number is required";
64
+ readonly AADHAAR_REQUIRED: "Aadhaar number is required";
65
+ readonly AADHAAR_MUST_BE_12_DIGITS: "Aadhaar number must be 12 digits";
66
+ readonly OTP_REQUIRED: "OTP is required";
67
+ readonly OTP_INCOMPLETE: "Please enter the complete 6-digit OTP";
68
+ readonly DATE_OF_BIRTH_REQUIRED: "Date of birth is required";
69
+ readonly MARITAL_STATUS_REQUIRED: "Marital status is required";
70
+ readonly ADDRESS_REQUIRED: "Address is required";
71
+ readonly PINCODE_REQUIRED: "Pincode is required";
72
+ readonly VERIFICATION_IN_PROGRESS: "Verification in progress...";
73
+ readonly DOCUMENT_UNDER_REVIEW: "Document under review";
74
+ readonly VERIFICATION_COMPLETED: "Verification completed";
75
+ readonly VERIFICATION_REJECTED: "Verification rejected";
76
+ readonly AADHAAR_INSTRUCTIONS: "Please enter your 12-digit Aadhaar number";
77
+ readonly PAN_INSTRUCTIONS: "Please enter your 10-character PAN number";
78
+ readonly OTP_INSTRUCTIONS: "Please enter the OTP sent to your registered mobile number";
79
+ readonly DOCUMENT_INSTRUCTIONS: "Please upload clear images of your documents";
80
+ };
@@ -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, "fdsdkApi", 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,48 @@
1
+ import 'react-native-get-random-values';
2
+ export declare const FDList: import("react").FC<import("./screens/FDList").FDListProps>;
3
+ export declare const PendingFDBottomSheet: import("react").FC<import("./components/PendingFDBottomSheet").PendingFDBottomSheetProps>;
4
+ export type { FDListProps } from './screens/FDList';
5
+ import { SDKNavigationContainer, SimpleNavigator } from './navigation';
6
+ export { SDKNavigationContainer, SimpleNavigator };
7
+ export { SDKNavigationContainer as FDSDKNavigator };
8
+ export * from './theme';
9
+ export { ThemeProvider, useTheme, useColors, useTypography, useShadows, useSpacing } from './theme/ThemeContext';
10
+ export * from './api';
11
+ export { ApiProvider } from './providers/ApiProvider';
12
+ export { MasterDataProvider, useMasterData } from './providers/MasterDataProvider';
13
+ export { useFDData } from './hooks/useFDData';
14
+ export { useAuth } from './hooks/useAuth';
15
+ export { store, useAppDispatch, useAppSelector } from './store';
16
+ export * from './utils/encryption';
17
+ export { getEncryptionConfig, getEncryptionConfigs, getEnvironmentConfig as getEncryptionEnvironmentConfig, validateEncryptionConfig } from './config/encryptionConfig';
18
+ export * from './config/apiConfig';
19
+ export { debugApiConfig, debugApiCall, logEnvironmentInfo } from './config/apiConfig';
20
+ export { initializeSDK, getAppData, isSDKInitialized, getUserInfoForAPI, getUserDemographics, validateAppData, clearAppData, initializeEnvironment, getEnvironmentData, isEnvironmentInitialized, clearEnvironmentData, clearAllData, setSDKColors, getSDKColors, clearSDKColors, } from './config/appDataConfig';
21
+ export type { AppData, EnvironmentData, CustomColors } from './config/appDataConfig';
22
+ export { showValidationErrorAlert, validateAndProceed } from './components/ValidationErrorAlert';
23
+ export type { ValidationErrorAlertProps } from './components/ValidationErrorAlert';
24
+ export { WORKFLOW_STATES, WORKFLOW_TASKS, WORKFLOW_CONSTANTS, getWorkflowStateName, getWorkflowTaskName, } from './config/workflowConstants';
25
+ export type { WorkflowState, WorkflowTask } from './config/workflowConstants';
26
+ export { apiLogger, ApiLogger } from './utils/apiLogger';
27
+ export type { LogConfig, RequestLogData, ResponseLogData } from './utils/apiLogger';
28
+ export { toggleEncryption, isEncryptionEnabled, getCurrentApiConfig } from './api/baseApi';
29
+ export { getFDData } from './utils/getFDData';
30
+ export type { FDDataResponse } from './utils/getFDData';
31
+ import type { ThemeName, Theme } from './theme';
32
+ export interface SDKConfig {
33
+ apiBaseUrl?: string;
34
+ theme?: ThemeName | Theme;
35
+ environment?: 'development' | 'staging' | 'production';
36
+ }
37
+ export declare class FDSDK {
38
+ private config;
39
+ constructor(config?: SDKConfig);
40
+ getConfig(): SDKConfig;
41
+ updateConfig(newConfig: Partial<SDKConfig>): void;
42
+ static getVersion(): string;
43
+ static getPlatformInfo(): {
44
+ platform: string;
45
+ version: string;
46
+ };
47
+ }
48
+ export default FDSDK;