@riocrypto/common 1.0.1276 → 1.0.1277
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.
|
@@ -174,7 +174,7 @@ export declare class RioAdminClient {
|
|
|
174
174
|
volume: number;
|
|
175
175
|
revenue: number;
|
|
176
176
|
}>;
|
|
177
|
-
getVolumeAndRevenue(days
|
|
177
|
+
getVolumeAndRevenue(days?: Number, months?: Number, userId?: string): Promise<{
|
|
178
178
|
volume: number;
|
|
179
179
|
revenue: number;
|
|
180
180
|
}>;
|
|
@@ -582,12 +582,13 @@ class RioAdminClient {
|
|
|
582
582
|
return response.data;
|
|
583
583
|
});
|
|
584
584
|
}
|
|
585
|
-
getVolumeAndRevenue(days, userId) {
|
|
585
|
+
getVolumeAndRevenue(days, months, userId) {
|
|
586
586
|
return __awaiter(this, void 0, void 0, function* () {
|
|
587
587
|
const response = yield this.axios.get(`/api/data/volume`, {
|
|
588
588
|
params: {
|
|
589
|
-
days,
|
|
590
|
-
|
|
589
|
+
days: days ? days : undefined,
|
|
590
|
+
months: months ? months : undefined,
|
|
591
|
+
userId: userId ? userId : undefined,
|
|
591
592
|
},
|
|
592
593
|
});
|
|
593
594
|
return response.data;
|