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
Merge requests
!24
Draft: Resolve "wso2BaseUrl ends with /"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Resolve "wso2BaseUrl ends with /"
4-wso2baseurl-ends-with
into
main
Overview
0
Commits
1
Pipelines
2
Changes
1
Closed
Bastien DUMONT
requested to merge
4-wso2baseurl-ends-with
into
main
2 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#4 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
99ff962e
1 commit,
2 years ago
1 file
+
11
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/index.js
+
11
−
18
Options
@@ -6,6 +6,7 @@ const {
addData
,
errors
,
}
=
require
(
'
cozy-konnector-libs
'
)
const
path
=
require
(
'
node:path
'
)
const
soapRequest
=
require
(
'
easy-soap-request
'
)
const
moment
=
require
(
'
moment
'
)
require
(
'
moment-timezone
'
)
@@ -276,25 +277,17 @@ async function deleteConsent(
*/
async
function
gatherData
(
baseUrl
,
apiAuthKey
,
sgeLogin
,
pointId
)
{
log
(
'
info
'
,
'
Querying data...
'
)
const
measuresUrl
=
new
URL
(
path
.
resolve
(
new
URL
(
baseUrl
).
pathname
,
'
/enedis_SGE_ConsultationMesuresDetaillees/1.0
'
),
baseUrl
).
href
await
getContractStartDate
(
baseUrl
,
apiAuthKey
,
sgeLogin
,
pointId
)
await
getData
(
`
${
baseUrl
}
/enedis_SGE_ConsultationMesuresDetaillees/1.0`
,
apiAuthKey
,
sgeLogin
,
pointId
)
await
getMaxPowerData
(
`
${
baseUrl
}
/enedis_SGE_ConsultationMesuresDetaillees/1.0`
,
apiAuthKey
,
sgeLogin
,
pointId
)
await
getDataHalfHour
(
`
${
baseUrl
}
/enedis_SGE_ConsultationMesuresDetaillees/1.0`
,
apiAuthKey
,
sgeLogin
,
pointId
)
await
getData
(
measuresUrl
,
apiAuthKey
,
sgeLogin
,
pointId
)
await
getMaxPowerData
(
measuresUrl
,
apiAuthKey
,
sgeLogin
,
pointId
)
await
getDataHalfHour
(
measuresUrl
,
apiAuthKey
,
sgeLogin
,
pointId
)
log
(
'
info
'
,
'
Querying data: done
'
)
}
Loading