@k-msg/channel 0.19.1 → 0.20.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.
@@ -1,4 +1,4 @@
1
- import { type Channel, type ChannelCreateRequest, ChannelStatus, ChannelType } from "../types/channel.types";
1
+ import { type Channel, type ChannelCreateRequest, ChannelStatus, ChannelType } from "../../types/channel.types";
2
2
  export declare class KakaoChannelManager {
3
3
  private channels;
4
4
  createChannel(request: ChannelCreateRequest): Promise<Channel>;
@@ -1,4 +1,4 @@
1
- import { type SenderNumber, type SenderNumberCategory, type SenderNumberCreateRequest, SenderNumberStatus } from "../types/channel.types";
1
+ import { type SenderNumber, type SenderNumberCategory, type SenderNumberCreateRequest, SenderNumberStatus } from "../../types/channel.types";
2
2
  export declare class KakaoSenderNumberManager {
3
3
  private senderNumbers;
4
4
  private verificationCodes;
@@ -2,8 +2,8 @@
2
2
  * Channel CRUD Operations
3
3
  * 채널 생성, 조회, 수정, 삭제 통합 관리
4
4
  */
5
+ import { type Channel, type ChannelCreateRequest, type ChannelFilters, type SenderNumber, type SenderNumberCreateRequest, type SenderNumberFilters } from "../../types/channel.types";
5
6
  import { EventEmitter } from "../shared/event-emitter";
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;
9
9
  limit: number;
@@ -1,5 +1,5 @@
1
- import type { ChannelConfig, ChannelVerificationResult } from "../types/channel.types";
2
- import { SenderNumberStatus } from "../types/channel.types";
1
+ import type { ChannelConfig, ChannelVerificationResult } from "../../types/channel.types";
2
+ import { SenderNumberStatus } from "../../types/channel.types";
3
3
  export interface ServiceSenderNumber {
4
4
  phoneNumber: string;
5
5
  name?: string;
@@ -2,8 +2,8 @@
2
2
  * Business Verification System
3
3
  * 사업자 정보 및 서류 검증 시스템
4
4
  */
5
+ import { DocumentType, type VerificationDocument, VerificationStatus } from "../../types/channel.types";
5
6
  import { EventEmitter } from "../shared/event-emitter";
6
- import { DocumentType, type VerificationDocument, VerificationStatus } from "../types/channel.types";
7
7
  export interface BusinessInfo {
8
8
  businessName: string;
9
9
  businessRegistrationNumber: string;
@@ -71,14 +71,14 @@ export interface NumberVerifierOptions {
71
71
  export interface SMSProvider {
72
72
  id: string;
73
73
  name: string;
74
- sendSMS(phoneNumber: string, message: string, options?: any): Promise<SMSResult>;
74
+ sendSMS(phoneNumber: string, message: string, options?: unknown): Promise<SMSResult>;
75
75
  getDeliveryStatus?(messageId: string): Promise<DeliveryStatus>;
76
76
  }
77
77
  export interface VoiceProvider {
78
78
  id: string;
79
79
  name: string;
80
- makeCall(phoneNumber: string, message: string, options?: any): Promise<VoiceResult>;
81
- makeMissedCall?(phoneNumber: string, options?: any): Promise<MissedCallResult>;
80
+ makeCall(phoneNumber: string, message: string, options?: unknown): Promise<VoiceResult>;
81
+ makeMissedCall?(phoneNumber: string, options?: unknown): Promise<MissedCallResult>;
82
82
  }
83
83
  export interface SMSResult {
84
84
  messageId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-msg/channel",
3
- "version": "0.19.1",
3
+ "version": "0.20.0",
4
4
  "packageManager": "bun@1.3.8",
5
5
  "description": "AlimTalk channel and sender number management",
6
6
  "type": "module",
@@ -12,6 +12,11 @@
12
12
  "types": "./dist/index.d.ts",
13
13
  "import": "./dist/index.mjs",
14
14
  "require": "./dist/index.js"
15
+ },
16
+ "./toolkit": {
17
+ "types": "./dist/toolkit/index.d.ts",
18
+ "import": "./dist/toolkit/index.mjs",
19
+ "require": "./dist/toolkit/index.js"
15
20
  }
16
21
  },
17
22
  "publishConfig": {
@@ -19,8 +24,8 @@
19
24
  },
20
25
  "scripts": {
21
26
  "build": "bun run clean && bun run build:esm && bun run build:cjs && bun run build:types",
22
- "build:esm": "bun build ./src/index.ts --outdir ./dist --format esm --minify --sourcemap --entry-naming '[name].mjs' --external 'bun:test'",
23
- "build:cjs": "bun build ./src/index.ts --outdir ./dist --format cjs --minify --sourcemap --entry-naming '[name].js' --external 'bun:test'",
27
+ "build:esm": "bun build ./src/index.ts ./src/toolkit/index.ts --outdir ./dist --format esm --minify --sourcemap --entry-naming '[dir]/[name].mjs' --external 'bun:test'",
28
+ "build:cjs": "bun build ./src/index.ts ./src/toolkit/index.ts --outdir ./dist --format cjs --minify --sourcemap --entry-naming '[dir]/[name].js' --external 'bun:test'",
24
29
  "build:types": "tsc",
25
30
  "dev": "tsc --watch",
26
31
  "test": "bun test",
@@ -29,6 +34,7 @@
29
34
  "publish": "bun publish --access public"
30
35
  },
31
36
  "dependencies": {
37
+ "@k-msg/core": "0.20.0",
32
38
  "zod": "^4.0.14"
33
39
  },
34
40
  "devDependencies": {