@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
package/README.md
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Shriram SDK
|
|
2
|
+
|
|
3
|
+
A React Native SDK for integrating Shriram financial services into your mobile applications.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- ✅ TypeScript support
|
|
8
|
+
- ✅ iOS and Android compatibility
|
|
9
|
+
- ✅ Home screen component
|
|
10
|
+
- ✅ Fixed Deposit booking functionality
|
|
11
|
+
- ✅ Customizable styling
|
|
12
|
+
- ✅ Modern React Native architecture
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### Using npm
|
|
17
|
+
```bash
|
|
18
|
+
npm install shriramsdk
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Using yarn
|
|
22
|
+
```bash
|
|
23
|
+
yarn add shriramsdk
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### iOS Setup
|
|
27
|
+
```bash
|
|
28
|
+
cd ios && pod install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
### Basic Implementation
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
import React from 'react';
|
|
37
|
+
import { View } from 'react-native';
|
|
38
|
+
import { Home, BookFD, ShriramSDK } from 'shriramsdk';
|
|
39
|
+
|
|
40
|
+
// Initialize SDK
|
|
41
|
+
const sdk = new ShriramSDK({
|
|
42
|
+
environment: 'production',
|
|
43
|
+
apiBaseUrl: 'https://api.shriram.com',
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const App = () => {
|
|
47
|
+
const [currentScreen, setCurrentScreen] = React.useState('home');
|
|
48
|
+
|
|
49
|
+
const handleNavigateToBookFD = () => {
|
|
50
|
+
setCurrentScreen('bookfd');
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const handleGoBack = () => {
|
|
54
|
+
setCurrentScreen('home');
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const handleBookingComplete = (data) => {
|
|
58
|
+
console.log('FD Booking Data:', data);
|
|
59
|
+
// Handle booking completion
|
|
60
|
+
setCurrentScreen('home');
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<View style={{ flex: 1 }}>
|
|
65
|
+
{currentScreen === 'home' && (
|
|
66
|
+
<Home onNavigateToBookFD={handleNavigateToBookFD} />
|
|
67
|
+
)}
|
|
68
|
+
{currentScreen === 'bookfd' && (
|
|
69
|
+
<BookFD
|
|
70
|
+
onGoBack={handleGoBack}
|
|
71
|
+
onBookingComplete={handleBookingComplete}
|
|
72
|
+
/>
|
|
73
|
+
)}
|
|
74
|
+
</View>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export default App;
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Custom Styling
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import { Home } from 'shriramsdk';
|
|
85
|
+
|
|
86
|
+
const customStyles = {
|
|
87
|
+
container: {
|
|
88
|
+
backgroundColor: '#your-color',
|
|
89
|
+
},
|
|
90
|
+
title: {
|
|
91
|
+
color: '#your-title-color',
|
|
92
|
+
fontSize: 24,
|
|
93
|
+
},
|
|
94
|
+
button: {
|
|
95
|
+
backgroundColor: '#your-button-color',
|
|
96
|
+
},
|
|
97
|
+
buttonText: {
|
|
98
|
+
color: '#your-text-color',
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
<Home
|
|
103
|
+
onNavigateToBookFD={handleNavigateToBookFD}
|
|
104
|
+
customStyles={customStyles}
|
|
105
|
+
/>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Components
|
|
109
|
+
|
|
110
|
+
### Home
|
|
111
|
+
|
|
112
|
+
The main landing screen component.
|
|
113
|
+
|
|
114
|
+
**Props:**
|
|
115
|
+
- `onNavigateToBookFD?: () => void` - Callback when user wants to book FD
|
|
116
|
+
- `customStyles?: object` - Custom styling options
|
|
117
|
+
|
|
118
|
+
### BookFD
|
|
119
|
+
|
|
120
|
+
Fixed deposit booking form component.
|
|
121
|
+
|
|
122
|
+
**Props:**
|
|
123
|
+
- `onBookingComplete?: (data: FDBookingData) => void` - Callback when booking is completed
|
|
124
|
+
- `onGoBack?: () => void` - Callback for back navigation
|
|
125
|
+
- `customStyles?: object` - Custom styling options
|
|
126
|
+
|
|
127
|
+
### FDBookingData Interface
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
interface FDBookingData {
|
|
131
|
+
amount: string;
|
|
132
|
+
tenure: string;
|
|
133
|
+
interestRate: string;
|
|
134
|
+
customerName: string;
|
|
135
|
+
mobileNumber: string;
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## SDK Configuration
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
import { ShriramSDK } from 'shriramsdk';
|
|
143
|
+
|
|
144
|
+
const sdk = new ShriramSDK({
|
|
145
|
+
apiBaseUrl: 'https://api.shriram.com',
|
|
146
|
+
environment: 'production', // 'development' | 'staging' | 'production'
|
|
147
|
+
theme: {
|
|
148
|
+
primaryColor: '#3498db',
|
|
149
|
+
secondaryColor: '#2c3e50',
|
|
150
|
+
backgroundColor: '#f5f5f5',
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
// Get current configuration
|
|
155
|
+
const config = sdk.getConfig();
|
|
156
|
+
|
|
157
|
+
// Update configuration
|
|
158
|
+
sdk.updateConfig({
|
|
159
|
+
environment: 'staging',
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
// Get SDK version
|
|
163
|
+
const version = ShriramSDK.getVersion();
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Platform Support
|
|
167
|
+
|
|
168
|
+
- **iOS**: 11.0+
|
|
169
|
+
- **Android**: API Level 21+
|
|
170
|
+
- **React Native**: 0.60+
|
|
171
|
+
|
|
172
|
+
## Requirements
|
|
173
|
+
|
|
174
|
+
- React Native 0.60 or higher
|
|
175
|
+
- iOS 11.0 or higher
|
|
176
|
+
- Android API level 21 or higher
|
|
177
|
+
|
|
178
|
+
## License
|
|
179
|
+
|
|
180
|
+
MIT
|
|
181
|
+
|
|
182
|
+
## Support
|
|
183
|
+
|
|
184
|
+
For support and questions, please contact our development team.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applicationApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, {}, "shriramApi", "InterestRate", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.applicationApi = void 0;
|
|
5
|
+
const baseApi_1 = require("./baseApi");
|
|
6
|
+
exports.applicationApi = baseApi_1.baseApi.injectEndpoints({
|
|
7
|
+
endpoints: (builder) => ({
|
|
8
|
+
// Add application endpoints here
|
|
9
|
+
}),
|
|
10
|
+
});
|
|
11
|
+
_a = exports.applicationApi;
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
export declare const bankApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, {
|
|
2
|
+
addBank: import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>;
|
|
3
|
+
getBankDetails: import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
4
|
+
providerId?: string;
|
|
5
|
+
workflowInstanceId?: string;
|
|
6
|
+
userreferenceid?: string;
|
|
7
|
+
applicationid?: string;
|
|
8
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>;
|
|
9
|
+
}, "shriramApi", "InterestRate", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
|
|
10
|
+
export declare const useAddBankMutation: <R extends Record<string, any> = ({
|
|
11
|
+
requestId?: undefined;
|
|
12
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
13
|
+
data?: undefined;
|
|
14
|
+
error?: undefined;
|
|
15
|
+
endpointName?: string;
|
|
16
|
+
startedTimeStamp?: undefined;
|
|
17
|
+
fulfilledTimeStamp?: undefined;
|
|
18
|
+
} & {
|
|
19
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
20
|
+
isUninitialized: true;
|
|
21
|
+
isLoading: false;
|
|
22
|
+
isSuccess: false;
|
|
23
|
+
isError: false;
|
|
24
|
+
}) | ({
|
|
25
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
26
|
+
} & Omit<{
|
|
27
|
+
requestId: string;
|
|
28
|
+
data?: any;
|
|
29
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
30
|
+
endpointName: string;
|
|
31
|
+
startedTimeStamp: number;
|
|
32
|
+
fulfilledTimeStamp?: number;
|
|
33
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
34
|
+
requestId: string;
|
|
35
|
+
data?: any;
|
|
36
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
37
|
+
endpointName: string;
|
|
38
|
+
startedTimeStamp: number;
|
|
39
|
+
fulfilledTimeStamp?: number;
|
|
40
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
41
|
+
error: undefined;
|
|
42
|
+
} & {
|
|
43
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
44
|
+
isUninitialized: false;
|
|
45
|
+
isLoading: false;
|
|
46
|
+
isSuccess: true;
|
|
47
|
+
isError: false;
|
|
48
|
+
}) | ({
|
|
49
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
50
|
+
} & {
|
|
51
|
+
requestId: string;
|
|
52
|
+
data?: any;
|
|
53
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
54
|
+
endpointName: string;
|
|
55
|
+
startedTimeStamp: number;
|
|
56
|
+
fulfilledTimeStamp?: number;
|
|
57
|
+
} & {
|
|
58
|
+
data?: undefined;
|
|
59
|
+
} & {
|
|
60
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
61
|
+
isUninitialized: false;
|
|
62
|
+
isLoading: true;
|
|
63
|
+
isSuccess: false;
|
|
64
|
+
isError: false;
|
|
65
|
+
}) | ({
|
|
66
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
67
|
+
} & Omit<{
|
|
68
|
+
requestId: string;
|
|
69
|
+
data?: any;
|
|
70
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
71
|
+
endpointName: string;
|
|
72
|
+
startedTimeStamp: number;
|
|
73
|
+
fulfilledTimeStamp?: number;
|
|
74
|
+
}, "error"> & Required<Pick<{
|
|
75
|
+
requestId: string;
|
|
76
|
+
data?: any;
|
|
77
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
78
|
+
endpointName: string;
|
|
79
|
+
startedTimeStamp: number;
|
|
80
|
+
fulfilledTimeStamp?: number;
|
|
81
|
+
}, "error">> & {
|
|
82
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
83
|
+
isUninitialized: false;
|
|
84
|
+
isLoading: false;
|
|
85
|
+
isSuccess: false;
|
|
86
|
+
isError: true;
|
|
87
|
+
})>(options?: {
|
|
88
|
+
selectFromResult?: ((state: ({
|
|
89
|
+
requestId?: undefined;
|
|
90
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
91
|
+
data?: undefined;
|
|
92
|
+
error?: undefined;
|
|
93
|
+
endpointName?: string;
|
|
94
|
+
startedTimeStamp?: undefined;
|
|
95
|
+
fulfilledTimeStamp?: undefined;
|
|
96
|
+
} & {
|
|
97
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
98
|
+
isUninitialized: true;
|
|
99
|
+
isLoading: false;
|
|
100
|
+
isSuccess: false;
|
|
101
|
+
isError: false;
|
|
102
|
+
}) | ({
|
|
103
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
104
|
+
} & Omit<{
|
|
105
|
+
requestId: string;
|
|
106
|
+
data?: any;
|
|
107
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
108
|
+
endpointName: string;
|
|
109
|
+
startedTimeStamp: number;
|
|
110
|
+
fulfilledTimeStamp?: number;
|
|
111
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
112
|
+
requestId: string;
|
|
113
|
+
data?: any;
|
|
114
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
115
|
+
endpointName: string;
|
|
116
|
+
startedTimeStamp: number;
|
|
117
|
+
fulfilledTimeStamp?: number;
|
|
118
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
119
|
+
error: undefined;
|
|
120
|
+
} & {
|
|
121
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.fulfilled;
|
|
122
|
+
isUninitialized: false;
|
|
123
|
+
isLoading: false;
|
|
124
|
+
isSuccess: true;
|
|
125
|
+
isError: false;
|
|
126
|
+
}) | ({
|
|
127
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
128
|
+
} & {
|
|
129
|
+
requestId: string;
|
|
130
|
+
data?: any;
|
|
131
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
132
|
+
endpointName: string;
|
|
133
|
+
startedTimeStamp: number;
|
|
134
|
+
fulfilledTimeStamp?: number;
|
|
135
|
+
} & {
|
|
136
|
+
data?: undefined;
|
|
137
|
+
} & {
|
|
138
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.pending;
|
|
139
|
+
isUninitialized: false;
|
|
140
|
+
isLoading: true;
|
|
141
|
+
isSuccess: false;
|
|
142
|
+
isError: false;
|
|
143
|
+
}) | ({
|
|
144
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
145
|
+
} & Omit<{
|
|
146
|
+
requestId: string;
|
|
147
|
+
data?: any;
|
|
148
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
149
|
+
endpointName: string;
|
|
150
|
+
startedTimeStamp: number;
|
|
151
|
+
fulfilledTimeStamp?: number;
|
|
152
|
+
}, "error"> & Required<Pick<{
|
|
153
|
+
requestId: string;
|
|
154
|
+
data?: any;
|
|
155
|
+
error?: import("@reduxjs/toolkit/query").FetchBaseQueryError | import("@reduxjs/toolkit").SerializedError | undefined;
|
|
156
|
+
endpointName: string;
|
|
157
|
+
startedTimeStamp: number;
|
|
158
|
+
fulfilledTimeStamp?: number;
|
|
159
|
+
}, "error">> & {
|
|
160
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.rejected;
|
|
161
|
+
isUninitialized: false;
|
|
162
|
+
isLoading: false;
|
|
163
|
+
isSuccess: false;
|
|
164
|
+
isError: true;
|
|
165
|
+
})) => R) | undefined;
|
|
166
|
+
fixedCacheKey?: string;
|
|
167
|
+
} | undefined) => readonly [(arg: any) => import("@reduxjs/toolkit/query").MutationActionCreatorResult<import("@reduxjs/toolkit/query").MutationDefinition<any, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>>, import("@reduxjs/toolkit/query").TSHelpersNoInfer<R> & {
|
|
168
|
+
originalArgs?: any;
|
|
169
|
+
reset: () => void;
|
|
170
|
+
}], useGetBankDetailsQuery: <R extends Record<string, any> = import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
171
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
172
|
+
originalArgs?: undefined | undefined;
|
|
173
|
+
data?: undefined | undefined;
|
|
174
|
+
error?: undefined | undefined;
|
|
175
|
+
requestId?: undefined | undefined;
|
|
176
|
+
endpointName?: string | undefined;
|
|
177
|
+
startedTimeStamp?: undefined | undefined;
|
|
178
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
179
|
+
} & {
|
|
180
|
+
currentData?: any;
|
|
181
|
+
isUninitialized: false;
|
|
182
|
+
isLoading: false;
|
|
183
|
+
isFetching: false;
|
|
184
|
+
isSuccess: false;
|
|
185
|
+
isError: false;
|
|
186
|
+
}, "isUninitialized"> & {
|
|
187
|
+
isUninitialized: true;
|
|
188
|
+
}) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
189
|
+
providerId?: string;
|
|
190
|
+
workflowInstanceId?: string;
|
|
191
|
+
userreferenceid?: string;
|
|
192
|
+
applicationid?: string;
|
|
193
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
194
|
+
currentData?: any;
|
|
195
|
+
isUninitialized: false;
|
|
196
|
+
isLoading: false;
|
|
197
|
+
isFetching: false;
|
|
198
|
+
isSuccess: false;
|
|
199
|
+
isError: false;
|
|
200
|
+
}, {
|
|
201
|
+
isLoading: true;
|
|
202
|
+
isFetching: boolean;
|
|
203
|
+
data: undefined;
|
|
204
|
+
} | ({
|
|
205
|
+
isSuccess: true;
|
|
206
|
+
isFetching: true;
|
|
207
|
+
error: undefined;
|
|
208
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
209
|
+
providerId?: string;
|
|
210
|
+
workflowInstanceId?: string;
|
|
211
|
+
userreferenceid?: string;
|
|
212
|
+
applicationid?: string;
|
|
213
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
214
|
+
currentData?: any;
|
|
215
|
+
isUninitialized: false;
|
|
216
|
+
isLoading: false;
|
|
217
|
+
isFetching: false;
|
|
218
|
+
isSuccess: false;
|
|
219
|
+
isError: false;
|
|
220
|
+
}, "data" | "fulfilledTimeStamp">>) | ({
|
|
221
|
+
isSuccess: true;
|
|
222
|
+
isFetching: false;
|
|
223
|
+
error: undefined;
|
|
224
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
225
|
+
providerId?: string;
|
|
226
|
+
workflowInstanceId?: string;
|
|
227
|
+
userreferenceid?: string;
|
|
228
|
+
applicationid?: string;
|
|
229
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
230
|
+
currentData?: any;
|
|
231
|
+
isUninitialized: false;
|
|
232
|
+
isLoading: false;
|
|
233
|
+
isFetching: false;
|
|
234
|
+
isSuccess: false;
|
|
235
|
+
isError: false;
|
|
236
|
+
}, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
|
|
237
|
+
isError: true;
|
|
238
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
239
|
+
providerId?: string;
|
|
240
|
+
workflowInstanceId?: string;
|
|
241
|
+
userreferenceid?: string;
|
|
242
|
+
applicationid?: string;
|
|
243
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
244
|
+
currentData?: any;
|
|
245
|
+
isUninitialized: false;
|
|
246
|
+
isLoading: false;
|
|
247
|
+
isFetching: false;
|
|
248
|
+
isSuccess: false;
|
|
249
|
+
isError: false;
|
|
250
|
+
}, "error">>)>> & {
|
|
251
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
252
|
+
}>(arg: void | typeof import("@reduxjs/toolkit/query").skipToken | {
|
|
253
|
+
providerId?: string;
|
|
254
|
+
workflowInstanceId?: string;
|
|
255
|
+
userreferenceid?: string;
|
|
256
|
+
applicationid?: string;
|
|
257
|
+
}, options?: (import("@reduxjs/toolkit/query").SubscriptionOptions & {
|
|
258
|
+
skip?: boolean;
|
|
259
|
+
refetchOnMountOrArgChange?: boolean | number;
|
|
260
|
+
} & {
|
|
261
|
+
skip?: boolean;
|
|
262
|
+
selectFromResult?: ((state: import("@reduxjs/toolkit/query").TSHelpersId<(Omit<{
|
|
263
|
+
status: import("@reduxjs/toolkit/query").QueryStatus.uninitialized;
|
|
264
|
+
originalArgs?: undefined | undefined;
|
|
265
|
+
data?: undefined | undefined;
|
|
266
|
+
error?: undefined | undefined;
|
|
267
|
+
requestId?: undefined | undefined;
|
|
268
|
+
endpointName?: string | undefined;
|
|
269
|
+
startedTimeStamp?: undefined | undefined;
|
|
270
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
271
|
+
} & {
|
|
272
|
+
currentData?: any;
|
|
273
|
+
isUninitialized: false;
|
|
274
|
+
isLoading: false;
|
|
275
|
+
isFetching: false;
|
|
276
|
+
isSuccess: false;
|
|
277
|
+
isError: false;
|
|
278
|
+
}, "isUninitialized"> & {
|
|
279
|
+
isUninitialized: true;
|
|
280
|
+
}) | import("@reduxjs/toolkit/query").TSHelpersOverride<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
281
|
+
providerId?: string;
|
|
282
|
+
workflowInstanceId?: string;
|
|
283
|
+
userreferenceid?: string;
|
|
284
|
+
applicationid?: string;
|
|
285
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
286
|
+
currentData?: any;
|
|
287
|
+
isUninitialized: false;
|
|
288
|
+
isLoading: false;
|
|
289
|
+
isFetching: false;
|
|
290
|
+
isSuccess: false;
|
|
291
|
+
isError: false;
|
|
292
|
+
}, {
|
|
293
|
+
isLoading: true;
|
|
294
|
+
isFetching: boolean;
|
|
295
|
+
data: undefined;
|
|
296
|
+
} | ({
|
|
297
|
+
isSuccess: true;
|
|
298
|
+
isFetching: true;
|
|
299
|
+
error: undefined;
|
|
300
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
301
|
+
providerId?: string;
|
|
302
|
+
workflowInstanceId?: string;
|
|
303
|
+
userreferenceid?: string;
|
|
304
|
+
applicationid?: string;
|
|
305
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
306
|
+
currentData?: any;
|
|
307
|
+
isUninitialized: false;
|
|
308
|
+
isLoading: false;
|
|
309
|
+
isFetching: false;
|
|
310
|
+
isSuccess: false;
|
|
311
|
+
isError: false;
|
|
312
|
+
}, "data" | "fulfilledTimeStamp">>) | ({
|
|
313
|
+
isSuccess: true;
|
|
314
|
+
isFetching: false;
|
|
315
|
+
error: undefined;
|
|
316
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
317
|
+
providerId?: string;
|
|
318
|
+
workflowInstanceId?: string;
|
|
319
|
+
userreferenceid?: string;
|
|
320
|
+
applicationid?: string;
|
|
321
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
322
|
+
currentData?: any;
|
|
323
|
+
isUninitialized: false;
|
|
324
|
+
isLoading: false;
|
|
325
|
+
isFetching: false;
|
|
326
|
+
isSuccess: false;
|
|
327
|
+
isError: false;
|
|
328
|
+
}, "data" | "fulfilledTimeStamp" | "currentData">>) | ({
|
|
329
|
+
isError: true;
|
|
330
|
+
} & Required<Pick<import("@reduxjs/toolkit/query").QuerySubState<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
331
|
+
providerId?: string;
|
|
332
|
+
workflowInstanceId?: string;
|
|
333
|
+
userreferenceid?: string;
|
|
334
|
+
applicationid?: string;
|
|
335
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>> & {
|
|
336
|
+
currentData?: any;
|
|
337
|
+
isUninitialized: false;
|
|
338
|
+
isLoading: false;
|
|
339
|
+
isFetching: false;
|
|
340
|
+
isSuccess: false;
|
|
341
|
+
isError: false;
|
|
342
|
+
}, "error">>)>> & {
|
|
343
|
+
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
344
|
+
}) => R) | undefined;
|
|
345
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
346
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<void | {
|
|
347
|
+
providerId?: string;
|
|
348
|
+
workflowInstanceId?: string;
|
|
349
|
+
userreferenceid?: string;
|
|
350
|
+
applicationid?: string;
|
|
351
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError>, "InterestRate", any, "shriramApi", unknown>>;
|
|
352
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.useGetBankDetailsQuery = exports.useAddBankMutation = exports.bankApi = void 0;
|
|
15
|
+
const baseApi_1 = require("./baseApi");
|
|
16
|
+
exports.bankApi = baseApi_1.baseApi.injectEndpoints({
|
|
17
|
+
endpoints: (builder) => ({
|
|
18
|
+
addBank: builder.mutation({
|
|
19
|
+
query: (body) => {
|
|
20
|
+
const { providerId, workflowInstanceId, userreferenceid, applicationid } = body, requestBody = __rest(body, ["providerId", "workflowInstanceId", "userreferenceid", "applicationid"]);
|
|
21
|
+
return {
|
|
22
|
+
url: 'bank/add',
|
|
23
|
+
method: 'POST',
|
|
24
|
+
body: requestBody,
|
|
25
|
+
headers: {
|
|
26
|
+
provider: providerId || '{{shriramprovider}}',
|
|
27
|
+
workflowInstanceId: workflowInstanceId || '{{workflowInstanceId}}',
|
|
28
|
+
userreferenceid: userreferenceid || '{{userreferenceid}}',
|
|
29
|
+
applicationid: applicationid || '{{applicationid}}',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
getBankDetails: builder.query({
|
|
35
|
+
query: (args) => {
|
|
36
|
+
const providerId = args === null || args === void 0 ? void 0 : args.providerId;
|
|
37
|
+
const workflowInstanceId = args === null || args === void 0 ? void 0 : args.workflowInstanceId;
|
|
38
|
+
const userreferenceid = args === null || args === void 0 ? void 0 : args.userreferenceid;
|
|
39
|
+
const applicationid = args === null || args === void 0 ? void 0 : args.applicationid;
|
|
40
|
+
return {
|
|
41
|
+
url: 'bank/details',
|
|
42
|
+
method: 'GET',
|
|
43
|
+
headers: {
|
|
44
|
+
provider: providerId || '{{shriramprovider}}',
|
|
45
|
+
workflowInstanceId: workflowInstanceId || '{{workflowInstanceId}}',
|
|
46
|
+
userreferenceid: userreferenceid || '{{userreferenceid}}',
|
|
47
|
+
applicationid: applicationid || '{{applicationid}}',
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
}),
|
|
53
|
+
});
|
|
54
|
+
exports.useAddBankMutation = exports.bankApi.useAddBankMutation, exports.useGetBankDetailsQuery = exports.bankApi.useGetBankDetailsQuery;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BaseQueryFn, FetchArgs, FetchBaseQueryError } from '@reduxjs/toolkit/query';
|
|
2
|
+
export declare const toggleEncryption: (enable?: boolean) => boolean;
|
|
3
|
+
export declare const isEncryptionEnabled: () => boolean;
|
|
4
|
+
export declare const getCurrentApiConfig: () => any;
|
|
5
|
+
export declare const setSDKStoreRef: (store: any) => void;
|
|
6
|
+
export declare const getSDKStoreRef: () => any;
|
|
7
|
+
export declare const baseApi: import("@reduxjs/toolkit/query").Api<BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, {}, "shriramApi", "InterestRate", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
|
8
|
+
export declare const usePrefetch: <EndpointName extends never>(endpointName: EndpointName, options?: import("@reduxjs/toolkit/query").PrefetchOptions) => (arg: import("@reduxjs/toolkit/query").QueryArgFrom<{}[EndpointName]>, options?: import("@reduxjs/toolkit/query").PrefetchOptions) => void;
|