@mivis/petmart-api 1.2.158 → 1.2.160
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 +18 -1
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -264,6 +264,7 @@ declare namespace Components {
|
|
|
264
264
|
purchases_count: number;
|
|
265
265
|
viewed?: number;
|
|
266
266
|
number: number;
|
|
267
|
+
slug: string;
|
|
267
268
|
createdAt: Date;
|
|
268
269
|
updatedAt: Date;
|
|
269
270
|
}
|
|
@@ -278,6 +279,7 @@ declare namespace Components {
|
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
export interface IUserProductQueryRequest extends FilterBaseQuery {
|
|
282
|
+
category_id?: string;
|
|
281
283
|
subCategory_id?: string;
|
|
282
284
|
seller_id?: string;
|
|
283
285
|
name?: string;
|
|
@@ -308,15 +310,19 @@ declare namespace Components {
|
|
|
308
310
|
_id: string;
|
|
309
311
|
name: string;
|
|
310
312
|
category_id: string;
|
|
313
|
+
slug: string;
|
|
311
314
|
};
|
|
312
315
|
category_id: {
|
|
313
316
|
_id: string;
|
|
317
|
+
photo: string;
|
|
314
318
|
name: string;
|
|
319
|
+
slug: string;
|
|
315
320
|
};
|
|
316
321
|
seller_id?: {
|
|
317
322
|
_id: string;
|
|
318
323
|
shop_details: IShopDetails;
|
|
319
324
|
delivery_ways: IDeliveryWays;
|
|
325
|
+
slug: string;
|
|
320
326
|
};
|
|
321
327
|
vendor_code: string;
|
|
322
328
|
price: number;
|
|
@@ -329,6 +335,7 @@ declare namespace Components {
|
|
|
329
335
|
purchases_count: number;
|
|
330
336
|
viewed?: number;
|
|
331
337
|
number: number;
|
|
338
|
+
slug: string;
|
|
332
339
|
createdAt: Date;
|
|
333
340
|
updatedAt: Date;
|
|
334
341
|
}
|
|
@@ -405,6 +412,7 @@ declare namespace Components {
|
|
|
405
412
|
_id: string;
|
|
406
413
|
name: string;
|
|
407
414
|
photo: string;
|
|
415
|
+
slug: string;
|
|
408
416
|
createdAt: Date;
|
|
409
417
|
updatedAt: Date;
|
|
410
418
|
}
|
|
@@ -414,10 +422,16 @@ declare namespace Components {
|
|
|
414
422
|
parsed: string;
|
|
415
423
|
}
|
|
416
424
|
|
|
425
|
+
export interface IGetCategoryQuery extends FilterBaseQuery {
|
|
426
|
+
parsed?: string;
|
|
427
|
+
}
|
|
428
|
+
|
|
417
429
|
export interface IParsedCategory {
|
|
418
430
|
value: string;
|
|
419
431
|
title: string;
|
|
420
432
|
type: string;
|
|
433
|
+
photo: string;
|
|
434
|
+
slug: string;
|
|
421
435
|
children: IParsedSubCategory[];
|
|
422
436
|
}
|
|
423
437
|
|
|
@@ -425,6 +439,7 @@ declare namespace Components {
|
|
|
425
439
|
value: string;
|
|
426
440
|
title: string;
|
|
427
441
|
type: string;
|
|
442
|
+
slug: string;
|
|
428
443
|
status: ESubCategoryStatus;
|
|
429
444
|
}
|
|
430
445
|
|
|
@@ -445,6 +460,7 @@ declare namespace Components {
|
|
|
445
460
|
name: string;
|
|
446
461
|
category_id: ICategory;
|
|
447
462
|
status: ESubCategoryStatus;
|
|
463
|
+
slug: string;
|
|
448
464
|
createdAt: Date;
|
|
449
465
|
updatedAt: Date;
|
|
450
466
|
}
|
|
@@ -574,6 +590,7 @@ declare namespace Components {
|
|
|
574
590
|
commission: number;
|
|
575
591
|
status: ESellerStatus;
|
|
576
592
|
number: number;
|
|
593
|
+
slug: string;
|
|
577
594
|
createdAt: Date;
|
|
578
595
|
updatedAt: Date;
|
|
579
596
|
}
|
|
@@ -704,7 +721,7 @@ declare namespace Components {
|
|
|
704
721
|
|
|
705
722
|
export type IPopulatedOrderSeller = Pick<
|
|
706
723
|
ISeller,
|
|
707
|
-
'_id' | 'shop_details' | 'user_id' | 'nearest_point_of_cdek'
|
|
724
|
+
'_id' | 'shop_details' | 'user_id' | 'nearest_point_of_cdek' | 'slug'
|
|
708
725
|
>;
|
|
709
726
|
|
|
710
727
|
export type IPopulatedOrderUser = Pick<
|