@mitumba/sdk 5.7.0 → 5.9.0

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/dist/index.mjs CHANGED
@@ -2275,6 +2275,7 @@ var AdminModule = class {
2275
2275
  return this.client.post(`/admin/users/${userId}/revoke-sessions`, void 0, options);
2276
2276
  }
2277
2277
  // ── Stores ──
2278
+ /** Stores, newest first. `seller_id` lists one seller's stores (exact match). */
2278
2279
  async listStores(params, options) {
2279
2280
  return this.client.get("/admin/stores", params, options);
2280
2281
  }
@@ -2377,6 +2378,13 @@ var AdminModule = class {
2377
2378
  async getAuditLog(limit = 100, options) {
2378
2379
  return this.client.get("/admin/audit", { limit }, options);
2379
2380
  }
2381
+ /**
2382
+ * The attributed, filterable audit trail, newest first. Pass `next_cursor` back as `before` for
2383
+ * the next page; it is null on the last page.
2384
+ */
2385
+ async listAuditLog(query2 = {}, options) {
2386
+ return this.client.get("/admin/audit", query2, options);
2387
+ }
2380
2388
  // ── Payout approval ──
2381
2389
  async listPayoutsAwaitingApproval(options) {
2382
2390
  return this.client.get("/admin/payouts/pending-approval", void 0, options);
@@ -2401,6 +2409,17 @@ var AdminModule = class {
2401
2409
  async unverifyWholesaleStore(storeId, options) {
2402
2410
  return this.client.post(`/admin/wholesale/stores/${storeId}/unverify`, void 0, options);
2403
2411
  }
2412
+ /**
2413
+ * Wholesale applications by review state: `pending` (the queue, default) or `rejected` (refused,
2414
+ * with `review_note`). Supersedes {@link listPendingWholesaleStores}, which lists pending only.
2415
+ */
2416
+ async listWholesaleApplications(params, options) {
2417
+ return this.client.get("/admin/wholesale/pending", params, options);
2418
+ }
2419
+ /** Refuse a wholesale application. The reason is recorded and shown to the seller, who can resubmit. */
2420
+ async rejectWholesaleStore(storeId, reason, options) {
2421
+ return this.client.post(`/admin/wholesale/stores/${encodeURIComponent(storeId)}/reject`, { reason }, options);
2422
+ }
2404
2423
  // ── Broadcast ──
2405
2424
  async broadcast(input, options) {
2406
2425
  return this.client.post("/admin/broadcast", input, options);