@triveria/wallet 0.0.211 → 0.0.212

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.
Files changed (3) hide show
  1. package/api.d.ts +8 -4
  2. package/api.js +14 -7
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -2544,10 +2544,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2544
2544
  walletKeys: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2545
2545
  /**
2546
2546
  * Provides list of wallets owned by the authenticated client.
2547
+ * @param {string} [ownerId]
2547
2548
  * @param {*} [options] Override http request option.
2548
2549
  * @throws {RequiredError}
2549
2550
  */
2550
- walletList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2551
+ walletList: (ownerId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2551
2552
  /**
2552
2553
  * Gets a specific notification by state
2553
2554
  * @param {string} walletId Wallet ID
@@ -2926,10 +2927,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2926
2927
  }>>;
2927
2928
  /**
2928
2929
  * Provides list of wallets owned by the authenticated client.
2930
+ * @param {string} [ownerId]
2929
2931
  * @param {*} [options] Override http request option.
2930
2932
  * @throws {RequiredError}
2931
2933
  */
2932
- walletList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WalletListItem>>>;
2934
+ walletList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WalletListItem>>>;
2933
2935
  /**
2934
2936
  * Gets a specific notification by state
2935
2937
  * @param {string} walletId Wallet ID
@@ -3308,10 +3310,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3308
3310
  }>;
3309
3311
  /**
3310
3312
  * Provides list of wallets owned by the authenticated client.
3313
+ * @param {string} [ownerId]
3311
3314
  * @param {*} [options] Override http request option.
3312
3315
  * @throws {RequiredError}
3313
3316
  */
3314
- walletList(options?: RawAxiosRequestConfig): AxiosPromise<Array<WalletListItem>>;
3317
+ walletList(ownerId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WalletListItem>>;
3315
3318
  /**
3316
3319
  * Gets a specific notification by state
3317
3320
  * @param {string} walletId Wallet ID
@@ -3732,11 +3735,12 @@ export declare class DefaultApi extends BaseAPI {
3732
3735
  }, any>>;
3733
3736
  /**
3734
3737
  * Provides list of wallets owned by the authenticated client.
3738
+ * @param {string} [ownerId]
3735
3739
  * @param {*} [options] Override http request option.
3736
3740
  * @throws {RequiredError}
3737
3741
  * @memberof DefaultApi
3738
3742
  */
3739
- walletList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletListItem[], any>>;
3743
+ walletList(ownerId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletListItem[], any>>;
3740
3744
  /**
3741
3745
  * Gets a specific notification by state
3742
3746
  * @param {string} walletId Wallet ID
package/api.js CHANGED
@@ -1540,10 +1540,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1540
1540
  }),
1541
1541
  /**
1542
1542
  * Provides list of wallets owned by the authenticated client.
1543
+ * @param {string} [ownerId]
1543
1544
  * @param {*} [options] Override http request option.
1544
1545
  * @throws {RequiredError}
1545
1546
  */
1546
- walletList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1547
+ walletList: (ownerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1547
1548
  const localVarPath = `/wallets`;
1548
1549
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1549
1550
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1557,6 +1558,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1557
1558
  // authentication accessToken required
1558
1559
  // http bearer authentication required
1559
1560
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1561
+ if (ownerId !== undefined) {
1562
+ localVarQueryParameter['ownerId'] = ownerId;
1563
+ }
1560
1564
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1561
1565
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1562
1566
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2432,13 +2436,14 @@ const DefaultApiFp = function (configuration) {
2432
2436
  },
2433
2437
  /**
2434
2438
  * Provides list of wallets owned by the authenticated client.
2439
+ * @param {string} [ownerId]
2435
2440
  * @param {*} [options] Override http request option.
2436
2441
  * @throws {RequiredError}
2437
2442
  */
2438
- walletList(options) {
2443
+ walletList(ownerId, options) {
2439
2444
  var _a, _b, _c;
2440
2445
  return __awaiter(this, void 0, void 0, function* () {
2441
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(options);
2446
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(ownerId, options);
2442
2447
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2443
2448
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2444
2449
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2952,11 +2957,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2952
2957
  },
2953
2958
  /**
2954
2959
  * Provides list of wallets owned by the authenticated client.
2960
+ * @param {string} [ownerId]
2955
2961
  * @param {*} [options] Override http request option.
2956
2962
  * @throws {RequiredError}
2957
2963
  */
2958
- walletList(options) {
2959
- return localVarFp.walletList(options).then((request) => request(axios, basePath));
2964
+ walletList(ownerId, options) {
2965
+ return localVarFp.walletList(ownerId, options).then((request) => request(axios, basePath));
2960
2966
  },
2961
2967
  /**
2962
2968
  * Gets a specific notification by state
@@ -3470,12 +3476,13 @@ class DefaultApi extends base_1.BaseAPI {
3470
3476
  }
3471
3477
  /**
3472
3478
  * Provides list of wallets owned by the authenticated client.
3479
+ * @param {string} [ownerId]
3473
3480
  * @param {*} [options] Override http request option.
3474
3481
  * @throws {RequiredError}
3475
3482
  * @memberof DefaultApi
3476
3483
  */
3477
- walletList(options) {
3478
- return (0, exports.DefaultApiFp)(this.configuration).walletList(options).then((request) => request(this.axios, this.basePath));
3484
+ walletList(ownerId, options) {
3485
+ return (0, exports.DefaultApiFp)(this.configuration).walletList(ownerId, options).then((request) => request(this.axios, this.basePath));
3479
3486
  }
3480
3487
  /**
3481
3488
  * Gets a specific notification by state
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.211",
4
+ "version": "0.0.212",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {