@mitumba/sdk 1.26.0 → 1.27.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 +73 -1
- package/dist/index.d.ts +73 -1
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -434,6 +434,13 @@ var AuthModule = class {
|
|
|
434
434
|
async becomeSeller(input, options) {
|
|
435
435
|
return this.client.post("/auth/become-seller", input, options);
|
|
436
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* Upgrade the current user to a bale (wholesale) seller role.
|
|
439
|
+
* Mutually exclusive with retail seller — 409 if already a retail seller.
|
|
440
|
+
*/
|
|
441
|
+
async becomeBaleSeller(input, options) {
|
|
442
|
+
return this.client.post("/auth/become-bale-seller", input, options);
|
|
443
|
+
}
|
|
437
444
|
/**
|
|
438
445
|
* Check if the account is eligible for deletion and what blockers exist.
|
|
439
446
|
*/
|
|
@@ -1467,6 +1474,27 @@ var WholesaleModule = class {
|
|
|
1467
1474
|
options
|
|
1468
1475
|
);
|
|
1469
1476
|
}
|
|
1477
|
+
// ── Bale Orders ──
|
|
1478
|
+
/** Create a bale order (buyer). */
|
|
1479
|
+
async createBaleOrder(input, options) {
|
|
1480
|
+
return this.client.post("/listings/bale-orders", input, options);
|
|
1481
|
+
}
|
|
1482
|
+
/** Get the buyer's bale orders. */
|
|
1483
|
+
async myBaleOrders(options) {
|
|
1484
|
+
return this.client.get("/listings/bale-orders/mine", void 0, options);
|
|
1485
|
+
}
|
|
1486
|
+
/** Get incoming bale orders (seller). */
|
|
1487
|
+
async incomingBaleOrders(options) {
|
|
1488
|
+
return this.client.get("/listings/wholesale/orders", void 0, options);
|
|
1489
|
+
}
|
|
1490
|
+
/** Get a bale order by ID with event timeline. */
|
|
1491
|
+
async getBaleOrder(id, options) {
|
|
1492
|
+
return this.client.get(`/listings/bale-orders/${id}`, void 0, options);
|
|
1493
|
+
}
|
|
1494
|
+
/** Transition a bale order status. */
|
|
1495
|
+
async transitionBaleOrder(id, action, options) {
|
|
1496
|
+
return this.client.post(`/listings/bale-orders/${id}/transition`, { action }, options);
|
|
1497
|
+
}
|
|
1470
1498
|
};
|
|
1471
1499
|
|
|
1472
1500
|
// src/types/auth.ts
|
|
@@ -1497,6 +1525,9 @@ var DISPUTE_REASONS = ["not_received", "not_as_described", "damaged", "counterfe
|
|
|
1497
1525
|
var DESIRED_RESOLUTIONS = ["refund", "replacement", "partial_refund"];
|
|
1498
1526
|
var DISPUTE_STATUSES = ["open", "seller_responded", "under_review", "resolved_refund", "resolved_release", "resolved_partial", "withdrawn"];
|
|
1499
1527
|
|
|
1528
|
+
// src/types/wholesale.ts
|
|
1529
|
+
var BALE_ORDER_STATUSES = ["pending_payment", "paid", "confirmed", "in_transit", "delivered", "completed", "cancelled"];
|
|
1530
|
+
|
|
1500
1531
|
// src/index.ts
|
|
1501
1532
|
var MitumbaClient = class {
|
|
1502
1533
|
api;
|
|
@@ -1582,6 +1613,6 @@ var MitumbaClient = class {
|
|
|
1582
1613
|
}
|
|
1583
1614
|
};
|
|
1584
1615
|
|
|
1585
|
-
export { APIClient, APIError, AdminModule, AuthModule, BusinessesModule, CONDITIONS, CartModule, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DisputesModule, IDBTokenStore, LISTING_STATUSES, ListingsModule, MailerModule, MemoryTokenStore, MessagesModule, MitumbaClient, NotificationsModule, ORDER_STATUSES, OrdersModule, PAYMENT_STATUSES, PayModule, ReportsModule, ReviewsModule, SearchModule, SettingsModule, StoresModule, TWO_FACTOR_METHOD_TYPES, UploadsModule, VaziModule, WholesaleModule, WishlistsModule, createTokenStore };
|
|
1616
|
+
export { APIClient, APIError, AdminModule, AuthModule, BALE_ORDER_STATUSES, BusinessesModule, CONDITIONS, CartModule, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, DisputesModule, IDBTokenStore, LISTING_STATUSES, ListingsModule, MailerModule, MemoryTokenStore, MessagesModule, MitumbaClient, NotificationsModule, ORDER_STATUSES, OrdersModule, PAYMENT_STATUSES, PayModule, ReportsModule, ReviewsModule, SearchModule, SettingsModule, StoresModule, TWO_FACTOR_METHOD_TYPES, UploadsModule, VaziModule, WholesaleModule, WishlistsModule, createTokenStore };
|
|
1586
1617
|
//# sourceMappingURL=index.mjs.map
|
|
1587
1618
|
//# sourceMappingURL=index.mjs.map
|