Skip to content

Commit

Permalink
feat: add getConnaissancesClient
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff committed Apr 29, 2024
1 parent 03583c1 commit 6ba64a5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ Ce module permet de gérer et récupérer la consommation des compteurs communic
* [.getUserAccreditation()](#GRDF+getUserAccreditation) ⇒ <code>Promise.&lt;Array.&lt;Accreditation&gt;&gt;</code>
* [.putUserAccreditation(pce, partialPCE)](#GRDF+putUserAccreditation) ⇒ <code>Promise.&lt;PCE&gt;</code>
* [.getInfoLogements()](#GRDF+getInfoLogements) ⇒ <code>Promise.&lt;Array.&lt;InfoLogement&gt;&gt;</code>
* [.getInfoLogementPCE()](#GRDF+getInfoLogementPCE) ⇒ <code>Promise.&lt;InfoLogement&gt;</code>
* [.getInfoLogementPCE(pce)](#GRDF+getInfoLogementPCE) ⇒ <code>Promise.&lt;InfoLogement&gt;</code>
* [.getConnaissancesClient(pce)](#GRDF+getConnaissancesClient) ⇒ <code>Promise.&lt;ConnaissancesClient&gt;</code>
* [.patchConnaissancesClient(id, data)](#GRDF+patchConnaissancesClient) ⇒ <code>Promise.&lt;ConnaissancesClient&gt;</code>
* _static_
* [.login(email, password)](#GRDF.login) ⇒ <code>Promise.&lt;string&gt;</code>

Expand Down Expand Up @@ -294,7 +296,7 @@ Mise à jour de l'accréditation (changement de l'alias par exemple)
| Param | Type | Description |
| --- | --- | --- |
| pce | <code>string</code> | Identifiant du PCE |
| partialPCE | | |
| partialPCE | | L'objet PCE revendiqué |

<a name="GRDF+getInfoLogements"></a>

Expand All @@ -304,10 +306,38 @@ Informations sur le logement
**Kind**: instance method of [<code>GRDF</code>](#GRDF)
<a name="GRDF+getInfoLogementPCE"></a>

### grdF.getInfoLogementPCE() ⇒ <code>Promise.&lt;InfoLogement&gt;</code>
### grdF.getInfoLogementPCE(pce) ⇒ <code>Promise.&lt;InfoLogement&gt;</code>
Informations sur le logement d'un PCE

**Kind**: instance method of [<code>GRDF</code>](#GRDF)

| Param | Type | Description |
| --- | --- | --- |
| pce | <code>string</code> | Identifiant PCE |

<a name="GRDF+getConnaissancesClient"></a>

### grdF.getConnaissancesClient(pce) ⇒ <code>Promise.&lt;ConnaissancesClient&gt;</code>
Informations sur le client (type de logement, surface, mode de chauffage, etc.)

**Kind**: instance method of [<code>GRDF</code>](#GRDF)

| Param | Type | Description |
| --- | --- | --- |
| pce | <code>string</code> | Identifiant PCE |

<a name="GRDF+patchConnaissancesClient"></a>

### grdF.patchConnaissancesClient(id, data) ⇒ <code>Promise.&lt;ConnaissancesClient&gt;</code>
Mettre à jour le formulaire de connaissances client (type de logement, surface, mode de chauffage, etc.)

**Kind**: instance method of [<code>GRDF</code>](#GRDF)

| Param | Type | Description |
| --- | --- | --- |
| id | <code>number</code> | Identifiant du formulaire |
| data | <code>ConnaissancesClient</code> | Données partielles à mettre à jour dans le formulaire |

<a name="GRDF.login"></a>

### GRDF.login(email, password) ⇒ <code>Promise.&lt;string&gt;</code>
Expand Down
1 change: 1 addition & 0 deletions src/components/User/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { HistoriqueConsultation, HistoriqueConsultationRequest } from './HistoriqueConsultation'
export { Accreditation } from './Accreditation'
export { InfoLogement } from './InfoLogement'
export { UserInfo } from './UserInfo'
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import { OktaAuth } from '@okta/okta-auth-js'
import { wrapper } from 'axios-cookiejar-support'
import { CookieJar } from 'tough-cookie'

import { UserInfo } from './components/User/UserInfo'
import { PCE, Adresse, Consommation, ConsommationReference, ConsommationType, Frequency, PCECoefficient, Seuils, SeuilsCreated, ConnaissancesClient } from './components/PCE'
import { Accreditation, HistoriqueConsultation, HistoriqueConsultationRequest, InfoLogement } from './components/User'
import { Accreditation, HistoriqueConsultation, HistoriqueConsultationRequest, InfoLogement, UserInfo } from './components/User'

import { HTMLResponseError } from './components/Errors'

Expand Down

0 comments on commit 6ba64a5

Please sign in to comment.