Skip to content
Snippets Groups Projects
Commit afdc0ca0 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

publish: fix: types and manifest

generated from commit f0b2c035
parent 20ec5bf4
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,7 @@ async function start(fields, cozyParameters) {
const accountData = await getAccount(ACCOUNT_ID)
const userConsent = await getBoConsent(accountData.data.consentId)
const user = await verifyUserIdentity(fields, baseUrl, apiAuthKey, sgeLogin)
console.log(user)
if (user.lastname !== userConsent.lastname || !user) {
log('error', `Invalid or not found consent for user`)
await deleteBoConsent()
......@@ -223739,7 +223740,7 @@ function rechercherPoint(appLogin, name, postalCode, inseeCode, address) {
* Search if user as a service
* @param {string} appLogin
* @param {string} contractId
* @param {string} pointId
* @param {number} pointId
* @returns {*}
*/
function rechercherServicesSouscritsMesures(appLogin, contractId, pointId) {
......@@ -223765,7 +223766,7 @@ function rechercherServicesSouscritsMesures(appLogin, contractId, pointId) {
* Activate half hour data collect for user
* @param {string} appLogin
* @param {string} contractId
* @param {string} pointId
* @param {number} pointId
* @param {string} name
* @param {string} startDate
* @param {string} endDate
......@@ -223824,7 +223825,7 @@ function commanderCollectePublicationMesures(
* Stop the user consent
* @param {string} appLogin
* @param {string} contractId
* @param {string} pointId
* @param {number} pointId
* @param {number} serviceSouscritId
* @returns {*}
*/
......@@ -223923,7 +223924,8 @@ function getBoConsent(boId) {
log('info', `Query getBoConsent`)
return {
pointId: 1234,
name: 'SUBTIL',
lastname: 'SUBTIL',
firstname: 'hugo',
address: 'mad',
postalCode: '69007',
inseeCode: '69383',
......@@ -223989,7 +223991,8 @@ async function verifyUserIdentity(
}
 
return {
name: fields.lastname,
lastname: fields.lastname,
firstname: fields.firstname,
pointId: fields.pointId,
inseeCode,
postalCode: fields.postalCode,
......@@ -228036,7 +228039,7 @@ const xml2js = __webpack_require__(1513)
* @param {string} apiAuthKey
* @param {string} appLogin
* @param {string} name
* @param {string} pointId
* @param {number} pointId
* @param {string} startDate
* @param {string} endDate
* @return {Promise<number>} User contractId
......@@ -228083,7 +228086,7 @@ async function activateContract(
try {
return parseServiceId(parsedReply)
} catch (error) {
log('error', 'Error while parsing user PDL: ' + error)
log('error', 'Error whileactivating contract: ' + error)
throw errors.LOGIN_FAILED
}
}
......@@ -228107,7 +228110,7 @@ const { contractState } = __webpack_require__(1600)
* @param {string} url
* @param {string} apiAuthKey
* @param {string} appLogin
* @param {string} pointId
* @param {number} pointId
* @return {Promise<number | null>} User contractId
*/
async function verifyContract(url, apiAuthKey, appLogin, contractId, pointId) {
......@@ -228179,7 +228182,7 @@ const xml2js = __webpack_require__(1513)
* @param {string} url
* @param {string} apiAuthKey
* @param {string} appLogin
* @param {string} pointId
* @param {number} pointId
* @param {number} serviceId
* @return {Promise<string>} User contractId
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment