@gethydra/sdk 0.1.12 → 0.1.13

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.ts CHANGED
@@ -17796,6 +17796,11 @@ declare class CustomerPhotosResource {
17796
17796
  * Delete a customer photo (soft delete, secret key only).
17797
17797
  */
17798
17798
  delete(id: string): Promise<void>;
17799
+ /**
17800
+ * Replace the image file on an existing customer photo (secret key only).
17801
+ * Preserves all metadata, approval status, and moderation history.
17802
+ */
17803
+ replaceImage(id: string, formData: FormData): Promise<DataResponse<CustomerPhoto>>;
17799
17804
  /**
17800
17805
  * Get approved customer photos for a product (storefront-safe, publishable key works).
17801
17806
  * Returns up to 24 approved photos for display on product pages.
package/dist/index.js CHANGED
@@ -661,6 +661,13 @@ var CustomerPhotosResource = class {
661
661
  async delete(id) {
662
662
  return this.client.request("DELETE", `/v1/customer-photos/${id}`);
663
663
  }
664
+ /**
665
+ * Replace the image file on an existing customer photo (secret key only).
666
+ * Preserves all metadata, approval status, and moderation history.
667
+ */
668
+ async replaceImage(id, formData) {
669
+ return this.client.upload(`/v1/customer-photos/${id}/replace-image`, formData);
670
+ }
664
671
  /**
665
672
  * Get approved customer photos for a product (storefront-safe, publishable key works).
666
673
  * Returns up to 24 approved photos for display on product pages.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gethydra/sdk",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Official TypeScript SDK for the Hydra Commerce API",
5
5
  "license": "MIT",
6
6
  "author": "Grant Capital Group",