@mivis/petmart-api 1.2.241 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.241",
3
+ "version": "1.2.242",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -2094,7 +2094,8 @@ declare namespace Components {
2094
2094
  }
2095
2095
 
2096
2096
  export interface IFavorite {
2097
- user_id: string; // ID пользователя, который добавил в избранное
2097
+ user_id?: string | null; // ID пользователя, который добавил в избранное
2098
+ session_id?: string | null;
2098
2099
  entity_id: string; // ID сущности, к которой привязано избранное (например, Product или Horse)
2099
2100
  entity_type: EFavoritesEntityType; // Тип сущности (PRODUCT, HORSE и т.д.)
2100
2101
  }
@@ -2110,10 +2111,10 @@ declare namespace Components {
2110
2111
  }
2111
2112
 
2112
2113
  export interface IToggleFavoriteRequest
2113
- extends Omit<IFavorite, 'user_id'> {}
2114
+ extends Omit<IFavorite, 'user_id' | 'session_id'> {}
2114
2115
 
2115
2116
  export interface IGetFavoritesRequest
2116
- extends Omit<IFavorite, 'entity_id' | 'user_id'> {}
2117
+ extends Omit<IFavorite, 'entity_id' | 'user_id' | 'session_id'> {}
2117
2118
 
2118
2119
  export interface IToggleFavoriteResponse {
2119
2120
  action: EFavoriteToggleActions;