lamp-core-lst 2025.11.1-3.basic
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +34 -0
- package/LICENSE.md +29 -0
- package/MANUAL.md +26 -0
- package/README.md +126 -0
- package/cli.js +2 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +311 -0
- package/dist/model/Activity.d.ts +81 -0
- package/dist/model/Activity.js +30 -0
- package/dist/model/ActivityEvent.d.ts +51 -0
- package/dist/model/ActivityEvent.js +21 -0
- package/dist/model/ActivitySpec.d.ts +38 -0
- package/dist/model/ActivitySpec.js +12 -0
- package/dist/model/Credential.d.ts +21 -0
- package/dist/model/Credential.js +12 -0
- package/dist/model/DynamicAttachment.d.ts +34 -0
- package/dist/model/DynamicAttachment.js +12 -0
- package/dist/model/Participant.d.ts +30 -0
- package/dist/model/Participant.js +12 -0
- package/dist/model/Researcher.d.ts +27 -0
- package/dist/model/Researcher.js +12 -0
- package/dist/model/ResearcherSettings.d.ts +57 -0
- package/dist/model/ResearcherSettings.js +12 -0
- package/dist/model/Sensor.d.ts +22 -0
- package/dist/model/Sensor.js +12 -0
- package/dist/model/SensorEvent.d.ts +18 -0
- package/dist/model/SensorEvent.js +12 -0
- package/dist/model/SensorSpec.d.ts +13 -0
- package/dist/model/SensorSpec.js +12 -0
- package/dist/model/Study.d.ts +24 -0
- package/dist/model/Study.js +12 -0
- package/dist/model/Type.d.ts +56 -0
- package/dist/model/Type.js +30 -0
- package/dist/model/index.d.ts +12 -0
- package/dist/model/index.js +24 -0
- package/dist/service/API.service.d.ts +12 -0
- package/dist/service/API.service.js +82 -0
- package/dist/service/Activity.service.d.ts +101 -0
- package/dist/service/Activity.service.js +756 -0
- package/dist/service/ActivityEvent.service.d.ts +46 -0
- package/dist/service/ActivityEvent.service.js +303 -0
- package/dist/service/ActivitySpec.service.d.ts +31 -0
- package/dist/service/ActivitySpec.service.js +173 -0
- package/dist/service/Credential.service.d.ts +38 -0
- package/dist/service/Credential.service.js +319 -0
- package/dist/service/Demo.d.ts +14 -0
- package/dist/service/Demo.js +24 -0
- package/dist/service/Fetch.d.ts +30 -0
- package/dist/service/Fetch.js +245 -0
- package/dist/service/Participant.service.d.ts +42 -0
- package/dist/service/Participant.service.js +312 -0
- package/dist/service/Researcher.service.d.ts +34 -0
- package/dist/service/Researcher.service.js +252 -0
- package/dist/service/ResearcherSettings.service.d.ts +16 -0
- package/dist/service/ResearcherSettings.service.js +114 -0
- package/dist/service/Sensor.service.d.ts +47 -0
- package/dist/service/Sensor.service.js +372 -0
- package/dist/service/SensorEvent.service.d.ts +44 -0
- package/dist/service/SensorEvent.service.js +302 -0
- package/dist/service/SensorSpec.service.d.ts +31 -0
- package/dist/service/SensorSpec.service.js +171 -0
- package/dist/service/Study.service.d.ts +42 -0
- package/dist/service/Study.service.js +286 -0
- package/dist/service/Type.service.d.ts +48 -0
- package/dist/service/Type.service.js +352 -0
- package/dist/service/index.d.ts +13 -0
- package/dist/service/index.js +25 -0
- package/docs/APIApi.md +82 -0
- package/docs/AccessCitation.md +11 -0
- package/docs/Activity.md +13 -0
- package/docs/ActivityApi.md +356 -0
- package/docs/ActivityEvent.md +13 -0
- package/docs/ActivityEventApi.md +251 -0
- package/docs/ActivitySpec.md +14 -0
- package/docs/ActivitySpecApi.md +222 -0
- package/docs/Credential.md +12 -0
- package/docs/CredentialApi.md +175 -0
- package/docs/Document.md +9 -0
- package/docs/DurationInterval.md +11 -0
- package/docs/DurationIntervalLegacy.md +10 -0
- package/docs/DynamicAttachment.md +14 -0
- package/docs/Error.md +8 -0
- package/docs/Metadata.md +8 -0
- package/docs/Participant.md +14 -0
- package/docs/ParticipantApi.md +312 -0
- package/docs/Researcher.md +12 -0
- package/docs/ResearcherApi.md +223 -0
- package/docs/Sensor.md +12 -0
- package/docs/SensorApi.md +356 -0
- package/docs/SensorEvent.md +11 -0
- package/docs/SensorEventApi.md +250 -0
- package/docs/SensorSpec.md +10 -0
- package/docs/SensorSpecApi.md +222 -0
- package/docs/Study.md +11 -0
- package/docs/StudyApi.md +268 -0
- package/docs/TemporalSlice.md +13 -0
- package/docs/TypeApi.md +274 -0
- package/package.json +44 -0
- package/src/index.ts +256 -0
- package/src/model/Activity.ts +93 -0
- package/src/model/ActivityEvent.ts +63 -0
- package/src/model/ActivitySpec.ts +45 -0
- package/src/model/Credential.ts +26 -0
- package/src/model/DynamicAttachment.ts +42 -0
- package/src/model/Participant.ts +37 -0
- package/src/model/Researcher.ts +33 -0
- package/src/model/ResearcherSettings.ts +65 -0
- package/src/model/Sensor.ts +27 -0
- package/src/model/SensorEvent.ts +22 -0
- package/src/model/SensorSpec.ts +16 -0
- package/src/model/Study.ts +29 -0
- package/src/model/Type.ts +68 -0
- package/src/model/index.ts +12 -0
- package/src/service/API.service.ts +29 -0
- package/src/service/Activity.service.ts +625 -0
- package/src/service/ActivityEvent.service.ts +244 -0
- package/src/service/ActivitySpec.service.ts +98 -0
- package/src/service/Credential.service.ts +268 -0
- package/src/service/Demo.ts +21 -0
- package/src/service/Fetch.ts +187 -0
- package/src/service/Participant.service.ts +217 -0
- package/src/service/Researcher.service.ts +147 -0
- package/src/service/ResearcherSettings.service.ts +62 -0
- package/src/service/Sensor.service.ts +256 -0
- package/src/service/SensorEvent.service.ts +239 -0
- package/src/service/SensorSpec.service.ts +96 -0
- package/src/service/Study.service.ts +187 -0
- package/src/service/Type.service.ts +297 -0
- package/src/service/index.ts +13 -0
- package/tsconfig.json +29 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
# LAMP.Sensor
|
|
2
|
+
|
|
3
|
+
Method | HTTP request | Description
|
|
4
|
+
------------- | ------------- | -------------
|
|
5
|
+
[**all**](SensorApi.md#all) | **GET** /sensor | Get the set of all sensors.
|
|
6
|
+
[**allByParticipant**](SensorApi.md#allByParticipant) | **GET** /participant/{participant_id}/sensor | Get all sensors for a participant.
|
|
7
|
+
[**allByResearcher**](SensorApi.md#allByResearcher) | **GET** /researcher/{researcher_id}/sensor | Get all sensors for a researcher.
|
|
8
|
+
[**allByStudy**](SensorApi.md#allByStudy) | **GET** /study/{study_id}/sensor | View all sensors in a study.
|
|
9
|
+
[**create**](SensorApi.md#create) | **POST** /study/{study_id}/sensor | Create a new Sensor under the given Study.
|
|
10
|
+
[**delete**](SensorApi.md#delete) | **DELETE** /sensor/{sensor_id} | Delete a Sensor.
|
|
11
|
+
[**update**](SensorApi.md#update) | **PUT** /sensor/{sensor_id} | Update an Sensor's settings.
|
|
12
|
+
[**view**](SensorApi.md#view) | **GET** /sensor/{sensor_id} | Get a single sensor, by identifier.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# **all**
|
|
16
|
+
> array[object] all()
|
|
17
|
+
|
|
18
|
+
Get the set of all sensors.
|
|
19
|
+
|
|
20
|
+
Get the set of all sensors.
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
```javascript
|
|
24
|
+
import LAMP from 'lamp-core'
|
|
25
|
+
|
|
26
|
+
// Get the set of all sensors.
|
|
27
|
+
const result = LAMP.Sensor.all()
|
|
28
|
+
console.dir(result)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
Name | Type | Description | Notes
|
|
34
|
+
------------- | ------------- | ------------- | -------------
|
|
35
|
+
**transform** | **string**| | [optional]
|
|
36
|
+
|
|
37
|
+
### Return type
|
|
38
|
+
|
|
39
|
+
**array[object]**
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: `application/json`
|
|
44
|
+
- **Accept**: `application/json`
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
| **200** | 200 Success | - |
|
|
50
|
+
| **400** | 400 Bad Request | - |
|
|
51
|
+
| **403** | 403 Authorization Failed | - |
|
|
52
|
+
| **404** | 404 Not Found | - |
|
|
53
|
+
| **0** | 500 Internal Error | - |
|
|
54
|
+
|
|
55
|
+
# **allByParticipant**
|
|
56
|
+
> array[object] allByParticipant(participant_id)
|
|
57
|
+
|
|
58
|
+
Get all sensors for a participant.
|
|
59
|
+
|
|
60
|
+
Get the set of all sensors available to a participant, by participant identifier.
|
|
61
|
+
|
|
62
|
+
### Example
|
|
63
|
+
```javascript
|
|
64
|
+
import LAMP from 'lamp-core'
|
|
65
|
+
|
|
66
|
+
let participant_id = 'participant_id_example' // string
|
|
67
|
+
|
|
68
|
+
// Get all sensors for a participant.
|
|
69
|
+
const result = LAMP.Sensor.allByParticipant(participant_id)
|
|
70
|
+
console.dir(result)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Parameters
|
|
74
|
+
|
|
75
|
+
Name | Type | Description | Notes
|
|
76
|
+
------------- | ------------- | ------------- | -------------
|
|
77
|
+
**participant_id** | **string**| |
|
|
78
|
+
**transform** | **string**| | [optional]
|
|
79
|
+
|
|
80
|
+
### Return type
|
|
81
|
+
|
|
82
|
+
**array[object]**
|
|
83
|
+
|
|
84
|
+
### HTTP request headers
|
|
85
|
+
|
|
86
|
+
- **Content-Type**: `application/json`
|
|
87
|
+
- **Accept**: `application/json`
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
| **200** | 200 Success | - |
|
|
93
|
+
| **400** | 400 Bad Request | - |
|
|
94
|
+
| **403** | 403 Authorization Failed | - |
|
|
95
|
+
| **404** | 404 Not Found | - |
|
|
96
|
+
| **0** | 500 Internal Error | - |
|
|
97
|
+
|
|
98
|
+
# **allByResearcher**
|
|
99
|
+
> array[object] allByResearcher(researcher_id)
|
|
100
|
+
|
|
101
|
+
Get all sensors for a researcher.
|
|
102
|
+
|
|
103
|
+
Get the set of all sensors available to participants of any study conducted by a researcher, by researcher identifier.
|
|
104
|
+
|
|
105
|
+
### Example
|
|
106
|
+
```javascript
|
|
107
|
+
import LAMP from 'lamp-core'
|
|
108
|
+
|
|
109
|
+
let researcher_id = 'researcher_id_example' // string
|
|
110
|
+
|
|
111
|
+
// Get all sensors for a researcher.
|
|
112
|
+
const result = LAMP.Sensor.allByResearcher(researcher_id)
|
|
113
|
+
console.dir(result)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Parameters
|
|
117
|
+
|
|
118
|
+
Name | Type | Description | Notes
|
|
119
|
+
------------- | ------------- | ------------- | -------------
|
|
120
|
+
**researcher_id** | **string**| |
|
|
121
|
+
**transform** | **string**| | [optional]
|
|
122
|
+
|
|
123
|
+
### Return type
|
|
124
|
+
|
|
125
|
+
**array[object]**
|
|
126
|
+
|
|
127
|
+
### HTTP request headers
|
|
128
|
+
|
|
129
|
+
- **Content-Type**: `application/json`
|
|
130
|
+
- **Accept**: `application/json`
|
|
131
|
+
|
|
132
|
+
### HTTP response details
|
|
133
|
+
| Status code | Description | Response headers |
|
|
134
|
+
|-------------|-------------|------------------|
|
|
135
|
+
| **200** | 200 Success | - |
|
|
136
|
+
| **400** | 400 Bad Request | - |
|
|
137
|
+
| **403** | 403 Authorization Failed | - |
|
|
138
|
+
| **404** | 404 Not Found | - |
|
|
139
|
+
| **0** | 500 Internal Error | - |
|
|
140
|
+
|
|
141
|
+
# **allByStudy**
|
|
142
|
+
> array[object] allByStudy(study_id)
|
|
143
|
+
|
|
144
|
+
View all sensors in a study.
|
|
145
|
+
|
|
146
|
+
Get the set of all sensors available to participants of a single study, by study identifier.
|
|
147
|
+
|
|
148
|
+
### Example
|
|
149
|
+
```javascript
|
|
150
|
+
import LAMP from 'lamp-core'
|
|
151
|
+
|
|
152
|
+
let study_id = 'study_id_example' // string
|
|
153
|
+
|
|
154
|
+
// View all sensors in a study.
|
|
155
|
+
const result = LAMP.Sensor.allByStudy(study_id)
|
|
156
|
+
console.dir(result)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
|
|
161
|
+
Name | Type | Description | Notes
|
|
162
|
+
------------- | ------------- | ------------- | -------------
|
|
163
|
+
**study_id** | **string**| |
|
|
164
|
+
**transform** | **string**| | [optional]
|
|
165
|
+
|
|
166
|
+
### Return type
|
|
167
|
+
|
|
168
|
+
**array[object]**
|
|
169
|
+
|
|
170
|
+
### HTTP request headers
|
|
171
|
+
|
|
172
|
+
- **Content-Type**: `application/json`
|
|
173
|
+
- **Accept**: `application/json`
|
|
174
|
+
|
|
175
|
+
### HTTP response details
|
|
176
|
+
| Status code | Description | Response headers |
|
|
177
|
+
|-------------|-------------|------------------|
|
|
178
|
+
| **200** | 200 Success | - |
|
|
179
|
+
| **400** | 400 Bad Request | - |
|
|
180
|
+
| **403** | 403 Authorization Failed | - |
|
|
181
|
+
| **404** | 404 Not Found | - |
|
|
182
|
+
| **0** | 500 Internal Error | - |
|
|
183
|
+
|
|
184
|
+
# **create**
|
|
185
|
+
> character create(study_id, sensor)
|
|
186
|
+
|
|
187
|
+
Create a new Sensor under the given Study.
|
|
188
|
+
|
|
189
|
+
Create a new Sensor under the given Study.
|
|
190
|
+
|
|
191
|
+
### Example
|
|
192
|
+
```javascript
|
|
193
|
+
import LAMP from 'lamp-core'
|
|
194
|
+
|
|
195
|
+
let study_id = 'study_id_example' // string
|
|
196
|
+
let sensor = Sensor.new("id_example", "spec_example", "name_example", 123) // Sensor
|
|
197
|
+
|
|
198
|
+
// Create a new Sensor under the given Study.
|
|
199
|
+
const result = LAMP.Sensor.create(study_id, sensor)
|
|
200
|
+
console.dir(result)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
Name | Type | Description | Notes
|
|
206
|
+
------------- | ------------- | ------------- | -------------
|
|
207
|
+
**study_id** | **string**| |
|
|
208
|
+
**sensor** | [**Sensor**](Sensor.md)| |
|
|
209
|
+
|
|
210
|
+
### Return type
|
|
211
|
+
|
|
212
|
+
**string**
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: `application/json`
|
|
217
|
+
- **Accept**: `application/json`
|
|
218
|
+
|
|
219
|
+
### HTTP response details
|
|
220
|
+
| Status code | Description | Response headers |
|
|
221
|
+
|-------------|-------------|------------------|
|
|
222
|
+
| **200** | 200 Success | - |
|
|
223
|
+
| **400** | 400 Bad Request | - |
|
|
224
|
+
| **403** | 403 Authorization Failed | - |
|
|
225
|
+
| **404** | 404 Not Found | - |
|
|
226
|
+
| **0** | 500 Internal Error | - |
|
|
227
|
+
|
|
228
|
+
# **delete**
|
|
229
|
+
> character delete(sensor_id)
|
|
230
|
+
|
|
231
|
+
Delete a Sensor.
|
|
232
|
+
|
|
233
|
+
Delete a Sensor.
|
|
234
|
+
|
|
235
|
+
### Example
|
|
236
|
+
```javascript
|
|
237
|
+
import LAMP from 'lamp-core'
|
|
238
|
+
|
|
239
|
+
let sensor_id = 'sensor_id_example' // string
|
|
240
|
+
|
|
241
|
+
// Delete a Sensor.
|
|
242
|
+
const result = LAMP.Sensor.delete(sensor_id)
|
|
243
|
+
console.dir(result)
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
247
|
+
|
|
248
|
+
Name | Type | Description | Notes
|
|
249
|
+
------------- | ------------- | ------------- | -------------
|
|
250
|
+
**sensor_id** | **string**| |
|
|
251
|
+
|
|
252
|
+
### Return type
|
|
253
|
+
|
|
254
|
+
**string**
|
|
255
|
+
|
|
256
|
+
### HTTP request headers
|
|
257
|
+
|
|
258
|
+
- **Content-Type**: `application/json`
|
|
259
|
+
- **Accept**: `application/json`
|
|
260
|
+
|
|
261
|
+
### HTTP response details
|
|
262
|
+
| Status code | Description | Response headers |
|
|
263
|
+
|-------------|-------------|------------------|
|
|
264
|
+
| **200** | 200 Success | - |
|
|
265
|
+
| **400** | 400 Bad Request | - |
|
|
266
|
+
| **403** | 403 Authorization Failed | - |
|
|
267
|
+
| **404** | 404 Not Found | - |
|
|
268
|
+
| **0** | 500 Internal Error | - |
|
|
269
|
+
|
|
270
|
+
# **update**
|
|
271
|
+
> character update(sensor_id, sensor)
|
|
272
|
+
|
|
273
|
+
Update an Sensor's settings.
|
|
274
|
+
|
|
275
|
+
Update an Sensor's settings.
|
|
276
|
+
|
|
277
|
+
### Example
|
|
278
|
+
```javascript
|
|
279
|
+
import LAMP from 'lamp-core'
|
|
280
|
+
|
|
281
|
+
let sensor_id = 'sensor_id_example' // string
|
|
282
|
+
let sensor = Sensor.new("id_example", "spec_example", "name_example", 123) // Sensor
|
|
283
|
+
|
|
284
|
+
// Update an Sensor's settings.
|
|
285
|
+
const result = LAMP.Sensor.update(sensor_id, sensor)
|
|
286
|
+
console.dir(result)
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### Parameters
|
|
290
|
+
|
|
291
|
+
Name | Type | Description | Notes
|
|
292
|
+
------------- | ------------- | ------------- | -------------
|
|
293
|
+
**sensor_id** | **string**| |
|
|
294
|
+
**sensor** | [**Sensor**](Sensor.md)| |
|
|
295
|
+
|
|
296
|
+
### Return type
|
|
297
|
+
|
|
298
|
+
**string**
|
|
299
|
+
|
|
300
|
+
### HTTP request headers
|
|
301
|
+
|
|
302
|
+
- **Content-Type**: `application/json`
|
|
303
|
+
- **Accept**: `application/json`
|
|
304
|
+
|
|
305
|
+
### HTTP response details
|
|
306
|
+
| Status code | Description | Response headers |
|
|
307
|
+
|-------------|-------------|------------------|
|
|
308
|
+
| **200** | 200 Success | - |
|
|
309
|
+
| **400** | 400 Bad Request | - |
|
|
310
|
+
| **403** | 403 Authorization Failed | - |
|
|
311
|
+
| **404** | 404 Not Found | - |
|
|
312
|
+
| **0** | 500 Internal Error | - |
|
|
313
|
+
|
|
314
|
+
# **view**
|
|
315
|
+
> array[object] view(sensor_id)
|
|
316
|
+
|
|
317
|
+
Get a single sensor, by identifier.
|
|
318
|
+
|
|
319
|
+
Get a single sensor, by identifier.
|
|
320
|
+
|
|
321
|
+
### Example
|
|
322
|
+
```javascript
|
|
323
|
+
import LAMP from 'lamp-core'
|
|
324
|
+
|
|
325
|
+
let sensor_id = 'sensor_id_example' // string
|
|
326
|
+
|
|
327
|
+
// Get a single sensor, by identifier.
|
|
328
|
+
const result = LAMP.Sensor.view(sensor_id)
|
|
329
|
+
console.dir(result)
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Parameters
|
|
333
|
+
|
|
334
|
+
Name | Type | Description | Notes
|
|
335
|
+
------------- | ------------- | ------------- | -------------
|
|
336
|
+
**sensor_id** | **string**| |
|
|
337
|
+
**transform** | **string**| | [optional]
|
|
338
|
+
|
|
339
|
+
### Return type
|
|
340
|
+
|
|
341
|
+
**array[object]**
|
|
342
|
+
|
|
343
|
+
### HTTP request headers
|
|
344
|
+
|
|
345
|
+
- **Content-Type**: `application/json`
|
|
346
|
+
- **Accept**: `application/json`
|
|
347
|
+
|
|
348
|
+
### HTTP response details
|
|
349
|
+
| Status code | Description | Response headers |
|
|
350
|
+
|-------------|-------------|------------------|
|
|
351
|
+
| **200** | 200 Success | - |
|
|
352
|
+
| **400** | 400 Bad Request | - |
|
|
353
|
+
| **403** | 403 Authorization Failed | - |
|
|
354
|
+
| **404** | 404 Not Found | - |
|
|
355
|
+
| **0** | 500 Internal Error | - |
|
|
356
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# LAMP.SensorEvent
|
|
2
|
+
|
|
3
|
+
An event generated by a participant interacting with the LAMP app.
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**timestamp** | **number** | The UNIX Epoch date-time representation: number of milliseconds since 1/1/1970 12:00 AM. | [optional]
|
|
8
|
+
**sensor** | **string** | The type of the sensor event. | [optional]
|
|
9
|
+
**data** | [**object**](.md) | The item information recorded within the sensor event. | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# LAMP.SensorEvent
|
|
2
|
+
|
|
3
|
+
Method | HTTP request | Description
|
|
4
|
+
------------- | ------------- | -------------
|
|
5
|
+
[**allByParticipant**](SensorEventApi.md#allByParticipant) | **GET** /participant/{participant_id}/sensor_event | Get all sensor events for a participant.
|
|
6
|
+
[**allByResearcher**](SensorEventApi.md#allByResearcher) | **GET** /researcher/{researcher_id}/sensor_event | Get all sensor events for a researcher by participant.
|
|
7
|
+
[**allByStudy**](SensorEventApi.md#allByStudy) | **GET** /study/{study_id}/sensor_event | Get all sensor events for a study by participant.
|
|
8
|
+
[**create**](SensorEventApi.md#create) | **POST** /participant/{participant_id}/sensor_event | Create a new SensorEvent for the given Participant.
|
|
9
|
+
[**delete**](SensorEventApi.md#delete) | **DELETE** /participant/{participant_id}/sensor_event | Delete a sensor event.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# **allByParticipant**
|
|
13
|
+
> array[object] allByParticipant(participant_id, origin=let origin, from=let from, to=let to)
|
|
14
|
+
|
|
15
|
+
Get all sensor events for a participant.
|
|
16
|
+
|
|
17
|
+
Get the set of all sensor events produced by the given participant.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
```javascript
|
|
21
|
+
import LAMP from 'lamp-core'
|
|
22
|
+
|
|
23
|
+
let participant_id = 'participant_id_example' // string
|
|
24
|
+
let origin = 'origin_example' // string
|
|
25
|
+
let from = 3.4 // number
|
|
26
|
+
let to = 3.4 // number
|
|
27
|
+
|
|
28
|
+
// Get all sensor events for a participant.
|
|
29
|
+
const result = LAMP.SensorEvent.allByParticipant(participant_id, origin=let origin, from=let from, to=let to)
|
|
30
|
+
console.dir(result)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
Name | Type | Description | Notes
|
|
36
|
+
------------- | ------------- | ------------- | -------------
|
|
37
|
+
**participant_id** | **string**| |
|
|
38
|
+
**origin** | **string**| | [optional]
|
|
39
|
+
**from** | **number**| | [optional]
|
|
40
|
+
**to** | **number**| | [optional]
|
|
41
|
+
**transform** | **string**| | [optional]
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**array[object]**
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: `application/json`
|
|
50
|
+
- **Accept**: `application/json`
|
|
51
|
+
|
|
52
|
+
### HTTP response details
|
|
53
|
+
| Status code | Description | Response headers |
|
|
54
|
+
|-------------|-------------|------------------|
|
|
55
|
+
| **200** | 200 Success | - |
|
|
56
|
+
| **400** | 400 Bad Request | - |
|
|
57
|
+
| **403** | 403 Authorization Failed | - |
|
|
58
|
+
| **404** | 404 Not Found | - |
|
|
59
|
+
| **0** | 500 Internal Error | - |
|
|
60
|
+
|
|
61
|
+
# **allByResearcher**
|
|
62
|
+
> array[object] allByResearcher(researcher_id, origin=let origin, from=let from, to=let to)
|
|
63
|
+
|
|
64
|
+
Get all sensor events for a researcher by participant.
|
|
65
|
+
|
|
66
|
+
Get the set of all sensor events produced by participants of any study conducted by a researcher, by researcher identifier.
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
```javascript
|
|
70
|
+
import LAMP from 'lamp-core'
|
|
71
|
+
|
|
72
|
+
let researcher_id = 'researcher_id_example' // string
|
|
73
|
+
let origin = 'origin_example' // string
|
|
74
|
+
let from = 3.4 // number
|
|
75
|
+
let to = 3.4 // number
|
|
76
|
+
|
|
77
|
+
// Get all sensor events for a researcher by participant.
|
|
78
|
+
const result = LAMP.SensorEvent.allByResearcher(researcher_id, origin=let origin, from=let from, to=let to)
|
|
79
|
+
console.dir(result)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Parameters
|
|
83
|
+
|
|
84
|
+
Name | Type | Description | Notes
|
|
85
|
+
------------- | ------------- | ------------- | -------------
|
|
86
|
+
**researcher_id** | **string**| |
|
|
87
|
+
**origin** | **string**| | [optional]
|
|
88
|
+
**from** | **number**| | [optional]
|
|
89
|
+
**to** | **number**| | [optional]
|
|
90
|
+
**transform** | **string**| | [optional]
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**array[object]**
|
|
95
|
+
|
|
96
|
+
### HTTP request headers
|
|
97
|
+
|
|
98
|
+
- **Content-Type**: `application/json`
|
|
99
|
+
- **Accept**: `application/json`
|
|
100
|
+
|
|
101
|
+
### HTTP response details
|
|
102
|
+
| Status code | Description | Response headers |
|
|
103
|
+
|-------------|-------------|------------------|
|
|
104
|
+
| **200** | 200 Success | - |
|
|
105
|
+
| **400** | 400 Bad Request | - |
|
|
106
|
+
| **403** | 403 Authorization Failed | - |
|
|
107
|
+
| **404** | 404 Not Found | - |
|
|
108
|
+
| **0** | 500 Internal Error | - |
|
|
109
|
+
|
|
110
|
+
# **allByStudy**
|
|
111
|
+
> array[object] allByStudy(study_id, origin=let origin, from=let from, to=let to)
|
|
112
|
+
|
|
113
|
+
Get all sensor events for a study by participant.
|
|
114
|
+
|
|
115
|
+
Get the set of all sensor events produced by participants of a single study, by study identifier.
|
|
116
|
+
|
|
117
|
+
### Example
|
|
118
|
+
```javascript
|
|
119
|
+
import LAMP from 'lamp-core'
|
|
120
|
+
|
|
121
|
+
let study_id = 'study_id_example' // string
|
|
122
|
+
let origin = 'origin_example' // string
|
|
123
|
+
let from = 3.4 // number
|
|
124
|
+
let to = 3.4 // number
|
|
125
|
+
|
|
126
|
+
// Get all sensor events for a study by participant.
|
|
127
|
+
const result = LAMP.SensorEvent.allByStudy(study_id, origin=let origin, from=let from, to=let to)
|
|
128
|
+
console.dir(result)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Parameters
|
|
132
|
+
|
|
133
|
+
Name | Type | Description | Notes
|
|
134
|
+
------------- | ------------- | ------------- | -------------
|
|
135
|
+
**study_id** | **string**| |
|
|
136
|
+
**origin** | **string**| | [optional]
|
|
137
|
+
**from** | **number**| | [optional]
|
|
138
|
+
**to** | **number**| | [optional]
|
|
139
|
+
**transform** | **string**| | [optional]
|
|
140
|
+
|
|
141
|
+
### Return type
|
|
142
|
+
|
|
143
|
+
**array[object]**
|
|
144
|
+
|
|
145
|
+
### HTTP request headers
|
|
146
|
+
|
|
147
|
+
- **Content-Type**: `application/json`
|
|
148
|
+
- **Accept**: `application/json`
|
|
149
|
+
|
|
150
|
+
### HTTP response details
|
|
151
|
+
| Status code | Description | Response headers |
|
|
152
|
+
|-------------|-------------|------------------|
|
|
153
|
+
| **200** | 200 Success | - |
|
|
154
|
+
| **400** | 400 Bad Request | - |
|
|
155
|
+
| **403** | 403 Authorization Failed | - |
|
|
156
|
+
| **404** | 404 Not Found | - |
|
|
157
|
+
| **0** | 500 Internal Error | - |
|
|
158
|
+
|
|
159
|
+
# **create**
|
|
160
|
+
> character create(participant_id, sensor.event)
|
|
161
|
+
|
|
162
|
+
Create a new SensorEvent for the given Participant.
|
|
163
|
+
|
|
164
|
+
Create a new SensorEvent for the given Participant.
|
|
165
|
+
|
|
166
|
+
### Example
|
|
167
|
+
```javascript
|
|
168
|
+
import LAMP from 'lamp-core'
|
|
169
|
+
|
|
170
|
+
let participant_id = 'participant_id_example' // string
|
|
171
|
+
let sensor.event = SensorEvent.new(123, "sensor_example", 123) // SensorEvent
|
|
172
|
+
|
|
173
|
+
// Create a new SensorEvent for the given Participant.
|
|
174
|
+
const result = LAMP.SensorEvent.create(participant_id, sensor.event)
|
|
175
|
+
console.dir(result)
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Parameters
|
|
179
|
+
|
|
180
|
+
Name | Type | Description | Notes
|
|
181
|
+
------------- | ------------- | ------------- | -------------
|
|
182
|
+
**participant_id** | **string**| |
|
|
183
|
+
**sensor.event** | [**SensorEvent**](SensorEvent.md)| |
|
|
184
|
+
|
|
185
|
+
### Return type
|
|
186
|
+
|
|
187
|
+
**string**
|
|
188
|
+
|
|
189
|
+
### HTTP request headers
|
|
190
|
+
|
|
191
|
+
- **Content-Type**: `application/json`
|
|
192
|
+
- **Accept**: `application/json`
|
|
193
|
+
|
|
194
|
+
### HTTP response details
|
|
195
|
+
| Status code | Description | Response headers |
|
|
196
|
+
|-------------|-------------|------------------|
|
|
197
|
+
| **200** | 200 Success | - |
|
|
198
|
+
| **400** | 400 Bad Request | - |
|
|
199
|
+
| **403** | 403 Authorization Failed | - |
|
|
200
|
+
| **404** | 404 Not Found | - |
|
|
201
|
+
| **0** | 500 Internal Error | - |
|
|
202
|
+
|
|
203
|
+
# **delete**
|
|
204
|
+
> character delete(participant_id, origin=let origin, from=let from, to=let to)
|
|
205
|
+
|
|
206
|
+
Delete a sensor event.
|
|
207
|
+
|
|
208
|
+
Delete a sensor event.
|
|
209
|
+
|
|
210
|
+
### Example
|
|
211
|
+
```javascript
|
|
212
|
+
import LAMP from 'lamp-core'
|
|
213
|
+
|
|
214
|
+
let participant_id = 'participant_id_example' // string
|
|
215
|
+
let origin = 'origin_example' // string
|
|
216
|
+
let from = 3.4 // number
|
|
217
|
+
let to = 3.4 // number
|
|
218
|
+
|
|
219
|
+
// Delete a sensor event.
|
|
220
|
+
const result = LAMP.SensorEvent.delete(participant_id, origin=let origin, from=let from, to=let to)
|
|
221
|
+
console.dir(result)
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Parameters
|
|
225
|
+
|
|
226
|
+
Name | Type | Description | Notes
|
|
227
|
+
------------- | ------------- | ------------- | -------------
|
|
228
|
+
**participant_id** | **string**| |
|
|
229
|
+
**origin** | **string**| | [optional]
|
|
230
|
+
**from** | **number**| | [optional]
|
|
231
|
+
**to** | **number**| | [optional]
|
|
232
|
+
|
|
233
|
+
### Return type
|
|
234
|
+
|
|
235
|
+
**string**
|
|
236
|
+
|
|
237
|
+
### HTTP request headers
|
|
238
|
+
|
|
239
|
+
- **Content-Type**: `application/json`
|
|
240
|
+
- **Accept**: `application/json`
|
|
241
|
+
|
|
242
|
+
### HTTP response details
|
|
243
|
+
| Status code | Description | Response headers |
|
|
244
|
+
|-------------|-------------|------------------|
|
|
245
|
+
| **200** | 200 Success | - |
|
|
246
|
+
| **400** | 400 Bad Request | - |
|
|
247
|
+
| **403** | 403 Authorization Failed | - |
|
|
248
|
+
| **404** | 404 Not Found | - |
|
|
249
|
+
| **0** | 500 Internal Error | - |
|
|
250
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# LAMP.SensorSpec
|
|
2
|
+
|
|
3
|
+
The SensorSpec determines the parameters of generated SensorEvents.
|
|
4
|
+
## Properties
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**name** | **string** | The name of the sensor. | [optional]
|
|
8
|
+
**settings_schema** | [**object**](.md) | The data definition of a SensorSpec. | [optional]
|
|
9
|
+
|
|
10
|
+
|