Skip to content

Commit 56616f1

Browse files
[Impr] Add Array<string> type in to property(Message model)
1 parent 079a717 commit 56616f1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

changelog/ko/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212
변경했습니다.
1313
- 따라서 이후 send 메소드 호출 시 단순 오브젝트로만 넣어도 type 경고/에러가 뜨지 않도록 조치되었습니다.
1414
- SDK에서 반환되는 에러들도 가져올 수 있도록 변경되었습니다.
15+
- Message 모델에서 수신번호(to)를 string[] 타입(문자 배열)이 추가되었습니다.
16+
- 동일한 내용을 여러 건 발송 시 수신번호(to)를 배열로 넣어 여러 건을 발송할 수 있습니다.

src/models/kakao/kakaoAlimtalkTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type KakaoAlimtalkTemplateMessageType = 'BA' | 'EX' | 'AD' | 'MI';
1919

2020
/**
2121
* @description 카카오 알림톡 템플릿 강조 유형<br>
22-
* NONE: 선택안함, TEXT: 강조표기형, IMAGE: 이미지형
22+
* NONE: 선택안함, TEXT: 강조표기형, IMAGE: 이미지형, ITEM_LIST: 아이템리스트형
2323
*/
2424
export type KakaoAlimtalkTemplateEmphasizeType =
2525
| 'NONE'

src/models/message.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type MessageType =
2828
| 'NSA';
2929

3030
export type MessageParameter = {
31-
to: string;
31+
to: string | Array<string>;
3232
from?: string;
3333
text?: string;
3434
imageId?: string;
@@ -47,7 +47,7 @@ export class Message {
4747
/**
4848
* 수신번호
4949
*/
50-
to: string;
50+
to: string | Array<string>;
5151

5252
/**
5353
* 발신번호

0 commit comments

Comments
 (0)