types-magic-api 0.1.40 → 0.1.41

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.
@@ -41,6 +41,7 @@ export declare class AppToken extends ProviderAuthToken {
41
41
  }
42
42
  export declare class BuyerAuthToken {
43
43
  token: string;
44
+ isAdmin: boolean;
44
45
  expiresAt: Date;
45
46
  }
46
47
  export declare enum APIErrorCode {
@@ -27,6 +27,7 @@ export class AppToken extends ProviderAuthToken {
27
27
  }
28
28
  export class BuyerAuthToken {
29
29
  token;
30
+ isAdmin;
30
31
  expiresAt;
31
32
  }
32
33
  export var APIErrorCode;
@@ -1,4 +1,5 @@
1
1
  export declare class Customer {
2
2
  id: string;
3
3
  language: string;
4
+ otp: string;
4
5
  }
@@ -355,13 +355,15 @@ export interface cartDeliveryAddressRes {
355
355
  */
356
356
  export interface CustomerProviderLoginReq {
357
357
  email: string;
358
- password: string;
358
+ password?: string | null;
359
+ otp?: string | null;
359
360
  }
360
361
  /**
361
362
  * API Name: /api/customer/login
362
363
  */
363
364
  export interface CustomerProviderLoginRes {
364
- token: string;
365
+ token?: string;
366
+ isOTPRequired: boolean;
365
367
  }
366
368
  /**
367
369
  * API Name: /api/customer/logout
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-magic-api",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && tsc",
6
6
  "prepare": "npm run build"