@monaco-protocol/client-v2 0.0.3 → 0.0.54

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateWalletRequest, PagedMarketPositionResponse, PagedTransactionResponse, TransferResponse, WalletResponse } from '../models/index';
13
+ import type { CreateWalletRequest, PagedMarketPositionResponse, PagedTransactionResponse, PagedWalletResponse, TransferResponse, WalletResponse } from '../models/index';
14
14
  export interface CreateWalletOperationRequest {
15
15
  authorization: string;
16
16
  createWalletRequest: CreateWalletRequest;
@@ -105,12 +105,12 @@ export declare class WalletsApi extends runtime.BaseAPI {
105
105
  * Fetch a list of wallets for the current user, filtered by the provided walletFilter param
106
106
  * Fetch a list of wallets
107
107
  */
108
- getWalletsRaw(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
108
+ getWalletsRaw(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedWalletResponse>>;
109
109
  /**
110
110
  * Fetch a list of wallets for the current user, filtered by the provided walletFilter param
111
111
  * Fetch a list of wallets
112
112
  */
113
- getWallets(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
113
+ getWallets(requestParameters: GetWalletsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedWalletResponse>;
114
114
  /**
115
115
  * Withdraw Funds for the current user\'s wallet
116
116
  * Withdraw Funds
@@ -271,7 +271,7 @@ class WalletsApi extends runtime.BaseAPI {
271
271
  headers: headerParameters,
272
272
  query: queryParameters,
273
273
  }, initOverrides);
274
- return new runtime.VoidApiResponse(response);
274
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PagedWalletResponseFromJSON)(jsonValue));
275
275
  });
276
276
  }
277
277
  /**
@@ -280,7 +280,8 @@ class WalletsApi extends runtime.BaseAPI {
280
280
  */
281
281
  getWallets(requestParameters, initOverrides) {
282
282
  return __awaiter(this, void 0, void 0, function* () {
283
- yield this.getWalletsRaw(requestParameters, initOverrides);
283
+ const response = yield this.getWalletsRaw(requestParameters, initOverrides);
284
+ return yield response.value();
284
285
  });
285
286
  }
286
287
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.3",
3
+ "version": "0.0.54",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [