Skip to content
Snippets Groups Projects
Commit 5d7f15d9 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

feat: requests folder

parent 6846b000
No related branches found
No related tags found
1 merge request!7Feat/rename endpoints
Pipeline #39564 passed
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -25,12 +25,15 @@ const {
rechercherPoint,
commanderCollectePublicationMesures,
commanderArretServiceSouscritMesures,
getInseeCode,
} = require('./requests/sge')
const {
updateBoConsent,
createBoConsent,
getBoConsent,
deleteBoConsent,
} = require('./request')
} = require('./requests/bo')
const { getInseeCode } = require('./requests/insee')
moment.locale('fr') // set the language
moment.tz.setDefault('Europe/Paris') // set the timezone
......
// @ts-check
const { log } = require('cozy-konnector-libs')
/**
*
*/
function createBoConsent() {
//TODO: Implement
log('info', `Query createBoConsent`)
throw new Error('Function not implemented.')
}
/**
*
*/
function updateBoConsent() {
//TODO: Implement
log('info', `Query updateBoConsent`)
throw new Error('Function not implemented.')
}
/**
*
*/
function getBoConsent() {
//TODO: Implement
log('info', `Query getBoConsent`)
throw new Error('Function not implemented.')
}
/**
*
*/
function deleteBoConsent() {
//TODO: deleteBoConsent
log('info', `Query createBoConsent`)
throw new Error('Function not implemented.')
}
module.exports = {
createBoConsent,
updateBoConsent,
getBoConsent,
deleteBoConsent,
}
// @ts-check
const { log } = require('cozy-konnector-libs')
/**
* Return inseeCode given a postalCode
* @param {string} postalCode
* @return {string} inseeCode
*/
function getInseeCode(postalCode) {
//TODO: Implement
log('info', `Query getInseeCode for postalCode ${postalCode}`)
throw new Error('Function not implemented.')
}
module.exports = {
getInseeCode,
}
......@@ -271,52 +271,6 @@ function commanderArretServiceSouscritMesures(
</soapenv:Envelope>`
}
/**
* Return inseeCode given a postalCode
* @param {string} postalCode
* @return {string} inseeCode
*/
function getInseeCode(postalCode) {
//TODO: Implement
log('info', `Query getInseeCode for postalCode ${postalCode}`)
throw new Error('Function not implemented.')
}
/**
*
*/
function createBoConsent() {
//TODO: Implement
log('info', `Query createBoConsent`)
throw new Error('Function not implemented.')
}
/**
*
*/
function updateBoConsent() {
//TODO: Implement
log('info', `Query updateBoConsent`)
throw new Error('Function not implemented.')
}
/**
*
*/
function getBoConsent() {
//TODO: Implement
log('info', `Query getBoConsent`)
throw new Error('Function not implemented.')
}
/**
*
*/
function deleteBoConsent() {
//TODO: deleteBoConsent
log('info', `Query createBoConsent`)
throw new Error('Function not implemented.')
}
module.exports = {
consulterDonneesTechniquesContractuelles,
consultationMesuresDetailleesMaxPower,
......@@ -325,9 +279,4 @@ module.exports = {
rechercherServicesSouscritsMesures,
commanderCollectePublicationMesures,
commanderArretServiceSouscritMesures,
getInseeCode,
createBoConsent,
updateBoConsent,
getBoConsent,
deleteBoConsent,
}
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