Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ecolyo
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
Ecolyo
Commits
2feba43d
Commit
2feba43d
authored
5 months ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
chore: add jsdoc to models
parent
841f60ec
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/models/dataload.model.ts
+8
-2
8 additions, 2 deletions
src/models/dataload.model.ts
src/models/profile.model.ts
+14
-5
14 additions, 5 deletions
src/models/profile.model.ts
with
22 additions
and
7 deletions
src/models/dataload.model.ts
+
8
−
2
View file @
2feba43d
...
@@ -19,11 +19,17 @@ export interface DataloadEntity {
...
@@ -19,11 +19,17 @@ export interface DataloadEntity {
_id
?:
string
_id
?:
string
_type
?:
string
_type
?:
string
_rev
?:
string
_rev
?:
string
day
:
number
/** load (in kWh or L) */
hour
:
number
load
:
number
load
:
number
/** minute of the date, set to 0 except for minute series */
minute
:
number
minute
:
number
/** hour of the date, set to 0 except for minute and hour series */
hour
:
number
/** day of the date, set to 1 for month and year series */
day
:
number
/** month of the date, set to 1 for year series */
month
:
number
month
:
number
/** year of the date */
year
:
number
year
:
number
price
?:
number
price
?:
number
}
}
This diff is collapsed.
Click to expand it.
src/models/profile.model.ts
+
14
−
5
View file @
2feba43d
import
{
DateTime
}
from
'
luxon
'
import
{
DateTime
}
from
'
luxon
'
interface
Onboarding
{
isWelcomeSeen
:
boolean
}
export
interface
ProfileEntity
{
export
interface
ProfileEntity
{
id
:
string
id
:
string
/** Hash used to verify the content of ecogestures */
ecogestureHash
:
string
ecogestureHash
:
string
/** Hash used to verify the content of challenges */
challengeHash
:
string
challengeHash
:
string
/** Hash used to verify the content of duels */
duelHash
:
string
duelHash
:
string
/** Hash used to verify the content of quiz */
quizHash
:
string
quizHash
:
string
/** Hash used to verify the content of exploration */
explorationHash
:
string
explorationHash
:
string
/** Boolean used to inform if the user connects for the first time */
isFirstConnection
:
boolean
isFirstConnection
:
boolean
/** Date of the last user connection */
lastConnectionDate
:
string
lastConnectionDate
:
string
/** Boolean used to inform if user has seen the last analysis */
haveSeenLastAnalysis
:
boolean
haveSeenLastAnalysis
:
boolean
/** Boolean used to inform if user has seen the analysis notification */
sendAnalysisNotification
:
boolean
sendAnalysisNotification
:
boolean
isAnalysisReminderEnabled
:
boolean
isAnalysisReminderEnabled
:
boolean
/** Date of the last monthly analysis */
monthlyAnalysisDate
:
string
monthlyAnalysisDate
:
string
sendConsumptionAlert
:
boolean
sendConsumptionAlert
:
boolean
waterDailyConsumptionLimit
:
number
waterDailyConsumptionLimit
:
number
/** Check if a user has completed his consumption profile */
isProfileTypeCompleted
:
boolean
isProfileTypeCompleted
:
boolean
isProfileEcogestureCompleted
:
boolean
isProfileEcogestureCompleted
:
boolean
onboarding
:
Onboarding
onboarding
:
{
isWelcomeSeen
:
boolean
}
mailToken
:
string
mailToken
:
string
partnersIssueSeenDate
:
{
partnersIssueSeenDate
:
{
enedis
?:
string
enedis
?:
string
...
...
This diff is collapsed.
Click to expand it.
Pierre Ecarlat
@pecarlat
mentioned in commit
e6306a83
·
5 months ago
mentioned in commit
e6306a83
mentioned in commit e6306a8316cad4bfbeeebb5c44577378b6a2871c
Toggle commit list
Pierre Ecarlat
@pecarlat
mentioned in commit
4bd1e50c
·
5 months ago
mentioned in commit
4bd1e50c
mentioned in commit 4bd1e50c2745ca40897f6b2f2102d997740a04e4
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