@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 CHANGED
@@ -3597,6 +3597,17 @@ declare class WholesaleModule {
3597
3597
  * @throws {APIError} On network or server errors
3598
3598
  */
3599
3599
  uploadBaleImage(baleId: string, file: Blob, index: number, options?: RequestOptions): Promise<BaleImageUploadResult>;
3600
+ /**
3601
+ * Remove a bale image from its slot (requires the owning wholesale store).
3602
+ *
3603
+ * @param baleId - The bale whose image is being removed
3604
+ * @param index - The slot index; slot 0 is the cover
3605
+ * @returns `{ ok: true }` on success
3606
+ * @throws {APIError} On network or server errors
3607
+ */
3608
+ removeBaleImage(baleId: string, index: number, options?: RequestOptions): Promise<{
3609
+ ok: true;
3610
+ }>;
3600
3611
  /** Browse the wholesale bale feed (public). */
3601
3612
  wholesaleFeed(params?: WholesaleFeedParams, options?: RequestOptions): Promise<{
3602
3613
  data: BaleFeedItem[];
package/dist/index.d.ts CHANGED
@@ -3597,6 +3597,17 @@ declare class WholesaleModule {
3597
3597
  * @throws {APIError} On network or server errors
3598
3598
  */
3599
3599
  uploadBaleImage(baleId: string, file: Blob, index: number, options?: RequestOptions): Promise<BaleImageUploadResult>;
3600
+ /**
3601
+ * Remove a bale image from its slot (requires the owning wholesale store).
3602
+ *
3603
+ * @param baleId - The bale whose image is being removed
3604
+ * @param index - The slot index; slot 0 is the cover
3605
+ * @returns `{ ok: true }` on success
3606
+ * @throws {APIError} On network or server errors
3607
+ */
3608
+ removeBaleImage(baleId: string, index: number, options?: RequestOptions): Promise<{
3609
+ ok: true;
3610
+ }>;
3600
3611
  /** Browse the wholesale bale feed (public). */
3601
3612
  wholesaleFeed(params?: WholesaleFeedParams, options?: RequestOptions): Promise<{
3602
3613
  data: BaleFeedItem[];
package/dist/index.js CHANGED
@@ -2304,6 +2304,17 @@ var WholesaleModule = class {
2304
2304
  formData.append("index", String(index));
2305
2305
  return this.client.post(`/listings/bales/${baleId}/images/upload`, formData, options);
2306
2306
  }
2307
+ /**
2308
+ * Remove a bale image from its slot (requires the owning wholesale store).
2309
+ *
2310
+ * @param baleId - The bale whose image is being removed
2311
+ * @param index - The slot index; slot 0 is the cover
2312
+ * @returns `{ ok: true }` on success
2313
+ * @throws {APIError} On network or server errors
2314
+ */
2315
+ async removeBaleImage(baleId, index, options) {
2316
+ return this.client.delete(`/listings/bales/${baleId}/images/${index}`, void 0, options);
2317
+ }
2307
2318
  // ── Feed ──
2308
2319
  /** Browse the wholesale bale feed (public). */
2309
2320
  async wholesaleFeed(params, options) {