@mivis/petmart-api 1.2.191 → 1.2.193
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 +41 -1
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -482,12 +482,20 @@ declare namespace Components {
|
|
|
482
482
|
export interface ICategory {
|
|
483
483
|
_id: string;
|
|
484
484
|
name: string;
|
|
485
|
+
seoInfo?: ICategorySeoInfo;
|
|
485
486
|
photo: string;
|
|
486
487
|
slug: string;
|
|
487
488
|
createdAt: Date;
|
|
488
489
|
updatedAt: Date;
|
|
489
490
|
}
|
|
490
491
|
|
|
492
|
+
export interface ICategorySeoInfo {
|
|
493
|
+
title?: string;
|
|
494
|
+
desc?: string;
|
|
495
|
+
h1?: string;
|
|
496
|
+
seoText?: string;
|
|
497
|
+
}
|
|
498
|
+
|
|
491
499
|
export interface IAdminCategoryQueryRequest {
|
|
492
500
|
name?: string;
|
|
493
501
|
parsed: string;
|
|
@@ -502,6 +510,7 @@ declare namespace Components {
|
|
|
502
510
|
title: string;
|
|
503
511
|
type: string;
|
|
504
512
|
photo: string;
|
|
513
|
+
seoInfo?: ICategorySeoInfo;
|
|
505
514
|
slug: string;
|
|
506
515
|
children: IParsedSubCategory[];
|
|
507
516
|
}
|
|
@@ -518,6 +527,10 @@ declare namespace Components {
|
|
|
518
527
|
|
|
519
528
|
export interface ICreateCategoryRequest {
|
|
520
529
|
name: string;
|
|
530
|
+
title?: string;
|
|
531
|
+
desc?: string;
|
|
532
|
+
h1?: string;
|
|
533
|
+
seoText?: string;
|
|
521
534
|
photo: File;
|
|
522
535
|
}
|
|
523
536
|
|
|
@@ -1655,7 +1668,7 @@ declare namespace Components {
|
|
|
1655
1668
|
breed: string;
|
|
1656
1669
|
suit: string;
|
|
1657
1670
|
category: string;
|
|
1658
|
-
|
|
1671
|
+
birthDate: Date;
|
|
1659
1672
|
withersHeight: number;
|
|
1660
1673
|
price: string;
|
|
1661
1674
|
location: IHorseLocation;
|
|
@@ -1739,5 +1752,32 @@ declare namespace Components {
|
|
|
1739
1752
|
suits: ISuit[];
|
|
1740
1753
|
categories: IHorseCategory[];
|
|
1741
1754
|
}
|
|
1755
|
+
|
|
1756
|
+
export enum EViewCountEntityType {
|
|
1757
|
+
HORSE = 'horse',
|
|
1758
|
+
PRODUCT = 'product',
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
export interface IViewCount {
|
|
1762
|
+
entity_type: EViewCountEntityType;
|
|
1763
|
+
entity_id: string;
|
|
1764
|
+
count: number;
|
|
1765
|
+
createdAt: Date;
|
|
1766
|
+
updatedAt: Date;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
export interface IPopulatedHorseWViewCount extends IPopulatedHorse {
|
|
1770
|
+
viewCount: IViewCount;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
export interface IGetCombinedHorses {
|
|
1774
|
+
user_id?: string; // objectid
|
|
1775
|
+
sex?: 'male' | 'female';
|
|
1776
|
+
breed?: string; // objectid
|
|
1777
|
+
suit?: string; // objectid
|
|
1778
|
+
birthDate?: string;
|
|
1779
|
+
category?: string; // objectid
|
|
1780
|
+
price?: string; // objectid
|
|
1781
|
+
}
|
|
1742
1782
|
}
|
|
1743
1783
|
}
|