From 7dcf3f8da0b8a817cb703e5911c10ba2eebe3c6c Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Mon, 6 May 2024 10:59:18 +0200
Subject: [PATCH] chore(remote): fix dash in remote doctype

---
 .vscode/settings.json                                       | 2 ++
 manifest.webapp                                             | 6 +++---
 ...lyo.avg-temperature.ts => org.ecolyo.avg_temperature.ts} | 2 +-
 src/services/consumption.service.ts                         | 2 +-
 4 files changed, 7 insertions(+), 5 deletions(-)
 rename src/doctypes/remote/{org.ecolyo.avg-temperature.ts => org.ecolyo.avg_temperature.ts} (55%)

diff --git a/.vscode/settings.json b/.vscode/settings.json
index 2da2aa9b3..05e6af925 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -85,6 +85,7 @@
     "Enedis",
     "ENEDIS",
     "enedissgegrandlyon",
+    "energical",
     "Epgl",
     "esnext",
     "firstname",
@@ -141,6 +142,7 @@
     "sendmail",
     "SHARAPOWATT",
     "shortcodes",
+    "Smartmeter",
     "splashscreen",
     "swipeable",
     "Swipeable",
diff --git a/manifest.webapp b/manifest.webapp
index 9b8765136..225fa157c 100644
--- a/manifest.webapp
+++ b/manifest.webapp
@@ -109,13 +109,13 @@
           "description": "Required for the correct functioning of the energy and water connectors."
         },
         "terms": {
-          "description": "Required for the correct managment of CGU."
+          "description": "Required for the correct management of CGU."
         },
         "apps": {
           "description": "Required to display the icons of installed applications in the Cozy bar."
         },
         "settings": {
-          "description": "Required for the application's consents managment"
+          "description": "Required for the application's consents management"
         },
         "ecolyo-dju": {
           "description": "Required to gather udd data (Unified Degree Days), a meteorological data allowing the app to adjust our energical consumption model. "
@@ -244,7 +244,7 @@
       "verbs": ["GET"]
     },
     "ecolyo-avg-temperature": {
-      "type": "org.ecolyo.avg-temperature",
+      "type": "org.ecolyo.avg_temperature",
       "verbs": ["GET"]
     },
     "dacc": {
diff --git a/src/doctypes/remote/org.ecolyo.avg-temperature.ts b/src/doctypes/remote/org.ecolyo.avg_temperature.ts
similarity index 55%
rename from src/doctypes/remote/org.ecolyo.avg-temperature.ts
rename to src/doctypes/remote/org.ecolyo.avg_temperature.ts
index ff3c5e7a4..5173322d2 100644
--- a/src/doctypes/remote/org.ecolyo.avg-temperature.ts
+++ b/src/doctypes/remote/org.ecolyo.avg_temperature.ts
@@ -1,2 +1,2 @@
 export const REMOTE_ORG_ECOLYO_AVG_TEMPERATURE =
-  '/remote/org.ecolyo.avg-temperature'
+  '/remote/org.ecolyo.avg_temperature'
diff --git a/src/services/consumption.service.ts b/src/services/consumption.service.ts
index 68551b7a8..57ccc0eb3 100644
--- a/src/services/consumption.service.ts
+++ b/src/services/consumption.service.ts
@@ -3,7 +3,7 @@ import { Client, Q, QueryDefinition, QueryResult } from 'cozy-client'
 import { Doctype } from 'cozy-client/types/types'
 import logger from 'cozy-logger'
 import { ENEDIS_MINUTE_DOCTYPE } from 'doctypes'
-import { REMOTE_ORG_ECOLYO_AVG_TEMPERATURE } from 'doctypes/remote/org.ecolyo.avg-temperature'
+import { REMOTE_ORG_ECOLYO_AVG_TEMPERATURE } from 'doctypes/remote/org.ecolyo.avg_temperature'
 import { DataloadState, FluidType, TimeStep } from 'enums'
 import { DateTime } from 'luxon'
 import {
-- 
GitLab