@crediblex.io/fineract-api-client 0.1.6
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/dist/api/fineract-creditlines-api.d.ts +95 -0
- package/dist/api/fineract-creditlines-api.d.ts.map +1 -0
- package/dist/api/fineract-creditlines-api.js +196 -0
- package/dist/api/fineract-creditlines-api.js.map +1 -0
- package/dist/api/fineract-datatable-api.d.ts +64 -0
- package/dist/api/fineract-datatable-api.d.ts.map +1 -0
- package/dist/api/fineract-datatable-api.js +146 -0
- package/dist/api/fineract-datatable-api.js.map +1 -0
- package/dist/api/fineract-holidays-api.d.ts +29 -0
- package/dist/api/fineract-holidays-api.d.ts.map +1 -0
- package/dist/api/fineract-holidays-api.js +57 -0
- package/dist/api/fineract-holidays-api.js.map +1 -0
- package/dist/api/fineract-loanproducts-api.d.ts +57 -0
- package/dist/api/fineract-loanproducts-api.d.ts.map +1 -0
- package/dist/api/fineract-loanproducts-api.js +140 -0
- package/dist/api/fineract-loanproducts-api.js.map +1 -0
- package/dist/api/fineract-loansaccounts-api.d.ts +77 -0
- package/dist/api/fineract-loansaccounts-api.d.ts.map +1 -0
- package/dist/api/fineract-loansaccounts-api.js +209 -0
- package/dist/api/fineract-loansaccounts-api.js.map +1 -0
- package/dist/api/fineract-reports-api.d.ts +33 -0
- package/dist/api/fineract-reports-api.d.ts.map +1 -0
- package/dist/api/fineract-reports-api.js +94 -0
- package/dist/api/fineract-reports-api.js.map +1 -0
- package/dist/api/fineract-savingsaccounts-api.d.ts +59 -0
- package/dist/api/fineract-savingsaccounts-api.d.ts.map +1 -0
- package/dist/api/fineract-savingsaccounts-api.js +141 -0
- package/dist/api/fineract-savingsaccounts-api.js.map +1 -0
- package/dist/api/fineract-savingsproducts-api.d.ts +86 -0
- package/dist/api/fineract-savingsproducts-api.d.ts.map +1 -0
- package/dist/api/fineract-savingsproducts-api.js +184 -0
- package/dist/api/fineract-savingsproducts-api.js.map +1 -0
- package/dist/api/fineract-sme-api.d.ts +39 -0
- package/dist/api/fineract-sme-api.d.ts.map +1 -0
- package/dist/api/fineract-sme-api.js +82 -0
- package/dist/api/fineract-sme-api.js.map +1 -0
- package/dist/api/fineract-workingdays-api.d.ts +28 -0
- package/dist/api/fineract-workingdays-api.d.ts.map +1 -0
- package/dist/api/fineract-workingdays-api.js +84 -0
- package/dist/api/fineract-workingdays-api.js.map +1 -0
- package/dist/examples/run-examples.d.ts +2 -0
- package/dist/examples/run-examples.d.ts.map +1 -0
- package/dist/examples/run-examples.js +868 -0
- package/dist/examples/run-examples.js.map +1 -0
- package/dist/fineract-sdk.d.ts +50 -0
- package/dist/fineract-sdk.d.ts.map +1 -0
- package/dist/fineract-sdk.js +55 -0
- package/dist/fineract-sdk.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/types/creditlines.d.ts +271 -0
- package/dist/types/creditlines.d.ts.map +1 -0
- package/dist/types/creditlines.js +3 -0
- package/dist/types/creditlines.js.map +1 -0
- package/dist/types/datatable.d.ts +36 -0
- package/dist/types/datatable.d.ts.map +1 -0
- package/dist/types/datatable.js +3 -0
- package/dist/types/datatable.js.map +1 -0
- package/dist/types/errors.d.ts +7 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +17 -0
- package/dist/types/errors.js.map +1 -0
- package/dist/types/holidays.d.ts +32 -0
- package/dist/types/holidays.d.ts.map +1 -0
- package/dist/types/holidays.js +3 -0
- package/dist/types/holidays.js.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +25 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/loanproducts.d.ts +1 -0
- package/dist/types/loanproducts.d.ts.map +1 -0
- package/dist/types/loanproducts.js +2 -0
- package/dist/types/loanproducts.js.map +1 -0
- package/dist/types/loansaccounts.d.ts +195 -0
- package/dist/types/loansaccounts.d.ts.map +1 -0
- package/dist/types/loansaccounts.js +3 -0
- package/dist/types/loansaccounts.js.map +1 -0
- package/dist/types/reports.d.ts +49 -0
- package/dist/types/reports.d.ts.map +1 -0
- package/dist/types/reports.js +4 -0
- package/dist/types/reports.js.map +1 -0
- package/dist/types/savingsaccounts.d.ts +145 -0
- package/dist/types/savingsaccounts.d.ts.map +1 -0
- package/dist/types/savingsaccounts.js +3 -0
- package/dist/types/savingsaccounts.js.map +1 -0
- package/dist/types/savingsproducts.d.ts +83 -0
- package/dist/types/savingsproducts.d.ts.map +1 -0
- package/dist/types/savingsproducts.js +3 -0
- package/dist/types/savingsproducts.js.map +1 -0
- package/dist/types/sme.d.ts +68 -0
- package/dist/types/sme.d.ts.map +1 -0
- package/dist/types/sme.js +3 -0
- package/dist/types/sme.js.map +1 -0
- package/dist/types/workingdays.d.ts +41 -0
- package/dist/types/workingdays.d.ts.map +1 -0
- package/dist/types/workingdays.js +3 -0
- package/dist/types/workingdays.js.map +1 -0
- package/dist/utils/http-client.d.ts +29 -0
- package/dist/utils/http-client.d.ts.map +1 -0
- package/dist/utils/http-client.js +93 -0
- package/dist/utils/http-client.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holidays.d.ts","sourceRoot":"","sources":["../../src/types/holidays.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,MAAM,EAAE,aAAa,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,EAAE,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holidays.js","sourceRoot":"","sources":["../../src/types/holidays.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./sme"), exports);
|
|
18
|
+
__exportStar(require("./savingsaccounts"), exports);
|
|
19
|
+
__exportStar(require("./reports"), exports);
|
|
20
|
+
__exportStar(require("./holidays"), exports);
|
|
21
|
+
__exportStar(require("./workingdays"), exports);
|
|
22
|
+
__exportStar(require("./creditlines"), exports);
|
|
23
|
+
// If you have other type files, export them here as well
|
|
24
|
+
// export * from './common'; // For example, if you add a common types file
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,oDAAkC;AAClC,4CAA0B;AAC1B,6CAA2B;AAC3B,gDAA8B;AAC9B,gDAA8B;AAC9B,yDAAyD;AACzD,2EAA2E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=loanproducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loanproducts.d.ts","sourceRoot":"","sources":["../../src/types/loanproducts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loanproducts.js","sourceRoot":"","sources":["../../src/types/loanproducts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for the loan repayment schedule calculation request payload.
|
|
3
|
+
* Used with the getRepaymentSchedule method in FineractLoansAccountsApi.
|
|
4
|
+
*/
|
|
5
|
+
export interface CalculateLoanRepaymentScheduleRequest {
|
|
6
|
+
productId: number;
|
|
7
|
+
loanOfficerId?: string;
|
|
8
|
+
loanPurposeId?: string;
|
|
9
|
+
fundId?: string;
|
|
10
|
+
submittedOnDate: string;
|
|
11
|
+
expectedDisbursementDate: string;
|
|
12
|
+
externalId?: string;
|
|
13
|
+
linkAccountId?: string;
|
|
14
|
+
createStandingInstructionAtDisbursement?: boolean;
|
|
15
|
+
loanTermFrequency: number;
|
|
16
|
+
loanTermFrequencyType: number;
|
|
17
|
+
numberOfRepayments: number;
|
|
18
|
+
repaymentEvery: number;
|
|
19
|
+
repaymentFrequencyType: number;
|
|
20
|
+
repaymentFrequencyNthDayType?: string;
|
|
21
|
+
repaymentFrequencyDayOfWeekType?: string;
|
|
22
|
+
repaymentsStartingFromDate?: string | null;
|
|
23
|
+
interestChargedFromDate?: string | null;
|
|
24
|
+
interestType: number;
|
|
25
|
+
isEqualAmortization?: boolean;
|
|
26
|
+
amortizationType: number;
|
|
27
|
+
interestCalculationPeriodType: number;
|
|
28
|
+
loanIdToClose?: string;
|
|
29
|
+
isTopup?: string;
|
|
30
|
+
transactionProcessingStrategyCode: string;
|
|
31
|
+
interestRateFrequencyType?: number;
|
|
32
|
+
interestRatePerPeriod: number;
|
|
33
|
+
charges?: any[];
|
|
34
|
+
collateral?: any[];
|
|
35
|
+
dateFormat: string;
|
|
36
|
+
locale: string;
|
|
37
|
+
clientId: number;
|
|
38
|
+
loanType: string;
|
|
39
|
+
principal?: number;
|
|
40
|
+
allowPartialPeriodInterestCalcualtion?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Interface for the loan repayment schedule calculation response.
|
|
44
|
+
* Returned by the getRepaymentSchedule method in FineractLoansAccountsApi.
|
|
45
|
+
*/
|
|
46
|
+
export interface CalculateLoanRepaymentScheduleResponse {
|
|
47
|
+
currency: {
|
|
48
|
+
code: string;
|
|
49
|
+
name: string;
|
|
50
|
+
decimalPlaces: number;
|
|
51
|
+
inMultiplesOf: number;
|
|
52
|
+
displaySymbol: string;
|
|
53
|
+
nameCode: string;
|
|
54
|
+
displayLabel: string;
|
|
55
|
+
};
|
|
56
|
+
loanTermInDays: number;
|
|
57
|
+
totalPrincipalDisbursed: number;
|
|
58
|
+
totalPrincipalExpected: number;
|
|
59
|
+
totalPrincipalPaid: number;
|
|
60
|
+
totalInterestCharged: number;
|
|
61
|
+
totalFeeChargesCharged: number;
|
|
62
|
+
totalPenaltyChargesCharged: number;
|
|
63
|
+
totalRepaymentExpected: number;
|
|
64
|
+
totalOutstanding: number;
|
|
65
|
+
totalCredits: number;
|
|
66
|
+
periods: LoanRepaymentPeriod[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Interface for individual loan repayment periods in the schedule.
|
|
70
|
+
*/
|
|
71
|
+
export interface LoanRepaymentPeriod {
|
|
72
|
+
period?: number;
|
|
73
|
+
fromDate?: [number, number, number];
|
|
74
|
+
dueDate: [number, number, number];
|
|
75
|
+
daysInPeriod?: number;
|
|
76
|
+
principalOriginalDue?: number;
|
|
77
|
+
principalDue?: number;
|
|
78
|
+
principalOutstanding?: number;
|
|
79
|
+
principalDisbursed?: number;
|
|
80
|
+
principalLoanBalanceOutstanding: number;
|
|
81
|
+
interestOriginalDue?: number;
|
|
82
|
+
interestDue?: number;
|
|
83
|
+
interestOutstanding?: number;
|
|
84
|
+
feeChargesDue: number;
|
|
85
|
+
feeChargesOutstanding: number;
|
|
86
|
+
penaltyChargesDue?: number;
|
|
87
|
+
penaltyChargesOutstanding?: number;
|
|
88
|
+
totalOriginalDueForPeriod: number;
|
|
89
|
+
totalDueForPeriod: number;
|
|
90
|
+
totalOutstandingForPeriod: number;
|
|
91
|
+
totalOverdue?: number;
|
|
92
|
+
totalActualCostOfLoanForPeriod: number;
|
|
93
|
+
totalInstallmentAmountForPeriod?: number;
|
|
94
|
+
downPaymentPeriod: boolean;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Interface for creating a new loan account in Fineract.
|
|
98
|
+
*/
|
|
99
|
+
export interface CreateLoanAccountRequest {
|
|
100
|
+
productId: number;
|
|
101
|
+
loanOfficerId?: string;
|
|
102
|
+
loanPurposeId?: string;
|
|
103
|
+
fundId?: string;
|
|
104
|
+
submittedOnDate: string;
|
|
105
|
+
expectedDisbursementDate: string;
|
|
106
|
+
externalId?: string;
|
|
107
|
+
linkAccountId?: string;
|
|
108
|
+
createStandingInstructionAtDisbursement?: boolean;
|
|
109
|
+
loanTermFrequency: number;
|
|
110
|
+
loanTermFrequencyType: number;
|
|
111
|
+
numberOfRepayments: number;
|
|
112
|
+
repaymentEvery: number;
|
|
113
|
+
repaymentFrequencyType: number;
|
|
114
|
+
repaymentFrequencyNthDayType?: string;
|
|
115
|
+
repaymentFrequencyDayOfWeekType?: string;
|
|
116
|
+
repaymentsStartingFromDate?: string | null;
|
|
117
|
+
interestChargedFromDate?: string | null;
|
|
118
|
+
interestType: number;
|
|
119
|
+
isEqualAmortization?: boolean;
|
|
120
|
+
amortizationType: number;
|
|
121
|
+
interestCalculationPeriodType: number;
|
|
122
|
+
loanIdToClose?: string;
|
|
123
|
+
isTopup?: string;
|
|
124
|
+
transactionProcessingStrategyCode: string;
|
|
125
|
+
interestRateFrequencyType?: number;
|
|
126
|
+
interestRatePerPeriod: number;
|
|
127
|
+
charges?: any[];
|
|
128
|
+
collateral?: any[];
|
|
129
|
+
dateFormat: string;
|
|
130
|
+
locale: string;
|
|
131
|
+
clientId: number;
|
|
132
|
+
loanType: string;
|
|
133
|
+
principal: number | string;
|
|
134
|
+
allowPartialPeriodInterestCalcualtion?: boolean;
|
|
135
|
+
datatables?: {
|
|
136
|
+
registeredTableName: string;
|
|
137
|
+
data: {
|
|
138
|
+
locale: string;
|
|
139
|
+
remitter_name: string;
|
|
140
|
+
dp_name: string;
|
|
141
|
+
};
|
|
142
|
+
}[];
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Interface for the response when creating a new loan account in Fineract.
|
|
146
|
+
*/
|
|
147
|
+
export interface CreateLoanAccountResponse {
|
|
148
|
+
officeId: number;
|
|
149
|
+
clientId: number;
|
|
150
|
+
loanId: number;
|
|
151
|
+
resourceId: number;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Interface for approving a loan account in Fineract.
|
|
155
|
+
*/
|
|
156
|
+
export interface ApproveLoanAccountRequest {
|
|
157
|
+
approvedOnDate: string;
|
|
158
|
+
expectedDisbursementDate: string;
|
|
159
|
+
approvedLoanAmount: number;
|
|
160
|
+
note?: string;
|
|
161
|
+
dateFormat: string;
|
|
162
|
+
locale: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Interface for the response when approving a loan account in Fineract.
|
|
166
|
+
*/
|
|
167
|
+
export interface ApproveLoanAccountResponse {
|
|
168
|
+
officeId: number;
|
|
169
|
+
clientId: number;
|
|
170
|
+
loanId: number;
|
|
171
|
+
resourceId: number;
|
|
172
|
+
changes: {
|
|
173
|
+
principal: number;
|
|
174
|
+
expectedDisbursementDate: [number, number, number];
|
|
175
|
+
dateFormat: string;
|
|
176
|
+
approvedOnDate: string;
|
|
177
|
+
netDisbursalAmount: number;
|
|
178
|
+
locale: string;
|
|
179
|
+
approvedLoanAmount: number;
|
|
180
|
+
status: {
|
|
181
|
+
id: number;
|
|
182
|
+
code: string;
|
|
183
|
+
value: string;
|
|
184
|
+
pendingApproval: boolean;
|
|
185
|
+
waitingForDisbursal: boolean;
|
|
186
|
+
active: boolean;
|
|
187
|
+
closedObligationsMet: boolean;
|
|
188
|
+
closedWrittenOff: boolean;
|
|
189
|
+
closedRescheduled: boolean;
|
|
190
|
+
closed: boolean;
|
|
191
|
+
overpaid: boolean;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=loansaccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loansaccounts.d.ts","sourceRoot":"","sources":["../../src/types/loansaccounts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,qCAAqC;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAA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AAE,MAAM,CAAC;QAC3B,MAAM,EAAE,MAAM,CAAC;QACf,kBAAkB,EAAE,MAAM,CAAC;QAC3B,MAAM,EAAE;YACN,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;YACd,eAAe,EAAE,OAAO,CAAC;YACzB,mBAAmB,EAAE,OAAO,CAAC;YAC7B,MAAM,EAAE,OAAO,CAAC;YAChB,oBAAoB,EAAE,OAAO,CAAC;YAC9B,gBAAgB,EAAE,OAAO,CAAC;YAC1B,iBAAiB,EAAE,OAAO,CAAC;YAC3B,MAAM,EAAE,OAAO,CAAC;YAChB,QAAQ,EAAE,OAAO,CAAC;SACnB,CAAC;KACH,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loansaccounts.js","sourceRoot":"","sources":["../../src/types/loansaccounts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface ReportColumnHeader {
|
|
2
|
+
columnName: string;
|
|
3
|
+
columnType: string;
|
|
4
|
+
columnDisplayType: string;
|
|
5
|
+
isColumnNullable: boolean;
|
|
6
|
+
isColumnPrimaryKey: boolean;
|
|
7
|
+
isColumnUnique: boolean;
|
|
8
|
+
isColumnIndexed: boolean;
|
|
9
|
+
columnValues: any[];
|
|
10
|
+
}
|
|
11
|
+
export interface ReportDataRow {
|
|
12
|
+
row: any[];
|
|
13
|
+
}
|
|
14
|
+
export interface ReportResponse {
|
|
15
|
+
columnHeaders: ReportColumnHeader[];
|
|
16
|
+
data: ReportDataRow[];
|
|
17
|
+
}
|
|
18
|
+
export interface MappedReportResponse {
|
|
19
|
+
/** Mapped rows keyed by column name */
|
|
20
|
+
data: Array<Record<string, any>>;
|
|
21
|
+
}
|
|
22
|
+
export interface LoanPaymentsDueParams extends ReportQueryParams {
|
|
23
|
+
/** Inclusive starting installment sequence number (maps to R_fromX). */
|
|
24
|
+
fromInstallment: number;
|
|
25
|
+
/** Inclusive ending installment sequence number (maps to R_toY). */
|
|
26
|
+
toInstallment: number;
|
|
27
|
+
}
|
|
28
|
+
export interface LoanPaymentsDueOverdueParams extends ReportQueryParams {
|
|
29
|
+
/** Inclusive starting installment sequence number (maps to R_fromX). */
|
|
30
|
+
fromInstallment: number;
|
|
31
|
+
/** Inclusive ending installment sequence number (maps to R_toY). */
|
|
32
|
+
toInstallment: number;
|
|
33
|
+
/** Minimum days overdue (inclusive, maps to R_overdueX). */
|
|
34
|
+
overdueFromDays: number;
|
|
35
|
+
/** Maximum days overdue (inclusive, maps to R_overdueY). */
|
|
36
|
+
overdueToDays: number;
|
|
37
|
+
}
|
|
38
|
+
export interface ExpectedPaymentsByDateBasicParams extends ReportQueryParams {
|
|
39
|
+
/** Inclusive start date (yyyy-MM-dd, maps to R_startDate). */
|
|
40
|
+
startDate: string;
|
|
41
|
+
/** Inclusive end date (yyyy-MM-dd, maps to R_endDate). */
|
|
42
|
+
endDate: string;
|
|
43
|
+
/** Locale required by Fineract (e.g. 'en'). */
|
|
44
|
+
locale: string;
|
|
45
|
+
/** Date format expected by Fineract (e.g. 'yyyy-MM-dd'). */
|
|
46
|
+
dateFormat: string;
|
|
47
|
+
}
|
|
48
|
+
export type ReportQueryParams = Record<string, string | number | boolean>;
|
|
49
|
+
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/types/reports.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,GAAG,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,GAAG,EAAE,CAAC;CACZ;AAED,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC,IAAI,EAAE,aAAa,EAAE,CAAC;CACvB;AAGD,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;CAClC;AAGD,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,wEAAwE;IACxE,eAAe,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,4BAA6B,SAAQ,iBAAiB;IACrE,wEAAwE;IACxE,eAAe,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,aAAa,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,eAAe,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,iCAAkC,SAAQ,iBAAiB;IAC1E,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../src/types/reports.ts"],"names":[],"mappings":";AAAA,2CAA2C"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for creating a savings account in Fineract
|
|
3
|
+
*
|
|
4
|
+
* Mandatory Fields: clientId or groupId, productId, submittedOnDate
|
|
5
|
+
* Optional Fields: accountNo, externalId, fieldOfficerId
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateSavingsAccountRequest {
|
|
8
|
+
/** The ID of the client (required if groupId is not provided) */
|
|
9
|
+
clientId?: number;
|
|
10
|
+
/** The ID of the group (required if clientId is not provided) */
|
|
11
|
+
groupId?: number;
|
|
12
|
+
/** The ID of the savings product (mandatory) */
|
|
13
|
+
productId: number;
|
|
14
|
+
/** The date when the account was submitted (mandatory) */
|
|
15
|
+
submittedOnDate: string;
|
|
16
|
+
/** The date format for the submittedOnDate field */
|
|
17
|
+
dateFormat: string;
|
|
18
|
+
/** The locale for date formatting */
|
|
19
|
+
locale: string;
|
|
20
|
+
/** Optional account number */
|
|
21
|
+
accountNo?: string;
|
|
22
|
+
/** Optional external identifier */
|
|
23
|
+
externalId?: string;
|
|
24
|
+
fieldOfficerId?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Interface for the response when creating a savings account in Fineract
|
|
28
|
+
*/
|
|
29
|
+
export interface CreateSavingsAccountResponse {
|
|
30
|
+
officeId: number;
|
|
31
|
+
clientId: number;
|
|
32
|
+
savingsId: number;
|
|
33
|
+
resourceId: number;
|
|
34
|
+
gsimId: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Interface for the status of a savings account.
|
|
38
|
+
*/
|
|
39
|
+
export interface SavingsAccountStatus {
|
|
40
|
+
id: number;
|
|
41
|
+
code: string;
|
|
42
|
+
value: string;
|
|
43
|
+
submittedAndPendingApproval: boolean;
|
|
44
|
+
approved: boolean;
|
|
45
|
+
rejected: boolean;
|
|
46
|
+
withdrawnByApplicant: boolean;
|
|
47
|
+
active: boolean;
|
|
48
|
+
closed: boolean;
|
|
49
|
+
prematureClosed: boolean;
|
|
50
|
+
transferInProgress: boolean;
|
|
51
|
+
transferOnHold: boolean;
|
|
52
|
+
matured: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Interface for the changes made during the approval of a savings account.
|
|
56
|
+
*/
|
|
57
|
+
export interface ApproveSavingsAccountChanges {
|
|
58
|
+
status: SavingsAccountStatus;
|
|
59
|
+
locale: string;
|
|
60
|
+
dateFormat: string;
|
|
61
|
+
approvedOnDate: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Interface for the response when approving a savings account in Fineract.
|
|
65
|
+
*/
|
|
66
|
+
export interface ApproveSavingsAccountResponse {
|
|
67
|
+
officeId: number;
|
|
68
|
+
clientId: number;
|
|
69
|
+
savingsId: number;
|
|
70
|
+
resourceId: number;
|
|
71
|
+
changes: ApproveSavingsAccountChanges;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Interface for creating a deposit transaction in a savings account.
|
|
75
|
+
*/
|
|
76
|
+
export interface DepositTransactionRequest {
|
|
77
|
+
/** The date of the transaction (mandatory) */
|
|
78
|
+
transactionDate: string;
|
|
79
|
+
/** The amount to deposit (mandatory) */
|
|
80
|
+
transactionAmount: number;
|
|
81
|
+
/** The payment type ID (mandatory) */
|
|
82
|
+
paymentTypeId: number;
|
|
83
|
+
/** Optional note for the transaction */
|
|
84
|
+
note?: string;
|
|
85
|
+
/** The date format for the transactionDate field (mandatory) */
|
|
86
|
+
dateFormat: string;
|
|
87
|
+
/** The locale for date formatting (mandatory) */
|
|
88
|
+
locale: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Interface for the changes made during a deposit transaction.
|
|
92
|
+
*/
|
|
93
|
+
export interface DepositTransactionChanges {
|
|
94
|
+
paymentTypeId: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Interface for the response when creating a deposit transaction in Fineract.
|
|
98
|
+
*/
|
|
99
|
+
export interface DepositTransactionResponse {
|
|
100
|
+
officeId: number;
|
|
101
|
+
clientId: number;
|
|
102
|
+
savingsId: number;
|
|
103
|
+
resourceId: number;
|
|
104
|
+
changes: DepositTransactionChanges;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Interface for currency information.
|
|
108
|
+
*/
|
|
109
|
+
export interface Currency {
|
|
110
|
+
code: string;
|
|
111
|
+
name: string;
|
|
112
|
+
decimalPlaces: number;
|
|
113
|
+
displaySymbol: string;
|
|
114
|
+
nameCode: string;
|
|
115
|
+
displayLabel: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Interface for payment type options.
|
|
119
|
+
*/
|
|
120
|
+
export interface PaymentTypeOption {
|
|
121
|
+
id: number;
|
|
122
|
+
name: string;
|
|
123
|
+
description: string;
|
|
124
|
+
isCashPayment: boolean;
|
|
125
|
+
position: number;
|
|
126
|
+
codeName?: string;
|
|
127
|
+
isSystemDefined: boolean;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Interface for the savings account transaction template response.
|
|
131
|
+
*/
|
|
132
|
+
export interface SavingsTransactionTemplateResponse {
|
|
133
|
+
accountId: number;
|
|
134
|
+
accountNo: string;
|
|
135
|
+
date: number[];
|
|
136
|
+
currency: Currency;
|
|
137
|
+
reversed: boolean;
|
|
138
|
+
submittedOnDate: number[];
|
|
139
|
+
interestedPostedAsOn: boolean;
|
|
140
|
+
isManualTransaction: boolean;
|
|
141
|
+
lienTransaction: boolean;
|
|
142
|
+
chargesPaidByData: any[];
|
|
143
|
+
paymentTypeOptions: PaymentTypeOption[];
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=savingsaccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"savingsaccounts.d.ts","sourceRoot":"","sources":["../../src/types/savingsaccounts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAElB,0DAA0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AAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,GAAG,EAAE,CAAC;IACzB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"savingsaccounts.js","sourceRoot":"","sources":["../../src/types/savingsaccounts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for currency information in savings products
|
|
3
|
+
*/
|
|
4
|
+
export interface SavingsProductCurrency {
|
|
5
|
+
code: string;
|
|
6
|
+
name: string;
|
|
7
|
+
decimalPlaces: number;
|
|
8
|
+
displaySymbol: string;
|
|
9
|
+
nameCode: string;
|
|
10
|
+
displayLabel: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Interface for interest compounding period type
|
|
14
|
+
*/
|
|
15
|
+
export interface InterestCompoundingPeriodType {
|
|
16
|
+
id: number;
|
|
17
|
+
code: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Interface for interest posting period type
|
|
22
|
+
*/
|
|
23
|
+
export interface InterestPostingPeriodType {
|
|
24
|
+
id: number;
|
|
25
|
+
code: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Interface for interest calculation type
|
|
30
|
+
*/
|
|
31
|
+
export interface InterestCalculationType {
|
|
32
|
+
id: number;
|
|
33
|
+
code: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Interface for interest calculation days in year type
|
|
38
|
+
*/
|
|
39
|
+
export interface InterestCalculationDaysInYearType {
|
|
40
|
+
id: number;
|
|
41
|
+
code: string;
|
|
42
|
+
value: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Interface for accounting rule
|
|
46
|
+
*/
|
|
47
|
+
export interface AccountingRule {
|
|
48
|
+
id: number;
|
|
49
|
+
code: string;
|
|
50
|
+
value: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Interface representing a savings product from Fineract API
|
|
54
|
+
*/
|
|
55
|
+
export interface SavingsProduct {
|
|
56
|
+
id: number;
|
|
57
|
+
name: string;
|
|
58
|
+
shortName: string;
|
|
59
|
+
description: string;
|
|
60
|
+
currency: SavingsProductCurrency;
|
|
61
|
+
nominalAnnualInterestRate: number;
|
|
62
|
+
interestCompoundingPeriodType: InterestCompoundingPeriodType;
|
|
63
|
+
interestPostingPeriodType: InterestPostingPeriodType;
|
|
64
|
+
interestCalculationType: InterestCalculationType;
|
|
65
|
+
interestCalculationDaysInYearType: InterestCalculationDaysInYearType;
|
|
66
|
+
withdrawalFeeForTransfers: boolean;
|
|
67
|
+
allowOverdraft: boolean;
|
|
68
|
+
overdraftLimit: number;
|
|
69
|
+
minRequiredBalance: number;
|
|
70
|
+
enforceMinRequiredBalance: boolean;
|
|
71
|
+
maxAllowedLienLimit: number;
|
|
72
|
+
lienAllowed: boolean;
|
|
73
|
+
nominalAnnualInterestRateOverdraft: number;
|
|
74
|
+
minOverdraftForInterestCalculation: number;
|
|
75
|
+
withHoldTax: boolean;
|
|
76
|
+
accountingRule: AccountingRule;
|
|
77
|
+
isDormancyTrackingActive: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Type alias for the response from the getAll() method
|
|
81
|
+
*/
|
|
82
|
+
export type SavingsProductsResponse = SavingsProduct[];
|
|
83
|
+
//# sourceMappingURL=savingsproducts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"savingsproducts.d.ts","sourceRoot":"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