@mivis/petmart-api 1.2.303 → 1.2.305

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 +16 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.303",
3
+ "version": "1.2.305",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -254,6 +254,13 @@ declare namespace Components {
254
254
  VARIATION = 'VARIATION',
255
255
  }
256
256
 
257
+ export interface IProductEvent {
258
+ name: string;
259
+ colors: string[];
260
+ textColor?: string;
261
+ icon?: string;
262
+ }
263
+
257
264
  export interface IProduct {
258
265
  _id: string;
259
266
  type: EProductType;
@@ -282,7 +289,7 @@ declare namespace Components {
282
289
  entityAnalytics?: IEntityAnalytics;
283
290
  low_stock_flag: boolean;
284
291
  f_price: number | null;
285
- eventName: string;
292
+ event?: IProductEvent;
286
293
  createdAt: Date;
287
294
  updatedAt: Date;
288
295
  }
@@ -381,7 +388,7 @@ declare namespace Components {
381
388
  low_stock_flag: boolean;
382
389
  f_price: number | null;
383
390
  ratingScore: number;
384
- eventName: string;
391
+ event?: IProductEvent;
385
392
  }
386
393
 
387
394
  type OptionalDimension = {
@@ -511,7 +518,7 @@ declare namespace Components {
511
518
  };
512
519
  f_price: number | null;
513
520
  low_stock_flag: boolean;
514
- eventName: string;
521
+ event?: IProductEvent;
515
522
  };
516
523
  count: number;
517
524
  price: number;
@@ -2371,6 +2378,7 @@ declare namespace Components {
2371
2378
 
2372
2379
  export interface IApplyPromo {
2373
2380
  code: string;
2381
+ source: EPromoCodeSource;
2374
2382
  }
2375
2383
 
2376
2384
  export enum EDiscountType {
@@ -2394,6 +2402,11 @@ declare namespace Components {
2394
2402
  SELLER = 'SELLER',
2395
2403
  }
2396
2404
 
2405
+ export enum EPromoCodeSource {
2406
+ WEB = 'WEB',
2407
+ MOBILE_APP = 'MOBILE_APP',
2408
+ }
2409
+
2397
2410
  export interface IPromoCode {
2398
2411
  _id: string;
2399
2412
  code: string; // Uppercase