@flexmatch-dev/interface 0.1.0
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/README.md +55 -0
- package/dist/@common/index.d.ts +1 -0
- package/dist/@common/index.js +18 -0
- package/dist/@common/index.js.map +1 -0
- package/dist/@common/pagination.d.ts +13 -0
- package/dist/@common/pagination.js +3 -0
- package/dist/@common/pagination.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/user/account/account.request.d.ts +4 -0
- package/dist/user/account/account.request.js +3 -0
- package/dist/user/account/account.request.js.map +1 -0
- package/dist/user/account/index.d.ts +1 -0
- package/dist/user/account/index.js +18 -0
- package/dist/user/account/index.js.map +1 -0
- package/dist/user/auth/auth.constant.d.ts +9 -0
- package/dist/user/auth/auth.constant.js +12 -0
- package/dist/user/auth/auth.constant.js.map +1 -0
- package/dist/user/auth/auth.interface.d.ts +12 -0
- package/dist/user/auth/auth.interface.js +3 -0
- package/dist/user/auth/auth.interface.js.map +1 -0
- package/dist/user/auth/auth.request.d.ts +10 -0
- package/dist/user/auth/auth.request.js +3 -0
- package/dist/user/auth/auth.request.js.map +1 -0
- package/dist/user/auth/auth.response.d.ts +14 -0
- package/dist/user/auth/auth.response.js +3 -0
- package/dist/user/auth/auth.response.js.map +1 -0
- package/dist/user/auth/index.d.ts +4 -0
- package/dist/user/auth/index.js +21 -0
- package/dist/user/auth/index.js.map +1 -0
- package/dist/user/chat/chat.constant.d.ts +17 -0
- package/dist/user/chat/chat.constant.js +21 -0
- package/dist/user/chat/chat.constant.js.map +1 -0
- package/dist/user/chat/chat.message.d.ts +22 -0
- package/dist/user/chat/chat.message.js +3 -0
- package/dist/user/chat/chat.message.js.map +1 -0
- package/dist/user/chat/chat.request.d.ts +5 -0
- package/dist/user/chat/chat.request.js +3 -0
- package/dist/user/chat/chat.request.js.map +1 -0
- package/dist/user/chat/chat.response.d.ts +34 -0
- package/dist/user/chat/chat.response.js +3 -0
- package/dist/user/chat/chat.response.js.map +1 -0
- package/dist/user/chat/index.d.ts +4 -0
- package/dist/user/chat/index.js +21 -0
- package/dist/user/chat/index.js.map +1 -0
- package/dist/user/index.d.ts +3 -0
- package/dist/user/index.js +20 -0
- package/dist/user/index.js.map +1 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @flexmatch-dev/interface
|
|
2
|
+
|
|
3
|
+
FlexMatch 프로젝트의 프론트엔드와 백엔드가 공유하는 API 타입, 페이로드, 상수를 관리하는 경량 패키지입니다.
|
|
4
|
+
|
|
5
|
+
## 스크립트
|
|
6
|
+
|
|
7
|
+
- `npm run build` – TypeScript를 `dist/` 폴더로 컴파일합니다.
|
|
8
|
+
- `npm run build:watch` – 변경 사항을 감지하며 빌드를 실행합니다.
|
|
9
|
+
|
|
10
|
+
패키지는 `prepare` 스크립트에 `build`가 연결되어 있으므로 다른 프로젝트(예: `frontend`, `backend`)에서 `npm install` 시 자동으로 빌드됩니다.
|
|
11
|
+
|
|
12
|
+
## 사용 방법
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { USER_ROLES, type LoginRequest } from '@flexmatch-dev/interface';
|
|
16
|
+
|
|
17
|
+
const request: LoginRequest = {
|
|
18
|
+
email: 'user@example.com',
|
|
19
|
+
password: 'secret',
|
|
20
|
+
targetRole: USER_ROLES.ADMIN,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### 설치
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @flexmatch-dev/interface
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 규칙
|
|
31
|
+
|
|
32
|
+
- `constant` – 공통으로 사용하는 상수
|
|
33
|
+
- `request` – API request에 사용하는 body 혹은 query셋
|
|
34
|
+
- `response` – API response에 사용하는 body
|
|
35
|
+
- `error` – HTTP exception에 사용하는 에러 코드 및 response의 body
|
|
36
|
+
- `message` – 소켓 통신에 사용하는 메시지 페이로드
|
|
37
|
+
- `interface` – 그 외에 공통 인터페이스
|
|
38
|
+
|
|
39
|
+
## 배포 가이드
|
|
40
|
+
|
|
41
|
+
1. 버전 태깅
|
|
42
|
+
```bash
|
|
43
|
+
npm version <major|minor|patch>
|
|
44
|
+
```
|
|
45
|
+
2. 빌드 확인
|
|
46
|
+
```bash
|
|
47
|
+
npm run build
|
|
48
|
+
```
|
|
49
|
+
3. 패키지 발행
|
|
50
|
+
```bash
|
|
51
|
+
npm publish --access public
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
패키지에는 `dist/` 산출물만 포함되며, 불필요한 파일은 `.npmignore` 및 `package.json`의 `files` 필드를 통해 제외됩니다.
|
|
55
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pagination';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./pagination"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/@common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface GetPaginationRequest {
|
|
2
|
+
page: number;
|
|
3
|
+
limit: number;
|
|
4
|
+
}
|
|
5
|
+
export interface GetPaginationResponse {
|
|
6
|
+
limit: number;
|
|
7
|
+
totalItems: number;
|
|
8
|
+
firstPage: number | null;
|
|
9
|
+
previousPage: number | null;
|
|
10
|
+
currentPage: number;
|
|
11
|
+
nextPage: number | null;
|
|
12
|
+
lastPage: number | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../src/@common/pagination.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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("./@common"), exports);
|
|
18
|
+
__exportStar(require("./user"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.request.js","sourceRoot":"","sources":["../../../src/user/account/account.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account.request';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./account.request"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user/account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const USER_ROLES: {
|
|
2
|
+
readonly ADMIN: "ADMIN";
|
|
3
|
+
readonly CREATOR: "CREATOR";
|
|
4
|
+
readonly BRAND: "BRAND";
|
|
5
|
+
readonly CUSTOMER: "CUSTOMER";
|
|
6
|
+
readonly GUEST: "GUEST";
|
|
7
|
+
};
|
|
8
|
+
export type UserRole = (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
9
|
+
export declare const DEFAULT_USER_ROLE: UserRole;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_USER_ROLE = exports.USER_ROLES = void 0;
|
|
4
|
+
exports.USER_ROLES = {
|
|
5
|
+
ADMIN: 'ADMIN',
|
|
6
|
+
CREATOR: 'CREATOR',
|
|
7
|
+
BRAND: 'BRAND',
|
|
8
|
+
CUSTOMER: 'CUSTOMER',
|
|
9
|
+
GUEST: 'GUEST',
|
|
10
|
+
};
|
|
11
|
+
exports.DEFAULT_USER_ROLE = exports.USER_ROLES.CUSTOMER;
|
|
12
|
+
//# sourceMappingURL=auth.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.constant.js","sourceRoot":"","sources":["../../../src/user/auth/auth.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;CACN,CAAC;AAIE,QAAA,iBAAiB,GAAa,kBAAU,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.interface.js","sourceRoot":"","sources":["../../../src/user/auth/auth.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.request.js","sourceRoot":"","sources":["../../../src/user/auth/auth.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UserRole } from "./auth.constant";
|
|
2
|
+
export interface CreateAuthResponse {
|
|
3
|
+
idx: number;
|
|
4
|
+
targetRole: UserRole;
|
|
5
|
+
availableRoles: UserRole[];
|
|
6
|
+
accessToken: string;
|
|
7
|
+
refreshToken: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateAuthResponse {
|
|
10
|
+
idx: number;
|
|
11
|
+
targetRole: UserRole;
|
|
12
|
+
availableRoles: UserRole[];
|
|
13
|
+
accessToken: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.response.js","sourceRoot":"","sources":["../../../src/user/auth/auth.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./auth.constant"), exports);
|
|
18
|
+
__exportStar(require("./auth.interface"), exports);
|
|
19
|
+
__exportStar(require("./auth.request"), exports);
|
|
20
|
+
__exportStar(require("./auth.response"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B;AAC/B,kDAAgC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const CHAT_CLIENT_ROLES: {
|
|
2
|
+
readonly USER: "user";
|
|
3
|
+
readonly SYSTEM: "system";
|
|
4
|
+
};
|
|
5
|
+
export declare const CHAT_CLIENT_EVENTS: {
|
|
6
|
+
readonly JOIN_ROOM: "join_room";
|
|
7
|
+
readonly LEAVE_ROOM: "leave_room";
|
|
8
|
+
readonly SYSTEM_MESSAGE: "system_message";
|
|
9
|
+
readonly REQUEST_USER_LIST: "request_user_list";
|
|
10
|
+
readonly USER_CONNECTED: "connected";
|
|
11
|
+
readonly USER_DISCONNECTED: "disconnected";
|
|
12
|
+
};
|
|
13
|
+
export declare const CHAT_CLIENT_MESSAGE: {
|
|
14
|
+
readonly SYSTEM_MESSAGE: "system_message";
|
|
15
|
+
readonly USER_STATUS: "user_status";
|
|
16
|
+
readonly USER_LIST: "user_list";
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CHAT_CLIENT_MESSAGE = exports.CHAT_CLIENT_EVENTS = exports.CHAT_CLIENT_ROLES = void 0;
|
|
4
|
+
exports.CHAT_CLIENT_ROLES = {
|
|
5
|
+
USER: 'user',
|
|
6
|
+
SYSTEM: 'system',
|
|
7
|
+
};
|
|
8
|
+
exports.CHAT_CLIENT_EVENTS = {
|
|
9
|
+
JOIN_ROOM: 'join_room',
|
|
10
|
+
LEAVE_ROOM: 'leave_room',
|
|
11
|
+
SYSTEM_MESSAGE: 'system_message',
|
|
12
|
+
REQUEST_USER_LIST: 'request_user_list',
|
|
13
|
+
USER_CONNECTED: 'connected',
|
|
14
|
+
USER_DISCONNECTED: 'disconnected',
|
|
15
|
+
};
|
|
16
|
+
exports.CHAT_CLIENT_MESSAGE = {
|
|
17
|
+
SYSTEM_MESSAGE: 'system_message',
|
|
18
|
+
USER_STATUS: 'user_status',
|
|
19
|
+
USER_LIST: 'user_list',
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=chat.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.constant.js","sourceRoot":"","sources":["../../../src/user/chat/chat.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;CACR,CAAC;AAEE,QAAA,kBAAkB,GAAG;IAChC,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,cAAc,EAAE,WAAW;IAC3B,iBAAiB,EAAE,cAAc;CACzB,CAAC;AAEE,QAAA,mBAAmB,GAAG;IACjC,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;CACd,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface SystemMessageRequestPayload {
|
|
2
|
+
messageId: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
userNickname: string;
|
|
5
|
+
targetRoomId?: string;
|
|
6
|
+
targetUserId?: string;
|
|
7
|
+
content: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
}
|
|
10
|
+
export interface JoinRoomPayload {
|
|
11
|
+
roomId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LeaveRoomPayload {
|
|
14
|
+
roomId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface SystemMessageBroadcastPayload extends SystemMessageRequestPayload {
|
|
17
|
+
deliveryType: 'room' | 'user' | 'callback';
|
|
18
|
+
}
|
|
19
|
+
export interface UserStatusBroadcastPayload {
|
|
20
|
+
event: 'connected' | 'disconnected';
|
|
21
|
+
userId: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.message.js","sourceRoot":"","sources":["../../../src/user/chat/chat.message.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.request.js","sourceRoot":"","sources":["../../../src/user/chat/chat.request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GetPaginationResponse } from "../../@common";
|
|
2
|
+
export interface GetItemChattingRoomUserResponse {
|
|
3
|
+
idx: number;
|
|
4
|
+
nickname: string | null;
|
|
5
|
+
profileImageUrl: string | null;
|
|
6
|
+
isConnected: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface GetItemChattingRoomResponse {
|
|
9
|
+
idx: number;
|
|
10
|
+
users: GetItemChattingRoomUserResponse[];
|
|
11
|
+
isRead: boolean;
|
|
12
|
+
messagedAt: Date | null;
|
|
13
|
+
lastContent: string | null;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
17
|
+
export interface GetListChattingRoomResponse {
|
|
18
|
+
pagination: GetPaginationResponse;
|
|
19
|
+
data: GetItemChattingRoomResponse[];
|
|
20
|
+
}
|
|
21
|
+
export interface GetItemChattingMessageResponse {
|
|
22
|
+
idx: number;
|
|
23
|
+
accountIdx: number;
|
|
24
|
+
chattingRoomIdx: number;
|
|
25
|
+
content: string | null;
|
|
26
|
+
attachedFileUrl: string | null;
|
|
27
|
+
attachedFileName: string | null;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
}
|
|
31
|
+
export interface GetListChattingMessageResponse {
|
|
32
|
+
pagination: GetPaginationResponse;
|
|
33
|
+
data: GetItemChattingMessageResponse[];
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.response.js","sourceRoot":"","sources":["../../../src/user/chat/chat.response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./chat.constant"), exports);
|
|
18
|
+
__exportStar(require("./chat.request"), exports);
|
|
19
|
+
__exportStar(require("./chat.response"), exports);
|
|
20
|
+
__exportStar(require("./chat.message"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/user/chat/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,iDAA+B;AAC/B,kDAAgC;AAChC,iDAA+B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./account"), exports);
|
|
18
|
+
__exportStar(require("./auth"), exports);
|
|
19
|
+
__exportStar(require("./chat"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flexmatch-dev/interface",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared API interfaces and constants for FlexMatch platform services.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"type": "commonjs",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"clean": "rimraf dist",
|
|
22
|
+
"build": "npm run clean && tsc --project tsconfig.json",
|
|
23
|
+
"build:watch": "tsc --project tsconfig.json --watch",
|
|
24
|
+
"prepare": "npm run build",
|
|
25
|
+
"lint": "eslint 'src/**/*.{ts,tsx}'",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"flexmatch",
|
|
30
|
+
"shared",
|
|
31
|
+
"interfaces",
|
|
32
|
+
"constants"
|
|
33
|
+
],
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/flexmatch/flexmatch.git"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/flexmatch/flexmatch/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/flexmatch/flexmatch#readme",
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
47
|
+
"@typescript-eslint/parser": "^8.46.3",
|
|
48
|
+
"eslint": "^9.39.1",
|
|
49
|
+
"rimraf": "^5.0.5",
|
|
50
|
+
"typescript": "^5.9.3"
|
|
51
|
+
}
|
|
52
|
+
}
|