@ph-cms/client-sdk 0.1.33 → 0.1.35
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/README.md +5 -3
- package/dist/hooks/useContent.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @ph-cms/client-sdk 0.1.
|
|
1
|
+
# @ph-cms/client-sdk 0.1.35
|
|
2
2
|
|
|
3
3
|
PH-CMS 클라이언트 SDK — 브라우저 및 React 애플리케이션을 위한 통합 클라이언트.
|
|
4
4
|
|
|
@@ -667,6 +667,7 @@ function RegisterForm() {
|
|
|
667
667
|
email: 'user@example.com',
|
|
668
668
|
password: 'password123',
|
|
669
669
|
display_name: '홍길동',
|
|
670
|
+
phone_number: '010-1234-5678', // 선택 사항
|
|
670
671
|
termCodes: ['SERVICE_TERM', 'PRIVACY_TERM'], // 동의할 약관 코드 목록
|
|
671
672
|
// channelUid는 PHCMSProvider에 설정된 값이 자동 사용됨
|
|
672
673
|
// 명시적으로 지정하려면: channelUid: 'my-channel'
|
|
@@ -701,6 +702,7 @@ function FirebaseRegisterForm() {
|
|
|
701
702
|
email: 'user@example.com',
|
|
702
703
|
password: 'password123',
|
|
703
704
|
display_name: '홍길동',
|
|
705
|
+
phone_number: '010-1234-5678', // 선택 사항
|
|
704
706
|
termCodes: ['SERVICE_TERM', 'PRIVACY_TERM'],
|
|
705
707
|
// channelUid는 PHCMSProvider에 설정된 값이 자동 사용됨
|
|
706
708
|
});
|
|
@@ -1521,8 +1523,8 @@ const result = await content.list({ channelUid: 'my-channel' });
|
|
|
1521
1523
|
|---|---|
|
|
1522
1524
|
| `login(data: LoginRequest)` | 이메일/비밀번호 로그인 → `AuthResponse` |
|
|
1523
1525
|
| `loginWithFirebase(data: FirebaseExchangeRequest)` | Firebase ID 토큰 교환 → `AuthResponse` |
|
|
1524
|
-
| `register(data: RegisterRequest)` | 이메일 회원가입 → `AuthResponse` (`channelUid` \| `channelSlug`
|
|
1525
|
-
| `registerWithFirebase(data: FirebaseRegisterRequest)` | 서버 사이드 Firebase 회원가입 → `AuthResponse` (`channelUid` \| `channelSlug`
|
|
1526
|
+
| `register(data: RegisterRequest)` | 이메일 회원가입 → `AuthResponse` (`channelUid` \| `channelSlug` 필수, `phone_number` 지원) |
|
|
1527
|
+
| `registerWithFirebase(data: FirebaseRegisterRequest)` | 서버 사이드 Firebase 회원가입 → `AuthResponse` (`channelUid` \| `channelSlug` 필수, `phone_number` 지원) |
|
|
1526
1528
|
| `me(params?: { channelUid?: string })` | 현재 사용자 프로필 조회 → `UserDto` |
|
|
1527
1529
|
| `refresh(refreshToken: string)` | 토큰 갱신 → `{ accessToken, refreshToken }` |
|
|
1528
1530
|
| `logout()` | 로그아웃 (프로바이더 토큰 삭제 + 서버 세션 무효화) |
|
|
@@ -5,7 +5,7 @@ export declare const contentKeys: {
|
|
|
5
5
|
list: (params: ListContentQuery) => readonly ["contents", "list", {
|
|
6
6
|
page: number;
|
|
7
7
|
limit: number;
|
|
8
|
-
status?:
|
|
8
|
+
status?: "published" | "draft" | "private" | undefined;
|
|
9
9
|
type?: string | undefined;
|
|
10
10
|
channelUid?: string | undefined;
|
|
11
11
|
channelSlug?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ph-cms/client-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "Unified PH-CMS Client SDK (React + Core)",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"LICENSE"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ph-cms/api-contract": "^0.1.
|
|
33
|
+
"@ph-cms/api-contract": "^0.1.14",
|
|
34
34
|
"@tanstack/react-query": "^5.0.0",
|
|
35
35
|
"axios": "^1.6.0",
|
|
36
36
|
"zod": "^3.22.4"
|