@mivis/petmart-api 1.2.193 → 1.2.194

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 +18 -7
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.194",
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',
@@ -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
  }