From c4b1a1eeb22a6e4d4bf338840e929dc38d5e67f0 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Wed, 17 Apr 2024 15:21:04 +0200
Subject: [PATCH] add types

---
 src/index.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/index.js b/src/index.js
index f298312..d2faeaf 100755
--- a/src/index.js
+++ b/src/index.js
@@ -158,6 +158,12 @@ function buildGetDataUrl(idPCE, startDate, endDate) {
   return `${baseUrl}/${idPCE}/donnees_consos_informatives?${queryParams}`
 }
 
+/**
+ * @param {string} token
+ * @param {string} idPCE
+ * @param {string} startDate 'YYYY-MM-DD'
+ * @param {string} endDate 'YYYY-MM-DD'
+ */
 async function getData(token, idPCE, startDate, endDate) {
   log('debug', `getData from ${startDate} to ${endDate}`)
   const url = buildGetDataUrl(idPCE, startDate, endDate)
-- 
GitLab