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