@riocrypto/common 1.0.1155 → 1.0.1156

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.
@@ -127,6 +127,10 @@ export declare class RioAdminClient {
127
127
  fee: number;
128
128
  volume: number;
129
129
  }>;
130
+ getTransactionLimits(userId: string): Promise<{
131
+ limit: number;
132
+ used: number;
133
+ }>;
130
134
  getWeeklyVolume(): Promise<{
131
135
  volume: number;
132
136
  revenue: number;
@@ -477,6 +477,12 @@ class RioAdminClient {
477
477
  return response.data;
478
478
  });
479
479
  }
480
+ getTransactionLimits(userId) {
481
+ return __awaiter(this, void 0, void 0, function* () {
482
+ const response = yield this.axios.get(`/api/users/${userId}/limits`);
483
+ return response.data;
484
+ });
485
+ }
480
486
  getWeeklyVolume() {
481
487
  return __awaiter(this, void 0, void 0, function* () {
482
488
  const response = yield this.axios.get(`/api/admin/volume/weekly`);
@@ -100,6 +100,10 @@ export declare class RioClient {
100
100
  volume: number;
101
101
  revenue: number;
102
102
  }>;
103
+ getTransactionLimits(userId: string): Promise<{
104
+ limit: number;
105
+ used: number;
106
+ }>;
103
107
  getQuote(id: string): Promise<Quote>;
104
108
  getChainedQuote(id: string): Promise<ChainedQuote>;
105
109
  createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
@@ -363,6 +363,12 @@ class RioClient {
363
363
  return response.data;
364
364
  });
365
365
  }
366
+ getTransactionLimits(userId) {
367
+ return __awaiter(this, void 0, void 0, function* () {
368
+ const response = yield this.axios.get(`/api/users/${userId}/limits`);
369
+ return response.data;
370
+ });
371
+ }
366
372
  getQuote(id) {
367
373
  return __awaiter(this, void 0, void 0, function* () {
368
374
  const { data } = yield this.axios.get(`/api/quotes/${id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1155",
3
+ "version": "1.0.1156",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",