@insignia-education/api-sdk-js 0.15.125 → 0.15.126
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.
- package/package.json +1 -1
- package/src/api/v1/Admin.js +5 -0
package/package.json
CHANGED
package/src/api/v1/Admin.js
CHANGED
|
@@ -45,6 +45,11 @@ export default class Admin {
|
|
|
45
45
|
return this.#client.get('/admin/statistics/stripe-transactions', { from_date: fromDate, to_date: toDate });
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/** Our Binance Spot account's real exchange balance (every non-zero asset) — distinct from statisticsCryptoBalances()' on-chain wallet balance. Resolves `{ available: false }` if the API key isn't configured or the request fails. */
|
|
49
|
+
statisticsBinanceBalances() {
|
|
50
|
+
return this.#client.get('/admin/statistics/binance-balances');
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
/** Paginated sales-report rows for a date range, with optional course/seller/payment-method/currency filters. */
|
|
49
54
|
reportsSales({ fromDate, toDate, courseId, sellerId, paymentMethodId, currencyId, page, perPage } = {}) {
|
|
50
55
|
return this.#client.get('/admin/reports/sales', {
|