@insignia-education/api-sdk-js 0.16.21 → 0.16.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.16.21",
3
+ "version": "0.16.22",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -20,6 +20,11 @@ export default class Admin {
20
20
  return this.#client.get('/admin/statistics/claude-usage', { from_date: fromDate, to_date: toDate });
21
21
  }
22
22
 
23
+ /** AWS cost per service for a date range — `{ available, services: { [serviceName]: amount }, total, currency }`. Resolves `{ available: false }` (not an error) if the configured AWS credential isn't Cost-Explorer-scoped. */
24
+ statisticsAwsCosts({ fromDate, toDate } = {}) {
25
+ return this.#client.get('/admin/statistics/aws-costs', { from_date: fromDate, to_date: toDate });
26
+ }
27
+
23
28
  /** Both rotating PayPal accounts' real available balance, keyed "1"/"2". Each resolves `{ available: false }` (not an error) if that account's "Transaction Search" feature isn't enabled in PayPal's dashboard yet. */
24
29
  statisticsPaypalBalance({ currency } = {}) {
25
30
  return this.#client.get('/admin/statistics/paypal-balance', { currency });