@mivis/petmart-api 1.2.302 → 1.2.303

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 +33 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.302",
3
+ "version": "1.2.303",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -2405,7 +2405,10 @@ declare namespace Components {
2405
2405
  usage_limit_user: number;
2406
2406
  used_count: number;
2407
2407
  target_type: EPromoTargetType;
2408
- target_sellers: string[];
2408
+ target_sellers: {
2409
+ _id: string;
2410
+ shop_details: IShopDetails;
2411
+ }[];
2409
2412
  target_categories: string[];
2410
2413
  target_subcategories: string[];
2411
2414
  target_products: string[];
@@ -2418,6 +2421,35 @@ declare namespace Components {
2418
2421
  updatedAt: Date;
2419
2422
  }
2420
2423
 
2424
+ export interface IGetHelperCategoriesQuery {
2425
+ seller_ids?: string;
2426
+ }
2427
+
2428
+ export interface IGetHelperProductsQuery {
2429
+ seller_ids?: string;
2430
+ category_ids?: string;
2431
+ subcategory_ids?: string;
2432
+ search?: string;
2433
+ skip: string;
2434
+ limit: string;
2435
+ sort_seller_id?: string;
2436
+ }
2437
+
2438
+ export interface IHelperProductsResponse {
2439
+ items: IProductResponse[];
2440
+ count: number;
2441
+ }
2442
+
2443
+ export interface IHelperCategory {
2444
+ _id: string;
2445
+ name: string;
2446
+ subcategories: {
2447
+ _id: string;
2448
+ name: string;
2449
+ category_id: string;
2450
+ }[];
2451
+ }
2452
+
2421
2453
  export interface IGetPromoCodesQuery extends FilterBaseQuery {
2422
2454
  code?: string;
2423
2455
  status?: EPromoStatus;