@readerseye2/cr_type 1.0.35 → 1.0.43
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.type.d.ts +29 -0
- package/dist/book/book.type.js +41 -0
- package/dist/book/index.d.ts +1 -0
- package/dist/book/index.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/socket/socket-message.types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare enum BookLanguageCode {
|
|
2
|
+
KO = "ko",
|
|
3
|
+
EN = "en"
|
|
4
|
+
}
|
|
5
|
+
export declare const BOOK_LEVEL_MIN = 5;
|
|
6
|
+
export declare const BOOK_LEVEL_MAX = 19;
|
|
7
|
+
export declare enum BookAgeGrade {
|
|
8
|
+
ALL = "all",// 전체이용가
|
|
9
|
+
AGE_7 = "7+",// 7세 이상
|
|
10
|
+
AGE_12 = "12+",// 12세 이상
|
|
11
|
+
AGE_15 = "15+",// 15세 이상
|
|
12
|
+
AGE_19 = "19+"
|
|
13
|
+
}
|
|
14
|
+
export declare enum BookLength {
|
|
15
|
+
SHORT = "short",// 단편
|
|
16
|
+
MEDIUM = "medium",// 중편
|
|
17
|
+
LONG = "long"
|
|
18
|
+
}
|
|
19
|
+
export declare enum BookGenre {
|
|
20
|
+
FICTION = "fiction",// 소설
|
|
21
|
+
NON_FICTION = "non-fiction",// 비소설
|
|
22
|
+
FAIRY_TALE = "fairy-tale",// 동화
|
|
23
|
+
EDUCATIONAL = "educational",// 교육
|
|
24
|
+
SCIENCE = "science",// 과학
|
|
25
|
+
HISTORY = "history",// 역사
|
|
26
|
+
BIOGRAPHY = "biography",// 전기
|
|
27
|
+
POETRY = "poetry",// 시
|
|
28
|
+
OTHER = "other"
|
|
29
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookGenre = exports.BookLength = exports.BookAgeGrade = exports.BOOK_LEVEL_MAX = exports.BOOK_LEVEL_MIN = exports.BookLanguageCode = void 0;
|
|
4
|
+
// 값 자체를 코드로 쓰는 용도 (DB 저장/전송)
|
|
5
|
+
var BookLanguageCode;
|
|
6
|
+
(function (BookLanguageCode) {
|
|
7
|
+
BookLanguageCode["KO"] = "ko";
|
|
8
|
+
BookLanguageCode["EN"] = "en";
|
|
9
|
+
})(BookLanguageCode || (exports.BookLanguageCode = BookLanguageCode = {}));
|
|
10
|
+
// 레벨 범위도 중앙집중 관리
|
|
11
|
+
exports.BOOK_LEVEL_MIN = 5;
|
|
12
|
+
exports.BOOK_LEVEL_MAX = 19;
|
|
13
|
+
// 연령 등급
|
|
14
|
+
var BookAgeGrade;
|
|
15
|
+
(function (BookAgeGrade) {
|
|
16
|
+
BookAgeGrade["ALL"] = "all";
|
|
17
|
+
BookAgeGrade["AGE_7"] = "7+";
|
|
18
|
+
BookAgeGrade["AGE_12"] = "12+";
|
|
19
|
+
BookAgeGrade["AGE_15"] = "15+";
|
|
20
|
+
BookAgeGrade["AGE_19"] = "19+";
|
|
21
|
+
})(BookAgeGrade || (exports.BookAgeGrade = BookAgeGrade = {}));
|
|
22
|
+
// 책 길이
|
|
23
|
+
var BookLength;
|
|
24
|
+
(function (BookLength) {
|
|
25
|
+
BookLength["SHORT"] = "short";
|
|
26
|
+
BookLength["MEDIUM"] = "medium";
|
|
27
|
+
BookLength["LONG"] = "long";
|
|
28
|
+
})(BookLength || (exports.BookLength = BookLength = {}));
|
|
29
|
+
// 책 종류/장르
|
|
30
|
+
var BookGenre;
|
|
31
|
+
(function (BookGenre) {
|
|
32
|
+
BookGenre["FICTION"] = "fiction";
|
|
33
|
+
BookGenre["NON_FICTION"] = "non-fiction";
|
|
34
|
+
BookGenre["FAIRY_TALE"] = "fairy-tale";
|
|
35
|
+
BookGenre["EDUCATIONAL"] = "educational";
|
|
36
|
+
BookGenre["SCIENCE"] = "science";
|
|
37
|
+
BookGenre["HISTORY"] = "history";
|
|
38
|
+
BookGenre["BIOGRAPHY"] = "biography";
|
|
39
|
+
BookGenre["POETRY"] = "poetry";
|
|
40
|
+
BookGenre["OTHER"] = "other";
|
|
41
|
+
})(BookGenre || (exports.BookGenre = BookGenre = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './book.type';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./book.type"), exports);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED