Skip to content

Commit 3f4bd58

Browse files
Merge pull request #79 from Palbahngmiyine/master
SOLAPI Node.js SDK 5.5.2
2 parents 7db2c43 + f550b09 commit 3f4bd58

51 files changed

Lines changed: 2498 additions & 4943 deletions

Some content is hidden

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

.gitignore

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
1-
.vscode/
21
node_modules/
32
package-lock.json
3+
npm-shrinkwrap.json
44
.idea
55
*.real.js
66
dist
7+
# TypeScript
8+
*.tsbuildinfo
79
.parcel-cache
8-
yarn-error.log
10+
# logs
11+
logs
12+
*.log
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
pnpm-debug.log*
917
debug
1018

1119
# publish config
1220
.npmrc
1321

1422
# yarn config
1523
.yarn/*
16-
!.yarn/patches
17-
!.yarn/releases
18-
!.yarn/plugins
19-
!.yarn/sdks
20-
!.yarn/versions
24+
25+
# Yarn PnP artifacts
2126
.pnp.*
2227

28+
# Editor settings (keep workspace configs, ignore the rest)
29+
.vscode/*
30+
!.vscode/settings.json
31+
!.vscode/extensions.json
32+
!.vscode/launch.json
33+
!.vscode/tasks.json
34+
2335
# macOS
2436
.DS_Store
2537
._*
@@ -34,6 +46,17 @@ $RECYCLE.BIN/
3446

3547
# env
3648
.env
49+
.env.*
50+
!.env.example
51+
52+
# test coverage and caches
53+
coverage/
54+
.vitest/
55+
56+
# Next.js example build outputs
57+
**/.next/
58+
**/out/
59+
.vercel/
3760

3861
# Claude
3962
CLAUDE.md

.prettierrc

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

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["biomejs.biome"]
3+
}

.vscode/settings.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"editor.defaultFormatter": "biomejs.biome",
3+
"editor.formatOnSave": true,
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll": "never",
6+
"source.organizeImports": "never",
7+
"source.fixAll.biome": "always",
8+
"source.organizeImports.biome": "always"
9+
},
10+
"[typescript]": {
11+
"editor.defaultFormatter": "biomejs.biome"
12+
},
13+
"[typescriptreact]": {
14+
"editor.defaultFormatter": "biomejs.biome"
15+
},
16+
"[javascript]": {
17+
"editor.defaultFormatter": "biomejs.biome"
18+
},
19+
"[javascriptreact]": {
20+
"editor.defaultFormatter": "biomejs.biome"
21+
},
22+
"prettier.enable": false,
23+
"biome.requireConfiguration": true
24+
}

.yarn/releases/yarn-4.9.2.cjs

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

.yarnrc.yml

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

biome.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.3/schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4+
"files": {
5+
"ignoreUnknown": false,
6+
"includes": [
7+
"**",
8+
"!docs/**/*",
9+
"!**/.yarn/**",
10+
"!**/.pnp.*",
11+
"!.yarnrc.yml",
12+
"!pnpm-lock.yaml",
13+
"!**/.next/**"
14+
]
15+
},
16+
"formatter": {
17+
"enabled": true,
18+
"formatWithErrors": false,
19+
"indentStyle": "space",
20+
"indentWidth": 2,
21+
"lineEnding": "lf",
22+
"lineWidth": 80,
23+
"attributePosition": "auto",
24+
"bracketSameLine": false,
25+
"bracketSpacing": true,
26+
"expand": "auto",
27+
"useEditorconfig": true
28+
},
29+
"linter": {
30+
"enabled": true,
31+
"rules": {
32+
"recommended": false,
33+
"complexity": {
34+
"noArguments": "error",
35+
"noUselessTypeConstraint": "error"
36+
},
37+
"correctness": {
38+
"noConstAssign": "off",
39+
"noGlobalObjectCalls": "off",
40+
"noInvalidBuiltinInstantiation": "off",
41+
"noInvalidConstructorSuper": "off",
42+
"noSetterReturn": "off",
43+
"noUndeclaredVariables": "off",
44+
"noUnreachable": "off",
45+
"noUnreachableSuper": "off",
46+
"noUnusedImports": "warn",
47+
"noUnusedVariables": "error"
48+
},
49+
"style": {
50+
"noCommonJs": "error",
51+
"noInferrableTypes": "warn",
52+
"noNamespace": "error",
53+
"useArrayLiterals": "error",
54+
"useAsConstAssertion": "error",
55+
"useConst": "error"
56+
},
57+
"suspicious": {
58+
"noClassAssign": "off",
59+
"noDuplicateClassMembers": "off",
60+
"noDuplicateObjectKeys": "off",
61+
"noDuplicateParameters": "off",
62+
"noExplicitAny": "error",
63+
"noExtraNonNullAssertion": "error",
64+
"noFunctionAssign": "off",
65+
"noImportAssign": "off",
66+
"noMisleadingInstantiator": "error",
67+
"noRedeclare": "off",
68+
"noUnsafeDeclarationMerging": "error",
69+
"noUnsafeNegation": "off",
70+
"noVar": "error",
71+
"noWith": "off",
72+
"useGetterReturn": "off",
73+
"useNamespaceKeyword": "error"
74+
}
75+
},
76+
"includes": [
77+
"**",
78+
"!dist/**/*",
79+
"!examples/**/*",
80+
"!debug/**/*",
81+
"!docs/**/*",
82+
"!**/.yarn/**",
83+
"!**/.pnp.*",
84+
"!.yarnrc.yml",
85+
"!pnpm-lock.yaml",
86+
"!**/.next/**"
87+
]
88+
},
89+
"javascript": {
90+
"formatter": {
91+
"jsxQuoteStyle": "double",
92+
"quoteProperties": "asNeeded",
93+
"trailingCommas": "all",
94+
"semicolons": "always",
95+
"arrowParentheses": "asNeeded",
96+
"bracketSameLine": false,
97+
"quoteStyle": "single",
98+
"attributePosition": "auto",
99+
"bracketSpacing": false
100+
},
101+
"globals": ["exports"]
102+
},
103+
"html": { "formatter": { "selfCloseVoidElements": "always" } },
104+
"assist": {
105+
"enabled": true,
106+
"actions": { "source": { "organizeImports": "on" } }
107+
}
108+
}

changelog/ko/CHANGELOG.md

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

eslint.config.mjs

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

examples/javascript/common/src/iam/get_blacks.js

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@ const messageService = new SolapiMessageService(
77
'ENTER_YOUR_API_SECRET',
88
);
99

10-
messageService.getBlacks({
11-
// 차단 당한 발신번호를 검색하는 경우
12-
// senderNumber: '029302266',
10+
messageService
11+
.getBlacks({
12+
// 차단 당한 발신번호를 검색하는 경우
13+
// senderNumber: '029302266',
14+
// 날짜로 검색하는 경우
15+
// startDate: '2022-12-01 00:00:00', // Date 객체로도 요청 가능
16+
// endDate: '2022-12-31 23:59:59' // Date 객체로도 요청 가능
17+
})
18+
.then(res => {
19+
// 목록
20+
console.log('#page1', res.blackList);
1321

14-
// 날짜로 검색하는 경우
15-
// startDate: '2022-12-01 00:00:00', // Date 객체로도 요청 가능
16-
// endDate: '2022-12-31 23:59:59' // Date 객체로도 요청 가능
17-
}).then(res => {
18-
// 목록
19-
console.log('#page1', res.blackList);
20-
21-
// 응답에 nextKey가 있을 경우 다음 페이지도 조회 가능
22-
messageService.getBlacks({
23-
startKey: res.nextKey
24-
}).then(res => {
25-
console.log('#page2', res.blackList);
22+
// 응답에 nextKey가 있을 경우 다음 페이지도 조회 가능
23+
messageService
24+
.getBlacks({
25+
startKey: res.nextKey,
26+
})
27+
.then(res => {
28+
console.log('#page2', res.blackList);
29+
});
2630
});
27-
});

0 commit comments

Comments
 (0)