-
Notifications
You must be signed in to change notification settings - Fork 3
Experiments service
Petr Štechmüller edited this page Aug 29, 2020
·
1 revision
This service is used as access point to all repositories releated with Experiments.
- Description: return all experiments which pass by filter - simple implementation of
Experiment
interface - Parameters:
options?: FindManyOptions<ExperimentEntity>
- Return value:
Promise<Experiment[]>
- Exceptions: -
- Description: return one experiment - full implementation of one of these interfaces:
ExperimentERP
,ExperimentCVEP
,ExperimentFVEP
,ExperimentTVEP
,ExperimentREA
- Parameters:
-
id
: experiment id -
userID
: user id
-
- Return value:
Promise<Experiment>
- Exceptions:
ExperimentIdNotFoundException
- Description: creates new experiment
- Parameters:
-
experiment
: full implementation of one ofthese interfaces:ExperimentERP
,ExperimentCVEP
,ExperimentFVEP
,ExperimentTVEP
,ExperimentREA
-
userID
: user id
-
- Return value:
number
: index of row of inserted experiment - Exceptions:
-
QueryFailedError
: when query failed to run
-
- Description: updates existing experiment
- Parameters:
-
experiment
: full implementation of one ofthese interfaces:ExperimentERP
,ExperimentCVEP
,ExperimentFVEP
,ExperimentTVEP
,ExperimentREA
-
userID
: user id
-
- Return value:
void
- Exceptions:
-
ExperimentIdNotFoundException
: when experiment is not found -
QueryFailedError
: when query failed to run
-
- Description: deletes existing experiment
- Parameters:
-
id
: experiment id -
userID
: user id
-
- Return value:
void
- Exceptions:
-
ExperimentIdNotFoundException
: when experiment is not found -
QueryFailedError
: when query failed to run
-
- Description: return all used multimedia for selected experiment
- Parameters:
-
id
: experiment id -
userID
: user id
-
- Return value:
Promise<{ audio: {}; image: {} }>
- Exceptions:
-
ExperimentIdNotFoundException
: when experiment is not found
-
- Description: check if selected name exists or not
- Parameters:
-
name
: experiment name -
id
: experiment id or'new'
-
- Return value:
Promise<boolean>
- Exceptions: -