@mivis/petmart-api 1.2.192 → 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 +28 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.192",
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,12 +482,20 @@ declare namespace Components {
482
482
  export interface ICategory {
483
483
  _id: string;
484
484
  name: string;
485
+ seoInfo?: ISeoInfo;
485
486
  photo: string;
486
487
  slug: string;
487
488
  createdAt: Date;
488
489
  updatedAt: Date;
489
490
  }
490
491
 
492
+ export interface ISeoInfo {
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?: ISeoInfo;
505
514
  slug: string;
506
515
  children: IParsedSubCategory[];
507
516
  }
@@ -510,6 +519,7 @@ declare namespace Components {
510
519
  value: string;
511
520
  title: string;
512
521
  type: string;
522
+ seoInfo?: ISeoInfo;
513
523
  slug: string;
514
524
  status: ESubCategoryStatus;
515
525
  }
@@ -518,6 +528,10 @@ declare namespace Components {
518
528
 
519
529
  export interface ICreateCategoryRequest {
520
530
  name: string;
531
+ title?: string;
532
+ desc?: string;
533
+ h1?: string;
534
+ seoText?: string;
521
535
  photo: File;
522
536
  }
523
537
 
@@ -531,6 +545,7 @@ declare namespace Components {
531
545
  name: string;
532
546
  category_id: ICategory;
533
547
  status: ESubCategoryStatus;
548
+ seoInfo?: ISeoInfo;
534
549
  slug: string;
535
550
  createdAt: Date;
536
551
  updatedAt: Date;
@@ -544,12 +559,14 @@ declare namespace Components {
544
559
  export interface ICreateSubCategoryRequest {
545
560
  name: string;
546
561
  category_id: string;
562
+ title?: string;
563
+ desc?: string;
564
+ h1?: string;
565
+ seoText?: string;
547
566
  }
548
567
 
549
- export interface IUpdateSubCategoryRequest {
550
- name: string;
551
- category_id: string;
552
- }
568
+ export interface IUpdateSubCategoryRequest
569
+ extends Partial<ICreateSubCategoryRequest> {}
553
570
 
554
571
  export enum ESubCategoryStatus {
555
572
  MODERATION = 'MODERATION',
@@ -1766,5 +1783,12 @@ declare namespace Components {
1766
1783
  category?: string; // objectid
1767
1784
  price?: string; // objectid
1768
1785
  }
1786
+
1787
+ export interface IReverseGeocodingRequest {
1788
+ lat: number;
1789
+ lon: number;
1790
+ count?: number;
1791
+ radius_meters?: number;
1792
+ }
1769
1793
  }
1770
1794
  }