dispatch-node-sdk
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -82,3 +82,4 @@ 'use strict'; | ||
appointments: new _Collection2.default(this, endpoints.APPOINTMENTS), | ||
users: new _Collection2.default(this, endpoints.USERS) | ||
users: new _Collection2.default(this, endpoints.USERS), | ||
accounts: new _Collection2.default(this, endpoints.ACCOUNTS) | ||
}; | ||
@@ -226,2 +227,11 @@ } | ||
} | ||
}, { | ||
key: 'requestPasswordReset', | ||
value: function requestPasswordReset(email) { | ||
return this.getAppClient().then(function (client) { | ||
return client.post('/v1/password_resets', { | ||
email: email | ||
}); | ||
}); | ||
} | ||
@@ -342,4 +352,2 @@ /** | ||
console.log('Doing request with:', client); | ||
return new Promise(function (resolve, reject) { | ||
@@ -346,0 +354,0 @@ req.do(client).then(resolve).catch(function (err) { |
@@ -34,2 +34,3 @@ import _ from 'underscore'; | ||
users: new Collection(this, endpoints.USERS), | ||
accounts: new Collection(this, endpoints.ACCOUNTS), | ||
}; | ||
@@ -150,2 +151,8 @@ } | ||
requestPasswordReset(email) { | ||
return this.getAppClient().then(client => client.post('/v1/password_resets', { | ||
email, | ||
})); | ||
} | ||
/** | ||
@@ -152,0 +159,0 @@ * Log the user in with their phone number and verification code |
{ | ||
"name": "dispatch-node-sdk", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "High- and low-level libraries for interacting with the Dispatch API", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111267
2865