UNPKG

@k-msg/provider

Version:

Complete provider system with adapters and implementations for K-Message platform

111 lines (110 loc) 2.47 kB
export interface AligoConfig { apiKey: string; userId: string; senderKey?: string; sender?: string; testMode?: boolean; debug?: boolean; smsBaseUrl?: string; alimtalkBaseUrl?: string; friendtalkEndpoint?: string; } export interface AligoSMSRequest { key: string; user_id: string; sender: string; receiver: string; msg: string; msg_type?: "SMS" | "LMS" | "MMS"; title?: string; testmode_yn?: "Y" | "N"; destination?: string; rdate?: string; rtime?: string; image?: string; } export interface AligoAlimTalkRequest { apikey: string; userid: string; senderkey: string; tpl_code: string; sender: string; [key: string]: any; testMode?: "Y" | "N"; } export interface AligoResponse { result_code: string; message: string; msg_id?: string; success_cnt?: number; error_cnt?: number; msg_type?: string; } export interface AligoTemplateListRequest { apikey: string; userid: string; senderkey: string; tpl_code?: string; } export interface AligoTemplateCreateRequest { apikey: string; userid: string; senderkey: string; tpl_name: string; tpl_content: string; tpl_button?: string; } export interface AligoTemplateDeleteRequest { apikey: string; userid: string; senderkey: string; tpl_code: string; } export interface AligoTemplateModifyRequest { apikey: string; userid: string; senderkey: string; tpl_code: string; tpl_name: string; tpl_content: string; tpl_button?: string; tpl_secure?: "Y" | "N"; tpl_type?: string; tpl_emtype?: string; tpl_extra?: string; tpl_title?: string; tpl_stitle?: string; } export interface AligoTemplateInspectionRequest { apikey: string; userid: string; senderkey: string; tpl_code: string; } export interface AligoKakaoChannelListRequest { apikey: string; userid: string; plusid?: string; senderkey?: string; } export interface AligoKakaoChannelAuthRequest { apikey: string; userid: string; plusid: string; phonenumber: string; } export interface AligoKakaoChannelAddRequest { apikey: string; userid: string; plusid: string; authnum: string; phonenumber: string; categorycode: string; } export interface AligoRemainResponse { result_code: string; message: string; SMS_CNT: number; LMS_CNT: number; MMS_CNT: number; }