@mivis/petmart-api 1.2.242 → 1.2.244

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 +24 -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.244",
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;
@@ -471,6 +473,8 @@ declare namespace Components {
471
473
  dimension: IDimension;
472
474
  price: number;
473
475
  slug: string;
476
+ category_id: string;
477
+ subCategory_id: string;
474
478
  seller_id: {
475
479
  _id: string;
476
480
  shop_details: IShopDetails;
@@ -1056,6 +1060,7 @@ declare namespace Components {
1056
1060
  orders: ICreateOrder[];
1057
1061
  sum: number;
1058
1062
  tel: number;
1063
+ email: string;
1059
1064
  name: string;
1060
1065
  surname: string;
1061
1066
  patronymic?: string;
@@ -2262,5 +2267,23 @@ declare namespace Components {
2262
2267
  createdAt: Date;
2263
2268
  updatedAt: Date;
2264
2269
  }
2270
+
2271
+ export interface ISendOtpRequest {
2272
+ email: string;
2273
+ }
2274
+
2275
+ export interface IVerifyOtpRequest {
2276
+ email: string;
2277
+ code: number;
2278
+ }
2279
+
2280
+ export interface IVerifyOtpResponse extends ITokensResponse {
2281
+ user_id: string;
2282
+ }
2283
+
2284
+ export interface ICreateMultiOrderResponse {
2285
+ payment: IPaymentResponse;
2286
+ tokens?: ITokensResponse;
2287
+ }
2265
2288
  }
2266
2289
  }