@readerseye2/cr_type 1.0.97 → 1.0.98

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.
@@ -1,9 +1,9 @@
1
1
  /** TTS 설정 (섹션 레벨) */
2
2
  export type AudioMeta = {
3
3
  provider: 'AWS' | 'GCP';
4
- language: string;
5
- engine: string;
6
- voiceName: string;
4
+ language?: string;
5
+ engine?: string;
6
+ voiceName?: string;
7
7
  voiceGender?: 'Male' | 'Female';
8
8
  };
9
9
  /** 섹션 요약 (snake_case — MongoDB/API 공용) */
@@ -8,8 +8,6 @@ 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 PublishAgeRating = "all" | "12" | "15" | "19";
13
11
  /** 책 상태 (라이프사이클) */
14
12
  export type BookStatus = "draft" | "pending" | "published" | "suspended";
15
13
  /** MySQL book 테이블 매핑 (단일 테이블) */
@@ -33,7 +31,6 @@ export interface Book {
33
31
  original_publisher: string | null;
34
32
  isbn: string | null;
35
33
  price_point: number | null;
36
- age_rating: PublishAgeRating;
37
34
  quiz_retry_allowed: boolean;
38
35
  tags: string[] | null;
39
36
  isdeleted: boolean;
@@ -72,12 +69,6 @@ export declare const BookEnLevelLabel: {
72
69
  readonly chapter: "챕터";
73
70
  readonly novel: "노블";
74
71
  };
75
- export declare const PublishAgeRatingLabel: {
76
- readonly all: "전체이용가";
77
- readonly "12": "12세 이용가";
78
- readonly "15": "15세 이용가";
79
- readonly "19": "19세 이용가";
80
- };
81
72
  /** 권장 연령 범위 (5~19세) */
82
73
  export declare const BOOK_AGE_MIN = 5;
83
74
  export declare const BOOK_AGE_MAX = 19;
@@ -302,11 +293,6 @@ export declare const getEnLevelOptions: () => {
302
293
  value: BookEnLevel;
303
294
  label: "스토리" | "리더스" | "얼리챕터" | "미들챕터" | "챕터" | "노블";
304
295
  }[];
305
- /** 출판 연령등급 옵션 (UI Select용) */
306
- export declare const getAgeRatingOptions: () => {
307
- value: PublishAgeRating;
308
- label: "전체이용가" | "12세 이용가" | "15세 이용가" | "19세 이용가";
309
- }[];
310
296
  /** 권장 연령 옵션 (5~19세) */
311
297
  export declare const getAgeOptions: () => {
312
298
  value: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // ========== 리터럴 유니온 타입 ==========
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.getAgeOptions = exports.getAgeRatingOptions = exports.getEnLevelOptions = exports.getGenreOptions = exports.getLengthOptions = exports.getLanguageOptions = exports.calcSoundMinutes = exports.getLexileDescription = exports.getARDescription = exports.LEXILE_INDEX_RANGES = exports.AR_INDEX_RANGES = exports.DEFAULT_BOOK_META = exports.BOOK_AGE_MAX = exports.BOOK_AGE_MIN = exports.PublishAgeRatingLabel = exports.BookEnLevelLabel = exports.BookGenreLabel = exports.BookLengthLabel = exports.BookLanguageLabel = void 0;
4
+ exports.getAgeOptions = exports.getEnLevelOptions = exports.getGenreOptions = exports.getLengthOptions = exports.getLanguageOptions = exports.calcSoundMinutes = exports.getLexileDescription = exports.getARDescription = exports.LEXILE_INDEX_RANGES = exports.AR_INDEX_RANGES = exports.DEFAULT_BOOK_META = exports.BOOK_AGE_MAX = exports.BOOK_AGE_MIN = exports.BookEnLevelLabel = exports.BookGenreLabel = exports.BookLengthLabel = exports.BookLanguageLabel = void 0;
5
5
  // ========== 라벨 (UI 표시용) ==========
6
6
  exports.BookLanguageLabel = {
7
7
  ko: "한국어",
@@ -25,12 +25,6 @@ exports.BookEnLevelLabel = {
25
25
  chapter: "챕터",
26
26
  novel: "노블",
27
27
  };
28
- exports.PublishAgeRatingLabel = {
29
- all: "전체이용가",
30
- "12": "12세 이용가",
31
- "15": "15세 이용가",
32
- "19": "19세 이용가",
33
- };
34
28
  // ========== 상수 ==========
35
29
  /** 권장 연령 범위 (5~19세) */
36
30
  exports.BOOK_AGE_MIN = 5;
@@ -115,12 +109,6 @@ const getEnLevelOptions = () => Object.entries(exports.BookEnLevelLabel).map(([v
115
109
  label,
116
110
  }));
117
111
  exports.getEnLevelOptions = getEnLevelOptions;
118
- /** 출판 연령등급 옵션 (UI Select용) */
119
- const getAgeRatingOptions = () => Object.entries(exports.PublishAgeRatingLabel).map(([value, label]) => ({
120
- value: value,
121
- label,
122
- }));
123
- exports.getAgeRatingOptions = getAgeRatingOptions;
124
112
  /** 권장 연령 옵션 (5~19세) */
125
113
  const getAgeOptions = () => Array.from({ length: exports.BOOK_AGE_MAX - exports.BOOK_AGE_MIN + 1 }, (_, i) => ({
126
114
  value: exports.BOOK_AGE_MIN + i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",