@mitumba/sdk 2.0.0 → 2.1.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 +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2302,6 +2302,17 @@ var WholesaleModule = class {
|
|
|
2302
2302
|
formData.append("index", String(index));
|
|
2303
2303
|
return this.client.post(`/listings/bales/${baleId}/images/upload`, formData, options);
|
|
2304
2304
|
}
|
|
2305
|
+
/**
|
|
2306
|
+
* Remove a bale image from its slot (requires the owning wholesale store).
|
|
2307
|
+
*
|
|
2308
|
+
* @param baleId - The bale whose image is being removed
|
|
2309
|
+
* @param index - The slot index; slot 0 is the cover
|
|
2310
|
+
* @returns `{ ok: true }` on success
|
|
2311
|
+
* @throws {APIError} On network or server errors
|
|
2312
|
+
*/
|
|
2313
|
+
async removeBaleImage(baleId, index, options) {
|
|
2314
|
+
return this.client.delete(`/listings/bales/${baleId}/images/${index}`, void 0, options);
|
|
2315
|
+
}
|
|
2305
2316
|
// ── Feed ──
|
|
2306
2317
|
/** Browse the wholesale bale feed (public). */
|
|
2307
2318
|
async wholesaleFeed(params, options) {
|