@mivis/petmart-api 1.2.241 → 1.2.243

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 +26 -4
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.243",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -19,8 +19,10 @@ declare namespace Components {
19
19
  }
20
20
  export interface ILoginResponse extends ITokensResponse {
21
21
  isSeller: boolean;
22
- role: ERoles;
22
+ user_id: string;
23
+ isActivated: boolean;
23
24
  isExistPassword: boolean;
25
+ role: ERoles;
24
26
  }
25
27
 
26
28
  export type ISignUpResponse = ITokensResponse;
@@ -1056,6 +1058,7 @@ declare namespace Components {
1056
1058
  orders: ICreateOrder[];
1057
1059
  sum: number;
1058
1060
  tel: number;
1061
+ email: string;
1059
1062
  name: string;
1060
1063
  surname: string;
1061
1064
  patronymic?: string;
@@ -2094,7 +2097,8 @@ declare namespace Components {
2094
2097
  }
2095
2098
 
2096
2099
  export interface IFavorite {
2097
- user_id: string; // ID пользователя, который добавил в избранное
2100
+ user_id?: string | null; // ID пользователя, который добавил в избранное
2101
+ session_id?: string | null;
2098
2102
  entity_id: string; // ID сущности, к которой привязано избранное (например, Product или Horse)
2099
2103
  entity_type: EFavoritesEntityType; // Тип сущности (PRODUCT, HORSE и т.д.)
2100
2104
  }
@@ -2110,10 +2114,10 @@ declare namespace Components {
2110
2114
  }
2111
2115
 
2112
2116
  export interface IToggleFavoriteRequest
2113
- extends Omit<IFavorite, 'user_id'> {}
2117
+ extends Omit<IFavorite, 'user_id' | 'session_id'> {}
2114
2118
 
2115
2119
  export interface IGetFavoritesRequest
2116
- extends Omit<IFavorite, 'entity_id' | 'user_id'> {}
2120
+ extends Omit<IFavorite, 'entity_id' | 'user_id' | 'session_id'> {}
2117
2121
 
2118
2122
  export interface IToggleFavoriteResponse {
2119
2123
  action: EFavoriteToggleActions;
@@ -2261,5 +2265,23 @@ declare namespace Components {
2261
2265
  createdAt: Date;
2262
2266
  updatedAt: Date;
2263
2267
  }
2268
+
2269
+ export interface ISendOtpRequest {
2270
+ email: string;
2271
+ }
2272
+
2273
+ export interface IVerifyOtpRequest {
2274
+ email: string;
2275
+ code: number;
2276
+ }
2277
+
2278
+ export interface IVerifyOtpResponse extends ITokensResponse {
2279
+ user_id: string;
2280
+ }
2281
+
2282
+ export interface ICreateMultiOrderResponse {
2283
+ payment: IPaymentResponse;
2284
+ tokens?: ITokensResponse;
2285
+ }
2264
2286
  }
2265
2287
  }