@readerseye2/cr_type 1.0.102 → 1.0.104

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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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" | "pending" | "published" | "suspended";
11
+ /** 책 상태 */
12
+ export type BookStatus = "draft" | "published" | "suspended" | "deprecated";
13
13
  /** MySQL book 테이블 매핑 (단일 테이블) */
14
14
  export interface Book {
15
15
  book_idx: number;
@@ -32,11 +32,16 @@ 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;
39
- published_at: string | null;
40
45
  }
41
46
  /** 책 상세 조회 API 응답 (meta + summary + content) */
42
47
  export interface BookDTO {
@@ -1,4 +1,4 @@
1
1
  export * from './book.type';
2
2
  export * from './book-sections.type';
3
- export * from './book-log.type';
3
+ export * from './book-status-request.type';
4
4
  export * from './tag.type';
@@ -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-log.type"), exports);
19
+ __exportStar(require("./book-status-request.type"), exports);
20
20
  __exportStar(require("./tag.type"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.102",
3
+ "version": "1.0.104",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",