@mivis/petmart-api 1.2.262 → 1.2.264

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +19 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.262",
3
+ "version": "1.2.264",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -2380,6 +2380,7 @@ declare namespace Components {
2380
2380
  * Payload для запроса на улучшение изображения
2381
2381
  */
2382
2382
  export interface EnhanceImagePayload {
2383
+ photo?: File;
2383
2384
  productId: string;
2384
2385
  type?: string;
2385
2386
  additionalPrompt?: string;
@@ -2415,15 +2416,31 @@ declare namespace Components {
2415
2416
  */
2416
2417
  export interface EnhancementResponse {
2417
2418
  _id: string;
2418
- productId: string;
2419
+ product: PopulatedProduct;
2419
2420
  old_desc: string;
2420
2421
  ai_characteristics_variants: EnhancementCharacteristicsResponse[];
2421
- ai_description_variants: EnhancementDescriptionResponse[];
2422
+ ai_descriptions_variants: EnhancementDescriptionResponse[];
2422
2423
  ai_image_variants: EnhancementImageResponse[];
2423
2424
  createdAt: Date;
2424
2425
  updatedAt: Date;
2425
2426
  }
2426
2427
 
2428
+ export interface PopulatedProduct {
2429
+ _id: string;
2430
+ vendor_code?: string;
2431
+ article?: string;
2432
+ name: string;
2433
+ photo: string[];
2434
+ category: {
2435
+ _id: string;
2436
+ name: string;
2437
+ };
2438
+ subCategory: {
2439
+ _id: string;
2440
+ name: string;
2441
+ };
2442
+ }
2443
+
2427
2444
  export interface EnhancementDescriptionResponse {
2428
2445
  _id: string;
2429
2446
  productId: string;