@mivis/petmart-api 1.2.39 → 1.2.41
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 +19 -2
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -310,6 +310,10 @@ declare namespace Components {
|
|
|
310
310
|
price: number;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
export interface IDeleteCartRequest {
|
|
314
|
+
toDelete?: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
313
317
|
export interface ICart {
|
|
314
318
|
_id: string;
|
|
315
319
|
user_id: string;
|
|
@@ -317,6 +321,11 @@ declare namespace Components {
|
|
|
317
321
|
_id: string;
|
|
318
322
|
name: string;
|
|
319
323
|
photo: string[];
|
|
324
|
+
seller_id: {
|
|
325
|
+
_id: string;
|
|
326
|
+
shop_details: IShopDetails;
|
|
327
|
+
delivery_ways: IDeliveryWays;
|
|
328
|
+
};
|
|
320
329
|
};
|
|
321
330
|
count: number;
|
|
322
331
|
price: number;
|
|
@@ -376,6 +385,11 @@ declare namespace Components {
|
|
|
376
385
|
updatedAt: Date;
|
|
377
386
|
}
|
|
378
387
|
|
|
388
|
+
export interface IUserSubCategoryResponse {
|
|
389
|
+
subCategories: ISubCategory[];
|
|
390
|
+
productsCount: number;
|
|
391
|
+
}
|
|
392
|
+
|
|
379
393
|
export interface ICreateSubCategory {
|
|
380
394
|
name: string;
|
|
381
395
|
category_id: string;
|
|
@@ -560,12 +574,13 @@ declare namespace Components {
|
|
|
560
574
|
}
|
|
561
575
|
|
|
562
576
|
export interface IGetReviews {
|
|
563
|
-
|
|
577
|
+
id: string;
|
|
564
578
|
skip: string;
|
|
565
579
|
limit: string;
|
|
566
580
|
}
|
|
567
581
|
|
|
568
582
|
export interface IReviewResponse {
|
|
583
|
+
_id: string;
|
|
569
584
|
user_id: {
|
|
570
585
|
_id: string;
|
|
571
586
|
name: string;
|
|
@@ -574,6 +589,8 @@ declare namespace Components {
|
|
|
574
589
|
rating: number;
|
|
575
590
|
text: string;
|
|
576
591
|
anonymity: boolean;
|
|
592
|
+
createdAt: Date;
|
|
593
|
+
updatedAt: Date;
|
|
577
594
|
}
|
|
578
595
|
|
|
579
596
|
export interface IGetReviewsData {
|
|
@@ -582,7 +599,7 @@ declare namespace Components {
|
|
|
582
599
|
|
|
583
600
|
export interface IReviewsData {
|
|
584
601
|
count: number;
|
|
585
|
-
averageRating:
|
|
602
|
+
averageRating: string;
|
|
586
603
|
}
|
|
587
604
|
|
|
588
605
|
export interface ICreateReviewRequest {
|