@mivis/petmart-api 1.2.261 → 1.2.263

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 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.261",
3
+ "version": "1.2.263",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -458,6 +458,7 @@ declare namespace Components {
458
458
  type?: EProductType;
459
459
  toDeletePhotos?: string[];
460
460
  toDeleteVariations?: string[];
461
+ generatedImage?: string;
461
462
  }
462
463
 
463
464
  export interface ICreateCart {
@@ -2379,6 +2380,7 @@ declare namespace Components {
2379
2380
  * Payload для запроса на улучшение изображения
2380
2381
  */
2381
2382
  export interface EnhanceImagePayload {
2383
+ photo?: File;
2382
2384
  productId: string;
2383
2385
  type?: string;
2384
2386
  additionalPrompt?: string;
@@ -2414,7 +2416,7 @@ declare namespace Components {
2414
2416
  */
2415
2417
  export interface EnhancementResponse {
2416
2418
  _id: string;
2417
- productId: string;
2419
+ product: PopulatedProduct;
2418
2420
  old_desc: string;
2419
2421
  ai_characteristics_variants: EnhancementCharacteristicsResponse[];
2420
2422
  ai_description_variants: EnhancementDescriptionResponse[];
@@ -2423,6 +2425,22 @@ declare namespace Components {
2423
2425
  updatedAt: Date;
2424
2426
  }
2425
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
+
2426
2444
  export interface EnhancementDescriptionResponse {
2427
2445
  _id: string;
2428
2446
  productId: string;