@riocrypto/common 1.0.1280 → 1.0.1282

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.
@@ -182,6 +182,11 @@ export declare class RioAdminClient {
182
182
  volume: number;
183
183
  revenue: number;
184
184
  }[]>;
185
+ returnOrderToNotPaid(id: string): Promise<void>;
186
+ getTotalUsers(months: number): Promise<{
187
+ businessUsers: number;
188
+ individualUsers: number;
189
+ }[]>;
185
190
  getAverageMonthlyVolumes(userId?: string): Promise<{
186
191
  volume: number;
187
192
  revenue: number;
@@ -604,6 +604,21 @@ class RioAdminClient {
604
604
  return response.data;
605
605
  });
606
606
  }
607
+ returnOrderToNotPaid(id) {
608
+ return __awaiter(this, void 0, void 0, function* () {
609
+ const response = yield this.axios.post(`/api/orders/${id}/return-to-not-paid`, {});
610
+ });
611
+ }
612
+ getTotalUsers(months) {
613
+ return __awaiter(this, void 0, void 0, function* () {
614
+ const response = yield this.axios.get(`/api/data/users/total`, {
615
+ params: {
616
+ months,
617
+ },
618
+ });
619
+ return response.data;
620
+ });
621
+ }
607
622
  getAverageMonthlyVolumes(userId) {
608
623
  return __awaiter(this, void 0, void 0, function* () {
609
624
  const response = yield this.axios.get(`/api/data/volume/average`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1280",
3
+ "version": "1.0.1282",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",