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
9aec6e2a
Commit
9aec6e2a
authored
2 years ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
fix: logs
parent
1545e095
No related branches found
No related tags found
1 merge request
!7
Feat/rename endpoints
Pipeline
#39567
passed
2 years ago
Stage: test
Stage: build
This commit is part of merge request
!7
. Comments created here will be created in the context of that merge request.
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/requests/sge.js
+23
-17
23 additions, 17 deletions
src/requests/sge.js
with
23 additions
and
17 deletions
src/requests/sge.js
+
23
−
17
Edit
View file @
9aec6e2a
...
@@ -5,8 +5,8 @@ const { log } = require('cozy-konnector-libs')
...
@@ -5,8 +5,8 @@ const { log } = require('cozy-konnector-libs')
* Get daily data up to 36 months & P max
* Get daily data up to 36 months & P max
* @param {number} pointId
* @param {number} pointId
* @param {string} appLogin
* @param {string} appLogin
* @param {string} startD
t
* @param {string} startD
ate
* @param {string} endD
t
* @param {string} endD
ate
* @param {'COURBE' | 'ENERGIE' | 'PMAX'} mesureType
* @param {'COURBE' | 'ENERGIE' | 'PMAX'} mesureType
* @param {'EA' | 'PA' | 'PMA'} unit
* @param {'EA' | 'PA' | 'PMA'} unit
* @returns {string}
* @returns {string}
...
@@ -14,14 +14,14 @@ const { log } = require('cozy-konnector-libs')
...
@@ -14,14 +14,14 @@ const { log } = require('cozy-konnector-libs')
function
consultationMesuresDetaillees
(
function
consultationMesuresDetaillees
(
pointId
,
pointId
,
appLogin
,
appLogin
,
startD
t
,
startD
ate
,
endD
t
,
endD
ate
,
mesureType
=
'
ENERGIE
'
,
mesureType
=
'
ENERGIE
'
,
unit
=
'
EA
'
unit
=
'
EA
'
)
{
)
{
log
(
log
(
'
info
'
,
'
info
'
,
`Query consultationMesuresDetaillees -
${
mesureType
}
/
${
unit
}
between
${
startD
t
}
and
${
endD
t
}
`
`Query consultationMesuresDetaillees -
${
mesureType
}
/
${
unit
}
between
${
startD
ate
}
and
${
endD
ate
}
`
)
)
return
`<?xml version='1.0' encoding='utf-8'?>
return
`<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
...
@@ -37,8 +37,8 @@ function consultationMesuresDetaillees(
...
@@ -37,8 +37,8 @@ function consultationMesuresDetaillees(
<grandeurPhysique>
${
unit
}
</grandeurPhysique>
<grandeurPhysique>
${
unit
}
</grandeurPhysique>
<soutirage>true</soutirage>
<soutirage>true</soutirage>
<injection>false</injection>
<injection>false</injection>
<dateDebut>
${
startD
t
}
</dateDebut>
<dateDebut>
${
startD
ate
}
</dateDebut>
<dateFin>
${
endD
t
}
</dateFin>
<dateFin>
${
endD
ate
}
</dateFin>
<mesuresCorrigees>false</mesuresCorrigees>
<mesuresCorrigees>false</mesuresCorrigees>
<accordClient>true</accordClient>
<accordClient>true</accordClient>
</demande>
</demande>
...
@@ -52,8 +52,8 @@ function consultationMesuresDetaillees(
...
@@ -52,8 +52,8 @@ function consultationMesuresDetaillees(
* Get user max power
* Get user max power
* @param {number} pointId
* @param {number} pointId
* @param {string} appLogin
* @param {string} appLogin
* @param {string} startD
t
* @param {string} startD
ate
* @param {string} endD
t
* @param {string} endD
ate
* @param {'COURBE' | 'ENERGIE' | 'PMAX'} mesureType
* @param {'COURBE' | 'ENERGIE' | 'PMAX'} mesureType
* @param {'EA' | 'PA' | 'PMA'} unit
* @param {'EA' | 'PA' | 'PMA'} unit
* @returns {string}
* @returns {string}
...
@@ -61,14 +61,14 @@ function consultationMesuresDetaillees(
...
@@ -61,14 +61,14 @@ function consultationMesuresDetaillees(
function
consultationMesuresDetailleesMaxPower
(
function
consultationMesuresDetailleesMaxPower
(
pointId
,
pointId
,
appLogin
,
appLogin
,
startD
t
,
startD
ate
,
endD
t
,
endD
ate
,
mesureType
=
'
PMAX
'
,
mesureType
=
'
PMAX
'
,
unit
=
'
PMA
'
unit
=
'
PMA
'
)
{
)
{
log
(
log
(
'
info
'
,
'
info
'
,
`Query consultationMesuresDetaillees -
${
mesureType
}
/
${
unit
}
between
${
startD
t
}
and
${
endD
t
}
`
`Query consultationMesuresDetaillees -
${
mesureType
}
/
${
unit
}
between
${
startD
ate
}
and
${
endD
ate
}
`
)
)
return
`<?xml version='1.0' encoding='utf-8'?>
return
`<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
...
@@ -84,8 +84,8 @@ function consultationMesuresDetailleesMaxPower(
...
@@ -84,8 +84,8 @@ function consultationMesuresDetailleesMaxPower(
<grandeurPhysique>
${
unit
}
</grandeurPhysique>
<grandeurPhysique>
${
unit
}
</grandeurPhysique>
<soutirage>true</soutirage>
<soutirage>true</soutirage>
<injection>false</injection>
<injection>false</injection>
<dateDebut>
${
startD
t
}
</dateDebut>
<dateDebut>
${
startD
ate
}
</dateDebut>
<dateFin>
${
endD
t
}
</dateFin>
<dateFin>
${
endD
ate
}
</dateFin>
<mesuresPas>P1D</mesuresPas>
<mesuresPas>P1D</mesuresPas>
<mesuresCorrigees>false</mesuresCorrigees>
<mesuresCorrigees>false</mesuresCorrigees>
<accordClient>true</accordClient>
<accordClient>true</accordClient>
...
@@ -128,7 +128,7 @@ function consulterDonneesTechniquesContractuelles(pointId, appLogin) {
...
@@ -128,7 +128,7 @@ function consulterDonneesTechniquesContractuelles(pointId, appLogin) {
* @returns {string} PDL
* @returns {string} PDL
*/
*/
function
rechercherPoint
(
appLogin
,
name
,
postalCode
,
inseeCode
,
address
)
{
function
rechercherPoint
(
appLogin
,
name
,
postalCode
,
inseeCode
,
address
)
{
log
(
'
info
'
,
`Query rechercherPoint`
)
log
(
'
info
'
,
`Query rechercherPoint
- postal code:
${
postalCode
}
`
)
return
`<?xml version='1.0' encoding='utf-8'?>
return
`<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v2="http://www.enedis.fr/sge/b2b/services/rechercherpoint/v2.0"
xmlns:v2="http://www.enedis.fr/sge/b2b/services/rechercherpoint/v2.0"
...
@@ -195,7 +195,10 @@ function commanderCollectePublicationMesures(
...
@@ -195,7 +195,10 @@ function commanderCollectePublicationMesures(
startDate
,
startDate
,
endDate
endDate
)
{
)
{
log
(
'
info
'
,
`Query commanderCollectePublicationMesures`
)
log
(
'
info
'
,
`Query commanderCollectePublicationMesures - between
${
startDate
}
and
${
endDate
}
`
)
return
`<?xml version='1.0' encoding='utf-8'?>
return
`<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v2="http://www.enedis.fr/sge/b2b/commandercollectepublicationmesures/v3.0"
xmlns:v2="http://www.enedis.fr/sge/b2b/commandercollectepublicationmesures/v3.0"
...
@@ -247,7 +250,10 @@ function commanderArretServiceSouscritMesures(
...
@@ -247,7 +250,10 @@ function commanderArretServiceSouscritMesures(
pointId
,
pointId
,
serviceSouscritId
serviceSouscritId
)
{
)
{
log
(
'
info
'
,
`Query commanderArretServiceSouscritMesures`
)
log
(
'
info
'
,
`Query commanderArretServiceSouscritMesures - serviceSouscritId:
${
serviceSouscritId
}
`
)
return
`<?xml version='1.0' encoding='utf-8'?>
return
`<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v2="http://www.enedis.fr/sge/b2b/commanderarretservicesouscritmesures/v1.0"
xmlns:v2="http://www.enedis.fr/sge/b2b/commanderarretservicesouscritmesures/v1.0"
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in commit
c1f03e8c
·
2 years ago
mentioned in commit
c1f03e8c
mentioned in commit c1f03e8ce108673227a8a3c7412d34aee7542092
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