@mivis/petmart-api 1.2.159 → 1.2.161

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 +19 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.159",
3
+ "version": "1.2.161",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
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
  }
@@ -574,6 +589,9 @@ declare namespace Components {
574
589
  balance_info: IBalanceInfo;
575
590
  commission: number;
576
591
  status: ESellerStatus;
592
+ telegram_message_id: number | null;
593
+ api_token: string | null;
594
+ slug: string;
577
595
  number: number;
578
596
  createdAt: Date;
579
597
  updatedAt: Date;
@@ -705,7 +723,7 @@ declare namespace Components {
705
723
 
706
724
  export type IPopulatedOrderSeller = Pick<
707
725
  ISeller,
708
- '_id' | 'shop_details' | 'user_id' | 'nearest_point_of_cdek'
726
+ '_id' | 'shop_details' | 'user_id' | 'nearest_point_of_cdek' | 'slug'
709
727
  >;
710
728
 
711
729
  export type IPopulatedOrderUser = Pick<