@readerseye2/cr_type 1.0.14 → 1.0.15

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,26 +1,30 @@
1
1
  import { OauthUserType } from "../session";
2
2
  export interface MessageRequest {
3
+ room_key: string;
3
4
  receiver_type: OauthUserType;
4
5
  receiver_idx: number;
5
6
  msg: string;
7
+ temp_id?: string;
6
8
  }
7
9
  export interface MessageResponse {
8
10
  msg: string;
9
11
  sender_type: OauthUserType;
10
12
  sender_idx: number;
11
- receiver_type: 'parent' | 'child';
13
+ receiver_type: OauthUserType;
12
14
  receiver_idx: number;
13
15
  createdAt: string;
14
16
  room_key: string;
15
17
  is_read: boolean;
18
+ _id: string;
19
+ temp_id?: string;
16
20
  }
17
21
  export interface ChatMessageRefreshRequest {
18
22
  roomKey: string;
19
23
  start?: string;
20
24
  end?: string;
25
+ count?: number;
21
26
  }
22
27
  export interface MessageLogDocument extends MessageResponse {
23
- _id?: string;
24
28
  createdAt: string;
25
29
  updatedAt?: string;
26
30
  }
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "name": "@readerseye2/cr_type",
3
- "version": "1.0.14",
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.15",
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
+ }