Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
enedis_sge_konnector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
enedis_sge_konnector
Commits
5d7f15d9
Commit
5d7f15d9
authored
2 years ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
feat: requests folder
parent
6846b000
No related branches found
No related tags found
1 merge request
!7
Feat/rename endpoints
Pipeline
#39564
passed
2 years ago
Stage: test
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/index.js
+5
-2
5 additions, 2 deletions
src/index.js
src/requests/bo.js
+44
-0
44 additions, 0 deletions
src/requests/bo.js
src/requests/insee.js
+17
-0
17 additions, 0 deletions
src/requests/insee.js
src/requests/sge.js
+0
-51
0 additions, 51 deletions
src/requests/sge.js
with
66 additions
and
53 deletions
src/index.js
+
5
−
2
View file @
5d7f15d9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/requests/bo.js
0 → 100644
+
44
−
0
View file @
5d7f15d9
// @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
,
}
This diff is collapsed.
Click to expand it.
src/requests/insee.js
0 → 100644
+
17
−
0
View file @
5d7f15d9
// @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
,
}
This diff is collapsed.
Click to expand it.
src/request.js
→
src/request
s/sge
.js
+
0
−
51
View file @
5d7f15d9
...
...
@@ -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
,
}
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
d9e5bbab
·
2 years ago
mentioned in commit
d9e5bbab
mentioned in commit d9e5bbabf98556cbcd00668dd3828575d173e819
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment