From 9f0c29f368c697ffba629357381b17ecc2ee51aa Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Mon, 1 Aug 2022 11:27:15 +0200 Subject: [PATCH] feat: commanderCollectePublicationMesures --- src/index.js | 4 ++-- src/request.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 2a5371e..d9b374d 100644 --- a/src/index.js +++ b/src/index.js @@ -23,7 +23,7 @@ const { userMaxPower, userMesureDetailles, rechercherPoint, - activateDataCollect, + commanderCollectePublicationMesures, stopDataCollect, getInseeCode, updateBoConsent, @@ -88,7 +88,7 @@ async function start(fields, cozyParameters) { // loginUtilisateur, // fields.pointId // ) - await activateDataCollect() + await commanderCollectePublicationMesures() await updateBoConsent() } else { await getBoConsent() diff --git a/src/request.js b/src/request.js index 9fcae3b..273fb6f 100644 --- a/src/request.js +++ b/src/request.js @@ -145,7 +145,7 @@ function rechercherPoint(appLogin, name, postalCode, inseeCode, address) { * @returns {*} */ function searchServiceSouscrit(appLogin, contractId, pointId) { - log('info', `Query activateDataCollect`) + log('info', `Query commanderCollectePublicationMesures`) return `<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://www.enedis.fr/sge/b2b/rechercherservicessouscritsmesures/v1.0" @@ -173,7 +173,7 @@ function searchServiceSouscrit(appLogin, contractId, pointId) { * @param {string} endDate * @returns {*} */ -function activateDataCollect( +function commanderCollectePublicationMesures( appLogin, contractId, pointId, @@ -181,7 +181,7 @@ function activateDataCollect( startDate, endDate ) { - log('info', `Query activateDataCollect`) + log('info', `Query commanderCollectePublicationMesures`) return `<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://www.enedis.fr/sge/b2b/commandercollectepublicationmesures/v3.0" @@ -304,7 +304,7 @@ module.exports = { userMesureDetailles, rechercherPoint, searchServiceSouscrit, - activateDataCollect, + commanderCollectePublicationMesures, stopDataCollect, getInseeCode, createBoConsent, -- GitLab