@mivis/petmart-api 1.2.159 → 1.2.160
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 +17 -1
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -264,6 +264,7 @@ declare namespace Components {
|
|
|
264
264
|
purchases_count: number;
|
|
265
265
|
viewed?: number;
|
|
266
266
|
number: number;
|
|
267
|
+
slug: string;
|
|
267
268
|
createdAt: Date;
|
|
268
269
|
updatedAt: Date;
|
|
269
270
|
}
|
|
@@ -278,6 +279,7 @@ declare namespace Components {
|
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
export interface IUserProductQueryRequest extends FilterBaseQuery {
|
|
282
|
+
category_id?: string;
|
|
281
283
|
subCategory_id?: string;
|
|
282
284
|
seller_id?: string;
|
|
283
285
|
name?: string;
|
|
@@ -308,15 +310,19 @@ declare namespace Components {
|
|
|
308
310
|
_id: string;
|
|
309
311
|
name: string;
|
|
310
312
|
category_id: string;
|
|
313
|
+
slug: string;
|
|
311
314
|
};
|
|
312
315
|
category_id: {
|
|
313
316
|
_id: string;
|
|
317
|
+
photo: string;
|
|
314
318
|
name: string;
|
|
319
|
+
slug: string;
|
|
315
320
|
};
|
|
316
321
|
seller_id?: {
|
|
317
322
|
_id: string;
|
|
318
323
|
shop_details: IShopDetails;
|
|
319
324
|
delivery_ways: IDeliveryWays;
|
|
325
|
+
slug: string;
|
|
320
326
|
};
|
|
321
327
|
vendor_code: string;
|
|
322
328
|
price: number;
|
|
@@ -329,6 +335,7 @@ declare namespace Components {
|
|
|
329
335
|
purchases_count: number;
|
|
330
336
|
viewed?: number;
|
|
331
337
|
number: number;
|
|
338
|
+
slug: string;
|
|
332
339
|
createdAt: Date;
|
|
333
340
|
updatedAt: Date;
|
|
334
341
|
}
|
|
@@ -405,6 +412,7 @@ declare namespace Components {
|
|
|
405
412
|
_id: string;
|
|
406
413
|
name: string;
|
|
407
414
|
photo: string;
|
|
415
|
+
slug: string;
|
|
408
416
|
createdAt: Date;
|
|
409
417
|
updatedAt: Date;
|
|
410
418
|
}
|
|
@@ -414,11 +422,16 @@ declare namespace Components {
|
|
|
414
422
|
parsed: string;
|
|
415
423
|
}
|
|
416
424
|
|
|
425
|
+
export interface IGetCategoryQuery extends FilterBaseQuery {
|
|
426
|
+
parsed?: string;
|
|
427
|
+
}
|
|
428
|
+
|
|
417
429
|
export interface IParsedCategory {
|
|
418
430
|
value: string;
|
|
419
431
|
title: string;
|
|
420
432
|
type: string;
|
|
421
433
|
photo: string;
|
|
434
|
+
slug: string;
|
|
422
435
|
children: IParsedSubCategory[];
|
|
423
436
|
}
|
|
424
437
|
|
|
@@ -426,6 +439,7 @@ declare namespace Components {
|
|
|
426
439
|
value: string;
|
|
427
440
|
title: string;
|
|
428
441
|
type: string;
|
|
442
|
+
slug: string;
|
|
429
443
|
status: ESubCategoryStatus;
|
|
430
444
|
}
|
|
431
445
|
|
|
@@ -446,6 +460,7 @@ declare namespace Components {
|
|
|
446
460
|
name: string;
|
|
447
461
|
category_id: ICategory;
|
|
448
462
|
status: ESubCategoryStatus;
|
|
463
|
+
slug: string;
|
|
449
464
|
createdAt: Date;
|
|
450
465
|
updatedAt: Date;
|
|
451
466
|
}
|
|
@@ -575,6 +590,7 @@ declare namespace Components {
|
|
|
575
590
|
commission: number;
|
|
576
591
|
status: ESellerStatus;
|
|
577
592
|
number: number;
|
|
593
|
+
slug: string;
|
|
578
594
|
createdAt: Date;
|
|
579
595
|
updatedAt: Date;
|
|
580
596
|
}
|
|
@@ -705,7 +721,7 @@ declare namespace Components {
|
|
|
705
721
|
|
|
706
722
|
export type IPopulatedOrderSeller = Pick<
|
|
707
723
|
ISeller,
|
|
708
|
-
'_id' | 'shop_details' | 'user_id' | 'nearest_point_of_cdek'
|
|
724
|
+
'_id' | 'shop_details' | 'user_id' | 'nearest_point_of_cdek' | 'slug'
|
|
709
725
|
>;
|
|
710
726
|
|
|
711
727
|
export type IPopulatedOrderUser = Pick<
|