@star-insure/sdk 5.0.10 → 5.0.12

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.
@@ -7,6 +7,7 @@ declare type AuthUser = {
7
7
  umbrella_filter?: string;
8
8
  oracle_user_id?: string;
9
9
  groups: AuthGroup[];
10
+ mobile?: string;
10
11
  phone_extension?: number;
11
12
  two_factor_expires_at?: string;
12
13
  two_factor_method?: TwoFactorAuthMethod;
@@ -30,5 +31,5 @@ export interface AuthContext {
30
31
  can: (permission: string) => boolean;
31
32
  should_two_factor_auth: boolean;
32
33
  }
33
- declare type TwoFactorAuthMethod = 'email' | 'sms';
34
+ export declare type TwoFactorAuthMethod = 'email' | 'sms';
34
35
  export {};
@@ -1,4 +1,5 @@
1
1
  import { Group } from '.';
2
+ import { TwoFactorAuthMethod } from '../../api';
2
3
  export interface User {
3
4
  id: number;
4
5
  oracle_user_id?: string;
@@ -12,4 +13,5 @@ export interface User {
12
13
  groups?: Group[];
13
14
  permissions?: string[];
14
15
  phone_extension?: number;
16
+ two_factor_method?: TwoFactorAuthMethod;
15
17
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@star-insure/sdk",
3
3
  "description": "The SDK for Star Insure client apps with shared helper functions and TypeScript definitions.",
4
4
  "author": "alexclark_nz",
5
- "version": "5.0.10",
5
+ "version": "5.0.12",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -15,6 +15,7 @@ type AuthUser = {
15
15
  umbrella_filter?: string;
16
16
  oracle_user_id?: string;
17
17
  groups: AuthGroup[];
18
+ mobile?: string;
18
19
  phone_extension?: number;
19
20
  two_factor_expires_at?: string;
20
21
  two_factor_method?: TwoFactorAuthMethod;
@@ -42,4 +43,4 @@ export interface AuthContext {
42
43
  should_two_factor_auth: boolean;
43
44
  }
44
45
 
45
- type TwoFactorAuthMethod = 'email' | 'sms';
46
+ export type TwoFactorAuthMethod = 'email' | 'sms';
@@ -1,4 +1,5 @@
1
1
  import { Group } from '.';
2
+ import { TwoFactorAuthMethod } from '../../api';
2
3
 
3
4
  export interface User {
4
5
  id: number;
@@ -13,4 +14,5 @@ export interface User {
13
14
  groups?: Group[];
14
15
  permissions?: string[];
15
16
  phone_extension?: number;
17
+ two_factor_method?: TwoFactorAuthMethod;
16
18
  }