@readerseye2/cr_type 1.0.53 → 1.0.55

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.
@@ -160,6 +160,8 @@ export interface DraftMeta {
160
160
  draft_book_create_date: string;
161
161
  /** 수정일 (ISO) */
162
162
  draft_book_update_date: string;
163
+ /** 출판 상태 */
164
+ draft_book_publish_status?: 'draft' | 'pending' | 'rejected';
163
165
  }
164
166
  import { SectionSummary } from '../book/book.type';
165
167
  export type DraftSummary = {
@@ -1,7 +1,8 @@
1
1
  export declare enum OauthUserType {
2
2
  CHILD = "child",
3
3
  PARENT = "parent",
4
- ADMIN = "admin"
4
+ ADMIN = "admin",
5
+ CREATOR = "creator"
5
6
  }
6
7
  export declare enum OauthProvider {
7
8
  GOOGLE = "google",
@@ -35,4 +36,10 @@ export interface AdminSessionData extends CommonSessionData {
35
36
  admin_name: string;
36
37
  admin_scope: string;
37
38
  }
39
+ export interface CreatorSessionData extends Omit<CommonSessionData, 'session_type'> {
40
+ creator_idx: number;
41
+ creator_id: string;
42
+ creator_name: string;
43
+ session_type: OauthUserType.CREATOR;
44
+ }
38
45
  export type userSessionData = ParentSessionData | ChildSessionData;
@@ -7,6 +7,7 @@ var OauthUserType;
7
7
  OauthUserType["CHILD"] = "child";
8
8
  OauthUserType["PARENT"] = "parent";
9
9
  OauthUserType["ADMIN"] = "admin";
10
+ OauthUserType["CREATOR"] = "creator";
10
11
  })(OauthUserType || (exports.OauthUserType = OauthUserType = {}));
11
12
  var OauthProvider;
12
13
  (function (OauthProvider) {
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "name": "@readerseye2/cr_type",
3
- "version": "1.0.53",
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.55",
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
+ }