@mivis/petmart-api 1.2.193 → 1.2.195

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 +26 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.193",
3
+ "version": "1.2.195",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -482,14 +482,14 @@ declare namespace Components {
482
482
  export interface ICategory {
483
483
  _id: string;
484
484
  name: string;
485
- seoInfo?: ICategorySeoInfo;
485
+ seoInfo?: ISeoInfo;
486
486
  photo: string;
487
487
  slug: string;
488
488
  createdAt: Date;
489
489
  updatedAt: Date;
490
490
  }
491
491
 
492
- export interface ICategorySeoInfo {
492
+ export interface ISeoInfo {
493
493
  title?: string;
494
494
  desc?: string;
495
495
  h1?: string;
@@ -510,7 +510,7 @@ declare namespace Components {
510
510
  title: string;
511
511
  type: string;
512
512
  photo: string;
513
- seoInfo?: ICategorySeoInfo;
513
+ seoInfo?: ISeoInfo;
514
514
  slug: string;
515
515
  children: IParsedSubCategory[];
516
516
  }
@@ -519,6 +519,7 @@ declare namespace Components {
519
519
  value: string;
520
520
  title: string;
521
521
  type: string;
522
+ seoInfo?: ISeoInfo;
522
523
  slug: string;
523
524
  status: ESubCategoryStatus;
524
525
  }
@@ -544,6 +545,7 @@ declare namespace Components {
544
545
  name: string;
545
546
  category_id: ICategory;
546
547
  status: ESubCategoryStatus;
548
+ seoInfo?: ISeoInfo;
547
549
  slug: string;
548
550
  createdAt: Date;
549
551
  updatedAt: Date;
@@ -557,12 +559,14 @@ declare namespace Components {
557
559
  export interface ICreateSubCategoryRequest {
558
560
  name: string;
559
561
  category_id: string;
562
+ title?: string;
563
+ desc?: string;
564
+ h1?: string;
565
+ seoText?: string;
560
566
  }
561
567
 
562
- export interface IUpdateSubCategoryRequest {
563
- name: string;
564
- category_id: string;
565
- }
568
+ export interface IUpdateSubCategoryRequest
569
+ extends Partial<ICreateSubCategoryRequest> {}
566
570
 
567
571
  export enum ESubCategoryStatus {
568
572
  MODERATION = 'MODERATION',
@@ -1639,13 +1643,6 @@ declare namespace Components {
1639
1643
  FEMALE = 'female',
1640
1644
  }
1641
1645
 
1642
- export enum EPrefferedCommunication {
1643
- TELEGRAM = 'Telegram',
1644
- WHATSAPP = 'WhatsApp',
1645
- CALLS = 'Звонки',
1646
- SMS = 'СМС',
1647
- }
1648
-
1649
1646
  export interface ICompetitionHistory {
1650
1647
  name: string;
1651
1648
  place: string;
@@ -1657,9 +1654,16 @@ declare namespace Components {
1657
1654
  lng: number;
1658
1655
  }
1659
1656
 
1657
+ export interface IPreferredCommunication {
1658
+ telegram: boolean;
1659
+ whatsapp: boolean;
1660
+ calls: boolean;
1661
+ sms: boolean;
1662
+ }
1663
+
1660
1664
  export interface ICommunication {
1661
1665
  tel: number;
1662
- preferredCommunication: EPrefferedCommunication;
1666
+ preferredCommunication: IPreferredCommunication;
1663
1667
  }
1664
1668
 
1665
1669
  export interface ICreateHorse {
@@ -1779,5 +1783,12 @@ declare namespace Components {
1779
1783
  category?: string; // objectid
1780
1784
  price?: string; // objectid
1781
1785
  }
1786
+
1787
+ export interface IReverseGeocodingRequest {
1788
+ lat: number;
1789
+ lon: number;
1790
+ count?: number;
1791
+ radius_meters?: number;
1792
+ }
1782
1793
  }
1783
1794
  }