@readerseye2/cr_type 1.0.5 → 1.0.7
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.
- package/dist/session.d.ts +15 -5
- package/package.json +1 -1
package/dist/session.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare enum OauthUserType {
|
|
2
|
+
CHILD = "child",
|
|
3
|
+
PARENT = "parent",
|
|
4
|
+
ADMIN = "admin"
|
|
5
|
+
}
|
|
6
|
+
export declare enum OauthProvider {
|
|
7
|
+
GOOGLE = "google",
|
|
8
|
+
NAVER = "naver",
|
|
9
|
+
KAKAO = "kakao"
|
|
10
|
+
}
|
|
2
11
|
export interface CommonSessionData {
|
|
3
12
|
access_token: string;
|
|
4
13
|
access_token_expire: number;
|
|
@@ -6,18 +15,19 @@ export interface CommonSessionData {
|
|
|
6
15
|
refresh_token_expire: number;
|
|
7
16
|
createdAt: number;
|
|
8
17
|
device_ID: string;
|
|
9
|
-
session_type:
|
|
18
|
+
session_type: OauthUserType;
|
|
10
19
|
}
|
|
11
20
|
export interface ParentSessionData extends CommonSessionData {
|
|
12
21
|
user_idx: number;
|
|
13
|
-
user_logo_url
|
|
22
|
+
user_logo_url?: string;
|
|
14
23
|
client_id: string;
|
|
15
24
|
email: string;
|
|
16
25
|
name: string;
|
|
17
|
-
provider:
|
|
26
|
+
provider: OauthProvider;
|
|
18
27
|
}
|
|
19
28
|
export interface ChildSessionData extends CommonSessionData {
|
|
20
29
|
child_idx: number;
|
|
21
|
-
|
|
30
|
+
child_image_url?: string;
|
|
31
|
+
child_ID: string;
|
|
22
32
|
}
|
|
23
33
|
export type userSessionData = ParentSessionData | ChildSessionData;
|