@readerseye2/cr_type 1.0.157 → 1.0.159
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/book/book-api.type.d.ts +15 -15
- package/dist/book/book-api.type.js +2 -2
- package/dist/book/book-log.type.d.ts +14 -14
- package/dist/book/book-log.type.js +2 -2
- package/dist/book/book.const.d.ts +274 -274
- package/dist/book/book.const.js +119 -119
- package/dist/book/child-reading-progress.type.d.ts +4 -0
- package/dist/book/legacy.book.type.d.ts +164 -164
- package/dist/book/legacy.book.type.js +41 -41
- package/dist/socket/unified-session.types.d.ts +3 -0
- package/package.json +27 -27
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated Legacy 타입 — 신규 코드에서 사용 금지
|
|
4
|
-
* Book 통합 리팩토링 전 타입 백업 (2026-02-02)
|
|
5
|
-
* 신규: Book (book.type.ts), BookDTO (book-api.type.ts), MakeBookState (store.types.ts)
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.BOOK_LEVEL_MAX = exports.BOOK_LEVEL_MIN = exports.BookAgeGrade = exports.BookGenreEnum = exports.BookLanguageCode = void 0;
|
|
9
|
-
// ========== deprecated enums ==========
|
|
10
|
-
/** @deprecated BookLanguage 사용 권장 */
|
|
11
|
-
var BookLanguageCode;
|
|
12
|
-
(function (BookLanguageCode) {
|
|
13
|
-
BookLanguageCode["KO"] = "ko";
|
|
14
|
-
BookLanguageCode["EN"] = "en";
|
|
15
|
-
})(BookLanguageCode || (exports.BookLanguageCode = BookLanguageCode = {}));
|
|
16
|
-
/** @deprecated BookGenre type 사용 권장 */
|
|
17
|
-
var BookGenreEnum;
|
|
18
|
-
(function (BookGenreEnum) {
|
|
19
|
-
BookGenreEnum["FICTION"] = "fiction";
|
|
20
|
-
BookGenreEnum["NON_FICTION"] = "non-fiction";
|
|
21
|
-
BookGenreEnum["FAIRY_TALE"] = "fairy-tale";
|
|
22
|
-
BookGenreEnum["EDUCATIONAL"] = "educational";
|
|
23
|
-
BookGenreEnum["SCIENCE"] = "science";
|
|
24
|
-
BookGenreEnum["HISTORY"] = "history";
|
|
25
|
-
BookGenreEnum["BIOGRAPHY"] = "biography";
|
|
26
|
-
BookGenreEnum["POETRY"] = "poetry";
|
|
27
|
-
BookGenreEnum["OTHER"] = "other";
|
|
28
|
-
})(BookGenreEnum || (exports.BookGenreEnum = BookGenreEnum = {}));
|
|
29
|
-
/** @deprecated PublishAgeRating 사용 권장 */
|
|
30
|
-
var BookAgeGrade;
|
|
31
|
-
(function (BookAgeGrade) {
|
|
32
|
-
BookAgeGrade["ALL"] = "all";
|
|
33
|
-
BookAgeGrade["AGE_7"] = "7+";
|
|
34
|
-
BookAgeGrade["AGE_12"] = "12+";
|
|
35
|
-
BookAgeGrade["AGE_15"] = "15+";
|
|
36
|
-
BookAgeGrade["AGE_19"] = "19+";
|
|
37
|
-
})(BookAgeGrade || (exports.BookAgeGrade = BookAgeGrade = {}));
|
|
38
|
-
/** @deprecated BOOK_AGE_MIN/MAX 사용 권장 */
|
|
39
|
-
exports.BOOK_LEVEL_MIN = 5;
|
|
40
|
-
/** @deprecated BOOK_AGE_MIN/MAX 사용 권장 */
|
|
41
|
-
exports.BOOK_LEVEL_MAX = 19;
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Legacy 타입 — 신규 코드에서 사용 금지
|
|
4
|
+
* Book 통합 리팩토링 전 타입 백업 (2026-02-02)
|
|
5
|
+
* 신규: Book (book.type.ts), BookDTO (book-api.type.ts), MakeBookState (store.types.ts)
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.BOOK_LEVEL_MAX = exports.BOOK_LEVEL_MIN = exports.BookAgeGrade = exports.BookGenreEnum = exports.BookLanguageCode = void 0;
|
|
9
|
+
// ========== deprecated enums ==========
|
|
10
|
+
/** @deprecated BookLanguage 사용 권장 */
|
|
11
|
+
var BookLanguageCode;
|
|
12
|
+
(function (BookLanguageCode) {
|
|
13
|
+
BookLanguageCode["KO"] = "ko";
|
|
14
|
+
BookLanguageCode["EN"] = "en";
|
|
15
|
+
})(BookLanguageCode || (exports.BookLanguageCode = BookLanguageCode = {}));
|
|
16
|
+
/** @deprecated BookGenre type 사용 권장 */
|
|
17
|
+
var BookGenreEnum;
|
|
18
|
+
(function (BookGenreEnum) {
|
|
19
|
+
BookGenreEnum["FICTION"] = "fiction";
|
|
20
|
+
BookGenreEnum["NON_FICTION"] = "non-fiction";
|
|
21
|
+
BookGenreEnum["FAIRY_TALE"] = "fairy-tale";
|
|
22
|
+
BookGenreEnum["EDUCATIONAL"] = "educational";
|
|
23
|
+
BookGenreEnum["SCIENCE"] = "science";
|
|
24
|
+
BookGenreEnum["HISTORY"] = "history";
|
|
25
|
+
BookGenreEnum["BIOGRAPHY"] = "biography";
|
|
26
|
+
BookGenreEnum["POETRY"] = "poetry";
|
|
27
|
+
BookGenreEnum["OTHER"] = "other";
|
|
28
|
+
})(BookGenreEnum || (exports.BookGenreEnum = BookGenreEnum = {}));
|
|
29
|
+
/** @deprecated PublishAgeRating 사용 권장 */
|
|
30
|
+
var BookAgeGrade;
|
|
31
|
+
(function (BookAgeGrade) {
|
|
32
|
+
BookAgeGrade["ALL"] = "all";
|
|
33
|
+
BookAgeGrade["AGE_7"] = "7+";
|
|
34
|
+
BookAgeGrade["AGE_12"] = "12+";
|
|
35
|
+
BookAgeGrade["AGE_15"] = "15+";
|
|
36
|
+
BookAgeGrade["AGE_19"] = "19+";
|
|
37
|
+
})(BookAgeGrade || (exports.BookAgeGrade = BookAgeGrade = {}));
|
|
38
|
+
/** @deprecated BOOK_AGE_MIN/MAX 사용 권장 */
|
|
39
|
+
exports.BOOK_LEVEL_MIN = 5;
|
|
40
|
+
/** @deprecated BOOK_AGE_MIN/MAX 사용 권장 */
|
|
41
|
+
exports.BOOK_LEVEL_MAX = 19;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ViewerSnapshot, SessionMeta, SessionStats } from './reading-section.types';
|
|
2
2
|
import type { ViewerEvent } from './viewer-events.types';
|
|
3
|
+
import type { ReadingSessionRecord } from '../book/child-reading-progress.type';
|
|
3
4
|
/** 청크 참조 정보 (meta.json 내) */
|
|
4
5
|
export interface ChunkRef {
|
|
5
6
|
start: number;
|
|
@@ -142,6 +143,8 @@ export interface ViewerClosePayload {
|
|
|
142
143
|
durationMs?: number;
|
|
143
144
|
finalSnapshot?: ViewerSnapshot;
|
|
144
145
|
stats?: SessionStats;
|
|
146
|
+
/** 클라이언트가 구축한 세션 전체 기록 — 서버 MongoDB 저장용 */
|
|
147
|
+
sessionRecord?: ReadingSessionRecord;
|
|
145
148
|
}
|
|
146
149
|
/**
|
|
147
150
|
* 시선 데이터 전송 페이로드
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@readerseye2/cr_type",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "CheckReading shared TypeScript types",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"scripts": {
|
|
11
|
-
"deploy_npm": "npm version patch && npm publish --access public",
|
|
12
|
-
"build": "tsc --project tsconfig.json",
|
|
13
|
-
"prepare": "npm run build"
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://github.com/bnri/CR_type.git"
|
|
18
|
-
},
|
|
19
|
-
"author": "guripong",
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"typescript": "^5.8.3"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@readerseye2/cr_type",
|
|
3
|
+
"version": "1.0.159",
|
|
4
|
+
"description": "CheckReading shared TypeScript types",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"deploy_npm": "npm version patch && npm publish --access public",
|
|
12
|
+
"build": "tsc --project tsconfig.json",
|
|
13
|
+
"prepare": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/bnri/CR_type.git"
|
|
18
|
+
},
|
|
19
|
+
"author": "guripong",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "^5.8.3"
|
|
26
|
+
}
|
|
27
|
+
}
|