@readerseye2/cr_type 1.0.5

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.
@@ -0,0 +1 @@
1
+ export * from './session';
@@ -0,0 +1,23 @@
1
+ export type providerEnum = 'google' | 'naver' | 'kakao';
2
+ export interface CommonSessionData {
3
+ access_token: string;
4
+ access_token_expire: number;
5
+ refresh_token: string;
6
+ refresh_token_expire: number;
7
+ createdAt: number;
8
+ device_ID: string;
9
+ session_type: 'parent' | 'child';
10
+ }
11
+ export interface ParentSessionData extends CommonSessionData {
12
+ user_idx: number;
13
+ user_logo_url: string;
14
+ client_id: string;
15
+ email: string;
16
+ name: string;
17
+ provider: providerEnum;
18
+ }
19
+ export interface ChildSessionData extends CommonSessionData {
20
+ child_idx: number;
21
+ child_logo_url: string;
22
+ }
23
+ export type userSessionData = ParentSessionData | ChildSessionData;
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@readerseye2/cr_type",
3
+ "version": "1.0.5",
4
+ "description": "CheckReading shared TypeScript types",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "deploy_npm": "npm version patch && npm publish --access public",
12
+ "build": "tsc --project tsconfig.json",
13
+ "prepare": "npm run build"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/bnri/CR_type.git"
18
+ },
19
+ "author": "guripong",
20
+ "license": "MIT",
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.8.3"
26
+ }
27
+ }