@mivis/petmart-api 1.2.30 → 1.2.33
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 +37 -2
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare namespace Components {
|
|
|
44
44
|
refreshToken: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export type IRefreshResponse = ITokensResponse;
|
|
47
|
+
export type IRefreshResponse = ITokensResponse & { is_activated: boolean };
|
|
48
48
|
|
|
49
49
|
export enum ELoginTypes {
|
|
50
50
|
SELLER = 'SELLER',
|
|
@@ -264,6 +264,11 @@ declare namespace Components {
|
|
|
264
264
|
updatedAt: Date;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
export interface IProductWithReviewResponse {
|
|
268
|
+
product: IProductResponse;
|
|
269
|
+
reviewsData: IReviewsData;
|
|
270
|
+
}
|
|
271
|
+
|
|
267
272
|
export interface ICreateProduct {
|
|
268
273
|
name: string;
|
|
269
274
|
status?:
|
|
@@ -530,13 +535,43 @@ declare namespace Components {
|
|
|
530
535
|
anonymity: boolean;
|
|
531
536
|
}
|
|
532
537
|
|
|
533
|
-
export interface
|
|
538
|
+
export interface IGetReviews {
|
|
539
|
+
product_id: string;
|
|
540
|
+
skip: string;
|
|
541
|
+
limit: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export interface IReviewResponse {
|
|
545
|
+
user_id: {
|
|
546
|
+
_id: string;
|
|
547
|
+
name: string;
|
|
548
|
+
};
|
|
534
549
|
product_id: string;
|
|
535
550
|
rating: number;
|
|
536
551
|
text: string;
|
|
537
552
|
anonymity: boolean;
|
|
538
553
|
}
|
|
539
554
|
|
|
555
|
+
export interface IGetReviewsData {
|
|
556
|
+
product_id: string;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export interface IReviewsData {
|
|
560
|
+
count: number;
|
|
561
|
+
averageRating: number;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export interface ICreateReviewRequest {
|
|
565
|
+
product_id: string;
|
|
566
|
+
text: string;
|
|
567
|
+
anonymity: boolean;
|
|
568
|
+
rating: number;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
export interface IDeleteReviewQuery {
|
|
572
|
+
toDelete: string;
|
|
573
|
+
}
|
|
574
|
+
|
|
540
575
|
export enum ESellerTransactionsType {
|
|
541
576
|
SALE = 'SALE',
|
|
542
577
|
FINE = 'FINE',
|