@triveria/wallet 0.0.81 → 0.0.83
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 +29 -0
- package/api.js +65 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1551,6 +1551,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1551
1551
|
* @throws {RequiredError}
|
|
1552
1552
|
*/
|
|
1553
1553
|
walletCreate: (wallet?: Wallet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Delete wallet.
|
|
1556
|
+
* @param {string} walletId
|
|
1557
|
+
* @param {*} [options] Override http request option.
|
|
1558
|
+
* @throws {RequiredError}
|
|
1559
|
+
*/
|
|
1560
|
+
walletDelete: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1554
1561
|
/**
|
|
1555
1562
|
* Provides wallet details
|
|
1556
1563
|
* @param {string} walletId
|
|
@@ -1812,6 +1819,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1812
1819
|
* @throws {RequiredError}
|
|
1813
1820
|
*/
|
|
1814
1821
|
walletCreate(wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
|
|
1822
|
+
/**
|
|
1823
|
+
* Delete wallet.
|
|
1824
|
+
* @param {string} walletId
|
|
1825
|
+
* @param {*} [options] Override http request option.
|
|
1826
|
+
* @throws {RequiredError}
|
|
1827
|
+
*/
|
|
1828
|
+
walletDelete(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1815
1829
|
/**
|
|
1816
1830
|
* Provides wallet details
|
|
1817
1831
|
* @param {string} walletId
|
|
@@ -2073,6 +2087,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2073
2087
|
* @throws {RequiredError}
|
|
2074
2088
|
*/
|
|
2075
2089
|
walletCreate(wallet?: Wallet, options?: any): AxiosPromise<WalletIdObject>;
|
|
2090
|
+
/**
|
|
2091
|
+
* Delete wallet.
|
|
2092
|
+
* @param {string} walletId
|
|
2093
|
+
* @param {*} [options] Override http request option.
|
|
2094
|
+
* @throws {RequiredError}
|
|
2095
|
+
*/
|
|
2096
|
+
walletDelete(walletId: string, options?: any): AxiosPromise<void>;
|
|
2076
2097
|
/**
|
|
2077
2098
|
* Provides wallet details
|
|
2078
2099
|
* @param {string} walletId
|
|
@@ -2365,6 +2386,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2365
2386
|
* @memberof DefaultApi
|
|
2366
2387
|
*/
|
|
2367
2388
|
walletCreate(wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
|
|
2389
|
+
/**
|
|
2390
|
+
* Delete wallet.
|
|
2391
|
+
* @param {string} walletId
|
|
2392
|
+
* @param {*} [options] Override http request option.
|
|
2393
|
+
* @throws {RequiredError}
|
|
2394
|
+
* @memberof DefaultApi
|
|
2395
|
+
*/
|
|
2396
|
+
walletDelete(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2368
2397
|
/**
|
|
2369
2398
|
* Provides wallet details
|
|
2370
2399
|
* @param {string} walletId
|
package/api.js
CHANGED
|
@@ -1087,6 +1087,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1087
1087
|
options: localVarRequestOptions,
|
|
1088
1088
|
};
|
|
1089
1089
|
}),
|
|
1090
|
+
/**
|
|
1091
|
+
* Delete wallet.
|
|
1092
|
+
* @param {string} walletId
|
|
1093
|
+
* @param {*} [options] Override http request option.
|
|
1094
|
+
* @throws {RequiredError}
|
|
1095
|
+
*/
|
|
1096
|
+
walletDelete: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1097
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1098
|
+
(0, common_1.assertParamExists)('walletDelete', 'walletId', walletId);
|
|
1099
|
+
const localVarPath = `/wallets/{wallet_id}`
|
|
1100
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
|
|
1101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1102
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1103
|
+
let baseOptions;
|
|
1104
|
+
if (configuration) {
|
|
1105
|
+
baseOptions = configuration.baseOptions;
|
|
1106
|
+
}
|
|
1107
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1108
|
+
const localVarHeaderParameter = {};
|
|
1109
|
+
const localVarQueryParameter = {};
|
|
1110
|
+
// authentication accessToken required
|
|
1111
|
+
// http bearer authentication required
|
|
1112
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1115
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1116
|
+
return {
|
|
1117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1118
|
+
options: localVarRequestOptions,
|
|
1119
|
+
};
|
|
1120
|
+
}),
|
|
1090
1121
|
/**
|
|
1091
1122
|
* Provides wallet details
|
|
1092
1123
|
* @param {string} walletId
|
|
@@ -1679,6 +1710,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
1679
1710
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1680
1711
|
});
|
|
1681
1712
|
},
|
|
1713
|
+
/**
|
|
1714
|
+
* Delete wallet.
|
|
1715
|
+
* @param {string} walletId
|
|
1716
|
+
* @param {*} [options] Override http request option.
|
|
1717
|
+
* @throws {RequiredError}
|
|
1718
|
+
*/
|
|
1719
|
+
walletDelete(walletId, options) {
|
|
1720
|
+
var _a, _b, _c;
|
|
1721
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1722
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletDelete(walletId, options);
|
|
1723
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1724
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1725
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1726
|
+
});
|
|
1727
|
+
},
|
|
1682
1728
|
/**
|
|
1683
1729
|
* Provides wallet details
|
|
1684
1730
|
* @param {string} walletId
|
|
@@ -2034,6 +2080,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2034
2080
|
walletCreate(wallet, options) {
|
|
2035
2081
|
return localVarFp.walletCreate(wallet, options).then((request) => request(axios, basePath));
|
|
2036
2082
|
},
|
|
2083
|
+
/**
|
|
2084
|
+
* Delete wallet.
|
|
2085
|
+
* @param {string} walletId
|
|
2086
|
+
* @param {*} [options] Override http request option.
|
|
2087
|
+
* @throws {RequiredError}
|
|
2088
|
+
*/
|
|
2089
|
+
walletDelete(walletId, options) {
|
|
2090
|
+
return localVarFp.walletDelete(walletId, options).then((request) => request(axios, basePath));
|
|
2091
|
+
},
|
|
2037
2092
|
/**
|
|
2038
2093
|
* Provides wallet details
|
|
2039
2094
|
* @param {string} walletId
|
|
@@ -2394,6 +2449,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2394
2449
|
walletCreate(wallet, options) {
|
|
2395
2450
|
return (0, exports.DefaultApiFp)(this.configuration).walletCreate(wallet, options).then((request) => request(this.axios, this.basePath));
|
|
2396
2451
|
}
|
|
2452
|
+
/**
|
|
2453
|
+
* Delete wallet.
|
|
2454
|
+
* @param {string} walletId
|
|
2455
|
+
* @param {*} [options] Override http request option.
|
|
2456
|
+
* @throws {RequiredError}
|
|
2457
|
+
* @memberof DefaultApi
|
|
2458
|
+
*/
|
|
2459
|
+
walletDelete(walletId, options) {
|
|
2460
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletDelete(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
2461
|
+
}
|
|
2397
2462
|
/**
|
|
2398
2463
|
* Provides wallet details
|
|
2399
2464
|
* @param {string} walletId
|