You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

solapi

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solapi - npm Package Compare versions

Comparing version

to
5.3.0

55

dist/index.d.ts

@@ -50,2 +50,52 @@ /**

/**
* @name "RCS 버튼타입"
*/
type RcsButtonType = 'WL' | 'ML' | 'MQ' | 'MR' | 'CA' | 'CL' | 'DL' | 'MS';
type RcsWebButton = {
buttonName: string;
buttonType: Extract<RcsButtonType, 'WL'>;
link: string;
};
type RcsMapButton = {
buttonName: string;
buttonType: Extract<RcsButtonType, 'ML'>;
latitude: string;
longitude: string;
};
type RcsDefaultButton = {
buttonName: string;
buttonType: Exclude<RcsButtonType, 'WL'>;
link: string;
};
type RcsButton = RcsWebButton | RcsMapButton | RcsDefaultButton;
type AdditionalBody = {
title: string;
description: string;
imaggeId?: string;
buttons?: Array<RcsButton>;
};
type RcsOptionRequest = {
brandId: string;
templateId?: string;
copyAllowed?: boolean;
mmsType?: 'M3' | 'S3' | 'M4' | 'S4' | 'M5' | 'S5' | 'M6' | 'S6';
commercialType?: boolean;
variables?: Record<string, string>;
disableSms?: boolean;
additionalBody?: AdditionalBody;
buttons: Array<RcsButton>;
};
declare class RcsOption {
brandId: string;
templateId?: string;
copyAllowed?: boolean;
mmsType?: 'M3' | 'S3' | 'M4' | 'S4' | 'M5' | 'S5' | 'M6' | 'S6';
commercialType?: boolean;
variables?: Record<string, string>;
disableSms?: boolean;
additionalBody?: AdditionalBody;
buttons: Array<RcsButton>;
constructor(parameter: RcsOptionRequest);
}
/**
* @name MessageType 메시지 유형(단문 문자, 장문 문자, 알림톡 등)

@@ -74,2 +124,3 @@ * SMS: 단문 문자

kakaoOptions?: kakaoOptionRequest;
rcsOptions?: RcsOptionRequest;
country?: string;

@@ -132,2 +183,6 @@ customFields?: Record<string, string>;

/**
* RCS 메시지를 위한 프로퍼티
*/
rcsOptions?: RcsOption;
/**
* 해외 문자 발송을 위한 국가번호(예) "82", "1" 등)

@@ -134,0 +189,0 @@ */

@@ -45,2 +45,17 @@ var $5FUN9$datefns = require("date-fns");

class $72c80267090134d1$export$c8e87b3eb2224744 {
constructor(parameter){
this.brandId = parameter.brandId;
this.templateId = parameter.templateId;
this.copyAllowed = parameter.copyAllowed;
this.mmsType = parameter.mmsType;
this.commercialType = parameter.commercialType;
this.variables = parameter.variables;
this.disableSms = parameter.disableSms;
this.additionalBody = parameter.additionalBody;
this.buttons = parameter.buttons;
}
}
class $27a324d9ebfce09a$export$f69c19e57285b83a {

@@ -57,2 +72,3 @@ constructor(parameter){

if (parameter.kakaoOptions != undefined) this.kakaoOptions = new (0, $3dabb91d6fa66ebe$export$bccc93b4c0d31aea)(parameter.kakaoOptions);
if (parameter.rcsOptions != undefined) this.rcsOptions = new (0, $72c80267090134d1$export$c8e87b3eb2224744)(parameter.rcsOptions);
this.customFields = parameter.customFields;

@@ -59,0 +75,0 @@ this.replacements = parameter.replacements;

2

package.json
{
"name": "solapi",
"version": "5.2.4",
"version": "5.3.0",
"description": "SOLAPI SDK for Node.js(Server Side Only)",

@@ -5,0 +5,0 @@ "repository": {