@mivis/petmart-api 1.2.38 → 1.2.40

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 +11 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -136,7 +136,7 @@ declare namespace Components {
136
136
  tel: number;
137
137
  email: string;
138
138
  birthday?: Date;
139
- password: string;
139
+ password?: string;
140
140
  }
141
141
 
142
142
  export enum EUserTransactionsType {
@@ -376,6 +376,11 @@ declare namespace Components {
376
376
  updatedAt: Date;
377
377
  }
378
378
 
379
+ export interface IUserSubCategoryResponse {
380
+ subCategories: ISubCategory[];
381
+ productsCount: number;
382
+ }
383
+
379
384
  export interface ICreateSubCategory {
380
385
  name: string;
381
386
  category_id: string;
@@ -560,12 +565,13 @@ declare namespace Components {
560
565
  }
561
566
 
562
567
  export interface IGetReviews {
563
- product_id: string;
568
+ id: string;
564
569
  skip: string;
565
570
  limit: string;
566
571
  }
567
572
 
568
573
  export interface IReviewResponse {
574
+ _id: string;
569
575
  user_id: {
570
576
  _id: string;
571
577
  name: string;
@@ -574,6 +580,8 @@ declare namespace Components {
574
580
  rating: number;
575
581
  text: string;
576
582
  anonymity: boolean;
583
+ createdAt: Date;
584
+ updatedAt: Date;
577
585
  }
578
586
 
579
587
  export interface IGetReviewsData {
@@ -582,7 +590,7 @@ declare namespace Components {
582
590
 
583
591
  export interface IReviewsData {
584
592
  count: number;
585
- averageRating: number;
593
+ averageRating: string;
586
594
  }
587
595
 
588
596
  export interface ICreateReviewRequest {