@k-msg/channel 0.15.0 → 0.17.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 +5 -1
- package/dist/index.js +23 -23
- package/dist/index.js.map +8 -8
- package/dist/index.mjs +23 -23
- package/dist/index.mjs.map +8 -8
- package/dist/management/crud.d.ts +1 -1
- package/dist/management/permissions.d.ts +1 -1
- package/dist/shared/event-emitter.d.ts +17 -0
- package/dist/verification/business.verify.d.ts +1 -1
- package/dist/verification/number.verify.d.ts +1 -1
- package/package.json +4 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Channel CRUD Operations
|
|
3
3
|
* 채널 생성, 조회, 수정, 삭제 통합 관리
|
|
4
4
|
*/
|
|
5
|
-
import { EventEmitter } from "
|
|
5
|
+
import { EventEmitter } from "../shared/event-emitter";
|
|
6
6
|
import { type Channel, type ChannelCreateRequest, type ChannelFilters, type SenderNumber, type SenderNumberCreateRequest, type SenderNumberFilters } from "../types/channel.types";
|
|
7
7
|
export interface PaginationOptions {
|
|
8
8
|
page: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type Listener = (...args: any[]) => void;
|
|
2
|
+
/**
|
|
3
|
+
* Minimal event emitter implementation that works in Edge/Web runtimes.
|
|
4
|
+
*/
|
|
5
|
+
export declare class EventEmitter {
|
|
6
|
+
private listenersMap;
|
|
7
|
+
on(eventName: string, listener: Listener): this;
|
|
8
|
+
addListener(eventName: string, listener: Listener): this;
|
|
9
|
+
off(eventName: string, listener: Listener): this;
|
|
10
|
+
removeListener(eventName: string, listener: Listener): this;
|
|
11
|
+
once(eventName: string, listener: Listener): this;
|
|
12
|
+
emit(eventName: string, ...args: any[]): boolean;
|
|
13
|
+
removeAllListeners(eventName?: string): this;
|
|
14
|
+
listenerCount(eventName: string): number;
|
|
15
|
+
eventNames(): string[];
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Business Verification System
|
|
3
3
|
* 사업자 정보 및 서류 검증 시스템
|
|
4
4
|
*/
|
|
5
|
-
import { EventEmitter } from "
|
|
5
|
+
import { EventEmitter } from "../shared/event-emitter";
|
|
6
6
|
import { DocumentType, type VerificationDocument, VerificationStatus } from "../types/channel.types";
|
|
7
7
|
export interface BusinessInfo {
|
|
8
8
|
businessName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-msg/channel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"packageManager": "bun@1.3.8",
|
|
5
5
|
"description": "AlimTalk channel and sender number management",
|
|
6
6
|
"type": "module",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "bun run build:esm && bun run build:cjs && bun run build:types",
|
|
21
|
+
"build": "bun run clean && bun run build:esm && bun run build:cjs && bun run build:types",
|
|
22
22
|
"build:esm": "bun build ./src/index.ts --outdir ./dist --format esm --minify --sourcemap --entry-naming '[name].mjs' --external 'bun:test'",
|
|
23
23
|
"build:cjs": "bun build ./src/index.ts --outdir ./dist --format cjs --minify --sourcemap --entry-naming '[name].js' --external 'bun:test'",
|
|
24
24
|
"build:types": "tsc",
|
|
25
25
|
"dev": "tsc --watch",
|
|
26
26
|
"test": "bun test",
|
|
27
|
-
"clean": "rm -rf dist",
|
|
27
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
28
28
|
"pack": "bun pm pack",
|
|
29
29
|
"publish": "bun publish --access public"
|
|
30
30
|
},
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.7.2",
|
|
36
|
-
"@types/bun": "
|
|
37
|
-
"@types/node": "^22.0.0"
|
|
36
|
+
"@types/bun": "^1.3.9"
|
|
38
37
|
},
|
|
39
38
|
"keywords": [
|
|
40
39
|
"alimtalk",
|