@mivis/petmart-api 1.2.242 → 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 +22 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.242",
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;
@@ -2262,5 +2265,23 @@ declare namespace Components {
2262
2265
  createdAt: Date;
2263
2266
  updatedAt: Date;
2264
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
+ }
2265
2286
  }
2266
2287
  }