@mivis/petmart-api 1.2.259 → 1.2.260

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 +122 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.259",
3
+ "version": "1.2.260",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -603,6 +603,12 @@ declare namespace Components {
603
603
  desc?: string;
604
604
  h1?: string;
605
605
  seoText?: string;
606
+ suggested_characteristics?: ISuggestedCharacteristic[];
607
+ }
608
+
609
+ export interface ISuggestedCharacteristic {
610
+ name: string;
611
+ values: string[];
606
612
  }
607
613
 
608
614
  export interface IUpdateSubCategoryRequest
@@ -2344,5 +2350,121 @@ declare namespace Components {
2344
2350
  createdAt: Date;
2345
2351
  updatedAt: Date;
2346
2352
  }
2353
+
2354
+ /**
2355
+ * Порядок сортировки
2356
+ */
2357
+ export enum SortOrder {
2358
+ ASC = 'asc',
2359
+ DESC = 'desc',
2360
+ }
2361
+
2362
+ /**
2363
+ * Payload для запроса на улучшение описания
2364
+ */
2365
+ export interface EnhanceDescriptionPayload {
2366
+ productId: string;
2367
+ additionalPrompt?: string;
2368
+ }
2369
+
2370
+ /**
2371
+ * Payload для запроса на улучшение характеристик
2372
+ */
2373
+ export interface EnhanceCharacteristicsPayload {
2374
+ productId: string;
2375
+ }
2376
+
2377
+ /**
2378
+ * Payload для запроса на улучшение изображения
2379
+ */
2380
+ export interface EnhanceImagePayload {
2381
+ productId: string;
2382
+ type?: string;
2383
+ additionalPrompt?: string;
2384
+ }
2385
+
2386
+ /**
2387
+ * Bulk payload для массового улучшения
2388
+ */
2389
+ export interface EnhanceBulkPayload {
2390
+ productIds: string[];
2391
+ description: boolean;
2392
+ characteristics: boolean;
2393
+ image: boolean;
2394
+ }
2395
+
2396
+ /**
2397
+ * Интерфейс для ответа со списком улучшений
2398
+ */
2399
+ export interface EnhancementListResponse {
2400
+ items: EnhancementResponse[];
2401
+ pagination: {
2402
+ totalItems: number;
2403
+ itemsPerPage: number;
2404
+ totalPages: number;
2405
+ currentPage: number;
2406
+ sortBy: string;
2407
+ sortOrder: SortOrder;
2408
+ };
2409
+ }
2410
+
2411
+ /**
2412
+ * Базовый интерфейс улучшения
2413
+ */
2414
+ export interface EnhancementResponse {
2415
+ _id: string;
2416
+ productId: string;
2417
+ old_desc: string;
2418
+ ai_characteristics_variants: EnhancementCharacteristicsResponse[];
2419
+ ai_description_variants: EnhancementDescriptionResponse[];
2420
+ ai_image_variants: EnhancementImageResponse[];
2421
+ createdAt: Date;
2422
+ updatedAt: Date;
2423
+ }
2424
+
2425
+ export interface EnhancementDescriptionResponse {
2426
+ _id: string;
2427
+ productId: string;
2428
+ new_desc: string;
2429
+ status: string;
2430
+ additionalPrompt?: string;
2431
+ createdAt: Date;
2432
+ updatedAt: Date;
2433
+ }
2434
+
2435
+ export interface EnhancementCharacteristicsResponse {
2436
+ _id: string;
2437
+ productId: string;
2438
+ characteristics: ICharacteristic[];
2439
+ status: string;
2440
+ createdAt: Date;
2441
+ updatedAt: Date;
2442
+ }
2443
+
2444
+ export interface EnhancementImageResponse {
2445
+ _id: string;
2446
+ productId: string;
2447
+ image: string;
2448
+ type: EEnhancementImageType;
2449
+ status: string;
2450
+ createdAt: Date;
2451
+ updatedAt: Date;
2452
+ }
2453
+
2454
+ export enum EEnhancementImageType {
2455
+ BACKGROUND = 'background',
2456
+ FULL = 'full',
2457
+ INFOGRAPHIC = 'infographic',
2458
+ }
2459
+
2460
+ /**
2461
+ * Общий интерфейс для пагинации
2462
+ */
2463
+ export interface PaginateDto {
2464
+ page?: number;
2465
+ limit?: number;
2466
+ sortBy?: string;
2467
+ sortOrder?: SortOrder;
2468
+ }
2347
2469
  }
2348
2470
  }