Skip to content

Commit db5d201

Browse files
authored
Merge pull request #63 from sendinblue/feature_TRAN-2227
TRAN-2227 update ts sdk
2 parents b21dd85 + 864bd44 commit db5d201

File tree

5 files changed

+4350
-3348
lines changed

5 files changed

+4350
-3348
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ yarn add @sendinblue/client
2929
Once you have [installed](#installation) the node module in your project, you can execute the following sample code JS code :
3030

3131
```javascript
32-
const SibApiV3Sdk = require('@sendinblue/client')
32+
import * as SibApiV3Sdk from '@sendinblue/client'
3333

3434
const apiInstance = new SibApiV3Sdk.AccountApi()
3535

@@ -48,7 +48,7 @@ apiInstance.getAccount().then(
4848
```
4949

5050
```javascript
51-
const SibApiV3Sdk = require('@sendinblue/client')
51+
import * as SibApiV3Sdk from '@sendinblue/client'
5252

5353
const apiInstance = new SibApiV3Sdk.ContactsApi()
5454

package-lock.json

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sendinblue/client",
3-
"version": "3.2.2",
3+
"version": "3.3.0",
44
"description": "NodeJS client for Sendinblue V3 api",
55
"main": "dist/api.js",
66
"types": "dist/api.d.ts",
@@ -12,26 +12,28 @@
1212
"prepublishOnly": "npm run clean && npm run build"
1313
},
1414
"files": [
15-
"dist/*",
16-
"package.json",
17-
"README"
15+
"dist/*",
16+
"package.json",
17+
"README"
1818
],
1919
"repository": {
2020
"type": "git",
2121
"url": "git+https://github.com/sendinblue/APIv3-typescript-library.git"
22-
},
23-
"author": {
22+
},
23+
"author": {
2424
"name": "SendinBlue",
2525
"email": "[email protected]",
2626
"url": "https://www.sendinblue.com/"
27-
},
28-
"license": "MIT",
29-
"dependencies": {
27+
},
28+
"license": "MIT",
29+
"dependencies": {
3030
"bluebird": "^3.5.0",
3131
"lodash": "^4.17.21",
32-
"request": "^2.81.0"
33-
},
34-
"devDependencies": {
32+
"request": "^2.81.0",
33+
"@types/bluebird": "*",
34+
"@types/request": "*"
35+
},
36+
"devDependencies": {
3537
"@types/bluebird": "*",
3638
"@types/request": "*",
3739
"@types/node": "*",
@@ -42,4 +44,5 @@
4244
"minimist": "^1.2.5",
4345
"rimraf": "^3.0.2",
4446
"typescript": "^3.5.1"
45-
}}
47+
}
48+
}

0 commit comments

Comments
 (0)