@como/como-client
Advanced tools
Comparing version 0.1.46 to 0.1.47
{ | ||
"name": "@como/como-client", | ||
"version": "0.1.46", | ||
"version": "0.1.47", | ||
"description": "Client module for Como's loaylty API", | ||
@@ -5,0 +5,0 @@ "main": "src/como.js", |
@@ -692,2 +692,21 @@ const moment = require('moment-timezone'); | ||
/** | ||
* Returns the location data Portability url | ||
*/ | ||
async getDataPortabilityUrl(url, overrides) { | ||
await this.refreshTokenIfNeeded(); | ||
const { | ||
token, installationId, locationId, env_params: env, | ||
} = this.comoData; | ||
return urlsUtils.appendQuery( | ||
`${url}?token=${token}&locationid=${locationId}`, | ||
{ | ||
...this.getCredentials(), | ||
installationId, | ||
...overrides, | ||
}, | ||
); | ||
} | ||
/** | ||
@@ -694,0 +713,0 @@ * Returns app-modules legacy root url |
Sorry, the diff of this file is too big to display
195980
4262