@finverse/sdk-typescript 0.0.6 → 0.0.9
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.d.ts +195 -1
- package/dist/api.js +57 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1043,6 +1043,81 @@ export interface IdentityPhoneNumber {
|
|
|
1043
1043
|
*/
|
|
1044
1044
|
account_ids?: Array<string>;
|
|
1045
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
*
|
|
1048
|
+
* @export
|
|
1049
|
+
* @interface IncomeEstimate
|
|
1050
|
+
*/
|
|
1051
|
+
export interface IncomeEstimate {
|
|
1052
|
+
/**
|
|
1053
|
+
* Income amount
|
|
1054
|
+
* @type {number}
|
|
1055
|
+
* @memberof IncomeEstimate
|
|
1056
|
+
*/
|
|
1057
|
+
amount?: number;
|
|
1058
|
+
/**
|
|
1059
|
+
* Currency
|
|
1060
|
+
* @type {string}
|
|
1061
|
+
* @memberof IncomeEstimate
|
|
1062
|
+
*/
|
|
1063
|
+
currency?: string;
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @export
|
|
1068
|
+
* @interface IncomeResponse
|
|
1069
|
+
*/
|
|
1070
|
+
export interface IncomeResponse {
|
|
1071
|
+
/**
|
|
1072
|
+
*
|
|
1073
|
+
* @type {Array<SingleSourceIncome>}
|
|
1074
|
+
* @memberof IncomeResponse
|
|
1075
|
+
*/
|
|
1076
|
+
income?: Array<SingleSourceIncome>;
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @type {LoginIdentityShort}
|
|
1080
|
+
* @memberof IncomeResponse
|
|
1081
|
+
*/
|
|
1082
|
+
login_identity?: LoginIdentityShort;
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @type {InstitutionShort}
|
|
1086
|
+
* @memberof IncomeResponse
|
|
1087
|
+
*/
|
|
1088
|
+
institution?: InstitutionShort;
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
*
|
|
1092
|
+
* @export
|
|
1093
|
+
* @interface IncomeStream
|
|
1094
|
+
*/
|
|
1095
|
+
export interface IncomeStream {
|
|
1096
|
+
/**
|
|
1097
|
+
* Account this income estimate is associated with
|
|
1098
|
+
* @type {string}
|
|
1099
|
+
* @memberof IncomeStream
|
|
1100
|
+
*/
|
|
1101
|
+
account_id?: string;
|
|
1102
|
+
/**
|
|
1103
|
+
*
|
|
1104
|
+
* @type {IncomeEstimate}
|
|
1105
|
+
* @memberof IncomeStream
|
|
1106
|
+
*/
|
|
1107
|
+
estimated_monthly_income?: IncomeEstimate;
|
|
1108
|
+
/**
|
|
1109
|
+
* Number of transactions counted towards income
|
|
1110
|
+
* @type {number}
|
|
1111
|
+
* @memberof IncomeStream
|
|
1112
|
+
*/
|
|
1113
|
+
transaction_count?: number;
|
|
1114
|
+
/**
|
|
1115
|
+
*
|
|
1116
|
+
* @type {Array<MonthlyIncomeEstimate>}
|
|
1117
|
+
* @memberof IncomeStream
|
|
1118
|
+
*/
|
|
1119
|
+
monthly_history?: Array<MonthlyIncomeEstimate>;
|
|
1120
|
+
}
|
|
1046
1121
|
/**
|
|
1047
1122
|
*
|
|
1048
1123
|
* @export
|
|
@@ -1288,7 +1363,7 @@ export interface LinkTokenRequest {
|
|
|
1288
1363
|
*/
|
|
1289
1364
|
ui_mode?: LinkTokenRequestUiModeEnum;
|
|
1290
1365
|
/**
|
|
1291
|
-
*
|
|
1366
|
+
* ISO639-1 language code. Language to display when user open the link, default to English (en) if not specified
|
|
1292
1367
|
* @type {string}
|
|
1293
1368
|
* @memberof LinkTokenRequest
|
|
1294
1369
|
*/
|
|
@@ -1749,6 +1824,31 @@ export interface LoginMethod {
|
|
|
1749
1824
|
*/
|
|
1750
1825
|
login_fields?: Array<LoginField>;
|
|
1751
1826
|
}
|
|
1827
|
+
/**
|
|
1828
|
+
*
|
|
1829
|
+
* @export
|
|
1830
|
+
* @interface MonthlyIncomeEstimate
|
|
1831
|
+
*/
|
|
1832
|
+
export interface MonthlyIncomeEstimate {
|
|
1833
|
+
/**
|
|
1834
|
+
*
|
|
1835
|
+
* @type {IncomeEstimate}
|
|
1836
|
+
* @memberof MonthlyIncomeEstimate
|
|
1837
|
+
*/
|
|
1838
|
+
estimated_income?: IncomeEstimate;
|
|
1839
|
+
/**
|
|
1840
|
+
* The numeric month
|
|
1841
|
+
* @type {number}
|
|
1842
|
+
* @memberof MonthlyIncomeEstimate
|
|
1843
|
+
*/
|
|
1844
|
+
month?: number;
|
|
1845
|
+
/**
|
|
1846
|
+
* The year
|
|
1847
|
+
* @type {number}
|
|
1848
|
+
* @memberof MonthlyIncomeEstimate
|
|
1849
|
+
*/
|
|
1850
|
+
year?: number;
|
|
1851
|
+
}
|
|
1752
1852
|
/**
|
|
1753
1853
|
*
|
|
1754
1854
|
* @export
|
|
@@ -1823,6 +1923,12 @@ export interface PaymentInstruction {
|
|
|
1823
1923
|
* @memberof PaymentInstruction
|
|
1824
1924
|
*/
|
|
1825
1925
|
payment_type: PaymentInstructionPaymentTypeEnum;
|
|
1926
|
+
/**
|
|
1927
|
+
* The customer provided userId that needs to match the one passed when generating link token
|
|
1928
|
+
* @type {string}
|
|
1929
|
+
* @memberof PaymentInstruction
|
|
1930
|
+
*/
|
|
1931
|
+
user_id: string;
|
|
1826
1932
|
/**
|
|
1827
1933
|
* The recipient name
|
|
1828
1934
|
* @type {string}
|
|
@@ -2019,6 +2125,62 @@ export interface RelinkRequest {
|
|
|
2019
2125
|
*/
|
|
2020
2126
|
store_credential: boolean;
|
|
2021
2127
|
}
|
|
2128
|
+
/**
|
|
2129
|
+
*
|
|
2130
|
+
* @export
|
|
2131
|
+
* @interface SingleSourceIncome
|
|
2132
|
+
*/
|
|
2133
|
+
export interface SingleSourceIncome {
|
|
2134
|
+
/**
|
|
2135
|
+
*
|
|
2136
|
+
* @type {Array<IncomeStream>}
|
|
2137
|
+
* @memberof SingleSourceIncome
|
|
2138
|
+
*/
|
|
2139
|
+
income_streams?: Array<IncomeStream>;
|
|
2140
|
+
/**
|
|
2141
|
+
*
|
|
2142
|
+
* @type {SingleSourceIncomeIncomeTotal}
|
|
2143
|
+
* @memberof SingleSourceIncome
|
|
2144
|
+
*/
|
|
2145
|
+
income_total?: SingleSourceIncomeIncomeTotal;
|
|
2146
|
+
/**
|
|
2147
|
+
* Where the income estimate was sourced from
|
|
2148
|
+
* @type {string}
|
|
2149
|
+
* @memberof SingleSourceIncome
|
|
2150
|
+
*/
|
|
2151
|
+
source?: string;
|
|
2152
|
+
/**
|
|
2153
|
+
* Unknown
|
|
2154
|
+
* @type {string}
|
|
2155
|
+
* @memberof SingleSourceIncome
|
|
2156
|
+
*/
|
|
2157
|
+
source_id?: string;
|
|
2158
|
+
}
|
|
2159
|
+
/**
|
|
2160
|
+
*
|
|
2161
|
+
* @export
|
|
2162
|
+
* @interface SingleSourceIncomeIncomeTotal
|
|
2163
|
+
*/
|
|
2164
|
+
export interface SingleSourceIncomeIncomeTotal {
|
|
2165
|
+
/**
|
|
2166
|
+
*
|
|
2167
|
+
* @type {IncomeEstimate}
|
|
2168
|
+
* @memberof SingleSourceIncomeIncomeTotal
|
|
2169
|
+
*/
|
|
2170
|
+
estmated_monthly_income?: IncomeEstimate;
|
|
2171
|
+
/**
|
|
2172
|
+
* Number of transactions counted towards income
|
|
2173
|
+
* @type {number}
|
|
2174
|
+
* @memberof SingleSourceIncomeIncomeTotal
|
|
2175
|
+
*/
|
|
2176
|
+
transaction_count?: number;
|
|
2177
|
+
/**
|
|
2178
|
+
*
|
|
2179
|
+
* @type {Array<MonthlyIncomeEstimate>}
|
|
2180
|
+
* @memberof SingleSourceIncomeIncomeTotal
|
|
2181
|
+
*/
|
|
2182
|
+
monthly_history?: Array<MonthlyIncomeEstimate>;
|
|
2183
|
+
}
|
|
2022
2184
|
/**
|
|
2023
2185
|
*
|
|
2024
2186
|
* @export
|
|
@@ -2829,6 +2991,12 @@ export declare const LoginIdentityApiAxiosParamCreator: (configuration?: Configu
|
|
|
2829
2991
|
* @throws {RequiredError}
|
|
2830
2992
|
*/
|
|
2831
2993
|
getIdentity: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2994
|
+
/**
|
|
2995
|
+
* Get income figures for a login identity
|
|
2996
|
+
* @param {*} [options] Override http request option.
|
|
2997
|
+
* @throws {RequiredError}
|
|
2998
|
+
*/
|
|
2999
|
+
getIncomeByLoginIdentityId: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2832
3000
|
/**
|
|
2833
3001
|
* Get a specific loginIdentity
|
|
2834
3002
|
* @param {*} [options] Override http request option.
|
|
@@ -2930,6 +3098,12 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
|
|
|
2930
3098
|
* @throws {RequiredError}
|
|
2931
3099
|
*/
|
|
2932
3100
|
getIdentity(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIdentityResponse>>;
|
|
3101
|
+
/**
|
|
3102
|
+
* Get income figures for a login identity
|
|
3103
|
+
* @param {*} [options] Override http request option.
|
|
3104
|
+
* @throws {RequiredError}
|
|
3105
|
+
*/
|
|
3106
|
+
getIncomeByLoginIdentityId(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IncomeResponse>>;
|
|
2933
3107
|
/**
|
|
2934
3108
|
* Get a specific loginIdentity
|
|
2935
3109
|
* @param {*} [options] Override http request option.
|
|
@@ -3031,6 +3205,12 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
|
|
|
3031
3205
|
* @throws {RequiredError}
|
|
3032
3206
|
*/
|
|
3033
3207
|
getIdentity(options?: any): AxiosPromise<GetIdentityResponse>;
|
|
3208
|
+
/**
|
|
3209
|
+
* Get income figures for a login identity
|
|
3210
|
+
* @param {*} [options] Override http request option.
|
|
3211
|
+
* @throws {RequiredError}
|
|
3212
|
+
*/
|
|
3213
|
+
getIncomeByLoginIdentityId(options?: any): AxiosPromise<IncomeResponse>;
|
|
3034
3214
|
/**
|
|
3035
3215
|
* Get a specific loginIdentity
|
|
3036
3216
|
* @param {*} [options] Override http request option.
|
|
@@ -3139,6 +3319,13 @@ export interface LoginIdentityApiInterface {
|
|
|
3139
3319
|
* @memberof LoginIdentityApiInterface
|
|
3140
3320
|
*/
|
|
3141
3321
|
getIdentity(options?: AxiosRequestConfig): AxiosPromise<GetIdentityResponse>;
|
|
3322
|
+
/**
|
|
3323
|
+
* Get income figures for a login identity
|
|
3324
|
+
* @param {*} [options] Override http request option.
|
|
3325
|
+
* @throws {RequiredError}
|
|
3326
|
+
* @memberof LoginIdentityApiInterface
|
|
3327
|
+
*/
|
|
3328
|
+
getIncomeByLoginIdentityId(options?: AxiosRequestConfig): AxiosPromise<IncomeResponse>;
|
|
3142
3329
|
/**
|
|
3143
3330
|
* Get a specific loginIdentity
|
|
3144
3331
|
* @param {*} [options] Override http request option.
|
|
@@ -3256,6 +3443,13 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
|
|
|
3256
3443
|
* @memberof LoginIdentityApi
|
|
3257
3444
|
*/
|
|
3258
3445
|
getIdentity(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetIdentityResponse>>;
|
|
3446
|
+
/**
|
|
3447
|
+
* Get income figures for a login identity
|
|
3448
|
+
* @param {*} [options] Override http request option.
|
|
3449
|
+
* @throws {RequiredError}
|
|
3450
|
+
* @memberof LoginIdentityApi
|
|
3451
|
+
*/
|
|
3452
|
+
getIncomeByLoginIdentityId(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<IncomeResponse>>;
|
|
3259
3453
|
/**
|
|
3260
3454
|
* Get a specific loginIdentity
|
|
3261
3455
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -1134,6 +1134,33 @@ exports.LoginIdentityApiAxiosParamCreator = function (configuration) {
|
|
|
1134
1134
|
options: localVarRequestOptions,
|
|
1135
1135
|
};
|
|
1136
1136
|
}),
|
|
1137
|
+
/**
|
|
1138
|
+
* Get income figures for a login identity
|
|
1139
|
+
* @param {*} [options] Override http request option.
|
|
1140
|
+
* @throws {RequiredError}
|
|
1141
|
+
*/
|
|
1142
|
+
getIncomeByLoginIdentityId: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1143
|
+
const localVarPath = `/income`;
|
|
1144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1145
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1146
|
+
let baseOptions;
|
|
1147
|
+
if (configuration) {
|
|
1148
|
+
baseOptions = configuration.baseOptions;
|
|
1149
|
+
}
|
|
1150
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1151
|
+
const localVarHeaderParameter = {};
|
|
1152
|
+
const localVarQueryParameter = {};
|
|
1153
|
+
// authentication Oauth2 required
|
|
1154
|
+
// oauth required
|
|
1155
|
+
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
1156
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1158
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1159
|
+
return {
|
|
1160
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1161
|
+
options: localVarRequestOptions,
|
|
1162
|
+
};
|
|
1163
|
+
}),
|
|
1137
1164
|
/**
|
|
1138
1165
|
* Get a specific loginIdentity
|
|
1139
1166
|
* @param {*} [options] Override http request option.
|
|
@@ -1454,6 +1481,17 @@ exports.LoginIdentityApiFp = function (configuration) {
|
|
|
1454
1481
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1455
1482
|
});
|
|
1456
1483
|
},
|
|
1484
|
+
/**
|
|
1485
|
+
* Get income figures for a login identity
|
|
1486
|
+
* @param {*} [options] Override http request option.
|
|
1487
|
+
* @throws {RequiredError}
|
|
1488
|
+
*/
|
|
1489
|
+
getIncomeByLoginIdentityId(options) {
|
|
1490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1491
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomeByLoginIdentityId(options);
|
|
1492
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1493
|
+
});
|
|
1494
|
+
},
|
|
1457
1495
|
/**
|
|
1458
1496
|
* Get a specific loginIdentity
|
|
1459
1497
|
* @param {*} [options] Override http request option.
|
|
@@ -1610,6 +1648,14 @@ exports.LoginIdentityApiFactory = function (configuration, basePath, axios) {
|
|
|
1610
1648
|
getIdentity(options) {
|
|
1611
1649
|
return localVarFp.getIdentity(options).then((request) => request(axios, basePath));
|
|
1612
1650
|
},
|
|
1651
|
+
/**
|
|
1652
|
+
* Get income figures for a login identity
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
*/
|
|
1656
|
+
getIncomeByLoginIdentityId(options) {
|
|
1657
|
+
return localVarFp.getIncomeByLoginIdentityId(options).then((request) => request(axios, basePath));
|
|
1658
|
+
},
|
|
1613
1659
|
/**
|
|
1614
1660
|
* Get a specific loginIdentity
|
|
1615
1661
|
* @param {*} [options] Override http request option.
|
|
@@ -1764,6 +1810,17 @@ class LoginIdentityApi extends base_1.BaseAPI {
|
|
|
1764
1810
|
.getIdentity(options)
|
|
1765
1811
|
.then((request) => request(this.axios, this.basePath));
|
|
1766
1812
|
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Get income figures for a login identity
|
|
1815
|
+
* @param {*} [options] Override http request option.
|
|
1816
|
+
* @throws {RequiredError}
|
|
1817
|
+
* @memberof LoginIdentityApi
|
|
1818
|
+
*/
|
|
1819
|
+
getIncomeByLoginIdentityId(options) {
|
|
1820
|
+
return exports.LoginIdentityApiFp(this.configuration)
|
|
1821
|
+
.getIncomeByLoginIdentityId(options)
|
|
1822
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1823
|
+
}
|
|
1767
1824
|
/**
|
|
1768
1825
|
* Get a specific loginIdentity
|
|
1769
1826
|
* @param {*} [options] Override http request option.
|