@triveria/wallet 0.0.153 → 0.0.154
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/api.d.ts +33 -0
- package/api.js +72 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1924,6 +1924,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1924
1924
|
* @throws {RequiredError}
|
|
1925
1925
|
*/
|
|
1926
1926
|
walletList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1927
|
+
/**
|
|
1928
|
+
* Gets a specific notification by state
|
|
1929
|
+
* @param {string} walletId Wallet ID
|
|
1930
|
+
* @param {string} state Verifier state
|
|
1931
|
+
* @param {*} [options] Override http request option.
|
|
1932
|
+
* @throws {RequiredError}
|
|
1933
|
+
*/
|
|
1934
|
+
walletNotificationGetByState: (walletId: string, state: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1927
1935
|
/**
|
|
1928
1936
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
1929
1937
|
* @param {string} walletId Wallet ID
|
|
@@ -2261,6 +2269,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2261
2269
|
* @throws {RequiredError}
|
|
2262
2270
|
*/
|
|
2263
2271
|
walletList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Wallet>>>;
|
|
2272
|
+
/**
|
|
2273
|
+
* Gets a specific notification by state
|
|
2274
|
+
* @param {string} walletId Wallet ID
|
|
2275
|
+
* @param {string} state Verifier state
|
|
2276
|
+
* @param {*} [options] Override http request option.
|
|
2277
|
+
* @throws {RequiredError}
|
|
2278
|
+
*/
|
|
2279
|
+
walletNotificationGetByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotification>>;
|
|
2264
2280
|
/**
|
|
2265
2281
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
2266
2282
|
* @param {string} walletId Wallet ID
|
|
@@ -2598,6 +2614,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2598
2614
|
* @throws {RequiredError}
|
|
2599
2615
|
*/
|
|
2600
2616
|
walletList(options?: any): AxiosPromise<Array<Wallet>>;
|
|
2617
|
+
/**
|
|
2618
|
+
* Gets a specific notification by state
|
|
2619
|
+
* @param {string} walletId Wallet ID
|
|
2620
|
+
* @param {string} state Verifier state
|
|
2621
|
+
* @param {*} [options] Override http request option.
|
|
2622
|
+
* @throws {RequiredError}
|
|
2623
|
+
*/
|
|
2624
|
+
walletNotificationGetByState(walletId: string, state: string, options?: any): AxiosPromise<WalletNotification>;
|
|
2601
2625
|
/**
|
|
2602
2626
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
2603
2627
|
* @param {string} walletId Wallet ID
|
|
@@ -2975,6 +2999,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2975
2999
|
* @memberof DefaultApi
|
|
2976
3000
|
*/
|
|
2977
3001
|
walletList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet[], any>>;
|
|
3002
|
+
/**
|
|
3003
|
+
* Gets a specific notification by state
|
|
3004
|
+
* @param {string} walletId Wallet ID
|
|
3005
|
+
* @param {string} state Verifier state
|
|
3006
|
+
* @param {*} [options] Override http request option.
|
|
3007
|
+
* @throws {RequiredError}
|
|
3008
|
+
* @memberof DefaultApi
|
|
3009
|
+
*/
|
|
3010
|
+
walletNotificationGetByState(walletId: string, state: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotification, any>>;
|
|
2978
3011
|
/**
|
|
2979
3012
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
2980
3013
|
* @param {string} walletId Wallet ID
|
package/api.js
CHANGED
|
@@ -1463,6 +1463,41 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1463
1463
|
options: localVarRequestOptions,
|
|
1464
1464
|
};
|
|
1465
1465
|
}),
|
|
1466
|
+
/**
|
|
1467
|
+
* Gets a specific notification by state
|
|
1468
|
+
* @param {string} walletId Wallet ID
|
|
1469
|
+
* @param {string} state Verifier state
|
|
1470
|
+
* @param {*} [options] Override http request option.
|
|
1471
|
+
* @throws {RequiredError}
|
|
1472
|
+
*/
|
|
1473
|
+
walletNotificationGetByState: (walletId, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1474
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1475
|
+
(0, common_1.assertParamExists)('walletNotificationGetByState', 'walletId', walletId);
|
|
1476
|
+
// verify required parameter 'state' is not null or undefined
|
|
1477
|
+
(0, common_1.assertParamExists)('walletNotificationGetByState', 'state', state);
|
|
1478
|
+
const localVarPath = `/wallets/{wallet_id}/notification_history/{state}`
|
|
1479
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
|
|
1480
|
+
.replace(`{${"state"}}`, encodeURIComponent(String(state)));
|
|
1481
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1482
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1483
|
+
let baseOptions;
|
|
1484
|
+
if (configuration) {
|
|
1485
|
+
baseOptions = configuration.baseOptions;
|
|
1486
|
+
}
|
|
1487
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1488
|
+
const localVarHeaderParameter = {};
|
|
1489
|
+
const localVarQueryParameter = {};
|
|
1490
|
+
// authentication accessToken required
|
|
1491
|
+
// http bearer authentication required
|
|
1492
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1493
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1495
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1496
|
+
return {
|
|
1497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1498
|
+
options: localVarRequestOptions,
|
|
1499
|
+
};
|
|
1500
|
+
}),
|
|
1466
1501
|
/**
|
|
1467
1502
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
1468
1503
|
* @param {string} walletId Wallet ID
|
|
@@ -2194,6 +2229,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
2194
2229
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2195
2230
|
});
|
|
2196
2231
|
},
|
|
2232
|
+
/**
|
|
2233
|
+
* Gets a specific notification by state
|
|
2234
|
+
* @param {string} walletId Wallet ID
|
|
2235
|
+
* @param {string} state Verifier state
|
|
2236
|
+
* @param {*} [options] Override http request option.
|
|
2237
|
+
* @throws {RequiredError}
|
|
2238
|
+
*/
|
|
2239
|
+
walletNotificationGetByState(walletId, state, options) {
|
|
2240
|
+
var _a, _b, _c;
|
|
2241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletNotificationGetByState(walletId, state, options);
|
|
2243
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2244
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletNotificationGetByState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2245
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2246
|
+
});
|
|
2247
|
+
},
|
|
2197
2248
|
/**
|
|
2198
2249
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
2199
2250
|
* @param {string} walletId Wallet ID
|
|
@@ -2635,6 +2686,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2635
2686
|
walletList(options) {
|
|
2636
2687
|
return localVarFp.walletList(options).then((request) => request(axios, basePath));
|
|
2637
2688
|
},
|
|
2689
|
+
/**
|
|
2690
|
+
* Gets a specific notification by state
|
|
2691
|
+
* @param {string} walletId Wallet ID
|
|
2692
|
+
* @param {string} state Verifier state
|
|
2693
|
+
* @param {*} [options] Override http request option.
|
|
2694
|
+
* @throws {RequiredError}
|
|
2695
|
+
*/
|
|
2696
|
+
walletNotificationGetByState(walletId, state, options) {
|
|
2697
|
+
return localVarFp.walletNotificationGetByState(walletId, state, options).then((request) => request(axios, basePath));
|
|
2698
|
+
},
|
|
2638
2699
|
/**
|
|
2639
2700
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
2640
2701
|
* @param {string} walletId Wallet ID
|
|
@@ -3096,6 +3157,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
3096
3157
|
walletList(options) {
|
|
3097
3158
|
return (0, exports.DefaultApiFp)(this.configuration).walletList(options).then((request) => request(this.axios, this.basePath));
|
|
3098
3159
|
}
|
|
3160
|
+
/**
|
|
3161
|
+
* Gets a specific notification by state
|
|
3162
|
+
* @param {string} walletId Wallet ID
|
|
3163
|
+
* @param {string} state Verifier state
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
* @memberof DefaultApi
|
|
3167
|
+
*/
|
|
3168
|
+
walletNotificationGetByState(walletId, state, options) {
|
|
3169
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletNotificationGetByState(walletId, state, options).then((request) => request(this.axios, this.basePath));
|
|
3170
|
+
}
|
|
3099
3171
|
/**
|
|
3100
3172
|
* Provides wallet notifications that can be used to audit the wallet activity.
|
|
3101
3173
|
* @param {string} walletId Wallet ID
|