@mivis/petmart-api 1.2.255 → 1.2.257

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 +22 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.255",
3
+ "version": "1.2.257",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -741,6 +741,7 @@ declare namespace Components {
741
741
  averageRating: string;
742
742
  reviewsCount: number;
743
743
  seller: ISeller;
744
+ promoCode: IPromoCode | null;
744
745
  }
745
746
 
746
747
  export interface ISellerSearchQueryRequest {
@@ -1641,6 +1642,8 @@ declare namespace Components {
1641
1642
  photo: string;
1642
1643
  position: number;
1643
1644
  seller_id: string;
1645
+ navigation_path: string | null; // example: "ProductScreen"
1646
+ navigation_params: Record<string, any> | null; // example: {product_id: "ObjectId"}
1644
1647
  createdAt: Date;
1645
1648
  updatedAt: Date;
1646
1649
  }
@@ -1951,6 +1954,7 @@ declare namespace Components {
1951
1954
  status?: string;
1952
1955
  position?: number;
1953
1956
  all_fields?: string;
1957
+ is_thematic?: 'true' | 'false';
1954
1958
  skip: string;
1955
1959
  limit: string;
1956
1960
  }
@@ -1963,6 +1967,8 @@ declare namespace Components {
1963
1967
  products: string[];
1964
1968
  status: ECollectionStatus;
1965
1969
  position: number;
1970
+ is_thematic?: 'true' | 'false';
1971
+ icon?: File;
1966
1972
  }
1967
1973
 
1968
1974
  export interface IUpdateCollection {
@@ -1973,6 +1979,8 @@ declare namespace Components {
1973
1979
  products?: string[];
1974
1980
  status?: ECollectionStatus;
1975
1981
  position?: number;
1982
+ is_thematic?: 'true' | 'false';
1983
+ icon?: File;
1976
1984
  }
1977
1985
 
1978
1986
  export interface ICollection {
@@ -1985,6 +1993,8 @@ declare namespace Components {
1985
1993
  products: string[];
1986
1994
  status: ECollectionStatus;
1987
1995
  position: number;
1996
+ is_thematic: boolean;
1997
+ icon: string | null;
1988
1998
  }
1989
1999
  export interface IPickupPoints {
1990
2000
  lat: string;
@@ -2318,5 +2328,17 @@ declare namespace Components {
2318
2328
  export interface IApplyPromo {
2319
2329
  code: string;
2320
2330
  }
2331
+
2332
+ export interface IPromoCode {
2333
+ _id: string;
2334
+ seller_id: string; // Привязка к продавцу
2335
+ code: string; // Сам промокод, например HSYORK20
2336
+ discount_percent: number; // Процент скидки (20 -> 20%)
2337
+ start_date: Date; // Дата начала действия промокода
2338
+ end_date: Date; // Дата окончания действия промокода
2339
+ showcase_url: string; // Ссылка на витрину продавца
2340
+ createdAt: Date;
2341
+ updatedAt: Date;
2342
+ }
2321
2343
  }
2322
2344
  }