Skip to content

Commit 3f6d979

Browse files
Merge pull request #65 from solapi/beta
SOLAPI Node.js SDK 5.4.0
2 parents 042ceb2 + c9ae1b0 commit 3f6d979

48 files changed

Lines changed: 4557 additions & 2931 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc

Lines changed: 0 additions & 40 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.yarn/releases/yarn-3.2.3.cjs

Lines changed: 0 additions & 783 deletions
This file was deleted.

.yarn/releases/yarn-4.6.0.cjs

Lines changed: 934 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
26

3-
yarnPath: .yarn/releases/yarn-3.2.3.cjs
7+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22
-----------
33

4-
Copyright (c) 2022~ Nurigo Inc (https://solapi.com)
4+
Copyright (c) 2022~ SOLAPI Inc (https://solapi.com)
55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation
77
files (the "Software"), to deal in the Software without

eslint.config.mjs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import typescriptEslintEslintPlugin from '@typescript-eslint/eslint-plugin';
2+
import tsdoc from 'eslint-plugin-tsdoc';
3+
import unusedImports from 'eslint-plugin-unused-imports';
4+
import globals from 'globals';
5+
import tsParser from '@typescript-eslint/parser';
6+
import path from 'node:path';
7+
import {fileURLToPath} from 'node:url';
8+
import js from '@eslint/js';
9+
import {FlatCompat} from '@eslint/eslintrc';
10+
11+
const __filename = fileURLToPath(import.meta.url);
12+
const __dirname = path.dirname(__filename);
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all,
17+
});
18+
19+
export default [
20+
{
21+
ignores: ['dist/**/*', 'examples/**/*', 'debug/**/*', 'docs/**/*'],
22+
},
23+
...compat.extends('plugin:@typescript-eslint/recommended'),
24+
{
25+
plugins: {
26+
'@typescript-eslint': typescriptEslintEslintPlugin,
27+
tsdoc,
28+
'unused-imports': unusedImports,
29+
},
30+
31+
languageOptions: {
32+
globals: {
33+
...globals.node,
34+
},
35+
parser: tsParser,
36+
ecmaVersion: 2018,
37+
sourceType: 'module',
38+
},
39+
40+
rules: {
41+
quotes: ['error', 'single'],
42+
semi: [2, 'always'],
43+
'@typescript-eslint/explicit-function-return-type': 'off',
44+
'@typescript-eslint/no-explicit-any': 1,
45+
46+
'@typescript-eslint/no-inferrable-types': [
47+
'warn',
48+
{
49+
ignoreParameters: true,
50+
},
51+
],
52+
53+
'@typescript-eslint/no-unused-vars': 'warn',
54+
'unused-imports/no-unused-imports': 'warn',
55+
},
56+
},
57+
];

examples/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ node ${실행 할 자바스크립트 파일}
3939

4040
## 기타
4141

42+
```text
43+
./nextjs/* Next.js + SOLAPI SDK 연동 예제(UI)
44+
45+
# Next.js 예제만 확인해보고 싶다면 아래의 명령어를 입력해주세요!(npm 설치 필수)
46+
npx degit solapi/solapi-nodejs/examples/nextjs#main sdk-test-app
47+
```
48+
4249
```text
4350
./javascript/webhooks/index.js 웹훅 그룹 리포트 예제
4451
```

examples/javascript/common/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"description": "Common Examples for SOLAPI",
55
"keywords": [],
66
"author": {
7-
"name": "Nurigo Team",
8-
"email": "contact@nurigo.net"
7+
"name": "SOLAPI Team",
8+
"email": "contact@solapi.com"
99
},
1010
"license": "ISC",
1111
"dependencies": {
12-
"solapi": "^5.2.0"
12+
"solapi": "latest"
1313
}
1414
}

examples/javascript/common/src/rcs/send_rcs.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ messageService
2121
buttonType: 'WL',
2222
buttonName: '웹링크 버튼',
2323
link: 'https://으로 시작하는 웹링크 주소',
24-
}
24+
},
2525
],
2626
},
2727
})
2828
.then(res => console.log(res));
2929

3030
// 단일 예약발송 예제, send 메소드로도 동일하게 사용가능
31-
// 예약발송 시 현재 시간보다 과거의 시간을 입력할 경우 즉시 발송됩니다.
3231
messageService
33-
.sendOneFuture(
32+
.send(
3433
{
3534
to: '수신번호',
3635
from: '계정에서 등록한 RCS용 발신번호 입력',
@@ -42,7 +41,7 @@ messageService
4241
buttonType: 'WL',
4342
buttonName: '웹링크 버튼',
4443
link: 'https://으로 시작하는 웹링크 주소',
45-
}
44+
},
4645
],
4746
},
4847
},
@@ -64,7 +63,7 @@ messageService
6463
buttonType: 'WL',
6564
buttonName: '웹링크 버튼',
6665
link: 'https://으로 시작하는 웹링크 주소',
67-
}
66+
},
6867
],
6968
},
7069
},
@@ -79,7 +78,7 @@ messageService
7978
buttonType: 'WL',
8079
buttonName: '웹링크 버튼',
8180
link: 'https://으로 시작하는 웹링크 주소',
82-
}
81+
},
8382
],
8483
},
8584
},
@@ -103,7 +102,7 @@ messageService
103102
buttonType: 'WL',
104103
buttonName: '웹링크 버튼',
105104
link: 'https://으로 시작하는 웹링크 주소',
106-
}
105+
},
107106
],
108107
},
109108
},
@@ -118,7 +117,7 @@ messageService
118117
buttonType: 'WL',
119118
buttonName: '웹링크 버튼',
120119
link: 'https://으로 시작하는 웹링크 주소',
121-
}
120+
},
122121
],
123122
},
124123
},
@@ -144,7 +143,7 @@ messageService
144143
buttonType: 'WL',
145144
buttonName: '웹링크 버튼',
146145
link: 'https://으로 시작하는 웹링크 주소',
147-
}
146+
},
148147
],
149148
},
150149
replacements: [
@@ -155,4 +154,4 @@ messageService
155154
},
156155
],
157156
})
158-
.then(res => console.log(res));
157+
.then(res => console.log(res));

0 commit comments

Comments
 (0)