@apps-in-toss/web-framework 0.0.0-dev.1741346821380 → 0.0.0-dev.1741599426292
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/cli/index.js +3209 -2998
- package/dist/config/index.d.ts +38 -57
- package/dist/config/index.js +4 -4060
- package/dist/prebuilt/dev.android.js +359 -359
- package/dist/prebuilt/dev.ios.js +360 -360
- package/dist/prebuilt/prod.android.js +1 -1
- package/dist/prebuilt/prod.android.js.map +3 -3
- package/dist/prebuilt/prod.ios.js +1 -1
- package/dist/prebuilt/prod.ios.js.map +3 -3
- package/dist/prebuilt/prod.json +4 -4
- package/package.json +9 -8
package/dist/config/index.d.ts
CHANGED
|
@@ -1,43 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, {
|
|
38
|
-
scopes: OAuthScope[];
|
|
39
|
-
}>;
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
1
|
+
type PermissionReadWrite = 'read' | 'write';
|
|
2
|
+
type PermissionAccess = 'access';
|
|
3
|
+
type ClipboardPermission = {
|
|
4
|
+
name: 'clipboard';
|
|
5
|
+
access: PermissionReadWrite;
|
|
6
|
+
};
|
|
7
|
+
type GeolocationPermission = {
|
|
8
|
+
name: 'geolocation';
|
|
9
|
+
access: PermissionAccess;
|
|
10
|
+
};
|
|
11
|
+
type ContactsPermission = {
|
|
12
|
+
name: 'contacts';
|
|
13
|
+
access: PermissionReadWrite;
|
|
14
|
+
};
|
|
15
|
+
type PhotosPermission = {
|
|
16
|
+
name: 'photos';
|
|
17
|
+
access: PermissionReadWrite;
|
|
18
|
+
};
|
|
19
|
+
type CameraPermission = {
|
|
20
|
+
name: 'camera';
|
|
21
|
+
access: PermissionAccess;
|
|
22
|
+
};
|
|
23
|
+
type Permission = ClipboardPermission | GeolocationPermission | ContactsPermission | PhotosPermission | CameraPermission;
|
|
24
|
+
/**
|
|
25
|
+
* OAuth 인증시 사용할 수 있는 Scope 값이에요.
|
|
26
|
+
*
|
|
27
|
+
* - `user_name`: 유저 이름이에요.
|
|
28
|
+
* - `user_phone`: 유저 휴대폰 번호예요.
|
|
29
|
+
* - `user_birthday`: 유저 생년월일이에요.
|
|
30
|
+
* - `user_ci`: 유저를 식별하는 키인 CI(Connection Information) 값이에요.
|
|
31
|
+
* - `user_gender`: 유저의 성별이에요.
|
|
32
|
+
* - `user_nationality`: 유저의 국적이에요.
|
|
33
|
+
* - `user_email`: 유저의 이메일이에요. 토스 회원의 email이 존재하지 않는 경우 null 응답을 반환해요.
|
|
34
|
+
*/
|
|
35
|
+
type OAuthScope = 'user_name' | 'user_phone' | 'user_birthday' | 'user_ci' | 'user_gender' | 'user_nationality' | 'user_email';
|
|
36
|
+
interface AppsInTossWebConfig {
|
|
41
37
|
appName: string;
|
|
42
38
|
web: {
|
|
43
39
|
port: number;
|
|
@@ -51,22 +47,7 @@ declare const AppsInTossWebConfigSchema: z.ZodObject<{
|
|
|
51
47
|
oauth: {
|
|
52
48
|
scopes: OAuthScope[];
|
|
53
49
|
};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
web: {
|
|
57
|
-
port: number;
|
|
58
|
-
commands: {
|
|
59
|
-
dev: string;
|
|
60
|
-
build: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
permissions: Permission[];
|
|
64
|
-
oauth: {
|
|
65
|
-
scopes: OAuthScope[];
|
|
66
|
-
};
|
|
67
|
-
outdir?: string | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
type AppsInTossWebConfig = z.infer<typeof AppsInTossWebConfigSchema>;
|
|
70
|
-
declare const defineConfig: (config: z.input<typeof AppsInTossWebConfigSchema>) => AppsInTossWebConfig;
|
|
50
|
+
}
|
|
51
|
+
declare const defineConfig: (config: AppsInTossWebConfig) => AppsInTossWebConfig;
|
|
71
52
|
|
|
72
53
|
export { type AppsInTossWebConfig, defineConfig };
|