@finverse/sdk-typescript 0.0.258 → 0.0.260
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 +67 -9
- package/dist/api.js +32 -7
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -6748,6 +6748,49 @@ export interface RefreshRequest {
|
|
|
6748
6748
|
*/
|
|
6749
6749
|
refresh_token: string;
|
|
6750
6750
|
}
|
|
6751
|
+
/**
|
|
6752
|
+
*
|
|
6753
|
+
* @export
|
|
6754
|
+
* @interface RefreshTokenResponse
|
|
6755
|
+
*/
|
|
6756
|
+
export interface RefreshTokenResponse {
|
|
6757
|
+
/**
|
|
6758
|
+
*
|
|
6759
|
+
* @type {string}
|
|
6760
|
+
* @memberof RefreshTokenResponse
|
|
6761
|
+
*/
|
|
6762
|
+
access_token: string;
|
|
6763
|
+
/**
|
|
6764
|
+
*
|
|
6765
|
+
* @type {string}
|
|
6766
|
+
* @memberof RefreshTokenResponse
|
|
6767
|
+
*/
|
|
6768
|
+
token_type: string;
|
|
6769
|
+
/**
|
|
6770
|
+
* seconds
|
|
6771
|
+
* @type {number}
|
|
6772
|
+
* @memberof RefreshTokenResponse
|
|
6773
|
+
*/
|
|
6774
|
+
expires_in: number;
|
|
6775
|
+
/**
|
|
6776
|
+
*
|
|
6777
|
+
* @type {string}
|
|
6778
|
+
* @memberof RefreshTokenResponse
|
|
6779
|
+
*/
|
|
6780
|
+
issued_at: string;
|
|
6781
|
+
/**
|
|
6782
|
+
*
|
|
6783
|
+
* @type {string}
|
|
6784
|
+
* @memberof RefreshTokenResponse
|
|
6785
|
+
*/
|
|
6786
|
+
link_url: string;
|
|
6787
|
+
/**
|
|
6788
|
+
*
|
|
6789
|
+
* @type {string}
|
|
6790
|
+
* @memberof RefreshTokenResponse
|
|
6791
|
+
*/
|
|
6792
|
+
login_identity_id: string;
|
|
6793
|
+
}
|
|
6751
6794
|
/**
|
|
6752
6795
|
*
|
|
6753
6796
|
* @export
|
|
@@ -8430,10 +8473,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
8430
8473
|
createScheduledPayout: (idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8431
8474
|
/**
|
|
8432
8475
|
* Download the balance statement for the ledger (CSV)
|
|
8476
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
8477
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
8478
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
8433
8479
|
* @param {*} [options] Override http request option.
|
|
8434
8480
|
* @throws {RequiredError}
|
|
8435
8481
|
*/
|
|
8436
|
-
downloadBalanceStatement: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8482
|
+
downloadBalanceStatement: (dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8437
8483
|
/**
|
|
8438
8484
|
* Get the FPS QR code
|
|
8439
8485
|
* @param {*} [options] Override http request option.
|
|
@@ -8628,10 +8674,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
8628
8674
|
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PayoutSnapshotResponse>>;
|
|
8629
8675
|
/**
|
|
8630
8676
|
* Download the balance statement for the ledger (CSV)
|
|
8677
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
8678
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
8679
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
8631
8680
|
* @param {*} [options] Override http request option.
|
|
8632
8681
|
* @throws {RequiredError}
|
|
8633
8682
|
*/
|
|
8634
|
-
downloadBalanceStatement(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadBalanceStatementResponse>>;
|
|
8683
|
+
downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadBalanceStatementResponse>>;
|
|
8635
8684
|
/**
|
|
8636
8685
|
* Get the FPS QR code
|
|
8637
8686
|
* @param {*} [options] Override http request option.
|
|
@@ -8826,10 +8875,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
8826
8875
|
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: any): AxiosPromise<PayoutSnapshotResponse>;
|
|
8827
8876
|
/**
|
|
8828
8877
|
* Download the balance statement for the ledger (CSV)
|
|
8878
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
8879
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
8880
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
8829
8881
|
* @param {*} [options] Override http request option.
|
|
8830
8882
|
* @throws {RequiredError}
|
|
8831
8883
|
*/
|
|
8832
|
-
downloadBalanceStatement(options?: any): AxiosPromise<DownloadBalanceStatementResponse>;
|
|
8884
|
+
downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: any): AxiosPromise<DownloadBalanceStatementResponse>;
|
|
8833
8885
|
/**
|
|
8834
8886
|
* Get the FPS QR code
|
|
8835
8887
|
* @param {*} [options] Override http request option.
|
|
@@ -9037,11 +9089,14 @@ export interface DefaultApiInterface {
|
|
|
9037
9089
|
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): AxiosPromise<PayoutSnapshotResponse>;
|
|
9038
9090
|
/**
|
|
9039
9091
|
* Download the balance statement for the ledger (CSV)
|
|
9092
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
9093
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
9094
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
9040
9095
|
* @param {*} [options] Override http request option.
|
|
9041
9096
|
* @throws {RequiredError}
|
|
9042
9097
|
* @memberof DefaultApiInterface
|
|
9043
9098
|
*/
|
|
9044
|
-
downloadBalanceStatement(options?: AxiosRequestConfig): AxiosPromise<DownloadBalanceStatementResponse>;
|
|
9099
|
+
downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig): AxiosPromise<DownloadBalanceStatementResponse>;
|
|
9045
9100
|
/**
|
|
9046
9101
|
* Get the FPS QR code
|
|
9047
9102
|
* @param {*} [options] Override http request option.
|
|
@@ -9262,11 +9317,14 @@ export declare class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
|
|
9262
9317
|
createScheduledPayout(idempotencyKey: string, createScheduledPayoutRequest: CreateScheduledPayoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PayoutSnapshotResponse>>;
|
|
9263
9318
|
/**
|
|
9264
9319
|
* Download the balance statement for the ledger (CSV)
|
|
9320
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
9321
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
9322
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
9265
9323
|
* @param {*} [options] Override http request option.
|
|
9266
9324
|
* @throws {RequiredError}
|
|
9267
9325
|
* @memberof DefaultApi
|
|
9268
9326
|
*/
|
|
9269
|
-
downloadBalanceStatement(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadBalanceStatementResponse>>;
|
|
9327
|
+
downloadBalanceStatement(dateFrom?: string, dateTo?: string, currencies?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DownloadBalanceStatementResponse>>;
|
|
9270
9328
|
/**
|
|
9271
9329
|
* Get the FPS QR code
|
|
9272
9330
|
* @param {*} [options] Override http request option.
|
|
@@ -10023,7 +10081,7 @@ export declare const LoginIdentityApiFp: (configuration?: Configuration) => {
|
|
|
10023
10081
|
* @param {*} [options] Override http request option.
|
|
10024
10082
|
* @throws {RequiredError}
|
|
10025
10083
|
*/
|
|
10026
|
-
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
10084
|
+
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RefreshTokenResponse>>;
|
|
10027
10085
|
};
|
|
10028
10086
|
/**
|
|
10029
10087
|
* LoginIdentityApi - factory interface
|
|
@@ -10141,7 +10199,7 @@ export declare const LoginIdentityApiFactory: (configuration?: Configuration, ba
|
|
|
10141
10199
|
* @param {*} [options] Override http request option.
|
|
10142
10200
|
* @throws {RequiredError}
|
|
10143
10201
|
*/
|
|
10144
|
-
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: any): AxiosPromise<
|
|
10202
|
+
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: any): AxiosPromise<RefreshTokenResponse>;
|
|
10145
10203
|
};
|
|
10146
10204
|
/**
|
|
10147
10205
|
* LoginIdentityApi - interface
|
|
@@ -10276,7 +10334,7 @@ export interface LoginIdentityApiInterface {
|
|
|
10276
10334
|
* @throws {RequiredError}
|
|
10277
10335
|
* @memberof LoginIdentityApiInterface
|
|
10278
10336
|
*/
|
|
10279
|
-
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: AxiosRequestConfig): AxiosPromise<
|
|
10337
|
+
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: AxiosRequestConfig): AxiosPromise<RefreshTokenResponse>;
|
|
10280
10338
|
}
|
|
10281
10339
|
/**
|
|
10282
10340
|
* LoginIdentityApi - object-oriented interface
|
|
@@ -10412,7 +10470,7 @@ export declare class LoginIdentityApi extends BaseAPI implements LoginIdentityAp
|
|
|
10412
10470
|
* @throws {RequiredError}
|
|
10413
10471
|
* @memberof LoginIdentityApi
|
|
10414
10472
|
*/
|
|
10415
|
-
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
10473
|
+
refreshLoginIdentity(refreshLoginIdentityReq?: RefreshLoginIdentityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RefreshTokenResponse>>;
|
|
10416
10474
|
}
|
|
10417
10475
|
/**
|
|
10418
10476
|
* PublicApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -2388,10 +2388,13 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2388
2388
|
}),
|
|
2389
2389
|
/**
|
|
2390
2390
|
* Download the balance statement for the ledger (CSV)
|
|
2391
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
2392
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
2393
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
2391
2394
|
* @param {*} [options] Override http request option.
|
|
2392
2395
|
* @throws {RequiredError}
|
|
2393
2396
|
*/
|
|
2394
|
-
downloadBalanceStatement: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2397
|
+
downloadBalanceStatement: (dateFrom, dateTo, currencies, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2395
2398
|
const localVarPath = `/ledger/statement`;
|
|
2396
2399
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2397
2400
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2405,6 +2408,17 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2405
2408
|
// authentication Oauth2 required
|
|
2406
2409
|
// oauth required
|
|
2407
2410
|
yield common_1.setOAuthToObject(localVarHeaderParameter, 'Oauth2', [], configuration);
|
|
2411
|
+
if (dateFrom !== undefined) {
|
|
2412
|
+
localVarQueryParameter['date_from'] =
|
|
2413
|
+
dateFrom instanceof Date ? dateFrom.toISOString().substr(0, 10) : dateFrom;
|
|
2414
|
+
}
|
|
2415
|
+
if (dateTo !== undefined) {
|
|
2416
|
+
localVarQueryParameter['date_to'] =
|
|
2417
|
+
dateTo instanceof Date ? dateTo.toISOString().substr(0, 10) : dateTo;
|
|
2418
|
+
}
|
|
2419
|
+
if (currencies) {
|
|
2420
|
+
localVarQueryParameter['currencies'] = currencies.join(base_1.COLLECTION_FORMATS.csv);
|
|
2421
|
+
}
|
|
2408
2422
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2409
2423
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2410
2424
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3019,12 +3033,15 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
3019
3033
|
},
|
|
3020
3034
|
/**
|
|
3021
3035
|
* Download the balance statement for the ledger (CSV)
|
|
3036
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
3037
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
3038
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
3022
3039
|
* @param {*} [options] Override http request option.
|
|
3023
3040
|
* @throws {RequiredError}
|
|
3024
3041
|
*/
|
|
3025
|
-
downloadBalanceStatement(options) {
|
|
3042
|
+
downloadBalanceStatement(dateFrom, dateTo, currencies, options) {
|
|
3026
3043
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3027
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadBalanceStatement(options);
|
|
3044
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadBalanceStatement(dateFrom, dateTo, currencies, options);
|
|
3028
3045
|
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3029
3046
|
});
|
|
3030
3047
|
},
|
|
@@ -3321,11 +3338,16 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3321
3338
|
},
|
|
3322
3339
|
/**
|
|
3323
3340
|
* Download the balance statement for the ledger (CSV)
|
|
3341
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
3342
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
3343
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
3324
3344
|
* @param {*} [options] Override http request option.
|
|
3325
3345
|
* @throws {RequiredError}
|
|
3326
3346
|
*/
|
|
3327
|
-
downloadBalanceStatement(options) {
|
|
3328
|
-
return localVarFp
|
|
3347
|
+
downloadBalanceStatement(dateFrom, dateTo, currencies, options) {
|
|
3348
|
+
return localVarFp
|
|
3349
|
+
.downloadBalanceStatement(dateFrom, dateTo, currencies, options)
|
|
3350
|
+
.then((request) => request(axios, basePath));
|
|
3329
3351
|
},
|
|
3330
3352
|
/**
|
|
3331
3353
|
* Get the FPS QR code
|
|
@@ -3616,13 +3638,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3616
3638
|
}
|
|
3617
3639
|
/**
|
|
3618
3640
|
* Download the balance statement for the ledger (CSV)
|
|
3641
|
+
* @param {string} [dateFrom] ISO format (YYYY-MM-DD)
|
|
3642
|
+
* @param {string} [dateTo] ISO format (YYYY-MM-DD)
|
|
3643
|
+
* @param {Array<string>} [currencies] The currencies to filter for
|
|
3619
3644
|
* @param {*} [options] Override http request option.
|
|
3620
3645
|
* @throws {RequiredError}
|
|
3621
3646
|
* @memberof DefaultApi
|
|
3622
3647
|
*/
|
|
3623
|
-
downloadBalanceStatement(options) {
|
|
3648
|
+
downloadBalanceStatement(dateFrom, dateTo, currencies, options) {
|
|
3624
3649
|
return exports.DefaultApiFp(this.configuration)
|
|
3625
|
-
.downloadBalanceStatement(options)
|
|
3650
|
+
.downloadBalanceStatement(dateFrom, dateTo, currencies, options)
|
|
3626
3651
|
.then((request) => request(this.axios, this.basePath));
|
|
3627
3652
|
}
|
|
3628
3653
|
/**
|