@readerseye2/cr_type 1.0.92 → 1.0.95

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,10 @@
1
+ /** MySQL tag 테이블 1:1 */
2
+ export interface Tag {
3
+ tag_idx: number;
4
+ tag_name: string;
5
+ }
6
+ /** MySQL book_tag 테이블 1:1 */
7
+ export interface BookTag {
8
+ book_idx: number;
9
+ tag_idx: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.js CHANGED
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // src/index.ts
18
18
  __exportStar(require("./session/session.type"), exports);
19
- __exportStar(require("./socket"), exports); // socket 전체 export
19
+ __exportStar(require("./socket"), exports);
20
20
  __exportStar(require("./book"), exports);
21
- __exportStar(require("./ast"), exports); // AST 타입 (SectionData, Block 등)
22
- // viewer 타입은 @readerseye2/cr_viewer에서 export
21
+ __exportStar(require("./ast"), exports);
@@ -0,0 +1 @@
1
+ export * from './store.types';
@@ -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("./store.types"), exports);
@@ -0,0 +1,42 @@
1
+ import type { SectionId, SectionData } from '../ast/ast.types';
2
+ import type { Book, SectionSummary } from '../book/book.type';
3
+ export type SectionMap = Record<SectionId, SectionData>;
4
+ export type RuntimeTemp = {
5
+ /** 오디오 blobUrl (런타임 전용): sectionId -> clipIndex -> blobUrl */
6
+ audioBlobUrlBySection: Record<SectionId, Record<number, string>>;
7
+ /** 이미지 blobUrl (런타임 전용): sectionId -> imageIndex -> blobUrl */
8
+ imageBlobUrlBySection: Record<SectionId, Record<number, string>>;
9
+ };
10
+ export type SaveStatus = 'unsaved' | 'saving' | 'saved' | 'error';
11
+ export type SectionSaveState = {
12
+ status: SaveStatus;
13
+ savedAt?: string;
14
+ errorMessage?: string;
15
+ };
16
+ export type BookSaveState = {
17
+ /** 메타 저장 상태 */
18
+ meta: SaveStatus;
19
+ /** 섹션 순서 저장 상태 */
20
+ order: SaveStatus;
21
+ /** 섹션별 저장 상태 */
22
+ sections: Record<SectionId, SectionSaveState>;
23
+ /** 저장 진행률 */
24
+ progress?: {
25
+ current: number;
26
+ total: number;
27
+ jobId?: string;
28
+ };
29
+ };
30
+ export interface MakeBookState {
31
+ meta: Book | null;
32
+ /** 정규화된 섹션 맵 */
33
+ sectionsById: SectionMap;
34
+ /** 섹션 순서(목차) */
35
+ sectionOrder: SectionId[];
36
+ /** 리스트 캐시(선택) */
37
+ sectionSummaries?: SectionSummary[];
38
+ /** 런타임 전용(blobUrl 등) */
39
+ temp: RuntimeTemp;
40
+ /** 저장 상태 (클라이언트 전용) */
41
+ saveState: BookSaveState;
42
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.92",
3
+ "version": "1.0.95",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",