smartsheet
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -8,3 +8,6 @@ # Changelog | ||
## [3.1.0] - 2023-02-14 | ||
### Added | ||
- Support for deactivate user endpoint | ||
- Support for reactivate user endpoint | ||
## [3.0.0] - 2022-12-05 | ||
@@ -11,0 +14,0 @@ ### Updated |
@@ -33,2 +33,12 @@ var _ = require('underscore'); | ||
var deactivateUser = (postOptions, callback) => { | ||
var urlOptions = {url: buildDeactivateUserUrl(postOptions)}; | ||
return requestor.post(_.extend({}, optionsToSend, urlOptions, postOptions), callback); | ||
}; | ||
var reactivateUser = (postOptions, callback) => { | ||
var urlOptions = {url: buildReactivateUserUrl(postOptions)}; | ||
return requestor.post(_.extend({}, optionsToSend, urlOptions, postOptions), callback); | ||
}; | ||
var addProfileImage = (postOptions, callback) => { | ||
@@ -41,3 +51,9 @@ var urlOptions = {url: buildProfileImageUrl(postOptions)}; | ||
options.apiUrls.users + urlOptions.userId + '/profileimage'; | ||
var buildDeactivateUserUrl = urlOptions => | ||
options.apiUrls.users + urlOptions.userId + '/deactivate'; | ||
var buildReactivateUserUrl = urlOptions => | ||
options.apiUrls.users + urlOptions.userId + '/reactivate'; | ||
var userObject = { | ||
@@ -51,2 +67,4 @@ getUser : listAllUsers, | ||
removeUser : removeUser, | ||
deactivateUser : deactivateUser, | ||
reactivateUser : reactivateUser, | ||
addProfileImage : addProfileImage, | ||
@@ -53,0 +71,0 @@ }; |
{ | ||
"name": "smartsheet", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Smartsheet JavaScript client SDK", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "jshint -c .jshintrc lib/", | ||
"test": "mocha \"test/**/*_test.js\"", | ||
@@ -15,3 +16,3 @@ "test-functional": "mocha \"test/functional/**/*_test.js\"", | ||
"type": "git", | ||
"url": "github:smartsheet-platform/smartsheet-javascript-sdk" | ||
"url": "github:smartsheet/smartsheet-javascript-sdk" | ||
}, | ||
@@ -26,4 +27,4 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/smartsheet-platform/smartsheet-javascript-sdk/issues", | ||
"email": "api@smartsheet.com" | ||
"url": "https://github.com/smartsheet/smartsheet-javascript-sdk/issues", | ||
"email": "sdk@smartsheet.com" | ||
}, | ||
@@ -47,2 +48,3 @@ "browser": { | ||
"istanbul": "^0.4.5", | ||
"jshint": "^2.13.6", | ||
"jshint-stylish": "^1.0.1", | ||
@@ -49,0 +51,0 @@ "mocha": "^5.2.0", |
# Smartsheet SDK for JavaScript | ||
![Build Status](https://github.com/smartsheet/smartsheet-javascript-sdk/actions/workflows/build-publish.yaml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/smartsheet/smartsheet-javascript-sdk/badge.svg?branch=main)](https://coveralls.io/github/smartsheet/smartsheet-javascript-sdk?branch=mainline) [![npm version](https://badge.fury.io/js/smartsheet.svg)](https://badge.fury.io/js/smartsheet) | ||
![Build Status](https://github.com/smartsheet/smartsheet-javascript-sdk/actions/workflows/test-build.yaml/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/smartsheet/smartsheet-javascript-sdk/badge.svg?branch=mainline)](https://coveralls.io/github/smartsheet/smartsheet-javascript-sdk?branch=mainline) [![npm version](https://badge.fury.io/js/smartsheet.svg)](https://badge.fury.io/js/smartsheet) | ||
@@ -69,6 +69,16 @@ This is a client SDK for connecting to the [Smartsheet API](https://smartsheet.redoc.ly/) from Node.js applications. | ||
- The Smartsheet API documentation with corresponding SDK example code can be found [here](https://smartsheet.redoc.ly/). | ||
- For an example of using the Javascript SDK see the sample project [here](https://github.com/smartsheet-samples/node-read-write-sheet). | ||
* The Smartsheet API documentation with corresponding SDK example code can be found [here](https://smartsheet.redoc.ly/). | ||
* For an example of using the Javascript SDK see the sample project [here](https://github.com/smartsheet-samples/node-read-write-sheet). | ||
## Advanced Topics | ||
For details about more advanced features, see [Advanced Topics](ADVANCED.md). | ||
## Acknowledgements | ||
We would like to thank the following people for their contributions to this project: | ||
* Cameron Bowie - [cameronbowie](https://github.com/cameronbowie) | ||
* Nathan Armstrong - [armstnp](https://github.com/armstnp) | ||
* Emily Koh - [emilykoh](https://github.com/emilykoh) | ||
* Steve Weil - [seweil](https://github.com/seweil) | ||
* Kim Brandl - [kbrandl](https://github.com/kbrandl) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
106696
1722
84
0
12