@mivis/petmart-api 1.2.302 → 1.2.304

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 +48 -4
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.304",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -254,6 +254,12 @@ declare namespace Components {
254
254
  VARIATION = 'VARIATION',
255
255
  }
256
256
 
257
+ export interface IProductEvent {
258
+ name: string;
259
+ colors: string[];
260
+ icon?: string;
261
+ }
262
+
257
263
  export interface IProduct {
258
264
  _id: string;
259
265
  type: EProductType;
@@ -282,7 +288,7 @@ declare namespace Components {
282
288
  entityAnalytics?: IEntityAnalytics;
283
289
  low_stock_flag: boolean;
284
290
  f_price: number | null;
285
- eventName: string;
291
+ event?: IProductEvent;
286
292
  createdAt: Date;
287
293
  updatedAt: Date;
288
294
  }
@@ -381,7 +387,7 @@ declare namespace Components {
381
387
  low_stock_flag: boolean;
382
388
  f_price: number | null;
383
389
  ratingScore: number;
384
- eventName: string;
390
+ event?: IProductEvent;
385
391
  }
386
392
 
387
393
  type OptionalDimension = {
@@ -511,7 +517,7 @@ declare namespace Components {
511
517
  };
512
518
  f_price: number | null;
513
519
  low_stock_flag: boolean;
514
- eventName: string;
520
+ event?: IProductEvent;
515
521
  };
516
522
  count: number;
517
523
  price: number;
@@ -2371,6 +2377,7 @@ declare namespace Components {
2371
2377
 
2372
2378
  export interface IApplyPromo {
2373
2379
  code: string;
2380
+ source: EPromoCodeSource;
2374
2381
  }
2375
2382
 
2376
2383
  export enum EDiscountType {
@@ -2394,6 +2401,11 @@ declare namespace Components {
2394
2401
  SELLER = 'SELLER',
2395
2402
  }
2396
2403
 
2404
+ export enum EPromoCodeSource {
2405
+ WEB = 'WEB',
2406
+ MOBILE_APP = 'MOBILE_APP',
2407
+ }
2408
+
2397
2409
  export interface IPromoCode {
2398
2410
  _id: string;
2399
2411
  code: string; // Uppercase
@@ -2405,7 +2417,10 @@ declare namespace Components {
2405
2417
  usage_limit_user: number;
2406
2418
  used_count: number;
2407
2419
  target_type: EPromoTargetType;
2408
- target_sellers: string[];
2420
+ target_sellers: {
2421
+ _id: string;
2422
+ shop_details: IShopDetails;
2423
+ }[];
2409
2424
  target_categories: string[];
2410
2425
  target_subcategories: string[];
2411
2426
  target_products: string[];
@@ -2418,6 +2433,35 @@ declare namespace Components {
2418
2433
  updatedAt: Date;
2419
2434
  }
2420
2435
 
2436
+ export interface IGetHelperCategoriesQuery {
2437
+ seller_ids?: string;
2438
+ }
2439
+
2440
+ export interface IGetHelperProductsQuery {
2441
+ seller_ids?: string;
2442
+ category_ids?: string;
2443
+ subcategory_ids?: string;
2444
+ search?: string;
2445
+ skip: string;
2446
+ limit: string;
2447
+ sort_seller_id?: string;
2448
+ }
2449
+
2450
+ export interface IHelperProductsResponse {
2451
+ items: IProductResponse[];
2452
+ count: number;
2453
+ }
2454
+
2455
+ export interface IHelperCategory {
2456
+ _id: string;
2457
+ name: string;
2458
+ subcategories: {
2459
+ _id: string;
2460
+ name: string;
2461
+ category_id: string;
2462
+ }[];
2463
+ }
2464
+
2421
2465
  export interface IGetPromoCodesQuery extends FilterBaseQuery {
2422
2466
  code?: string;
2423
2467
  status?: EPromoStatus;