@mivis/petmart-api 1.2.240 → 1.2.242
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.
- package/package.json +1 -1
- package/type.d.ts +23 -5
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -270,9 +270,10 @@ declare namespace Components {
|
|
|
270
270
|
external_item_id: string | null;
|
|
271
271
|
variations?: IProduct[];
|
|
272
272
|
purchases_count: number;
|
|
273
|
-
viewed?: number;
|
|
274
273
|
number: number;
|
|
275
274
|
slug: string;
|
|
275
|
+
published_at?: Date;
|
|
276
|
+
entityAnalytics?: IEntityAnalytics;
|
|
276
277
|
createdAt: Date;
|
|
277
278
|
updatedAt: Date;
|
|
278
279
|
}
|
|
@@ -356,13 +357,14 @@ declare namespace Components {
|
|
|
356
357
|
characteristic: ICharacteristic[];
|
|
357
358
|
variations?: IProduct[];
|
|
358
359
|
purchases_count: number;
|
|
359
|
-
viewed?: number;
|
|
360
360
|
number: number;
|
|
361
361
|
slug: string;
|
|
362
362
|
createdAt: Date;
|
|
363
363
|
updatedAt: Date;
|
|
364
364
|
is_favorite?: boolean;
|
|
365
365
|
reviewsData?: IReviewsData;
|
|
366
|
+
published_at?: Date;
|
|
367
|
+
entityAnalytics?: IEntityAnalytics;
|
|
366
368
|
}
|
|
367
369
|
|
|
368
370
|
type OptionalDimension = {
|
|
@@ -1785,6 +1787,8 @@ declare namespace Components {
|
|
|
1785
1787
|
telegram_message_id: string | null;
|
|
1786
1788
|
slug: string;
|
|
1787
1789
|
number: number;
|
|
1790
|
+
published_at?: Date;
|
|
1791
|
+
entityAnalytics?: IEntityAnalytics;
|
|
1788
1792
|
createdAt: Date;
|
|
1789
1793
|
updatedAt: Date;
|
|
1790
1794
|
}
|
|
@@ -2090,7 +2094,8 @@ declare namespace Components {
|
|
|
2090
2094
|
}
|
|
2091
2095
|
|
|
2092
2096
|
export interface IFavorite {
|
|
2093
|
-
user_id
|
|
2097
|
+
user_id?: string | null; // ID пользователя, который добавил в избранное
|
|
2098
|
+
session_id?: string | null;
|
|
2094
2099
|
entity_id: string; // ID сущности, к которой привязано избранное (например, Product или Horse)
|
|
2095
2100
|
entity_type: EFavoritesEntityType; // Тип сущности (PRODUCT, HORSE и т.д.)
|
|
2096
2101
|
}
|
|
@@ -2106,10 +2111,10 @@ declare namespace Components {
|
|
|
2106
2111
|
}
|
|
2107
2112
|
|
|
2108
2113
|
export interface IToggleFavoriteRequest
|
|
2109
|
-
extends Omit<IFavorite, 'user_id'> {}
|
|
2114
|
+
extends Omit<IFavorite, 'user_id' | 'session_id'> {}
|
|
2110
2115
|
|
|
2111
2116
|
export interface IGetFavoritesRequest
|
|
2112
|
-
extends Omit<IFavorite, 'entity_id' | 'user_id'> {}
|
|
2117
|
+
extends Omit<IFavorite, 'entity_id' | 'user_id' | 'session_id'> {}
|
|
2113
2118
|
|
|
2114
2119
|
export interface IToggleFavoriteResponse {
|
|
2115
2120
|
action: EFavoriteToggleActions;
|
|
@@ -2171,6 +2176,8 @@ declare namespace Components {
|
|
|
2171
2176
|
slug: string;
|
|
2172
2177
|
distance?: number; // Расстояние пользователя до лошади (если передано гео)
|
|
2173
2178
|
number: number;
|
|
2179
|
+
published_at?: Date;
|
|
2180
|
+
entityAnalytics?: IEntityAnalytics;
|
|
2174
2181
|
createdAt: Date;
|
|
2175
2182
|
updatedAt: Date;
|
|
2176
2183
|
}
|
|
@@ -2244,5 +2251,16 @@ declare namespace Components {
|
|
|
2244
2251
|
slug: string;
|
|
2245
2252
|
updatedAt: Date;
|
|
2246
2253
|
}
|
|
2254
|
+
|
|
2255
|
+
export interface IEntityAnalytics {
|
|
2256
|
+
entity_type: EEntityType;
|
|
2257
|
+
entity_id: string;
|
|
2258
|
+
views_count: number;
|
|
2259
|
+
favorites_count: number;
|
|
2260
|
+
purchases_count: number;
|
|
2261
|
+
cart_count: number;
|
|
2262
|
+
createdAt: Date;
|
|
2263
|
+
updatedAt: Date;
|
|
2264
|
+
}
|
|
2247
2265
|
}
|
|
2248
2266
|
}
|