@mivis/petmart-api 1.2.256 → 1.2.258

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 +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.256",
3
+ "version": "1.2.258",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -279,6 +279,8 @@ declare namespace Components {
279
279
  slug: string;
280
280
  published_at?: Date;
281
281
  entityAnalytics?: IEntityAnalytics;
282
+ low_stock_flag: boolean;
283
+ f_price: number | null;
282
284
  createdAt: Date;
283
285
  updatedAt: Date;
284
286
  }
@@ -741,6 +743,7 @@ declare namespace Components {
741
743
  averageRating: string;
742
744
  reviewsCount: number;
743
745
  seller: ISeller;
746
+ promoCode: IPromoCode | null;
744
747
  }
745
748
 
746
749
  export interface ISellerSearchQueryRequest {
@@ -2327,5 +2330,17 @@ declare namespace Components {
2327
2330
  export interface IApplyPromo {
2328
2331
  code: string;
2329
2332
  }
2333
+
2334
+ export interface IPromoCode {
2335
+ _id: string;
2336
+ seller_id: string; // Привязка к продавцу
2337
+ code: string; // Сам промокод, например HSYORK20
2338
+ discount_percent: number; // Процент скидки (20 -> 20%)
2339
+ start_date: Date; // Дата начала действия промокода
2340
+ end_date: Date; // Дата окончания действия промокода
2341
+ showcase_url: string; // Ссылка на витрину продавца
2342
+ createdAt: Date;
2343
+ updatedAt: Date;
2344
+ }
2330
2345
  }
2331
2346
  }