@mitumba/sdk 5.7.0 → 5.8.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.d.mts +29 -2
- package/dist/index.d.ts +29 -2
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
}
|
|
@@ -2401,6 +2402,17 @@ var AdminModule = class {
|
|
|
2401
2402
|
async unverifyWholesaleStore(storeId, options) {
|
|
2402
2403
|
return this.client.post(`/admin/wholesale/stores/${storeId}/unverify`, void 0, options);
|
|
2403
2404
|
}
|
|
2405
|
+
/**
|
|
2406
|
+
* Wholesale applications by review state: `pending` (the queue, default) or `rejected` (refused,
|
|
2407
|
+
* with `review_note`). Supersedes {@link listPendingWholesaleStores}, which lists pending only.
|
|
2408
|
+
*/
|
|
2409
|
+
async listWholesaleApplications(params, options) {
|
|
2410
|
+
return this.client.get("/admin/wholesale/pending", params, options);
|
|
2411
|
+
}
|
|
2412
|
+
/** Refuse a wholesale application. The reason is recorded and shown to the seller, who can resubmit. */
|
|
2413
|
+
async rejectWholesaleStore(storeId, reason, options) {
|
|
2414
|
+
return this.client.post(`/admin/wholesale/stores/${encodeURIComponent(storeId)}/reject`, { reason }, options);
|
|
2415
|
+
}
|
|
2404
2416
|
// ── Broadcast ──
|
|
2405
2417
|
async broadcast(input, options) {
|
|
2406
2418
|
return this.client.post("/admin/broadcast", input, options);
|