@readerseye2/cr_type 1.0.103 → 1.0.105
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,17 @@
|
|
|
1
|
+
import type { BookStatus } from "./book.type";
|
|
2
|
+
/** 요청 처리 결과 */
|
|
3
|
+
export type RequestResult = "pending" | "approved" | "rejected";
|
|
4
|
+
/** MySQL book_status_request 테이블 1:1 */
|
|
5
|
+
export interface BookStatusRequest {
|
|
6
|
+
request_idx: number;
|
|
7
|
+
book_idx: number;
|
|
8
|
+
from_status: BookStatus;
|
|
9
|
+
to_status: BookStatus;
|
|
10
|
+
requested_by: number;
|
|
11
|
+
request_reason: string;
|
|
12
|
+
result: RequestResult;
|
|
13
|
+
reviewed_by: number | null;
|
|
14
|
+
review_reason: string | null;
|
|
15
|
+
created_at: string;
|
|
16
|
+
reviewed_at: string | null;
|
|
17
|
+
}
|
package/dist/book/book.type.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export type BookLength = "short" | "medium" | "long";
|
|
|
8
8
|
export type BookGenre = "fiction" | "non-fiction" | "other";
|
|
9
9
|
/** 영어레벨 (영어책 전용) */
|
|
10
10
|
export type BookEnLevel = "story" | "readers" | "early-chapter" | "middle-chapter" | "chapter" | "novel";
|
|
11
|
-
/** 책 상태
|
|
12
|
-
export type BookStatus = "draft" | "
|
|
11
|
+
/** 책 상태 */
|
|
12
|
+
export type BookStatus = "draft" | "published" | "suspended" | "deprecated";
|
|
13
13
|
/** MySQL book 테이블 매핑 (단일 테이블) */
|
|
14
14
|
export interface Book {
|
|
15
15
|
book_idx: number;
|
|
@@ -32,10 +32,17 @@ export interface Book {
|
|
|
32
32
|
isbn: string | null;
|
|
33
33
|
price_point: number | null;
|
|
34
34
|
quiz_retry_allowed: boolean;
|
|
35
|
+
shelf_count: number;
|
|
36
|
+
total_word_count: number;
|
|
37
|
+
section_count: number;
|
|
38
|
+
total_sound_seconds: number;
|
|
39
|
+
rating_sum: number;
|
|
40
|
+
review_count: number;
|
|
35
41
|
tags: string[] | null;
|
|
36
42
|
isdeleted: boolean;
|
|
37
43
|
created_at: string;
|
|
38
44
|
updated_at: string;
|
|
45
|
+
first_published_at: string | null;
|
|
39
46
|
}
|
|
40
47
|
/** 책 상세 조회 API 응답 (meta + summary + content) */
|
|
41
48
|
export interface BookDTO {
|
package/dist/book/index.d.ts
CHANGED
package/dist/book/index.js
CHANGED
|
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./book.type"), exports);
|
|
18
18
|
__exportStar(require("./book-sections.type"), exports);
|
|
19
|
-
__exportStar(require("./book-
|
|
19
|
+
__exportStar(require("./book-status-request.type"), exports);
|
|
20
20
|
__exportStar(require("./tag.type"), exports);
|